:root{--ink:#243d32;--muted:#637060;--green:#285c42;--orange:#e17848;--paper:#faf9f1;--line:#dde3d2;--display:ui-rounded,'Arial Rounded MT Bold','Trebuchet MS',sans-serif;--body:'Avenir Next',Avenir,'Trebuchet MS',sans-serif;font-family:var(--body);color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:disabled{cursor:default}button,a{outline-offset:5px}button:focus-visible,a:focus-visible{outline:3px solid #c87536}button[hidden],[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--display);font-weight:800}h1{font-size:clamp(2rem,4.5vw,3.6rem);line-height:1.14;letter-spacing:-1.7px}p{line-height:1.65}.app-shell{max-width:1240px;min-height:100dvh;margin:auto;display:flex;flex-direction:column;padding:0 40px}.topbar{height:106px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0}.brand{border:0;background:none;font-weight:900;font-size:28px;letter-spacing:-1.5px;display:flex;align-items:center;padding:0;min-height:48px}.brand-icon{display:inline-grid;place-items:center;width:39px;height:39px;border-radius:13px;background:#dbe9b7;font-size:31px;margin-right:9px;position:relative}.brand-icon>span{position:absolute;right:-5px;top:-11px;font-size:22px;color:var(--orange)}.brand-dot{color:var(--orange)}.header-right{display:flex;align-items:center;gap:14px}.star-counter{font-size:19px;font-weight:800;background:#f0efdf;border:1px solid #e4e4cf;border-radius:30px;padding:10px 18px;white-space:nowrap}.star-counter>span:first-child{color:#a97214;margin-right:5px}.star-max{font-size:14px;color:#6e725e;font-weight:600}.icon-button{border:1px solid #d3d9c7;border-radius:50%;width:44px;height:44px;background:transparent;font-size:21px;font-weight:700}.icon-button:hover{background:#edf0e0}main{flex:1;outline:none}footer{min-height:80px;display:flex;align-items:center;justify-content:space-between;gap:20px;color:#66715e;font-size:14px;border-top:1px solid #e1e4d6;margin-top:36px}.button{display:inline-flex;justify-content:center;align-items:center;min-height:56px;padding:15px 25px;border:2px solid transparent;border-radius:15px;font-size:16px;font-weight:800;text-decoration:none;transition:transform .15s,background .15s;gap:10px}.button:hover:not(:disabled){transform:translateY(-2px)}.primary{color:#fff;background:var(--green);box-shadow:0 5px 0 #193f2d}.primary:hover:not(:disabled){background:#36734f}.primary:disabled{opacity:.45;box-shadow:none}.secondary{border-color:#cdd5bd;background:#fffef7;box-shadow:0 4px 0 #e5e8d8}.ghost{border-color:#ccd6c1;background:transparent}.small{min-height:44px;padding:8px 13px;font-size:14px;border-radius:12px}.wide{width:100%}.eyebrow{font-size:13px;font-weight:800;letter-spacing:1.65px;color:#5c7155;line-height:1.5}.lead{font-size:20px;color:#60705f;line-height:1.7}.welcome{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:12px;min-height:585px;padding:10px 0 30px}.hero-copy{padding-left:25px}.mini-star{color:#cf9a29;font-size:20px;vertical-align:middle;margin-right:7px}.welcome h1{font-size:clamp(3.3rem,6.6vw,5.2rem);line-height:1.08;margin:24px 0 30px;position:relative;letter-spacing:-3px}.welcome h1 em{font-style:normal;color:var(--orange)}.welcome h1 svg{position:absolute;bottom:-13px;left:135px;width:300px;height:24px;stroke:#eab24b;stroke-width:4;stroke-linecap:round;fill:none}.welcome .lead{margin-bottom:29px}.hero-notes{display:flex;gap:22px;margin-top:26px;font-size:14px;color:#65715d}.resume-link{display:block;min-height:50px;padding:15px 0 0;border:0;background:none;font-weight:800;text-decoration:underline;text-underline-offset:4px}.resume-detail{font-size:14px;font-weight:500;text-decoration:none;display:block;margin-top:8px;color:#677260}.hero-art{height:510px;position:relative;isolation:isolate}.hero-art:before{content:'';position:absolute;inset:65px 45px 50px;border-radius:50%;background:#eef0d9;z-index:-2}.orbit{position:absolute;inset:20px 20px 25px;border:1px dashed #cbd2b6;border-radius:50%;transform:rotate(-18deg)}.orbit.second{inset:60px 0 35px;border-style:solid;border-color:#e4e6d5;transform:rotate(20deg)}.hero-art .mimo{position:absolute;width:340px;height:auto;top:125px;left:calc(50% - 170px);z-index:2;animation:bob 5s ease-in-out infinite}.hello-bubble{position:absolute;left:110px;top:33px;border-radius:20px 20px 20px 3px;background:#fffef8;padding:18px 25px;transform:rotate(-6deg);box-shadow:0 5px 0 #e5e6d8;font-weight:800;border:1px solid #dce1cc;z-index:3}.hello-bubble>span{display:block;font-size:14px;font-weight:500;color:#64735c;margin-top:4px}.hero-island{position:absolute;left:45px;right:20px;bottom:65px;height:80px;background:#b2c785;border-radius:50%;border-bottom:15px solid #9aaa73;transform:rotate(-4deg);z-index:-1}.floating{position:absolute;font:800 70px var(--display)}.math-one{left:20px;top:75px;color:#e4ad46;transform:rotate(-20deg)}.math-two{right:30px;top:90px;color:#a697ce;transform:rotate(15deg)}.math-three{right:15px;top:233px;color:#e89a72;transform:rotate(15deg)}.spark{position:absolute;font-size:33px;color:#dfa732}.spark-one{left:70px;bottom:63px}.spark-two{right:5px;top:30px;color:#87a366}.float-card{position:absolute;background:#fffef8;border-radius:16px;border:2px solid white;box-shadow:0 6px 0 #243d3210;z-index:4}.sum{top:245px;left:-5px;padding:16px;font:800 26px var(--display);transform:rotate(-9deg)}.sum strong{color:#679146}.sum>span{background:#e3efce;color:#5d803e;padding:3px 6px;margin-left:8px;font-size:18px;border-radius:50%}.praise{right:-5px;top:370px;padding:13px 18px;transform:rotate(7deg);font-weight:800}.praise>span{color:#bd8720;font-size:25px;vertical-align:middle;margin-right:5px}.art-caption{position:absolute;bottom:7px;text-align:center;width:100%;font-size:11px;letter-spacing:1.15px;color:#75816b}.welcome-bottom{display:flex;justify-content:space-around;align-items:center;padding:23px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#f0f2e3;font-size:15px;font-weight:600;border-radius:16px;gap:15px}.back{border:0;background:none;padding:7px 0;min-height:48px;font-weight:700;font-size:15px;color:#60715b;display:inline-flex;align-items:center;gap:10px}.back:hover{color:#214d35}.back>span{font-size:27px;line-height:1}.screen-intro{margin:23px 0 30px}.screen-intro h1{margin:10px 0 14px}.screen-intro>p:last-child{color:#64725e;font-size:17px}.grade-screen{max-width:900px;margin:auto}.grade-screen>.screen-intro{text-align:center}.grade-layout{display:grid;grid-template-columns:1fr 1.3fr;gap:55px;align-items:center;padding:15px 10px 40px}.grade-mimo{position:relative;max-width:320px}.grade-mimo .mimo{width:100%;height:auto;transform:rotate(-4deg)}.little-note{display:block;text-align:center;font-weight:700;font-size:16px;transform:rotate(-5deg);color:#6b8353}.grades{display:grid;grid-template-columns:1fr 1fr;gap:18px}.grade{border:2px solid #e0e3cd;border-radius:24px;background:#edf1dc;min-height:150px;position:relative;box-shadow:0 5px 0 #e4e7d5;text-align:left;padding:16px 25px;transition:transform .16s}.grade>span:first-child{font:800 53px var(--display);display:block}.grade>small{font-size:15px}.grade-2{background:#f6e4d7}.grade-3{background:#e7e0f1}.grade-4{background:#e0ece5}.grade-check{position:absolute;right:18px;top:18px;color:#7c925e;font-size:21px}.grade[aria-pressed=true]{border-color:#2f6846;box-shadow:0 5px 0 #96b17d}.grade[aria-pressed=true] .grade-check{background:#285c42;color:white;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:17px}.grade:hover{transform:translateY(-3px)}.grade-feedback{min-height:56px;margin:23px 0 12px;font-size:16px;text-align:center;color:#5c7054}.map-top{display:flex;align-items:center;justify-content:space-between}.pill{display:inline-flex;align-items:center;gap:10px;border:1px solid #dce3cf;border-radius:25px;padding:9px 16px;font-size:14px;font-weight:700;background:#fffdf6}.pill-dot{color:#a9b49c}.map-title{display:flex;align-items:center;justify-content:space-between}.map-title .screen-intro{margin-bottom:26px}.map-mimo{width:115px;height:auto;transform:rotate(7deg);margin-right:30px}.adventure-map{position:relative;overflow:hidden;border-radius:32px;background:#edf2dc;border:7px solid #fffdf7;box-shadow:0 7px 0 #e1e6d5;min-height:465px}.terrain{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.map-worlds{position:relative;display:grid;grid-template-columns:repeat(3,1fr);gap:25px;padding:30px 25px 65px;align-items:start}.world-card{border:2px solid #fffdf8;border-radius:24px;background:#fffdf6;box-shadow:0 7px 0 #b8c89b;padding:0;overflow:hidden;text-align:left;transition:transform .2s;position:relative}.world-card:hover{transform:translateY(-7px)}.world-card.forest{margin-top:35px;transform:rotate(-2deg)}.world-card.forest:hover{transform:rotate(-2deg) translateY(-7px)}.world-card.forms{margin-top:100px;transform:rotate(2deg);box-shadow:0 7px 0 #d5b895}.world-card.forms:hover{transform:rotate(2deg) translateY(-7px)}.world-card.mystery{margin-top:3px;transform:rotate(-1deg);box-shadow:0 7px 0 #b8a6ce}.world-card.mystery:hover{transform:rotate(-1deg) translateY(-7px)}.world-illustration{height:160px;background:#e6edce;display:flex;align-items:center}.peach .world-illustration{background:#f4e0cd}.purple .world-illustration{background:#e6dff0}.landscape{display:block;width:100%;height:auto;max-height:200px}.world-content{padding:20px}.world-content .eyebrow{font-size:11px;letter-spacing:1.25px}.world-content h2{font-size:27px;letter-spacing:-.8px;margin:8px 0}.world-content p{font-size:14px;color:#63705d;min-height:46px}.world-stars{margin-top:13px;padding-top:13px;border-top:1px solid #e7e8d8;display:flex;align-items:center;justify-content:space-between;gap:5px}.world-stars>span:last-child{font-size:13px;font-weight:700;color:#506a42}.stars{display:inline-flex;gap:4px;white-space:nowrap;color:#d6dbc8;font-size:23px;line-height:1.3}.stars .earned{color:#bd861c}.world-stars .stars{font-size:19px;gap:2px}.map-caption{position:absolute;right:25px;bottom:20px;font-size:10px;font-weight:800;letter-spacing:2px;color:#68866c}.map-foot{text-align:center;margin:27px 0 0;font-size:15px;color:#64745c}.game-navigation{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.game-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:35px;max-width:1050px;margin:auto;align-items:start}.guide{text-align:center;padding-top:5px}.guide-world>.landscape{height:125px}.guide-world .eyebrow{font-size:11px}.guide h2{font-size:29px;margin:6px 0 0}.guide-mimo{width:170px;height:auto;margin:20px auto -7px}.guide-bubble{border:1px solid #dce3ce;background:#f0f3e2;border-radius:18px;padding:18px;text-align:left;position:relative}.guide-bubble:before{content:'';position:absolute;top:-9px;left:calc(50% - 8px);width:16px;height:16px;transform:rotate(45deg);border-top:1px solid #dce3ce;border-left:1px solid #dce3ce;background:inherit}.guide-bubble strong{font-size:16px}.guide-bubble p{font-size:14px;color:#65725d;margin-top:6px}.task-card{background:#fffef9;border:1px solid #dde2d0;border-radius:28px;padding:27px 32px;box-shadow:0 7px 0 #e4e9d6;min-height:540px}.task-top{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:15px;font-weight:800}.muted{color:#7a8470;font-weight:500}.progress-track{display:flex;gap:7px;margin:18px 0 28px}.progress-track>span{height:6px;flex:1;border-radius:5px;background:#ebeedf}.progress-track .current{background:#bbcf9d}.progress-track .done{background:#5b8a4b}.task-question{font-size:23px;line-height:1.4;letter-spacing:-.35px;text-align:center;min-height:33px}.task-visual{min-height:165px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:15px 0}.equation{font:800 clamp(2.1rem,4.7vw,3.6rem) var(--display);letter-spacing:-1px;white-space:nowrap}.sequence{font:800 clamp(1.7rem,3.6vw,2.7rem) var(--display);letter-spacing:1px;text-align:center}.story{font-size:24px;font-weight:800;text-align:center;line-height:1.5}.shape-svg{width:210px;height:190px}.answers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.answer{min-width:0;min-height:70px;border:2px solid #dfe5d1;border-radius:16px;background:#fffef9;box-shadow:0 4px 0 #e2e6d5;font:800 29px var(--display);padding:12px;position:relative;transition:transform .12s,border-color .12s}.answer:hover:not(:disabled){border-color:#8ca96c;transform:translateY(-2px)}.answer.selected{background:#eaf0d8;border-color:#799854;box-shadow:0 4px 0 #adc38d}.answer.wrong{background:#fbebdf;border-color:#d99b73;box-shadow:0 4px 0 #edcfb6}.answer.correct{background:#e6f0d4;border-color:#719654;box-shadow:0 4px 0 #bdcfa4}.text-answers{grid-template-columns:repeat(auto-fit,minmax(min(100%,9.5rem),1fr))}.text-answers .answer{font:700 18px/1.5 var(--body);min-height:70px}.text-answers .answer-check{display:block;margin:3px auto 0}.answer>span:first-child{display:block;max-width:100%;overflow-wrap:anywhere;hyphens:auto}.answer-check{font-size:17px;margin-left:7px;color:#356739}.feedback{display:flex;flex-direction:column;justify-content:center;text-align:center;min-height:79px;margin-top:17px;padding:12px;border-radius:12px;font-size:15px;color:#68755e;line-height:1.5}.feedback strong{font-size:17px;margin-bottom:3px;color:var(--ink)}.feedback.success{background:#edf4df;color:#47623c}.feedback.retry{background:#fcf0e5;color:#855936}.hint-panel{display:flex;gap:13px;padding:17px;background:#fff5d6;border:1px solid #efdfaf;border-radius:14px;margin-top:10px;text-align:left}.hint-panel>span{font-size:27px;color:#a3751d}.hint-panel strong{font-size:15px}.hint-panel p{font-size:15px;line-height:1.6;margin-top:4px}.task-actions{border-top:1px solid #e7eadc;display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:18px;padding-top:20px}.hint-button{display:flex;align-items:center;gap:7px;border:0;background:none;min-height:48px;padding:8px 0;font-size:14px;font-weight:800;color:#64784f}.hint-button>span{font-size:23px;color:#a37d24}.gentle-note{font-size:14px;color:#64745b;line-height:1.6}.peach .guide-bubble{background:#f9ede0;border-color:#e9d6c4}.peach .progress-track .current{background:#e9c09c}.peach .progress-track .done{background:#c68457}.purple .guide-bubble{background:#eee8f6;border-color:#dcd1e9}.purple .progress-track .current{background:#c7b5db}.purple .progress-track .done{background:#9276b0}.match-instruction{font-size:14px;color:#67745c;margin:4px 0 14px}.match-grid{display:grid;grid-template-columns:1fr 1fr;gap:38px;width:100%;max-width:430px}.match-shapes,.match-names{display:grid;gap:12px}.shape-button,.match-name{border:2px solid #dce3cd;box-shadow:0 3px 0 #e5e8da;border-radius:13px;background:#fffdf5;min-height:69px;font-size:16px;font-weight:700;position:relative}.shape-button .shape-svg{width:65px;height:62px;display:block;margin:auto}.shape-button.selected{border-color:#698c4f;background:#eaf1da}.shape-button.matched,.match-name.matched{background:#eaf2db;border-color:#8ba86f}.match-tick{position:absolute;right:12px;top:25px;color:#386a39}.match-name:disabled:not(.matched){opacity:.55}.count-area{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;max-width:420px}.count-item{border:2px solid transparent;border-radius:13px;background:#f7f6e9;width:70px;height:82px;position:relative;padding:6px}.count-item svg{width:52px;height:57px}.count-item.counted{border-color:#809d5d;background:#edf2dc}.count-item>span{position:absolute;right:1px;top:0;background:#326144;color:#fff;border-radius:50%;min-width:23px;line-height:23px;font-size:13px;font-weight:800}.count-item>span:empty{display:none}.count-note{font-size:14px;color:#6a775d;margin-top:12px}.pattern{display:flex;align-items:center;justify-content:center;gap:3px;width:100%}.pattern .shape-svg{width:15%;height:auto}.pattern-question{font-size:40px;color:#8e76ad;font-weight:800;margin-left:8px}.balls{display:flex;flex-wrap:wrap;justify-content:center;gap:14px}.ball{width:43px;height:43px;border-radius:50%;box-shadow:inset -5px -5px 0 #00000010}.ball.red{background:#c96755}.ball.blue{background:#639cb0}.outfits{text-align:center;font-size:34px}.outfits span{display:block;margin:8px 0}.result-screen{text-align:center;max-width:800px;margin:10px auto 0;position:relative}.result-screen h1{font-size:clamp(2rem,5vw,3.4rem);margin:12px 0}.result-screen .lead{font-size:18px}.result-hero{display:flex;align-items:center;justify-content:center;gap:10px;margin:12px auto 0;max-width:480px}.result-hero .mimo{width:250px;height:auto;transform:rotate(-6deg)}.result-badge{background:#f1ecd3;border:2px solid #e4d7a9;border-radius:50%;width:158px;height:158px;display:flex;align-items:center;justify-content:center;flex-direction:column;transform:rotate(8deg);box-shadow:0 7px 0 #e7dfc2}.result-badge>span{color:#b88015;font-size:25px}.result-badge strong{font:800 36px var(--display)}.result-badge small{font-size:12px;max-width:110px;line-height:1.4}.result-screen>.stars{font-size:37px;gap:13px;margin-top:10px}.result-message{font-size:17px;line-height:1.6;color:#60705b;margin:20px 0 25px}.result-actions{display:flex;justify-content:center;gap:16px;margin-bottom:23px}.result-confetti{font-size:25px;color:#c18b24;letter-spacing:20px;margin-bottom:15px}.result-confetti span{color:#a594c3}.skip{position:fixed;top:-100px;left:15px;background:var(--green);color:white;padding:12px;z-index:20;border-radius:10px}.skip:focus{top:10px}.storage-warning{background:#fff0cc;padding:14px;border-radius:12px;font-size:14px;margin-bottom:12px}dialog{border:1px solid #dbe3ce;border-radius:26px;padding:30px;max-width:530px;width:calc(100% - 32px);max-height:90dvh;color:var(--ink);background:#fffdf5;box-shadow:0 20px 100px #21392433}dialog::backdrop{background:#23392e75;backdrop-filter:blur(4px)}dialog h2{font-size:26px;margin:5px 0 16px}dialog p{font-size:15px;line-height:1.7;margin:12px 0}dialog .button{margin-top:12px;width:100%}.close{position:absolute;right:20px;top:20px}.result-screen,.grade-screen,.map-screen,.game-screen,.welcome{animation:appear .25s ease-out}@keyframes appear{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes bob{50%{transform:translateY(-7px) rotate(1deg)}}
@media(min-width:1450px){.app-shell{padding-top:15px}.welcome{min-height:640px}.hero-art{transform:scale(1.04)}}
@media(max-width:1050px){.app-shell{padding:0 25px}.hero-copy{padding-left:5px}.hero-art{transform:scale(.9);margin-left:-15px;margin-right:-10px}.welcome h1{font-size:66px}.welcome h1 svg{left:110px;width:255px}.map-worlds{gap:15px;padding:25px 18px 65px}.world-content{padding:16px}.world-content p{font-size:13px}.world-content h2{font-size:24px}.world-content .eyebrow{font-size:10px}.world-stars{flex-wrap:wrap;gap:8px}.world-illustration{height:135px}.adventure-map{min-height:430px}.game-layout{grid-template-columns:210px minmax(0,1fr);gap:25px}.task-card{padding:24px}.guide h2{font-size:26px}.grade-layout{gap:30px}}
@media(max-width:760px){.app-shell{padding:0 20px}.topbar{height:88px}.brand{font-size:25px}.brand-icon{width:34px;height:34px;font-size:26px}.header-right{gap:8px}.star-counter{padding:9px 12px;font-size:17px}.star-max{font-size:12px}.icon-button{width:40px;height:40px}.welcome{grid-template-columns:1fr;max-width:510px;margin:auto;text-align:center;padding-top:16px;gap:5px}.welcome h1{font-size:65px;letter-spacing:-2.5px;margin:20px 0 28px}.welcome h1 svg{left:calc(50% - 40px);width:245px}.welcome .eyebrow{font-size:11px;letter-spacing:1.1px}.hero-notes{justify-content:center;margin-top:22px}.hero-art{width:100%;max-width:450px;height:450px;margin:0 auto;transform:scale(.92)}.hero-art .mimo{top:86px;width:310px;left:calc(50% - 155px)}.hello-bubble{top:8px;left:95px;padding:14px 22px}.hero-island{bottom:60px;left:25px;right:10px}.math-one{top:60px;left:5px}.math-two{top:60px;right:15px}.math-three{top:210px;right:0}.sum{top:200px;left:0;font-size:23px}.praise{top:315px;right:0}.art-caption{bottom:7px;font-size:10px}.welcome-bottom{flex-wrap:wrap;text-align:center;gap:12px 25px;font-size:14px;padding:20px 10px}.screen-intro{text-align:center;margin-top:20px}.screen-intro h1{font-size:35px;letter-spacing:-1px}.screen-intro>p:last-child{font-size:16px}.grade-layout{grid-template-columns:1fr;gap:17px;max-width:450px;margin:auto;padding:0 10px 25px}.grade-mimo{display:none}.grade{min-height:140px}.map-title .screen-intro{text-align:left}.map-title .screen-intro h1{font-size:33px}.map-title .screen-intro .eyebrow{font-size:11px}.map-mimo{width:90px;margin-right:0}.map-worlds{gap:12px;padding:22px 14px 58px}.world-content{padding:13px}.world-content h2{font-size:21px}.world-content p{font-size:12px}.world-content .eyebrow{font-size:9px;letter-spacing:.5px}.world-illustration{height:115px}.world-stars .stars{font-size:16px}.adventure-map{min-height:390px;border-width:5px}.world-card.forms{margin-top:70px}.world-card.forest{margin-top:20px}.game-layout{grid-template-columns:1fr;gap:14px}.guide{display:flex;text-align:left;align-items:center;justify-content:space-between;padding:0;gap:13px}.guide-world{flex:1}.guide-world>.landscape{display:none}.guide-world h2{font-size:25px;margin:5px 0}.guide-world .eyebrow{font-size:10px}.guide-mimo{width:82px;height:auto;margin:0;order:3}.guide-bubble{display:none}.task-card{padding:24px;min-height:510px}.task-question{font-size:23px}.task-visual{min-height:155px}.task-top{font-size:14px}.task-top .stars{font-size:21px}.task-actions{margin-top:15px}footer{font-size:12px;gap:8px;margin-top:28px;min-height:70px}.result-hero .mimo{width:220px}.result-badge{width:140px;height:140px}.result-screen .lead{font-size:16px}.result-message{font-size:16px}.result-actions{gap:12px}}
@media(max-width:540px){.app-shell{padding:0 17px}.topbar{height:80px}.brand{font-size:23px}.brand-icon{width:31px;height:31px;font-size:25px}.header-right{gap:7px}.star-counter{font-size:16px;padding:9px 11px}.star-max{display:none}.header-right>.icon-button{width:38px;height:38px;font-size:18px}.header-right>.button.small{font-size:12px;padding:7px 9px;min-height:38px}.welcome h1{font-size:61px}.welcome .lead{font-size:18px}.hero-art{height:420px;transform:scale(.89);margin-top:-7px;margin-bottom:-18px}.hero-art .mimo{width:290px;left:calc(50% - 145px);top:80px}.hello-bubble{left:calc(50% - 100px)}.hero-island{bottom:65px;left:15px;right:0}.sum{left:-5px;top:195px;font-size:20px;padding:13px}.praise{right:-5px;top:300px;font-size:14px;padding:12px}.floating{font-size:59px}.math-one{left:0}.math-two{right:0}.math-three{top:195px;right:-10px}.art-caption{font-size:8px;letter-spacing:.7px;bottom:12px}.welcome-bottom{font-size:13px}.welcome-bottom>span:first-child{flex-basis:100%}.hero-notes{font-size:13px;gap:18px}.map-top .pill{font-size:12px;padding:8px 12px;gap:6px}.map-top .back{font-size:13px}.map-title .screen-intro{margin:18px 0 23px;max-width:80%}.map-title .screen-intro h1{font-size:31px;letter-spacing:-1.1px}.map-title .screen-intro>p:last-child{font-size:14px}.map-title .screen-intro .eyebrow{font-size:9px;letter-spacing:.7px}.map-mimo{width:72px;position:absolute;right:10px;transform:translateY(-3px) rotate(7deg)}.map-title{position:relative}.adventure-map{border-radius:25px;min-height:0}.map-worlds{grid-template-columns:1fr;padding:20px 17px 52px;gap:23px}.world-card{display:grid;grid-template-columns:115px 1fr;min-height:158px;max-width:325px;width:100%;border-radius:20px}.world-card.forest{margin-top:0;justify-self:start}.world-card.forms{margin-top:0;justify-self:end}.world-card.mystery{margin-top:0;justify-self:start}.world-illustration{height:100%;width:115px;overflow:hidden;position:relative}.world-illustration .landscape{height:150px;width:230px;max-width:none;position:absolute;left:-56px}.world-content{padding:14px 11px}.world-content h2{font-size:22px;margin:5px 0}.world-content p{font-size:12px;min-height:0;line-height:1.5}.world-content .eyebrow{font-size:8px;letter-spacing:.7px}.world-stars{padding-top:8px;margin-top:8px;gap:6px}.world-stars>span:last-child{font-size:12px}.world-stars .stars{font-size:16px;gap:2px}.map-caption{font-size:8px;right:17px;bottom:17px}.map-foot{font-size:13px;margin-top:22px}.game-navigation{margin-bottom:10px}.guide-mimo{width:72px}.task-card{padding:20px 17px;border-radius:24px}.task-question{font-size:21px;min-height:30px}.task-visual{min-height:157px;padding:13px 0}.equation{font-size:clamp(1.7rem,7vw,2.7rem);letter-spacing:-1px}.sequence{font-size:27px;letter-spacing:0}.story{font-size:21px}.answer{min-height:66px;font-size:26px;padding:10px 5px;border-radius:13px}.answers{gap:11px}.text-answers{grid-template-columns:1fr;gap:10px}.text-answers .answer{min-height:56px;font-size:16px;padding:10px}.text-answers .answer-check{display:inline;margin-left:8px}.task-actions{gap:10px;align-items:center}.task-actions .button{font-size:14px;padding:13px 16px;min-height:52px}.hint-button{font-size:12px;gap:4px}.hint-button>span{font-size:21px}.task-actions .gentle-note{font-size:12px;max-width:100px}.feedback{font-size:14px;min-height:85px}.feedback strong{font-size:16px}.progress-track{margin:16px 0 23px}.shape-svg{width:200px;height:180px}.count-item{width:62px;height:72px}.count-item svg{width:45px;height:50px}.count-area{gap:8px;max-width:290px}.match-grid{gap:24px}.shape-button,.match-name{min-height:64px;font-size:14px}.shape-button .shape-svg{height:59px;width:64px}.pattern-question{font-size:31px}.grade{min-height:137px;padding:15px 20px}.grades{gap:16px}.grade>span:first-child{font-size:48px}.grade-feedback{font-size:14px}.grade-screen .screen-intro h1{font-size:33px}.grade-screen .screen-intro .eyebrow{font-size:11px}.grade-screen .screen-intro>p:last-child{font-size:15px}.result-screen{margin-top:20px}.result-screen h1{font-size:33px;letter-spacing:-1px}.result-screen>.eyebrow{font-size:11px}.result-hero{margin-top:20px;gap:0}.result-hero .mimo{width:195px}.result-badge{width:122px;height:122px}.result-badge strong{font-size:29px}.result-badge small{font-size:10px;max-width:95px}.result-screen>.stars{font-size:30px;gap:12px}.result-actions{flex-direction:column;max-width:300px;margin:0 auto 25px}.result-confetti{letter-spacing:15px;font-size:20px}.result-message{font-size:15px}.result-screen>.gentle-note{font-size:13px}footer{font-size:11px;flex-wrap:wrap;align-content:center;justify-content:center;gap:6px 18px;padding:13px 0}.storage-warning{font-size:13px}dialog{padding:25px}dialog h2{font-size:24px}dialog p{font-size:14px}}
@media(max-width:355px){.app-shell{padding:0 12px}.brand{font-size:21px}.header-right{gap:5px}.star-counter{padding:9px}.brand-icon{margin-right:6px}.welcome h1{font-size:52px}.welcome h1 svg{width:205px;left:calc(50% - 35px)}.hello-bubble{font-size:14px}.hero-art{transform:scale(.85);margin-top:-15px;margin-bottom:-25px}.welcome .eyebrow{font-size:9px}.world-card{grid-template-columns:95px 1fr}.world-illustration{width:95px}.world-illustration .landscape{left:-65px}.world-content h2{font-size:20px}.world-content .eyebrow{font-size:7px}.world-stars .stars{font-size:14px}.task-card{padding:18px 13px}.task-question{font-size:19px}.task-actions .button{font-size:13px;padding:12px}.hint-button{font-size:11px}.count-item{width:59px}.sequence{font-size:23px}.result-hero .mimo{width:170px}.result-badge{width:115px;height:115px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* UX review: controls stay readable and reachable at narrow widths and larger text sizes. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.pair-number{display:block;font-size:14px;color:#386a39;margin-top:4px}
.match-tick{font-size:14px;right:6px}
.topbar{height:auto;min-height:106px;padding:20px 0;flex-wrap:wrap;row-gap:12px}
.brand{flex-shrink:0}
.header-right{min-width:0;max-width:100%;margin-left:auto;flex-wrap:wrap}
.icon-button,.header-right>.icon-button{min-width:44px;min-height:44px;width:44px;height:44px;flex-shrink:0}
.header-right>.button.small{min-height:44px;font-size:14px}
.welcome h1 em{position:relative;display:inline-block}
.welcome h1 em svg{inset:auto 0 -13px;left:0;width:100%;height:24px}
.game-layout>*,.task-card,.world-content,.match-grid>*,.task-actions>*{min-width:0}
.task-card{container-type:inline-size}
.equation{font-size:clamp(1.5rem,8cqi,3.4rem);white-space:normal;max-width:100%;overflow-wrap:anywhere;text-align:center;line-height:1.4}
.sequence,.story{max-width:100%;overflow-wrap:anywhere}
.task-actions{flex-wrap:wrap}
.task-actions>.button{max-width:100%;white-space:normal}
.match-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.match-name{padding:10px 8px;overflow-wrap:anywhere;hyphens:auto}
.pattern .shape-svg{flex:1 1 0;min-width:0;width:auto}
.pattern-question{flex:0 0 auto}
.world-content .eyebrow{font-size:12px;line-height:1.5;letter-spacing:.6px}
.world-content p,.world-stars>span:last-child{font-size:14px}
.world-stars{flex-wrap:wrap;row-gap:7px}
.match-instruction{color:#506344}
@media(max-width:760px){
 .topbar{min-height:88px;padding:18px 0}
 .grade-mimo{display:flex;align-items:center;gap:12px;max-width:100%;justify-self:center}
 .grade-mimo .mimo{width:75px;height:auto;flex-shrink:0}
 .little-note{font-size:14px;transform:none;text-align:left}
 .grade-layout{gap:12px}
 .guide{display:grid;grid-template-columns:minmax(0,1fr) 76px;gap:10px}
 .guide-world{grid-column:1;grid-row:1}
 .guide-mimo{grid-column:2;grid-row:1;width:76px;margin:0}
 .guide-bubble{display:block;grid-column:1/-1;grid-row:2;padding:11px 14px}
 .guide-bubble:before{display:none}
 .guide-bubble strong,.guide-bubble p{font-size:14px;line-height:1.5}
 .guide-bubble p{margin-top:3px}
}
@media(max-width:640px){
 .map-worlds{grid-template-columns:1fr;padding:20px 17px 52px;gap:23px}
 .world-card{display:grid;grid-template-columns:105px minmax(0,1fr);min-height:175px;max-width:360px;width:100%;border-radius:20px;transform:none}
 .world-card.forest,.world-card.forms,.world-card.mystery{margin-top:0;transform:none}
 .world-card.forest,.world-card.mystery{justify-self:start}
 .world-card.forms{justify-self:end}
 .world-illustration{width:105px;height:100%;position:relative;overflow:hidden}
 .world-illustration .landscape{height:150px;width:230px;max-width:none;position:absolute;left:-61px}
 .world-content{padding:14px 11px}
 .world-content h2{font-size:23px;line-height:1.25;overflow-wrap:anywhere}
 .world-content p{min-height:0}
 .world-stars .stars{font-size:18px}
 .adventure-map{min-height:0}
}
@media(max-width:540px){
 .topbar{min-height:80px;padding:15px 0}
 .hint-button{font-size:14px}
 .match-name{font-size:16px}
 .feedback{font-size:16px}
 .task-actions .gentle-note{max-width:none;flex:1 1 90px}
 .task-actions .button{font-size:15px;flex:1 1 160px}
}
@media(max-width:355px){
 .world-card{grid-template-columns:82px minmax(0,1fr)}
 .world-illustration{width:82px}
 .world-illustration .landscape{left:-72px}
 .world-content h2{font-size:21px}
 .world-content .eyebrow{font-size:12px}
 .hint-button{font-size:14px}
}

/* Keep the decorative orbit within the mobile hero. */
.hero-art .orbit.second{inset:60px 24px 35px}
