*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{color-scheme:light;--font-scale: 1;--bg: #faf7f2;--surface: #ffffff;--surface-2: #f1ece2;--surface-press: #e5ddcd;--key-edge: #e0d8c7;--text: #3a3a3a;--text-2: #6b675f;--text-3: #9b958b;--separator: rgba(58, 58, 58, .12);--accent: #76a2ce;--brand: #446f9c;--brand-press: #3d6690;--on-brand: #ffffff;--brand-soft: #e4edf6;--brand-text: #446f9c;--ill-accent: #f0a640;--ill-blue: #4f7fc4;--ill-water: #8fb6e8;--ill-water-soft: rgba(143, 182, 232, .25);--ill-red: #d0473b;--house-wall: #f7ead6;--house-trim: #e4cfae;--house-floor: #e6c595;--house-plank: #d4ae78;--house-sky: #bfe3f7;--house-rug: #f3b7a4;--house-grass: #9fd98a;--house-path: #ecd9b4;--ill-yellow: #e6b422;--ill-green: #3f9a5a;--ill-grey: #b9bec6;--ill-shape: #fbe3b6;--ill-ruler: #f5e3b0;--ill-ruler-edge: #b08a3c;--ill-ruler-ink: #4a3614;--ill-block: #f6c35a;--ill-block-edge: #a8661a;--success: #8bc275;--success-soft: #e8f2e1;--success-text: #4a6b37;--danger: #f78e81;--danger-soft: #fce8e4;--danger-text: #b04a45;--warning: #f4c152;--warning-soft: #fbf0d8;--warning-text: #8a611d;--shadow: 0 1px 2px rgba(90, 76, 56, .05), 0 6px 18px rgba(90, 76, 56, .07);--shadow-key: 0 1px 2px rgba(90, 76, 56, .08);--question-size: 40px;--key-size: 64px;--key-gap: 14px;--keypad-width: calc(var(--key-size) * 3 + var(--key-gap) * 2 + 64px);--radius: 24px;--ease-out: cubic-bezier(.23, 1, .32, 1);--ease-in-out: cubic-bezier(.77, 0, .175, 1);--ease-drawer: cubic-bezier(.32, .72, 0, 1);--radius-sm: 16px;--tap: 48px;--zhuyin-hanzi-size: max(20pt, 1.25em);--zhuyin-ratio: 50%;--zhuyin-gap: calc(var(--zhuyin-hanzi-size) * .32);--zhuyin-slot: 1.72;--zhuyin-font: "BiauKai", "標楷體", "DFKai-SB", "TW-Kai", "Kaiti TC", "PingFang TC", serif;--zhuyin-scale: 1}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){color-scheme:dark;--bg: #202a3a;--surface: #2c394e;--surface-2: #18202c;--surface-press: #3a4a63;--key-edge: #3d4c63;--text: #fafafa;--text-2: #a0aec0;--text-3: #7a8799;--separator: rgba(160, 174, 192, .22);--accent: #6ba4e8;--brand: #6ba4e8;--brand-press: #8bb8ee;--on-brand: #14202e;--brand-soft: #24354b;--brand-text: #9cc4f1;--ill-accent: #e29a3c;--ill-blue: #6b9bd8;--ill-water: #4f7bb3;--ill-water-soft: rgba(107, 155, 216, .22);--ill-red: #ef6b5f;--house-wall: #3a3530;--house-trim: #4a4239;--house-floor: #54442f;--house-plank: #463826;--house-sky: #2b4a6b;--house-rug: #8a5448;--house-grass: #3f6b3a;--house-path: #5a4a36;--ill-yellow: #d6a92a;--ill-green: #4fae6c;--ill-grey: #7d8797;--ill-shape: #4a3f2b;--ill-ruler: #e9d6a3;--ill-ruler-edge: #b08a3c;--ill-ruler-ink: #3d2c10;--ill-block: #d9a843;--ill-block-edge: #8a5a1a;--success: #a3d991;--success-soft: #253a2c;--success-text: #a3d991;--danger: #ffa498;--danger-soft: #43292c;--danger-text: #ffb3a8;--warning: #fcd373;--warning-soft: #3d3524;--warning-text: #fcd373;--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .32);--shadow-key: 0 1px 2px rgba(0, 0, 0, .35)}}:root[data-theme=dark]{color-scheme:dark;--bg: #202a3a;--surface: #2c394e;--surface-2: #18202c;--surface-press: #3a4a63;--key-edge: #3d4c63;--text: #fafafa;--text-2: #a0aec0;--text-3: #7a8799;--separator: rgba(160, 174, 192, .22);--accent: #6ba4e8;--brand: #6ba4e8;--brand-press: #8bb8ee;--on-brand: #14202e;--brand-soft: #24354b;--brand-text: #9cc4f1;--ill-accent: #e29a3c;--ill-blue: #6b9bd8;--ill-water: #4f7bb3;--ill-water-soft: rgba(107, 155, 216, .22);--ill-red: #ef6b5f;--house-wall: #3a3530;--house-trim: #4a4239;--house-floor: #54442f;--house-plank: #463826;--house-sky: #2b4a6b;--house-rug: #8a5448;--house-grass: #3f6b3a;--house-path: #5a4a36;--ill-yellow: #d6a92a;--ill-green: #4fae6c;--ill-grey: #7d8797;--ill-shape: #4a3f2b;--ill-ruler: #e9d6a3;--ill-ruler-edge: #b08a3c;--ill-ruler-ink: #3d2c10;--ill-block: #d9a843;--ill-block-edge: #8a5a1a;--success: #a3d991;--success-soft: #253a2c;--success-text: #a3d991;--danger: #ffa498;--danger-soft: #43292c;--danger-text: #ffb3a8;--warning: #fcd373;--warning-soft: #3d3524;--warning-text: #fcd373;--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .32);--shadow-key: 0 1px 2px rgba(0, 0, 0, .35)}@media(max-width:374px){:root{--question-size: 36px;--key-size: 54px;--key-gap: 11px}}@media(min-width:375px)and (max-width:389px){:root{--question-size: 38px;--key-size: 60px}}@media(min-width:390px)and (max-width:427px){:root{--question-size: 40px;--key-size: 64px}}@media(min-width:428px){:root{--question-size: 44px;--key-size: 72px;--key-gap: 12px}}@media(min-width:768px){:root{--question-size: 48px;--key-size: 72px;--key-gap: 14px}}@media(orientation:portrait)and (min-height:700px)and (min-width:375px){:root{--key-size: 72px;--key-gap: 12px}}@media(orientation:portrait)and (min-height:800px)and (min-width:390px){:root{--key-size: 78px;--key-gap: 13px}}html{font-size:calc(17px * var(--font-scale) * var(--zhuyin-scale) * var(--classroom-scale, 1));-webkit-text-size-adjust:100%}body{margin:0;background:var(--bg);color:var(--text);font-family:ui-rounded,-apple-system,BlinkMacSystemFont,SF Pro Rounded,PingFang TC,Noto Sans TC,Microsoft JhengHei,system-ui,sans-serif;font-size:1rem;line-height:1.45;-webkit-font-smoothing:antialiased;overscroll-behavior-y:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:manipulation}input,textarea,[contenteditable]{-webkit-user-select:text;user-select:text}button{font:inherit;color:inherit;background:none;border:none;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}input{font:inherit;color:inherit}:focus-visible{outline:3px solid var(--brand);outline-offset:2px;border-radius:6px}.app{display:flex;flex-direction:column;height:100vh;height:100dvh;max-width:900px;margin:0 auto}.app-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:8px 16px 24px;padding:calc(env(safe-area-inset-top) + 8px) calc(env(safe-area-inset-right) + 16px) 24px calc(env(safe-area-inset-left) + 16px)}.app-body-onboarding{display:flex;flex-direction:column}.app-body-onboarding>.onboarding{margin:auto}.stack{display:flex;flex-direction:column;gap:16px}.row{display:flex;align-items:center;gap:12px}.row-between{display:flex;align-items:center;justify-content:space-between;gap:12px}.grow{flex:1;min-width:0}.screen-title{font-size:1.95rem;font-weight:800;letter-spacing:-.02em}.section-title{font-size:.82rem;font-weight:700;color:var(--text-2);letter-spacing:.06em}.muted{color:var(--text-2);font-size:.88rem}.card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px}.card-flat{background:var(--surface);border-radius:var(--radius);padding:4px 16px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--tap);padding:0 20px;border-radius:var(--radius-sm);font-weight:700;font-size:1rem;background:var(--surface-2);color:var(--text);transition:transform .15s ease,background-color .15s ease,opacity .15s ease}.btn:active{transform:scale(.97);background:var(--surface-press)}.btn:disabled{opacity:.4;transform:none}.btn-primary{background:var(--brand);color:var(--on-brand)}.btn-primary:active{background:var(--brand-press)}.btn-danger{background:var(--danger-soft);color:var(--danger-text)}.btn-ghost{background:transparent;color:var(--brand-text)}.btn-block{width:100%}.btn-lg{min-height:56px;font-size:1.12rem}.field{width:100%;min-height:var(--tap);padding:0 14px;border-radius:var(--radius-sm);background:var(--surface-2);border:1.5px solid transparent;color:var(--text)}.field:focus{border-color:var(--brand);outline:none}.field-invalid,.field-invalid:focus{border-color:var(--danger);background:var(--danger-soft)}.field-message{display:flex;align-items:center;gap:6px;color:var(--danger-text);font-size:.84rem;font-weight:650}.field-message:before{content:"!";display:grid;place-items:center;width:17px;height:17px;border-radius:999px;background:var(--danger);color:#fff;font-size:.72rem;font-weight:800;flex-shrink:0}.list{background:var(--surface);border-radius:var(--radius);overflow:hidden}.list-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:52px;padding:10px 16px;text-align:left;border-bottom:1px solid var(--separator)}.list-row:last-child{border-bottom:none}.list-row:active{background:var(--surface-press)}.pill{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;background:var(--surface-2);color:var(--text-2);font-size:.78rem;font-weight:700}.pill-brand{background:var(--brand-soft);color:var(--brand-text)}.pill-success{background:var(--success-soft);color:var(--success-text)}.pill-danger{background:var(--danger-soft);color:var(--danger-text)}.pill-ask{background:var(--warning-soft);color:var(--warning-text)}.tabbar{display:flex;border-top:1px solid var(--separator);background:color-mix(in srgb,var(--surface) 82%,transparent);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);padding-bottom:env(safe-area-inset-bottom)}.tab{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:var(--tap);padding:7px 0 5px;color:var(--text-3);font-size:.66rem;font-weight:700;transition:color .15s ease}.tab-beta{position:absolute;top:2px;left:50%;transform:translate(6px);padding:1px 5px;border-radius:7px;background:var(--brand);color:#fff;font-size:.52rem;font-weight:700;line-height:1.35;letter-spacing:.02em;pointer-events:none}:root[data-classroom=on] .tab-beta{top:6px;transform:translate(14px)}.beta-tag{display:inline-block;margin-left:4px;padding:1px 5px;border-radius:6px;background:var(--brand);color:var(--on-brand);font-size:.62rem;font-weight:700;line-height:1.5;letter-spacing:.02em;vertical-align:middle}.tab[aria-current=page]{color:var(--brand-text)}.tab:active{opacity:.6}.mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}@media(min-width:768px){.mode-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}.mode-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-height:96px;padding:14px;border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);text-align:left;transition:transform .15s ease}.mode-card:active{transform:scale(.97)}.mode-glyph{display:grid;place-items:center;width:38px;height:38px;border-radius:13px;background:var(--brand-soft);color:var(--brand-text);font-size:1.28rem;font-weight:800;line-height:1}.mode-card-text{display:flex;flex-direction:column;gap:2px;min-width:0}.mode-card-text .muted{font-size:.82rem}.mode-name{font-size:1.02rem;font-weight:750}.practice{position:fixed;inset:0;display:flex;flex-direction:column;background:var(--bg);z-index:20}.practice-bar{display:flex;align-items:center;gap:12px;padding:calc(env(safe-area-inset-top) + 8px) calc(env(safe-area-inset-right) + 12px) 8px calc(env(safe-area-inset-left) + 12px)}.practice-body{flex:1;min-height:0;display:flex;flex-direction:column}.practice-main{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:8px 16px}.practice-keys{padding:8px calc(env(safe-area-inset-right) + 12px) calc(env(safe-area-inset-bottom) + 10px) calc(env(safe-area-inset-left) + 12px)}.keypad-panel{width:100%;background:var(--surface-2);border-radius:var(--radius);padding:12px;max-width:var(--keypad-width);margin:0 auto}@media(orientation:landscape)and (max-height:560px){:root{--question-size: 30px;--key-size: 54px;--key-gap: 7px}.practice-bar{padding-top:calc(env(safe-area-inset-top) + 4px);padding-bottom:4px}.practice-body{display:grid;grid-template-columns:1fr minmax(240px,.8fr);align-items:center;gap:4px}.practice-main{height:100%;gap:10px;padding:4px 12px}.practice-keys{display:grid;align-items:center;justify-items:stretch;padding-top:4px;padding-bottom:calc(env(safe-area-inset-bottom) + 6px)}.keypad-panel{padding:8px}.slot{min-height:48px;min-width:108px;width:auto;max-width:none}.game-digits{font-size:calc(var(--question-size) * 1.1)}.term-chip{min-width:46px;min-height:44px;font-size:calc(var(--question-size) * .66)}}@media(min-width:768px),(horizontal-viewport-segments:2){.practice-body{display:grid;grid-template-columns:1fr minmax(320px,.85fr);align-items:center;gap:8px}.practice-main{height:100%}.practice-keys{display:grid;align-items:center;justify-items:stretch}}.question{font-size:var(--question-size);font-weight:800;letter-spacing:.01em;text-align:center;line-height:1.2;font-variant-numeric:tabular-nums;word-break:keep-all}.answer-slots{display:flex;align-items:center;justify-content:center;gap:10px;width:100%}.slot{min-width:132px;min-height:62px;width:var(--keypad-width);max-width:100%;padding:0 18px;display:grid;place-items:center;border-radius:18px;background:var(--surface);border:2.5px solid var(--separator);font-size:calc(var(--question-size) * .82);font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap;transition:border-color .15s ease,background-color .15s ease}.slot-active{border-color:var(--brand)}.slot-empty{color:var(--text-3)}.slot-label{font-size:.72rem;font-weight:700;color:var(--text-2);text-align:center;margin-bottom:4px}.feedback-correct .slot{border-color:var(--success-text);background:var(--success-soft);color:var(--success-text)}.feedback-wrong .slot{border-color:var(--danger-text);background:var(--danger-soft);color:var(--danger-text)}.feedback-wrong .answer-slots{animation:shake .32s ease}.feedback-correct .answer-slots{animation:pop .28s ease}.keypad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--key-gap);max-width:calc(var(--key-size) * 3 + var(--key-gap) * 2 + 40px);margin:0 auto;width:100%}.key{min-height:var(--key-size);border-radius:var(--radius-sm);background:var(--surface);border:1px solid var(--key-edge);box-shadow:var(--shadow-key);font-size:calc(var(--key-size) * .42);font-weight:700;font-variant-numeric:tabular-nums;transition:transform .1s ease,background-color .1s ease}.key:not(:disabled):active{transform:scale(.94);background:var(--surface-press)}.key-split{display:grid;grid-template-columns:1fr 1fr;gap:calc(var(--key-gap) / 2)}.key-split .key{min-width:0}.key-dot{font-size:calc(var(--key-size) * .6);line-height:1}.answer-pair .slot{width:auto;min-width:min(150px,calc((100vw - 64px)/2));max-width:calc((100vw - 64px)/2)}.fraction-slots{display:flex;flex-direction:column;align-items:center;gap:6px}.fraction-slots>div:first-child{padding-bottom:6px;border-bottom:4px solid var(--text)}.fraction-slots .slot-label{display:none}.fraction-slots .slot{width:auto;min-width:min(150px,42vw);max-width:84vw;min-height:52px}.key-confirm{background:var(--brand);border-color:var(--brand);color:var(--on-brand);font-size:calc(var(--key-size) * .3)}.key-confirm:active{background:var(--brand-press)}.key-delete{background:var(--surface-2);border-color:var(--key-edge);font-size:calc(var(--key-size) * .32)}.game-digits{font-size:calc(var(--question-size) * 1.15);font-weight:800;letter-spacing:.08em;font-variant-numeric:tabular-nums;text-align:center}.game-countdown{width:100%;animation:drain linear forwards}.countdown-track{width:min(240px,78vw);height:12px}.game-countdown-urgent{background:var(--danger)}@keyframes drain{0%{width:100%}to{width:0%}}.term-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px}.term-chip{display:grid;place-items:center;min-width:58px;min-height:54px;padding:0 12px;border-radius:var(--radius-sm);background:var(--surface);border:2px solid var(--separator);font-size:calc(var(--question-size) * .62);font-weight:750;font-variant-numeric:tabular-nums}.term-chip-blank{border-color:var(--brand);border-style:dashed;color:var(--brand-text)}.feedback-correct .term-chip-blank{border-color:var(--success-text);border-style:solid;background:var(--success-soft);color:var(--success-text)}.feedback-wrong .term-chip-blank{border-color:var(--danger-text);border-style:solid;background:var(--danger-soft);color:var(--danger-text)}.badge-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px}.badge{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 8px;border-radius:var(--radius-sm);background:var(--surface);text-align:center}.badge-locked{background:var(--surface-2);opacity:.55}.badge-glyph{font-size:1.9rem;line-height:1.1}.badge-locked .badge-glyph{filter:grayscale(1)}.badge-title{font-size:.78rem;font-weight:700}.badge-note{font-size:.68rem;color:var(--text-2);line-height:1.3}.report-row{display:grid;grid-template-columns:4.5rem 1fr auto;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--separator)}.report-row:last-child{border-bottom:none}.meter{height:10px;border-radius:999px;background:var(--surface-2);overflow:hidden}.meter-fill{height:100%;border-radius:999px;background:var(--brand)}.delta-up{color:var(--success-text);font-weight:750}.delta-down{color:var(--danger-text);font-weight:750}.zhuyin-run{display:inline-flex;vertical-align:bottom;align-items:flex-end;flex-wrap:wrap;column-gap:0;row-gap:1em;line-height:1.1;font-size:var(--zhuyin-hanzi-size);font-family:var(--zhuyin-font)}.zhuyin-char{display:inline-flex;flex:0 0 calc(1em * var(--zhuyin-slot));inline-size:calc(1em * var(--zhuyin-slot));flex-direction:column-reverse;align-items:center;justify-content:flex-end;line-height:1;font-family:var(--zhuyin-font)}.zhuyin-plain{display:inline-flex;align-self:flex-end;align-items:flex-end;justify-content:center;min-inline-size:calc(1em * var(--zhuyin-slot));line-height:1;font-family:var(--zhuyin-font);font-variant-numeric:tabular-nums}.zhuyin-char rt{display:flex;flex:0 0 auto;align-items:flex-start;justify-content:center;font-family:BiauKai,標楷體,DFKai-SB,TW-Kai,PingFang TC,sans-serif;font-size:var(--zhuyin-ratio);font-weight:500;line-height:1;white-space:nowrap;margin-bottom:.2em;padding:0 .12em;color:var(--text-2);ruby-position:over}.zy-symbols{letter-spacing:-.2em;padding-right:.2em}.zy-tone{align-self:flex-start;margin-left:.04em;transform:translateY(-.2em)}.zy-neutral{order:-1;margin-right:.06em}.zhuyin-char rt:empty{display:none}:root[data-zhuyin=on]{--zhuyin-scale: 1.1}:root[data-zhuyin=on] .home-hero{flex-direction:column;align-items:stretch}:root[data-zhuyin=on] .mode-grid{grid-template-columns:1fr;gap:12px}:root[data-zhuyin=on] .mode-card{flex-direction:row;align-items:center;min-height:96px;gap:16px;padding:14px 18px}:root[data-zhuyin=on] .mode-glyph{width:48px;height:48px;font-size:1.5rem}:root[data-zhuyin=on] .mode-name{font-size:1rem;line-height:1;flex-shrink:0}:root[data-zhuyin=on] .mode-card-text{flex:1;flex-direction:row;align-items:center}.hero-zhuyin .hero-goal{font-weight:700}.hero-line{display:flex;flex-direction:column;gap:14px}.hero-zhuyin .hero-goal .zhuyin-run,.hero-zhuyin .hero-count .zhuyin-run,.hero-remain .zhuyin-run{flex-wrap:nowrap}.hero-zhuyin .hero-count .zhuyin-run,.hero-remain .zhuyin-run{font-size:inherit}.hero-zhuyin .hero-count{display:inline-flex;align-items:flex-end;gap:0;font-size:var(--zhuyin-hanzi-size);font-weight:800;font-variant-numeric:tabular-nums}.hero-zhuyin .hero-count>[data-no-zhuyin],.hero-remain>[data-no-zhuyin]{display:inline-flex;align-items:flex-end;justify-content:center;min-inline-size:calc(1em * var(--zhuyin-slot));line-height:1;font-family:var(--zhuyin-font)}.hero-remain{display:flex;align-items:flex-end;flex-wrap:wrap;gap:0;font-size:var(--zhuyin-hanzi-size);font-weight:700;color:var(--brand-text)}.hero-zhuyin .hero-count,.hero-remain{min-width:0}:root[data-zhuyin=on] .tabbar{padding-top:2px}:root[data-zhuyin=on] .tab{gap:1px;padding:6px 0 4px}:root[data-zhuyin=on] .tab .zhuyin-run{font-size:14pt;line-height:1.3;row-gap:0;flex-wrap:nowrap}:root[data-zhuyin=on] .tab .zhuyin-run{--zhuyin-slot: 1.42}:root[data-zhuyin=on] .segment .zhuyin-run,:root[data-zhuyin=on] .pill .zhuyin-run{--zhuyin-slot: 1.54}:root[data-zhuyin=on] .tab .zy-tone{margin-left:-.16em}:root[data-zhuyin=on] .section-title{font-size:1rem;letter-spacing:.02em}:root[data-zhuyin=on] .card{padding:20px}:root[data-zhuyin=on] .stack{gap:26px}:root[data-zhuyin=on] .card.stack{gap:20px}:root[data-zhuyin=on] .mode-card-text{gap:12px}:root[data-zhuyin=on] .list-row>.grow{gap:14px}:root[data-zhuyin=on] .wrong-item .grow>*+*{margin-top:12px}:root[data-zhuyin=on] .badge{gap:12px}:root[data-zhuyin=on] .report-row{padding:20px 0}:root[data-zhuyin=on] .empty{gap:18px}:root[data-zhuyin=on] .dialog .stack{gap:18px}:root[data-zhuyin=on] .row,:root[data-zhuyin=on] .row-between,:root[data-zhuyin=on] .wrong-item,:root[data-zhuyin=on] .stat,:root[data-zhuyin=on] .report-row{align-items:flex-end}:root[data-zhuyin=on] .row,:root[data-zhuyin=on] .row-between{flex-wrap:wrap}:root[data-zhuyin=on] .pill{flex-wrap:nowrap;white-space:nowrap}:root[data-zhuyin=on] .pill .zhuyin-run{flex-wrap:nowrap;flex-shrink:0}:root[data-zhuyin=on] .row>.avatar,:root[data-zhuyin=on] .row-between>.avatar,:root[data-zhuyin=on] .mode-glyph,:root[data-zhuyin=on] .row>svg,:root[data-zhuyin=on] .row-between>svg{align-self:center}:root[data-zhuyin=on] .zhuyin-run{margin-top:.6em}:root[data-zhuyin=on] .btn .zhuyin-run,:root[data-zhuyin=on] .tab .zhuyin-run,:root[data-zhuyin=on] .segment .zhuyin-run,:root[data-zhuyin=on] .pill .zhuyin-run,:root[data-zhuyin=on] .badge .zhuyin-run,:root[data-zhuyin=on] .screen-title .zhuyin-run,:root[data-zhuyin=on] .hero-count .zhuyin-run{margin-top:0}:root[data-zhuyin=on] .list-row{min-height:84px;padding:22px 18px;gap:16px}:root[data-zhuyin=on] .list-row>.grow{display:flex;flex-direction:column}:root[data-zhuyin=on] .list{padding:4px 0}:root[data-zhuyin=on] .wrong-item{padding:20px 18px;gap:16px}:root[data-zhuyin=on] .badge{padding:18px 10px;gap:8px}:root[data-zhuyin=on] .stat{padding:18px 10px}:root[data-zhuyin=on] .report-row{padding:16px 0}:root[data-zhuyin=on] .muted{line-height:1.3}:root[data-zhuyin=on] .segmented{flex-wrap:wrap;overflow:visible;gap:6px;padding:6px}:root[data-zhuyin=on] .segment{flex:1 1 calc(50% - 6px);min-height:64px;padding:0 8px}:root[data-zhuyin=on] [data-zhuyin-hide]{display:none}:root[data-zhuyin=on] .badge-grid{grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:12px}:root[data-zhuyin=on] .badge{padding:14px 8px}:root[data-zhuyin=on] .badge-title{font-size:1rem}:root[data-zhuyin=on] .btn{padding:10px 18px}:root[data-zhuyin=on] .btn-lg{min-height:76px}:root[data-zhuyin=on] .screen-title{line-height:1.1}:root[data-zhuyin=on] .screen-title .zhuyin-run,:root[data-zhuyin=on] .dialog h2 .zhuyin-run{font-size:22pt}:root[data-zhuyin=on] .level-row{flex-direction:row;align-items:center;gap:14px}:root[data-zhuyin=on] .level-row .pill{align-self:center;flex-shrink:0}:root[data-zhuyin=on] .level-row .pill:has(.zhuyin-run){max-width:45%;white-space:normal}:root[data-zhuyin=on] .level-row .pill .zhuyin-run{flex-wrap:wrap;flex-shrink:1;justify-content:center}@media(max-width:374px){:root[data-zhuyin=on]{--zhuyin-scale: 1}:root[data-zhuyin=on] .mode-card{min-height:88px;gap:12px;padding:12px 14px}:root[data-zhuyin=on] .mode-card-text{flex-direction:column;align-items:flex-start;gap:2px}:root[data-zhuyin=on] .mode-card-text .muted{text-align:left;font-size:.98rem}}@media(orientation:landscape)and (max-height:560px){:root[data-zhuyin=on]{--zhuyin-scale: 1}}.zhuyin-run{white-space:nowrap}.shop-name .zhuyin-run{flex-wrap:nowrap}.btn .zhuyin-run,.mode-name .zhuyin-run,.tab .zhuyin-run{align-items:center}.btn-primary .zhuyin-char rt{color:var(--on-brand);opacity:.8}.progress-track{height:8px;border-radius:999px;background:var(--surface-2);overflow:hidden}.progress-fill{height:100%;border-radius:999px;background:var(--brand);transition:width .3s ease}.timer{font-variant-numeric:tabular-nums;font-weight:800;font-size:1.28rem}.timer-urgent{color:var(--danger)}.ring{display:grid;place-items:center;position:relative;width:116px;height:116px;flex-shrink:0}.ring svg{position:absolute;inset:0;transform:rotate(-90deg)}.ring-value{font-size:1.5rem;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.1;text-align:center}.avatar{display:grid;place-items:center;width:46px;height:46px;border-radius:999px;background:var(--brand-soft);font-size:1.4rem;flex-shrink:0}.stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.stat{background:var(--surface);border-radius:var(--radius-sm);padding:12px;text-align:center}.stat-value{font-size:1.42rem;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.2}.stat-label{font-size:.74rem;color:var(--text-2);font-weight:600}.chart{width:100%;height:132px;display:block}.wrong-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--separator)}.wrong-item:last-child{border-bottom:none}.wrong-text{font-size:1.06rem;font-weight:700;font-variant-numeric:tabular-nums}.segmented{display:flex;gap:4px;padding:3px;border-radius:12px;background:var(--surface-2);overflow-x:auto;scrollbar-width:none}.segmented::-webkit-scrollbar{display:none}.segment{flex:1;min-height:44px;padding:0 12px;border-radius:9px;font-size:.86rem;font-weight:700;color:var(--text-2);white-space:nowrap;transition:background-color .15s ease,color .15s ease}.segment[aria-pressed=true],.segment[aria-selected=true]{background:var(--surface);color:var(--text);box-shadow:var(--shadow-key)}.overlay{position:fixed;inset:0;z-index:40;display:grid;place-items:center;padding:24px;background:#00000073;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.dialog{width:100%;max-width:340px;background:var(--surface);border-radius:22px;padding:22px;text-align:center;box-shadow:var(--shadow);animation:rise .22s ease}.banner{display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:12px;background:var(--danger-soft);color:var(--danger-text);font-size:.86rem;font-weight:700}.banner-warning{background:color-mix(in srgb,var(--warning) 16%,transparent);color:var(--text)}.center-screen{min-height:70dvh;display:grid;place-items:center;text-align:center}.empty{display:grid;gap:8px;place-items:center;padding:40px 16px;color:var(--text-2)}.skeleton{border-radius:var(--radius);background:linear-gradient(90deg,var(--surface-2) 25%,var(--surface-press) 50%,var(--surface-2) 75%);background-size:300% 100%;animation:shimmer 1.4s linear infinite}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes shake{0%,to{transform:translate(0)}20%{transform:translate(-9px)}40%{transform:translate(8px)}60%{transform:translate(-5px)}80%{transform:translate(3px)}}@keyframes pop{0%{transform:scale(1)}45%{transform:scale(1.07)}to{transform:scale(1)}}@keyframes rise{0%{opacity:0;transform:translateY(14px) scale(.97)}to{opacity:1;transform:none}}@keyframes shimmer{0%{background-position:150% 0}to{background-position:-150% 0}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}:root[data-zhuyin=on] .screen-plain.stack,:root[data-zhuyin=on] .screen-plain .stack{gap:16px}:root[data-zhuyin=on] .screen-plain .card{padding:16px}:root[data-zhuyin=on] .screen-plain .card.stack,:root[data-zhuyin=on] .screen-plain .dialog .stack{gap:16px}:root[data-zhuyin=on] .screen-plain .screen-title{font-size:1.95rem;letter-spacing:-.02em}:root[data-zhuyin=on] .screen-plain .section-title{font-size:.82rem;letter-spacing:.06em}:root[data-zhuyin=on] .screen-plain .muted{line-height:1.45}:root[data-zhuyin=on] .screen-plain .row,:root[data-zhuyin=on] .screen-plain .row-between{align-items:center}:root[data-zhuyin=on] .screen-plain .list{padding:0}:root[data-zhuyin=on] .screen-plain .list-row{min-height:52px;padding:10px 16px;gap:12px}:root[data-zhuyin=on] .screen-plain .list-row>.grow{display:block}:root[data-zhuyin=on] .screen-plain .list-row>.grow.row{display:flex;flex-direction:row;gap:12px}:root[data-zhuyin=on] .screen-plain .segmented{flex-wrap:nowrap;gap:4px;padding:3px;overflow-x:auto}:root[data-zhuyin=on] .screen-plain .segment{flex:1;min-height:44px;padding:0 12px;font-size:.86rem}:root[data-zhuyin=on] .screen-plain .btn{padding:0 20px}:root[data-zhuyin=on] .screen-plain .btn-lg{min-height:56px}:root[data-zhuyin=on] .screen-plain p[data-zhuyin-hide]{display:block}:root[data-zhuyin=on] .stat-grid{grid-template-columns:minmax(0,1fr);gap:8px}:root[data-zhuyin=on] .stat{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:14px 18px;text-align:left}:root[data-zhuyin=on] .stat-value{order:2;font-size:1.7rem;flex-shrink:0}:root[data-zhuyin=on] .badge-grid{grid-template-columns:minmax(0,1fr);gap:8px}:root[data-zhuyin=on] .badge{flex-direction:row;align-items:center;justify-content:flex-start;gap:14px;padding:14px 18px;text-align:left}:root[data-zhuyin=on] .pill{align-items:flex-end}:root[data-zhuyin=on] .pill>svg{align-self:center}.zhuyin-num{align-self:flex-end;line-height:1;font-variant-numeric:tabular-nums}:root[data-zhuyin=on] .pill .zhuyin-num,:root[data-zhuyin=on] .segment .zhuyin-num,:root[data-zhuyin=on] .badge-title .zhuyin-num{font-size:var(--zhuyin-hanzi-size);font-family:var(--zhuyin-font)}.vform{display:inline-flex;flex-direction:column;align-items:stretch;gap:2px;font-variant-numeric:tabular-nums}.vform-row{display:flex;align-items:baseline;justify-content:flex-end;gap:2px}.vform-op,.vform-cell{font-size:var(--question-size);font-weight:800;line-height:1.24;text-align:center;min-width:calc(var(--question-size) * .66)}.vform-op{margin-right:calc(var(--question-size) * .16)}.vform-rule{height:3px;margin-top:6px;border-radius:3px;background:var(--text)}.vform-answer{display:flex;justify-content:flex-end;margin-top:10px}.vform-answer .slot{min-width:100%;min-height:58px}.btn-label{font-size:.86rem;font-weight:700}:root[data-zhuyin=on] .practice-bar .btn-label{font-size:.78rem}:root[data-zhuyin=on] .practice-bar{flex-wrap:wrap;justify-content:space-between;row-gap:6px}:root[data-zhuyin=on] .practice-bar>.grow{order:3;flex-basis:100%;min-width:100%}:root[data-zhuyin=on] .practice-bar .timer{order:2}.onboarding.stack{gap:12px}.onboarding .card.stack{gap:14px;padding:14px}.onboarding .stack{gap:6px}.profile-bar{padding:2px 0}:root[data-zhuyin=on] .profile-bar .row{align-items:flex-end}.feedback-retry .slot{border-color:var(--danger-text)}.receipt{width:100%;max-width:288px;background:var(--surface);border:2px dashed var(--separator);border-radius:16px;padding:12px 18px;display:flex;flex-direction:column;gap:6px;font-variant-numeric:tabular-nums}.receipt-title{font-weight:800;font-size:1.05rem;text-align:center;margin-bottom:2px}.receipt-row{display:flex;justify-content:space-between;font-size:1.02rem;color:var(--text-2)}.receipt-total{border-top:1.5px solid var(--separator);padding-top:6px;margin-top:2px;font-weight:800;font-size:1.1rem;color:var(--text)}.receipt-paid{font-weight:750;color:var(--brand-text)}.change-ask{font-weight:800;font-size:1.15rem}.practice-main{overflow-y:auto}.slot-value{display:inline-flex;align-items:baseline;justify-content:center}.slot-caret{display:inline-block;width:3px;height:.9em;margin-left:3px;border-radius:2px;background:var(--brand);vertical-align:-.08em;animation:caret-blink 1s steps(1) infinite}@keyframes caret-blink{0%,50%{opacity:1}50.01%,to{opacity:0}}.kids-home{display:flex;flex-direction:column;gap:18px;padding-block:4px}.kids-greet{display:flex;align-items:center;justify-content:center}.kids-stars{display:flex;justify-content:center;gap:8px;line-height:1}.kids-star{color:var(--separator);display:inline-flex}.kids-star.on{color:#f5b301;animation:pop .32s ease}.kids-start{display:flex;align-items:center;justify-content:center;gap:12px;min-height:104px;border-radius:28px;background:var(--brand);color:var(--on-brand);box-shadow:0 6px color-mix(in srgb,var(--brand) 70%,black);transition:transform .12s ease,box-shadow .12s ease}.kids-start:active{transform:translateY(4px);box-shadow:0 2px color-mix(in srgb,var(--brand) 70%,black)}.kids-start>svg{width:52px;height:52px}.kids-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.kids-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:118px;border-radius:24px;background:var(--surface);box-shadow:0 4px 0 var(--surface-press, rgba(90, 76, 56, .14));transition:transform .12s ease,box-shadow .12s ease}.kids-tile:active{transform:translateY(3px);box-shadow:0 1px 0 var(--surface-press, rgba(90, 76, 56, .14))}.kids-tile-glyph{width:72px;height:72px;display:grid;place-items:center;border-radius:22px}.tile-add .kids-tile-glyph{background:color-mix(in srgb,var(--brand) 16%,transparent);color:var(--brand-text)}.tile-sub .kids-tile-glyph{background:var(--success-soft);color:var(--success-text)}.tile-game .kids-tile-glyph{background:var(--warning-soft)}.tile-wrong .kids-tile-glyph{background:var(--danger-soft)}.kids-parent{align-self:center;display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:999px;background:var(--surface-2);color:var(--text-2);margin-top:4px}.avatar-art{background:none}.tile-mul .kids-tile-glyph{background:color-mix(in srgb,var(--brand) 16%,transparent);color:var(--brand-text)}.tile-div .kids-tile-glyph{background:var(--success-soft);color:var(--success-text)}.tile-mixed .kids-tile-glyph{background:var(--surface-2);color:var(--text-2)}.icon-btn-xl{width:88px;height:88px;border-radius:26px;display:inline-flex;align-items:center;justify-content:center;padding:0}.op-head{display:inline-flex;color:var(--text-2)}.kids-level{min-height:72px;border-radius:20px;background:var(--surface);box-shadow:0 4px 0 var(--surface-press);font-size:1.5rem;font-weight:800;font-variant-numeric:tabular-nums;display:flex;align-items:center;justify-content:center;transition:transform .12s ease,box-shadow .12s ease}.kids-level:active{transform:translateY(3px);box-shadow:0 1px 0 var(--surface-press)}.tile-time .kids-tile-glyph{background:var(--warning-soft);color:var(--warning-text)}.answer-readout{font-size:1.1rem;font-weight:700;color:var(--text-2);letter-spacing:.08em}.legal{position:fixed;inset:0;z-index:40;display:flex;flex-direction:column;background:var(--bg)}.legal-bar{display:flex;align-items:center;gap:8px;padding:calc(env(safe-area-inset-top) + 8px) calc(env(safe-area-inset-right) + 12px) 8px calc(env(safe-area-inset-left) + 12px);border-bottom:1px solid var(--separator)}.legal-title{font-size:1.2rem;font-weight:800}.legal-body{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:16px calc(env(safe-area-inset-right) + 18px) calc(env(safe-area-inset-bottom) + 16px) calc(env(safe-area-inset-left) + 18px);max-width:720px;width:100%;margin:0 auto}.legal-section{margin-bottom:18px}.legal-h{font-size:1.02rem;font-weight:800;margin-bottom:6px}.legal-p{margin:0 0 6px;color:var(--text-2);line-height:1.7;font-size:.94rem}a.legal-link{display:inline-flex;align-items:center;text-decoration:none}a.list-row{color:var(--text);text-decoration:none}.legal-links{display:flex;flex-wrap:wrap;gap:0 10px;justify-content:center}.legal-link{color:var(--brand-text);font-size:.82rem;font-weight:700;min-height:44px;min-width:44px;padding:0 6px}.crypt-eq{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;font-variant-numeric:tabular-nums}.crypt-num{font-size:calc(var(--question-size) * .9);font-weight:800}.crypt-op{font-size:calc(var(--question-size) * .7);font-weight:800;color:var(--text-2)}.crypt-slot{min-width:96px;min-height:62px;padding:0 14px;display:grid;place-items:center;border-radius:16px;background:var(--brand-soft);border:2.5px dashed var(--brand);color:var(--brand-text);font-size:calc(var(--question-size) * .82);font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}.cross-grid{display:grid;grid-template-columns:repeat(5,52px);grid-template-rows:repeat(5,52px);gap:6px}.cross-empty{width:52px;height:52px}.cross-cell{width:52px;height:52px;display:grid;place-items:center;border-radius:12px;background:var(--surface);border:2px solid var(--separator);font-size:1.5rem;font-weight:800;font-variant-numeric:tabular-nums}.cross-hole{background:var(--brand-soft);border:2.5px dashed var(--brand);color:var(--brand-text)}.word-prompt{font-size:1.15rem;font-weight:700;line-height:1.6;text-align:center;max-width:30rem;margin:0}.bar-diagram{display:flex;flex-direction:column;gap:8px;width:100%;max-width:22rem}.bar-row{display:flex;align-items:center;gap:8px}.bar-label{min-width:3.2rem;font-size:.9rem;font-weight:700;color:var(--text-2);text-align:right}.bar-track{display:flex;gap:4px}.bar-unit{width:30px;height:22px;border-radius:6px;background:var(--brand)}.clue-panel{display:flex;flex-direction:column;gap:8px;width:100%;max-width:30rem;padding:14px 16px;border-radius:16px;background:var(--surface-2);border:2px solid var(--separator)}.clue-line{font-size:.95rem;line-height:1.55;color:var(--text)}.banner-brand{background:var(--brand-soft);color:var(--brand-text)}.teacher-toggle{display:flex;align-items:center;gap:12px;width:100%;text-align:left;cursor:pointer;border:2px solid transparent}.teacher-toggle-on{border-color:var(--brand)}.versus{position:fixed;inset:0;z-index:30;display:flex;align-items:stretch;background:var(--bg);padding:calc(env(safe-area-inset-top) + 8px) env(safe-area-inset-right) calc(env(safe-area-inset-bottom) + 8px) env(safe-area-inset-left)}.versus-exit{position:absolute;top:calc(env(safe-area-inset-top) + 8px);left:50%;transform:translate(-50%);z-index:2;min-width:44px;padding:0 12px}.versus-side{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:10px;padding:8px 12px;transition:background-color .15s ease}.versus-left{border-radius:0 24px 24px 0}.versus-right{border-radius:24px 0 0 24px}.versus-side.feedback-correct{background:color-mix(in srgb,var(--success) 12%,transparent)}.versus-side.feedback-wrong{background:var(--danger-soft)}.versus-head{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:var(--keypad-width)}.versus-label{font-weight:800;font-size:1.05rem}.versus-progress{font-weight:800;font-variant-numeric:tabular-nums;color:var(--brand-text)}.versus-track{width:100%;max-width:var(--keypad-width);height:8px;border-radius:999px;background:var(--surface-2);overflow:hidden}.versus-track-fill{height:100%;background:var(--brand);border-radius:999px;transition:width .25s ease}.versus-main{flex:1;min-height:0;display:flex;align-items:safe center;justify-content:center;width:100%;overflow-y:auto}.versus-keys{width:100%}.versus-done{color:var(--success);display:grid;place-items:center}.versus-divider{flex:0 0 2px;align-self:stretch;background:var(--separator);position:relative;margin:24px 0}.versus-vs{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:var(--brand);color:#fff;font-weight:900;font-size:.9rem;padding:6px 10px;border-radius:999px}.versus-winner{text-align:center;display:flex;flex-direction:column;align-items:center;gap:14px}.versus-trophy{font-size:4rem}.versus-winner-text{font-size:1.6rem;font-weight:900}.versus-unsupported{position:fixed;inset:0;z-index:30;background:var(--bg);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:24px;text-align:center;font-weight:700}.versus .keypad-panel{max-width:var(--keypad-width)}@media(max-height:860px){.versus{--key-size: 56px;--key-gap: 10px}}.versus .question{font-size:clamp(2.4rem,10vmin,7rem)}.versus .versus-label{font-size:clamp(1.05rem,3.6vmin,2.6rem)}.versus .versus-progress{font-size:clamp(1rem,3vmin,2.1rem)}.versus .slot,.versus .change-eq,.versus .crypt-eq,.versus .cross-grid,.versus .term-chip{font-size:clamp(1.6rem,6.5vmin,4.6rem)}.versus .pill{font-size:clamp(.95rem,3vmin,2rem)}.versus-winner-text{font-size:clamp(1.6rem,6vmin,4rem)}.versus-trophy{font-size:clamp(4rem,12vmin,9rem)}.versus .receipt{max-width:15em;padding:6px 14px;gap:2px}.versus .receipt-title{font-size:clamp(.9rem,2.6vmin,1.5rem);margin-bottom:0}.versus .receipt-row{font-size:clamp(.85rem,2.4vmin,1.4rem)}.versus .receipt-total{font-size:clamp(.95rem,2.7vmin,1.5rem);padding-top:3px;margin-top:0}.versus .receipt-paid-box{padding:5px 14px}.versus .change-eq{font-size:clamp(1.3rem,5vmin,3.4rem);gap:6px}.task-card{border:2px solid var(--brand)}.task-options{display:flex;flex-direction:column;gap:10px}.task-option{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:12px 14px;border-radius:16px;background:var(--surface-2);border:2px solid transparent;min-height:64px;transition:background-color .15s ease,border-color .15s ease}.task-option:active{background:var(--surface-press);border-color:var(--brand)}.task-option:disabled{opacity:.5}.task-emoji{font-size:1.9rem;line-height:1;width:44px;text-align:center;flex:0 0 auto}.task-text{display:flex;flex-direction:column;gap:2px;min-width:0}.task-name{font-weight:800;font-size:1.05rem}.task-preview{margin:0;font-size:.9rem}.growth-card{display:flex;align-items:center;gap:12px;background:var(--brand-soft);border:1.5px solid var(--brand)}.growth-emoji{font-size:2rem;line-height:1;flex:0 0 auto}.growth-text{font-weight:700;line-height:1.5;color:var(--brand-text)}.task-special{margin:0;font-size:.9rem;font-weight:700;color:var(--brand-text)}.task-rec{font-size:.68rem;padding:1px 7px;vertical-align:middle;margin-left:4px}.switch{width:50px;height:30px;border-radius:999px;background:var(--surface-press);padding:3px;display:inline-flex;align-items:center;justify-content:flex-start;flex:0 0 auto;transition:background-color .2s ease}.switch-on{background:var(--success);justify-content:flex-end}.switch-knob{width:24px;height:24px;border-radius:999px;background:#fff;box-shadow:0 1px 3px #00000040}:root[data-classroom=on]{--classroom-scale: 1.22}:root[data-classroom=on] .app{flex-direction:row;max-width:none}:root[data-classroom=on] .tabbar{order:-1;flex-direction:column;justify-content:flex-start;gap:8px;width:clamp(128px,12vw,210px);border-top:none;border-right:1px solid var(--separator);padding:20px 10px calc(env(safe-area-inset-bottom) + 20px)}:root[data-classroom=on] .tab{flex:0 0 auto;border-radius:18px;padding:16px 8px;gap:8px;font-size:.8rem}:root[data-classroom=on] .tab svg{width:32px;height:32px}:root[data-classroom=on] .tab[aria-current=page]{background:var(--brand-soft)}:root[data-classroom=on] .app-body{padding:clamp(20px,2.4vw,44px)}:root[data-classroom=on] .home-screen .task-options{flex-direction:row;gap:16px}:root[data-classroom=on] .home-screen .task-option{flex:1 1 0;flex-direction:column;align-items:flex-start;min-height:150px;padding:22px;gap:10px}:root[data-classroom=on] .home-screen .task-emoji{font-size:2.8rem;width:auto;text-align:left}:root[data-classroom=on] .home-screen .mode-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px}:root[data-classroom=on] .home-screen .mode-card{min-height:132px;padding:22px;gap:8px}:root[data-classroom=on] .home-screen .mode-glyph{width:54px;height:54px;font-size:1.8rem;border-radius:16px}:root[data-classroom=on] .home-screen .task-option{min-height:112px}.levels-grid,.dash{display:flex;flex-direction:column;gap:16px}:root[data-classroom=on] .levels-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:22px;align-items:start}:root[data-classroom=on] .games-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:18px}:root[data-classroom=on] .dash{display:block;columns:2;column-gap:22px}:root[data-classroom=on] .dash>*{break-inside:avoid;margin:0 0 22px}@media(orientation:portrait){:root[data-classroom=on] #root{position:fixed;top:100%;left:0;width:100vh;height:100vw;transform:rotate(-90deg);transform-origin:left top;overflow:hidden}:root[data-classroom=on] .app{height:100%}}.versus.is-tabletop{flex-direction:column;--key-size: clamp(38px, 6vh, 62px);--key-gap: 8px}.versus.is-tabletop .versus-side{min-height:0;gap:6px;padding:6px 12px}.versus.is-tabletop .question{font-size:clamp(1.6rem,5vh,3.2rem)}.versus.is-tabletop .versus-left{transform:rotate(180deg);border-radius:24px 24px 0 0}.versus.is-tabletop .versus-right{border-radius:0 0 24px 24px}.versus.is-tabletop .versus-divider{align-self:stretch;width:auto;height:2px;margin:0 24px}.versus.is-tabletop .versus-exit{top:50%;left:auto;right:8px;transform:translateY(-50%)}.versus.is-tabletop{--key-size: clamp(40px, calc((50vh - 92px) / 4.4), 72px)}.versus.is-tabletop .versus-side{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto minmax(0,1fr);column-gap:20px;row-gap:6px;align-items:center;justify-items:center}.versus.is-tabletop .versus-side>*{grid-column:1}.versus.is-tabletop .versus-side>.versus-keys{grid-column:2;grid-row:1 / -1;width:var(--keypad-width);align-self:center}.versus.is-tabletop .versus-head,.versus.is-tabletop .versus-track{max-width:none}.versus.is-tabletop .versus-main{align-self:stretch}.versus.is-tabletop .versus-track{display:none}.versus.is-tabletop .versus-main>.stack{flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;column-gap:24px}.versus.is-tabletop .cross-grid{grid-template-columns:repeat(5,min(52px,calc((50vh - 130px) / 5.6)));grid-template-rows:repeat(5,min(52px,calc((50vh - 130px) / 5.6)));gap:4px}.versus.is-tabletop .versus-side>.muted{font-size:.8rem;line-height:1.2}.versus-layout-toggle{position:absolute;top:calc(env(safe-area-inset-top) + 8px);left:calc(env(safe-area-inset-left) + 8px);z-index:2;min-width:44px;padding:0 12px}.change-eq{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;font-variant-numeric:tabular-nums}.change-eq-num{font-size:calc(var(--question-size) * .72);font-weight:800}.change-eq-op{font-size:calc(var(--question-size) * .6);font-weight:800;color:var(--text-2)}.change-eq .slot{width:auto;min-width:96px;max-width:none}.receipt-paid-box{padding:10px 18px}.keypad .key{transition:transform .1s ease,background-color .1s ease,opacity .25s ease}.keypad-locked .key{opacity:.35;box-shadow:none;pointer-events:none}.keypad{position:relative}.keypad-lock{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:2.6rem;opacity:0;pointer-events:none;z-index:1;transition:opacity .25s ease}.keypad-locked .keypad-lock{opacity:.5}.teach-lab{display:flex;flex-direction:column;gap:16px}.teach-lab,.teach-lab *{font-weight:400}.teach-lab-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;background:var(--surface);border:1px solid var(--separator);border-radius:var(--radius);padding:16px 20px;box-shadow:var(--shadow)}.teach-lab-title{margin:0;font-size:1.4rem}.teach-lab-sub{margin:4px 0 0;font-size:.86rem;color:var(--text-2)}.teach-lab-count{flex:0 0 auto;background:color-mix(in srgb,var(--warning) 14%,var(--surface));border:1px solid color-mix(in srgb,var(--warning) 40%,transparent);color:var(--warning-text);padding:6px 14px;border-radius:12px;font-size:.86rem;white-space:nowrap;font-variant-numeric:tabular-nums}.teach-lab-nav{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.teach-lab-tab{display:flex;flex-direction:column;align-items:center;gap:2px;padding:12px 8px;border-radius:14px;background:var(--surface);border:2px solid var(--separator);color:var(--text-2);box-shadow:0 4px color-mix(in srgb,var(--separator) 70%,transparent);transition:transform .08s,box-shadow .08s,border-color .15s,color .15s}.teach-lab-tab:active{transform:translateY(2px);box-shadow:0 2px color-mix(in srgb,var(--separator) 70%,transparent)}.teach-lab-tab.is-on{border-color:#2d6a4f;color:#2d6a4f;box-shadow:0 4px #1b4332}.teach-lab-tab-title{font-size:.98rem}.teach-lab-tab-hint{font-size:.74rem;color:var(--text-3)}.teach-panel{background:var(--surface);border:2px solid var(--separator);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px;display:flex;flex-direction:column;gap:16px}.teach-panel[data-accent=green]{border-color:color-mix(in srgb,#2d6a4f 45%,var(--separator))}.teach-panel[data-accent=amber]{border-color:color-mix(in srgb,#d97706 45%,var(--separator))}.teach-panel[data-accent=indigo]{border-color:color-mix(in srgb,#6366f1 45%,var(--separator))}.teach-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.teach-panel-title{font-size:1.05rem}.teach-panel-sub{margin:4px 0 0;font-size:.85rem;color:var(--text-2);line-height:1.5}.teach-reset{flex:0 0 auto;padding:8px 12px;border-radius:10px;border:1px solid var(--separator);background:var(--surface-2);color:var(--text-2);font-size:.8rem}.teach-formula{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;background:var(--surface-2);border:1px solid var(--separator);border-radius:var(--radius-sm);padding:12px 16px;font-variant-numeric:tabular-nums}.teach-num{display:inline-flex;align-items:baseline;gap:1px;font-size:1.9rem;padding:3px 12px;border-radius:10px;border:1px solid var(--separator);background:var(--surface)}.teach-plus{font-size:1.3rem;color:var(--text-3)}.teach-frac{font-size:.78rem;color:var(--text-3);margin-left:5px}.teach-num-blue,.teach-num-blue *{color:#2563eb}.teach-num-orange{color:#d2622e}.teach-num-green,.teach-num-green2{color:#2d6a4f}.teach-num-amber{color:#b4690e}.teach-num-purple{color:#7c3aed}.teach-num-pink{color:#c31d6b}.teach-num-slate{color:var(--text-2)}.teach-num.teach-num-blue{background:color-mix(in srgb,#2563eb 12%,var(--surface));border-color:color-mix(in srgb,#2563eb 40%,transparent)}.teach-num.teach-num-orange{background:color-mix(in srgb,#d2622e 12%,var(--surface));border-color:color-mix(in srgb,#d2622e 40%,transparent)}.teach-num.teach-num-green{background:color-mix(in srgb,#2d6a4f 14%,var(--surface));border-color:color-mix(in srgb,#2d6a4f 40%,transparent)}.teach-num.teach-num-amber{background:color-mix(in srgb,#d97706 14%,var(--surface));border-color:color-mix(in srgb,#d97706 40%,transparent)}.teach-num.teach-num-purple{background:color-mix(in srgb,#7c3aed 12%,var(--surface));border-color:color-mix(in srgb,#7c3aed 40%,transparent)}.teach-num.teach-num-pink{background:color-mix(in srgb,#c31d6b 12%,var(--surface));border-color:color-mix(in srgb,#c31d6b 40%,transparent)}.teach-num-amber .teach-num-blue{color:#2563eb}.teach-num-green .teach-num-green2{color:#2d6a4f}.teach-num-purple .teach-num-pink{color:#c31d6b}.teach-two,.teach-three{display:grid;grid-template-columns:1fr;gap:14px}@media(min-width:720px){.teach-two{grid-template-columns:1fr 1fr}.teach-three{grid-template-columns:5fr 4fr 3fr}}.teach-zone,.teach-source,.teach-fixed{border-radius:var(--radius-sm);padding:12px;display:flex;flex-direction:column;gap:8px;min-height:156px}.teach-zone{border:2px dashed var(--separator);transition:border-color .15s,background-color .15s}.teach-zone-blue{border-color:color-mix(in srgb,#2563eb 45%,var(--separator));background:color-mix(in srgb,#2563eb 7%,var(--surface))}.teach-zone-amber{border-color:color-mix(in srgb,#d97706 45%,var(--separator));background:color-mix(in srgb,#d97706 7%,var(--surface))}.teach-zone.teach-zone-over{border-color:#2563eb;background:color-mix(in srgb,#2563eb 16%,var(--surface))}.teach-source{border:1px solid var(--separator);background:var(--surface-2)}.teach-source-orange{background:color-mix(in srgb,#d2622e 7%,var(--surface))}.teach-source-pink{background:color-mix(in srgb,#c31d6b 7%,var(--surface))}.teach-fixed{border:1px solid var(--separator);background:var(--surface-2)}.teach-zone-label{font-size:.78rem;color:var(--text-3)}.teach-zone-body{flex:1;display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center}.teach-hint{font-size:.78rem;color:var(--text-3)}.teach-cubes{align-content:center}.teach-cubes-wrap{align-content:flex-start}.teach-apple{width:40px;height:40px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ef7a6f,#d34c43);color:#fff;display:grid;place-items:center;font-size:.85rem;box-shadow:0 2px 4px #0000001f}.teach-plate{border:none;background:transparent;align-items:center;justify-content:center;position:relative;min-height:200px;padding:18px}.teach-plate:before{content:"";position:absolute;inset:8px 6px;border-radius:50%;background:radial-gradient(ellipse at 50% 38%,color-mix(in srgb,var(--surface) 88%,#fff),var(--surface-2));border:2px solid var(--separator);box-shadow:inset 0 0 0 12px color-mix(in srgb,var(--surface-2) 55%,var(--surface)),inset 0 8px 16px #0000000f;transition:border-color .15s,box-shadow .15s}.teach-plate.teach-zone-over:before{border-color:#2563eb;box-shadow:inset 0 0 0 12px color-mix(in srgb,#2563eb 14%,var(--surface)),inset 0 8px 16px #0000000f}.teach-plate .teach-zone-body{position:relative;z-index:1;max-width:70%}.teach-cube{width:34px;height:34px;border-radius:8px;color:#fff;display:grid;place-items:center;font-size:.8rem}.teach-cube-blue{background:#3b82f6}.teach-cube-orange{background:#e07a44}.teach-cube-pink{background:#e0568f}.teach-rods{display:flex;gap:8px;align-items:center;justify-content:center;flex:1}.teach-rods-wrap{flex-wrap:wrap}.teach-rod{display:flex;flex-direction:column;align-items:center;gap:3px;padding:3px;border-radius:8px;border:1px solid}.teach-rod-tens{background:color-mix(in srgb,#7c6fd6 16%,var(--surface));border-color:color-mix(in srgb,#7c6fd6 40%,transparent)}.teach-rod-new{background:color-mix(in srgb,#d97706 18%,var(--surface));border-color:color-mix(in srgb,#d97706 45%,transparent);animation:teach-dropin .5s ease-out}.teach-rod-bar{display:grid;grid-template-rows:repeat(10,1fr);gap:2px;width:16px;height:92px;padding:2px;border-radius:4px;background:color-mix(in srgb,var(--text-3) 20%,var(--surface))}.teach-rod-seg{border-radius:2px}.teach-rod-tens .teach-rod-seg{background:#7c6fd6}.teach-rod-new .teach-rod-seg{background:#e0932f}.teach-rod-cap{font-size:.62rem;color:var(--text-3)}@keyframes teach-dropin{0%{transform:translateY(-30px) scale(.8);opacity:0}70%{transform:translateY(3px) scale(1.03);opacity:1}to{transform:translateY(0) scale(1);opacity:1}}.teach-packgrid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;width:100%}.teach-slot{aspect-ratio:1;border-radius:7px;border:1px dashed color-mix(in srgb,#d97706 40%,var(--separator));background:color-mix(in srgb,#d97706 8%,var(--surface));display:grid;place-items:center;font-size:.7rem;color:color-mix(in srgb,#d97706 70%,var(--text-3))}.teach-slot-full{background:#e0932f;border-style:solid;border-color:#c67d1e}.teach-packed-done{flex:1;display:grid;place-items:center;font-size:.85rem;color:var(--text-2)}.teach-drag{touch-action:none;cursor:grab;flex:0 0 auto}.teach-drag.is-dragging{cursor:grabbing;transform:scale(1.12);box-shadow:0 10px 18px #0000002e}.teach-drag.is-locked{cursor:default;opacity:.5}.teach-banner{background:var(--surface-2);border:1px solid var(--separator);border-radius:var(--radius-sm);padding:10px 14px;text-align:center;font-size:.85rem;color:var(--text-2)}.teach-cookie{display:block;width:34px;height:34px;flex:0 0 auto;border-radius:50%;border:1px solid #a6551a;background:radial-gradient(circle at 32% 30%,#3a1c07 0 2.4px,transparent 3px),radial-gradient(circle at 66% 34%,#3a1c07 0 2.4px,transparent 3px),radial-gradient(circle at 48% 60%,#3a1c07 0 2.6px,transparent 3.2px),radial-gradient(circle at 26% 66%,#3a1c07 0 2px,transparent 2.6px),radial-gradient(circle at 72% 66%,#3a1c07 0 2px,transparent 2.6px),radial-gradient(circle at 38% 32%,#e6a35c,#c47420 78%);box-shadow:inset 0 -2px 4px #5a320f38,0 1px 2px #5a320f2e}.teach-cookies{gap:10px}.teach-cookies-wrap{align-content:flex-start}.teach-slot-cookie{width:76%;height:76%;border-radius:50%;border:1px solid #a6551a;background:radial-gradient(circle at 34% 32%,#3a1c07 0 1.3px,transparent 1.7px),radial-gradient(circle at 64% 40%,#3a1c07 0 1.3px,transparent 1.7px),radial-gradient(circle at 46% 64%,#3a1c07 0 1.3px,transparent 1.7px),radial-gradient(circle at 38% 32%,#e6a35c,#c47420 78%)}.teach-tenbox{display:grid;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(2,1fr);gap:2px;width:66px;height:32px;flex:0 0 auto;padding:3px;border-radius:7px;background:color-mix(in srgb,var(--surface-2) 70%,var(--surface));border:1.5px solid #8b93a1;place-items:center}.teach-tenbox>span{width:8px;height:8px;border-radius:50%;background:radial-gradient(circle at 38% 32%,#e0a35c,#c47420);border:.5px solid #9d5314}.teach-tenbox.is-open{border-style:dashed;border-color:#d97706;opacity:.5}.teach-tenbox.is-open>span{opacity:.3}.teach-boxes{display:flex;flex-wrap:wrap;gap:7px;align-items:center;justify-content:center;flex:1}.teach-dish{background:color-mix(in srgb,#c47420 6%,var(--surface));border:1px solid color-mix(in srgb,#c47420 30%,var(--separator))}.teach-basket{border:2px dashed color-mix(in srgb,#d97706 45%,var(--separator));background:repeating-linear-gradient(45deg,color-mix(in srgb,#d97706 8%,var(--surface)) 0 6px,transparent 6px 12px),color-mix(in srgb,#d97706 5%,var(--surface))}.teach-basket.teach-zone-over{border-color:#d97706;background:color-mix(in srgb,#d97706 16%,var(--surface))}.teach-openbox{margin-top:8px;padding:10px 12px;border:none;border-radius:12px;width:100%;color:#fff;font-size:.9rem;background:#d97706;box-shadow:0 4px #b45309;animation:teach-openpulse 1.6s ease-in-out infinite}.teach-openbox:active{transform:translateY(2px);box-shadow:0 2px #b45309}@keyframes teach-openpulse{0%,to{box-shadow:0 4px #b45309,0 0 #d9770647}50%{box-shadow:0 4px #b45309,0 0 0 7px #d977061f}}.teach-panel[data-accent=rose]{border-color:color-mix(in srgb,#e11d48 45%,var(--separator))}.teach-col2wrap{display:grid;grid-template-columns:1fr;gap:16px;align-items:start}@media(min-width:760px){.teach-col2wrap{grid-template-columns:minmax(150px,190px) 1fr}}.teach-vform{background:var(--surface-2);border:1px solid var(--separator);border-radius:var(--radius-sm);padding:16px 18px;display:flex;flex-direction:column;align-items:center;font-variant-numeric:tabular-nums}.teach-vform-grid{display:grid;grid-template-columns:repeat(2,42px);justify-items:center;align-items:center}.teach-vf-mark{font-size:.9rem;color:#e11d48;min-height:1.15em}.teach-vf-num{position:relative;font-size:2rem;line-height:1.2}.teach-vf-op{position:absolute;left:-16px;color:var(--text-3)}.teach-vf-strike:after{content:"";position:absolute;left:4%;top:54%;width:92%;height:2px;background:#e11d48;transform:rotate(-16deg)}.teach-vf-ans{color:#2d6a4f}.teach-vf-hold{color:var(--text-3)}.teach-vform-line{width:92px;height:2px;background:var(--text-2);border-radius:2px;margin:6px 0}.teach-sub2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.teach-sub2-col{display:flex;flex-direction:column;gap:8px}.teach-track{min-height:92px;border:1.5px solid var(--separator);border-radius:12px;background:color-mix(in srgb,#94a3b8 8%,var(--surface));padding:8px;display:flex;flex-wrap:wrap;gap:6px;align-content:flex-start;justify-content:center}.teach-sub2-drop{min-height:92px}.teach-bigbox{display:grid;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(2,1fr);gap:2px;width:80px;height:46px;padding:4px;flex:0 0 auto;border-radius:8px;background:color-mix(in srgb,#7c4a1e 12%,var(--surface));border:2px solid #b4854e}.teach-bigbox>span{border-radius:2px;background:color-mix(in srgb,#c47420 42%,var(--surface));border:.5px solid #a6551a}.teach-bears{display:flex;gap:10px;justify-content:center;border:2px dashed color-mix(in srgb,#6366f1 40%,var(--separator));background:color-mix(in srgb,#6366f1 6%,var(--surface));border-radius:var(--radius-sm);padding:12px;transition:border-color .15s,background-color .15s}.teach-bears.teach-zone-over{border-color:#6366f1;background:color-mix(in srgb,#6366f1 14%,var(--surface))}.teach-bearplate{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:6px;background:var(--surface);border:1px solid var(--separator);border-radius:14px 14px 24px 24px;padding:8px;min-height:116px}.teach-bearplate .teach-zone-body{min-height:62px}.teach-panel[data-accent=purple]{border-color:color-mix(in srgb,#7c3aed 45%,var(--separator))}.teach-area{display:grid;grid-template-columns:22px 1fr;grid-template-rows:20px 190px;gap:4px;width:min(360px,90vw);margin:4px auto}.teach-area-top{grid-column:2;grid-row:1;display:flex;gap:3px}.teach-area-side{grid-column:1;grid-row:2;display:flex;flex-direction:column;gap:3px}.teach-area-top span,.teach-area-side span{display:grid;place-items:center;font-size:.9rem;color:var(--text-2);font-variant-numeric:tabular-nums}.teach-area-grid{grid-column:2;grid-row:2;display:grid;gap:3px}.teach-area-cell{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border-radius:8px;background:color-mix(in srgb,#7c3aed 12%,var(--surface));border:1px solid color-mix(in srgb,#7c3aed 30%,transparent);color:var(--text);padding:2px;overflow:hidden}.teach-area-dim{font-size:.62rem;line-height:1.1;color:var(--text-3);font-variant-numeric:tabular-nums;white-space:nowrap}.teach-area-val{font-size:1.15rem;line-height:1.1;font-variant-numeric:tabular-nums}:root[data-classroom=on] .teach-area{width:min(560px,62vw);grid-template-columns:30px 1fr;grid-template-rows:26px 300px}:root[data-classroom=on] .teach-area-dim{font-size:.82rem}:root[data-classroom=on] .teach-area-val{font-size:1.5rem}.teach-cutbtns{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;align-items:center}.teach-cutbtn{padding:10px 16px;border:none;border-radius:12px;color:#fff;font-size:.92rem;background:#7c3aed;box-shadow:0 4px #5b21b6}.teach-cutbtn:active{transform:translateY(2px);box-shadow:0 2px #5b21b6}.teach-area-sum{font-size:1.05rem;font-variant-numeric:tabular-nums;color:#2d6a4f}.teach-container{display:grid;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(2,1fr);gap:2px;width:88px;height:52px;padding:4px;flex:0 0 auto;border-radius:8px;background:color-mix(in srgb,#4a2f12 16%,var(--surface));border:2px solid #7c5a34}.teach-container>span{border-radius:2px;background:color-mix(in srgb,#7c4a1e 48%,var(--surface));border:.5px solid #5a3a18}.teach-ld{display:flex;flex-direction:column;gap:12px}.teach-ld-strip{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.teach-ld-place{flex:1 1 0;min-width:88px;display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px;border-radius:12px;border:1px solid var(--separator);background:var(--surface)}.teach-ld-place.is-current{border-color:#6366f1;box-shadow:0 0 0 3px color-mix(in srgb,#6366f1 15%,transparent)}.teach-ld-place.is-done{opacity:.65}.teach-ld-icon{display:flex;align-items:center;justify-content:center;min-height:52px}.teach-ld-name{font-size:.76rem;color:var(--text-3)}.teach-ld-digit{font-size:1.1rem;font-variant-numeric:tabular-nums}.teach-ld-steps{display:flex;flex-direction:column;gap:6px}.teach-ld-line{font-size:.9rem;color:var(--text-2);background:var(--surface-2);border:1px solid var(--separator);border-radius:10px;padding:8px 12px;font-variant-numeric:tabular-nums;line-height:1.5}.teach-ld-line-h{color:var(--text);margin-right:6px}.teach-ld-qd{color:#2d6a4f;padding:0 4px;border-radius:5px;background:color-mix(in srgb,#2d6a4f 12%,var(--surface))}.teach-ld-ans{text-align:center;font-size:1.1rem}.teach-ld-q{color:#2d6a4f;font-variant-numeric:tabular-nums;letter-spacing:.18em}.mt-board{display:grid;gap:8px;background:#f6f2ea;border:2px solid #d9cfbf;border-radius:16px;padding:12px 14px}.mt-row{display:grid;grid-template-columns:46px 1fr;align-items:center;gap:6px;height:56px}.mt-ruler-row{height:auto}.mt-loco{display:flex;align-items:center;justify-content:center}.mt-engine-svg{width:46px;height:36px;filter:drop-shadow(0 2px 2px rgba(30,20,10,.18))}.mt-smoke{animation:mtSmoke 1.8s infinite ease-out;transform-origin:center}@keyframes mtSmoke{0%{transform:translate(0) scale(.6);opacity:.75}to{transform:translate(-6px,-8px) scale(1.2);opacity:0}}.mt-track{position:relative;height:100%;display:flex;align-items:center}.mt-track:before{content:"";position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);height:14px;border-top:3px solid #64748b;border-bottom:3px solid #64748b;opacity:.5;pointer-events:none}.mt-cars{position:relative;z-index:1;display:flex;align-items:center;width:100%;height:100%}.mt-car{display:flex;align-items:center;justify-content:space-evenly;gap:2px;height:34px;padding:0 4px;border-radius:8px;box-sizing:border-box}.mt-row-frog .mt-car{background:#ecfdf5;border:2px solid #047857}.mt-row-squirrel .mt-car{background:#fff7ed;border:2px solid #c2410c}.mt-cookie{flex:1 1 0;min-width:5px;max-width:15px;aspect-ratio:1 / 1;border-radius:50%;background:radial-gradient(2.6px 2.6px at 38% 40%,#381a05 0 45%,transparent 48%),radial-gradient(2.2px 2.2px at 66% 62%,#381a05 0 45%,transparent 48%),radial-gradient(circle at 35% 32%,#f8be78,#d98939 68%,#b4631a);box-shadow:inset 0 0 0 1px #a6581480}.mt-ruler{display:flex;width:100%}.mt-tick{flex:1 1 0;text-align:center;font-size:.62rem;color:var(--text-3);font-variant-numeric:tabular-nums;border-left:1px solid rgba(100,116,139,.25)}.mt-tick:first-child{border-left:none}.mt-aligned .mt-track:after{content:"";position:absolute;right:-2px;top:-7px;bottom:-7px;width:5px;border-radius:3px;background:#f59e0b;box-shadow:0 0 12px #fbbf24,0 0 22px #f59e0b}.mt-legend{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.mt-legend-item{display:inline-flex;align-items:center;gap:6px;font-size:.82rem;padding:3px 10px;border-radius:999px}.mt-legend-frog{background:#ecfdf5;color:#047857}.mt-legend-squirrel{background:#fff7ed;color:#c2410c}.mt-controls{display:flex;flex-direction:column;gap:10px;width:100%}.mt-ctl{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 14px;border-radius:14px}.mt-ctl-frog{background:#ecfdf5}.mt-ctl-squirrel{background:#fff7ed}.mt-ctl-name{font-size:1rem}.mt-ctl-frog .mt-ctl-name{color:#047857}.mt-ctl-squirrel .mt-ctl-name{color:#c2410c}.mt-ctl-btns{display:flex;gap:10px}.mt-ctl-btn{min-width:58px;min-height:48px}:root[data-classroom=on] .mt-row{height:74px;grid-template-columns:62px 1fr}:root[data-classroom=on] .mt-engine-svg{width:62px;height:48px}:root[data-classroom=on] .mt-car{height:48px}:root[data-classroom=on] .mt-cookie{max-width:22px}:root[data-classroom=on] .mt-tick{font-size:.8rem}.games-list .card>.row-between{flex-wrap:wrap;row-gap:8px}.games-list .card>.row-between>.row{flex-wrap:wrap;justify-content:flex-end;margin-left:auto}.games-list .card>.row-between .pill,.games-list .card>.row-between .btn{white-space:nowrap}.row-between:has(>.pill),.row-between:has(>.teach-lab-count){flex-wrap:wrap;row-gap:6px}.row-between>.pill,.row-between>.screen-title,.row-between>.section-title,.teach-lab-count,.task-rec{white-space:nowrap}:root:not([data-zhuyin=on]) .badge-grid{grid-template-columns:repeat(auto-fill,minmax(max(96px,5.8rem),1fr))}:root:not([data-zhuyin=on]) .stat-grid{display:flex;flex-wrap:wrap}:root:not([data-zhuyin=on]) .stat-grid>.stat{flex:1 1 5.8rem;min-width:0}@media(max-width:340px){:root[data-font=large] .mode-grid,:root[data-font=xlarge] .mode-grid,:root[data-zhuyin=on] .mode-grid{grid-template-columns:minmax(0,1fr)}:root[data-zhuyin=on] .tab{font-size:.5rem}:root[data-zhuyin=on] .tab:last-child .zhuyin-run{transform:translate(-3px)}}@media(max-width:480px){:root[data-zhuyin=on] .badge{flex-direction:column;align-items:center;text-align:center;gap:6px;padding:12px 10px}}h1,h2,h3,.screen-title,.section-title,.mode-name,.badge-title,.game-title,.btn{text-wrap:balance}p,.muted,.badge-note,.list-row{text-wrap:pretty}:root[data-zhuyin=on] :is(.game-title,.badge-title,.mode-name,.section-title,.screen-title,.stat-label) .zhuyin-run{display:inline;white-space:normal}:root[data-zhuyin=on] :is(.game-title,.badge-title,.mode-name,.section-title,.screen-title,.stat-label){text-wrap:balance}.game-intro{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;width:100%;max-width:560px;margin:0 auto;padding:24px 20px calc(env(safe-area-inset-bottom) + 24px);text-align:center}.game-intro-text{margin:0;font-size:1.15rem;line-height:1.75;text-wrap:pretty}.game-intro-start{min-width:200px}@media(max-width:480px){.mode-card-text .muted{display:none}}.versus:not(.is-tabletop){padding-top:calc(env(safe-area-inset-top) + 64px)}.versus:not(.is-tabletop) .versus-divider{margin-top:0}.versus.is-tabletop .versus-divider{flex:0 0 56px;height:56px;margin:0;background:none}.versus.is-tabletop .versus-divider:before{content:"";position:absolute;top:50%;left:132px;right:64px;height:2px;transform:translateY(-50%);background:var(--separator)}.versus.is-tabletop .versus-exit,.versus.is-tabletop .versus-layout-toggle{top:calc(50% + (env(safe-area-inset-top) - env(safe-area-inset-bottom))/2);transform:translateY(-50%)}.versus.is-tabletop .versus-exit{left:auto;right:8px}.versus.is-tabletop .versus-layout-toggle{left:8px}.versus-main,.practice-main{container-type:inline-size}.versus-main>.stack{width:100%;min-width:0}.game-digits.fit{white-space:nowrap;letter-spacing:.3em;padding-left:.3em;font-size:min(calc(var(--question-size) * 1.15),calc(100cqi / (var(--n) + .6)))}.versus .game-digits.fit{font-size:min(clamp(2.4rem,10vmin,7rem),calc(100cqi / (var(--n) + .6)))}.slot.fit{width:auto;max-width:100%;font-size:min(calc(var(--question-size) * .82),calc((100cqi - 48px) / (var(--n) * .8)))}.versus .slot.fit{font-size:min(clamp(1.6rem,6.5vmin,4.6rem),calc((100cqi - 48px) / (var(--n) * .8)))}.fc-tray{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;width:100%;max-width:560px;min-height:90px;padding:12px;border-radius:16px;background:#f6f2ea;border:2px solid #e2d6c3}.fc-pile,.fc-box,.fc-left{display:flex;flex-wrap:wrap;justify-content:center;gap:3px;max-width:100%}.fc-box{padding:6px;border-radius:10px;border:2px solid #b08968;background:#fff}.fc-box-ok{border-color:#2d6a4f;background:#eaf7ef}.fc-left{padding:6px;border-radius:10px;border:2px dashed #d64545;background:#fdecec}.fc-cookie{flex:0 0 auto;width:var(--fc-size, 18px);height:var(--fc-size, 18px);border-radius:50%;background:radial-gradient(18% 18% at 36% 40%,#381a05 0 60%,transparent 64%),radial-gradient(16% 16% at 66% 62%,#381a05 0 60%,transparent 64%),radial-gradient(circle at 35% 32%,#f8be78,#d98939 68%,#b4631a);box-shadow:inset 0 0 0 1px #a658148c}.fc-ask{display:flex;align-items:center;gap:10px;font-size:1.1rem}.fc-slot{width:auto;min-width:88px;min-height:52px}.fc-found{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.fc-chip{min-width:44px;height:44px;padding:0 8px;border-radius:12px;display:grid;place-items:center;font-weight:800;font-size:1.15rem;font-variant-numeric:tabular-nums;background:var(--surface-2);color:var(--text-3)}.fc-chip-on{background:#2d6a4f;color:#fff}@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .fc-tray{background:#20262e;border-color:#38414d}:root:not([data-theme=light]) .fc-box{background:#2a313b}:root:not([data-theme=light]) .fc-box-ok{background:#2d6a4f59;border-color:#6ee7b7}:root:not([data-theme=light]) .fc-left{background:#d6454533}}:root[data-theme=dark] .fc-tray{background:#20262e;border-color:#38414d}:root[data-theme=dark] .fc-box{background:#2a313b}:root[data-theme=dark] .fc-box-ok{background:#2d6a4f59;border-color:#6ee7b7}:root[data-theme=dark] .fc-left{background:#d6454533}.mt-board{padding:16px 14px;gap:12px}.mt-row{grid-template-columns:70px 1fr;height:84px}.mt-loco{flex-direction:column;gap:2px}.mt-engine-svg{width:62px;height:48px}.mt-count{min-width:40px;padding:1px 8px;border-radius:999px;color:#fff;font-size:1.05rem;font-weight:800;line-height:1.35;text-align:center;font-variant-numeric:tabular-nums}.mt-row-frog .mt-count{background:#047857}.mt-row-squirrel .mt-count{background:#c2410c}.mt-car{height:56px;border-width:3px;border-radius:10px}.mt-row-frog .mt-car{background:#d1fae5}.mt-row-squirrel .mt-car{background:#ffedd5}.mt-cookie{max-width:30px;box-shadow:inset 0 0 0 1.5px #783c0ab3}.mt-track:before{height:20px;border-top-width:4px;border-bottom-width:4px;opacity:.6}.mt-tick{font-size:1rem;font-weight:700;color:var(--text-2);padding-top:2px}.mt-lab .pill{font-size:1rem;padding:8px 14px;white-space:normal;text-wrap:balance}.mt-legend-item{font-size:1rem;font-weight:700;padding:5px 14px}.mt-legend-frog{color:#065f46}.mt-legend-squirrel{color:#9a3412}.mt-ctl-name{font-size:1.15rem;font-weight:800}.mt-ctl-frog .mt-ctl-name{color:#065f46}.mt-ctl-squirrel .mt-ctl-name{color:#9a3412}:root[data-classroom=on] .mt-row{height:110px;grid-template-columns:90px 1fr}:root[data-classroom=on] .mt-engine-svg{width:82px;height:62px}:root[data-classroom=on] .mt-car{height:76px}:root[data-classroom=on] .mt-cookie{max-width:40px}@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .mt-board{background:#20262e;border-color:#38414d}:root:not([data-theme=light]) .mt-row-frog .mt-car{background:#04785747}:root:not([data-theme=light]) .mt-row-squirrel .mt-car{background:#c2410c47}:root:not([data-theme=light]) .mt-legend-frog{background:#04785747;color:#6ee7b7}:root:not([data-theme=light]) .mt-legend-squirrel{background:#c2410c47;color:#fdba74}:root:not([data-theme=light]) .mt-ctl-frog{background:#04785738}:root:not([data-theme=light]) .mt-ctl-squirrel{background:#c2410c38}:root:not([data-theme=light]) .mt-ctl-frog .mt-ctl-name{color:#6ee7b7}:root:not([data-theme=light]) .mt-ctl-squirrel .mt-ctl-name{color:#fdba74}}:root[data-theme=dark] .mt-board{background:#20262e;border-color:#38414d}:root[data-theme=dark] .mt-row-frog .mt-car{background:#04785747}:root[data-theme=dark] .mt-row-squirrel .mt-car{background:#c2410c47}:root[data-theme=dark] .mt-legend-frog{background:#04785747;color:#6ee7b7}:root[data-theme=dark] .mt-legend-squirrel{background:#c2410c47;color:#fdba74}:root[data-theme=dark] .mt-ctl-frog{background:#04785738}:root[data-theme=dark] .mt-ctl-squirrel{background:#c2410c38}:root[data-theme=dark] .mt-ctl-frog .mt-ctl-name{color:#6ee7b7}:root[data-theme=dark] .mt-ctl-squirrel .mt-ctl-name{color:#fdba74}@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .mt-row-frog .mt-car{background:#0478574d}:root:not([data-theme=light]) .mt-row-squirrel .mt-car{background:#c2410c4d}}:root[data-theme=dark] .mt-row-frog .mt-car{background:#0478574d}:root[data-theme=dark] .mt-row-squirrel .mt-car{background:#c2410c4d}.fc-lab .pill{font-size:1rem;padding:8px 14px;white-space:normal;text-wrap:balance}.fc-ask{font-size:1.2rem;font-weight:700}.fc-chip{min-width:48px;height:48px;font-size:1.3rem}.levels-grid>.topic-head,.levels-grid>.topic-pending{grid-column:1 / -1}.topic-pending{grid-column:1 / -1}.topic-head{font-size:1.12rem;font-weight:800;color:var(--brand-text);margin-top:10px;letter-spacing:.04em}.cu-item{display:flex;align-items:center;gap:8px;font-size:.86rem;font-weight:700;color:var(--text-2);text-wrap:balance}.code-chip{flex:0 0 auto;padding:1px 7px;border-radius:6px;background:var(--brand-soft);color:var(--brand-text);font-size:.72rem;font-weight:800;letter-spacing:.02em;font-variant-numeric:tabular-nums;white-space:nowrap}.code-row{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}.code-chip-sub{background:var(--surface-2);color:var(--text-3)}.topic-pending{margin:4px 0 0}:root[data-zhuyin=on] .segment .zhuyin-run{flex-wrap:nowrap}:root[data-zhuyin=on] .segment{flex:1 0 auto}:root[data-zhuyin=on] .chart-svg{width:min(250px,calc(100vw - 40px))}:root[data-zhuyin=on] .clk-times .pv-part{font-size:1.05rem;padding:4px 10px}:root[data-zhuyin=on] .topic-head{font-size:.98rem}@media(max-width:380px){:root[data-zhuyin=on] .topic-head{font-size:.84rem}}.segmented:has(>.segment:nth-child(5)){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}.games-list>.topic-head{grid-column:1 / -1}.special-question{display:flex;flex-direction:column;align-items:center;gap:14px;width:100%}.money-set{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px}.money-exchange{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px}.money-coin{display:grid;place-items:center;flex:0 0 auto;border-radius:50%;font-weight:800;font-variant-numeric:tabular-nums;color:#3a2a12;box-shadow:inset 0 0 0 3px #0000001f,0 2px #0000002e}.money-coin-1{width:42px;height:42px;font-size:1rem;background:radial-gradient(circle at 35% 30%,#f4c9a3,#c7865a 70%)}.money-coin-5{width:48px;height:48px;font-size:1.05rem;background:radial-gradient(circle at 35% 30%,#f2f2f2,#b9bec6 70%)}.money-coin-10{width:54px;height:54px;font-size:1.1rem;background:radial-gradient(circle at 35% 30%,#f5f5f5,#aeb4bd 70%)}.money-coin-50{width:60px;height:60px;font-size:1.15rem;background:radial-gradient(circle at 35% 30%,#fff1b8,#d8a92b 70%)}.money-bill{display:grid;place-items:center;flex:0 0 auto;width:96px;height:50px;border-radius:8px;color:#fff;font-size:1.25rem;font-weight:800;font-variant-numeric:tabular-nums;box-shadow:inset 0 0 0 3px #ffffff59,0 2px #0003}.money-bill-100{background:#c9463d}.money-bill-500{background:#8a5a2b}.money-bill-1000{background:#3f6db3}.money-arrow{font-size:1.6rem;font-weight:800;color:var(--text-3)}.money-times{font-size:1.4rem;font-weight:800}.money-tag{padding:8px 14px;border-radius:10px;border:2px dashed var(--brand);font-size:1.3rem;font-weight:800;font-variant-numeric:tabular-nums}.special-unit{font-size:1.3rem;font-weight:800;align-self:center}.answer-slots:has(.special-unit){gap:10px}.answer-area{width:100%}.answer-slots:has(.special-unit) .slot{flex:0 0 auto;width:auto;min-width:88px;max-width:none}.practice-main .slot{font-size:min(calc(var(--question-size) * .82),calc(var(--question-size) * .82 * 5 / max(var(--n, 1),5)))}.special-unit,:root[data-zhuyin] .special-unit .zhuyin-run{flex:none;white-space:nowrap;flex-wrap:nowrap}.pv-blocks{--pv: 13px;display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-end;gap:18px;max-width:100%}.pv-blocks:has(.pv-flat){--pv: 7px}.pv-group{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-end;gap:4px}.pv-group-2{max-width:calc(var(--pv) * 50 + 20px)}.pv-group-0{display:grid;grid-template-columns:repeat(5,var(--pv));gap:3px}.pv-flat,.pv-rod,.pv-unit{flex:0 0 auto;background-color:var(--ill-block);border:1px solid var(--ill-block-edge);box-sizing:content-box}.pv-flat{width:calc(var(--pv) * 10);height:calc(var(--pv) * 10);background-image:linear-gradient(to right,rgba(140,80,10,.45) 1px,transparent 1px),linear-gradient(to bottom,rgba(140,80,10,.45) 1px,transparent 1px);background-size:var(--pv) var(--pv)}.pv-rod{width:var(--pv);height:calc(var(--pv) * 10);background-image:linear-gradient(to bottom,rgba(140,80,10,.45) 1px,transparent 1px);background-size:var(--pv) var(--pv)}.pv-unit{width:var(--pv);height:var(--pv)}@media(min-width:600px){.pv-blocks{--pv: 15px}.pv-blocks:has(.pv-flat){--pv: 9px}}.pv-parts,.pv-sequence{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.pv-part,.pv-step{padding:6px 14px;border-radius:12px;font-size:1.35rem;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}.pv-part{border:2px solid var(--brand)}.pv-step{background:var(--surface-2)}.pv-step-next{background:none;border:2px dashed var(--brand);color:var(--brand-text)}.pv-number{display:flex;justify-content:center;gap:4px;max-width:100%}.pv-digit{min-width:1.1ch;padding:0 4px;font-size:clamp(1.8rem,9vw,2.8rem);font-weight:800;font-variant-numeric:tabular-nums;line-height:1.2;border-bottom:3px solid var(--separator);text-align:center}.pv-digit-marked{border-radius:8px;outline:3px solid var(--brand);outline-offset:1px;border-bottom-color:transparent}.pv-text{font-size:clamp(1.6rem,8vw,2.4rem);font-weight:800;font-variant-numeric:tabular-nums;text-align:center}.pv-text-read{font-size:clamp(1.4rem,7vw,2.1rem);text-wrap:balance}.len-grid{--cell: min(40px, calc((100vw - 80px) / var(--cells)));display:flex;flex-direction:column;align-items:flex-start;gap:6px}.len-bar{display:block;width:calc(var(--cell) * var(--span));height:18px;border-radius:4px;background:var(--ill-accent)}.len-bar-1{background:var(--ill-blue)}.len-cells{display:block;width:calc(var(--cell) * var(--cells));height:var(--cell);outline:1.5px solid var(--text-3);background-image:linear-gradient(to right,var(--text-3) 1.5px,transparent 1.5px);background-size:var(--cell) 100%}.len-ruler-wrap{width:min(100%,380px);padding:0 14px;box-sizing:border-box}.len-ribbon{height:16px;margin-left:calc(var(--from) * 100%);width:calc((var(--to) - var(--from)) * 100%);margin-bottom:3px;border-radius:4px;background:var(--ill-accent)}.len-ruler{position:relative;height:40px;border-radius:4px;background:var(--ill-ruler);box-shadow:0 0 0 1px var(--ill-ruler-edge)}.len-tick{position:absolute;top:0;width:1.5px;height:16px;background:var(--ill-ruler-ink);transform:translate(-50%)}.len-tick-half{height:11px}.len-tick-sub{width:1px;height:7px}.len-label{position:absolute;top:17px;transform:translate(-50%);color:var(--ill-ruler-ink);font-size:.8rem;font-weight:700;font-variant-numeric:tabular-nums}.len-equation{max-width:100%;font-size:clamp(1.3rem,6.5vw,2.1rem);text-wrap:balance}.cnt-rows{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.cnt-row{display:flex;align-items:center;gap:10px}.cnt-label{min-width:1.6em;font-size:1.2rem;font-weight:800}.cnt-items{display:flex;flex-wrap:wrap;gap:5px;max-width:min(280px,calc(100vw - 110px))}.cnt-cup{width:28px;height:36px;border:2px solid var(--ill-blue);border-top:none;border-radius:0 0 6px 6px;background:linear-gradient(to top,var(--ill-water) 75%,transparent 75%)}.cnt-block{width:28px;height:28px;border-radius:4px;border:1px solid var(--ill-block-edge);background:var(--ill-block)}.msr-jug,.msr-dial{width:min(190px,50vw);height:auto}.msr-jug{width:min(130px,36vw)}.msr-water{fill:var(--ill-water)}.msr-glass{fill:none;stroke:var(--text-2);stroke-width:3}.msr-tick{stroke:var(--text-2);stroke-width:2}.msr-label{fill:var(--text);font-size:13px;font-weight:700}.msr-label-dial{font-size:12px;text-anchor:middle}.msr-face{fill:var(--surface);stroke:var(--text-2);stroke-width:4}.msr-needle{stroke:var(--ill-red);stroke-width:4;stroke-linecap:round}.msr-hub{fill:var(--text)}.clk-face{width:min(170px,44vw);height:auto}.clk-small{width:min(110px,30vw)}.clk-rim{fill:var(--surface);stroke:var(--text);stroke-width:4}.clk-tick{stroke:var(--text-3);stroke-width:1.5}.clk-tick-major{stroke:var(--text);stroke-width:3}.clk-num{fill:var(--text);font-size:20px;font-weight:800;text-anchor:middle}.clk-hour{stroke:var(--text);stroke-width:7;stroke-linecap:round}.clk-minute{stroke:var(--ill-red);stroke-width:4;stroke-linecap:round}.clk-hub{fill:var(--text)}.clk-pair,.clk-times{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px}.frac-eq{display:inline-flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;font-size:clamp(1.5rem,7vw,2.2rem);font-weight:800;font-variant-numeric:tabular-nums}.frac{display:inline-flex;flex-direction:column;align-items:center;line-height:1.1;vertical-align:middle}.frac-num{padding:0 4px 2px;border-bottom:3px solid currentColor}.frac-den{padding:2px 4px 0}.frac-mixed{display:inline-flex;align-items:center;gap:3px}.frac-whole{font-size:1.15em}.frac-op{font-weight:700}.frac-bar{display:flex;width:min(300px,calc(100vw - 72px));height:38px;border:2px solid var(--text-2)}.frac-cell{flex:1;border-left:1.5px solid var(--text-2)}.frac-cell:first-child{border-left:none}.frac-cell-on,.dec-cell-on{background:var(--ill-accent)}.frac-shape{width:min(130px,36vw);height:auto}.frac-part{fill:var(--surface);stroke:var(--text-2);stroke-width:2}.frac-part-on{fill:var(--ill-accent)}.dec-bars{display:flex;flex-direction:column;gap:6px}.dec-bars .frac-bar{height:30px}.dec-grid{display:grid;grid-template-columns:repeat(10,1fr);width:min(170px,46vw);aspect-ratio:1;border:2px solid var(--text-2)}.dec-cell{border-right:1px solid var(--text-3);border-bottom:1px solid var(--text-3)}.pv-dot{min-width:.5ch;border-bottom-color:transparent}.nl-svg{width:min(360px,calc(100vw - 40px));height:auto}.nl-axis,.nl-tick{stroke:var(--text);stroke-width:2}.nl-label{fill:var(--text);font-size:15px;font-weight:700;text-anchor:middle}.nl-ask{fill:var(--ill-red);font-size:18px}.nl-arrow{fill:var(--ill-red)}.nl-arc{fill:none;stroke:var(--ill-red);stroke-width:2.5}.nl-start{fill:var(--ill-blue)}.nl-wrap{display:flex;flex-direction:column;align-items:center;gap:6px}.geo-svg{width:min(240px,calc(100vw - 48px));height:auto}.geo-shape{fill:var(--ill-shape);stroke:var(--text);stroke-width:3;stroke-linejoin:round}.geo-label,.geo-tick-label{fill:var(--text);font-size:15px;font-weight:800;text-anchor:middle}.geo-tick-label{font-size:12px}.geo-dot{fill:var(--text)}.geo-mark,.geo-ray{stroke:var(--ill-red);stroke-width:3;stroke-linecap:round}.geo-ray-to{stroke:var(--ill-blue);stroke-dasharray:6 4}.geo-arc{fill:none;stroke:var(--ill-red);stroke-width:2}.geo-protractor{fill:var(--ill-water-soft);stroke:var(--text-2);stroke-width:2}.geo-tick{stroke:var(--text-2);stroke-width:1.2}.geo-row{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-width:320px}.geo-glyph{width:34px;height:34px}.geo-named{display:flex;flex-direction:column;align-items:center;gap:4px}.geo-grid{--geo-cell: min(34px, 12vw);display:grid;border-top:1.5px solid var(--text-3);border-left:1.5px solid var(--text-3)}.geo-cell{width:var(--geo-cell);height:var(--geo-cell);border-right:1.5px solid var(--text-3);border-bottom:1.5px solid var(--text-3)}.geo-cell-on{background:var(--ill-accent)}.data-dot{width:30px;height:30px;border-radius:50%}.data-table{border-collapse:collapse;font-size:1.05rem;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding:6px 10px;border:1.5px solid var(--text-3);text-align:center}.data-table th{background:var(--surface-2);font-weight:700}.data-table td{font-weight:800;font-size:1.2rem}.chart-wrap{display:flex;flex-direction:column;align-items:center;gap:2px}.chart-title{font-size:.9rem;font-weight:700;color:var(--text-2)}.chart-svg{width:min(300px,calc(100vw - 40px));height:auto}.chart-grid{stroke:var(--separator);stroke-width:1}.chart-axis-label{fill:var(--text);font-size:12px;font-weight:700;text-anchor:middle}.chart-y{text-anchor:end}.chart-bar{fill:var(--ill-blue)}.chart-line{fill:none;stroke:var(--ill-red);stroke-width:3}.chart-dot{fill:var(--ill-red)}.word-problem{max-width:min(560px,100%);margin:0;padding:14px 16px;border-radius:var(--radius-sm);background:var(--surface);border:1.5px solid var(--separator);font-size:clamp(1.15rem,5vw,1.4rem);font-weight:700;line-height:1.5;letter-spacing:.02em;text-spacing-trim:trim-start;text-wrap:pretty}.pie-svg{width:min(280px,calc(100vw - 40px));height:auto}.pie-slice{stroke:var(--surface);stroke-width:2}.pie-pct{fill:#1f2328;stroke:#ffffffd9;stroke-width:3px;paint-order:stroke;font-size:13px;font-weight:800;text-anchor:middle}.pie-label{fill:var(--text);font-size:14px;font-weight:700}.special-question .pill-ask,:root[data-zhuyin] .special-question .pill-ask .zhuyin-run{white-space:normal}:root[data-zhuyin] .special-question .pill-ask .zhuyin-run{flex-wrap:wrap;flex-shrink:1;justify-content:center}.special-question .pill-ask{max-width:100%;text-align:center;text-wrap:balance}.practice-main:has(.special-question){justify-content:safe center}.practice-main>.special-question{flex:0 1 auto;min-height:0;overflow-y:auto}.practice-main:has(.special-question)>:not(.special-question){flex-shrink:0}.practice-main:has(.special-question)>.pill:not(.pill-danger){display:none}@media(max-height:740px){.special-question,.pv-parts{gap:6px}.pv-part{padding:3px 8px;font-size:1.1rem}.money-bill{width:84px;height:42px}.len-grid{--cell: min(30px, calc((100vw - 80px) / var(--cells)));gap:4px}.len-bar{height:13px}.msr-jug,.clk-small{width:min(96px,28vw)}.msr-dial,.clk-face:not(.clk-small){width:min(128px,36vw)}.frac-shape,.dec-grid{width:min(110px,30vw)}.frac-bar{height:30px}.geo-svg{width:min(180px,50vw)}.chart-svg{width:min(250px,calc(100vw - 40px))}.geo-grid{--geo-cell: min(24px, 9vw)}.dec-bars .frac-bar{height:22px}.special-question .pill-ask{font-size:.88em}.pv-blocks{--pv: 7px}.pv-blocks:has(.pv-flat){--pv: 5px}.pv-group-0{grid-template-columns:repeat(5,max(var(--pv),7px))}.pv-group-0 .pv-unit{width:max(var(--pv),7px);height:max(var(--pv),7px)}.pv-group-2{max-width:calc(var(--pv) * 60 + 24px)}}.pet-stage{background:var(--brand-soft);color:var(--brand-text);font-weight:800}.pet-stage-row{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px}.pet-portrait{padding:0;border:0;background:none;border-radius:24px;cursor:pointer;line-height:0}.pet-speech{padding:10px 14px;border-radius:18px 18px 18px 4px;background:var(--warning-soft);color:var(--text);font-weight:700;line-height:1.5;text-wrap:pretty}.pet-meters{display:grid;gap:10px}.pet-meter{display:flex;flex-direction:column;gap:6px}.pet-meter-label{font-size:.95rem;font-weight:700}.pet-meals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.pet-meal{height:12px;border-radius:999px;background:var(--surface-2)}.pet-meal.on{background:var(--ill-accent)}.pet-growth{display:block;height:12px;border-radius:999px;background:var(--surface-2);overflow:hidden}.pet-growth>span{display:block;height:100%;border-radius:999px;background:var(--ill-blue)}.pet-links{display:flex;flex-wrap:wrap;gap:8px}.pet-links .btn{flex:1 1 auto}.pet-choose{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.pet-choose-option{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 4px;border:0;border-radius:16px;background:var(--surface-2);color:var(--text);font-weight:700;cursor:pointer}.pet-shadow{fill:#00000014}.pet-egg{fill:#fff4e2;stroke:var(--ill-accent);stroke-width:4}.pet-egg-crack{fill:none;stroke:#8a5a2b;stroke-width:3;stroke-linejoin:round;stroke-linecap:round;opacity:0}.pet-shine{fill:none;stroke:#fff;stroke-width:6;stroke-linecap:round;opacity:.85}.pet-cape{fill:var(--ill-red)}.pet-scarf{fill:var(--ill-blue)}.pet-eye-light{fill:#fff}.pet-line.pet-line-light{stroke:#fff}.pet-ear-inner{fill:#f7b9a8}.pet-light{fill:#fff3e3}.pet-eye{fill:#3b2a1e}.pet-line{fill:none;stroke:#3b2a1e;stroke-width:4;stroke-linecap:round}.pet-mouth{fill:#c9503f}.pet-blush{fill:#f7a8a0;opacity:.7}.pet-crown{fill:var(--ill-yellow);stroke:#9a6b00;stroke-width:2;stroke-linejoin:round}.star-row{display:inline-flex;gap:2px;vertical-align:middle}.level-row .star-row{display:flex;margin-top:4px}.level-row .pill{max-width:48%;white-space:normal;text-align:center;line-height:1.4}@media(max-width:480px){:root:not([data-zhuyin=on]) .level-row{flex-wrap:wrap;row-gap:6px}:root:not([data-zhuyin=on]) .level-row .grow{flex-basis:100%}:root:not([data-zhuyin=on]) .level-row .pill{max-width:100%;text-align:left}}.star-on{fill:#f2b233;stroke:#9a6b00;stroke-width:1.2}.star-off{fill:var(--surface-2);stroke:var(--text-3);stroke-width:1.2}.pet-home{max-width:560px;margin:0 auto}.pet-stages{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;width:100%;margin:0;padding:0;list-style:none}.pet-stage-step{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:.8rem;color:var(--text-2)}.pet-stage-dot{width:14px;height:14px;border-radius:50%;background:var(--surface-2);border:2px solid var(--text-3)}.pet-stage-step.done .pet-stage-dot{background:var(--ill-blue);border-color:var(--ill-blue)}.pet-stage-step.now{color:var(--text);font-weight:800}.pet-stage-step.now .pet-stage-dot{width:20px;height:20px;background:var(--ill-accent);border-color:var(--ill-accent)}.pet-cabinet{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.pet-item{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 6px;border-radius:16px;background:var(--surface);border:1px solid var(--separator);text-align:center}.pet-item.locked{background:var(--surface-2);border-style:dashed}.pet-item-name{font-size:.95rem;font-weight:800}.pet-item-hint{font-size:.75rem;color:var(--text-2)}.pet-feed-title{margin:0;font-size:1.5rem;text-align:center;text-wrap:balance}.pet-feed-compact{display:flex;align-items:center;gap:12px;width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer;border:0}.pet-feed-compact:active{transform:scale(.98)}.pet-feed-art{flex:none;display:grid;place-items:center;width:80px}.pet-feed-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.pet-feed-compact .pet-feed-title{font-size:1.15rem;font-weight:800;text-align:left}.pet-feed-chips{display:flex;flex-wrap:wrap;gap:6px}.pet-chip{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:999px;background:var(--surface-2);font-size:.86rem;font-weight:750;white-space:nowrap}.pet-chip-item{background:var(--warning-soft);white-space:normal}.pet-feed-pending{cursor:default}.pet-chip.pet-chip-wait{width:72px;height:1.5em}.pet-chip-wait{animation:pet-wait 1.2s ease-in-out infinite}@keyframes pet-wait{50%{opacity:.45}}@media(prefers-reduced-motion:reduce){.pet-chip-wait{animation:none}}.pet-feed-hint{font-size:.86rem;font-weight:700;color:var(--brand-text)}.pet-feed-lines{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;font-weight:700}.pet-new-item{display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;padding:10px 14px;border-radius:16px;background:var(--warning-soft)}.pet-snack{flex-direction:column;gap:2px;height:auto;padding-top:10px;padding-bottom:10px}.pet-snack-kind{font-size:.85em;font-weight:700;opacity:.9}.pet-snack-title{white-space:nowrap}@media(max-width:900px){:root[data-zhuyin=on] .level-row .pill{display:none}}.pet-portrait{transition:transform .14s var(--ease-out)}.pet-portrait:active{transform:scale(.96)}.pet-idle:not(.is-egg){transform-origin:50% 94%;animation:pet-breathe 3.6s var(--ease-in-out) infinite}.pet-idle .pet-eyes{transform-box:fill-box;transform-origin:center;animation:pet-blink 5.2s infinite}.pet-idle.is-happy .pet-eyes{animation:none}.pet-idle .pet-tail{transform-box:fill-box;transform-origin:0% 100%;animation:pet-wag 5.2s var(--ease-in-out) infinite}.pet-idle .pet-head{transform-box:fill-box;transform-origin:50% 90%;animation:pet-tilt 7.5s var(--ease-in-out) infinite}@keyframes pet-tilt{0%,78%,to{transform:rotate(0)}84%,88%{transform:rotate(-7deg)}94%{transform:rotate(5deg)}}.pet-idle .pet-egg-group{transform-box:fill-box;transform-origin:50% 100%;animation:pet-wobble 4s var(--ease-in-out) infinite}@keyframes pet-breathe{0%,to{transform:scale(1)}50%{transform:scale(.99,1.025)}}@keyframes pet-blink{0%,93%,to{transform:scaleY(1)}96%{transform:scaleY(.12)}}@keyframes pet-wag{0%,62%,to{transform:rotate(0)}70%{transform:rotate(9deg)}78%{transform:rotate(-4deg)}86%{transform:rotate(6deg)}94%{transform:rotate(0)}}@keyframes pet-wobble{0%,24%,to{transform:rotate(0)}6%{transform:rotate(-5deg)}12%{transform:rotate(5deg)}18%{transform:rotate(-2deg)}}.pet-moment{position:relative;flex:none}.pet-moment>.pet-art,.pet-moment-fx{position:absolute;inset:0;width:100%;height:100%}.pet-moment-fx{overflow:visible;pointer-events:none}.pet-hop{transform-origin:50% 94%;animation:pet-hop .72s var(--ease-out) .12s both}@keyframes pet-hop{0%{transform:translateY(0) scale(1)}14%{transform:translateY(0) scale(1.05,.94)}38%{transform:translateY(-12%) scale(.97,1.04)}62%{transform:translateY(0) scale(1.03,.97)}78%{transform:translateY(-4%) scale(1)}to{transform:translateY(0) scale(1)}}.pet-heart{fill:#f06a7a;transform-box:fill-box;transform-origin:center;opacity:0;animation:pet-heart .9s var(--ease-out) both}@keyframes pet-heart{0%{opacity:0;transform:translateY(8px) scale(.9)}30%{opacity:1}to{opacity:0;transform:translateY(-34px) scale(1.1)}}.pet-sparkle{fill:var(--ill-yellow);transform-box:fill-box;transform-origin:center;opacity:0;animation:pet-sparkle .7s var(--ease-out) both}@keyframes pet-sparkle{0%{opacity:0;transform:scale(.6) rotate(0)}40%{opacity:1;transform:scale(1.1) rotate(20deg)}to{opacity:0;transform:scale(.9) rotate(40deg)}}.pet-moment-hatch .pet-moment-old{transform-origin:50% 94%;animation:pet-egg-leave 1.3s var(--ease-out) both}.pet-moment-hatch .pet-moment-old .pet-egg-crack{animation:pet-crack 1.3s linear both}.pet-moment-hatch .pet-moment-new{transform-origin:50% 94%;animation:pet-arrive .48s var(--ease-out) 1.05s both}@keyframes pet-egg-leave{0%,8%{opacity:1;transform:rotate(0) scale(1)}16%{transform:rotate(-6deg) scale(1)}26%{transform:rotate(6deg) scale(1)}36%{transform:rotate(-4deg) scale(1)}46%,70%{opacity:1;transform:rotate(0) scale(1)}to{opacity:0;transform:rotate(0) scale(1.12)}}@keyframes pet-crack{0%,44%{opacity:0}50%,to{opacity:1}}.pet-moment-grow .pet-moment-old{transform-origin:50% 94%;animation:pet-grow-leave .42s var(--ease-out) .2s both}.pet-moment-grow .pet-moment-new{transform-origin:50% 94%;animation:pet-arrive .48s var(--ease-out) .32s both}@keyframes pet-grow-leave{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(1.06)}}@keyframes pet-arrive{0%{opacity:0;transform:scale(.9)}60%{opacity:1;transform:scale(1.03)}to{opacity:1;transform:scale(1)}}.pet-feed .pet-pop{animation:pet-pop .32s var(--ease-out) both;animation-delay:calc(var(--pop-base, .5s) + var(--i, 0) * 60ms)}@keyframes pet-pop{0%{opacity:0;transform:translateY(6px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}@media(prefers-reduced-motion:reduce){.pet-portrait:active{transform:none}.pet-moment *,.pet-feed .pet-pop{animation-delay:0s!important}}.pet-name-btn{min-height:44px}.pet-name-form{display:grid;gap:8px;width:100%;max-width:320px}.pet-name-label{font-weight:800;text-align:center}.pet-name-form .field{text-align:center;font-size:1.25rem;font-weight:700}.pet-name-error{margin:0;color:var(--danger-text);text-align:center}.pet-name-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.house-wrap{display:grid;gap:10px;width:100%}.house{position:relative;width:100%;aspect-ratio:360 / 360;border-radius:20px;overflow:hidden;background:var(--house-wall)}.house-scene{position:absolute;inset:0;width:100%;height:100%}.house-item{position:absolute;aspect-ratio:1;min-width:44px;translate:-50% -50%;display:grid;place-items:center;padding:0;border:0;border-radius:999px;background:none;cursor:pointer;transition:transform .14s var(--ease-out)}.house-item svg{width:74%;height:auto}.house-item:active{transform:scale(.92)}.house-item.is-empty{border:2px dashed color-mix(in srgb,var(--text-3) 70%,transparent);background:color-mix(in srgb,var(--surface) 45%,transparent)}.house-item.is-empty svg{opacity:.28;filter:grayscale(1)}.house-item.is-picked{outline:3px solid var(--brand);outline-offset:1px}.house-item.is-used svg{animation:house-item-use .6s var(--ease-out) 2}@keyframes house-item-use{0%,to{transform:translateY(0) rotate(0)}40%{transform:translateY(-12%) rotate(-8deg)}70%{transform:translateY(0) rotate(6deg)}}.house-pet{position:absolute;left:0;bottom:1%;transition-property:transform;transition-timing-function:var(--ease-in-out);z-index:2}.house-pet-btn{display:block;width:100%;padding:0;border:0;background:none;cursor:pointer;line-height:0}.house-pet-flip,.house-pet-body{display:block;transition:transform .2s var(--ease-out)}.house-pet-body{transform-origin:50% 94%}.house-pet-art{width:100%;height:auto}.house-pet[data-walking] .house-pet-body{animation:house-walk .38s var(--ease-in-out) infinite}@keyframes house-walk{0%,to{transform:translateY(0) rotate(0)}25%{transform:translateY(-5%) rotate(-3deg)}50%{transform:translateY(0) rotate(0)}75%{transform:translateY(-5%) rotate(3deg)}}.house-move-hop,.house-move-tickle{animation:pet-hop .72s var(--ease-out) 2}.house-move-wiggle{animation:house-wiggle .7s var(--ease-in-out) 2}.house-move-look{animation:house-look 1.6s var(--ease-in-out) both}.house-move-sleep{animation:house-sleep 2.4s var(--ease-in-out) both}@keyframes house-wiggle{0%,to{transform:rotate(0)}25%{transform:rotate(-7deg)}75%{transform:rotate(7deg)}}@keyframes house-look{0%,to{transform:rotate(0) translateY(0)}30%,70%{transform:rotate(-6deg) translateY(-4%)}}@keyframes house-sleep{0%,to{transform:scale(1)}20%,80%{transform:scale(1.04,.9)}}.house-bubble{position:absolute;left:50%;bottom:100%;translate:-50% 0;padding:6px 12px;border-radius:14px;background:var(--surface);color:var(--text);font-weight:800;font-size:.95rem;white-space:nowrap;box-shadow:0 2px 8px #0000001f;animation:pet-pop .22s var(--ease-out) both}.house-zzz{position:absolute;right:4%;top:6%;font-weight:800;color:var(--brand-text);animation:pet-heart 1.2s var(--ease-out) 2 both}.house-hearts{position:absolute;left:0;top:-10%;width:100%;overflow:visible;pointer-events:none}.house-panel{min-height:64px;padding:12px 14px;border-radius:18px;background:var(--surface)}.house-panel-row{display:flex;align-items:center;gap:12px}.house-empty-icon svg{opacity:.35;filter:grayscale(1)}@media(prefers-reduced-motion:reduce){.house-bubble,.house-zzz{animation-delay:0s!important}}.pet-profile-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px}.pet-profile-who{display:flex;flex-direction:column;align-items:flex-end;font-size:.9rem;line-height:1.3}.pet-talk{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;min-width:0}.pet-corner{display:grid;place-items:center;width:64px;height:64px;padding:0;border:0;border-radius:999px;background:var(--brand-soft);cursor:pointer;transition:transform .14s var(--ease-out)}.pet-corner:active{transform:scale(.94)}.pet-talk-bubble{position:relative;display:flex;align-items:center;gap:6px;min-height:48px;padding:8px 10px 8px 14px;border:0;border-radius:16px 16px 16px 4px;background:var(--warning-soft);color:var(--text);font:inherit;font-weight:700;line-height:1.45;text-align:left;cursor:pointer}.pet-talk-text{flex:1;min-width:0;text-wrap:pretty;animation:pet-pop .22s var(--ease-out) both}.pet-talk-more{flex:none;color:var(--text-2);font-size:.8rem}.pet-coins-today{margin-left:auto;font-size:.85rem;font-weight:600}.pet-blanket{fill:#a9cdef}.pet-blanket-stripe{stroke:#fff;opacity:.7}.pet-basket{fill:#d9a066}.pet-basket-weave{stroke:#b87c42}.pet-zzz{fill:var(--brand-text);font-weight:800;font-size:16px}.pet-zzz-big{font-size:22px}.house-item.is-bought svg{width:100%}.house-food{position:absolute;left:50%;top:8%;width:34%;translate:-50% 0;animation:house-food 3s var(--ease-out) both}.house-food svg{width:100%;height:auto}@keyframes house-food{0%{opacity:0;transform:translateY(-20%) scale(.9)}15%,55%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(20%) scale(.6)}}.house-corner{position:absolute;top:3%;left:3%;z-index:3}.house-shop-btn{display:flex;align-items:center;gap:6px;min-height:44px;padding:0 14px 0 10px;border:0;border-radius:999px;background:var(--brand);color:var(--on-brand);font:inherit;font-weight:800;box-shadow:0 2px 8px #0000002e;cursor:pointer;transition:transform .14s var(--ease-out)}.house-shop-btn:active{transform:scale(.96)}.house-shop-label{padding-left:6px;border-left:1.5px solid color-mix(in srgb,var(--on-brand) 45%,transparent)}.shop-overlay{place-items:end center;padding:0;animation:shop-fade .2s var(--ease-out) both}.shop-sheet{display:grid;gap:14px;width:100%;max-width:560px;max-height:92vh;max-height:92dvh;overflow-y:auto;padding:16px 16px calc(16px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0;background:var(--surface);box-shadow:var(--shadow);outline:none;animation:shop-rise .32s var(--ease-drawer) both}@keyframes shop-rise{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes shop-fade{0%{opacity:0}to{opacity:1}}.shop-head{display:flex;align-items:center;gap:10px}.shop-wallet{display:flex;align-items:center;gap:6px;font-size:1.3rem;font-weight:800}.shop-rule{padding:4px 10px;border-radius:999px;background:var(--warning-soft);font-weight:700;font-size:.9rem}.shop-close{margin-left:auto;min-width:44px;padding:0 10px}.shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(max(96px,6em),1fr));gap:8px}.shop-item{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 6px 8px;border-radius:16px;background:var(--surface-2);text-align:center}.shop-name{font-weight:800}.shop-btn{display:flex;align-items:center;justify-content:center;gap:2px;width:100%;min-height:44px;padding:0 6px;white-space:nowrap;font-weight:800}.shop-item .btn:not(.btn-primary){background:var(--surface)}.shop-item .btn.is-on{outline:2px solid var(--brand);outline-offset:-2px}.shop-short,.shop-done{border-radius:12px;font-size:.9rem;color:var(--text-2)}.shop-done{color:var(--success-text)}.avatar-pick{display:grid;place-items:center;min-width:44px;min-height:44px;border-radius:999px}.house-tabs{margin-bottom:-4px}.yard-locked{display:flex;flex-direction:column;align-items:center;gap:10px;padding:20px 16px;border-radius:20px;background:var(--surface)}.shop-rates{margin:0;color:var(--text-2);font-size:.9rem;line-height:1.6}.shop-rates b{color:var(--text)}.shop-confirm{display:grid;justify-items:center;gap:12px;text-align:center}.shop-confirm .checkout-actions{width:100%}.checkout-ask{display:grid;justify-items:start;gap:4px}.checkout-boss{padding:2px 10px;font-size:.85rem;border-radius:999px;background:var(--warning-soft);color:var(--warning-text);font-weight:800}.shop-goal{display:flex;align-items:center;gap:12px;padding:12px;border-radius:18px;background:var(--warning-soft)}.shop-goal-action{flex:none;width:104px}.shop-item{position:relative}.shop-item.is-sale{outline:2px solid var(--ill-red);outline-offset:-2px}.shop-sale{position:absolute;top:6px;right:6px;padding:2px 6px;border-radius:999px;background:var(--ill-red);color:#fff;font-size:.72rem;font-weight:800}.shop-was{font-size:.8rem;color:var(--text-2)}.checkout{display:grid;gap:12px}.checkout-head{display:flex;align-items:center;gap:12px}.checkout-question{margin:0;font-size:1.15rem;font-weight:800;line-height:1.5;text-wrap:pretty}.checkout-visual{justify-content:center}.checkout-answer{display:grid;place-items:center;min-height:56px;border-radius:16px;background:var(--surface-2);font-size:1.3rem;font-weight:800}.checkout-entry{font-size:1.8rem;font-variant-numeric:tabular-nums}.checkout-message{margin:0;text-align:center;font-weight:700;color:var(--warning-text)}.checkout-paid{display:grid;gap:8px;justify-items:center;min-height:64px;font-weight:800}.checkout-pieces{flex-wrap:wrap;justify-content:center}.checkout-coins{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.checkout-coin{display:grid;place-items:center;min-width:64px;min-height:64px;border-radius:16px;background:var(--surface-2);transition:transform .14s var(--ease-out)}.checkout-coin:active{transform:scale(.94)}.checkout-coin:disabled{opacity:.5}.checkout-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.level-pet-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.level-coin-badge{padding:1px 8px;border-radius:999px;background:var(--brand-soft);color:var(--brand-text);font-size:.75rem;font-weight:800}.wp-word{display:inline-block;max-width:100%}
