:root{--text:#6b6375;--text-h:#08060d;--bg:#fff;--border:#e5e4e7;--code-bg:#f4f3ec;--accent:#aa3bff;--accent-bg:#aa3bff1a;--accent-border:#aa3bff80;--social-bg:#f4f3ec80;--shadow:#0000001a 0 10px 15px -3px, #0000000d 0 4px 6px -2px;--sans:system-ui, "Segoe UI", Roboto, sans-serif;--heading:system-ui, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, Consolas, monospace;font:18px/145% var(--sans);letter-spacing:.18px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}@media (width<=1024px){:root{font-size:16px}}@media (prefers-color-scheme:dark){:root{--text:#9ca3af;--text-h:#f3f4f6;--bg:#16171d;--border:#2e303a;--code-bg:#1f2028;--accent:#c084fc;--accent-bg:#c084fc26;--accent-border:#c084fc80;--social-bg:#2f303a80;--shadow:#0006 0 10px 15px -3px, #00000040 0 4px 6px -2px}#social .button-icon{filter:invert()brightness(2)}}body{margin:0}#root{text-align:center;border-inline:1px solid var(--border);box-sizing:border-box;flex-direction:column;width:1126px;max-width:100%;min-height:100svh;margin:0 auto;display:flex}h1,h2{font-family:var(--heading);color:var(--text-h);font-weight:500}h1{letter-spacing:-1.68px;margin:32px 0;font-size:56px}@media (width<=1024px){h1{margin:20px 0;font-size:36px}}h2{letter-spacing:-.24px;margin:0 0 8px;font-size:24px;line-height:118%}@media (width<=1024px){h2{font-size:20px}}p{margin:0}code,.counter{font-family:var(--mono);color:var(--text-h);border-radius:4px;display:inline-flex}code{background:var(--code-bg);padding:4px 8px;font-size:15px;line-height:135%}*{box-sizing:border-box;margin:0;padding:0}body{background:linear-gradient(135deg,#a8edea 0%,#fed6e3 100%);min-height:100vh;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif}#root{width:100%;min-height:100vh}.app-shell{flex-direction:column;min-height:100vh;display:flex}.app-content{flex:1;justify-content:center;align-items:flex-start;padding:24px 16px 40px;display:flex}.toolbar{z-index:100;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#fff;background:#1e293bf2;align-items:center;gap:1rem;height:56px;padding:0 1.25rem;display:flex;position:sticky;top:0;box-shadow:0 2px 8px #00000026}.toolbar-brand{white-space:nowrap;font-size:1.15rem;font-weight:700}.toolbar-progress{text-align:center;color:#94a3b8;flex:1;font-size:.88rem}.toolbar-progress strong{color:#e2e8f0}.score-correct{color:#55efc4!important}.score-wrong{color:#ff7675!important}.toolbar-game-progress{vertical-align:middle;background:#ffffff1f;border-radius:3px;width:160px;height:6px;margin-right:.5rem;display:inline-block;overflow:hidden}.toolbar-game-fill{background:#7c3aed;border-radius:3px;height:100%;transition:width .3s}.level-select{text-align:center;background:#fff;border-radius:24px;width:100%;max-width:560px;padding:48px 40px;box-shadow:0 20px 60px #00000026}.level-select h1{color:#2d3436;margin-bottom:8px;font-size:2.4rem}.level-select .subtitle{color:#636e72;margin-bottom:36px;font-size:1.1rem}.level-buttons{flex-direction:column;gap:16px;display:flex}.level-btn{cursor:pointer;text-align:left;color:#fff;border:none;border-radius:16px;align-items:center;gap:16px;padding:20px 28px;font-size:1.2rem;font-weight:600;transition:transform .15s,box-shadow .15s;display:flex}.level-btn:hover{transform:translateY(-2px);box-shadow:0 8px 24px #0003}.level-btn.lv1{background:linear-gradient(135deg,#74b9ff,#0984e3)}.level-btn.lv2{background:linear-gradient(135deg,#55efc4,#00b894)}.level-btn.lv3{background:linear-gradient(135deg,#fd79a8,#d63031)}.level-btn.lv4{background:linear-gradient(135deg,#a29bfe,#6c5ce7)}.level-btn.lv-sub{background:linear-gradient(135deg,#fd79a8,#e17055)}.level-btn.lv-seq{background:linear-gradient(135deg,#55efc4,#0984e3)}.level-btn .lv-icon{text-align:center;white-space:nowrap;flex-shrink:0;min-width:80px;font-size:1.6rem}.level-btn .lv-desc{opacity:.9;margin-top:2px;font-size:.85rem;font-weight:400}.game-screen{background:#fff;border-radius:24px;width:100%;max-width:680px;padding:36px 48px;box-shadow:0 20px 60px #00000026}.game-header{justify-content:space-between;align-items:center;margin-bottom:28px;display:flex}.back-btn{cursor:pointer;color:#636e72;background:#f0f0f0;border:none;border-radius:10px;padding:8px 16px;font-size:.95rem;transition:background .15s}.back-btn:hover{background:#e0e0e0}.level-badge{color:#fff;border-radius:20px;padding:6px 14px;font-size:1rem;font-weight:700}.level-badge.lv1{background:#0984e3}.level-badge.lv2{background:#00b894}.level-badge.lv3{background:#d63031}.level-badge.lv4{background:#6c5ce7}.score-display{color:#636e72;font-size:1rem}.score-display span{color:#2d3436;font-weight:700}.progress-bar{background:#f0f0f0;border-radius:8px;height:8px;margin-bottom:32px;overflow:hidden}.progress-fill{background:linear-gradient(90deg,#74b9ff,#0984e3);border-radius:8px;height:100%;transition:width .4s}.question-area{text-align:center;margin-bottom:32px}.question-text{color:#2d3436;letter-spacing:2px;font-size:3.5rem;font-weight:700}.column-subtraction{flex-direction:column;align-items:center;margin-bottom:32px;display:flex}.column-numbers{background:#f8f9fa;border:3px solid #dfe6e9;border-radius:12px;padding:20px 32px;display:inline-block}.column-row{color:#2d3436;align-items:center;height:72px;font-family:Courier New,monospace;font-size:2.8rem;font-weight:700;line-height:1;display:flex}.col-digit{flex-shrink:0;justify-content:center;align-items:center;width:64px;height:72px;display:flex}.col-sign{color:#636e72}.col-sign-placeholder{visibility:hidden}.column-line{border:none;border-top:3px solid #2d3436;margin:12px 0}.column-answer-row{align-items:center;display:flex}.col-input{text-align:center;color:#2d3436;background:#fff;border:3px solid #dfe6e9;border-radius:8px;outline:none;width:64px;height:64px;font-family:Courier New,monospace;font-size:2.2rem;font-weight:700;transition:border-color .2s}.col-input:focus{border-color:#74b9ff}.col-input.correct{background:#d4f7ee;border-color:#00b894}.col-input.wrong{background:#ffe4e4;border-color:#d63031}.borrow-annotation-row{height:36px!important}.borrow-annotation-cell{font-size:0;position:relative;height:36px!important}.borrow-strikethrough{color:#d63031;font-size:1rem;font-weight:700;text-decoration:line-through;position:absolute;top:0;left:50%;transform:translate(-50%)}.borrow-plus10{color:#0984e3;white-space:nowrap;font-family:Segoe UI,sans-serif;font-size:.95rem;font-weight:700;position:absolute;top:0;left:50%;transform:translate(-50%)}.borrow-clickable{cursor:pointer;border-radius:8px;transition:background .15s}.borrow-clickable:hover{background:#fff3cd}.is-borrowed{background:#ffe8e8!important}.is-received{background:#e8f4fd!important}.borrowed-reduced{color:#d63031;font-weight:700}.borrowed-received{color:#0984e3;font-weight:700}.column-subtraction-layout{justify-content:center;align-items:center;gap:24px;display:flex}.borrow-sum-panel{background:#eaf4ff;border:2px solid #0984e3;border-radius:16px;flex-direction:column;justify-content:center;align-items:center;min-width:130px;padding:18px 20px;display:flex}.borrow-sum-equation{align-items:center;gap:8px;display:flex}.borrow-sum-eq-part{color:#2d3436;font-size:2rem;font-weight:700}.borrow-sum-eq-op{color:#636e72;white-space:nowrap;font-size:1.4rem;font-weight:600}.borrow-sum-eq-input{text-align:center;color:#0984e3;background:#fff;border:3px solid #0984e3;border-radius:12px;outline:none;width:56px;height:56px;font-size:1.6rem;font-weight:700}.borrow-hint-tip{text-align:center;color:#b2bec3;margin-top:10px;font-size:.82rem}.col-label-row{height:28px!important}.col-label{color:#b2bec3;text-transform:uppercase;letter-spacing:.5px;font-weight:600;height:28px!important;font-family:Segoe UI,sans-serif!important;font-size:.7rem!important}.answer-area{flex-direction:column;align-items:center;gap:24px;margin-bottom:24px;display:flex}.question-inline{align-items:center;gap:16px;display:flex}.question-part{color:#2d3436;white-space:nowrap;font-size:3rem;font-weight:700}.answer-input-inline{text-align:center;color:#2d3436;border:3px solid #dfe6e9;border-radius:16px;outline:none;width:100px;height:80px;font-size:2.8rem;font-weight:700;transition:border-color .2s}.answer-input-inline:focus{border-color:#74b9ff}.answer-input-inline.correct{background:#d4f7ee;border-color:#00b894}.answer-input-inline.wrong{background:#ffe4e4;border-color:#d63031}.answer-input{text-align:center;color:#2d3436;border:3px solid #dfe6e9;border-radius:16px;outline:none;width:160px;height:72px;font-size:2.5rem;font-weight:700;transition:border-color .2s}.answer-input:focus{border-color:#74b9ff}.answer-input.correct{background:#d4f7ee;border-color:#00b894}.answer-input.wrong{background:#ffe4e4;border-color:#d63031}.check-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#74b9ff,#0984e3);border:none;border-radius:14px;padding:14px 40px;font-size:1.2rem;font-weight:700;transition:transform .15s,box-shadow .15s}.check-btn:hover{transform:translateY(-2px);box-shadow:0 8px 20px #0984e366}.check-btn:disabled{opacity:.5;cursor:default;box-shadow:none;transform:none}.feedback{text-align:center;border-radius:12px;margin-bottom:20px;padding:16px;font-size:1.3rem;font-weight:600}.feedback.correct{color:#00b894;background:#d4f7ee}.feedback.wrong{color:#d63031;background:#ffe4e4}.next-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#55efc4,#00b894);border:none;border-radius:14px;margin:0 auto;padding:12px 36px;font-size:1.1rem;font-weight:700;transition:transform .15s;display:block}.next-btn:hover{transform:translateY(-2px)}.mode-toggle{justify-content:center;gap:10px;margin-bottom:28px;display:flex}.mode-btn{cursor:pointer;color:#636e72;background:#fff;border:2px solid #dfe6e9;border-radius:20px;padding:8px 20px;font-size:.9rem;transition:all .15s}.mode-btn.active{color:#0984e3;background:#e8f4fd;border-color:#0984e3;font-weight:600}.summary{text-align:center;background:#fff;border-radius:24px;width:100%;max-width:440px;position:relative;box-shadow:0 20px 60px #00000026}.summary--perfect{box-shadow:0 20px 60px #6c5ce74d}.fireworks-canvas{pointer-events:none}.fireworks-canvas--fullscreen{z-index:999;width:100vw;height:100vh;position:fixed;inset:0}.summary-content{z-index:2;padding:48px 40px;position:relative}.summary h2{color:#2d3436;margin-bottom:8px;font-size:2rem}.summary .emoji-big{margin-bottom:16px;font-size:5rem;line-height:1;display:block}.summary .result-text{color:#636e72;margin-bottom:32px;font-size:1.2rem}.summary .result-text strong{color:#2d3436;font-size:1.5rem}.summary-buttons{flex-direction:column;gap:12px;display:flex}.retry-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#74b9ff,#0984e3);border:none;border-radius:14px;padding:14px;font-size:1.1rem;font-weight:700;transition:transform .15s}.retry-btn:hover{transform:translateY(-2px)}.home-btn{color:#636e72;cursor:pointer;background:#f0f0f0;border:none;border-radius:14px;padding:14px;font-size:1rem;transition:background .15s}.home-btn:hover{background:#e0e0e0}.col-action-row{flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;margin-top:16px;display:flex}.hint-show-btn{color:#856404;cursor:pointer;background:#fff3cd;border:2px solid #ffc107;border-radius:12px;padding:10px 20px;font-size:1rem;font-weight:600;transition:background .15s}.hint-show-btn:hover{background:#ffe69c}.hint-box{text-align:center;background:#fffbea;border:2px solid #ffc107;border-radius:16px;margin-top:20px;padding:24px 20px 20px}.hint-title{color:#856404;margin-bottom:20px;font-size:1.1rem;font-weight:700}.hint-visual{background:#fff;border:2px solid #e0d5b0;border-radius:12px;align-items:flex-end;gap:0;margin-bottom:20px;padding:12px 20px 16px;display:inline-flex}.hint-col{flex-direction:column;align-items:center;width:64px;display:flex}.hint-cell{color:#2d3436;justify-content:center;align-items:center;width:64px;height:52px;font-family:Courier New,monospace;font-size:2.2rem;font-weight:700;display:flex}.hint-cell-sign{color:#636e72;width:48px;font-size:2rem}.hint-cell-annotation{height:28px;font-family:inherit;font-size:.95rem;font-weight:700}.borrow-cross{color:#d63031;font-size:1.1rem;text-decoration:line-through;position:relative}.borrow-add{color:#0984e3;font-size:1rem;font-weight:700}.hint-separator{border-top:3px solid #2d3436;width:100%;height:4px}.hint-cell-result{color:#00b894;height:52px}.hl-col{background:#fff3cd;border-radius:8px}.hl-borrow-calc{background:#d4f7ee;border-radius:8px;outline:2px solid #00b894}.hint-text{color:#4a4a4a;margin-bottom:16px;font-size:1rem;line-height:1.5}.hint-next-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#fdcb6e,#e17055);border:none;border-radius:12px;padding:10px 28px;font-size:1rem;font-weight:700;transition:transform .15s}.hint-next-btn:hover{transform:translateY(-2px)}.hint-done{color:#00b894;font-size:1rem;font-weight:600}.seq-instruction{text-align:center;color:#636e72;margin-bottom:20px;font-size:1rem}.game-screen--seq{max-width:960px}.seq-row{flex-wrap:nowrap;justify-content:center;align-items:center;gap:4px;margin-bottom:8px;padding-bottom:4px;display:flex;overflow-x:auto}.seq-card{border-radius:12px;justify-content:center;align-items:center;min-width:68px;height:62px;padding:0 8px;font-size:1.15rem;font-weight:700;display:flex}.seq-given{color:#2d3436;background:linear-gradient(135deg,#dfe6e9,#b2bec3)}.seq-arrow{color:#b2bec3;flex-shrink:0;padding:0 2px;font-size:1.2rem}.seq-input{text-align:center;color:#2d3436;border:3px solid #dfe6e9;border-radius:12px;outline:none;width:68px;min-width:68px;height:62px;padding:0 4px;font-size:1.3rem;font-weight:700;transition:border-color .2s}.seq-input:focus{border-color:#74b9ff}.seq-input.correct{background:#d4f7ee;border-color:#00b894}.seq-input.wrong{background:#ffe4e4;border-color:#d63031}.seq-correct-row{flex-wrap:nowrap;justify-content:center;gap:4px;margin-top:6px;display:flex;overflow-x:auto}.seq-correct-val{text-align:center;color:#00b894;min-width:68px;font-size:1rem;font-weight:700}.seq-step-reveal{text-align:center;color:#856404;background:#fffbea;border:2px solid #ffc107;border-radius:12px;margin-top:14px;padding:12px 20px;font-size:1rem}.seq-step-reveal strong{color:#d63031;font-size:1.3rem}.add-sign{color:#00b894}.level-btn.lv-add{background:linear-gradient(135deg,#55efc4,#00b894)}.carry-row-inputs{height:44px!important}.carry-input-cell{justify-content:center;align-items:flex-end;display:flex;height:44px!important}.carry-box-input{text-align:center;color:#6c5ce7;background:#f8f5ff;border:2px dashed #a29bfe;border-radius:6px;outline:none;width:36px;height:32px;font-size:1rem;font-weight:700;transition:border-color .15s,background .15s}.carry-box-input:focus{background:#ede9fe;border-color:#6c5ce7}.carry-box-input:empty::placeholder{color:#d0c9f5}.carry-box-input.carry-ok{color:#00b894;background:#d4f7ee;border-color:#00b894}.carry-box-input.carry-wrong{background:#ffe4e4;border-color:#d63031}.carry-box-input.carry-missing{background:#fffbea;border-color:#ffc107}.home-screen{width:100%;max-width:960px}.home-title{color:#1e293b;margin-bottom:1rem;font-size:1.6rem;font-weight:700}.lang-select{color:#fff;cursor:pointer;background:#ffffff26;border:1px solid #ffffff40;border-radius:8px;outline:none;padding:6px 12px;font-size:.88rem}.lang-select:hover{background:#ffffff40}.lang-select option{color:#fff;background:#1e293b}.filter-bar{flex-wrap:wrap;align-items:center;gap:.5rem;margin-bottom:1.5rem;display:flex}.filter-section{flex-wrap:wrap;gap:.4rem;display:flex}.filter-divider{background:#1e293b33;align-self:center;width:1px;height:28px;margin:0 .25rem}.filter-chip{cursor:pointer;color:#475569;white-space:nowrap;background:#fff;border:2px solid #1e293b33;border-radius:999px;padding:.3rem .85rem;font-size:.83rem;font-weight:600;transition:all .15s}.filter-chip:hover{background:#f8fafc;border-color:#94a3b8}.filter-chip.active{color:#fff;background:#1e293b;border-color:#1e293b}.home-empty{color:#94a3b8;text-align:center;padding:3rem 0;font-size:1rem}.home-footer{text-align:center;color:#94a3b8;margin-top:2.5rem;font-size:.75rem}.home-footer-sep{margin:0 .4rem}.home-footer-link{color:#94a3b8;text-underline-offset:2px;text-decoration:underline}.home-footer-link:hover{color:#64748b}.home-footer-claude{align-items:center;gap:3px;display:inline-flex}.home-footer-claude-icon{color:#c084fc;font-size:.7rem}.task-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem;display:grid}.task-card{cursor:pointer;text-align:left;color:#fff;border:none;border-radius:16px;flex-direction:column;gap:.15rem;min-height:120px;padding:1.1rem 1rem 1rem;transition:transform .15s,box-shadow .15s;display:flex}.task-card:hover{transform:translateY(-3px);box-shadow:0 10px 28px #0003}.task-cat-label{text-transform:uppercase;letter-spacing:.06em;opacity:.8;font-size:.7rem;font-weight:700}.task-title{margin-top:.3rem;font-size:.95rem;font-weight:700;line-height:1.3}.task-desc{opacity:.85;font-size:.8rem}.task-stars{margin-top:auto;padding-top:.5rem;font-size:.82rem}.cat-add{background:linear-gradient(135deg,#55efc4,#00b894)}.cat-sub{background:linear-gradient(135deg,#fd79a8,#d63031)}.cat-seq{background:linear-gradient(135deg,#74b9ff,#0984e3)}.cat-mul{background:linear-gradient(135deg,#fdcb6e,#e17055)}.cat-units{background:linear-gradient(135deg,#a29bfe,#6c5ce7)}.mul-question{flex-direction:column;align-items:center;gap:24px;display:flex}.mul-equation{align-items:center;gap:16px;display:flex}.mul-num{color:#2d3436;font-size:3rem;font-weight:700}.mul-op{color:#636e72;font-size:2.2rem;font-weight:400}.mul-input{text-align:center;color:#2d3436;border:3px solid #dfe6e9;border-radius:16px;outline:none;width:80px;height:80px;font-size:2rem;font-weight:700;transition:border-color .2s}.mul-input:focus{border-color:#74b9ff}.mul-input.correct{background:#d4f7ee;border-color:#00b894}.mul-input.wrong{background:#ffe4e4;border-color:#d63031}.cat-disabled{opacity:.45;cursor:not-allowed;box-shadow:none!important;transform:none!important}.dialog-backdrop{z-index:200;background:#00000073;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.dialog{background:#fff;border-radius:20px;flex-direction:column;gap:22px;min-width:340px;max-width:90vw;padding:32px 36px;display:flex;box-shadow:0 8px 40px #0000002e}.dialog-title{color:#2d3436;text-align:center;margin:0;font-size:1.4rem;font-weight:700}.dialog-field{flex-direction:column;gap:8px;display:flex}.dialog-label{color:#636e72;text-transform:uppercase;letter-spacing:.04em;font-size:.9rem;font-weight:600}.dialog-options{flex-wrap:wrap;gap:8px;display:flex}.dialog-opt-btn{color:#2d3436;cursor:pointer;background:#f8f9fa;border:2px solid #dfe6e9;border-radius:10px;padding:8px 16px;font-size:1rem;font-weight:600;transition:all .15s}.dialog-opt-btn:hover{background:#ebf5ff;border-color:#74b9ff}.dialog-opt-btn.selected{color:#fff;background:#0984e3;border-color:#0984e3}.dialog-actions{justify-content:flex-end;gap:12px;margin-top:4px;display:flex}.dialog-cancel-btn{color:#636e72;cursor:pointer;background:#f8f9fa;border:2px solid #dfe6e9;border-radius:10px;padding:10px 22px;font-size:1rem;font-weight:600}.dialog-start-btn{color:#fff;cursor:pointer;background:#0984e3;border:none;border-radius:10px;padding:10px 28px;font-size:1rem;font-weight:700;transition:background .15s}.dialog-start-btn:hover{background:#0773c5}.toolbar-timer{color:#2d3436;background:#f0f4f8;border-radius:8px;margin-left:8px;padding:2px 10px;font-size:1rem;font-weight:700}.toolbar-timer--urgent{color:#d63031;background:#ffe4e4;animation:1s infinite pulse}@keyframes pulse{0%,to{opacity:1}50%{opacity:.6}}.game-screen--measure{flex-direction:column;align-items:center;gap:16px;display:flex}.measure-instruction{color:#636e72;margin:0;font-size:1rem}.measure-equation{flex-wrap:wrap;justify-content:center;align-items:center;gap:16px;margin:16px 0;display:flex}.measure-given{align-items:baseline;gap:6px;display:flex}.measure-number{color:#2d3436;font-size:3rem;font-weight:700}.measure-unit{color:#636e72;font-size:1.4rem;font-weight:600}.measure-equals{color:#636e72;font-size:2.5rem;font-weight:300}.measure-answer-group{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;display:flex}.measure-input{text-align:center;color:#2d3436;border:3px solid #dfe6e9;border-radius:16px;outline:none;width:130px;height:90px;font-size:2.6rem;font-weight:700;transition:border-color .2s}.measure-input:focus{border-color:#74b9ff}.measure-input.correct{background:#d4f7ee;border-color:#00b894}.measure-input.wrong{background:#ffe4e4;border-color:#d63031}.measure-input:disabled{opacity:.7}.measure-input.wide{width:160px}.measure-correct-answer{color:#00b894;background:#d4f7ee;border-radius:10px;padding:6px 16px;font-size:1.1rem;font-weight:600}.cat-measure{background:linear-gradient(135deg,#a29bfe,#6c5ce7)}
