:root{--bg: #f4f7fb;--card: #ffffff;--ink: #1f2a3a;--muted: #64748b;--brand: #2563eb;--brand-dark: #1d4ed8;--correct: #16a34a;--incorrect: #dc2626;--line: #cbd5e1;--shadow: 0 6px 20px rgba(15, 23, 42, .08);--radius: 16px;--ir-blue: #1f5fd6;--ir-blue-dark: #1a51ba;--ir-prompt: #e8eaed;--ir-prompt-ink: #2a333f;--ir-teal: #35c9c1;--ir-bar: #10203a;font-family:ui-rounded,SF Pro Rounded,Segoe UI,system-ui,-apple-system,sans-serif}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%}body{background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased}button{font-family:inherit;cursor:pointer}.app{max-width:820px;margin:0 auto;padding:20px 18px 64px}.landing{min-height:100vh;background:linear-gradient(180deg,#fdf1e9 0%,#eef4fd 34%,#f6f9ff 62%,var(--bg) 100%);display:flex;flex-direction:column}.brandbar{padding:18px clamp(16px,4vw,44px)}.brand{display:inline-flex;align-items:center;gap:10px}.brand-logo{width:34px;height:34px}.brand-name{font-weight:800;font-size:1.2rem;letter-spacing:-.01em}.hero{flex:1;width:100%;max-width:780px;margin:0 auto;padding:20px 20px 40px;text-align:center}.hero-title{font-size:clamp(1.9rem,5vw,3rem);line-height:1.08;letter-spacing:-.02em;margin:14px 0}.hero-sub{color:var(--ink);font-size:1.15rem;font-weight:500;line-height:1.5;max-width:42ch;margin:0 auto 8px}.hero-parent{color:var(--muted);font-size:.9rem;line-height:1.5;max-width:54ch;margin:0 auto 26px}.badges{list-style:none;display:flex;flex-wrap:wrap;gap:9px 10px;justify-content:center;padding:0;margin:0 0 30px}.badges li{background:var(--card);border:1px solid var(--line);border-radius:999px;padding:6px 14px;font-size:.86rem;font-weight:600;box-shadow:var(--shadow)}.badges li:before{content:"✓";color:var(--correct);font-weight:800;margin-right:6px}.start-card{background:var(--card);border-radius:20px;box-shadow:0 14px 40px #0f172a1f;padding:26px 24px;max-width:460px;margin:0 auto}.count-selector{display:flex;flex-direction:column;align-items:center;gap:10px}.count-label{font-weight:700}.count-options{display:inline-flex;gap:8px;background:var(--bg);padding:6px;border-radius:999px}.count-btn{min-width:52px;padding:10px 16px;border:none;border-radius:999px;background:transparent;color:var(--muted);font-size:1.05rem;font-weight:700}.count-btn.active{background:var(--brand);color:#fff}.start-btn{width:100%;margin-top:18px;background:var(--brand);color:#fff;border:none;border-radius:14px;padding:16px;font-size:1.2rem;font-weight:800;box-shadow:0 8px 20px #2563eb52;transition:transform .08s ease,background .1s ease}.start-btn:hover{background:var(--brand-dark);transform:translateY(-1px)}.reveal-skills{display:block;width:100%;margin-top:12px;background:none;border:none;color:var(--brand-dark);font-weight:700;font-size:.98rem;padding:8px}.reveal-skills:hover{text-decoration:underline}.skills-panel{margin-top:28px;text-align:left}.skills-panel-head{font-size:.9rem;font-weight:700;color:var(--muted);margin:0 0 18px}.skill-domain{margin-bottom:26px}.domain-head{display:flex;align-items:center;gap:10px;margin:0 0 12px;padding-bottom:8px;border-bottom:2px solid color-mix(in srgb,var(--domain) 32%,var(--line))}.domain-dot{width:14px;height:14px;border-radius:5px;background:var(--domain);flex:0 0 auto}.domain-name{margin:0;font-size:1rem;font-weight:800;letter-spacing:-.01em;color:var(--ink)}.domain-count{margin-left:auto;flex:0 0 auto;font-size:.74rem;font-weight:700;color:var(--muted);background:color-mix(in srgb,var(--domain) 12%,var(--card));border-radius:999px;padding:3px 11px;white-space:nowrap}.skill-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}.skill-card{display:flex;flex-direction:column;align-items:flex-start;gap:10px;text-align:left;background:var(--card);border:1px solid var(--line);border-left:4px solid var(--domain);border-radius:14px;padding:14px 16px;box-shadow:var(--shadow);cursor:pointer;transition:transform .1s ease,box-shadow .16s ease,border-color .16s ease}.skill-card:hover{transform:translateY(-3px);border-color:var(--domain);box-shadow:0 12px 26px color-mix(in srgb,var(--domain) 24%,transparent)}.skill-card:focus-visible{outline:2px solid var(--domain);outline-offset:2px}.skill-card-title{font-size:1rem;font-weight:700;line-height:1.28;color:var(--ink)}.skill-card-grade{font-size:.72rem;font-weight:700;letter-spacing:.02em;color:var(--ink);background:color-mix(in srgb,var(--domain) 16%,var(--card));border:1px solid color-mix(in srgb,var(--domain) 32%,var(--card));border-radius:999px;padding:3px 10px}@media (prefers-reduced-motion: reduce){.skill-card:hover{transform:none}}.landing-footer{text-align:center;color:var(--muted);font-size:.75rem;padding:18px}.quiz{position:fixed;top:0;right:0;bottom:0;left:0;background:linear-gradient(180deg,#eef3fc 0%,#f6f9ff 40%,var(--bg) 100%);display:flex;flex-direction:column;overflow:auto}.quiz-top{position:sticky;top:0;z-index:3;display:flex;align-items:center;gap:16px;padding:12px clamp(14px,4vw,40px);background:#ffffffd9;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}.quiz-top .brand-name{font-size:1.05rem}.quiz-progress{flex:1;display:flex;flex-direction:column;gap:5px;max-width:420px;margin:0 auto}.quiz-step{font-size:.8rem;font-weight:700;color:var(--muted);text-align:center}.quiz-bar{height:8px;border-radius:999px;background:#dbe4f3;overflow:hidden}.quiz-bar-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#3b82f6,#1d4ed8);transition:width .35s ease}.quiz-close{flex:none;width:38px;height:38px;border-radius:50%;border:none;background:#eef2f8;color:var(--muted);font-size:1.2rem;line-height:1}.quiz-close:hover{background:#e2e8f2;color:var(--ink)}.quiz-main{flex:1;display:flex;align-items:flex-start;justify-content:center;padding:26px clamp(14px,4vw,40px) 48px}.quiz-card{width:100%;max-width:820px;background:var(--card);border-radius:22px;box-shadow:0 16px 44px #0f172a1a;padding:26px clamp(18px,3vw,30px) 24px}.quiz-prompt{display:flex;align-items:center;gap:14px;padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--line)}.quiz-speaker{flex:none;width:44px;height:44px;border-radius:50%;border:none;background:var(--brand);color:#fff;display:grid;place-items:center;box-shadow:0 4px 10px #2563eb4d}.quiz-speaker:hover{background:var(--brand-dark)}.quiz-prompt-text{margin:0;font-size:clamp(1.2rem,3.2vw,1.55rem);line-height:1.4;color:var(--ink);font-weight:600}.ir-work{padding:0}.ir-figure{margin:4px auto 22px;max-width:620px}.number-line{width:100%;height:auto;display:block}.ir-choices{display:grid;gap:14px}.ir-choices.row{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.ir-choices.col{grid-template-columns:1fr}.ir-choices.figural{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.ir-choice{display:flex;align-items:center;gap:10px;background:var(--bg);border:2px solid var(--line);border-radius:14px;padding:8px 14px;min-height:62px;transition:border-color .1s ease,background .1s ease,box-shadow .1s ease}.ir-choice:hover{border-color:var(--brand);background:#eff4ff}.ir-choice.sel{border-color:var(--brand);border-width:3px;background:#e8f1ff;box-shadow:0 0 0 3px #2563eb2e}.ir-choice-audio{flex:none;width:34px;height:34px;border-radius:50%;border:none;background:#dde5f1;color:var(--brand-dark);display:grid;place-items:center}.ir-choice-audio:hover{background:#cdd8ea}.ir-choice-select{flex:1;background:transparent;border:none;text-align:left;font-size:1.3rem;font-weight:600;color:var(--ink);padding:10px 4px;min-height:44px}.ir-entry{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:10px}.ir-entry-input{width:170px;max-width:62vw;text-align:center;font-size:2rem;font-weight:800;padding:12px 16px;border:2px solid var(--line);border-radius:14px;background:var(--card);color:var(--ink);font-variant-numeric:tabular-nums}.ir-entry-input:focus{outline:none;border-color:var(--ir-blue);box-shadow:0 0 0 3px #1f5fd62e}.ir-entry-unit{font-size:1.25rem;font-weight:600;color:var(--muted)}.ir-dd-sentence{font-size:1.2rem;font-weight:600;line-height:2.2;text-align:center;color:var(--ink);margin:8px 0}.ir-dd{font-size:1.02rem;font-weight:700;padding:6px 10px;margin:0 3px;border:2px solid var(--ir-blue);border-radius:10px;background:var(--card);color:var(--ink);cursor:pointer;vertical-align:baseline}.ir-dd:focus{outline:none;box-shadow:0 0 0 3px #1f5fd62e}.quiz-actions{display:flex;justify-content:flex-end;margin-top:22px}.quiz-next{background:var(--brand);color:#fff;border:none;border-radius:14px;padding:14px 32px;font-size:1.15rem;font-weight:800;box-shadow:0 8px 18px #2563eb4d;transition:transform .08s ease,background .1s ease}.quiz-next:hover:not(:disabled){background:var(--brand-dark);transform:translateY(-1px)}.quiz-next:disabled{background:#c7d2e4;color:#eef2f8;box-shadow:none;cursor:default}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10;background:#0f172a80;display:grid;place-items:center;padding:20px}.modal{background:var(--card);border-radius:18px;box-shadow:0 20px 50px #0000004d;padding:26px 26px 22px;max-width:380px;width:100%;text-align:center}.modal-title{margin:0 0 8px;font-size:1.4rem}.modal-body{margin:0 0 6px;color:var(--ink);font-size:1.05rem}.modal-parent{margin:0 0 20px;color:var(--muted);font-size:.82rem}.modal-actions{display:flex;gap:12px;justify-content:center}.btn-danger{background:var(--incorrect);color:#fff;border:none;border-radius:12px;padding:12px 24px;font-size:1.02rem;font-weight:700}.btn-danger:hover{background:#b91c1c}.results{padding-top:32px}.results-head{text-align:center}.results-head h1{font-size:clamp(1.8rem,5vw,2.4rem);margin:0 0 6px}.results-score{font-size:1.25rem}.results-score strong{color:var(--brand-dark)}.results-skills{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:18px 0 8px}.results-skill{background:var(--card);border-radius:12px;padding:10px 16px;box-shadow:var(--shadow);display:flex;gap:12px;align-items:center;font-size:.95rem}.results-skill-score{font-weight:800;color:var(--brand-dark)}.review-title{margin:26px 0 12px}.review{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:12px}.review-item{background:var(--card);border-radius:12px;padding:16px 18px;box-shadow:var(--shadow);border-left:6px solid var(--line)}.review-item.correct{border-left-color:var(--correct)}.review-item.incorrect{border-left-color:var(--incorrect)}.review-q{display:flex;gap:10px;align-items:baseline;font-weight:600;line-height:1.35;width:100%;padding:0;background:none;border:none;color:inherit;font-family:inherit;font-size:1rem;text-align:left;cursor:pointer}.review-q:hover .review-qtext{text-decoration:underline}.review-q:focus-visible{outline:2px solid var(--brand);outline-offset:3px;border-radius:6px}.review-qtext{flex:1}.review-caret{align-self:center;flex:0 0 auto;width:0;height:0;border-left:6px solid var(--muted);border-top:5px solid transparent;border-bottom:5px solid transparent;transition:transform .15s ease}.review-q[aria-expanded=true] .review-caret{transform:rotate(90deg)}@media (prefers-reduced-motion: reduce){.review-caret{transition:none}}.review-num{color:var(--muted);font-weight:800}.review-mark{flex:0 0 auto;font-weight:900}.review-item.correct .review-mark{color:var(--correct)}.review-item.incorrect .review-mark{color:var(--incorrect)}.review-a{margin-top:8px;font-size:.98rem}.review-correct{color:var(--correct)}.review-figure{display:inline-block;width:66px;vertical-align:middle;margin:0 2px}.review-figure .figure{max-width:66px}.review-why{margin-top:12px;color:var(--muted);font-size:.92rem;line-height:1.4}.review-hint{margin:0 0 12px;color:var(--muted);font-size:.9rem}.review-detail{margin-top:12px}.review-unanswered{margin:10px 0 0;color:var(--incorrect);font-size:.92rem;font-weight:600}.qp{border:1px solid var(--line);border-radius:12px;padding:14px;background:var(--bg)}.qp-prompt{margin:0;background:var(--ir-prompt);color:var(--ir-prompt-ink);border-radius:8px;padding:10px 12px;font-weight:600;line-height:1.35}.qp-figure{display:flex;justify-content:center;margin:12px 0 4px}.qp-figure .figure{max-width:300px}.qp-choices{display:flex;gap:10px;margin-top:12px}.qp-choices.row,.qp-choices.figural{flex-direction:row;flex-wrap:wrap}.qp-choices.col{flex-direction:column}.qp-choice{display:flex;align-items:center;gap:8px;border:2px solid var(--line);border-radius:10px;padding:8px 12px;background:var(--card);font-weight:600;justify-content:center}.qp-choices.col .qp-choice{justify-content:space-between}.qp-choice.correct{border-color:var(--correct);background:#16a34a1f}.qp-choice.wrong{border-color:var(--incorrect);background:#dc26261f}.qp-choice .figure{max-width:96px}.qp-badge{font-weight:900}.qp-badge.correct{color:var(--correct)}.qp-badge.wrong{color:var(--incorrect)}.qp-entry{display:flex;flex-direction:column;gap:4px;margin-top:12px;font-variant-numeric:tabular-nums}.qp-typed{font-weight:600}.qp-typed.correct{color:var(--correct)}.qp-typed.wrong{color:var(--incorrect)}.qp-dd-sentence{margin-top:12px;font-size:1rem;line-height:2}.qp-dd{font-weight:700;padding:1px 6px;border-radius:6px;margin:0 2px}.qp-dd.correct{color:var(--correct);background:#16a34a1f}.qp-dd.wrong{color:var(--incorrect);background:#dc26261f}.qp-dd-fix{color:var(--correct);font-weight:700;margin-left:5px}.qp-dd-fix:before{content:"→ "}.results-actions{display:flex;gap:12px;justify-content:center;margin-top:28px;flex-wrap:wrap}.btn-primary,.btn-secondary{border:none;border-radius:12px;padding:14px 26px;font-size:1.05rem;font-weight:700}.btn-primary{background:var(--brand);color:#fff;box-shadow:var(--shadow)}.btn-primary:hover{background:var(--brand-dark)}.btn-secondary{background:var(--card);color:var(--ink);box-shadow:var(--shadow)}.figure{width:100%;height:auto;max-width:560px;display:block;margin:0 auto}.fig-array{max-width:340px}.fig-angle,.fig-polygon,.fig-clock,.fig-composite{max-width:300px}.fig-pictograph{max-width:360px}.fig-dtable{max-width:240px}.fig-dim-label{fill:#26313f;font-size:14px;font-weight:700}.fig-picto-icon{fill:var(--ir-blue);stroke:#1a2942;stroke-width:1}.fig-picto-label{fill:#26313f;font-size:14px;font-weight:600}.fig-picto-key{fill:#5a6577;font-size:13px;font-weight:600}.fig-picto-rule{stroke:#cbd5e1;stroke-width:1.5}.fig-dtable-line{stroke:#26313f;stroke-width:1.1}.fig-dtable-border{fill:none;stroke:#26313f;stroke-width:2}.fig-dtable-head-bg{fill:#eef3fb}.fig-dtable-text{fill:#26313f;font-size:15px}.fig-dtable-text.head{font-weight:800}.fig-baseten{max-width:520px}.fig-dot{fill:var(--ir-blue)}.fig-block{fill:#6f9be8;stroke:#1a2942;stroke-width:1.2}.fig-grid{stroke:#1a2942;stroke-width:.6;opacity:.55}.fig-frac-on{fill:var(--ir-blue);stroke:#1a2942;stroke-width:1.5}.fig-frac-off{fill:#fff;stroke:#1a2942;stroke-width:1.5}.fig-ray{stroke:#26313f;stroke-width:3;stroke-linecap:round}.fig-arc{stroke:var(--ir-blue);stroke-width:2.5}.fig-vertex{fill:#26313f}.fig-shape{fill:#cfe0fb;stroke:#1a2942;stroke-width:2.5;stroke-linejoin:round}.fig-clock-face{fill:#fff;stroke:#26313f;stroke-width:3}.fig-clock-tick{stroke:#9aa7b6;stroke-width:1.4}.fig-clock-tick-hr{stroke:#26313f;stroke-width:2.6}.fig-clock-hour{stroke:#26313f;stroke-width:5;stroke-linecap:round}.fig-clock-minute{stroke:var(--ir-blue);stroke-width:3.5;stroke-linecap:round}.fig-clock-center{fill:#26313f}.fig-clock-num{fill:#26313f;font-size:17px;font-weight:700;dominant-baseline:middle}.fig-countingset{max-width:300px}.fig-cs-panel{fill:var(--bg);stroke:var(--line);stroke-width:1.5}.fig-equation{max-width:420px}.fig-eq-text{font-size:44px;font-weight:700;fill:var(--ink)}.fig-ftable{max-width:210px}.fig-ft-header{fill:#dbe4f3}.fig-ft-head{font-size:18px;font-weight:800;fill:#1a2942}.fig-ft-cell{font-size:20px;font-weight:700;fill:#1f2a37}.fig-ft-q{fill:#dc2626}.fig-ft-border{fill:none;stroke:#1a2942;stroke-width:2.5}.fig-ft-line{stroke:#9aa7b6;stroke-width:1.5}.fig-grid{max-width:360px}.fig-unitsquare{fill:#cfe0fb;stroke:#1a2942;stroke-width:1.5}.fig-ruler{max-width:520px}.fig-object{fill:#6f9be8;stroke:#1a2942;stroke-width:1.5;rx:3}.fig-caption{fill:var(--muted);font-size:16px;text-anchor:middle}.fig-bargraph{max-width:460px}.fig-bar{fill:var(--ir-blue);stroke:#1a2942;stroke-width:1.2}.fig-grid-line{stroke:#d6dee8;stroke-width:1}.fig-axis-label{fill:#64748b;font-size:15px}.fig-coins{max-width:380px}.coin-text{font-family:Georgia,Times New Roman,serif;font-weight:700;letter-spacing:.4px;-webkit-user-select:none;user-select:none}.fig-balance{max-width:320px}.fig-fulcrum{fill:#8aa0b8;stroke:#26313f;stroke-width:1.5}.fig-beam{stroke:#26313f;stroke-width:4;stroke-linecap:round}.fig-beam-bar{stroke:#26313f;stroke-width:6;stroke-linecap:round}.fig-pan{fill:#cfe0fb;stroke:#26313f;stroke-width:2}.fig-weight-label{font-size:14px;font-weight:700;fill:#26313f}.fig-fractionline{max-width:520px}.fig-solid{max-width:220px}.fig-solid-edge{fill:none;stroke:#26313f;stroke-width:2.2;stroke-linejoin:round;stroke-linecap:round}.fig-solid-hidden{fill:none;stroke:#26313f;stroke-width:1.6;stroke-dasharray:5 4;stroke-linecap:round;opacity:.6}.fig-symline{stroke:#dc2626;stroke-width:2.5;stroke-dasharray:6 5;stroke-linecap:round}.nl-axis{stroke:#26313f;stroke-width:3}.nl-axis-fill{fill:#26313f}.nl-tick{stroke:#9aa7b6;stroke-width:2}.nl-tick-strong{stroke:var(--ir-blue);stroke-width:4}.nl-label{fill:#64748b;font-size:20px;text-anchor:middle}.nl-label-strong{fill:var(--ir-blue-dark);font-weight:700}.nl-mark-label{fill:#dc2626;font-size:24px;font-weight:800;text-anchor:middle}.nl-mark-pointer,.nl-mark-dot{fill:#dc2626}@media (prefers-color-scheme: dark){:root{--bg: #0f172a;--card: #1e293b;--ink: #e2e8f0;--muted: #94a3b8;--line: #475569;--shadow: 0 6px 20px rgba(0, 0, 0, .35)}.landing{background:linear-gradient(180deg,#16233b 0%,#111c30 45%,var(--bg) 100%)}.quiz{background:linear-gradient(180deg,#131f36 0%,#0f172a 45%,var(--bg) 100%)}.quiz-top{background:#1e293bd9}.quiz-bar{background:#334155}.quiz-close{background:#1e293b}.quiz-close:hover{background:#334155}.ir-choice:hover{background:#16233b}.ir-choice.sel{background:#1e3a5f}.ir-figure,.qp-figure,.review-figure,.ir-choices.figural .ir-choice-select,.qp-choice .qp-choice-body{background:#f4f7fb;border-radius:12px;padding:8px}}
