:root{--cream:#fff8ec;--paper:#fffdf8;--ink:#21345f;--blue:#4a73e8;--blue-dark:#355ecf;--yellow:#ffca58;--pink:#ff8e9c;--mint:#70d5b4;--purple:#9c8cf1;--muted:#687695;--line:#e7dfd0;--mono:"DM Mono",monospace;--sans:"Nunito",Arial,sans-serif;--display:"Fredoka",Arial,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:82px}body{margin:0;background:var(--cream);color:var(--ink);font:600 16px/1.55 var(--sans);overflow-x:hidden}body:has(dialog[open]){overflow:hidden}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button{color:inherit}.header{height:78px;position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:0 7%;background:#fff8ecef;border-bottom:1px solid #e7dfd0;backdrop-filter:blur(14px)}.brand{display:flex;align-items:center;gap:9px;font:700 23px/.78 var(--display);letter-spacing:-.035em}.brand__spark{width:38px;height:38px;display:grid;place-items:center;border-radius:14px 11px 16px 10px;background:var(--yellow);color:var(--ink);font-size:25px;transform:rotate(-8deg);box-shadow:0 4px 0 #edab37}.brand small{display:block;margin-top:6px;color:#8791a7;font:8px var(--mono);letter-spacing:.12em}.nav{display:flex;align-items:center;gap:27px;color:#526385;font-size:12px;font-weight:800}.nav>a:not(.nav-cta):hover,.text-link:hover{color:var(--blue)}.nav>button{border:0;background:none;color:#526385;font-size:12px;font-weight:800;cursor:pointer}.nav>button span{margin-left:3px;color:#8a94a9;font:9px var(--mono)}.nav-cta{padding:11px 15px;border-radius:13px;background:var(--blue);color:#fff;font-size:11px;box-shadow:0 4px 0 #3459bf;transition:transform .2s,box-shadow .2s}.nav-cta:hover{transform:translateY(2px);box-shadow:0 2px 0 #3459bf}.nav-cta span{padding-left:7px;color:#ffdf8c}.menu-toggle{display:none}.hero{min-height:620px;position:relative;display:grid;grid-template-columns:1.08fr .92fr;align-items:center;gap:3%;padding:72px 10% 74px;overflow:hidden;background:#ffeecb}.hero:before{content:"";position:absolute;width:600px;height:600px;right:-290px;top:-330px;border:1px solid #e9d39f;border-radius:50%;box-shadow:0 0 0 39px #ffeecb,0 0 0 40px #e9d39f,0 0 0 80px #ffeecb,0 0 0 81px #e9d39f}.hero__copy{position:relative;z-index:2}.hello-tag{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid #ddccaa;border-radius:99px;background:#fff8e9;color:#65728f;font:9px var(--mono);letter-spacing:.08em}.hello-tag i{width:7px;height:7px;border-radius:50%;background:var(--mint);box-shadow:0 0 0 4px #70d5b422}.hero h1{margin:25px 0 17px;font:600 clamp(55px,7vw,91px)/.93 var(--display);letter-spacing:-.045em}.hero h1 em{color:var(--blue);font-style:normal}.hero__period{color:var(--pink)}.hero__copy>p{max-width:460px;margin:0;color:#61708d;font-size:16px;line-height:1.8}.button{min-height:49px;display:inline-flex;align-items:center;justify-content:center;gap:18px;padding:0 17px;border:0;border-radius:13px;font-size:12px;font-weight:900;cursor:pointer;transition:transform .2s,box-shadow .2s,background .2s}.button:hover{transform:translateY(-3px)}.button span{font-size:16px}.button--blue{background:var(--blue);color:#fff;box-shadow:0 5px 0 #3459bf}.button--blue:hover{background:#4169dd;box-shadow:0 8px 0 #3459bf}.button--light{background:#fff;color:var(--ink);box-shadow:0 4px 0 #ddd6c9}.button--cream{background:var(--cream);color:var(--ink);box-shadow:0 5px 0 #ded3bc}.hero .button{margin-top:25px}.hero__scribble{margin-top:37px;color:#8b93a4;font:9px var(--mono);letter-spacing:.1em}.hero__scribble span{padding-left:5px;color:var(--pink);font-size:17px;vertical-align:middle}.hero__illustration{height:400px;position:relative;display:grid;place-items:center}.book-friend{width:min(100%,420px);position:relative;z-index:2;overflow:visible;animation:bookFloat 4s ease-in-out infinite;filter:drop-shadow(0 14px 11px #8f6f3826)}.book-pencil{transform-box:fill-box;transform-origin:center;animation:pencilWiggle 3s ease-in-out infinite}.float-shape{position:absolute;z-index:1}.shape--circle{width:53px;height:53px;left:10%;top:18%;border:2px dashed #7191df;border-radius:50%;animation:spin 18s linear infinite}.shape--star{right:11%;top:16%;color:var(--pink);font-size:39px;animation:starPop 2.5s ease-in-out infinite}.shape--dot{right:14%;bottom:15%;width:17px;height:17px;border-radius:50%;background:var(--mint);box-shadow:-26px -18px 0 -4px #ff9aa3;animation:dotBounce 3.5s ease-in-out infinite}.illustration-note{position:absolute;z-index:3;padding:8px 10px;border-radius:9px;background:#fffdf8;font:9px/1.3 var(--mono);box-shadow:0 4px 12px #614d2618}.note--one{left:2%;bottom:18%;color:var(--blue);transform:rotate(-7deg)}.note--two{right:1%;bottom:30%;color:#ef8593;font-size:25px;animation:starPop 2s infinite}.hero__caption{position:absolute;left:50%;bottom:3%;color:#8b91a0;font:8px var(--mono);letter-spacing:.11em;transform:translateX(-50%);white-space:nowrap}.score-strip{min-height:98px;display:flex;align-items:center;justify-content:center;gap:33px;padding:15px 7%;background:var(--ink);color:#fff}.score-strip>div{display:flex;align-items:center;gap:11px}.score-strip>div>span:last-child{display:flex;flex-direction:column}.score-strip b{font:600 21px var(--display)}.score-strip small{margin-top:2px;color:#b8c3dd;font:8px var(--mono);letter-spacing:.08em}.score-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;font-size:17px}.score-icon--yellow{background:#ffca5828;color:#ffd36e}.score-icon--pink{background:#ff8e9c28;color:#ff9ba6}.score-icon--mint{background:#70d5b428;color:#8ce2c5}.score-strip>i{width:1px;height:37px;background:#ffffff2b}.score-strip>a{display:flex;align-items:center;gap:8px;margin-left:10px;color:#a9bbf7;font:8px var(--mono);letter-spacing:.06em}.score-strip>a span{font-size:14px}.section-shell{padding-left:10%;padding-right:10%}.games{padding-top:112px;padding-bottom:118px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:35px;margin-bottom:35px}.eyebrow{display:flex;align-items:center;gap:8px;margin:0;color:#7d89a2;font:9px var(--mono);letter-spacing:.12em}.section-heading h2,.progress-section h2{margin:16px 0 0;font:600 clamp(43px,6vw,69px)/1 var(--display);letter-spacing:-.04em}.section-heading h2 em,.progress-section h2 em{color:var(--blue);font-style:normal}.section-heading>p{max-width:330px;margin:0 0 5px;color:#73809b;font-size:13px;line-height:1.8}.game-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.game-card{overflow:hidden;border:1px solid #e9e1d5;border-radius:22px;background:var(--paper);box-shadow:0 8px 0 #ece3d5;transition:transform .25s,box-shadow .25s}.game-card:hover{transform:translateY(-6px) rotate(-.4deg);box-shadow:0 14px 0 #e6d9c6}.game-card--math:hover{transform:translateY(-6px) rotate(.4deg)}.game-card__top{height:43px;display:flex;align-items:center;justify-content:space-between;padding:0 15px;border-bottom:1px solid #eee8de}.game-card__number{color:#8f99ac;font:9px var(--mono)}.game-card__badge{padding:5px 8px;border-radius:99px;background:#f1f1ee;color:#64718a;font:8px var(--mono);letter-spacing:.05em}.game-art{height:180px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}.game-art--english{background:#dff4ec}.game-art--math{background:#f8e3ed}.game-art--language{background:#e6e3fb}.game-art:before{content:"";position:absolute;width:210px;height:210px;border:1px dashed #52758c3a;border-radius:50%;animation:spin 35s linear infinite}.game-art--math:before{border-color:#ac6c8a35}.game-art--language:before{border-color:#7569bc40}.speech-bubble{position:absolute;left:13%;top:17%;z-index:2;padding:9px 13px;border:2px solid var(--ink);border-radius:14px 14px 14px 3px;background:#fff;font:600 16px var(--display);transform:rotate(-8deg);animation:wiggle 4s ease-in-out infinite}.english-sun{position:absolute;right:17%;top:13%;color:#f5a940;font-size:36px;animation:spin 15s linear infinite}.word-stack{width:108px;height:108px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:3px solid var(--ink);border-radius:20px;background:#fff;box-shadow:5px 5px 0 var(--ink);transform:rotate(-4deg);transition:transform .25s}.game-card:hover .word-stack{transform:rotate(4deg) translateY(-5px)}.word-stack b{color:var(--blue);font:600 25px var(--display);letter-spacing:.05em}.word-stack i{color:#6f7c94;font:italic 12px var(--sans)}.game-art__spark{position:absolute;right:12%;bottom:15%;color:#f0818f;font-size:28px;animation:starPop 1.9s ease-in-out infinite}.number-tile,.answer-tile{width:54px;height:62px;display:grid;place-items:center;border:2px solid var(--ink);border-radius:12px;background:#fff;font:600 29px var(--display);box-shadow:3px 4px 0 var(--ink)}.tile--one{color:#e48654;transform:rotate(-9deg)}.tile--two{color:#5781de;transform:rotate(7deg)}.math-sign,.math-equals{margin:0 8px;color:#51607f;font:600 23px var(--display)}.answer-tile{width:50px;height:58px;border-style:dashed;background:#fff6df;color:#d78642;transform:rotate(-4deg)}.letter-card{width:72px;height:84px;display:grid;place-items:center;border:2px solid var(--ink);border-radius:15px;background:#fff;font:600 43px var(--display);box-shadow:4px 5px 0 var(--ink)}.letter-card--a{color:#8b75d6;transform:rotate(-9deg) translateY(5px)}.letter-card--b{color:#ee8492;transform:rotate(9deg) translateY(-5px)}.language-ribbon{position:absolute;right:8%;bottom:15%;padding:6px 10px;border-radius:99px;background:#fff;color:#7065b1;font:9px var(--mono);transform:rotate(-4deg)}.game-card__body{padding:17px 17px 14px}.game-card__title-row{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.subject-label{color:#75819a;font:8px var(--mono);letter-spacing:.1em}.game-card h3{margin:3px 0 0;font:600 23px/1.1 var(--display)}.best-score{display:inline-flex;align-items:center;gap:4px;padding:5px 7px;border-radius:99px;background:#fff3d8;color:#d28a28;font:9px var(--mono);white-space:nowrap}.game-card__body>p{min-height:61px;margin:11px 0;color:#71809a;font-size:12px;line-height:1.7}.game-card__footer{display:flex;justify-content:space-between;align-items:center;gap:8px;padding-top:12px;border-top:1px solid #eee8de}.game-card__footer>span{color:#9099aa;font:8px var(--mono);letter-spacing:.04em}.play-button{display:inline-flex;align-items:center;gap:9px;padding:8px 11px;border:0;border-radius:10px;background:var(--blue);color:#fff;font-size:11px;font-weight:900;cursor:pointer;transition:transform .2s,background .2s}.play-button:hover{transform:translateX(2px);background:var(--blue-dark)}.play-button span{font-size:15px}.games-footnote{display:flex;align-items:center;gap:8px;margin-top:28px;color:#858fa3;font:8px var(--mono);letter-spacing:.08em}.games-footnote span{color:var(--pink);font-size:16px}.progress-section{padding-top:102px;padding-bottom:108px;background:#e9f3f2}.progress-layout{display:grid;grid-template-columns:.8fr 1.2fr;gap:8%;align-items:center}.progress-section h2{font-size:clamp(47px,5.8vw,68px)}.progress-copy{max-width:340px;margin:18px 0;color:#687a92;font-size:13px;line-height:1.8}.progress-total{display:flex;align-items:center;gap:13px;margin-top:27px}.progress-total>span{width:50px;height:50px;display:grid;place-items:center;border-radius:16px;background:#ffca58;color:#71511b;font-size:24px;box-shadow:0 4px 0 #eab244}.progress-total>div{display:flex;flex-direction:column}.progress-total b{font:600 25px var(--display)}.progress-total small{color:#708096;font:8px var(--mono);letter-spacing:.09em}.progress-board{padding:24px 25px;border:1px solid #d6e3e1;border-radius:20px;background:#fffdf8;box-shadow:0 8px 0 #d9e7e4}.progress-board__head{display:flex;justify-content:space-between;align-items:center;padding-bottom:15px;border-bottom:1px solid #eee8de;color:#7a879b;font:9px var(--mono);letter-spacing:.08em}.progress-board__head button{border:0;background:none;color:#858fa1;font:9px var(--mono);cursor:pointer}.progress-board__head button:hover{color:#d56d75}.subject-progress{display:grid;gap:15px;padding:18px 0}.subject-row{display:grid;grid-template-columns:40px 1fr auto;align-items:center;gap:11px}.subject-row__icon{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;background:#e6efff;color:#4a73e8;font:600 18px var(--display)}.subject-row__icon--math{background:#fde8ef;color:#e77993}.subject-row__icon--language{background:#e9e6fd;color:#8876d7}.subject-row__main>div:first-child{display:flex;justify-content:space-between;gap:10px;color:#52617d;font-size:11px}.subject-row__main>div:first-child span{color:#8b96a9;font-size:10px}.subject-bar{height:7px;margin-top:6px;overflow:hidden;border-radius:99px;background:#edf0f0}.subject-bar i{height:100%;display:block;border-radius:99px;background:linear-gradient(90deg,#5a86ee,#8ec7ee);transition:width .6s cubic-bezier(.2,.8,.2,1)}.subject-row:nth-child(2) .subject-bar i{background:linear-gradient(90deg,#ed8ca0,#ffca58)}.subject-row:nth-child(3) .subject-bar i{background:linear-gradient(90deg,#947ce6,#69cbb3)}.subject-row__stars{color:#e6ae43;font:10px var(--mono);letter-spacing:.02em;white-space:nowrap}.badge-row{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;padding:15px 0 10px;border-top:1px solid #eee8de}.badge{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;transition:transform .2s}.badge--earned{transform:translateY(-3px)}.badge>span{width:40px;height:40px;display:grid;place-items:center;border:2px solid #e2ddd3;border-radius:50%;background:#f1efea;color:#b7b4ac;font-size:18px;filter:grayscale(1);transition:all .4s}.badge--earned>span{border-color:#ffca58;background:#fff1cb;color:#d38d22;filter:none;box-shadow:0 0 0 4px #ffca582a;animation:badgePop .45s}.badge small{color:#919aaa;font:7px var(--mono);letter-spacing:.04em}.badge--earned small{color:#69758f}.badge-note{margin:8px 0 0;color:#939cac;text-align:center;font-size:10px}.closing{min-height:375px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:65px 20px;overflow:hidden;background:#536fe2;color:#fff;text-align:center}.closing:before,.closing:after{content:"";position:absolute;width:380px;height:380px;border:1px dashed #ffffff40;border-radius:50%;animation:spin 40s linear infinite}.closing:after{width:530px;height:530px;animation-direction:reverse}.closing .eyebrow{position:relative;z-index:1;color:#dce4ff}.closing h2{position:relative;z-index:1;margin:15px 0 24px;font:600 clamp(53px,7vw,78px)/.95 var(--display);letter-spacing:-.04em}.closing h2 em{color:#ffdb83;font-style:normal}.closing__note{position:absolute;right:5%;bottom:18px;color:#d3dcff;font:8px var(--mono);letter-spacing:.1em}.closing__confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none}.closing__confetti i{position:absolute;color:#ffd36d;font-size:23px;font-style:normal;animation:confettiFloat 7s ease-in-out infinite}.closing__confetti i:nth-child(1){left:16%;top:23%}.closing__confetti i:nth-child(2){left:78%;top:26%;color:#ffabb2;animation-delay:-2s}.closing__confetti i:nth-child(3){left:24%;top:71%;color:#a1e8d3;animation-delay:-4s}.closing__confetti i:nth-child(4){left:82%;top:73%;animation-delay:-1s}.closing__confetti i:nth-child(5){left:65%;top:13%;color:#a1e8d3;animation-delay:-3s}.footer{min-height:115px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 7%;background:var(--ink);color:#fff}.brand--footer{font-size:21px}.brand--footer .brand__spark{box-shadow:none}.brand--footer small{color:#c4cce0}.footer__links{display:flex;gap:21px;color:#d2d8e6;font-size:11px}.footer__links a:hover{color:#ffce69}.footer>span{color:#adb7cd;font:8px var(--mono);letter-spacing:.08em}.game-dialog{width:min(650px,calc(100% - 28px));min-height:440px;max-height:90vh;position:relative;overflow:hidden;padding:30px;border:0;border-radius:23px;background:#fffdf8;color:var(--ink);box-shadow:0 26px 90px #23345b44}.game-dialog::backdrop{background:#253354a6;backdrop-filter:blur(5px)}.dialog-close{position:absolute;right:14px;top:14px;z-index:3;width:37px;height:37px;display:grid;place-items:center;border:0;border-radius:50%;background:#f0ede6;color:#60708a;font-size:21px;cursor:pointer}.game-progress-head{display:flex;justify-content:space-between;align-items:center;padding-right:42px;color:#79869c;font:9px var(--mono);letter-spacing:.07em}.game-progress-head span:last-child{color:var(--ink)}.question-bar{height:8px;margin-top:12px;overflow:hidden;border-radius:99px;background:#eeeae2}.question-bar i{height:100%;display:block;border-radius:99px;background:var(--blue);transition:width .45s}.game-dialog--pink .question-bar i{background:#f28a9d}.game-dialog--mint .question-bar i{background:#56be9e}.game-question-wrap{padding:28px 0 18px;text-align:center}.question-kicker{color:#8490a6;font:8px var(--mono);letter-spacing:.13em}.game-question-wrap h2{margin:10px 0 7px;font:600 28px/1.15 var(--display)}.game-instruction{margin:0;color:#7c889b;font-size:12px}.question-prompt{display:inline-block;margin:9px 0 3px;padding:11px 17px;border-radius:13px;background:#fff1cb;color:#33456b;font:600 24px var(--display);box-shadow:0 3px 0 #edcd86}.game-dialog--pink .question-prompt{background:#fde6ee;box-shadow:0 3px 0 #f3c1ce}.game-dialog--mint .question-prompt{background:#e4f5ee;box-shadow:0 3px 0 #bbe5d5}.answer-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.answer-option{min-height:56px;display:flex;align-items:center;gap:11px;padding:9px 12px;border:2px solid #e8e3d9;border-radius:13px;background:#fff;color:var(--ink);text-align:left;font-size:14px;font-weight:800;cursor:pointer;transition:transform .16s,border-color .16s,background .16s}.answer-option:hover:not(:disabled){transform:translateY(-2px);border-color:#9eb3ec;background:#f6f8ff}.answer-option>span{width:26px;height:26px;flex:none;display:grid;place-items:center;border-radius:8px;background:#f0eee8;color:#728099;font:10px var(--mono)}.answer-option.is-correct{border-color:#55bd99;background:#e8f8f0;color:#286d56;animation:answerPop .25s}.answer-option.is-correct>span{background:#55bd99;color:#fff}.answer-option.is-wrong{border-color:#ee8495;background:#fff0f2;color:#a94d5e;animation:shake .35s}.answer-option.is-wrong>span{background:#ee8495;color:#fff}.answer-option:disabled{cursor:default}.game-feedback{min-height:29px;margin-top:11px;color:#728098;text-align:center;font-size:12px;font-weight:800}.feedback--correct{color:#278562}.feedback--try{color:#b45e6c}.feedback--hint{color:#b27a24}.game-dialog__bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:8px}.hint-button{min-height:40px;padding:0 12px;border:1px solid #e7dfcf;border-radius:11px;background:#fff9e9;color:#917032;font-size:11px;font-weight:800;cursor:pointer}.hint-button:disabled{opacity:.6}.game-dialog__bottom .button{min-height:42px}.game-finish{position:relative;min-height:375px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px 4px;text-align:center}.finish-confetti{position:absolute;right:15%;top:6%;color:#f4b640;font-size:37px;animation:spin 10s linear infinite}.finish-label{color:#8490a6;font:9px var(--mono);letter-spacing:.14em}.game-finish h2{margin:12px 0 7px;font:600 38px var(--display)}.game-finish>p{max-width:390px;margin:0;color:#77849a;font-size:13px;line-height:1.7}.finish-score{display:grid;grid-template-columns:32px auto;grid-template-rows:1fr 1fr;align-items:center;column-gap:8px;margin:20px 0;padding:10px 16px;border-radius:15px;background:#fff1cb}.finish-score>span{grid-row:1/3;color:#d3942d;font-size:23px}.finish-score>b{align-self:end;color:#ae7721;font:600 23px var(--display)}.finish-score>small{align-self:start;color:#9c854e;font:7px var(--mono);letter-spacing:.06em}.finish-actions{display:flex;gap:10px}.confetti-canvas{position:absolute;inset:0;z-index:2;width:100%;height:100%;pointer-events:none}.toast{position:fixed;right:17px;bottom:17px;z-index:30;max-width:min(390px,calc(100vw - 34px));padding:13px 17px;border-radius:13px;background:var(--ink);color:#fff;font-size:11px;box-shadow:0 12px 32px #21345f3d;opacity:0;transform:translateY(12px);pointer-events:none;transition:opacity .25s,transform .25s}.toast.is-visible{opacity:1;transform:translateY(0)}dialog:not([open]){display:none}@keyframes bookFloat{50%{transform:translateY(-9px) rotate(1deg)}}@keyframes pencilWiggle{50%{transform:rotate(-7deg)}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes starPop{50%{transform:scale(1.2) rotate(16deg)}}@keyframes dotBounce{50%{transform:translateY(-10px)}}@keyframes wiggle{50%{transform:rotate(-4deg) translateY(-3px)}}@keyframes badgePop{0%{transform:scale(.6)}70%{transform:scale(1.18)}100%{transform:scale(1)}}@keyframes answerPop{50%{transform:scale(1.025)}}@keyframes shake{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}@keyframes confettiFloat{50%{transform:translateY(-15px) rotate(25deg)}}@media(max-width:950px){.header{padding:0 5%}.nav{gap:15px}.hero{padding-left:7%;padding-right:7%}.hero h1{font-size:clamp(55px,8vw,76px)}.hero__illustration{height:350px}.section-shell{padding-left:7%;padding-right:7%}.game-grid{gap:12px}.game-card__body{padding:15px 13px 12px}.game-card h3{font-size:20px}.game-card__body>p{font-size:11px}.progress-layout{gap:5%}}@media(max-width:720px){html{scroll-padding-top:70px}.header{height:70px;padding:0 5%}.brand{font-size:21px}.menu-toggle{width:40px;height:40px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;border:0;background:none}.menu-toggle span{width:20px;height:2px;background:var(--ink);transition:transform .2s}.menu-toggle[aria-expanded=true] span:first-child{transform:translateY(4px) rotate(45deg)}.menu-toggle[aria-expanded=true] span:last-child{transform:translateY(-4px) rotate(-45deg)}.nav{display:none;position:absolute;top:70px;left:0;right:0;padding:8px 5% 18px;background:var(--cream);flex-direction:column;align-items:stretch;gap:0;border-bottom:1px solid var(--line)}.nav.is-open{display:flex}.nav>a:not(.nav-cta),.nav>button{padding:14px 0;border-bottom:1px solid var(--line);text-align:left;font-size:14px}.nav-cta{display:flex;justify-content:space-between;margin-top:11px;font-size:12px}.hero{min-height:0;display:flex;flex-direction:column;align-items:stretch;gap:13px;padding:54px 7% 47px}.hero h1{font-size:clamp(52px,12.5vw,76px)}.hero__copy>p{font-size:15px}.hero .button{margin-top:20px}.hero__scribble{margin-top:25px;font-size:8px}.hero__illustration{height:min(82vw,355px);width:94%;margin:4px auto 0}.book-friend{width:min(100%,375px)}.shape--circle{width:40px;height:40px;left:6%;top:15%}.shape--star{right:5%;top:10%;font-size:30px}.illustration-note{font-size:8px}.note--one{left:0;bottom:14%}.note--two{right:-1%;bottom:22%}.hero__caption{font-size:7px}.score-strip{min-height:unset;justify-content:space-around;gap:10px;padding:15px 4%}.score-strip>div{gap:7px}.score-icon{width:30px;height:30px;border-radius:10px;font-size:14px}.score-strip b{font-size:19px}.score-strip small{font-size:7px;letter-spacing:.03em}.score-strip>i{height:29px}.score-strip>a{display:none}.section-shell{padding-left:6%;padding-right:6%}.games{padding-top:77px;padding-bottom:79px}.section-heading{display:block;margin-bottom:24px}.section-heading h2,.progress-section h2{font-size:clamp(42px,10.5vw,59px)}.section-heading>p{margin-top:13px;font-size:13px}.game-grid{grid-template-columns:1fr;gap:16px}.game-card{display:grid;grid-template-columns:.82fr 1.18fr;grid-template-rows:39px 1fr;border-radius:18px}.game-card__top{grid-column:1/3;grid-row:1;height:39px}.game-art{grid-column:1;grid-row:2;height:195px}.game-card__body{grid-column:2;grid-row:2;display:flex;flex-direction:column;justify-content:center;padding:14px 12px}.game-card h3{font-size:21px}.game-card__body>p{min-height:0;margin:8px 0;font-size:11px}.game-card__footer{gap:4px;margin-top:auto;padding-top:9px}.game-card__footer>span{font-size:7px}.play-button{padding:7px 9px;font-size:10px}.game-art:before{width:145px;height:145px}.word-stack{width:83px;height:83px;border-radius:16px}.word-stack b{font-size:20px}.word-stack i{font-size:10px}.speech-bubble{left:6%;top:15%;padding:6px 8px;font-size:12px}.english-sun{right:6%;top:12%;font-size:27px}.number-tile,.answer-tile{width:37px;height:48px;border-radius:9px;font-size:23px;box-shadow:3px 3px 0 var(--ink)}.answer-tile{width:37px;height:44px}.math-sign,.math-equals{margin:0 3px;font-size:19px}.letter-card{width:50px;height:62px;border-radius:11px;font-size:31px;box-shadow:3px 4px 0 var(--ink)}.language-ribbon{right:2%;bottom:9%;font-size:7px}.game-art__spark{right:7%;bottom:10%;font-size:20px}.best-score{font-size:8px;padding:4px 6px}.games-footnote{align-items:flex-start;font-size:7px;line-height:1.7}.progress-section{padding-top:75px;padding-bottom:78px}.progress-layout{grid-template-columns:1fr;gap:27px}.progress-copy{font-size:13px}.progress-board{padding:18px 15px}.progress-board__head{font-size:8px}.progress-board__head button{font-size:8px}.subject-row{grid-template-columns:37px 1fr auto;gap:8px}.subject-row__icon{width:33px;height:33px}.subject-row__main>div:first-child{font-size:10px}.subject-row__main>div:first-child span{font-size:9px}.subject-row__stars{font-size:8px}.badge-row{gap:6px}.badge>span{width:35px;height:35px;font-size:16px}.badge small{font-size:6px}.badge-note{font-size:9px}.closing{min-height:325px;padding:50px 15px}.closing h2{font-size:clamp(49px,11.5vw,68px)}.closing__note{right:3%;font-size:7px}.closing:before{width:300px;height:300px}.closing:after{width:400px;height:400px}.footer{min-height:0;flex-wrap:wrap;padding:20px 6%}.brand--footer{font-size:20px}.footer__links{order:3;width:100%;justify-content:space-between;gap:12px;font-size:11px}.footer>span{font-size:7px}.game-dialog{width:calc(100% - 20px);min-height:0;padding:23px 16px 18px;border-radius:19px}.game-progress-head{font-size:8px}.game-question-wrap{padding:24px 0 15px}.game-question-wrap h2{font-size:24px}.game-instruction{font-size:12px}.question-prompt{font-size:22px}.answer-grid{grid-template-columns:1fr;gap:8px}.answer-option{min-height:49px;padding:7px 10px;font-size:13px}.answer-option>span{width:24px;height:24px}.game-feedback{font-size:11px;min-height:31px}.game-dialog__bottom{margin-top:4px}.hint-button{font-size:10px}.game-dialog__bottom .button{font-size:11px}.game-finish{min-height:400px;padding:30px 5px}.game-finish h2{font-size:32px}.finish-actions{width:100%;flex-direction:column}.finish-actions .button{width:100%;justify-content:space-between}.toast{right:10px;bottom:10px;font-size:10px}}@media(max-width:390px){.score-strip{gap:7px}.score-strip>div{gap:5px}.score-strip small{font-size:6px}.score-icon{width:27px;height:27px}.game-card{grid-template-columns:.76fr 1.24fr}.game-art{height:180px}.game-card__body{padding:12px 10px}.game-card h3{font-size:19px}.game-card__body>p{font-size:10px}.game-card__footer>span{font-size:6px}.play-button{font-size:9px}.word-stack{width:73px;height:73px}.math-sign,.math-equals{margin:0 2px}.progress-board{padding:16px 12px}.badge small{font-size:5px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.hero__scribble,.reveal{opacity:1!important;transform:none!important}}
/* Manzanita y el bosque de las adivinanzas */
.game-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.game-card--riddles{background:#fffdf8}
.game-art--riddles{background:radial-gradient(circle at 50% 110%,#b7e7c5 0 20%,transparent 21%),linear-gradient(145deg,#e4f5e5,#c6ebd5)}
.game-art--riddles:before{border-color:#5e9b714d}
.game-art--riddles:after{content:"";position:absolute;left:-8%;right:-8%;bottom:-46px;height:83px;border-radius:50% 50% 0 0;background:#91cf9d}
.riddle-cloud{position:absolute;z-index:3;top:18px;left:23%;width:39px;height:39px;display:grid;place-items:center;border:2px solid #3a684f;border-radius:50% 50% 50% 12px;background:#fffdf8;color:#477453;font:700 22px var(--display);transform:rotate(-8deg);animation:cloudBob 2.5s ease-in-out infinite}
.mini-apple{position:absolute;z-index:2;left:25%;bottom:24px;font-size:65px;filter:drop-shadow(0 5px 0 #7aae8155);animation:appleHop 2.4s ease-in-out infinite}
.forest-animal{position:absolute;z-index:2;right:22%;bottom:23px;font-size:66px;filter:drop-shadow(0 5px 0 #7aae8155);animation:animalPeek 3s ease-in-out infinite}
.forest-animal--bunny{right:7%;bottom:12px;font-size:48px;animation-delay:-1.2s}
.forest-leaf{position:absolute;z-index:2;color:#43875b;font-size:22px;animation:leafDrift 4s ease-in-out infinite}
.forest-leaf--one{right:14%;top:23%}.forest-leaf--two{left:11%;bottom:24%;color:#efb957;animation-delay:-2s}
.game-dialog--purple .question-bar i{background:#9c8cf1}
.character-scene{min-height:104px;position:relative;display:flex;align-items:center;justify-content:center;gap:23px;margin:-2px 0 12px;padding:5px 18px;border-radius:19px;background:#fff6db;overflow:hidden}
.character-scene:before{content:"";position:absolute;left:0;right:0;bottom:0;height:24px;background:#e8f4dc}
.character-scene--riddle{background:linear-gradient(115deg,#e3f4e4,#f3f2d9)}
.character-scene--riddle:before{background:#cde8c7}
.apple-buddy,.animal-buddy{position:relative;z-index:1;width:77px;height:86px;display:grid;place-items:center;flex:none;animation:buddyFloat 2.8s ease-in-out infinite;transform-origin:50% 85%}
.apple-buddy svg{width:70px;height:80px;filter:drop-shadow(0 4px 0 #b54c4d33)}
.animal-buddy{font-size:62px;filter:drop-shadow(0 4px 0 #54734a33);animation-delay:-1.1s;transition:filter .45s,transform .45s}
.animal-buddy--mystery{filter:brightness(0) opacity(.14);transform:scale(.82)}
.character-speech{position:relative;z-index:1;max-width:205px;padding:10px 14px;border:2px solid #ead9a7;border-radius:16px 16px 16px 3px;background:#fffdf8;color:#586384;font-size:12px;font-weight:900;line-height:1.35}
.character-scene--riddle .character-speech{border-color:#bfdfbf}
.game-dialog--purple .game-question-wrap h2{color:#42624a}
.game-dialog--purple .question-kicker{color:#64916a}
.game-dialog--purple .question-prompt{background:#e4f3df;box-shadow:0 3px 0 #bfdfb9}
.game-dialog--purple .hint-button{border-color:#d5e7cf;background:#f1faec;color:#527a54}
.game-dialog--purple .answer-option:hover:not(:disabled){border-color:#acd1a4;background:#f3faef}
.game-dialog--purple .answer-option.is-correct{border-color:#68b878;background:#eaf8e8;color:#376a43}
.game-dialog--purple .answer-option.is-correct>span{background:#68b878}
.game-dialog--purple .button--blue{background:#6bab72;box-shadow:0 5px 0 #4c8b58}
.game-dialog--purple .button--blue:hover{background:#5e9e66;box-shadow:0 8px 0 #4c8b58}
.game-dialog--purple .game-feedback.feedback--correct{color:#428452}
.game-dialog--purple .game-feedback.feedback--try{color:#9f6d58}
@keyframes buddyFloat{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-7px) rotate(2deg)}}
@keyframes appleHop{0%,100%{transform:translateY(0) rotate(-5deg)}50%{transform:translateY(-9px) rotate(4deg)}}
@keyframes animalPeek{0%,100%{transform:translateY(2px)}50%{transform:translateY(-8px)}}
@keyframes cloudBob{0%,100%{transform:translateY(0) rotate(-8deg)}50%{transform:translateY(-5px) rotate(6deg)}}
@keyframes leafDrift{50%{transform:translateY(-8px) rotate(22deg)}}
@media(max-width:1050px){.game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.game-grid{grid-template-columns:1fr}.character-scene{min-height:88px;gap:13px;margin:0 0 10px;padding:2px 11px}.apple-buddy,.animal-buddy{width:64px;height:73px;font-size:51px}.apple-buddy svg{width:59px;height:68px}.character-speech{max-width:170px;padding:8px 10px;font-size:11px}.game-dialog{max-height:92vh;overflow-y:auto}.game-question-wrap{padding-top:18px}.game-dialog .answer-grid{gap:7px}.game-dialog .answer-option{min-height:46px}.game-art--riddles{height:195px}}
@media(prefers-reduced-motion:reduce){.mini-apple,.forest-animal,.forest-leaf,.riddle-cloud,.apple-buddy,.animal-buddy{animation:none}}
@media(max-width:720px){.game-card__body>p{font-size:13px;line-height:1.55;margin:8px 0}.game-card__footer>span{font-size:8px}.subject-label{font-size:9px}.game-dialog .answer-option{font-size:14px}.game-dialog .game-instruction{font-size:13px}.hint-button{font-size:12px}}
@media(max-width:390px){.game-card__body>p{font-size:12.5px}.game-card__footer>span{font-size:7px}}
/* Ventana de juego: contenido desplazable y acciones siempre a mano */
.game-dialog{height:auto;min-height:min(440px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:18px}
.game-dialog__bottom{position:sticky;bottom:-16px;z-index:4;margin:8px -2px -12px;padding:12px 2px 10px;background:linear-gradient(180deg,#fffdf8ed 0%,#fffdf8 32%)}
.character-scene--english{background:linear-gradient(115deg,#fff0db,#fff8e7)}
.character-scene--math{background:linear-gradient(115deg,#e9e8ff,#f7eafa)}
.character-scene--language{background:linear-gradient(115deg,#e5f2ff,#eff8ec)}
.character-scene--english:before{background:#f2dfc4}
.character-scene--math:before{background:#dfd9f0}
.character-scene--language:before{background:#d9ebd9}
.animal-buddy--arrive{animation:animalArrive .46s cubic-bezier(.2,.8,.2,1),buddyFloat 2.8s ease-in-out .46s infinite}
@keyframes animalArrive{0%{opacity:0;transform:translateY(15px) scale(.55) rotate(-12deg)}70%{opacity:1;transform:translateY(-5px) scale(1.13) rotate(5deg)}100%{opacity:1;transform:translateY(0) scale(1) rotate(0)}}
@media(max-width:720px){.game-dialog{min-height:min(420px,calc(100dvh - 16px));max-height:calc(100dvh - 16px);padding:20px 16px 18px}.game-dialog__bottom{bottom:-18px;margin-bottom:-16px;padding-bottom:12px}.character-scene{min-height:82px}.game-dialog .game-question-wrap h2{font-size:clamp(21px,6vw,25px);line-height:1.18}}
@media(max-height:740px){.game-dialog{min-height:0;padding-top:24px;padding-bottom:20px}.game-question-wrap{padding-top:16px;padding-bottom:10px}.character-scene{min-height:82px;margin-bottom:8px}.game-dialog__bottom{bottom:-18px;margin-bottom:-12px;padding-bottom:10px}}
@media(prefers-reduced-motion:reduce){.animal-buddy--arrive{animation:none}}
/* Respeta el atributo hidden en los paneles del juego */
#game-dialog [hidden]{display:none!important}

