:root{--navy:#062f55;--blue:#087ad7;--sky:#eaf7ff;--yellow:#ffd84e;--green:#23a85b;--purple:#7b3fd4;--orange:#f47b20;--ink:#17324b;--card:#fff;--line:#b9dbef}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;min-height:100vh;background:linear-gradient(180deg,#e8f7ff,#f9fcff 40%,#fff7e1);color:var(--ink);font-family:Nunito,"Avenir Next",system-ui,sans-serif}
button,a{font:inherit}
button{cursor:pointer}
.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:14px;padding:10px 18px;background:#fffef8eF;border-bottom:2px solid #d6eaf6;backdrop-filter:blur(12px)}
.back,.help-button{border:0;border-radius:999px;padding:10px 16px;background:var(--navy);color:#fff;font-weight:900;text-decoration:none;white-space:nowrap}
.help-button{background:var(--yellow);color:#4b3900}
.progress{height:12px;flex:1;overflow:hidden;border-radius:99px;background:#d9ebf6}.progress span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#1faf69,#0b84dd,#8a45d6);transition:width .3s ease}
.help-drawer{position:fixed;top:70px;right:16px;z-index:50;width:min(390px,calc(100vw - 32px));padding:22px;border:3px solid var(--yellow);border-radius:24px;background:#fffdf1;box-shadow:0 20px 60px #17324b40}.help-drawer h2{margin:0 32px 12px 0;color:var(--navy)}.help-drawer p{margin:8px 0;padding:9px 12px;border-radius:12px;background:#fff}.help-close{position:absolute;right:12px;top:10px;width:34px;height:34px;border:0;border-radius:50%;background:var(--navy);color:#fff;font-size:22px;font-weight:900}
main{width:min(1120px,calc(100% - 28px));margin:22px auto 60px}
.screen{display:none;animation:arrive .25s ease}.screen.active{display:block}.cover{text-align:center}
@keyframes arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.eyebrow,.screen-title span{display:inline-flex;padding:7px 13px;border-radius:999px;background:#d9f1ff;color:#06578f;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
h1{margin:16px 0 6px;color:var(--navy);font-size:clamp(2.2rem,6vw,4.6rem);line-height:.95}h2{margin:8px 0;color:var(--navy);font-size:clamp(2rem,5vw,3.5rem);line-height:1}h3{color:var(--navy)}
.big-line,.screen-title p{font-size:clamp(1.08rem,2.2vw,1.35rem);font-weight:700}.screen-title{margin:14px 0 20px;text-align:center}.screen-title.purple span{background:#efe2ff;color:#6631ae}.boss-title span{background:#ffe1d5;color:#b73b0f}
.board-crop{position:relative;width:100%;overflow:hidden;border:4px solid #fff;border-radius:24px;background:#ddecf7;box-shadow:0 12px 30px #0b4d7b25}.board-crop img{position:absolute;left:0;top:0;height:auto;max-width:none}.hero-crop{aspect-ratio:726/214;max-width:900px;margin:14px auto}.hero-crop img{width:211.57%;transform:translate(0,0)}
.weather-crop{aspect-ratio:630/150}.weather-crop img{width:243.81%;transform:translate(0,-21.58%)}
.clothes-crop{aspect-ratio:894/150}.clothes-crop img{width:171.81%;transform:translate(-41.73%,-21.58%)}
.detective-crop{aspect-ratio:352/280;max-width:520px;margin:auto}.detective-crop img{width:436.36%;transform:translate(-77.02%,-36.91%)}
.mystery-crop{aspect-ratio:503/200;max-width:660px;margin:auto}.mystery-crop img{width:305.37%;transform:translate(0,-80.47%)}
.time-crop{aspect-ratio:478/214;max-width:760px;margin:auto}.time-crop img{width:321.34%;transform:translate(-47.79%,0)}
.verbs-crop{aspect-ratio:731/280}.verbs-crop img{width:210.12%;transform:translate(0,-36.91%)}
.sequence-crop{aspect-ratio:796/148}.sequence-crop img{width:192.96%;transform:translate(-48.11%,-65.04%)}
.build-crop{aspect-ratio:641/200}.build-crop img{width:239.63%;transform:translate(-33.2%,-80.47%)}
.builder-crop{aspect-ratio:379/200;max-width:600px;margin:auto}.builder-crop img{width:405.28%;transform:translate(-75.33%,-80.47%)}
.dress-crop{aspect-ratio:439/287;max-width:620px;margin:auto}.dress-crop img{width:349.89%;transform:translate(-47.85%,-36.72%)}
.mission-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:760px;margin:18px auto}.mission-choice div{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;gap:2px 12px;align-items:center;padding:18px;text-align:left;border:3px solid #bfe2f4;border-radius:22px;background:#fff}.mission-choice span{grid-row:1/3;font-size:3rem}.mission-choice b{font-size:1.3rem}.mission-choice small{font-size:1rem;color:#52718b;font-weight:800}
.primary,.secondary,.reveal,nav button{border:0;border-radius:16px;padding:13px 20px;font-weight:900}.primary{background:linear-gradient(135deg,#087ad7,#245ed8);color:#fff;box-shadow:0 8px 18px #087ad738}.secondary{background:#e7f4fb;color:#075b91}.reveal{background:#fff2be;color:#634a00;border:2px solid #f2cf44}
nav{display:flex;justify-content:space-between;gap:12px;margin-top:24px}nav button:not(.primary){background:#deedf6;color:#25445e}
.weather-buttons,.verb-grid,.choice-row,.story-steps{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:18px 0}.weather-buttons button,.verb-grid button,.choice-row button,.story-steps button{min-width:120px;border:3px solid #b9dcef;border-radius:18px;padding:15px;background:#fff;color:var(--navy);font-weight:900;font-size:1.05rem}.weather-buttons button:hover,.verb-grid button:hover,.choice-row button:hover,.story-steps button:hover,.selected{border-color:var(--blue)!important;background:#e3f5ff!important;transform:translateY(-2px)}
.speak-card,.verb-result,.story-line,.generated-story,.mystery-result{margin:16px auto;padding:20px;border:3px solid #8bd1f4;border-radius:22px;background:#fff;text-align:center;font-size:clamp(1.2rem,3vw,1.8rem);font-weight:900}.speak-card span{display:block;font-size:2.5rem}.answer{margin:10px 0;padding:16px;border-radius:16px;background:#fff9dc;border-left:6px solid var(--yellow);font-size:1.13rem;font-weight:800;line-height:1.6}.answer[hidden]{display:none}
.round-card,.detective-card,.quick-compare,.boss-card{max-width:720px;margin:20px auto;padding:22px;border:3px solid var(--line);border-radius:26px;background:#fff;text-align:center}.round-weather,.detective-scene,.boss-icon{font-size:clamp(2.8rem,9vw,5.5rem);font-weight:1000}.round-card p,.detective-card p{font-size:1.35rem;font-weight:900}.feedback{min-height:42px;padding:10px;font-size:1.15rem;font-weight:900}.feedback.good{color:#0c8c48}.feedback.try{color:#d3471b}
.mystery-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:18px 0}.mystery-grid button{border:0;border-radius:18px;padding:20px 8px;background:linear-gradient(145deg,#7047e7,#ac4ce3);color:#fff;font-weight:1000;font-size:1.15rem;box-shadow:0 8px 18px #5e39ae38}.movement{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin-top:20px;padding:18px;border-radius:22px;background:#ddf7e8}.movement b{grid-column:1/-1;font-size:1.25rem}.movement span{padding:10px;border-radius:12px;background:#fff;font-weight:800}
.time-rule{display:grid;grid-template-columns:1fr auto 1fr;align-items:stretch;gap:12px;margin:20px 0}.time-rule>div{display:flex;flex-direction:column;gap:8px;padding:20px;border:3px solid #44b971;border-radius:22px;background:#ebfff1}.time-rule .yesterday{border-color:#814bd6;background:#f4ebff}.time-rule b{font-size:1.4rem}.time-rule strong{font-size:1.2rem}.time-rule mark{padding:2px 7px;border-radius:8px;background:#fff06d}.time-arrow{align-self:center;font-size:2.2rem}
.verb-grid button.special{border-color:#b889ec;background:#f4ebff}.verb-result{line-height:1.55}.verb-result .past{color:var(--purple)}
.story-steps button{min-width:90px;font-size:2.1rem}.story-steps button.done{border-color:#29a966;background:#e7fff0}.story-line{color:#56309b;border-color:#b99ae8}
.sentence-list{display:grid;gap:12px;margin-top:20px}.sentence-list article{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;padding:14px;border:2px solid var(--line);border-radius:18px;background:#fff}.sentence-list .answer{grid-column:1/-1;margin:0}.tokens{display:flex;flex-wrap:wrap;gap:7px}.tokens span{padding:9px 12px;border-radius:12px;background:#eaf5fc;color:#124b74;font-weight:1000}
.builder{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:18px}.builder fieldset{border:3px solid #c6def0;border-radius:20px;background:#fff}.builder legend{padding:0 8px;color:var(--navy);font-weight:1000}.builder button{margin:5px;padding:10px;border:2px solid #d6e9f6;border-radius:12px;background:#f8fcff;font-weight:900}.builder button.chosen{border-color:#1ea35b;background:#e7fff0}
.boss-hearts{text-align:center;font-size:clamp(2rem,6vw,4rem);letter-spacing:5px}.boss-card{border-color:#9d59e8;background:linear-gradient(180deg,#fbf7ff,#f2e7ff)}.boss-card h3{font-size:1.5rem}.victory{margin:20px auto;padding:24px;border:4px solid var(--yellow);border-radius:26px;background:#fffceb;text-align:center}.can-do{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;text-align:left}.can-do span{padding:12px;border-radius:12px;background:#fff}
.step-count{min-width:100px;color:#47647a;font-size:.88rem;font-weight:1000;text-align:center;white-space:nowrap}
.large{padding:17px 26px;font-size:1.08rem}.small{padding:10px 16px}
.lesson-map{max-width:760px;margin:18px auto;padding:15px;border:3px solid #c5e2f2;border-radius:22px;background:#fff;text-align:left}.lesson-map summary{cursor:pointer;color:var(--navy);font-weight:1000;text-align:center}.lesson-map div{display:grid;grid-template-columns:70px 1fr auto;gap:10px;align-items:center;margin-top:9px;padding:10px 14px;border-radius:12px;background:#eef8fd}.lesson-map div span{color:#087ad7;font-weight:1000}.lesson-map small{color:#58738a;font-weight:900}.goal-card,.teacher-cue,.mini-task{display:flex;align-items:center;gap:12px;max-width:880px;margin:14px auto;padding:14px 17px;border-radius:16px;background:#fff3bd;color:#624b00;text-align:left}.goal-card b,.teacher-cue b,.mini-task b{white-space:nowrap}.teacher-cue{background:#e9f7ff;color:#154f74}.mini-task{background:#e8faef;color:#17643b}.mini-task span,.goal-card span{line-height:1.45}
.speak-card small{display:block;margin-top:7px;color:#5f7890;font-size:.92rem}
.speed-card,.compare-card,.switch-card{max-width:760px;margin:20px auto;padding:24px;border:3px solid var(--line);border-radius:26px;background:#fff;text-align:center}.round-pill{display:inline-block;padding:7px 13px;border-radius:999px;background:#e3f2fb;color:#075b91;font-size:.9rem;font-weight:1000}.speed-icon,.switch-icon{margin:18px 0;font-size:clamp(4rem,11vw,7rem)}.speed-card p,.compare-card p{font-size:1.3rem;font-weight:900}.speed-card .secondary,.compare-card .secondary{display:block;margin:12px auto 0}
.concept-pair{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;max-width:720px;margin:18px auto}.concept-pair div{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;gap:2px 12px;align-items:center;padding:18px;border:3px solid #c7e2f2;border-radius:20px;background:#fff;font-size:2.5rem;text-align:left}.concept-pair b{font-size:1.4rem}.concept-pair span{font-size:1rem;font-weight:800}.clothes-bank{display:flex;flex-wrap:wrap;justify-content:center;gap:9px;margin:18px 0}.clothes-bank button{border:3px solid #c4dfef;border-radius:15px;padding:12px;background:#fff;color:var(--navy);font-weight:900}
.movement-card{display:grid;gap:10px;max-width:720px;margin:22px auto;padding:20px;border:3px solid #63c988;border-radius:24px;background:#e9fff1;text-align:center}.movement-card>b{font-size:1.5rem;color:#0e7440}.movement-call{min-height:70px;padding:14px;border-radius:16px;background:#fff;font-size:clamp(1.5rem,4vw,2.2rem);font-weight:1000}.movement-card small{color:#476f5a;font-weight:800}
.compare-icons{margin:18px 0;padding:20px;border-radius:18px;background:linear-gradient(90deg,#e4fff0,#f1e7ff);font-size:clamp(1.5rem,4vw,2.3rem);font-weight:1000}.verb-key{display:flex;justify-content:center;gap:22px;margin:15px 0;color:#49657c;font-weight:900}.verb-key i{display:inline-block;width:13px;height:13px;margin-right:6px;border-radius:50%;background:#48a8e4}.verb-key span:last-child i{background:#9c5edd}.verb-grid button.visited{box-shadow:inset 0 -5px 0 #62c88b}
.switch-time{margin-top:18px;color:var(--navy);font-size:1.7rem;font-weight:1000}.switchChoices{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.switchChoices button{border:3px solid #bfdcec;border-radius:18px;padding:17px;background:#fff;color:var(--navy);font-weight:1000}.switchChoices button:hover{border-color:var(--blue);background:#e8f7ff}
.subheading{margin:30px 0 12px;text-align:center;font-size:1.5rem}.past-boxes,.challenge-row,.connector-row{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.past-boxes button,.challenge-row button,.connector-row button{border:3px solid #c1dff0;border-radius:17px;padding:15px;background:#fff;color:var(--navy);font-weight:1000}.past-boxes button.opened,.mystery-grid button.opened{outline:4px solid #60cc88;outline-offset:2px}.past-prompt,.challenge-prompt{margin:14px 0;padding:18px;border-radius:18px;background:#eef8fe;text-align:center;font-size:1.25rem;font-weight:900}
.sentence-list article{grid-template-columns:auto 1fr auto}.sentence-list article>b{color:#086aa9}.sentence-list article.boss-sentence{border-color:#9d59e8;background:#f8f1ff}.sentence-list article .answer{grid-column:1/-1}
.connector-row button{min-width:150px;font-size:1.2rem}.connector-row button:nth-child(1){border-color:#62c96f}.connector-row button:nth-child(2){border-color:#f3a536}.connector-row button:nth-child(3){border-color:#9a5dde}.sequence-builder{display:grid;gap:12px;max-width:800px;margin:20px auto}.sequence-builder div{display:grid;grid-template-columns:70px 1fr;align-items:center;padding:14px;border:3px solid #c6e1f1;border-radius:18px;background:#fff}.sequence-builder span{font-size:2.4rem}.sequence-builder b{font-size:1.15rem}.memory-hidden{color:transparent!important;user-select:none;background:repeating-linear-gradient(-45deg,#eaf6fc,#eaf6fc 12px,#dfeef7 12px,#dfeef7 24px)!important}.challenge-row button{font-size:1.8rem}.certificate{margin-top:18px;padding:15px;border:3px dashed #f3bd16;border-radius:16px;background:#fff;font-size:1.25rem;font-weight:1000}
@media (max-width:700px){.topbar{padding:8px}.back,.help-button{padding:9px 11px}.step-count{display:none}.mission-choice,.time-rule,.builder,.concept-pair,.switchChoices{grid-template-columns:1fr}.time-arrow{transform:rotate(-90deg)}.mystery-grid{grid-template-columns:repeat(3,1fr)}.movement,.can-do{grid-template-columns:1fr}.movement b{grid-column:auto}.sentence-list article{grid-template-columns:1fr}.sentence-list article .answer{grid-column:auto}.board-crop{border-radius:16px}.screen-title{margin-top:8px}.lesson-map div{grid-template-columns:55px 1fr auto}.goal-card,.teacher-cue,.mini-task{align-items:flex-start;flex-direction:column;gap:4px}.goal-card b,.teacher-cue b,.mini-task b{white-space:normal}.verb-key{align-items:flex-start;flex-direction:column;gap:7px}.connector-row button{min-width:100px}.sequence-builder div{grid-template-columns:55px 1fr}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
