
:root{--ink:#2d2a6e;--soft:#5b4f72;--purple:#7554d8;--pink:#c91464;--rim:#d6c8f5;--glass:#fffc;--shadow:0 10px 28px #62629b20;--font:var(--minik-font,"Noto Sans",Arial,sans-serif);color-scheme:light;font-family:var(--font);color:var(--ink);background:#ddf4ff;font-size:17px}*{box-sizing:border-box}html{min-height:100%;scroll-behavior:smooth}body{margin:0;min-height:100dvh;background:linear-gradient(#d5f0ff66,#f1ecffdd 80%),url(assets/art/sky-wide.webp) center bottom/cover fixed}body:has(.round-view){background:linear-gradient(#e9f5ffdd,#f6f0ffea),url(assets/art/sky-wide.webp) center/cover fixed}button,input,select,textarea{font:inherit;color:var(--ink)}button,a,input,select{touch-action:manipulation}button{cursor:pointer;border:2px solid transparent;background:#eee7ff;font-weight:600;border-radius:18px;padding:12px 20px;min-height:48px;transition:background .16s,transform .16s,box-shadow .16s;line-height:1.25;display:inline-flex;align-items:center;justify-content:center;gap:9px}button:hover{background:#ded2fa;box-shadow:0 4px 12px #6351991a}button:active{transform:translateY(2px)}button:disabled{cursor:default;opacity:.5;box-shadow:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #2468bc;outline-offset:4px}button.primary{background:var(--purple);color:white;box-shadow:0 5px 0 #5737a8}button.primary:hover{background:#6543c6}button.soft{background:#d9f2ea;color:#215b4e}button.ghost{background:transparent;color:var(--pink);box-shadow:none}button.icon{width:50px;padding:10px;font-size:25px}a{color:#633fbe;text-underline-offset:4px}input,select{border:2px solid var(--rim);border-radius:14px;background:white;min-height:48px;padding:10px 14px;max-width:100%;text-align:start}select{appearance:none;padding-inline-end:46px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%235c4588' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}[dir=rtl] select{background-position:left 12px center}input[type=checkbox]{width:23px;min-height:23px;accent-color:var(--purple)}input[type=range]{accent-color:var(--purple);width:100%;direction:ltr}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(1.8rem,4vw,3rem);line-height:1.15;letter-spacing:-.035em;margin-bottom:16px}h2{font-size:clamp(1.35rem,3vw,1.9rem);margin-bottom:14px}h3{font-size:1.1rem;margin-bottom:12px}p{color:var(--soft);line-height:1.6}small{line-height:1.45;color:var(--soft)}img{max-width:100%;object-fit:contain}svg{max-width:100%}[hidden]{display:none!important}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.skip{position:fixed;top:-100px;left:20px;background:white;padding:15px;z-index:50}.skip:focus{top:10px}.shell{max-width:1220px;padding:24px clamp(16px,3vw,40px) 34px;margin:auto}.topbar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:14px;margin-bottom:24px;min-height:62px}.brand{justify-self:start;display:flex;gap:10px;align-items:center;text-decoration:none;color:var(--ink);font-weight:700}.brand img{height:52px;width:52px;border-radius:14px}.brand span{font-size:1.2rem}.nav-end{justify-self:end;display:flex;gap:6px;align-items:center}.top-title{text-align:center;font-size:1.2rem;font-weight:600;margin:0}.back-icon{font-family:Arial;font-weight:900;font-size:29px;line-height:1}[dir=rtl] .back-icon{transform:scaleX(-1)}.glass{background:var(--glass);border:2px solid #fff;box-shadow:var(--shadow);border-radius:30px}.hero{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;min-height:360px;position:relative;padding:38px 44px;overflow:hidden;background:linear-gradient(120deg,#fffdf6,#f6efffdd)}.hero-copy{position:relative;z-index:1}.eyebrow{font-size:.88rem;letter-spacing:.07em;text-transform:uppercase;color:#7554b5;font-weight:700;margin-bottom:15px}.hero p{max-width:500px;font-size:1.12rem}.hero-visual{display:flex;align-items:center;justify-content:center;position:relative}.hero-visual:before{content:'';position:absolute;width:75%;aspect-ratio:1;border-radius:50%;background:radial-gradient(#ffe99b99,#dbdaff44 65%,transparent 66%)}.hero-visual img{position:relative;max-height:335px;width:100%;filter:drop-shadow(0 12px 8px #75639916);animation:float 6s ease-in-out infinite}.hero .primary{min-width:180px;margin-top:8px}.stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:20px 0 32px}.stat{padding:17px 23px;display:flex;align-items:center;gap:15px;background:#fff9;border:1px solid #fff;border-radius:22px}.stat-icon{font-size:25px;background:#f0e8ff;border-radius:16px;width:51px;height:51px;display:grid;place-items:center}.stat strong{font-size:1.25rem;display:block}.stat small{display:block}.section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:26px 0 18px}.section-head h2{margin:0}.activity-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.activity-card{display:flex;flex-direction:column;text-align:center;background:#fffdf5;border:2px solid #fff;border-radius:25px;min-width:0;padding:15px 12px 19px;box-shadow:var(--shadow);position:relative;color:var(--ink)}.activity-card:nth-child(4n+2){background:#eef9fd}.activity-card:nth-child(4n+3){background:#f9f0fc}.activity-card:nth-child(4n){background:#eefaf0}.activity-card:hover{transform:translateY(-4px);background:#fff;box-shadow:0 12px 24px #6351992c}.activity-card img{width:100%;height:135px;object-fit:contain;margin-bottom:9px}.activity-card b{font-size:1.03rem;line-height:1.35}.activity-card .card-index{position:absolute;top:12px;inset-inline-start:12px;background:#fff9;border-radius:50%;height:26px;width:26px;display:grid;place-items:center;font-size:.75rem;color:#81708d}.footer{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;margin-top:35px;padding:22px 4px 0;border-top:1px solid #b8b2df77;font-size:.88rem}.footer nav{display:flex;gap:20px;align-items:center;flex-wrap:wrap}.footer button{font-size:.88rem;padding:5px 8px;min-height:44px}.level-chip{background:#eee4ff;border:1px solid #d5bffe;padding:10px 17px;border-radius:100px;white-space:nowrap;display:inline-flex;gap:8px;align-items:center;font-weight:600}.panel{padding:clamp(22px,4vw,42px);max-width:850px;margin:0 auto}.panel.wide{max-width:none}.field{display:flex;flex-direction:column;gap:9px;margin-bottom:24px}.field>label,.field>legend{font-weight:600;color:var(--ink);margin-bottom:3px}.field small{max-width:660px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.check-row{display:flex;align-items:center;gap:12px;min-height:48px;text-align:start}.tags{display:flex;gap:8px;flex-wrap:wrap}.tags label{padding:8px 12px;background:#f1edff;border-radius:12px;display:flex;align-items:center;gap:6px;font-size:.9rem}.tags input{width:19px;min-height:19px}.actions{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;margin-top:26px}.actions>button{min-width:130px}.actions.end{justify-content:flex-end}.profile-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}.profile-card{flex-direction:column;min-height:120px;background:#e8f6fd}.profile-card[aria-pressed=true]{border-color:var(--purple)}.profile-card span{font-size:2rem}.notice{background:#fff2cb;border-radius:16px;padding:16px 20px;color:#69511e;margin:20px 0;line-height:1.5}.progress-table{width:100%;border-collapse:collapse;text-align:start}.progress-table th,.progress-table td{padding:14px 9px;border-bottom:1px solid #e3daf4;text-align:start}.progress-track{height:9px;background:#eae0f7;border-radius:10px;overflow:hidden;min-width:90px}.progress-track i{display:block;height:100%;background:linear-gradient(90deg,#74c7c9,#8963d7);border-radius:10px}.curriculum{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:24px}.curriculum>div{border:2px solid #eee5fa;border-radius:16px;padding:15px}.curriculum .active{border-color:var(--purple);background:#f3eaff}.curriculum b{display:block;margin-bottom:5px}.curriculum small{display:block}.round-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.round-progress{height:9px;background:#e3d9f8;border-radius:20px;max-width:500px;flex:1;overflow:hidden;direction:ltr}.round-progress i{display:block;height:100%;background:linear-gradient(90deg,#69caca,#9c6ae3);transition:width .4s}.round-count{font-variant-numeric:tabular-nums;font-weight:600}.round-view{max-width:1000px;margin:0 auto}.exercise{padding:25px clamp(16px,3vw,38px) 26px;position:relative}.exercise h1{font-size:1.6rem;text-align:center;letter-spacing:0}.exercise-tip{text-align:center;margin-bottom:14px}.prompt-area{display:flex;align-items:center;justify-content:center;gap:20px;min-height:180px;margin-bottom:20px;border-radius:22px;background:linear-gradient(145deg,#fcfbff,#eef6ff)}.rep{min-width:0;max-width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;padding:14px}.rep.text{font-size:clamp(1.8rem,5vw,3.8rem);font-weight:600;color:#423275;line-height:1.25;overflow-wrap:anywhere;direction:ltr;unicode-bidi:isolate;text-align:center}.rep.word{font-size:clamp(1.5rem,4vw,3rem);font-weight:500;line-height:1.4;overflow-wrap:anywhere;text-align:center}.rep.image img{max-height:170px;max-width:250px}.rep.quantity{flex-direction:row;flex-wrap:wrap;max-width:500px;gap:8px}.object{width:43px;height:43px;object-fit:contain;filter:drop-shadow(0 3px 2px #25356914)}.quantity-zero{font-size:5rem;color:#9588bc}.rep.place{flex-direction:row;gap:16px;flex-wrap:wrap}.ten-rod{display:grid;grid-template-columns:repeat(2,8px);grid-template-rows:repeat(5,8px);gap:2px;padding:3px;border:1px solid #98d3de;border-radius:5px;background:#ccf4fa}.ten-rod i,.one-cube{display:block;width:8px;height:8px;background:#69c6dd;border-radius:1px}.one-cube{width:18px;height:18px;background:#b096e4}.rod-group,.ones-group{display:flex;gap:5px;flex-wrap:wrap;justify-content:center;max-width:200px}.groups-rep{display:flex;flex-wrap:wrap;gap:9px;justify-content:center}.object-group{display:flex;flex-wrap:wrap;gap:3px;max-width:110px;min-width:40px;justify-content:center;padding:7px;border:2px dashed #c0ace7;border-radius:13px;background:#f8f2ff}.object-group .object{width:22px;height:22px}.fraction-grid{display:grid;gap:4px;width:min(100%,330px);direction:ltr;grid-template-columns:repeat(var(--columns,5),1fr)}.fraction-grid i,.fraction-grid button{height:36px;min-height:36px;padding:0;background:#e5e7f4;border-radius:5px;border:1px solid #d2cfe8}.fraction-grid .colored,.fraction-grid [aria-pressed=true]{background:#a987e3;border-color:#8761c3}.fraction-grid button:hover{background:#bdaceb}.rep.fraction{width:min(400px,90%)}.rep-label{font-size:.9rem;color:var(--soft);text-align:center}.line-svg{width:440px;height:110px;overflow:visible}.line-svg text{font:14px Arial;fill:var(--ink)}.geometry-svg{height:140px;width:250px;overflow:visible}.geometry-svg text{fill:var(--ink);font:19px var(--font)}.answer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.answer{background:#fff;border:2px solid var(--rim);min-height:105px;box-shadow:0 5px 0 #e5dcf5;padding:10px}.answer .rep.text,.answer .rep.word{font-size:clamp(1.4rem,3vw,2rem);padding:7px}.answer .rep.image img{max-height:105px}.answer.correct{background:#dff6dd;border-color:#74bba1}.answer.wrong{background:#fff0e9;border-color:#e7a992;animation:shake .25s}.answer:disabled{opacity:1}.answer.locked{opacity:.55}.feedback{min-height:54px;display:flex;align-items:center;justify-content:center;text-align:center;gap:12px;font-size:1.15rem;font-weight:600;padding:12px;color:#30634e}.feedback.retry{color:#aa4d35}.feedback img{height:42px;width:42px;object-fit:contain}.round-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:8px;flex-wrap:wrap}.round-actions .primary{min-width:150px}.gloss{text-align:center;margin:8px 0 0;font-size:1.05rem;color:var(--soft)}.tile-bank,.build-slot{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:9px;min-height:80px;padding:14px;border-radius:17px}.build-slot{border:2px dashed #b29bd7;background:#f2ebff;margin:16px 0}.build-slot.drag-over{background:#e6f7ec;border-color:#58ac84}.tile-bank{background:#f8f7ff}.token{min-width:46px;min-height:48px;padding:8px 12px;border-radius:12px;background:white;border:2px solid #c7b5e7;font-size:1.45rem;box-shadow:0 4px 0 #e3d9f6}.token.used{visibility:hidden}.type-input{display:block;width:min(480px,100%);margin:18px auto;text-align:center;font-size:1.6rem}.quantity-workbench{display:flex;gap:24px;justify-content:center;align-items:center;flex-wrap:wrap;padding:16px}.counter{display:flex;align-items:center;gap:12px;padding:12px 18px;background:#f5f0fe;border-radius:20px;flex-wrap:wrap;justify-content:center}.counter output{font-size:2rem;min-width:60px;text-align:center}.counter label{width:100%;text-align:center}.counter button{font-family:Arial;font-size:1.5rem;width:47px;padding:5px}.quantity-live{min-height:100px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px}.learn-stage{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:center;min-height:260px}.learn-stage .prompt-area{margin:0;min-height:240px}.learn-answer{text-align:center}.learn-answer .rep{min-height:110px}.flash-card{min-height:285px;display:flex;justify-content:center;align-items:center;background:linear-gradient(140deg,#f2eeff,#eafaff);border:2px solid #ddd0f5;border-radius:24px}.memory-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.memory-card{padding:8px;min-height:130px;background:#fff;border:2px solid #d1c0ec;position:relative;box-shadow:0 4px 0 #e4d9f4}.memory-card.back{background:linear-gradient(130deg,#9684d9,#c1b2ee);color:white}.memory-card.back span{font-size:2.5rem}.memory-card.selected{border-color:#558bbc;background:#e8f7ff}.memory-card.matched{opacity:.65;background:#e0f1e4;border-color:#a4cdae}.memory-card .rep{padding:5px;font-size:1.2rem}.memory-card .rep.image img{max-height:80px}.memory-card .object{width:20px;height:20px}.memory-card .rep.quantity{gap:3px}.memory-card .rep.fraction{width:100%}.memory-card .fraction-grid i{height:18px}.soccer-scene{height:190px;background:url(assets/art/field.webp) center 18%/cover;border-radius:20px;position:relative;overflow:hidden;margin-bottom:18px}.soccer-scene .goal{position:absolute;width:170px;height:105px;left:50%;top:4px;transform:translateX(-50%)}.soccer-scene .goalie{position:absolute;height:104px;left:50%;top:28px;transform:translateX(-50%);transition:transform .5s}.soccer-scene .ball{position:absolute;width:41px;height:41px;left:calc(50% - 20px);bottom:8px;transition:transform .65s cubic-bezier(.2,.7,.2,1)}.soccer-scene.goal-scored .ball{transform:translate(30px,-119px) scale(.46) rotate(200deg)}.soccer-scene.goal-scored .goalie{transform:translateX(-105px) rotate(-22deg)}.soccer-scene.missed .ball{transform:translate(-120px,-65px) rotate(-140deg)}.tower-scene{height:150px;background:url(assets/art/tower-scene.webp) center/cover;border-radius:20px;display:flex;align-items:flex-end;justify-content:center;overflow:hidden;margin-bottom:15px}.tower-stack{display:flex;flex-direction:column-reverse;align-items:center;padding-bottom:5px;gap:3px}.tower-block{height:19px;background:#93cde8;border:1px solid #fff;border-radius:4px;width:160px;box-shadow:0 2px 0 #5392ab;animation:drop .35s}.tower-block:nth-child(3n+2){background:#bdaaeb}.tower-block:nth-child(3n){background:#f0bfcf}.tower-scene.missed .tower-stack{animation:shake .3s}.tic-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-width:430px;margin:20px auto}.tic-grid button{aspect-ratio:1;font-size:clamp(2rem,6vw,3.5rem);background:#fff3ef;border:2px solid #f0d4ce}.result-art{height:155px;width:180px;display:block;margin:0 auto 20px}.result{text-align:center}.result h1{max-width:650px;margin:0 auto 20px;overflow-wrap:anywhere}.result .stats-row{max-width:650px;margin:22px auto}.result .stat{justify-content:center;background:#f7f1fd}.confetti{pointer-events:none;position:fixed;inset:0;overflow:hidden;z-index:40}.confetti i{position:absolute;width:9px;height:16px;top:-20px;background:var(--c);left:var(--x);animation:fall 2.5s var(--delay) ease-in forwards}.dialog-backdrop{position:fixed;inset:0;background:#26214466;backdrop-filter:blur(5px);z-index:60;display:grid;place-items:center;padding:20px}dialog{padding:30px;border:2px solid white;background:#fcfaff;color:var(--ink);border-radius:25px;box-shadow:0 20px 70px #251c5366;width:min(540px,calc(100% - 30px));max-height:90dvh;overflow:auto}dialog::backdrop{background:#26214466;backdrop-filter:blur(5px)}dialog h2,dialog p{text-align:start}dialog .actions{justify-content:flex-end;margin-top:26px;gap:12px}dialog .actions button{min-width:100px;color:#5a348e}dialog .actions .primary{color:white}dialog input{width:100%;margin-top:10px}dialog .gate-equation{font-size:2rem;direction:ltr;text-align:center;padding:18px;background:#f2eaff;border-radius:18px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#30285b;color:white;padding:15px 22px;border-radius:18px;box-shadow:var(--shadow);z-index:90;max-width:90%;text-align:center}#toast:empty{display:none}.ad-host{margin:35px auto 0;max-width:760px;text-align:center;min-height:0}.ad-host:empty{display:none}.ad-host small{display:block;font-family:Arial;font-size:12px;margin-bottom:8px}.pong-frame{height:min(85dvh,900px);width:100%;border:0;border-radius:20px;background:#edf5ff}.game-canvas{width:100%;max-height:75dvh;touch-action:none;border-radius:22px;background:#c3e4f0}.mobile-title{display:none}.loader{display:grid;place-items:center;min-height:80dvh}.loader img{width:180px;animation:float 3s infinite}.sr-status{min-height:20px;text-align:center}.construct-line{width:min(95%,580px);margin:20px auto;padding:20px 0}.construct-line output{display:block;text-align:center;font-size:2rem}.math-only{direction:ltr;unicode-bidi:isolate}.loading-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--purple);animation:pulse 1s infinite}
@keyframes float{50%{transform:translateY(-8px)}}@keyframes shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}@keyframes drop{from{transform:translateY(-65px);opacity:.4}}@keyframes fall{to{transform:translateY(105vh) rotate(720deg);opacity:.15}}@keyframes pulse{50%{opacity:.3}}@media(min-width:1450px){.hero{min-height:410px}.hero-visual img{max-height:365px}}@media(max-width:900px){.activity-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero{padding:28px;min-height:300px}.hero-visual img{max-height:270px}.brand span{display:none}.hero h1{font-size:2.2rem}.stats-row{gap:9px}.stat{padding:14px;gap:10px}}@media(max-width:600px){:root{font-size:16px}.shell{padding:15px 14px 25px}.topbar{margin-bottom:16px;gap:5px;min-height:50px}.topbar .ghost{padding:8px;min-height:44px}.top-title{font-size:1.05rem}.brand img{height:43px;width:43px}.hero{padding:26px 22px 20px;grid-template-columns:1fr;min-height:0;text-align:center}.hero p{font-size:1rem;line-height:1.4;margin-bottom:12px}.hero-visual{grid-row:1}.hero-visual img{height:180px;margin-bottom:15px}.hero h1{font-size:2.05rem;margin-bottom:12px}.hero .eyebrow{display:none}.hero .primary{width:100%;margin-top:4px}.stats-row{margin:14px 0 25px;gap:7px}.stat{padding:12px 5px;display:block;text-align:center;border-radius:18px}.stat-icon{display:none}.stat strong{font-size:1.2rem}.stat small{font-size:.78rem}.section-head{margin-top:20px;align-items:flex-start}.section-head h2{font-size:1.4rem}.section-head .level-chip{font-size:.85rem;padding:7px 12px}.activity-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.activity-card{padding:12px 8px 15px;border-radius:23px}.activity-card img{height:113px}.activity-card b{font-size:1rem}.footer{justify-content:center;text-align:center;margin-top:27px;gap:8px}.footer nav{justify-content:center;gap:10px}.field-grid,.curriculum{grid-template-columns:1fr}.panel{padding:23px 18px}.learn-stage{grid-template-columns:1fr;gap:6px}.learn-stage .prompt-area{min-height:180px}.learn-answer .rep{min-height:80px}.exercise{padding:20px 14px}.exercise h1{font-size:1.3rem}.exercise-tip{font-size:.95rem}.prompt-area{min-height:155px;gap:5px;margin-bottom:17px}.rep.image img{max-height:140px;max-width:220px}.answer-grid{gap:12px}.answer{min-height:86px;padding:5px}.answer .rep.word{font-size:1.3rem}.rep.quantity{gap:5px}.object{width:31px;height:31px}.rep.text{font-size:2.1rem}.rep.word{font-size:1.85rem}.round-top{margin-bottom:14px}.round-actions{gap:8px}.round-actions>div{display:flex;gap:3px}.round-actions .ghost{padding:8px;font-size:.88rem}.round-actions .primary{min-width:95px}.memory-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.memory-card{min-height:104px;padding:5px}.memory-card .rep.text,.memory-card .rep.word{font-size:1rem}.memory-card .rep.image img{height:64px}.memory-card .object{width:16px;height:16px}.memory-card .rep{gap:3px}.memory-card .line-svg{height:55px}.memory-card .geometry-svg{height:60px}.tile-bank,.build-slot{gap:7px;padding:10px}.token{min-width:41px;padding:8px;min-height:45px;font-size:1.25rem}.result .stats-row{grid-template-columns:repeat(3,1fr)}.result-art{height:130px}.actions>button{min-width:120px}.soccer-scene{height:165px}.soccer-scene.goal-scored .ball{transform:translate(30px,-95px) scale(.46)}.progress-table{font-size:.86rem}.progress-track{min-width:65px}.line-svg{width:275px}.fraction-grid{max-width:260px}.ad-host{overflow:hidden}.topbar .language-toggle{font-size:.8rem;padding:8px}.flash-card{min-height:240px}}
@media(max-height:520px) and (min-width:650px){.shell{padding-top:10px}.topbar{margin-bottom:10px}.round-top{margin-bottom:10px}.exercise{padding:16px}.prompt-area{min-height:110px;margin-bottom:12px}.rep.image img{max-height:100px}.answer{min-height:65px}.hero{min-height:0}.hero-visual img{height:220px}.round-view{max-width:1050px}.soccer-scene{height:120px}.game-canvas{max-height:80dvh}.footer{margin-top:20px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.topbar>.back-button{justify-self:start}.opponent-picker{display:flex;align-items:center;justify-content:center;gap:25px;touch-action:pan-y}.opponent-picker img{height:180px;width:180px}.opponent-picker button{font-size:32px;min-width:50px}.opponent-name{text-align:center;margin:14px 0 24px;font-size:1.4rem}.pong-score{display:flex;justify-content:center;gap:30px;padding:12px;align-items:center}.pong-score strong{font-size:1.7rem}.pong-score span{display:flex;gap:10px;align-items:center}

html[lang=ar]{--font:Tahoma,Arial,sans-serif}html[lang=ar] .exercise-tip,html[lang=ar] p{font-size:1.08rem}html[lang=hi]{--font:"Nirmala UI",Arial,sans-serif}html[lang=ar] .rep[dir=ltr],html[lang=hi] .rep[dir=ltr]{font-family:Fredoka,Arial,sans-serif}.file-label{display:inline-flex;align-items:center}

.guide-instruction{max-width:750px;margin:0 auto 18px;font-size:1.08rem;background:#ffffffd9;border-radius:18px;padding:16px 22px}.pong-guide-page .actions{margin-top:8px;margin-bottom:28px}.pong-guide-page .game-canvas{max-height:65dvh}.game-canvas{display:block;max-width:750px;margin:auto}

.soccer-answers{grid-template-columns:repeat(3,minmax(0,1fr));max-width:620px;margin-inline:auto;gap:18px}.soccer-answers .answer{border-radius:50%;aspect-ratio:1;min-height:0;background:radial-gradient(circle at 35% 25%,#fff 20%,#e6eff9 80%);box-shadow:0 7px 0 #c4d3e9;padding:10px}.soccer-answers .rep{padding:5px;font-size:clamp(1.1rem,4vw,2rem)}.retro-embed .pong-frame{height:calc(100dvh - 105px);min-height:360px;border-radius:20px}.retro-embed{padding:0}.shell.wide:has(.retro-embed){max-width:1600px;padding-bottom:0}

.block-bank{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:22px 0}.count-block{width:48px;height:36px;min-height:36px;border-radius:8px;background:linear-gradient(#c7b6f0,#9983cf);border:2px solid #fff;box-shadow:0 4px 0 #8268b4}.count-block.stacked{opacity:.3;box-shadow:none}.soccer-answers .answer.selected{outline:4px solid #7060c4;outline-offset:2px}.soccer-scene.saved-shot .ball{transform:translate(52px,-100px) scale(.6) rotate(170deg)}.soccer-scene.saved-shot .goalie{transform:translateX(0) rotate(15deg)}

.tower-stack .tower-block{height:clamp(4px,calc(130px / var(--blocks,6) - 3px),19px);flex-shrink:0}

/* 17-item release: one playful, legible exercise system for words AND numbers. */
:root{--ink:#30215b;--soft:#665677;--purple:#7441cd;--pink:#c42675;--rim:#d7b8f2}
body{background:linear-gradient(135deg,#ddf5ffb0,#ebd9ffc7 47%,#ffe4f2c2),url(assets/art/sky-wide.webp) center bottom/cover fixed}
body:has(.round-view){background:radial-gradient(ellipse at 15% 5%,#fcf1ffcc,transparent 46%),linear-gradient(150deg,#d5c0fae6,#edd0f4d4 55%,#d6f3ffe0),url(assets/art/sky-wide.webp) center/cover fixed}
.topbar{position:relative;z-index:2;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
.nav-end{flex-wrap:wrap;justify-content:flex-end;max-width:100%}
.home-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border-radius:16px;background:#fffef7;border:2px solid #e0cef5;color:#5d309e;text-decoration:none;font-weight:700;font-size:14px;line-height:1.3;box-shadow:0 4px 0 #bba1d729}
.home-button>span{font-size:22px;line-height:1}
.top-title{max-width:320px;overflow-wrap:anywhere}
.eyebrow{unicode-bidi:isolate}
.round-view{position:relative;max-width:940px}
.round-view:before,.round-view:after{content:'✦';position:absolute;font-size:36px;line-height:1;color:#fff;pointer-events:none;z-index:0;text-shadow:0 2px 8px #ffbd5688}
.round-view:before{inset-inline-start:-22px;top:115px}.round-view:after{inset-inline-end:-18px;top:310px;font-size:25px;color:#ffdd68}
.round-top{gap:20px;margin-bottom:19px}.round-top .round-progress{height:12px;border:2px solid #ffffffb9;border-radius:30px;background:#ffffff73;flex:1}
.round-progress>i{background:linear-gradient(90deg,#7b46db,#ec78bb,#ffbd76);border-radius:30px;min-width:2px}
.round-count{font-weight:700;color:#5a3888;background:#fff8;border:1px solid #fff;border-radius:25px;padding:7px 12px;font-size:14px}
.exercise{position:relative;background:linear-gradient(160deg,#fffdf9f7,#fff6fcf7 68%,#f1f9fff7);border:3px solid #fff;border-radius:30px;box-shadow:0 20px 45px #7554ac2b,0 3px 0 #d6b6ef;padding:30px clamp(16px,3vw,34px);isolation:isolate;overflow:visible}
.exercise:before{content:'';position:absolute;inset-inline-end:12px;top:-18px;width:85px;height:45px;background:url('../assets/v2/images/atmosphere/cloud-white.webp') center/contain no-repeat;pointer-events:none;z-index:-1;opacity:.9}
.exercise h1{font-size:clamp(24px,3.1vw,34px);color:#5c3096;text-align:center;margin:0 0 10px;font-weight:800;letter-spacing:-.015em}
.exercise-tip{font-size:16px;line-height:1.65;color:#6b507a;max-width:640px;text-align:center;margin:0 auto 18px}
.prompt-area{border:1px solid #fff;border-radius:23px;background:radial-gradient(ellipse at center,#fff 8%,#f4eeffb8 73%);min-height:165px;padding:14px;margin-bottom:18px;box-shadow:inset 0 0 20px #dac9f114}
.rep.image img{max-height:185px;filter:drop-shadow(0 5px 3px #77469618)}
.rep.word{font-weight:700}.rep.text{font-weight:700}
.gloss{text-align:center;color:#695177;margin:5px 0 15px}
.tile-bank,.build-slot{justify-content:center;gap:10px;padding:16px;border-radius:21px;min-height:84px}
.tile-bank{background:#eee4ff99;border:1px solid #e2d0f7;margin:15px 0}
.build-slot{background:#f7efff;border:2px dashed #9b6ac6;margin-top:16px;box-shadow:inset 0 3px 8px #9c5fb611}
.slot-prompt{color:#9875bf;font-size:27px;letter-spacing:4px}
.token{--tile-color:#7040c4;--tile-edge:#4f279c;--tile-text:#fff;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(145deg,color-mix(in srgb,var(--tile-color),white 19%),var(--tile-color));border:2px solid #ffffffcc;color:var(--tile-text);border-radius:12px;min-width:46px;min-height:48px;line-height:1;font-size:23px;font-weight:800;box-shadow:0 4px 0 var(--tile-edge),0 5px 8px #68418c22;touch-action:none;user-select:none;-webkit-user-select:none;text-shadow:0 1px 2px #0001}
.token[style*="--tile:1"]{--tile-color:#167bbe;--tile-edge:#106196}.token[style*="--tile:2"]{--tile-color:#10796a;--tile-edge:#096252}.token[style*="--tile:3"]{--tile-color:#ecb92b;--tile-edge:#b58813;--tile-text:#432b16}.token[style*="--tile:4"]{--tile-color:#d63c83;--tile-edge:#a62866}.token[style*="--tile:5"]{--tile-color:#bf5a1d;--tile-edge:#8f4013}
.token:hover{background:linear-gradient(145deg,color-mix(in srgb,var(--tile-color),white 30%),var(--tile-color));color:var(--tile-text);box-shadow:0 4px 0 var(--tile-edge),0 8px 16px #68418c30}
.token.accepted,.token.stacked-letter{opacity:1;animation:tile-land .24s ease-out;cursor:default}
.token.used{visibility:hidden;pointer-events:none}
.dragging-token{position:relative;z-index:30;box-shadow:0 14px 25px #59317655;cursor:grabbing;transition:none!important}
.drag-over{background:#e8fff4!important;border-color:#2eac87!important;box-shadow:0 0 0 5px #41c19630!important}
.token.wrong,.type-input.wrong{animation:shake .3s;outline:3px solid #dd4372;outline-offset:2px}
.round-actions{margin-top:14px;align-items:center;flex-wrap:wrap}.round-actions>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.round-actions .listen-button{font-size:14px;min-height:44px;border:1px solid #b3ddd6;box-shadow:0 3px 0 #85b9ac30}.listen-button.speaking{box-shadow:0 0 0 4px #11b59b45}
.feedback{display:flex;flex-direction:column;gap:8px;padding:8px;min-height:0;font-size:19px;line-height:1.55;text-align:center;clear:both}
.feedback:empty{display:none}
.feedback img.feedback-cat{width:168px;height:168px;max-width:100%;object-fit:contain;order:1;margin:2px auto 0;filter:drop-shadow(0 7px 5px #8960a428)}
.feedback>strong{order:2}.feedback>p{order:3;margin:0;font-size:14px;max-width:380px}
.feedback.retry{margin-top:18px;padding:17px;background:#fff1f4;border:2px solid #ffcedb;border-radius:23px;color:#913654}
.feedback.success{margin-top:16px;background:#edfff7;border:2px solid #a8dfc7;border-radius:23px;color:#1d7054;animation:celebrate-answer 1s ease-in-out both}
.feedback.success img.feedback-cat{width:100px;height:100px}
.exercise.completed{border-color:#a8e5cd}
.answer-grid{gap:17px}.answer{border:2px solid #d2b4ea;background:linear-gradient(140deg,#fff,#f8edff);box-shadow:0 5px 0 #c7abe134;border-radius:21px;min-height:106px;transition:transform .17s,border-color .17s}
.answer:nth-child(4n+2){border-color:#97cce9;background:linear-gradient(140deg,#fff,#edf9ff)}.answer:nth-child(4n+3){border-color:#e6b7d1;background:linear-gradient(140deg,#fff,#fff0f7)}.answer:nth-child(4n){border-color:#c0d895;background:linear-gradient(140deg,#fff,#f0f9e5)}
.answer.correct,.answer.correct:disabled{background:#d1f7e6!important;border-color:#1b9471!important;color:#174b3a;opacity:1}
.answer.wrong{background:#ffdae5!important;border-color:#c72e60!important;animation:shake .3s}
.memory-grid{gap:16px}.memory-card{background:#fffcfa;border:2px solid #cdb4e6;box-shadow:0 5px 0 #bba1d33b;border-radius:21px;min-height:145px;min-width:0}
.memory-card.selected,.memory-card.selected:disabled{opacity:1!important;background:#ffdc78!important;border:3px solid #9c51d0!important;outline:4px solid #ce8eff55;outline-offset:2px;box-shadow:0 5px 0 #a75ecc50;transform:translateY(-3px);color:#332056}
.memory-card.matched,.memory-card.matched:disabled{opacity:1!important;background:#d3f6e5!important;border-color:#198362!important;box-shadow:0 3px 0 #2da88130;color:#174b3a}
.memory-card.back{background:linear-gradient(140deg,#efc8fa,#d6d5ff 55%,#caeef5);border:2px solid white}
.memory-card .memory-back-art{height:108px;width:108px;object-fit:contain;filter:drop-shadow(0 4px 2px #7040a222)}
.memory-card .pair-mark{position:absolute;inset-inline-end:5px;top:5px;background:#158565;color:#fff;border-radius:50%;height:22px;width:22px;font-size:15px;line-height:22px}
.memory-card .rep{overflow-wrap:anywhere}.memory-card .rep.image img{max-height:105px}
.flash-card{display:flex;width:min(100%,610px);margin:0 auto;align-items:center;justify-content:center;min-height:275px;background:linear-gradient(135deg,#fff7e3,#f3e8ff 58%,#e2f4ff);border:3px solid #fff;border-radius:25px;box-shadow:0 8px 0 #b499d733,0 15px 30px #ab89bc22;cursor:pointer}
.flash-card:hover{background:#f4ecff}.flash-card .rep.image img{max-height:240px}.type-input{display:block;width:min(100%,570px);margin:18px auto;text-align:center;font-size:25px;border:3px solid #b886d9;background:#fff;border-radius:18px;letter-spacing:.04em;min-height:58px;box-shadow:0 4px 0 #d5bde630}
.quantity-workbench{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:18px;background:#f1e8ffa6;border:2px solid #e0ccf3;border-radius:24px;padding:20px}
.quantity-live{width:100%}.counter{background:#fff9;border:2px solid white;border-radius:18px;padding:12px;display:flex;align-items:center;gap:13px;flex-wrap:wrap;justify-content:center}.counter label{flex-basis:100%;text-align:center}.counter output{font-size:26px;color:#56317e;min-width:35px;text-align:center}.counter button{background:#8b4bd0;color:white;font-size:25px;box-shadow:0 4px 0 #652caa;min-width:48px}
.fraction-grid button{aspect-ratio:1;min-height:32px;min-width:0;border:2px solid #b399da;background:#fff;border-radius:8px;padding:0}.fraction-grid button[aria-pressed=true]{background:#8250c9;opacity:1!important;border-color:#572ca0}.range-ticks{display:flex;justify-content:space-between;direction:ltr}
.stacking-board{position:relative;display:flex;align-items:flex-end;justify-content:center;background:linear-gradient(180deg,#dcf2ffbb,#fbf3ffa8 60%,#ffe5b8a8);border:2px solid #d5bbef;border-radius:22px;padding:20px 12px 24px;overflow:visible;touch-action:pan-y}
.stacking-board:before{content:'';position:absolute;inset:10px 5% auto;height:100px;background:url('../assets/v2/images/atmosphere/cloud-white.webp') left top/100px auto no-repeat;pointer-events:none;opacity:.6}
.growing-tower{display:flex;flex-direction:column-reverse;align-items:center;gap:3px;position:relative;z-index:1;min-width:126px}
.growing-tower .stacked-letter{width:126px;height:var(--stack-block-height);min-height:var(--stack-block-height);border-radius:8px;font-size:22px;padding:2px 7px;flex:none}
.tower-dropzone{background:#fff8;border:2px dashed #9954d0;box-shadow:0 0 0 4px #e9d6fc;min-height:48px;height:48px;padding:2px 10px;min-width:126px;border-radius:10px;display:flex;align-items:center;justify-content:center;gap:8px;flex:none;touch-action:manipulation}
.tower-dropzone>span{font-size:21px;color:#8050b3}.tower-dropzone small{font-size:12px;color:#6d4198}.tower-dropzone:disabled{opacity:0;pointer-events:none;visibility:hidden}
.tower-ground{position:absolute;bottom:10px;left:20%;right:20%;height:14px;border-radius:50%;background:#97745925}
.tower-bank{margin-bottom:0;gap:13px}.tower-bank .token{cursor:grab}.tower-bank .token:active{cursor:grabbing}.policy-link{min-height:44px;display:inline-flex;align-items:center}
@keyframes tile-land{from{transform:translateY(-6px) scale(1.08)}to{transform:none}}@keyframes celebrate-answer{0%{transform:scale(.96)}35%{transform:scale(1.02)}65%{transform:scale(1)}100%{transform:scale(1)}}
@media(max-width:900px){.topbar{grid-template-columns:auto 1fr}.top-title{grid-column:1/-1;grid-row:2;justify-self:center}.nav-end{grid-column:2;grid-row:1}.topbar .brand span{display:none}}
@media(max-width:600px){.shell{padding:15px 13px 24px}.topbar{gap:7px;margin-bottom:15px}.home-button{font-size:12px;padding:8px;gap:5px;min-height:44px}.home-button>span{font-size:19px}.nav-end{gap:3px}.topbar .language-toggle{font-size:12px}.round-view:before,.round-view:after{display:none}.exercise{padding:24px 13px 18px;border-radius:27px}.exercise h1{font-size:24px;margin-bottom:10px}.exercise-tip{font-size:14px;margin-bottom:14px;line-height:1.55}.prompt-area{min-height:135px;padding:8px;margin-bottom:15px}.rep.image img{max-height:153px}.tile-bank,.build-slot{gap:8px;padding:12px;min-height:70px}.token{min-width:41px;min-height:45px;font-size:21px;padding:8px}.memory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.memory-card{min-height:116px}.memory-card .memory-back-art{height:90px;width:90px}.memory-card .rep.image img{max-height:80px;height:80px}.memory-card .rep.word{font-size:18px}.memory-card .rep.text{font-size:22px}.feedback img.feedback-cat{width:168px;height:168px}.feedback{font-size:19px}.feedback.retry{padding:14px}.feedback>p{font-size:13px}.round-actions{gap:12px;justify-content:space-between}.round-actions .listen-button{padding:8px;font-size:12px}.round-actions>div{gap:3px}.round-count{font-size:12px}.answer-grid{gap:12px}.answer{min-height:92px}.flash-card{min-height:245px}.flash-card .rep.image img{max-height:205px}.quantity-workbench{padding:14px;gap:12px}.type-input{font-size:23px}.growing-tower .stacked-letter{font-size:20px;width:118px}.tower-dropzone{min-width:118px}.writing-bank{gap:10px}.topbar .back-button{font-size:13px}.hero .hero-copy .eyebrow{display:block;letter-spacing:0;font-size:14px}}
@media(max-width:350px){.home-button{font-size:11px;padding:7px}.topbar .language-toggle{font-size:11px}.nav-end{gap:0}.memory-card .rep.word{font-size:16px}.exercise{padding-inline:10px}.round-actions>div{flex-wrap:wrap}.token{min-width:38px}}
@media(prefers-reduced-motion:reduce){.token,.exercise,.feedback,.memory-card{animation:none!important;transition:none!important}}

/* Long answers remain genuinely draggable: the bank stays below a bounded tower viewport. */
.stacking-board{display:block;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-color:#b188d2 #f0e6fa}
.growing-tower{min-height:100%;justify-content:flex-start;margin:0 auto;width:max-content;padding-bottom:8px}
.stacking-board .tower-ground{display:none}
.growing-tower:before{content:"";position:absolute;bottom:0;left:-20px;right:-20px;height:8px;border-radius:50%;background:#98765433;pointer-events:none}

/* Back is one aligned control: an SVG icon, not a font-dependent arrow glyph. */
.topbar .back-button{display:inline-flex;align-items:center;justify-content:flex-start;justify-self:start;gap:8px;min-height:44px;white-space:nowrap;}
.topbar .back-button>.back-icon{display:block;flex:0 0 24px;width:24px;height:24px;line-height:1;margin:0;vertical-align:middle;transform:none;}
.topbar .back-button>span{display:block;line-height:1.4;}
html[dir="rtl"] .topbar .back-button>.back-icon{transform:scaleX(-1);}
