:root{font-family:ui-rounded,'Arial Rounded MT Bold','Trebuchet MS',sans-serif;color:#193c33;background:#12382e;font-synthesis:none;--gold:#ffd668;--ink:#193c33;--cream:#fffcef;--green:#287653}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default}button:focus-visible,input:focus-visible{outline:4px solid #1499e0;outline-offset:4px}button{border:0}#app{max-width:1600px;margin:auto;min-height:100svh;background:#e7f1d9}.shell{height:100svh;min-height:570px;display:flex;flex-direction:column;overflow:hidden}.topbar{height:72px;flex-shrink:0;background:#163f34;color:#fff9db;display:flex;align-items:center;justify-content:space-between;padding:10px 28px;gap:12px;box-shadow:0 3px 0 #0c2923;z-index:3}.brand{font-weight:900;letter-spacing:1.8px;font-size:14px;line-height:1.5}.brand span{display:block;font-size:23px;letter-spacing:-.6px;color:var(--gold)}.tools{display:flex;gap:10px}.icon-btn{min-height:46px;min-width:48px;border:1px solid #ffffff45;border-radius:14px;background:#ffffff13;color:inherit;font-size:22px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:8px 13px}.tools .label{font-size:15px}.surface{position:relative;flex:1;min-height:0;background:linear-gradient(#184f3933,#12362b55),url('assets/eco-meadow.webp') center/cover;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px}.welcome-title{text-align:center;color:white;text-shadow:0 3px 8px #143226;z-index:1;margin-bottom:20px}.eyebrow{text-transform:uppercase;font-size:14px;letter-spacing:3px;font-weight:900;color:var(--gold)}h1{font-size:clamp(32px,4.5vw,58px);letter-spacing:-2px;line-height:1.05;margin:8px 0 12px}h2{margin:0;font-size:30px;line-height:1.2}p{font-size:18px;line-height:1.5;margin:10px 0}.choose-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;max-width:1120px;width:100%}.hero-choice{border-radius:24px;background:linear-gradient(#fffdf0,#f1f0cb);border:3px solid #fff6d6;box-shadow:0 7px 0 #153e32aa;padding:10px 5px 17px;color:var(--ink);transition:transform .2s}.hero-choice:hover{transform:translateY(-8px)}.hero-choice img{width:100%;height:clamp(115px,19vw,200px);object-fit:contain;filter:drop-shadow(0 8px 5px #143f3320)}.hero-choice strong{font-size:18px}.welcome-foot{color:white;margin-top:22px;text-shadow:0 2px 4px #143326;font-size:18px}.primary{border-radius:18px;background:var(--gold);color:#263c2c;box-shadow:0 5px 0 #ca9638;padding:15px 30px;font-size:23px;font-weight:900;min-height:60px}.primary:active{transform:translateY(3px);box-shadow:0 2px 0 #ca9638}.secondary{background:#e5efde;color:var(--ink);border:2px solid #c7d9c0;border-radius:16px;padding:12px 20px;font-weight:800;font-size:18px;min-height:50px}.map{background:linear-gradient(#132e3030,#0c302066),url('assets/pinewatch.webp') center/cover;justify-content:space-between}.map-heading{border-radius:20px;background:#fffcefef;padding:14px 25px;text-align:center;box-shadow:0 4px 18px #092c3433}.map-heading p{margin:4px 0 0}.trail{position:relative;display:grid;grid-template-columns:repeat(4,1fr);align-items:center;gap:35px;width:min(950px,95%);margin:30px 0}.trail:before{content:'';position:absolute;top:50%;left:8%;right:8%;height:12px;background:#fce1a0;border:2px solid #b58d4a;border-radius:12px;transform:rotate(-4deg)}.stop{position:relative;border:4px solid #fff4cc;background:var(--cream);box-shadow:0 9px 0 #6a4a28,0 14px 28px #10332077;border-radius:26px;min-height:155px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:16px 8px;color:var(--ink)}.stop:nth-child(2){transform:translateY(20px)}.stop:nth-child(4){transform:translateY(-20px)}.stop .symbol{font-size:47px;font-weight:900;line-height:1.2}.stop strong{font-size:21px;margin-top:9px}.stop .stars{font-size:23px;letter-spacing:3px;margin-top:5px;color:#b17b12}.stop.next{outline:5px solid var(--gold);outline-offset:7px;animation:beacon 2.4s ease-in-out infinite}.stop.locked{background:#d5dfc9;filter:saturate(.3)}.stop .done{position:absolute;right:-12px;top:-14px;background:#257a50;border:3px solid white;border-radius:50%;color:white;width:38px;height:38px;font-size:24px}.companion{display:flex;align-items:center;gap:14px;background:#fffcefef;border:2px solid #fff8d1;border-radius:22px;padding:10px 20px;max-width:560px}.companion img{height:82px;width:82px;object-fit:contain}.companion strong{font-size:23px}.companion .level{font-size:17px;margin:4px 0}.xp{height:10px;border-radius:9px;background:#d7e4ce;overflow:hidden;width:170px}.xp i{display:block;height:100%;background:#3b9d6b;transition:width .5s}.speak{background:#ecf4df;border:2px solid #c9debd;color:#1e583f;border-radius:50%;height:52px;width:52px;flex-shrink:0;font-size:26px}.battle{flex:1;min-height:0;display:flex;flex-direction:column}.arena{position:relative;min-height:155px;height:32vh;max-height:270px;background:linear-gradient(#123a3210,#183b3022),url('assets/eco-meadow.webp') center 68%/cover;overflow:hidden}.fighters{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:space-between;padding:15px max(8%,20px) 3px}.fighter{width:35%;height:95%;object-fit:contain;filter:drop-shadow(0 9px 5px #133d3155)}.fighter.enemy{width:29%;height:86%}.arena-label{position:absolute;top:10px;left:22px;background:#fffcefeb;border-radius:12px;padding:7px 12px;font-weight:800;font-size:17px;z-index:1}.arena-label.right{left:auto;right:22px}.round-dots{display:flex;gap:10px;align-items:center;justify-content:center}.round-dots i{width:17px;height:17px;background:#44685a;border:2px solid #f9e6ad;border-radius:50%}.round-dots i.filled{background:#ffcf58}.task{position:relative;flex:1;min-height:0;background:var(--cream);border-radius:28px 28px 0 0;margin-top:-13px;z-index:1;display:flex;flex-direction:column;align-items:center;padding:16px 28px 20px;box-shadow:0 -3px 12px #123e3220}.task-heading{display:flex;align-items:center;justify-content:center;gap:18px}.task h2{font-size:clamp(26px,3.1vw,36px)}.model{flex:1;min-height:100px;display:flex;align-items:center;justify-content:center;width:100%;gap:22px;padding:12px 0}.tenframe{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;padding:9px;border:3px solid #517b62;border-radius:16px;background:#e4ecd6;width:min(460px,100%)}.cell{aspect-ratio:1;background:#fffef3;border:2px dashed #b5cba4;border-radius:10px;position:relative;display:flex;align-items:center;justify-content:center;color:#fff;font-size:23px;font-weight:900;min-height:32px}.cell.filled{border:2px solid #e4ae38;background:#ffeaaa}.cell.filled:after{content:'';width:68%;height:68%;border-radius:50%;background:#efa83c;box-shadow:inset 0 -4px 0 #d48a2c}.cell.added:after{background:#409f73;box-shadow:inset 0 -4px 0 #2f7b56}.cell.empty-demo{animation:tapHint 1.3s ease-in-out 3}.count-model{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;width:min(480px,90%)}.counter{width:100%;aspect-ratio:1;max-height:62px;min-height:45px;border-radius:50%;background:#f7c955;box-shadow:inset 0 -5px 0 #d4a342;border:3px solid #fff1b4;font-size:27px;color:#264d38;font-weight:900}.counter.counted{background:#54b587;color:white;border-color:#acf0c6}.arithmetic{display:flex;flex-direction:column;align-items:center;gap:16px}.equation{font-size:40px;font-weight:900;letter-spacing:5px}.groups{display:flex;gap:15px;align-items:center}.groups .op{font-size:34px;font-weight:900}.dot-group{display:grid;grid-template-columns:repeat(5,24px);gap:6px;background:#eef1dd;border:2px solid #d1ddc1;padding:12px;border-radius:12px}.dot{width:24px;height:24px;border-radius:50%;background:#eaae38;display:block;position:relative}.dot.blue{background:#419faf}.dot.removed{background:#dfded3}.dot.removed:after{content:'×';position:absolute;inset:-5px 0 0;text-align:center;font-size:28px;color:#765a50}.answers{display:flex;gap:22px;justify-content:center}.answer{width:120px;height:76px;font-size:38px;font-weight:900;color:var(--ink);background:#fff;border:3px solid #b8cdb0;border-radius:19px;box-shadow:0 5px 0 #8ca67d}.answer:hover{background:#fff3c1}.answer.wrong{border-color:#d56757;animation:shake .4s}.feedback{height:31px;min-height:31px;font-size:19px;font-weight:800;text-align:center;margin:7px 0 0;color:#236e48}.feedback.error{color:#a13f31}.next-answer{min-width:200px}.effect{position:absolute;left:26%;top:55%;width:36px;height:36px;border-radius:50%;background:var(--fx,#ffe15e);box-shadow:0 0 20px 12px var(--fx,#ffe15e);z-index:2;animation:projectile .65s ease-in forwards}.impact{animation:hit .55s ease-out}.lunge{animation:lunge .65s ease-in-out}.reward{background:#fffcef;border-radius:30px;text-align:center;padding:25px 45px;box-shadow:0 10px 30px #082f3155;max-width:600px;width:95%}.reward img{width:160px;height:160px;object-fit:contain;animation:bob 2s ease-in-out infinite}.reward h1{color:#216749;font-size:40px;letter-spacing:-1px}.reward .prize{font-size:30px;color:#946517;font-weight:900;margin:8px}.reward .actions{margin-top:20px;display:flex;gap:14px;justify-content:center}.badge-row{display:flex;gap:14px;justify-content:center;margin:16px}.badge-row span{background:var(--gold);border:3px solid #dfa635;border-radius:50%;width:62px;height:62px;display:grid;place-items:center;font-weight:900;font-size:27px}.storage-warning{background:#fff0c3;padding:6px 12px;text-align:center;font-size:15px}dialog{max-width:620px;width:calc(100% - 28px);max-height:88svh;overflow:auto;border:0;border-radius:24px;padding:26px;color:var(--ink);background:var(--cream);box-shadow:0 15px 70px #0f2c2c80}dialog::backdrop{background:#0a292ad4}dialog h2{padding-right:45px}dialog p,dialog label{font-size:17px}dialog .close{float:right;width:40px;height:40px;border-radius:50%;font-size:24px;background:#e0e9d5}dialog label{display:block;font-weight:800;margin:15px 0 7px}dialog input[type=text]{width:100%;padding:12px;border:2px solid #a8c49f;border-radius:10px;font-size:20px}dialog .controls{display:flex;gap:10px;flex-wrap:wrap;margin:15px 0}dialog .primary{font-size:18px;min-height:50px;padding:12px 18px}.upload{display:inline-flex!important;background:#e5efde;border:2px solid #c7d9c0;border-radius:16px;padding:12px 18px;cursor:pointer;margin:0!important}.upload input{max-width:100%;margin-top:8px}.settings-row{display:flex;justify-content:space-between;gap:15px;align-items:center;border-top:1px solid #d9e0cb;padding:13px 0}.settings-row button{min-width:80px}#file-status{white-space:pre-line}.footnote{font-size:15px;color:#536653}.hidden{display:none!important}@keyframes beacon{50%{outline-color:#fff1ac;outline-offset:10px}}@keyframes bob{50%{transform:translateY(-5px)}}@keyframes tapHint{50%{background:#ffdd6a;transform:scale(.92)}}@keyframes lunge{40%{transform:translateX(35px) rotate(6deg)}}@keyframes projectile{to{left:76%;transform:scale(1.5)}}@keyframes hit{20%{transform:translateX(15px);filter:brightness(1.5)}60%{transform:translateX(-5px)}}@keyframes shake{25%,75%{transform:translateX(-5px)}50%{transform:translateX(5px)}}
@media(max-height:730px) and (min-width:700px){.topbar{height:62px}.arena{height:27vh;min-height:140px}.task{padding:10px 25px 13px}.task-heading h2{font-size:28px}.speak{height:43px;width:43px;font-size:23px}.model{padding:6px 0}.tenframe{width:340px;gap:5px;padding:6px}.answer{height:64px}.count-model{width:360px;gap:7px}.counter{max-height:53px}.feedback{font-size:17px;margin-top:6px}.reward img{height:115px;width:115px}.surface{padding:17px}.welcome-title{margin-bottom:12px}.hero-choice img{height:155px}.map-heading{padding:9px 22px}.map-heading h2{font-size:27px}.companion img{height:63px;width:63px}}
@media(max-width:700px){.shell{min-height:650px}.topbar{padding:10px 14px;height:66px}.brand{font-size:11px}.brand span{font-size:20px}.tools .label{display:none}.icon-btn{min-width:43px;padding:8px}.choose-grid{grid-template-columns:repeat(3,1fr);gap:12px;max-width:490px}.hero-choice{border-radius:18px;padding:5px 4px 12px}.hero-choice img{height:115px}.hero-choice strong{font-size:16px}.surface{padding:17px}h1{font-size:36px}.welcome-title{margin-bottom:12px}.welcome-foot{margin-top:16px}.trail{grid-template-columns:repeat(2,1fr);gap:23px;margin:17px 0;width:min(400px,94%)}.trail:before{display:none}.stop{min-height:125px;padding:7px}.stop:nth-child(n){transform:none}.stop .symbol{font-size:34px}.stop strong{font-size:19px}.stop .stars{font-size:19px}.map-heading h2{font-size:25px}.map-heading p{font-size:16px}.companion img{height:59px;width:59px}.companion strong{font-size:20px}.arena{height:24vh;min-height:155px}.task{padding:15px 14px}.task h2{font-size:26px}.task-heading{gap:10px}.speak{width:46px;height:46px}.answer{width:87px;height:70px}.answers{gap:15px}.tenframe{max-width:330px}.counter{max-height:56px}.count-model{gap:8px;max-width:330px}.dot-group{grid-template-columns:repeat(5,18px);gap:4px;padding:9px}.dot{width:18px;height:18px}.dot.removed:after{font-size:24px}.groups{gap:10px}.equation{font-size:34px}.arena-label{font-size:14px;left:12px}.arena-label.right{right:12px}.feedback{font-size:16px}.reward{padding:25px 20px}.reward h1{font-size:34px}.reward .actions{flex-direction:column}.round-dots{gap:6px}.round-dots i{width:13px;height:13px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}body.reduce *,body.reduce *:before,body.reduce *:after{animation:none!important;transition:none!important}
/* The classic Champions arena, with a separate child-sized math workspace. */
.reading-tools{display:flex;align-items:stretch;background:#fff7d8;border-radius:15px;color:#163f34;overflow:hidden;border:2px solid #ffda72}.reading-tools .top-read{border:0;border-radius:0;background:none;padding:7px 12px;color:#163f34}.top-read span{font-size:16px;font-weight:900}.auto-read{border-left:1px solid #cbbb85;background:#ece9c5;color:#25593f;font-size:14px;padding:7px 10px;font-weight:900}.auto-read[aria-pressed=false]{background:#deded7;color:#515e54}.classic-battle{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:20px;padding:24px;background:#e1ebd5;overflow:auto}.battle-side{min-width:0;display:flex;flex-direction:column;justify-content:center;gap:18px;align-self:stretch}.battle-caption{display:flex;align-items:center;justify-content:space-between;gap:12px}.battle-caption>span{font-size:13px;letter-spacing:1.5px;font-weight:900;color:#536c4c}.battle-caption>strong{font-size:23px}.classic-arena{height:auto;max-height:none;min-height:0;flex:none;aspect-ratio:1200/675;border:3px solid #315e40;border-radius:18px;background:#8fd08a url('assets/battle-meadow.webp') center/100% 100%;box-shadow:0 7px 0 #7f9e6f}.classic-arena .arena-hero,.classic-arena .arena-enemy{position:absolute;left:17%;top:64%;width:31%;aspect-ratio:1;transform:translate(-50%,-50%);z-index:3;filter:drop-shadow(0 5px 3px #0004);pointer-events:none}.classic-arena .arena-enemy{left:71%;top:42%;width:25%;z-index:2}.classic-arena .guardian-enemy{width:30%;top:39%}.fighter-art,.fighter-art img{width:100%;height:100%;object-fit:contain}.battle-hud{position:absolute;border:2px solid #294f43;border-radius:10px;background:#fffdeef5;box-shadow:0 3px 0 #294f4360;padding:9px 12px;z-index:5}.battle-hud b{font-size:17px;line-height:1.15;display:block}.enemy-hud{left:3%;top:4%;max-width:51%}.hero-hud{right:3%;bottom:4%;width:49%}.hero-hud>div:first-child{display:flex;align-items:center;gap:8px;justify-content:space-between}.hero-hud>div:first-child span{font-size:14px;white-space:nowrap}.heart-meter{display:flex;gap:5px;color:#e37454;line-height:1;font-size:22px;margin-top:5px}.heart-meter .empty{color:#d2d7c7}.player-hearts{color:#42a46b;font-size:17px;letter-spacing:4px}.hero-hud .xp{width:100%;height:6px;margin-top:6px}.battle-message{border-radius:15px;background:#fffdf0;border:2px solid #b0c59f;box-shadow:0 4px 0 #b0c59f;padding:15px 18px;min-height:80px;display:flex;flex-direction:column;gap:6px}.battle-message b{font-size:23px}.battle-message span{font-size:18px}.battle-rounds{display:flex;align-items:center;justify-content:center;gap:16px;font-size:17px;font-weight:900}.battle-rounds .round-dots i{width:20px;height:20px;background:#dae2c8;border-color:#96aa7a}.battle-rounds .round-dots i.filled{background:#eeb638;border-color:#b78926}.classic-battle .task{margin:0;border:2px solid #c1d2ab;border-radius:25px;padding:24px 20px;min-height:400px}.classic-battle .task-heading{align-items:center;justify-content:space-between;width:100%}.classic-battle .task h2{font-size:clamp(26px,2.8vw,36px);max-width:85%}.classic-battle .model{padding:20px 0;min-height:180px}.classic-battle .tenframe{width:100%;max-width:400px}.classic-battle .count-model{max-width:400px}.classic-battle .counter{max-height:64px}.classic-battle .answers{gap:14px;width:100%}.classic-battle .answer{width:30%;max-width:115px;height:85px;font-size:40px}.classic-battle .groups{gap:10px}.classic-battle .dot-group{grid-template-columns:repeat(5,22px);gap:5px;padding:9px}.classic-battle .dot{width:22px;height:22px}.classic-battle .feedback{height:auto;min-height:45px;font-size:18px;line-height:1.3;padding-top:12px;margin:0}.evolution-fx{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:20}
/* Walkable illustrated meadow. All scenery uses the existing game artwork. */
.guided-world{flex:1;min-height:0;display:flex;flex-direction:column;background:#2c563d;overflow:hidden}.world-heading{display:flex;align-items:center;justify-content:space-between;padding:10px 26px;color:#fff5d9;height:58px;flex-shrink:0}.world-heading h2{font-size:25px}.world-stars{display:flex;gap:12px;font-size:31px;line-height:1;color:#bac7a4}.world-stars .earned{color:#ffda61;filter:drop-shadow(0 0 5px #ffa62277)}.map-viewport{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;background:#315e3a;overflow:hidden}.walk-map{position:relative;width:min(100%,calc((100svh - 244px)*1.66667));aspect-ratio:20/12;flex-shrink:0;background:#89b753 url('assets/explore-grass.webp') 0 0/5% 8.333333%;overflow:hidden;border-radius:12px;box-shadow:0 3px 20px #08271f77;touch-action:manipulation;isolation:isolate}.map-tile{position:absolute;pointer-events:none;background-size:100% 100%;z-index:1}.map-road{background-image:url('assets/explore-path.webp')}.map-water{background-image:url('assets/explore-water.webp')}.map-bridge{position:absolute;object-fit:fill;transform:rotate(90deg);pointer-events:none;z-index:4}.scenery{position:absolute;object-fit:contain;pointer-events:none;filter:drop-shadow(0 5px 2px #153b2730)}.map-creature{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:0;background:none;color:#193b2c;border-radius:14px;isolation:isolate;overflow:visible}.map-creature img{height:72%;width:78%;object-fit:contain;filter:drop-shadow(0 4px 2px #153b2780);pointer-events:none}.map-creature strong{font-size:clamp(13px,1.5vw,18px);line-height:1.2;padding:4px 9px;background:#fff7ddec;border:2px solid #b38e43;border-radius:9px;white-space:nowrap;box-shadow:0 2px 0 #80682d}.creature-marker{position:absolute;top:0;right:0;z-index:2;min-width:29px;height:29px;display:grid;place-items:center;border:2px solid white;border-radius:20px;background:#fff0be;font-size:15px;font-weight:900;padding:0 5px}.map-creature.goal:before{content:'';position:absolute;bottom:20%;left:8%;width:84%;height:32%;border-radius:50%;border:4px solid #ffed78;box-shadow:0 0 15px #ffcd45;background:#f9d84b44;z-index:-1;animation:goalPulse 1.7s ease-in-out infinite}.map-creature.goal strong{background:#ffdc66;border-color:#7e641d}.map-creature.gate-locked img{filter:saturate(.5) drop-shadow(0 4px 2px #153b2740)}.walking-buddy{position:absolute;width:7.5%;height:16%;transform:translate(-50%,-80%);display:flex;align-items:center;justify-content:flex-end;flex-direction:column;pointer-events:none;transition:left .13s linear,top .13s linear}.walking-buddy img{width:100%;height:87%;object-fit:contain;filter:drop-shadow(0 4px 3px #113b2780)}.walking-buddy span{background:#184335;color:#fff;padding:1px 7px;border:1px solid #fff3c6;border-radius:9px;font-size:13px;line-height:1.2}.walking-buddy.walking img{animation:walkBob .26s linear infinite}.guide-step{position:absolute;z-index:5;pointer-events:none;display:grid;place-items:center}.guide-step:after{content:'•';font-size:34px;color:#fff7a8;line-height:1;text-shadow:0 0 4px #825a08,0 0 12px #ffed34}.guide-strip{display:flex;align-items:center;gap:16px;min-height:95px;flex-shrink:0;padding:10px max(22px,calc((100vw - 1100px)/2));background:#fff9e8;border-top:4px solid #95ad65}.guide-strip>img{width:70px;height:70px;object-fit:contain;flex-shrink:0}.guide-message{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}.guide-message strong{font-size:24px}.guide-message span{font-size:17px}.guide-action{white-space:nowrap;font-size:21px;padding:13px 23px;min-height:55px}.guide-action:disabled{background:#e8d496;box-shadow:none}.map-movement{position:absolute;left:14px;bottom:12px;display:grid;grid-template-columns:repeat(3,43px);grid-template-rows:repeat(2,43px);gap:3px;z-index:100}.map-movement button{background:#fff8e5ec;border:2px solid #466f4c;border-radius:10px;color:#2a5840;font-size:22px;box-shadow:0 3px 0 #214b36}.map-movement .up{grid-column:2;grid-row:1}.map-movement .left{grid-column:1;grid-row:2}.map-movement .down{grid-column:2;grid-row:2}.map-movement .right{grid-column:3;grid-row:2}@keyframes walkBob{50%{transform:translateY(-4px) rotate(3deg)}}@keyframes goalPulse{50%{opacity:.6;transform:scale(1.12)}}
@media(min-width:760px) and (max-height:760px){.classic-battle{padding:18px;gap:18px}.battle-side{gap:14px}.classic-battle .task{padding:18px 15px;min-height:360px}.classic-battle .task h2{font-size:28px}.classic-battle .model{min-height:150px;padding:12px 0}.battle-message{min-height:72px;padding:12px 15px}.battle-caption>strong{font-size:20px}.classic-battle .answer{height:72px}.classic-battle .feedback{font-size:17px}.walk-map{width:min(100%,calc((100svh - 224px)*1.66667))}.guide-strip{min-height:85px}.guide-strip>img{height:60px;width:60px}.guide-message strong{font-size:22px}}
@media(max-width:900px) and (min-width:760px){.tools .label{display:none}.classic-battle{gap:12px;padding:15px;grid-template-columns:1fr 1fr}.battle-caption{flex-direction:column;align-items:flex-start;gap:5px}.battle-hud{padding:6px 8px}.battle-hud b{font-size:14px}.hero-hud>div:first-child span{font-size:12px}.heart-meter{font-size:18px}.classic-battle .dot-group{grid-template-columns:repeat(5,18px);gap:4px;padding:7px}.classic-battle .dot{width:18px;height:18px}.classic-battle .groups{gap:6px}.classic-battle .task h2{font-size:26px}}
@media(max-width:759px){.topbar{height:66px;padding:8px 10px;gap:5px}.brand{font-size:10px;letter-spacing:1px}.brand span{font-size:18px;max-width:85px;line-height:1.1}.tools{gap:5px}.tools .label{display:none}.tools .icon-btn{min-width:36px;min-height:42px;padding:6px 8px;font-size:20px}.top-read span{font-size:13px;max-width:35px;line-height:1.05;text-align:left}.auto-read{font-size:12px;padding:6px}.classic-battle{display:flex;flex-direction:column;padding:12px;gap:15px;overflow:visible}.shell:has(.classic-battle){height:auto;min-height:100svh;overflow:visible}.battle-side{display:grid;grid-template-columns:minmax(0,1fr) 130px;gap:8px;align-items:center}.battle-caption{grid-column:1/-1}.battle-caption>span{font-size:11px}.battle-caption>strong{font-size:18px}.classic-arena{width:100%;border-radius:12px}.battle-message{padding:9px;min-height:85px;box-shadow:none}.battle-message b{font-size:17px}.battle-message span{font-size:14px;line-height:1.3}.battle-rounds{grid-column:1/-1;font-size:14px}.battle-hud{padding:4px 5px;border-width:1px;border-radius:6px}.battle-hud b{font-size:11px}.hero-hud>div:first-child{gap:3px}.hero-hud>div:first-child span{font-size:10px}.heart-meter{font-size:13px;gap:2px;margin-top:3px}.player-hearts{font-size:12px;letter-spacing:1px}.hero-hud .xp{margin-top:3px;height:4px}.classic-battle .task{min-height:370px;padding:17px;border-radius:20px}.classic-battle .task h2{font-size:28px}.classic-battle .model{min-height:170px}.classic-battle .tenframe{max-width:340px}.classic-battle .answer{height:66px}.classic-battle .dot-group{grid-template-columns:repeat(5,19px);gap:4px;padding:8px}.classic-battle .dot{height:19px;width:19px}.world-heading{height:50px;padding:9px 16px}.world-heading h2{font-size:22px}.world-stars{font-size:26px;gap:8px}.map-viewport{overflow:auto;align-items:center;justify-content:center}.walk-map{width:100%;min-width:0;border-radius:0}.walking-buddy span{font-size:10px}.map-creature strong{font-size:11px;padding:2px 4px;border-width:1px}.creature-marker{height:22px;min-width:22px;font-size:12px;border-width:1px}.guide-strip{min-height:112px;padding:10px 12px;gap:8px;flex-wrap:wrap}.guide-strip>img{height:47px;width:47px}.guide-message strong{font-size:19px}.guide-message span{font-size:15px}.guide-action{font-size:17px;padding:9px 14px;min-height:44px;margin-left:auto}.map-movement{position:fixed;bottom:135px;left:12px;grid-template-columns:repeat(3,38px);grid-template-rows:repeat(2,38px)}.guide-step:after{font-size:25px}.guided-world{min-height:530px}}
@media(prefers-reduced-motion:reduce){.walking-buddy,.walking-buddy img,.map-creature.goal:before{animation:none;transition:none}}
/* Keep reading within reach even when a small portrait screen scrolls. */
.topbar{position:sticky;top:0;z-index:200}
/* Little Trails: full kindergarten badge workshops. */
.badge-book-button{background:#fff2b9;border:2px solid #d0a345;color:#4d3b15;font-size:21px;font-weight:900;border-radius:15px;padding:7px 16px;min-height:44px}.guided-world[data-area=bridge]{background:#264f66}.guided-world[data-area=garden]{background:#46623c}.guided-world[data-area=forest]{background:#254b37}.guided-world[data-area=market]{background:#625444}.guided-world[data-area=castle]{background:#435979}.walk-map[data-area=bridge]{background-color:#9bbd72}.walk-map[data-area=market]{background-image:url('assets/explore-path.webp')}.walk-map[data-area=castle]{background-color:#9ba4be;background-blend-mode:luminosity}.walk-map[data-area=forest]{background-color:#628350;background-blend-mode:multiply}.world-heading h2{font-size:clamp(20px,2.5vw,29px)}.badge-lesson{display:grid;grid-template-columns:220px minmax(0,1fr);gap:22px;padding:22px;flex:1;min-height:0;background:#e4edd5}.badge-host{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px 10px;background:#285440;border-radius:24px;color:#fff3cc}.badge-host>img{width:90%;max-height:200px;object-fit:contain;margin:17px 0}.badge-host h2{font-size:28px}.badge-host p{font-size:17px}.badge-progress{display:flex;align-items:center;gap:12px;font-size:19px;margin-top:15px}.badge-progress>b{font-size:36px;color:#f8cc61}.badge-lesson .task{margin:0;min-width:0;border:2px solid #becba9;border-radius:24px;padding:20px;overflow:auto}.lesson-task .task-heading{gap:14px;justify-content:space-between;width:100%}.lesson-task .task-heading h2{font-size:clamp(25px,2.8vw,34px);line-height:1.18;max-width:none;flex:1}.learning-model{display:flex;flex:1;flex-direction:column;justify-content:center;align-items:center;gap:12px;width:100%;min-height:100px;padding:12px 0}.learning-actions{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:100%}.learning-choices{width:100%;gap:12px}.learning-choices .answer{min-width:65px;min-height:62px;height:auto;padding:8px 12px;flex:1;max-width:160px;font-size:34px}.learning-choices .word-answer{font-size:20px;line-height:1.2}.learning-choices .shape-answer{height:115px;padding:7px;max-width:145px}.shape-svg{width:130px;height:130px;max-width:100%;flex-shrink:0}.shape-answer .shape-svg{width:100%;height:100%}.math-counters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;width:min(310px,100%);position:relative;align-items:center;justify-content:center}.math-counter{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1;max-height:40px;border:2px solid #e4b348;border-radius:50%;background:#f5d272;color:#254d3c;font-size:19px;font-weight:900;padding:0;min-width:0;box-shadow:inset 0 -3px 0 #d6aa39}.math-counter.counted{background:#47a575;border-color:#247e4d;color:#fff}.math-counter.new-counter{background:#58bfd3;border-color:#277d96}.math-counters.line{display:flex;gap:4px;width:100%;flex-wrap:nowrap}.line .math-counter{width:24px;height:24px;flex:1;aspect-ratio:1;font-size:12px;max-width:30px}.math-counters.circle,.math-counters.scatter{display:block;width:min(285px,100%);height:205px}.circle .math-counter,.scatter .math-counter{position:absolute;width:27px;height:27px;transform:translate(-50%,-50%);font-size:15px}.empty-set{grid-column:1/-1;text-align:center;color:#687564;font-size:21px;border:2px dashed #b6c79a;padding:20px}.number-path{display:flex;gap:14px;align-items:center;justify-content:center;flex-wrap:wrap}.number-path b{background:#fff3b0;border:2px solid #d7ad54;border-radius:16px;font-size:36px;padding:15px;min-width:68px;text-align:center}.pair-model{display:flex;width:100%;gap:25px;align-items:center;justify-content:center}.pair-model>div{flex:1;text-align:center;min-width:0;display:flex;flex-direction:column;align-items:center;gap:10px}.pair-model b{font-size:25px}.pair-model .math-counter{max-height:30px}.sum-groups{display:flex;gap:15px;justify-content:center;align-items:center;width:100%}.sum-groups>div{max-width:170px}.sum-groups>b{font-size:30px}.sum-groups .math-counter{max-height:30px}.large-equation{font-size:clamp(28px,3.5vw,46px);font-weight:900;text-align:center;line-height:1.2;margin:10px 0}.mini-instruction{font-size:17px!important;line-height:1.3;text-align:center;margin:4px 0;color:#48634b}.build-frame{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;width:min(410px,100%);padding:9px;background:#dbe8ce;border:3px solid #5c8458;border-radius:15px}.build-frame.twenty{grid-template-columns:repeat(10,1fr);width:min(610px,100%)}.build-cell{aspect-ratio:1;border:2px dashed #abc195;border-radius:9px;background:#fffdef;display:flex;align-items:center;justify-content:center;padding:0;min-height:33px;position:relative}.build-cell i{display:block;width:70%;height:70%;border-radius:50%;background:#4bab80;box-shadow:inset 0 -3px 0 #2a845e}.build-cell.fixed i{background:#f1c256;box-shadow:inset 0 -3px 0 #dca337}.build-cell.filled{border:2px solid #7cad77}.build-cell.removed i{opacity:.18}.build-cell.removed:after{content:'×';position:absolute;font-size:36px;color:#9a493a}.build-frame.twenty .build-cell:nth-child(10){border-right:5px solid #3e744b}.teen-model{display:flex;gap:16px;align-items:center;width:100%}.teen-model>.math-counters{padding:8px;border:2px solid #a6bf8f;border-radius:10px}.teen-model>span{font-size:28px}.teen-model .math-counter{max-height:35px}.split-groups{display:grid;grid-template-columns:1fr 1fr;gap:15px;width:100%}.split-groups>div{border:3px solid #bdcfa6;background:#f7f8e8;border-radius:17px;padding:12px;text-align:center;min-height:120px}.split-groups b{font-size:19px}.split-groups>div>div{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:5px;min-height:60px}.berry{width:42px;height:42px;background:#fde7b4;color:#c05645;border-radius:50%;font-size:33px;line-height:1}.order-result{font-size:26px;font-weight:900;min-height:40px;text-align:center;max-width:100%;word-spacing:5px}.order-options{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}.order-options button{min-width:64px;min-height:52px;font-size:23px}.order-options button:disabled{opacity:.35}.tiny-group{display:flex;flex-wrap:wrap;width:120px;justify-content:center}.tiny-group svg{width:37px;height:37px}.attribute-block{height:65px;width:80%;max-width:390px;background:#6bb6d4;border:3px solid #2a6281;border-radius:7px;box-shadow:10px 8px 0 #4084a4}.measure-bars{width:95%;border-left:4px dashed #466249;padding:10px 0;display:flex;flex-direction:column;gap:22px}.measure-bars div{height:51px;background:#a7cbe6;border:3px solid #356785;font-size:24px;font-weight:900;padding:8px}.height-bars{display:flex;align-items:flex-end;gap:50px;justify-content:center;border-bottom:4px solid #466249;width:90%;height:180px}.height-bars div{width:60px;background:#87c7b0;border:3px solid #397a62;display:grid;place-items:center;font-size:26px;font-weight:900}.scale-model{width:min(380px,100%);height:190px}.sorted-model{display:flex;gap:12px}.sorted-model>div{display:flex;flex-direction:column;gap:5px;padding:8px;border:2px solid #bdcfa6;border-radius:12px}.sorted-model svg{width:42px;height:42px}.sort-current svg{width:150px;height:150px}.sort-bins{display:flex;gap:15px}.sort-bins button{display:flex;flex-direction:column;align-items:center;gap:6px;width:105px}.sort-bins svg{width:65px;height:65px}.sort-bins span{font-size:25px}.position-choices{display:flex;gap:12px;justify-content:center;width:100%}.position-choice{border:3px solid #b9cfa8;border-radius:16px;background:#fff;flex:1;min-width:0;padding:5px;max-width:240px}.position-choice svg{width:100%;height:auto}.shape-pair{display:flex;gap:20px;align-items:center}.shape-pair svg:first-child{width:90px;height:90px}.oral-chart{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;width:min(430px,100%)}.oral-chart b{font-size:33px;padding:14px 4px;border:2px solid #b6cfa7;background:#f4f5db;text-align:center;border-radius:12px}.hands-prompt{font-size:21px;text-align:center}.solid-example svg{height:170px;width:170px}#drawing{width:100%;max-width:620px;height:190px;background:#fff;border:3px solid #8dab84;border-radius:14px;touch-action:none;cursor:crosshair;flex-shrink:0}#drawing-example{height:70px;display:flex;justify-content:center;align-items:center}#drawing-example svg{width:68px;height:68px}.number-example{font-size:64px;font-weight:600;line-height:1}.compose-board{width:min(320px,100%);height:200px;display:grid;place-items:center}.compose-board svg{height:100%;width:100%}.compose-board path,.compose-board rect{fill:#eef2e3;stroke:#6d9267;stroke-width:4;stroke-dasharray:7 5}.compose-board .placed{fill:#6ebdce;stroke-dasharray:none}.feedback.shake{animation:shake .45s}.lesson-task .feedback{height:auto;min-height:40px;line-height:1.25;padding-top:9px}.earned-badge,.book-medal{display:inline-grid;place-items:center;background:var(--badge,#f2cb69);border:4px solid #fff5c5;outline:3px solid #a4843d;border-radius:50%;width:75px;height:75px;font-size:30px;font-weight:900;color:#2b4738;box-shadow:0 5px 0 #b69245;margin:12px}.text-link{font-size:17px;color:#356747;background:transparent;padding:13px;text-decoration:underline}.badge-book-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:20px}.badge-entry{border:2px solid #bdcdaa;border-radius:18px;background:#eef4e5;display:flex;flex-direction:column;align-items:center;padding:12px}.badge-entry b{font-size:18px}.badge-entry small{font-size:14px;margin-top:7px;line-height:1.3}.badge-entry:disabled{opacity:.5}.book-medal:not(.earned){background:#d9dfcf;outline-color:#a6b297;box-shadow:none}.teacher-checks label{font-size:17px;padding:10px;background:#edf2df;border-radius:9px;display:flex;align-items:center;gap:12px}.teacher-checks input{width:23px;height:23px;flex-shrink:0}.standards-list section{border-top:1px solid #ccd5ba;padding:12px 0}.standards-list b{font-size:17px}.standards-list p{font-size:15px;margin:5px 0}.settings-row small{font-size:14px;font-weight:400}.reward{max-height:calc(100svh - 100px);overflow:auto}.classic-battle .learning-model{min-height:150px}.classic-battle .math-counter{max-height:34px}.classic-battle .math-counters.line .math-counter{height:20px;font-size:10px}.classic-battle .learning-choices .word-answer{font-size:18px}.classic-battle .learning-choices .shape-answer{height:95px}.classic-battle .math-counters.circle,.classic-battle .math-counters.scatter{height:180px;width:260px}.classic-battle .circle .math-counter,.classic-battle .scatter .math-counter{height:24px;width:24px}.classic-battle .scale-model{height:170px}
@media(min-width:760px) and (max-height:760px){.badge-lesson{grid-template-columns:170px 1fr;padding:15px;gap:15px}.badge-host h2{font-size:24px}.badge-host>img{max-height:160px}.badge-lesson .task{padding:16px}.lesson-task .task-heading h2{font-size:27px}.learning-model{padding:8px 0;gap:8px}.learning-choices .answer{min-height:60px}.learning-choices .shape-answer{height:95px}.math-counters.circle,.math-counters.scatter{height:180px}.build-frame{max-width:335px}.build-frame.twenty{max-width:540px}.hands-prompt{font-size:18px}#drawing{height:160px}#drawing-example{height:55px}.number-example{font-size:50px}.badge-progress{font-size:16px}.badge-host .eyebrow{font-size:12px;letter-spacing:1.3px}.oral-chart b{padding:10px 4px}.order-result{font-size:21px}}
@media(max-width:759px){.badge-lesson{display:flex;flex-direction:column;padding:12px;gap:10px;overflow:auto}.shell:has(.badge-lesson){height:auto;min-height:100svh;overflow:visible}.badge-host{flex-direction:row;justify-content:space-between;padding:8px 14px;gap:10px;border-radius:15px}.badge-host>img{height:55px;width:55px;margin:0}.badge-host .eyebrow,.badge-host p{display:none}.badge-host h2{font-size:21px}.badge-progress{margin:0;font-size:14px;gap:5px}.badge-progress>b{font-size:27px}.badge-lesson .task{min-height:450px;padding:16px}.build-frame.twenty{grid-template-columns:repeat(5,1fr);max-width:320px}.build-frame.twenty .build-cell:nth-child(10){border-right-width:2px}.build-frame.twenty .build-cell:nth-child(n+6):nth-child(-n+10){border-bottom:4px solid #3e744b}.build-cell{min-height:36px}.learning-choices .word-answer{font-size:17px}.lesson-task .task-heading h2{font-size:26px}.learning-choices{gap:9px}.learning-choices .answer{font-size:29px}.badge-book-grid{gap:9px}.badge-entry b{font-size:15px}.badge-entry small{font-size:13px}.book-medal{width:60px;height:60px;font-size:25px}.sort-bins{gap:8px}.sort-bins button{width:85px;padding:8px}.sort-bins svg{width:54px;height:54px}.hands-prompt{font-size:19px}.world-heading h2{font-size:20px}.classic-battle .learning-model{min-height:160px}.classic-battle .task{min-height:400px}}
.double-frame{display:flex;gap:15px;width:min(580px,100%);align-items:center}.double-frame .build-frame{flex:1;min-width:0;gap:5px;padding:6px}.double-frame .build-cell{min-height:31px}.learning-actions[hidden]{display:none}
@media(max-width:759px){.double-frame{flex-direction:column;gap:9px;max-width:275px}.double-frame .build-frame{width:100%}.double-frame .build-cell{min-height:33px;max-height:40px}}

.buddy-retry::after{content:"?";position:absolute;top:0;right:0;font:bold 42px system-ui;color:#fff;background:#7151a2;border:3px solid white;border-radius:50%;width:54px;height:54px;text-align:center}.buddy-retry .fighter-art{opacity:.65}

/* Clearly labelled experience; shared by map, battle, and reward screens. */
.xp-panel{min-width:0;text-align:left}.xp-label{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:14px;line-height:1.3;margin-bottom:5px}.xp-label strong,.xp-label span{white-space:nowrap}.xp-track{height:14px;overflow:hidden;border:2px solid #2e685a;border-radius:99px;background:#163c3d}.xp-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#42d8ad,#c5f66b);box-shadow:inset 0 2px 0 #ffffff70}.world-heading .xp-panel{width:210px;flex-shrink:0}.world-heading{gap:16px}.world-heading h2{min-width:0}.hero-hud .xp-panel{margin-top:6px}.hero-hud .xp-track{height:10px;border-width:1px}.hero-hud .xp-label{font-size:14px;gap:4px;margin-bottom:3px}.hero-hud .xp-label strong{display:none}.xp-reward{max-width:380px;margin:14px auto 4px;padding:14px 18px 10px;background:#e6f3da;border:2px solid #8dbb71;border-radius:18px;color:#214f3a}.xp-reward .xp-label{font-size:18px}.xp-reward .xp-track{height:25px;border-width:3px}.xp-note{font-size:18px;font-weight:800;text-align:center;line-height:1.3;min-height:24px;margin-top:8px}.xp-level-up{border-color:#ba8a16;background:#fff2b7}.xp-level-up .xp-track i{background:linear-gradient(90deg,#e8b432,#fcdf74)}
@media(max-width:759px){.world-heading{height:auto;min-height:76px;flex-wrap:wrap;gap:5px 12px;padding:8px 12px}.world-heading h2{flex:1}.world-heading .xp-panel{order:3;flex-basis:100%;width:auto;display:flex;align-items:center;gap:12px}.world-heading .xp-label{margin:0;gap:8px}.world-heading .xp-track{flex:1;min-width:50px}.hero-hud .xp-label{font-size:12px}.xp-reward{padding:10px 12px}.xp-reward .xp-label,.xp-note{font-size:16px}}
@media(prefers-reduced-motion:reduce){.xp-track i{transition:none!important}}.reduce .xp-track i{transition:none!important}
