:root{color-scheme:light;--paper:#f7f5eb;--ink:#294f46;--muted:#70857b;--mint:#71aa93;--line:#e0e6d9;--sky:#bcdce7;--gold:#ecc46b;--peach:#edb7a2;font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}button,a{touch-action:manipulation}button{font:inherit;cursor:pointer;color:inherit;border:0}button:focus-visible,a:focus-visible{outline:3px solid #397f9e;outline-offset:4px}button{transition:transform .16s,box-shadow .16s,background .16s}button:active{transform:translateY(3px) scale(.98)}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}button:disabled{cursor:default}small{font-size:12px}button:disabled:not(.correct):not(.wrong){opacity:.64}.landscape{position:fixed;bottom:0;left:0;width:100%;height:110px;z-index:-1;overflow:hidden;pointer-events:none}.landscape:before,.landscape:after{content:"";position:absolute;width:85%;height:150px;border-radius:50% 50% 0 0;background:#e7ecdb;bottom:-90px;left:-15%;transform:rotate(3deg)}.landscape:after{left:45%;bottom:-65px;background:#e0e9db;transform:rotate(-5deg)}.home-shell{max-width:1200px;margin:auto;padding:30px 38px 18px}.site-header,.header-actions,.brand{display:flex;align-items:center}.site-header{justify-content:space-between;gap:14px}.brand{gap:12px;font-size:21px;font-weight:800;letter-spacing:1px}.brand-mark{display:grid;place-items:center;background:#83b69c;color:#fff9e8;width:47px;height:48px;border-radius:15px;font-size:35px;box-shadow:0 4px 0 #669780;transform:rotate(-5deg)}.brand small{display:block;font-size:11px;letter-spacing:3px;font-weight:500;margin-top:5px;color:var(--muted)}.header-actions{gap:14px}.icon-button{display:flex;align-items:center;justify-content:center;gap:7px;background:transparent;padding:10px;border-radius:12px;font-size:24px}.icon-button span{font-size:13px}.notebook{border:1px solid #dce3d7;background:#fffdf6;padding:12px 16px;border-radius:15px;font-size:14px;box-shadow:0 3px 0 #e6e8dd}.notebook>span{font-size:19px}.notebook b{background:#eaf0e4;border-radius:7px;padding:2px 6px;margin-left:6px;font-size:12px}.welcome{display:flex;justify-content:space-between;align-items:center;padding:38px 24px 35px 6px;gap:25px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;color:#698477;display:inline-flex;align-items:center;gap:8px}.eyebrow i,.map-key i{width:7px;height:7px;border-radius:50%;background:#88af82;display:inline-block}.welcome h1{font-size:clamp(28px,3.5vw,42px);line-height:1.45;letter-spacing:1px;margin:12px 0}.welcome h1 span{color:#629b7c;position:relative;white-space:nowrap}.welcome h1 span:after{content:"";height:8px;background:#e8d99c70;position:absolute;bottom:0;left:0;width:100%;border-radius:50%}.mobile-break{display:none}.welcome p{font-size:14px;color:var(--muted);line-height:1.8}.stats{display:flex;align-items:center;gap:26px;margin-top:25px}.stats>div{display:grid;grid-template-columns:38px auto;column-gap:10px}.stat-icon{grid-row:span 2;align-self:center;background:#fbedd0;color:#bb8d2b;width:38px;height:40px;border-radius:13px;display:grid;place-items:center;font-size:24px}.stat-icon.sky{background:#deedf0;color:#6197aa}.stats strong{font-size:25px;line-height:1.1}.stats div>span:last-child{font-size:11px;color:var(--muted);margin-top:4px}.daily-note{font-size:11px;color:#8b9a89;line-height:1.8;border-left:1px solid #d9dfd1;padding-left:23px}.hero-art{width:265px;position:relative;flex-shrink:0;text-align:center;background:radial-gradient(ellipse at center,#e7edda 0%,#e7edda80 50%,transparent 65%)}.mascot{width:220px;max-width:100%}.art-label{display:inline-block;font-size:12px;padding:8px 14px;border-radius:14px 14px 14px 1px;background:#fffdf7;border:1px solid #e5e7d8;transform:rotate(5deg)}.spark{position:absolute;font-size:28px;color:#d9b454}.s1{left:0;top:70px}.s2{right:0;top:125px;color:#a1bb9c}.s3{left:12px;bottom:10px;color:#a4bec7;transform:rotate(-16deg)}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;margin:0 0 22px}.section-heading .eyebrow{font-size:10px;letter-spacing:2.2px;color:#91a08c}.section-heading h2{font-size:22px;margin-top:7px;letter-spacing:1px}.section-heading h2>span{font-size:12px;font-weight:400;margin-left:12px;color:var(--muted);letter-spacing:0}.map-key{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:7px}.stage-map{display:grid;grid-template-columns:repeat(4,1fr);gap:19px;position:relative}.stage-card{padding:18px;text-align:left;background:#fffdf7;border:1px solid #dde5d8;border-radius:22px;box-shadow:0 5px 0 #dde4d5;min-width:0;position:relative;overflow:hidden}.stage-card:hover{transform:translateY(-3px);box-shadow:0 8px 0 #dde4d5}.stage-1{background:#f1f6e9}.stage-2{background:#eef5f7}.stage-3{background:#fcf1e6}.card-top{display:flex;justify-content:space-between;align-items:center;gap:5px}.level-tag{font-size:12px;font-weight:700;letter-spacing:.5px}.availability{font-size:10px;color:#608d71;border:1px solid #ccddc3;border-radius:20px;padding:3px 7px;background:#ffffff60}.stage-illustration{height:85px;position:relative;display:grid;place-items:center}.stage-illustration>span{width:60px;height:60px;border-radius:20px;background:#c4dcc1;color:#547a55;display:grid;place-items:center;font-size:36px;font-weight:700;box-shadow:inset -4px -5px 0 #00000009;transform:rotate(-8deg)}.stage-2 .stage-illustration>span{background:#bcd8e4;color:#577d92;transform:rotate(7deg)}.stage-3 .stage-illustration>span{background:#efc6a6;color:#9b7653;transform:rotate(-5deg)}.stage-illustration>i{position:absolute;width:15px;height:15px;border:2px solid #bdd2ae;border-radius:5px;left:20%;bottom:20px;transform:rotate(20deg)}.stage-illustration>b{position:absolute;right:20%;top:17px;color:#c5bc82;font-size:16px}.stage-card h3{font-size:19px;letter-spacing:1px;margin-bottom:7px}.stage-card p{font-size:11px;color:var(--muted);white-space:nowrap}.stage-progress{height:5px;background:#dce5d666;border-radius:9px;margin:18px 0 11px;overflow:hidden}.stage-progress>span{display:block;height:100%;background:#8fb797;border-radius:9px}.card-bottom{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#8b9987}.card-bottom strong{font-size:12px;color:#547b65}.locked{background:#f6f5ec;box-shadow:0 4px 0 #e4e6da;border-style:dashed}.locked .stage-illustration>span{background:#e4e7d9;color:#8d9b82;font-size:30px}.locked h3{color:#7a8a73}.locked .availability{color:#929c88;border-color:#dfe2d5}.locked .card-bottom strong{color:#96a08f}.locked .stage-progress{background:#e4e6db}.home-shell footer{display:flex;justify-content:space-between;margin:29px 0 10px;font-size:11px;color:#83927c}.storage-note{text-align:center;color:#95a18e;font-size:10px;line-height:1.7}#toast{position:fixed;left:50%;bottom:28px;max-width:90vw;transform:translate(-50%,20px);background:#365d50;color:white;padding:13px 22px;border-radius:18px;box-shadow:0 8px 30px #284b4622;font-size:14px;opacity:0;transition:.2s;pointer-events:none;z-index:30}#toast.show{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid #e1e5d6;border-radius:28px;background:#fffdf4;color:var(--ink);padding:35px;width:min(580px,calc(100% - 32px));max-height:90dvh;box-shadow:0 25px 90px #284b462a;overscroll-behavior:contain}dialog::backdrop{background:#254b4560;backdrop-filter:blur(5px)}dialog h2{font-size:25px;margin:12px 0}dialog p{font-size:15px;line-height:1.9}.close{position:absolute;right:15px;top:12px;background:#eef1e5;width:34px;height:34px;border-radius:50%;font-size:23px}.muted{color:var(--muted)}.mode-list{display:grid;gap:14px;margin-top:24px}.mode-card{display:flex;text-align:left;align-items:center;gap:14px;padding:20px 16px;border-radius:19px;background:#edf4e7;box-shadow:0 4px 0 #d8e3d2}.mode-card:nth-child(2){background:#eaf3f5;box-shadow:0 4px 0 #d4e4e8}.mode-icon{font-size:30px;color:#77a386}.mode-card strong{font-size:18px}.mode-card small{display:block;color:var(--muted);margin-top:7px;font-size:11px}.mode-card b{margin-left:auto;font-size:13px}.primary,.secondary{border-radius:15px;padding:13px 22px;font-weight:700;min-height:46px}.primary{background:#76a88e;color:white;box-shadow:0 4px 0 #5b8c73}.secondary{background:#eef0e5;color:#69816e;margin:10px 0}.hint-explanation{margin:16px 0 23px}.hint-picture{height:220px;margin-top:10px}.review-list{max-height:50dvh;overflow:auto;margin:20px 0}.review-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}.review-item small{display:block;color:var(--muted);margin-top:6px;font-size:11px}.review-item button{font-size:12px;padding:10px}.empty-state{text-align:center;color:var(--muted)}.empty-state .mascot{height:150px}.playing{height:100dvh;overflow:hidden}.game-shell{width:min(780px,100%);height:100dvh;margin:auto;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto;padding:16px 24px max(12px,env(safe-area-inset-bottom));gap:14px}.game-header{display:flex;justify-content:space-between;align-items:center}.game-title{text-align:center}.game-title>span{font-size:11px;letter-spacing:1px;color:var(--muted)}.game-title h1{font-size:23px;margin-top:4px}.game-header .icon-button{min-width:80px}.round-track{display:flex;align-items:center;gap:18px;justify-content:center;font-size:13px;color:var(--muted)}.track-dots{display:flex;gap:10px;flex:1;max-width:560px}.track-dots span{flex:1;display:grid;place-items:center;height:26px;border-radius:9px;background:#e7ebdc;color:#a1ad97;font-size:12px}.track-dots .current{background:#fff4cf;outline:2px solid #ddc47e;color:#a78843}.track-dots .done{background:#f1da9b;color:#ad842a}.question-panel{min-height:0;border:1px solid #dce5d8;border-radius:26px;background:#fffdf7;box-shadow:0 5px 0 #e0e7da;display:flex;flex-direction:column;padding:16px 20px 12px}.question-top{display:flex;justify-content:space-between;align-items:center}.question-badge{font-size:12px;color:#789777;background:#edf3e6;border-radius:9px;padding:6px 10px}.hint-button{padding:8px 11px;border-radius:11px;background:#fcf0cf;font-size:13px;color:#95722b}.question-panel h2{font-size:clamp(16px,2.3vw,21px);text-align:center;margin:12px 0 0;line-height:1.6;font-weight:600;outline:none}.diagram{flex:1;min-height:0;width:100%;display:flex;align-items:center;justify-content:center}.math-svg{width:100%;height:100%;overflow:visible;max-height:380px}.math-svg text{font-family:inherit;font-size:32px;font-weight:700;fill:var(--ink)}.math-svg .svg-note{font-size:17px;fill:#819178;font-weight:500}.branch{fill:none;stroke:#9bb8a5;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.number-box rect{fill:#edf3e7;stroke:#d9e3d2;stroke-width:2}.number-box.pending rect{fill:#f5f4ed;stroke-dasharray:4 4}.number-box.pending text{fill:#b2baaa}.number-box.active rect{fill:#fff1c9;stroke:#d6b96d;stroke-width:3}.number-box.active text{fill:#b49242}.number-box.filled rect{fill:#e2f0dc}.dot.mint{fill:#85b79c}.dot.peach{fill:#e9b094}.dot.gold{fill:#e7c36a}.cell{fill:#f0f3e9;stroke:#dae1d2;stroke-width:1.5}.branch.cross{stroke:#bc7f73;stroke-width:4}.column-highlight{fill:#fff1cf}.math-svg .carry{fill:#c27869;font-size:19px}.feedback{font-size:13px;text-align:center;min-height:22px;color:#8a967f;flex-shrink:0}.success{color:#5b9b73;animation:pop .35s}.answers{display:grid;grid-template-columns:1fr 1fr;gap:13px 18px;padding:3px 0 5px}.answer{height:76px;border-radius:19px;background:#e2eee0;border:1px solid #cedfc9;box-shadow:0 5px 0 #bccfb5;font-size:32px;font-weight:750;position:relative}.option-1{background:#e1eff2;border-color:#c8e0e4;box-shadow:0 5px 0 #bad3d9}.option-2{background:#fbecd9;border-color:#ebdac0;box-shadow:0 5px 0 #dfcbaa}.option-3{background:#eee7f2;border-color:#ded3e4;box-shadow:0 5px 0 #cdc0d5}.option-number{position:absolute;left:17px;top:12px;font-size:11px;opacity:.4}.answer-check{position:absolute;right:20px;font-size:22px;opacity:0}.answer.correct{background:#b7dba9;border-color:#86b57a;animation:pop .35s}.answer.correct .answer-check{opacity:1;color:#609442}.answer.wrong{animation:shake .35s;background:#f4e2d9;color:#9b8078;box-shadow:0 3px 0 #dcc7ba}.game-footer{display:flex;justify-content:space-between;font-size:11px;color:#8b9b83;padding:0 5px}.game-footer span{color:#b1964c}.result-shell{min-height:100dvh;display:grid;place-items:center;padding:25px}.result-card{max-width:590px;width:100%;background:#fffdf7;border:1px solid #dfe6d6;border-radius:32px;box-shadow:0 7px 0 #dce5d5;padding:35px;text-align:center}.medal{margin:25px auto;width:108px;height:108px;border:9px solid #f7df9f;border-radius:50%;background:#ebc569;box-shadow:0 6px 0 #d6b15c;display:grid;place-items:center;position:relative}.medal span{font-size:65px;color:#fff8da;animation:pop .6s}.result-card h1{font-size:34px;margin-bottom:12px}.result-card p{color:var(--muted);font-size:14px;line-height:1.8}.result-stats{display:flex;justify-content:space-around;margin:27px 0;padding:20px 0;border-block:1px dashed #dfe5d5}.result-stats strong{display:block;font-size:22px}.result-stats span{display:block;margin-top:7px;font-size:12px;color:var(--muted)}.result-card .primary,.result-card .secondary{display:block;width:100%;margin-top:14px}.result-card small{display:block;color:#99a28f;line-height:1.8;margin-top:15px}.result-encourage{margin-bottom:19px}.moving{animation:move-dot 3.5s var(--delay) infinite}.crossing{animation:cross-in 3s infinite;transform-box:fill-box;transform-origin:center}@keyframes move-dot{0%,12%{transform:translate(var(--dx),var(--dy))}50%,100%{transform:translate(0,0)}}@keyframes cross-in{0%,10%{opacity:0}35%,100%{opacity:1}}@keyframes pop{0%{transform:scale(.92)}60%{transform:scale(1.06)}100%{transform:scale(1)}}@keyframes shake{25%,75%{transform:translateX(-5px)}50%{transform:translateX(5px)}}
@media(min-width:1000px){.stage-map .stage-card:nth-child(5){grid-column:1}.stage-map{grid-template-columns:repeat(12,1fr)}.stage-card{grid-column:span 3}.stage-map .stage-card:nth-child(n+5){grid-column:span 4;display:grid;grid-template-columns:72px 1fr;column-gap:15px;padding:16px 20px}.stage-card:nth-child(n+5) .card-top{grid-column:1/-1}.stage-card:nth-child(n+5) .stage-illustration{grid-row:2/5;height:85px;margin-top:5px}.stage-card:nth-child(n+5) .stage-illustration i,.stage-card:nth-child(n+5) .stage-illustration b{display:none}.stage-card:nth-child(n+5) h3{margin-top:17px}.stage-card:nth-child(n+5) .stage-progress{display:none}.stage-card:nth-child(n+5) .card-bottom{grid-column:2;margin-top:12px}.stage-card:nth-child(n+5) h3{font-size:17px}}
@media(max-width:900px){.home-shell{padding:24px}.welcome{padding:30px 0}.hero-art{width:210px}.section-heading h2>span{display:block;margin:8px 0 0}.map-key{display:none}.stage-map{grid-template-columns:repeat(3,1fr);gap:16px}.stage-card{padding:15px}.stage-card p{font-size:10px}.stage-card h3{font-size:17px}}
@media(max-width:600px){.home-shell{padding:22px 18px 18px}.brand{font-size:17px;gap:9px}.brand-mark{width:38px;height:40px;font-size:28px}.brand small{font-size:9px;letter-spacing:2px}.header-actions{gap:3px}.site-header .icon-button span{display:none}.notebook{padding:9px 10px;font-size:12px}.notebook b{display:none}.welcome{padding:30px 0 25px;gap:0;position:relative}.welcome-copy{position:relative;z-index:1}.welcome .eyebrow{font-size:10px;letter-spacing:1px}.welcome h1{font-size:29px;line-height:1.55}.mobile-break{display:block}.welcome p{font-size:12px;max-width:240px}.hero-art{position:absolute;right:-6px;top:47px;width:135px;opacity:.9}.hero-art .art-label{font-size:9px;padding:6px 7px}.hero-art .s1,.hero-art .s3{display:none}.hero-art .s2{font-size:20px;right:5px;top:120px}.stats{gap:22px;margin-top:23px}.daily-note{font-size:9px;padding-left:16px}.stats strong{font-size:23px}.stats>div{column-gap:7px}.stat-icon{width:32px;height:36px}.stats>div{grid-template-columns:32px auto}.section-heading h2{font-size:19px}.section-heading h2>span{display:inline;font-size:10px;margin-left:7px}.section-heading .eyebrow{font-size:9px}.stage-map{grid-template-columns:repeat(2,1fr);gap:15px 12px}.stage-card{border-radius:19px;padding:13px}.stage-illustration{height:79px}.stage-card h3{font-size:17px;letter-spacing:0}.stage-card p{font-size:10px;white-space:normal;line-height:1.6;min-height:16px}.level-tag{font-size:11px}.availability{font-size:9px;padding:3px 5px}.stage-card:last-child{grid-column:1/-1;display:grid;grid-template-columns:90px 1fr}.stage-card:last-child .card-top{grid-column:1/-1}.stage-card:last-child .stage-illustration{grid-row:2/6}.stage-card:last-child h3{margin-top:16px}.stage-card:last-child .stage-progress{display:none}.stage-card:last-child .card-bottom{margin-top:10px}.home-shell footer{font-size:10px;gap:10px}.home-shell footer>span:last-child{max-width:160px;text-align:right;line-height:1.6}.storage-note{font-size:9px}.game-shell{padding:10px 14px max(10px,env(safe-area-inset-bottom));gap:12px}.game-title h1{font-size:19px}.game-header .icon-button{min-width:54px;padding:6px}.game-header .icon-button span{font-size:11px}.track-dots{gap:5px}.track-dots span{height:24px;font-size:11px}.round-track{gap:10px;font-size:11px}.question-panel{padding:12px 10px 10px;border-radius:22px}.question-panel h2{font-size:16px;margin-top:10px}.question-badge{font-size:11px}.hint-button{font-size:12px}.feedback{font-size:11px;min-height:18px}.answer{height:69px;font-size:29px;border-radius:17px}.answers{gap:12px}.game-footer{font-size:10px}.math-svg{max-height:320px}.result-card{padding:27px 20px}.result-stats strong{font-size:19px}.result-card .eyebrow{font-size:10px}dialog{padding:30px 22px}.hint-picture{height:180px}}
@media(max-height:700px){.game-shell{gap:8px;padding-top:8px}.game-header h1{font-size:19px}.question-panel{padding-top:10px}.question-panel h2{margin-top:5px}.answer{height:58px}.feedback{font-size:11px}.game-footer{font-size:10px}.track-dots span{height:21px}.game-header .icon-button{padding:5px}.hint-button{padding:6px 9px}.answers{gap:10px}}
@media(max-height:500px) and (orientation:landscape){.game-shell{width:min(1000px,100%);grid-template-columns:1fr 280px;grid-template-rows:45px 24px minmax(0,1fr) 18px;gap:8px 18px}.game-header,.round-track{grid-column:1/-1}.question-panel{grid-column:1;grid-row:3}.answers{grid-column:2;grid-row:3;align-content:center}.answer{height:70px}.game-footer{grid-column:1/-1}.question-panel h2{font-size:15px;line-height:1.2}.question-top{position:absolute}.question-badge{display:none}.hint-button{font-size:10px;padding:4px}.question-panel h2{margin-left:100px}.feedback{font-size:10px}.diagram{min-height:0}.game-title h1{font-size:17px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.moving{transform:none}.crossing{opacity:1}}
.playing #toast{top:100px;bottom:auto;background:#fff2cb;color:#866a31;border:1px solid #ead59b}
.number-box.filled rect{animation:pop .32s;transform-box:fill-box;transform-origin:center}
@media(max-width:600px){.hero-art{top:0;width:100px;right:0}.hero-art .art-label,.hero-art .spark{display:none}.stage-card p{font-size:11px}.card-bottom{font-size:11px}.availability{font-size:10px}.game-shell .math-svg .svg-note{font-size:20px}.question-panel .feedback{line-height:1.5}}
/* Six-grade journeys, learning chapters, and the little companion. */
.brand{background:transparent;text-align:left;padding:0}.compact{padding:8px 12px;min-height:40px;font-size:13px}.grade-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.grade-card{text-align:left;border:1px solid #d7e3d2;border-radius:25px;padding:23px;background:#eef4e5;box-shadow:0 5px 0 #d8e3cf}.grade-card:hover{transform:translateY(-3px)}.grade-2{background:#eaf4f5}.grade-3{background:#faf0df}.grade-4{background:#eeeaf5}.grade-5{background:#f7eae3}.grade-6{background:#e9eff6}.grade-art{height:92px;display:flex;justify-content:center;align-items:center;position:relative}.grade-art>span{width:65px;height:65px;display:grid;place-items:center;font-size:36px;font-weight:750;border-radius:22px;background:#ffffffa8;transform:rotate(-8deg);box-shadow:4px 5px 0 #718e6817}.grade-art>i{position:absolute;right:26%;top:14px;color:#c7a853;font-size:20px;font-style:normal}.grade-card h3{font-size:22px;letter-spacing:2px;margin:8px 0}.grade-card p{font-size:12px;color:#748570;line-height:1.8;min-height:22px}.grade-card .card-bottom{font-size:12px}.grade-card .availability{font-size:12px}.route-shell{max-width:1000px}.route-heading{padding:35px 0 25px}.route-heading h1{font-size:34px;margin:12px 0}.route-heading p{color:#778972;font-size:14px;line-height:1.9}.chapter-tabs{display:flex;gap:10px;overflow-x:auto;padding:25px 2px 12px;scrollbar-width:thin;scrollbar-color:#c4d2b6 transparent}.chapter-tabs button{background:#eeeee2;border:1px solid #e0e4d4;flex-shrink:0;padding:12px 17px;border-radius:15px;font-size:14px}.chapter-tabs small{display:block;font-size:10px;color:#87967d;margin-bottom:5px}.chapter-tabs .selected{background:#78a48a;color:white;border-color:#78a48a;box-shadow:0 3px 0 #5d856b}.chapter-tabs .selected small{color:#e0edda}.route-section-head{display:flex;align-items:center;justify-content:space-between;max-width:620px;margin:35px auto 10px}.route-section-head h2{font-size:23px;margin-top:8px}.route-section-head>span{font-size:12px;color:#819175}.star-route{position:relative;width:min(600px,100%);margin:auto;background:radial-gradient(ellipse at 15% 25%,#e7eddc 0,transparent 30%),radial-gradient(ellipse at 85% 70%,#e5edde 0,transparent 35%)}.route-line{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.route-line path{fill:none;stroke:#d0ddc3;stroke-width:12;stroke-linecap:round;stroke-dasharray:2 21}.route-stop{position:absolute;transform:translate(-50%,-50%);width:72px;height:72px}.star-node{width:72px;height:72px;border-radius:50%;background:#e4e8dc;border:5px solid #f7f7ed;box-shadow:0 5px 0 #cad3bd;font-size:27px;font-weight:800;color:#a3b093}.lit .star-node{background:#eed27e;color:#a17f2b;box-shadow:0 5px 0 #c6ae64;font-size:38px}.next .star-node{background:#85b897;color:white;box-shadow:0 6px 0 #639674;outline:2px dashed #97b27c;outline-offset:7px}.next:before{content:'';position:absolute;inset:-15px;border-radius:50%;background:#a9c78b18;animation:glow 3s infinite}.star-node:disabled{opacity:.75}.node-label{position:absolute;left:92px;top:16px;white-space:nowrap;font-size:15px}.node-label strong{display:block}.node-label span{display:block;font-size:11px;color:#88947e;margin-top:7px}.node-label.on-left{left:auto;right:92px;text-align:right}.sleeping .node-label{color:#96a18b}.here-label{position:absolute;white-space:nowrap;left:50%;transform:translateX(-50%);top:-35px;background:#fffaf0;border:1px solid #dbe2ca;color:#709263;border-radius:10px;padding:5px 9px;font-size:11px}.route-finish{position:absolute;bottom:2px;width:100%;text-align:center;color:#8b9b7f;font-size:12px}.audio-settings{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.audio-settings .secondary{margin:0}.pet-companion{display:flex;align-items:center;gap:10px;position:relative;min-height:65px;flex-shrink:0;padding-right:45px}.pet-button{background:transparent;width:65px;height:65px;flex-shrink:0;padding:0}.pet-button .mascot{width:100%;height:100%}.pet-speech{background:#f0f4e8;border:1px solid #e1e8d7;border-radius:15px 15px 15px 1px;padding:10px 14px;font-size:13px;line-height:1.6;color:#6d8560}.pet-name{font-size:10px;color:#94a286;position:absolute;right:0;bottom:12px}.pet-eyes{animation:blink 6s infinite;transform-box:fill-box;transform-origin:center}.pet-button.happy .pet-body{animation:pet-hop .55s ease-in-out}.pet-button.thinking .pet-body{animation:pet-tilt .7s ease-in-out}.bar.mint{fill:#c9e1ca;stroke:#8eb496;stroke-width:2}.bar.peach{fill:#f1d2b6;stroke:#dcb58f;stroke-width:2}.geometry-shape{fill:#d8e8d2;stroke:#87aa7c;stroke-width:3}.math-svg .bar+text{fill:#456344}.question-panel h2{line-height:1.55}.answer{font-size:clamp(23px,4vw,32px)}.game-title h1{max-width:260px}.playing .landscape{display:none}@keyframes blink{0%,44%,48%,100%{transform:scaleY(1)}46%{transform:scaleY(.1)}}@keyframes pet-hop{30%{transform:translateY(-13px) rotate(-7deg)}65%{transform:translateY(-6px) rotate(7deg)}}@keyframes pet-tilt{30%{transform:rotate(-8deg)}70%{transform:rotate(6deg)}}@keyframes glow{50%{transform:scale(1.12);opacity:.4}}
@media(max-width:800px){.grade-grid{grid-template-columns:repeat(2,1fr)}.grade-card{padding:18px}.route-heading h1{font-size:29px}}
@media(max-width:600px){.grade-grid{gap:16px 13px}.grade-card{padding:15px;border-radius:21px}.grade-card h3{font-size:19px}.grade-card p{font-size:11px;min-height:38px}.grade-card .card-bottom{display:block;font-size:11px;line-height:1.7}.grade-card .card-bottom strong{display:block;margin-top:5px}.grade-card .availability{font-size:10px}.grade-art{height:78px}.grade-art>span{width:54px;height:54px;font-size:30px}.grade-art>i{right:12%}.home-shell .welcome h1{font-size:28px}.home-shell .hero-art{width:92px;top:9px}.home-shell .welcome p{max-width:100%;font-size:12px}.home-shell .daily-note{font-size:9px}.route-shell .site-header .brand small{display:none}.route-shell .site-header .brand>span:last-child{display:none}.route-shell .header-actions{gap:6px}.route-heading h1{font-size:27px}.route-heading p{font-size:12px}.node-label{left:79px;font-size:13px}.node-label.on-left{right:79px}.node-label span{font-size:10px}.route-stop,.star-node{width:62px;height:62px}.star-node{font-size:23px}.lit .star-node{font-size:32px}.node-label{top:11px}.route-section-head h2{font-size:21px}.route-section-head>span{font-size:11px}.pet-companion{min-height:52px;gap:6px;padding-right:0}.pet-button{width:52px;height:52px}.pet-speech{font-size:11px;padding:7px 10px;flex:1}.pet-name{display:none}.question-panel h2{font-size:15px}.math-svg .svg-note{font-size:19px}.game-shell .math-svg .svg-note{font-size:19px}}
@media(max-height:700px){.pet-button{width:44px;height:44px}.pet-companion{min-height:44px}.pet-speech{padding:5px 9px;font-size:11px}.question-panel h2{font-size:15px}.answers .answer{height:55px}.game-shell{gap:8px}}
@media(max-height:500px) and (orientation:landscape){.pet-companion{min-height:32px}.pet-button{height:32px;width:32px}.pet-speech{font-size:10px;padding:3px 7px}.game-shell .question-panel h2{font-size:13px}.game-shell .math-svg .svg-note{font-size:18px}.answers .answer{height:64px}}
@media(prefers-reduced-motion:reduce){.pet-eyes,.pet-body,.next:before{animation:none!important}}
.route-line,.next:before{pointer-events:none}.star-node{position:relative;z-index:1}.node-label,.here-label{z-index:2;cursor:pointer}.sleeping .node-label{cursor:default}
.sound-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:16px 0}.sound-grid .secondary{font-size:12px;padding:10px;margin:0}.sound-grid .secondary:focus-visible{outline:3px solid #75a18b}
.music-start{position:fixed;bottom:max(20px,env(safe-area-inset-bottom));right:20px;z-index:25;border:1px solid #bbd0b7;background:#edf4e5;color:#456b53;padding:13px 20px;border-radius:24px;box-shadow:0 4px 18px #365d5026;font-size:14px}.music-start[hidden]{display:none}
.math-fraction{display:inline-flex;flex-direction:column;align-items:stretch;vertical-align:middle;text-align:center;line-height:1.1;margin:.15em .18em;font-variant-numeric:tabular-nums;min-width:1.05em;white-space:nowrap}.fraction-top{display:block;padding:0 .18em .15em;border-bottom:1.6px solid currentColor}.fraction-bottom{display:block;padding:.15em .18em 0}.fraction-expression{color:var(--ink)}.question-panel h2:has(.math-fraction){line-height:2.1}.hint-explanation:has(.math-fraction),.review-item strong:has(.math-fraction){line-height:2.4}
.calculation-panel .calculation-stage{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;isolation:isolate;margin:12px 0;gap:18px;border-radius:24px;background:radial-gradient(ellipse at 15% 15%,#e8f2e5 0,transparent 60%),radial-gradient(ellipse at 95% 90%,#e7f1f4 0,transparent 60%),#fafaf1;border:1px solid #e4eadc;padding:24px 14px;overflow:hidden}.calculation-stage:before,.calculation-stage:after{content:'✦';position:absolute;z-index:-1;color:#c5d7bd;font-size:35px;top:18%;left:8%;transform:rotate(-15deg);pointer-events:none}.calculation-stage:after{top:auto;left:auto;bottom:17%;right:8%;font-size:22px;color:#d8c99e;transform:rotate(15deg)}.calculation-eyebrow{font-size:11px;letter-spacing:2px;color:#83977d}.game-shell .calculation-panel h2#prompt{font-size:clamp(21px,3vw,31px);line-height:1.8;margin:0;padding:20px 24px;border:1px solid #e1e8d7;border-radius:20px;background:#fffef9;box-shadow:0 5px 0 #dce6d64d;max-width:100%;overflow-wrap:anywhere}.calculation-panel .diagram{flex:0 0 auto;display:block;width:100%;min-height:0}.calculation-guide{text-align:center;width:100%}.calculation-message{font-size:12px;color:#7a8e7d;line-height:1.6}.thinking-trail{display:flex;align-items:center;justify-content:center;gap:13px;margin-top:24px;color:#6f8677;font-size:12px}.thinking-trail span{display:flex;align-items:center;gap:6px}.thinking-trail i{font-style:normal;display:grid;place-items:center;width:28px;height:28px;border-radius:10px;background:#e3eddd;color:#6f9777;font-size:16px}.thinking-trail span:nth-of-type(2) i{background:#e1edf1;color:#6a929c}.thinking-trail span:nth-of-type(3) i{background:#f3ead3;color:#a58b51}.thinking-trail b{font-weight:400;color:#b7c6b0;letter-spacing:2px}.calculation-guide.is-complete .calculation-message{color:#4c8b62;font-weight:700;animation:pop .32s}
@media(max-width:600px){.calculation-panel .calculation-stage{padding:16px 10px;gap:16px}.game-shell .calculation-panel h2#prompt{font-size:clamp(18px,5vw,26px);padding:18px 12px}.thinking-trail{gap:7px;font-size:11px}.thinking-trail i{width:24px;height:24px}.calculation-eyebrow{font-size:10px;letter-spacing:1px}}
@media(max-height:700px){.calculation-panel .calculation-stage{margin:8px 0;padding:10px;gap:10px}.game-shell .calculation-panel h2#prompt{padding:10px;font-size:20px}.thinking-trail{margin-top:12px}.calculation-eyebrow{display:none}}
@media(max-height:500px) and (orientation:landscape){.calculation-panel .calculation-stage{margin:24px 0 4px;padding:6px;gap:5px}.game-shell .calculation-panel h2#prompt{font-size:17px;padding:4px 12px;line-height:1.2}.calculation-message{font-size:10px}.thinking-trail{display:none}}
.game-shell .question-panel{background:radial-gradient(ellipse at 5% 8%,#e5f0df 0,transparent 58%),radial-gradient(ellipse at 98% 94%,#e1eff4 0,transparent 58%),linear-gradient(135deg,#fbfbf1 15%,#fffdf6 52%,#eff5f2 100%)}
