:root{--bg: #f0f7ff;--surface: #ffffff;--text: #1e293b;--muted: #64748b;--primary: #3b82f6;--primary-dark: #2563eb;--right: #16a34a;--right-bg: #dcfce7;--wrong: #dc2626;--wrong-bg: #fee2e2;--add: #f97316;--subtract: #8b5cf6;--multiply: #10b981;--divide: #ec4899;--fractions: #0284c7;--decimals: #ca8a04;--wordProblems: #4f46e5;--placeValue: #2563eb;--time: #0d9488;--money: #15803d;--measurement: #b45309;--geometry: #db2777;--graphs: #7c3aed;--reading: #e11d48;--grammar: #0891b2;--spelling: #c026d3;--radius: 20px;--shadow: 0 4px 14px rgba(30, 41, 59, .08);font-family:Nunito,ui-rounded,SF Pro Rounded,system-ui,-apple-system,Segoe UI,sans-serif;color:var(--text);background:var(--bg);-webkit-tap-highlight-color:transparent}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%}body{background:var(--bg);overscroll-behavior:none;user-select:none;-webkit-user-select:none}button{font:inherit;color:inherit;cursor:pointer;border:none;background:none;touch-action:manipulation}button:disabled{cursor:default;opacity:.45}input{font:inherit;user-select:text;-webkit-user-select:text}.screen{min-height:100vh;min-height:100dvh;padding:max(16px,env(safe-area-inset-top)) 24px 32px;max-width:1100px;margin:0 auto}.screen.center{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;text-align:center}.title{font-size:clamp(28px,4vw,40px);margin:8px 0 16px;text-align:center}.subtitle{font-size:22px;margin:28px 0 12px}.muted{color:var(--muted)}.small{font-size:15px}.tiny{font-size:12px}.big{font-size:26px;font-weight:700;margin:0}.row{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.hello{font-size:22px;font-weight:700;text-align:center}.btn{min-height:56px;padding:0 28px;border-radius:999px;font-size:20px;font-weight:700}.btn.primary{background:var(--primary);color:#fff;box-shadow:var(--shadow)}.btn.primary:active{background:var(--primary-dark)}.btn.secondary{background:var(--surface);box-shadow:var(--shadow)}.btn.ghost{min-height:48px;padding:0 16px;font-size:18px;color:var(--primary-dark)}.btn.danger-link{color:var(--wrong);font-size:16px;min-height:44px}.profile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,220px));gap:20px;justify-content:center;width:100%}.profile-card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:24px 16px;display:flex;flex-direction:column;align-items:center;gap:6px}.profile-card:active{transform:scale(.97)}.profile-card.add{border:3px dashed #cbd5e1;box-shadow:none;background:transparent}.avatar{font-size:72px;line-height:1.1}.profile-name{font-size:24px;font-weight:800}.form{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:28px;width:min(520px,100%);display:flex;flex-direction:column;gap:22px;text-align:left}.field{display:flex;flex-direction:column;gap:8px;font-weight:700}.field input{min-height:56px;border:2px solid #cbd5e1;border-radius:14px;padding:0 16px;font-size:22px}.field input:focus{outline:none;border-color:var(--primary)}.segmented{display:flex;gap:8px}.segmented button{flex:1;min-height:56px;border-radius:14px;background:#f1f5f9;font-size:20px;font-weight:700}.segmented button.on{background:var(--primary);color:#fff}.avatar-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}.avatar-grid button{font-size:36px;aspect-ratio:1;border-radius:14px;background:#f1f5f9}.avatar-grid button.on{background:#dbeafe;outline:3px solid var(--primary)}.op-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.section-label{font-size:15px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:20px 0 10px}.op-card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px;display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;background:linear-gradient(var(--c) 0 10px,var(--surface) 10px);min-height:190px}.op-card:active{transform:scale(.98)}.op-add{--c: var(--add)}.op-subtract{--c: var(--subtract)}.op-multiply{--c: var(--multiply)}.op-divide{--c: var(--divide)}.op-fractions{--c: var(--fractions)}.op-decimals{--c: var(--decimals)}.op-wordProblems{--c: var(--wordProblems)}.op-placeValue{--c: var(--placeValue)}.op-time{--c: var(--time)}.op-money{--c: var(--money)}.op-measurement{--c: var(--measurement)}.op-geometry{--c: var(--geometry)}.op-graphs{--c: var(--graphs)}.op-reading{--c: var(--reading)}.op-grammar{--c: var(--grammar)}.op-spelling{--c: var(--spelling)}.op-symbol.wide{font-size:28px}.op-symbol.small.wide{font-size:18px}.next-up .op-symbol{background:var(--c)}.op-symbol{width:64px;height:64px;border-radius:16px;background:var(--c);color:#fff;font-size:40px;letter-spacing:-.02em;font-weight:800;display:grid;place-items:center}.op-symbol.small{width:48px;height:48px;font-size:32px;border-radius:12px;flex:none}.op-name{font-size:26px;font-weight:800}.op-level{font-size:18px;font-weight:700;color:var(--c)}.bar{width:100%;height:12px;background:#e2e8f0;border-radius:999px;overflow:hidden;margin-top:auto}.bar>span{display:block;height:100%;background:var(--c, var(--primary));border-radius:999px;transition:width .4s}.tag{align-self:flex-start;padding:4px 10px;border-radius:999px;background:#fef9c3;color:#854d0e;font-size:14px;font-weight:800}.tag.focus-tag{background:var(--c);color:#fff}.op-card.mastered{opacity:.75}.op-card.focus{outline:4px solid var(--c);outline-offset:2px}.next-up{width:100%;display:flex;align-items:center;gap:14px;padding:14px 18px;margin:0 0 8px;border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);text-align:left;font-size:20px;border:3px solid #bfdbfe}.next-up-go{margin-left:auto;font-size:32px;color:var(--primary)}.review-note{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;background:#fef9c3;color:#854d0e;border-radius:14px;padding:4px 6px 4px 16px;font-weight:700;margin:0 auto 6px}.review-note .btn.ghost{color:#854d0e;min-height:40px}.grade-ready{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;background:#dcfce7;border-radius:var(--radius);padding:16px 20px;margin-bottom:16px;font-size:18px;font-weight:700}.practice{display:flex;flex-direction:column}.dots{display:flex;gap:8px;justify-content:center;margin:4px 0 12px}.dot{width:18px;height:18px;border-radius:50%;background:#e2e8f0}.dot.right{background:var(--right)}.dot.wrong{background:var(--wrong)}.practice-body{flex:1;display:grid;grid-template-columns:1fr minmax(300px,380px);gap:32px;align-items:center}.problem-area{display:flex;flex-direction:column;align-items:center;gap:16px}.problem{display:flex;align-items:center;gap:20px;font-size:clamp(56px,9vw,96px);font-weight:800;font-variant-numeric:tabular-nums}.problem .sym{color:var(--muted)}.problem-stack{display:flex;flex-direction:column;align-items:center;gap:16px;max-width:100%}.story-text{font-size:clamp(22px,2.6vw,30px);font-weight:600;line-height:1.45;max-width:30ch;margin:0;text-wrap:pretty}.problem.story{font-size:clamp(44px,6vw,64px)}.blank{display:inline-flex;align-items:center;gap:12px}.unit{font-size:.5em;color:var(--muted);font-weight:700}.blank .unit:first-child{font-size:1em;color:inherit}.fraction{display:inline-flex;flex-direction:column;align-items:center;font-size:.72em;line-height:1.05;gap:4px}.fraction>span:not(.fraction-bar){display:flex;justify-content:center}.fraction-bar{align-self:stretch;height:6px;min-width:1.4ch;background:currentColor;border-radius:3px}.fraction .answer-box{padding:0 10px;min-width:1.8ch}.shaded{height:clamp(64px,9vw,96px);width:auto;max-width:100%}.shaded .part{fill:var(--surface);stroke:var(--text);stroke-width:4}.shaded .part.on{fill:var(--fractions)}.hint{margin:0}.btn.hint-btn{min-height:48px;font-size:18px;background:#fef9c3;color:#854d0e;box-shadow:var(--shadow)}.hint-panel{width:min(560px,100%);background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px 18px;display:flex;flex-direction:column;gap:10px;text-align:left;border:3px solid #fde68a}.hint-head{display:flex;align-items:flex-start;gap:8px}.hint-tabs{display:flex;flex-wrap:wrap;gap:8px;flex:1}.hint-tabs button{min-height:44px;padding:0 14px;border-radius:999px;background:#f1f5f9;font-size:16px;font-weight:700}.hint-tabs button.on{background:#854d0e;color:#fff}.hint-close{width:44px;height:44px;border-radius:50%;font-size:18px;color:var(--muted);flex:none}.hint-idea{margin:0;font-size:16px;color:var(--muted);font-weight:600}.hint-steps{margin:0;padding-left:24px;display:flex;flex-direction:column;gap:8px}.hint-steps li{display:flex;flex-direction:column;gap:2px;font-size:17px;line-height:1.35}.practice-body.with-hint{align-items:start}.with-hint .problem-area{gap:10px}.with-hint .problem,.with-hint .problem.long,.with-hint .problem.xlong{font-size:clamp(34px,5vw,56px)}.with-hint .story-text{font-size:20px}.with-hint .problem.vertical .rule{height:4px;margin:4px 0 8px}.hint-show{font-size:22px;font-weight:800;font-variant-numeric:tabular-nums;white-space:pre;color:var(--primary-dark);overflow-x:auto}.problem.long{font-size:clamp(44px,6.5vw,72px);gap:14px}.problem.xlong{font-size:clamp(34px,5vw,56px);gap:10px}.problem.vertical{flex-direction:column;align-items:flex-end;gap:0;line-height:1.15}.problem.vertical .num{display:flex;gap:24px}.problem.vertical .rule{width:100%;min-width:3.2ch;height:6px;background:var(--text);border-radius:3px;margin:8px 0 12px}.answer-box{font:inherit;line-height:1.15;min-width:2.2ch;padding:0 16px;border-radius:18px;border:4px solid #cbd5e1;background:var(--surface);text-align:center;color:var(--primary-dark);cursor:pointer}.answer-box.active{border-color:var(--primary);box-shadow:0 0 0 4px #bfdbfe}.answer-box.right{border-color:var(--right);background:var(--right-bg);color:var(--right)}.answer-box.wrong{border-color:var(--wrong);background:var(--wrong-bg);color:var(--wrong)}.feedback{font-size:26px;font-weight:800;margin:0;min-height:36px;text-align:center}.feedback.right{color:var(--right)}.feedback.wrong{color:var(--wrong)}.banner{padding:14px 22px;border-radius:16px;font-size:20px;font-weight:700;text-align:center}.banner.up{background:#fef9c3;animation:pop .4s ease-out}.banner.down{background:#e0f2fe}@keyframes pop{0%{transform:scale(.8);opacity:0}to{transform:scale(1);opacity:1}}.numpad{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.key{aspect-ratio:1.45;border-radius:20px;background:var(--surface);box-shadow:var(--shadow);font-size:40px;font-weight:800}.key:active:not(:disabled){transform:scale(.95);background:#e0ecff}.key.back{background:#f1f5f9;font-size:32px}.key.submit{grid-column:1 / -1;aspect-ratio:auto;min-height:72px;background:var(--right);color:#fff;font-size:30px}.key.point{font-size:56px;line-height:.6}.key.switch{background:#dbeafe;color:var(--primary-dark)}.stars{font-size:72px;color:#facc15;letter-spacing:8px}.tool-row{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}.tool-row:empty{display:none}.btn.scratch-btn{min-height:48px;font-size:18px;background:#e0f2fe;color:#075985;box-shadow:var(--shadow)}.scratch{width:100%;flex:1;min-height:280px;display:flex;flex-direction:column;gap:8px}.scratch-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.scratch-tools button{min-height:44px;padding:0 14px;border-radius:999px;background:var(--surface);box-shadow:var(--shadow);font-size:16px;font-weight:700}.scratch-tools button.on{background:#075985;color:#fff}.scratch-tools button:disabled{opacity:.4}.scratch-tools .scratch-close{margin-left:auto;width:44px;padding:0;color:var(--muted)}.scratch-paper{position:relative;flex:1;min-height:220px;border-radius:var(--radius);border:3px solid #bae6fd;background-color:#fff;background-image:linear-gradient(#e0f2fe 1px,transparent 1px),linear-gradient(90deg,#e0f2fe 1px,transparent 1px);background-size:32px 32px;overflow:hidden}.scratch-paper canvas{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;touch-action:none;cursor:crosshair}.scratch-paper canvas.erasing{cursor:cell}.practice-body.with-scratch{align-items:stretch}.with-scratch .numpad{align-self:start}.with-scratch .problem-area{gap:10px}.with-scratch .problem,.with-scratch .problem.long,.with-scratch .problem.xlong{font-size:clamp(34px,5vw,56px)}.with-scratch .problem.story{font-size:clamp(30px,4vw,44px)}.with-scratch .story-text{font-size:20px}.with-scratch .feedback{font-size:22px;min-height:30px}.scratch-image{display:block;border-radius:12px;border:2px solid #e2e8f0;background:#fff}.topbar-right{display:flex;align-items:center;gap:12px}.points-badge{position:relative;display:inline-flex;align-items:center;gap:4px;padding:6px 14px;border-radius:999px;background:#fef9c3;color:#854d0e;font-weight:800;font-size:20px;font-variant-numeric:tabular-nums}.points-pop{position:absolute;right:6px;top:-6px;color:var(--right);font-weight:800;font-size:22px;animation:float-up 1.2s ease-out forwards;pointer-events:none}@keyframes float-up{0%{transform:translateY(0);opacity:1}to{transform:translateY(-36px);opacity:0}}.points-note{position:absolute;top:100%;right:0;margin-top:4px;font-size:12px;white-space:nowrap;color:var(--muted)}.points-earned{font-size:22px;font-weight:800;color:#854d0e;margin:0}.shop-btn{display:inline-flex;align-items:center;gap:8px;padding:4px 14px 4px 4px;border-radius:999px;background:var(--surface);box-shadow:var(--shadow);font-size:18px;font-weight:800;color:var(--primary-dark);min-height:48px}.shop-wallet{display:flex;align-items:baseline;justify-content:center;gap:10px;flex-wrap:wrap;margin:4px 0 18px;font-size:20px;font-weight:700}.shop-wallet-n{font-size:36px;font-weight:800;color:#854d0e}.shop-why{margin-top:auto}.shop-banner{margin:8px auto 4px;max-width:640px}.shop-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.shop-item{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;min-height:230px}.shop-item.ready{outline:3px solid #fde68a}.shop-icon{font-size:56px;line-height:1}.shop-name{font-size:22px}.shop-price{font-weight:800;color:#854d0e;font-size:18px}.shop-item .btn{margin-top:auto;min-height:48px}.shop-confirm{margin-top:auto;display:flex;flex-direction:column;gap:8px;font-weight:700}.shop-confirm .btn{padding:0 20px}.waiting{display:flex;flex-wrap:wrap;gap:10px}.waiting-item{background:var(--surface);box-shadow:var(--shadow);border-radius:999px;padding:8px 16px;font-weight:700;font-size:18px;min-height:48px;display:inline-flex;align-items:center;gap:8px}.waiting-item.confirm{background:#fef9c3;color:#854d0e;padding-right:6px}.waiting-item.confirm .btn.ghost{min-height:40px;color:#854d0e}.child-tabs{margin:8px 0 16px}.parent-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:16px;align-items:start}.panel{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px;display:flex;flex-direction:column;gap:10px}.panel-title{margin:0;font-size:22px}.panel-sub{margin:8px 0 0;font-size:17px}.to-give{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.to-give li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid #f1f5f9}.btn.small-btn{min-height:44px;padding:0 16px;font-size:16px;white-space:nowrap;flex:none}.given ul{margin:6px 0 0;padding-left:18px}.level-picker{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}.level-picker button{display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 4px;border-radius:14px;background:#f1f5f9;min-height:64px}.level-picker button.on{background:var(--primary);color:#fff}.level-n{font-size:22px;font-weight:800}.level-name{font-size:13px;font-weight:700}.custom-tag{margin:0}.reward-table{width:100%;border-collapse:collapse;font-size:15px}.reward-table th,.reward-table td{text-align:left;padding:8px 6px;border-bottom:1px solid #f1f5f9;vertical-align:middle}.reward-table th{font-size:13px;color:var(--muted)}.reward-table tr.off td{opacity:.4}.reward-table input[type=number],.cap-edit input{width:70px;min-height:36px;border:2px solid #cbd5e1;border-radius:8px;padding:0 6px;font-size:15px}.reward-table select{min-height:36px;border-radius:8px;border:2px solid #cbd5e1;font-size:15px}.reward-table input[type=checkbox]{width:22px;height:22px}.cap-edit{font-size:15px;font-weight:600}.row.left{justify-content:flex-start}.pin-dots{display:flex;gap:16px}.pin-dots span{width:22px;height:22px;border-radius:50%;border:3px solid var(--primary)}.pin-dots span.on{background:var(--primary)}.pin-pad{width:min(360px,100%)}.device-backup{margin-top:16px}.file-btn{display:inline-flex;align-items:center;cursor:pointer}.restore-confirm{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#fef9c3;border-radius:14px;padding:8px 12px;font-weight:700}.sign-in-logo{font-size:72px;line-height:1}.sign-in-buttons{display:flex;flex-direction:column;gap:12px;width:min(360px,100%)}.btn.sign-in{display:flex;align-items:center;justify-content:center;gap:12px;box-shadow:var(--shadow)}.btn.sign-in.google{background:#fff;color:#1f1f1f;border:1px solid #dadce0}.btn.sign-in.apple{background:#000;color:#fff}.account{display:flex;align-items:center;gap:4px}.card-list{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.progress-card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px;display:flex;flex-direction:column;gap:14px}.progress-head{display:flex;gap:14px;align-items:center;font-size:20px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.stat{display:flex;flex-direction:column}.stat-value{font-size:28px;font-weight:800}.stat-label{font-size:14px;font-weight:700}.sessions{width:100%;border-collapse:collapse;background:var(--surface);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}.sessions th,.sessions td{padding:12px 16px;text-align:left;border-bottom:1px solid #f1f5f9}.sessions th{font-size:14px;color:var(--muted)}.session-row{cursor:pointer}.session-row:active{background:#f8fafc}.sessions .chev{color:var(--muted);font-size:22px;width:24px}.session-detail>td{background:#f8fafc;padding:16px}.attempts{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start}.attempt{background:var(--surface);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:6px;width:268px;border-left:6px solid var(--right)}.attempt.wrong{border-left-color:var(--wrong)}.attempt.big{width:668px;max-width:100%}.attempt-head{display:flex;gap:8px;align-items:baseline;font-weight:800;font-size:18px}.attempt-n{color:var(--muted);font-size:14px}.attempt .ok{color:var(--right);font-weight:700}.attempt .no{color:var(--wrong);font-weight:700}.attempt-work{padding:0;background:none;align-self:flex-start;max-width:100%}.attempt-work .scratch-image{max-width:100%;height:auto!important}@media (max-width: 820px) and (orientation: portrait),(max-width: 640px){.practice-body{grid-template-columns:1fr;gap:20px}.numpad{width:min(420px,100%);margin:0 auto}.practice-body.with-scratch{display:flex;flex-direction:column;gap:12px}.with-scratch .problem-area{flex:1}.with-scratch .numpad{align-self:center;width:min(560px,100%);gap:8px}.with-scratch .key{aspect-ratio:auto;min-height:60px;font-size:32px}.with-scratch .key.submit{min-height:64px;font-size:26px}.op-grid{grid-template-columns:repeat(2,1fr)}.parent-grid{grid-template-columns:1fr}.shop-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width: 640px){.screen{padding-left:16px;padding-right:16px}.op-grid,.card-list{grid-template-columns:1fr}.shop-grid{grid-template-columns:repeat(2,1fr)}.op-card{min-height:0}}.hint-step{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}.hint-step .hint-say{margin:0;font-size:20px;font-weight:700;line-height:1.3}.hint-visual{width:100%;max-height:210px}.hint-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin-top:4px}.hint-nav .btn{min-height:48px;min-width:64px;font-size:20px;background:#f1f5f9}.hint-nav .btn:disabled{opacity:.35}.hint-nav .hint-next{background:#854d0e;color:#fff;padding:0 20px}.hint-count{display:flex;gap:8px}.hint-count span{width:12px;height:12px;border-radius:50%;background:#e2e8f0}.hint-count span.done{background:#fcd34d}.hint-count span.on{background:#854d0e}.number-line text{font-size:22px;font-weight:800;fill:var(--text);font-variant-numeric:tabular-nums}.nl-axis{stroke:var(--text);stroke-width:3;stroke-linecap:round}.nl-point line{stroke:var(--text);stroke-width:3}.nl-point.start text{fill:var(--primary-dark)}.nl-point.unknown text{fill:#854d0e;font-size:28px}.nl-jump path{fill:none;stroke:#c4b5fd;stroke-width:4;stroke-linecap:round}.nl-jump text{fill:#a78bfa;font-size:20px}.nl-jump.latest path{stroke:var(--subtract)}.nl-jump.latest text{fill:var(--subtract)}.nl-jump.ahead path{stroke:#fdba74}.nl-jump.ahead text{fill:#fb923c}.nl-jump.ahead.latest path{stroke:var(--add)}.nl-jump.ahead.latest text{fill:var(--add)}.blocks .block rect{fill:#93c5fd;stroke:#1d4ed8;stroke-width:1.5}.blocks .block line{stroke:#1d4ed8;stroke-width:.6;opacity:.6}.blocks .block.second rect{fill:#86efac;stroke:#15803d}.blocks .block.second line{stroke:#15803d}.blocks .block.fresh rect{fill:#fdba74;stroke:#c2410c}.blocks .block.out rect{fill:#e2e8f0;stroke:#94a3b8}.blocks .block.out line{stroke:#94a3b8}.blocks .x,.dots .x{stroke:var(--wrong);stroke-width:3;stroke-linecap:round}.blocks-label{font-size:16px;font-weight:700;fill:var(--muted)}.dots .frame{fill:none;stroke:#cbd5e1;stroke-width:2}.dots .dot circle{fill:var(--subtract)}.dots .dot.new circle{fill:var(--add)}.dots .dot.out circle{fill:#e2e8f0}.col-focus{fill:#fef9c3;stroke:#fde68a;stroke-width:2}.column .col-name{font-size:14px;font-weight:700;fill:var(--muted)}.column .col-digit{font-size:44px;font-weight:800;fill:var(--text);font-variant-numeric:tabular-nums}.column .col-answer{fill:var(--primary-dark)}.column .col-answer.unknown{fill:#854d0e}.column .col-above{font-size:26px;font-weight:800;fill:var(--add)}.column .col-above.borrow{fill:var(--subtract)}.column .col-cross{stroke:var(--wrong);stroke-width:3.5;stroke-linecap:round}.col-rule{stroke:var(--text);stroke-width:4;stroke-linecap:round}.groups .g-ring{fill:#ecfdf5;stroke:var(--multiply);stroke-width:3}.groups .g-dot,.array .g-dot{fill:var(--multiply)}.groups .g-ten{fill:#93c5fd;stroke:#1d4ed8;stroke-width:1.2}.array .a-count{font-size:24px;font-weight:800;fill:var(--primary-dark)}.array .a-count.unknown{fill:#854d0e}.area .ar-head{font-size:26px;font-weight:800;fill:var(--text)}.area .ar-cell{fill:#f8fafc;stroke:var(--text);stroke-width:3}.area .ar-cell.done{fill:#d1fae5}.area .ar-cell.on{fill:#fef9c3}.area .ar-value{font-size:28px;font-weight:800;fill:#065f46}.stack .st-line text{font-size:40px;font-weight:800;fill:var(--text);font-variant-numeric:tabular-nums}.stack .st-line.carry text{font-size:24px;fill:var(--add)}.stack .st-line.partial text{fill:#065f46}.stack .st-line.answer text{fill:var(--primary-dark)}.stack text.unknown{fill:#854d0e!important}.groups .g-dot.g-wait{fill:var(--divide)}.groups .g-pile-line{stroke:#e2e8f0;stroke-width:2;stroke-dasharray:6 6}.hint-visual.long-division{max-height:300px}.long-division text{font-size:36px;font-weight:800;fill:var(--text);font-variant-numeric:tabular-nums}.long-division .ld-quotient{fill:var(--primary-dark)}.long-division .ld-quotient.unknown{fill:#854d0e}.long-division .ld-bracket,.long-division .ld-rule{fill:none;stroke:var(--text);stroke-width:4;stroke-linecap:round}.long-division .ld-row text{fill:#065f46}.long-division .ld-row text.ld-brought{fill:var(--add)}.invite-form{display:flex;gap:10px;width:min(420px,100%)}.invite-input{flex:1;min-width:0;min-height:52px;padding:0 16px;border-radius:14px;border:2px solid #cbd5e1;font-size:22px;font-weight:800;letter-spacing:.08em;text-align:center;user-select:text;-webkit-user-select:text}.invite-input:focus{outline:none;border-color:var(--primary)}.link-btn{background:none;border:0;padding:0;color:var(--primary-dark);font:inherit;text-decoration:underline;cursor:pointer}.welcome{min-height:100dvh;padding:max(16px,env(safe-area-inset-top)) 24px 40px;max-width:1100px;margin:0 auto;display:flex;flex-direction:column;gap:28px}.welcome-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.welcome-brand{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:800}.btn.welcome-top-login{min-height:46px;padding:0 22px;font-size:18px;background:var(--surface);color:var(--primary-dark);box-shadow:var(--shadow)}.welcome-hero{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:center}.welcome-copy{display:flex;flex-direction:column;align-items:flex-start;gap:16px}.welcome-title{font-size:clamp(36px,5.2vw,58px);line-height:1.08;margin:0;letter-spacing:-.01em}.welcome-play{color:var(--add);background:linear-gradient(transparent 62%,#fef08a 62%);padding:0 4px}.welcome-lead{font-size:clamp(18px,2vw,22px);line-height:1.45;margin:0;color:#334155;max-width:34ch}.btn.welcome-login{min-height:62px;font-size:21px;padding:0 30px;margin-top:6px}.welcome-copy .feedback{margin:0}.welcome-note{margin:0;max-width:40ch;line-height:1.45}.welcome-scene{width:100%;height:auto;max-height:460px;overflow:visible}.welcome-features{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.welcome-card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px;border-top:8px solid var(--c);display:flex;flex-direction:column;gap:6px}.welcome-card-art svg{width:100%;height:86px}.welcome-card-title{font-size:21px;margin:4px 0 0;color:var(--c)}.welcome-card-text{margin:0;font-size:16px;line-height:1.45;color:#334155}.welcome-subjects{display:grid;grid-template-columns:2fr 1fr;gap:16px}.welcome-subject{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px;border-left:8px solid var(--sc)}.welcome-subject-name{margin:0 0 12px;font-size:24px;color:var(--sc)}.welcome-subjects-note{grid-column:1 / -1;text-align:center;margin:0}.welcome-skills{display:flex;flex-wrap:wrap;gap:10px}.welcome-skill .op-symbol.small.wide{font-size:13px}.welcome-skill{display:inline-flex;align-items:center;gap:10px;background:var(--surface);box-shadow:var(--shadow);border-radius:999px;padding:6px 18px 6px 6px;font-weight:800;font-size:17px}.welcome-skill .op-symbol.small{width:38px;height:38px;font-size:24px;border-radius:999px}.welcome-foot{display:flex;flex-direction:column;align-items:center;gap:14px;margin-top:8px}.ws-bob{animation:ws-bob 4s ease-in-out infinite}.ws-float{animation:ws-float 5s ease-in-out infinite}.ws-float.slow{animation-duration:7s}.ws-float.delay{animation-delay:-2.5s}.ws-twinkle{animation:ws-twinkle 2.6s ease-in-out infinite}@keyframes ws-bob{50%{transform:translateY(-8px)}}@keyframes ws-float{50%{transform:translateY(-12px)}}@keyframes ws-twinkle{50%{transform:scale(.6);opacity:.6}}@media (prefers-reduced-motion: reduce){.ws-bob,.ws-float,.ws-twinkle{animation:none}}@media (max-width: 900px){.welcome-features{grid-template-columns:repeat(2,1fr)}.welcome-subjects{grid-template-columns:1fr}}@media (max-width: 820px) and (orientation: portrait),(max-width: 640px){.welcome-hero{grid-template-columns:1fr}.welcome-copy{align-items:center;text-align:center}.welcome-scene{max-height:340px;order:-1}}@media (max-width: 520px){.welcome{padding-left:16px;padding-right:16px}.welcome-features{grid-template-columns:1fr}}.subject-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px;margin-top:8px}.subject-card{background:var(--surface);border-radius:28px;box-shadow:var(--shadow);padding:28px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;border-top:12px solid var(--sc);min-height:260px}.subject-card:active{transform:scale(.98)}.subject-math{--sc: var(--primary)}.subject-english{--sc: var(--reading)}.subject-icon{font-size:64px;line-height:1}.subject-name{font-size:34px;font-weight:800;color:var(--sc)}.subject-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto}.subject-chip{padding:4px 10px;border-radius:999px;font-size:14px;font-weight:800;color:#fff;background:var(--c)}.big-note{font-size:22px;text-align:center;margin-top:40px}.topic-picker{margin-bottom:16px}.topic-subjects{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px}.topic-subject{border:2px solid #e2e8f0;border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:10px}.topic-subject.off{background:#f8fafc}.topic-subject-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.topic-subject-name{font-size:20px;font-weight:800;flex:1}.topic-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}.topic-toggle{display:grid;grid-template-columns:26px 1fr;grid-template-rows:auto auto;column-gap:8px;align-items:center;text-align:left;padding:10px;border-radius:12px;background:#f1f5f9;min-height:56px}.topic-toggle .tiny{grid-column:2}.topic-check{grid-row:1 / span 2;width:24px;height:24px;border-radius:7px;border:2px solid #94a3b8;display:grid;place-items:center;font-weight:800;color:#fff;font-size:15px}.topic-toggle.on{background:color-mix(in srgb,var(--c) 12%,white)}.topic-toggle.on .topic-check{background:var(--c);border-color:var(--c)}.topic-name{font-weight:800;font-size:15px}.choicepad{display:flex;flex-direction:column;gap:10px}.choicepad.short{display:grid;grid-template-columns:repeat(3,1fr)}.choicepad.short .key.submit{grid-column:1 / -1}.choice{display:flex;align-items:center;gap:12px;min-height:64px;padding:10px 16px;border-radius:18px;background:var(--surface);box-shadow:var(--shadow);text-align:left;font-size:20px;font-weight:700;border:3px solid transparent;line-height:1.25}.choicepad.short .choice{justify-content:center;font-size:40px;font-weight:800;min-height:84px}.choice:active:not(:disabled){transform:scale(.98)}.choice.on{border-color:var(--primary);background:#eff6ff}.choice.answer{border-color:var(--right);background:var(--right-bg)}.choice:disabled{opacity:1}.choice-letter{flex:none;width:34px;height:34px;border-radius:50%;background:#e2e8f0;display:grid;place-items:center;font-size:16px;font-weight:800;color:var(--muted)}.choice.on .choice-letter{background:var(--primary);color:#fff}.choice.answer .choice-letter{background:var(--right);color:#fff}.question-text{max-width:36ch}.passage{width:100%;max-width:640px;background:#fffdf7;border:2px solid #fde68a;border-radius:var(--radius);padding:18px 22px;text-align:left;max-height:52vh;overflow-y:auto;box-shadow:var(--shadow);user-select:text;-webkit-user-select:text}.passage-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px}.passage-title{margin:0;font-size:24px}.passage p{font-size:20px;line-height:1.6;margin:10px 0;text-wrap:pretty}.passage mark{background:#fef08a;border-radius:4px;padding:0 2px;box-shadow:0 0 0 2px #fde047}.with-passage{align-items:start}.with-passage .problem-area{gap:12px}.with-passage .question-text{font-size:24px;max-width:640px;text-align:center}.read-aloud{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border-radius:999px;background:#fef3c7;color:#92400e;font-weight:800;font-size:16px;flex:none}.read-aloud.small{min-height:36px;width:36px;padding:0;justify-content:center;margin-left:10px;vertical-align:middle;font-size:16px}.read-aloud.on{background:#92400e;color:#fff}.pic{width:auto;max-width:100%;height:auto;max-height:260px;display:block}.pic-clock{width:220px}.pic-coins{max-height:90px;min-height:66px}.pic-ruler{width:min(100%,520px)}.pic-graph{width:min(100%,460px);max-height:300px}.pic-blocks{max-height:150px}.with-hint .pic,.with-scratch .pic{max-height:180px}.say-buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.say-btn{min-height:52px;padding:0 18px;border-radius:999px;background:var(--surface);box-shadow:var(--shadow);font-size:18px;font-weight:800;color:#86198f}.say-btn.main{background:#c026d3;color:#fff;font-size:22px;min-height:64px;padding:0 26px}.say-btn:active{transform:scale(.97)}.letter-boxes{display:inline-flex;gap:8px;flex-wrap:wrap;justify-content:center;font-size:clamp(36px,5vw,56px)}.letter-boxes.long{font-size:clamp(28px,3.6vw,42px);gap:6px}.letter-box{min-width:1.4em;padding:0 4px;cursor:default;display:inline-grid;place-items:center}.letterpad{display:flex;flex-direction:column;gap:8px}.letter-row{display:flex;justify-content:center;gap:6px}.lkey{flex:1;max-width:44px;min-height:58px;border-radius:12px;background:var(--surface);box-shadow:var(--shadow);font-size:24px;font-weight:800}.lkey:active:not(:disabled){transform:scale(.94);background:#fae8ff}.lkey.back{max-width:64px;background:#f1f5f9;font-size:22px}.practice-body:has(.letterpad){grid-template-columns:1fr minmax(380px,480px)}@media (max-width: 820px) and (orientation: portrait),(max-width: 640px){.practice-body:has(.letterpad){grid-template-columns:1fr}.lkey{max-width:none}}.review{max-width:980px;margin:0 auto}.review-filters{display:flex;flex-direction:column;gap:10px}.review-tabs{flex-wrap:wrap}.review-count{display:inline-block;min-width:24px;padding:0 6px;margin-left:4px;border-radius:999px;background:#1e293b1a;font-size:14px}.review-filters select,.review-editor select,.field select{min-height:44px;padding:0 12px;border-radius:12px;border:1px solid #cbd5e1;background:#fff;font:inherit;font-size:16px}.review-note{margin:0;color:var(--right);font-weight:700}.review-error{margin:0;color:var(--wrong);font-weight:700}.center-text{text-align:center}.review-list{display:flex;flex-direction:column;gap:14px}.review-item{border:3px solid transparent;user-select:text;-webkit-user-select:text}.review-item.focus{border-color:var(--primary)}.review-item-head{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.review-id{margin-left:auto;font-family:ui-monospace,monospace}.review-status{padding:2px 12px;border-radius:999px;font-size:14px;font-weight:800}.review-status.s-draft{background:#fef9c3;color:#854d0e}.review-status.s-approved{background:var(--right-bg);color:#166534}.review-status.s-rejected{background:var(--wrong-bg);color:#991b1b}.review-status.s-retired{background:#e2e8f0;color:#475569}.review-preview{background:var(--bg);border-radius:14px;padding:12px 16px}.review-preview p{margin:4px 0}.review-word{font-size:20px}.review-word strong{font-size:26px}.review-options{display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:8px 0;list-style:none}.review-options li{padding:6px 14px;border-radius:12px;background:#fff;border:1px solid #cbd5e1}.review-options li.right{background:var(--right-bg);border-color:var(--right);font-weight:700}.review-passage{white-space:pre-line;line-height:1.55}.review-questions{margin:8px 0 0;padding-left:22px;display:flex;flex-direction:column;gap:6px}.review-questions .right{color:var(--right);font-weight:700}.review-checks{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px;font-size:15px}.review-checks .ok{color:var(--right)}.review-checks .block{color:var(--wrong);font-weight:700}.review-checks .warn{color:#92400e}.review-reports{background:#fff7ed;border-left:4px solid var(--add);border-radius:8px;padding:6px 12px}.review-reports p{margin:4px 0}.review-actions{flex-wrap:wrap;gap:8px}.review-history{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px}.review-changes{margin:2px 0 0;padding-left:18px;color:var(--muted)}.review-editor-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;display:flex;align-items:flex-start;justify-content:center;padding:24px 12px;overflow-y:auto;z-index:50}.review-editor{width:min(720px,100%);user-select:text;-webkit-user-select:text}.review-editor h2{margin:0}.field{display:flex;flex-direction:column;gap:4px;font-size:15px;font-weight:700;color:var(--muted);flex:1}.field input,.field textarea{font:inherit;font-size:17px;font-weight:400;color:var(--text);padding:10px 12px;border-radius:12px;border:1px solid #cbd5e1;background:#fff;user-select:text;-webkit-user-select:text}.field textarea{resize:vertical}.check-field{display:flex;align-items:center;gap:8px;font-size:15px}.review-question-edit{border:1px solid #cbd5e1;border-radius:14px;padding:10px 14px;display:flex;flex-direction:column;gap:8px}.review-question-edit legend{font-weight:800;padding:0 6px}.asked-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column}.asked-list li{display:flex;align-items:center;gap:10px;padding:6px 0;border-bottom:1px solid #e2e8f0}.asked-list li:last-child{border-bottom:none}.asked-list .ok{color:var(--right);font-weight:800}.asked-list .no{color:var(--wrong);font-weight:800}.asked-prompt{flex:1;font-size:16px}.report-prompt{margin:0;padding:10px 14px;background:var(--bg);border-radius:12px}.report-reasons{border:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px;font-size:17px}.report-reasons label{display:flex;align-items:center;gap:10px}.review-role{margin:0}.team-roles{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px}.team-add{align-items:flex-end;flex-wrap:wrap}.team-add .field{min-width:200px}.team-role-field{flex:0 0 160px;min-width:0!important}.team-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column}.team-list li{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #e2e8f0}.team-list li:last-child{border-bottom:none}.team-who{flex:1;display:flex;flex-wrap:wrap;align-items:center;gap:8px}.team-who .tiny{flex-basis:100%}.team-title{min-height:44px;padding:0 12px;border-radius:12px;border:1px solid #cbd5e1;background:#fff;font:inherit;font-size:16px}.admin-link{margin-top:8px;font-size:16px;color:var(--muted)}.admin-tools{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}.admin-tool{align-items:flex-start;text-align:left;gap:6px;min-height:160px;cursor:pointer;border:3px solid transparent}.admin-tool:hover,.admin-tool:focus-visible{border-color:var(--primary)}.admin-tool strong{font-size:22px}.admin-tool-icon{font-size:36px}.invite-new{background:var(--right-bg);border-radius:14px;padding:14px 18px;display:flex;flex-direction:column;gap:8px}.invite-code{font-family:ui-monospace,monospace;font-size:30px;font-weight:800;letter-spacing:2px}.invite-link{font-family:ui-monospace,monospace;font-size:14px;word-break:break-all;user-select:text;-webkit-user-select:text}.invite-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column}.invite-list li{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #e2e8f0;flex-wrap:wrap}.invite-list li:last-child{border-bottom:none}.invite-list .invite-code{font-size:18px;letter-spacing:1px;min-width:130px;user-select:text;-webkit-user-select:text}.invite-list .grow{flex:1;min-width:180px}.invite-list li.off .invite-code{text-decoration:line-through;color:var(--muted)}.field input[type=number]{width:120px}.team-title-field{flex:0 0 220px}.team-list .team-title{min-width:200px}.report-card{margin-bottom:16px}.rc-subjects{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px;margin-top:10px}.rc-subject{border-radius:16px;padding:14px 16px;background:#f8fafc;border-top:6px solid #cbd5e1}.rc-subject h3{margin:0 0 4px;font-size:20px}.rc-subject.band-100,.rc-subject.band-90s{border-top-color:var(--right)}.rc-subject.band-80s{border-top-color:#65a30d}.rc-subject.band-70s{border-top-color:#ca8a04}.rc-subject.band-60s{border-top-color:#ea580c}.rc-subject.band-below60{border-top-color:var(--wrong)}.rc-score{display:flex;align-items:baseline;gap:10px;margin:4px 0}.rc-number{font-size:44px;font-weight:900;line-height:1}.rc-band{font-weight:800;padding:2px 10px;border-radius:999px;background:#e2e8f0}.rc-none{font-size:20px;font-weight:800;color:var(--muted)}.rc-peer{margin-top:2px}.rc-topics-title{margin:12px 0 6px;font-size:15px}.rc-topics{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}.rc-topics summary{display:grid;grid-template-columns:150px 1fr 36px;align-items:center;gap:10px;cursor:pointer;padding:6px 2px;list-style:none}.rc-topics summary::-webkit-details-marker{display:none}.rc-topic-name{font-weight:700}.rc-bar{height:10px;border-radius:999px;background:#e2e8f0;overflow:hidden}.rc-bar span{display:block;height:100%;background:var(--c, var(--primary));border-radius:999px}.rc-topic-score{text-align:right;font-weight:800}.rc-topic-note{grid-column:1 / -1;margin-top:-4px;font-weight:400}.rc-topic-detail{padding:2px 4px 10px}.rc-topic-detail p{margin:4px 0}.rc-topic-detail .tag{margin-right:6px;font-size:13px}.tag.rc-ahead{background:var(--right-bg);color:#166534}.tag.rc-off{background:#e2e8f0;color:#334155}.rc-levels{list-style:none;margin:4px 0 0;padding:0}.rc-levels li{padding:2px 0}.rc-levels li.ok>span:first-child{color:var(--right);font-weight:800}.rc-grade-check{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;background:#fef9c3;color:#854d0e;border-radius:14px;padding:10px 14px;font-weight:700;margin:8px 0}.rc-history,.rc-how{margin-top:12px}.rc-how ul{margin:6px 0 0;padding-left:20px}.rc-how li{margin:3px 0}.rc-history-table{border-collapse:collapse;margin-top:6px}.rc-history-table th,.rc-history-table td{padding:4px 12px;text-align:left;border-bottom:1px solid #f1f5f9}.rc-ahead-mark{display:block;color:var(--right);font-size:13px;font-weight:800;white-space:nowrap}.rc-off-mark{display:block;color:var(--muted);font-size:13px;font-weight:700}
