@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');
:root{font-family:Nunito,system-ui,sans-serif;color:#403657;background:#fffcf6;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit}button:focus-visible,a:focus-visible,select:focus-visible{outline:4px solid #e94c96;outline-offset:4px}button{border:0}header{max-width:1120px;margin:auto;display:flex;justify-content:space-between;align-items:center;padding:24px;gap:12px}header a{color:#79688c;text-decoration:none;font-weight:800}.brand{font-size:24px!important;font-weight:900!important;color:#483659!important}.brand b{color:#ed479a}.controls{display:flex;gap:8px}.soft{background:white;border:1px solid #e9e1ef;border-radius:18px;padding:12px 17px;font-weight:800;min-height:48px}main{max-width:1060px;margin:auto;padding:12px 24px 44px}.intro{position:relative;padding:34px 36px;background:#eee5ff;border-radius:34px;margin:5px 0 28px;overflow:hidden;min-height:220px}.eyebrow{font-size:11px;font-weight:900;letter-spacing:2px;color:#8d6bab}.intro h1{font-size:clamp(31px,5vw,48px);line-height:1.05;letter-spacing:-1.8px;margin:14px 0}.intro p{max-width:55%;font-size:16px;color:#776589}.intro img{position:absolute;width:235px;right:30px;bottom:-45px;transform:rotate(-8deg)}.sectionline{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:24px 0 15px}.sectionline h2{font-size:22px;margin:0}.sectionline span{font-size:13px;color:#8b7d98}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.activity{text-align:left;position:relative;padding:22px;border-radius:27px;background:var(--bg);border:3px solid white;box-shadow:0 5px 0 var(--shadow);transition:transform .15s;min-height:215px}.activity:hover{transform:translateY(-3px)}.art{height:105px;display:flex;align-items:center;justify-content:center;font-size:68px;letter-spacing:-13px;padding-right:13px}.activity h3{font-size:20px;margin:16px 0 3px}.activity p{font-size:13px;margin:0;color:#695e77}.arrow{position:absolute;right:20px;bottom:23px;background:#ffffffb0;border-radius:50%;width:30px;height:30px;text-align:center;font-size:22px}.bottom{display:flex;gap:16px;margin-top:28px}.tip,.progress{flex:1;background:white;border:1px solid #eae3ee;padding:20px;border-radius:23px}.tip b,.progress b{display:block;margin-bottom:7px}.tip p,.progress p{font-size:14px;color:#7b6d88;margin:0}.seed{color:#3f9474}footer{text-align:center;font-size:12px;color:#9a8aa4;padding:20px}dialog{width:min(820px,calc(100% - 24px));max-height:94svh;border:0;border-radius:30px;padding:24px;background:#fffcf7;color:#403657;box-shadow:0 24px 100px #38274c44}dialog::backdrop{background:#38274c75;backdrop-filter:blur(7px)}.gamebar{display:flex;justify-content:space-between;align-items:center;gap:12px}.gamebar .soft{padding:10px 14px}.dots{display:flex;gap:7px}.dot{width:12px;height:12px;border-radius:50%;background:#e5deed}.dot.done{background:#b0d6ad}.dot.current{background:#b49bdc}.question{text-align:center;padding:18px 0 10px}.question h2{font-size:clamp(25px,4vw,35px);margin:12px 0}.question p{color:#82718e;margin:6px}.listen{background:#e8defa;border-radius:18px;padding:12px 24px;font-weight:900;min-height:50px}.objects{font-size:38px;letter-spacing:5px;max-width:440px;margin:12px auto;line-height:1.5}.choices{display:grid;grid-template-columns:repeat(2,1fr);gap:15px;max-width:620px;margin:18px auto}.choice{position:relative;background:white;border:3px solid #e9e0ef;box-shadow:0 4px 0 #e9e0ef;border-radius:23px;padding:18px;min-height:145px;font-weight:900;font-size:17px}.choice .picture{display:block;font-size:64px;line-height:1.2;margin-bottom:10px}.choice.correct{background:#ecf8e9;border-color:#8fc786}.choice.hint{border-color:#e9c66f}.choice:disabled{cursor:default;color:#403657;opacity:1}.swatch{display:inline-block;width:66px;height:66px;border-radius:50%;border:3px solid #40365720}.shape{display:inline-block;color:#9073c5;font-size:75px;line-height:1}.feedback{text-align:center;min-height:54px;font-size:17px;font-weight:800;padding:8px;max-width:600px;margin:auto}.next{display:block;margin:10px auto;background:#7353a2;color:white;border-radius:18px;padding:15px 32px;font-weight:900;min-height:52px}.finish{text-align:center;padding:20px}.finish img{width:170px}.finish h2{font-size:30px}.finish p{color:#82718e}.settings{max-width:520px;margin:20px auto}.settings label{display:block;margin:20px 0;font-weight:800}.settings select{display:block;width:100%;padding:13px;border:1px solid #ddd0e7;border-radius:12px;margin-top:8px;background:white}.settings p{line-height:1.6;color:#82718e;font-size:14px}.audio-status{font-size:12px;color:#8c6b57;text-align:center;min-height:18px}.reduced *{transition:none!important;animation:none!important}@media(max-width:650px){header{padding:16px}.brand{font-size:21px!important}.controls .soft{padding:10px;font-size:12px}main{padding:0 15px 25px}.intro{padding:25px;min-height:200px;margin-top:10px}.intro img{width:155px;right:-8px;bottom:-25px}.intro p{max-width:63%;font-size:13px}.intro h1{font-size:34px;max-width:75%}.cards{grid-template-columns:repeat(2,1fr);gap:14px}.activity{padding:15px;min-height:185px;border-radius:23px}.art{font-size:53px;height:85px}.activity h3{font-size:16px;margin-top:10px}.activity p{font-size:11px;padding-right:15px}.arrow{right:12px;bottom:16px;width:24px;height:24px;font-size:17px}.bottom{flex-direction:column}.sectionline span{font-size:11px}.sectionline h2{font-size:19px}dialog{padding:16px}.choice{min-height:125px;padding:13px;font-size:14px}.choice .picture{font-size:53px}.question{padding-top:10px}.gamebar{font-size:12px}.objects{font-size:30px}.feedback{font-size:15px}.tip,.progress{padding:17px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

.art:has(.digit){gap:5px;letter-spacing:0;padding-right:0}.digit{font-weight:900;font-size:76px;line-height:1;text-shadow:0 4px 0 #ffffffaa}.d1{color:#ec6296;transform:rotate(-12deg)}.d2{color:#8270ce;transform:translateY(-7px)}.d3{color:#e8a629;transform:rotate(10deg)}@media(max-width:650px){.digit{font-size:61px}}

/* The playroom map stays unchanged; activities become an edge-to-edge play stage. */
body.playing{overflow:hidden}
#game{position:fixed;inset:0;margin:0;width:100%;height:100vh;height:100dvh;max-width:none;max-height:none;border:0;border-radius:0;padding:0;overflow:hidden;background:linear-gradient(180deg,#e6f5ff 0%,#f5f9e9 74%,#d9ebbd 100%);box-shadow:none}
#game[data-world="sounds"]{background:linear-gradient(#eee6ff,#f8f1fb 75%,#e8d5f4)}
#game[data-world="fruit"]{background:linear-gradient(#fff0e8,#fff8e7 75%,#e0edc2)}
#game[data-world="count"]{background:linear-gradient(#e5f6ed,#f6f8e5 75%,#deebbd)}
#game[data-world="colours"]{background:linear-gradient(145deg,#fce5ef,#e9e7fc 45%,#e0f3ed)}
#game[data-world="shapes"]{background:linear-gradient(#eee9ff,#e8f1ff 75%,#d7e3f3)}
#gamebody{height:100%;width:min(100%,960px);margin:auto;position:relative;isolation:isolate;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:12px;padding:14px 22px;padding-top:max(12px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom));padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
#game[data-world="count"] #gamebody{grid-template-rows:auto auto auto minmax(0,1fr) auto}
#game #gamebody:has(.play-finish){grid-template-rows:auto minmax(0,1fr)}
.play-scenery{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none}.sun{position:absolute;right:4%;top:18%;font-size:92px;color:#f2ce73;opacity:.45;animation:sun-turn 60s linear infinite}.cloud{position:absolute;color:white;font-size:130px;opacity:.7;animation:cloud-drift 12s ease-in-out infinite}.cloud-one{left:-3%;top:26%}.cloud-two{right:-4%;top:53%;font-size:105px;animation-delay:-6s}.hill{position:absolute;bottom:-100px;left:-25%;width:150%;height:180px;background:#c8df9f70;border-radius:50%}.play-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:52px;z-index:3}.audio-tools{display:flex;gap:7px}.play-control{width:50px;height:50px;min-width:50px;display:grid;place-items:center;border-radius:18px;background:#ffffffcf;border:2px solid white;box-shadow:0 3px 0 #c8c0d638;font-size:25px;line-height:1;padding:0}.play-control:first-child{font-size:29px}.star-trail{display:flex;gap:4px;color:#d4c9df;font-size:25px;line-height:1}.star-trail .earned{color:#e5b144;text-shadow:0 2px 0 white}.play-prompt{display:flex;align-items:center;justify-content:center;gap:18px;min-height:110px;padding:0 10px;position:relative}.buddy-wrap{position:relative;flex:0 0 100px;height:112px;display:flex;align-items:end;justify-content:center}.buddy-cape{position:absolute;bottom:5px;width:95px;height:75px;left:2px;background:#e786b4;clip-path:polygon(35% 0,65% 0,100% 100%,50% 80%,0 100%);transform:rotate(-9deg)}.play-buddy{position:relative;max-width:100px;max-height:110px;object-fit:contain;animation:buddy-breathe 4s ease-in-out infinite;filter:drop-shadow(0 4px 0 #ffffffb0)}.prompt-copy{max-width:450px}.prompt-copy h2{font-size:clamp(24px,4vw,38px);line-height:1.15;margin:0;font-weight:900;letter-spacing:-.8px}.prompt-copy .audio-status{min-height:0;margin-top:5px;font-size:11px;text-align:left}.prompt-copy .audio-status:empty{display:none}.replay-voice{flex:0 0 62px;width:62px;height:62px;background:#9677c9;color:white;border:4px solid white;border-radius:50%;box-shadow:0 5px 0 #7159993d;font-size:24px;display:grid;place-items:center}.speaking .replay-voice{animation:speaker-pulse 1.3s ease-in-out infinite}
.play-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:20px;min-height:0;width:100%;max-width:760px;justify-self:center}.choices-3,.choices-4{grid-template-rows:repeat(2,minmax(0,1fr))}.choices-3 .play-choice:last-child{grid-column:1/-1;width:calc(50% - 10px);justify-self:center}.play-choice{min-height:0;min-width:0;border-radius:32px;border:5px solid white;background:linear-gradient(145deg,#fffffff0,var(--card-hue));box-shadow:0 6px 0 #a69abb40;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:10px 14px;position:relative;overflow:visible;color:#403657;transition:transform .18s,background .18s}.play-choice:active{transform:scale(.96)}.play-choice:disabled{opacity:1;color:#403657;cursor:default}.choice-art{display:flex;align-items:center;justify-content:center;flex:1;min-height:0;width:100%;filter:drop-shadow(0 7px 3px #a4829214)}.animal-art{display:block;width:100%;height:100%;max-width:250px;max-height:300px}.animal-eyes{transform-origin:80px 80px;animation:animal-blink 6s infinite}.choice-word{font-size:17px;line-height:1.2;font-weight:900;padding:0 0 5px;letter-spacing:.2px}.choice-tick{display:none;position:absolute;right:-7px;top:-11px;color:#f0bf3c;background:#fff;border-radius:50%;width:49px;height:49px;font-size:36px;line-height:45px;box-shadow:0 4px 0 #d0c3d93d}.play-choice.is-correct{border-color:#83c69d;background:#e4f5d8;animation:happy-pop .65s ease-out}.play-choice.is-correct .choice-tick{display:block}.play-choice.gentle-hint{box-shadow:0 0 0 4px #e9c86d,0 6px 0 #b3a6c440}.fruit-art{font-size:clamp(68px,17vh,155px);line-height:1.1;animation:fruit-sway 5s ease-in-out infinite}.play-choice:nth-child(2n) .fruit-art{animation-delay:-2s}.choices-4 .fruit-art,.choices-3 .fruit-art{font-size:clamp(56px,12vh,110px)}.shape-art{width:75%;height:75%;max-width:200px;max-height:200px;fill:#9c80ce;filter:drop-shadow(0 8px 0 #7d5eaf25)}.play-choice:nth-child(2) .shape-art{fill:#e9a866}.play-choice:nth-child(3) .shape-art{fill:#7bbbad}.play-choice:nth-child(4) .shape-art{fill:#e695b2}.paint-drop{display:block;width:min(75%,160px);aspect-ratio:1;background:var(--paint);border-radius:45% 55% 55% 45%/55% 45% 55% 45%;box-shadow:inset -7px -9px 0 #0000000b,0 8px 0 #00000008;position:relative;max-height:85%}.paint-drop i{position:absolute;width:24%;height:11%;border-radius:50%;background:#ffffffa0;left:20%;top:18%;transform:rotate(-35deg)}
.count-basket{display:flex;flex-wrap:wrap;justify-content:center;align-content:center;gap:6px;max-width:310px;width:100%;justify-self:center;padding:5px 10px;border-radius:22px;background:#ffffff90;min-height:56px}.count-apple{width:49px;height:49px;min-width:44px;min-height:44px;padding:0;background:transparent;position:relative;border-radius:13px;font-size:35px}.count-apple span{display:block;transition:transform .2s}.count-apple.counted span{transform:scale(.8);opacity:.55}.count-apple b{position:absolute;inset:0;display:grid;place-items:center;font-size:27px;color:#524467;text-shadow:0 2px 0 white}.number-choices .play-choice{padding:6px}.big-number{font-size:clamp(58px,17vh,150px);font-weight:900;color:#a07aca;line-height:1}.number-choices .play-choice:nth-child(2) .big-number{color:#db8eaa}.number-choices .play-choice:nth-child(3) .big-number{color:#73ad89}.number-choices .play-choice:nth-child(4) .big-number{color:#d6a33c}.number-choices.choices-3 .big-number,.number-choices.choices-4 .big-number{font-size:clamp(43px,11vh,94px)}
.play-footer{min-height:76px;display:flex;align-items:center;justify-content:center;gap:18px;z-index:2}.play-feedback{font-size:clamp(18px,3vw,25px);font-weight:900;text-align:center}.next-play{width:95px;height:72px;border-radius:25px;background:#8b6ac2;color:#fff;box-shadow:0 5px 0 #6b4d98;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:3px;animation:next-in .3s ease-out}.next-play span{font-size:35px;line-height:1}.next-play small{font-size:13px;font-weight:900}.next-play[hidden]{display:none!important}
.confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:8}.confetti i{position:absolute;top:-30px;left:var(--x);width:13px;height:19px;background:var(--colour);color:var(--colour);font:900 27px Nunito;font-style:normal;animation:confetti-fall 1.7s var(--delay) ease-in forwards;border-radius:3px}.confetti i:nth-child(3n+1){background:transparent;width:26px;height:26px}
.play-finish{min-height:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;text-align:center}.finish-stars{color:#e8b544;font-size:36px;letter-spacing:4px;text-shadow:0 3px 0 white}.play-finish img{height:clamp(95px,24vh,230px);max-width:70%;object-fit:contain;filter:drop-shadow(0 9px 0 #9983b11a)}.play-finish h2{font-size:clamp(30px,5vw,46px);font-weight:900;line-height:1;margin:3px 0 8px}.dance-button{padding:13px 24px;background:#e6d9f9;border:3px solid white;border-radius:22px;font-size:19px;font-weight:900;min-height:54px}.dance-button span{font-size:25px;margin-right:7px}.movement-cue{font-size:16px;font-weight:800;line-height:1.4;margin:4px 0;max-width:330px}.movement-cue span{font-size:23px}.finish-actions{display:flex;gap:12px;margin-top:5px}.finish-actions button{min-height:60px;border-radius:21px;padding:14px 20px;font-size:17px;font-weight:900}.replay-game{background:#8a68bf;color:white;box-shadow:0 5px 0 #6f4d9f}.home-game{background:#fff;border:2px solid #e0d4ef}.dancing{animation:buddy-dance .65s ease-in-out infinite!important}
@keyframes confetti-fall{to{transform:translateY(100dvh) rotate(var(--turn));opacity:0}}
@keyframes happy-pop{0%{transform:scale(.95)}45%{transform:scale(1.04)}100%{transform:scale(1)}}
@keyframes next-in{from{transform:scale(.8);opacity:0}to{transform:scale(1);opacity:1}}
@keyframes buddy-breathe{0%,100%{transform:translateY(2px) rotate(-2deg)}50%{transform:translateY(-3px) rotate(2deg)}}
@keyframes buddy-dance{0%,100%{transform:rotate(-9deg) translateY(0)}50%{transform:rotate(9deg) translateY(-10px)}}
@keyframes fruit-sway{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}
@keyframes animal-blink{0%,43%,47%,100%{transform:scaleY(1)}45%{transform:scaleY(.12)}}
@keyframes speaker-pulse{0%,100%{box-shadow:0 0 0 0 #ab8cd030}50%{box-shadow:0 0 0 9px #ab8cd015}}
@keyframes cloud-drift{0%,100%{transform:translateX(0)}50%{transform:translateX(20px)}}
@keyframes sun-turn{to{transform:rotate(360deg)}}
@media(max-width:600px){#gamebody{gap:10px;padding-left:max(13px,env(safe-area-inset-left));padding-right:max(13px,env(safe-area-inset-right))}.play-prompt{gap:10px;padding:0;min-height:100px}.buddy-wrap{flex-basis:69px;width:69px;height:91px}.play-buddy{max-width:72px;max-height:90px}.buddy-cape{width:65px;height:60px}.replay-voice{width:54px;height:54px;flex-basis:54px;font-size:22px}.prompt-copy h2{font-size:clamp(22px,6vw,30px)}.play-choices{gap:13px}.play-choice{border-width:4px;border-radius:27px;padding:8px}.choices-3 .play-choice:last-child{width:calc(50% - 6.5px)}.choice-word{font-size:15px;padding-bottom:3px}.choice-tick{width:39px;height:39px;font-size:29px;line-height:35px}.play-footer{min-height:73px;gap:12px}.play-feedback{font-size:20px}.next-play{width:80px;height:66px}.star-trail{font-size:21px;gap:2px}.play-control{min-width:47px;width:47px;height:47px;border-radius:16px;font-size:22px}.play-control:first-child{font-size:25px}.audio-tools{gap:5px}.sun{font-size:70px}.play-finish{gap:9px}.finish-stars{font-size:29px}.finish-actions button{font-size:15px;padding:12px 15px}.dance-button{font-size:17px}.movement-cue{font-size:14px}}
@media(max-height:650px){#gamebody{gap:7px;padding-top:max(7px,env(safe-area-inset-top));padding-bottom:max(7px,env(safe-area-inset-bottom))}.play-prompt{min-height:74px}.buddy-wrap{height:72px}.play-buddy{max-height:70px}.play-toolbar{min-height:45px}.play-control{height:43px;min-width:43px;width:43px}.play-footer{min-height:62px}.next-play{height:57px}.count-basket{gap:2px;min-height:48px}.count-apple{width:46px;height:44px;font-size:31px}.choice-word{font-size:13px}.play-finish{gap:7px}.play-finish img{height:19vh}.play-finish h2{font-size:30px}.finish-stars{font-size:25px}.dance-button{min-height:46px;padding:8px 17px}.finish-actions button{min-height:49px}.movement-cue{margin:0}}
@media(orientation:landscape) and (max-height:550px){#gamebody{grid-template-columns:160px minmax(0,1fr);grid-template-rows:47px minmax(0,1fr) 58px;column-gap:15px}.play-toolbar{grid-column:1/-1}.play-prompt{grid-column:1;grid-row:2;flex-wrap:wrap;align-content:center;gap:7px;min-height:0;text-align:center}.buddy-wrap{display:none}.prompt-copy h2{font-size:22px}.replay-voice{width:48px;height:48px;flex-basis:48px}.play-choices{grid-column:2;grid-row:2;gap:10px;height:100%}.play-footer{grid-column:1/-1;grid-row:3;min-height:52px}.play-choice{border-radius:20px;padding:4px}.choice-word{font-size:12px}.fruit-art{font-size:80px}.choices-3 .fruit-art,.choices-4 .fruit-art{font-size:45px}.animal-art{max-height:155px}.shape-art{max-height:110px}.paint-drop{max-width:90px;max-height:80%}#game[data-world="count"] #gamebody{grid-template-columns:210px minmax(0,1fr);grid-template-rows:47px 60px minmax(0,1fr) 53px}#game[data-world="count"] .play-prompt{grid-row:2;grid-column:1}#game[data-world="count"] .count-basket{grid-row:3;grid-column:1;width:100%;gap:2px;padding:2px;align-self:center}#game[data-world="count"] .play-choices{grid-row:2/4}#game[data-world="count"] .play-footer{grid-row:4}.count-apple{width:35px;height:44px;min-width:35px;font-size:27px}.count-apple b{font-size:23px}.big-number{font-size:70px}.number-choices.choices-3 .big-number,.number-choices.choices-4 .big-number{font-size:48px}#game #gamebody:has(.play-finish){grid-template-columns:1fr;grid-template-rows:47px minmax(0,1fr)}.play-finish{display:grid;grid-template-columns:150px 1fr;grid-template-rows:auto auto auto;column-gap:24px;padding:5px 30px}.play-finish img{grid-column:1;grid-row:1/4;height:160px;max-width:150px}.finish-stars{grid-column:2;font-size:23px}.play-finish h2{grid-column:2;font-size:28px}.dance-button{grid-column:2;justify-self:center;font-size:14px;min-height:42px;padding:6px 16px}.movement-cue{grid-column:1/-1;font-size:12px}.finish-actions{grid-column:1/-1;justify-content:center;margin:0}.finish-actions button{min-height:43px;padding:8px 16px}.play-finish .audio-status:empty{display:none}}
@media(prefers-reduced-motion:reduce){#game *,#game *:before,#game *:after{animation:none!important;transition:none!important}.confetti{display:none}}
.reduced #game *{animation:none!important;transition:none!important}.reduced .confetti{display:none}

@media(max-width:600px) and (orientation:portrait){.play-choices.choices-2:not(.number-choices){grid-template-columns:1fr;grid-template-rows:repeat(2,minmax(0,1fr))}.choices-2:not(.number-choices) .animal-art{max-width:250px;max-height:230px}.choices-2:not(.number-choices) .play-choice{flex-direction:row;gap:10px;padding:8px 22px}.choices-2:not(.number-choices) .choice-art{height:100%;width:auto;flex:1}.choices-2:not(.number-choices) .choice-word{font-size:20px;min-width:55px;max-width:95px;overflow-wrap:anywhere}.choices-2:not(.number-choices) .fruit-art{font-size:clamp(90px,19vh,160px)}.choices-2:not(.number-choices) .paint-drop{width:min(80%,150px);max-height:90%}.choices-2:not(.number-choices) .shape-art{height:85%;width:85%;max-height:170px}}
@media(orientation:landscape) and (max-height:550px){#game[data-world="count"] #gamebody{grid-template-columns:240px minmax(0,1fr)}.count-apple{width:44px;min-width:44px;height:44px}}

/* Listening-led learning paths */
.path-back{border:0;background:#fff;border-radius:22px;padding:14px 20px;color:#614c78;font:inherit;cursor:pointer;min-height:48px}
#game.learning #gamebody{display:flex;flex-direction:column;gap:8px}#game.learning{background:linear-gradient(155deg,#fff8eb,#edf7f2 55%,#eee8fa)}
.learn-stage{min-height:0;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;gap:8px;text-align:center}.learn-stage h2{font-size:clamp(20px,4vw,34px);margin:0;color:#514263}.learn-focus{min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;flex:1;width:100%}.learn-number,.learn-letter{font-weight:900;font-size:clamp(80px,19vh,170px);line-height:1;color:#b27bd0;text-shadow:3px 5px 0 #fff}.learn-letter small{font-size:.65em;color:#ee98b5}.learn-caption{font-size:26px;font-weight:800;margin:4px;color:#57456a}.learn-progress{font-size:14px;color:#74677e}.ten-frames{display:flex;flex-direction:column;gap:10px;max-width:100%}.ten-frame{display:grid;grid-template-columns:repeat(5,48px);gap:5px;padding:8px;background:#ffffffa6;border-radius:20px}.ten-frame button,.empty-dot{width:48px;height:48px;border:0;border-radius:14px;background:#eee9f2}.ten-frame button{font-size:32px;cursor:pointer;background:#fff}.ten-frame button.touched{background:#d5ebcb;transform:scale(.94)}.learn-controls{display:flex;gap:20px;padding:8px}.learn-controls button{width:64px;height:56px;background:#775797;color:white;border:0;border-radius:20px;font-size:28px;cursor:pointer}.letter-picture{font-size:clamp(65px,13vh,120px);line-height:1.1}.alphabet-board{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;width:min(100%,450px)}.alphabet-board button{min-height:44px;border:0;background:#fff;border-radius:12px;color:#775797;font-size:23px;font-weight:800;cursor:pointer}.alphabet-board button.selected{background:#775797;color:#fff}.learn-stage:has(.alphabet-board) .learn-letter{font-size:65px}.learn-stage:has(.alphabet-board) .letter-picture{font-size:60px}.play-footer{justify-content:center}
@media(max-height:700px){.learn-number,.learn-letter{font-size:90px}.ten-frame{grid-template-columns:repeat(5,44px);gap:3px;padding:5px}.ten-frame button,.empty-dot{width:44px;height:44px}.learn-stage{gap:3px}.learn-controls{padding:2px}.learn-caption{font-size:22px}.learn-stage:has(.alphabet-board) .learn-focus{flex-direction:row;flex-wrap:wrap}.learn-stage:has(.alphabet-board) .learn-letter{font-size:50px}.learn-stage:has(.alphabet-board) .letter-picture{font-size:45px}}
@media(max-height:500px) and (orientation:landscape){.learn-focus{flex-direction:row;flex-wrap:wrap;gap:16px}.ten-frames{flex-direction:row}.learn-number{font-size:70px}.learn-stage:has(.alphabet-board){display:grid;grid-template-columns:1fr 1fr}.alphabet-board{grid-row:1/4}.learn-stage:has(.alphabet-board) h2{display:none}.learn-controls button{height:45px}.learn-stage h2{font-size:20px}.letter-picture{font-size:60px}}

.object-svg{width:clamp(90px,18vh,190px);height:clamp(90px,18vh,190px)}.object-intro{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#665174;font-weight:700}.object-intro button{font-size:17px;padding:14px 20px}.object-card h3{text-transform:capitalize}.object-card .art{font-size:76px}.object-card .object-svg{width:100px;height:100px}.object-selected{outline:4px solid #b18ad0;outline-offset:3px}#game[data-world="outside"]{background:linear-gradient(#e5f4ff,#f6f7de)}#game[data-world="home"]{background:linear-gradient(#fff0e5,#f5e9f9)}#game[data-world="everyday"]{background:linear-gradient(#f1eafa,#e3f5ef)}

/* Lift and turn the entire card in depth, keeping its picture upright. */
.object-card{overflow:visible;isolation:auto;transform-origin:center;will-change:transform}.object-card.object-pop{z-index:5;animation:object-card-turn 1.35s cubic-bezier(.22,.65,.3,1) both}.object-card .art{animation:none;transform:none}.object-card:focus-visible{outline:4px solid #9677b1;outline-offset:4px}
@keyframes object-card-turn{0%{transform:perspective(850px) translateY(0) scale(1) rotateY(0deg)}24%{transform:perspective(850px) translateY(-16px) scale(1.12) rotateY(-28deg);box-shadow:12px 22px 28px #66507538}62%{transform:perspective(850px) translateY(-16px) scale(1.12) rotateY(28deg);box-shadow:-12px 22px 28px #66507538}84%{transform:perspective(850px) translateY(-5px) scale(1.03) rotateY(-6deg)}100%{transform:perspective(850px) translateY(0) scale(1) rotateY(0deg)}}
.object-card .action-svg{width:150px;height:135px;max-width:100%}.play-choice .action-svg{width:clamp(115px,24vh,250px);height:clamp(105px,23vh,235px)}#game[data-world="actions"]{background:linear-gradient(#ffedf0,#eeeafa)}
body.reduced .object-card.object-pop{animation:none}@media(prefers-reduced-motion:reduce){.object-card.object-pop{animation:none}}
