.segmented{border:0;min-width:0;margin:0;padding:0}.segmented__legend{padding:0 0 var(--space-2);font-size:var(--text-sm);color:var(--color-text-muted);font-weight:600}.segmented__options{gap:var(--space-2);padding:var(--space-1);background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);flex-wrap:wrap;display:flex}.segmented__option{min-height:var(--touch-target);padding:var(--space-2) var(--space-3);border-radius:var(--radius-sm);text-align:center;cursor:pointer;flex:auto;justify-content:center;align-items:center;font-weight:600;display:flex}.segmented__option:has(:focus-visible){outline:3px solid var(--color-focus);outline-offset:2px}.segmented__option--selected{background:var(--color-primary);color:var(--color-primary-text)}.group-toggle{justify-content:center;align-items:center;gap:var(--space-1);min-height:4rem;padding:var(--space-2);background:var(--color-surface-raised);border:2px solid var(--color-border);border-radius:var(--radius-md);cursor:pointer;flex-direction:column;transition:border-color .12s,background-color .12s;display:flex}.group-toggle:hover{border-color:var(--color-border-strong)}.group-toggle:has(:focus-visible){outline:3px solid var(--color-focus);outline-offset:2px}.group-toggle--selected{background:var(--color-primary-soft);border-color:var(--color-primary)}.group-toggle__kana{font-size:var(--text-xl);font-weight:600;line-height:1.2}.group-toggle__count{color:var(--color-text-muted);font-size:.75rem}.group-section{gap:var(--space-3);flex-direction:column;display:flex}.group-section__header{justify-content:space-between;align-items:center;gap:var(--space-2);flex-wrap:wrap;display:flex}.group-section__select-all{align-items:center;gap:var(--space-2);min-height:var(--touch-target);padding:var(--space-1) var(--space-2);font-size:var(--text-sm);cursor:pointer;font-weight:600;display:flex}.group-section__select-all input{width:1.25rem;height:1.25rem;accent-color:var(--color-primary)}.group-section__grid{gap:var(--space-2);grid-template-columns:repeat(auto-fill,minmax(4.5rem,1fr));display:grid}.card-count{gap:var(--space-3);flex-direction:column;display:flex}.card-count__header{justify-content:space-between;align-items:baseline;gap:var(--space-2);flex-wrap:wrap;display:flex}.card-count__options{gap:var(--space-2);flex-wrap:wrap;display:flex}.card-count__preset{min-height:var(--touch-target);min-width:var(--touch-target);background:var(--color-surface-raised);border:2px solid var(--color-border);border-radius:var(--radius-md);cursor:pointer;flex:3.5rem;font-weight:600}.card-count__preset--selected{background:var(--color-primary-soft);border-color:var(--color-primary)}.card-count__preset:disabled{opacity:.4;cursor:not-allowed}.card-count__custom{align-items:center;gap:var(--space-3);font-size:var(--text-sm);font-weight:600;display:flex}.card-count__custom label{min-height:var(--touch-target);align-items:center;display:inline-flex}.card-count__custom input{width:7rem;min-height:var(--touch-target);padding:var(--space-2) var(--space-3);background:var(--color-surface-raised);border:2px solid var(--color-border);border-radius:var(--radius-md)}.config{gap:var(--space-5);flex-direction:column;display:flex}.config__header{gap:var(--space-1);flex-direction:column;display:flex}.config__title{font-size:var(--text-2xl);font-weight:700}.config__ime-hint{margin-top:calc(var(--space-4) * -1)}.config__pool{padding:var(--space-3) var(--space-4);background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);text-align:center}.config__error{padding:var(--space-3) var(--space-4);background:var(--color-incorrect-soft);border:1px solid var(--color-incorrect);border-radius:var(--radius-md);color:var(--color-incorrect);font-weight:600}.config__hint{text-align:center}.config__attempts{align-items:flex-start;gap:var(--space-3);padding:var(--space-3) var(--space-4);background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);cursor:pointer;display:flex}.config__attempts input{width:1.25rem;height:1.25rem;accent-color:var(--color-primary);flex:none;margin-top:.15rem}.config__attempts-text{gap:var(--space-1);flex-direction:column;display:flex}.config__attempts-title{font-weight:600}.config__history{width:100%;min-height:var(--touch-target)}.config__footer{text-align:center;padding-top:var(--space-2)}.answer-note{margin-top:var(--space-2);text-align:center;color:var(--color-text)}.answer-note--spelling,.answer-note--script,.answer-note--partial{font-size:var(--text-base);color:var(--color-text-muted)}.answer-note__typed{color:var(--color-incorrect);text-decoration:line-through}.answer-note__canonical{color:var(--color-text)}.answer-note__pair{justify-content:center;align-items:flex-start;gap:var(--space-5);display:flex}.answer-note__side{align-items:center;gap:var(--space-1);flex-direction:column;min-width:4.5rem;display:flex}.answer-note__kana{font-size:clamp(2rem,10vw,2.75rem);line-height:1.05}.answer-note__label{font-size:var(--text-sm);color:var(--color-text-muted);font-weight:600}.answer-note__romaji{font-size:var(--text-base);color:var(--color-text)}.answer-note--partial .answer-note__kana{font-size:var(--text-2xl);vertical-align:middle}.flashcard__prompt{font-size:var(--text-kana);text-align:center;word-break:break-word;font-weight:500;line-height:1.1}.flashcard__prompt--romaji{letter-spacing:.02em;font-size:clamp(2.5rem,14vw,5rem)}.flashcard__retry{margin-top:var(--space-3);text-align:center;font-size:var(--text-sm);color:var(--color-text-muted)}.flashcard__retry-verdict{color:var(--color-text);font-weight:700}.flashcard__retry-answer{text-decoration:line-through;-webkit-text-decoration-color:var(--color-incorrect);text-decoration-color:var(--color-incorrect);font-weight:600}.flashcard__script-label{margin-top:var(--space-2);font-size:var(--text-base);color:var(--color-text-muted);text-align:center}.flashcard__correction{margin-top:var(--space-3);padding:var(--space-3);font-size:var(--text-base);color:var(--color-text);background:var(--color-incorrect-soft);border:1px solid var(--color-incorrect);border-radius:var(--radius-md);text-align:center}.flashcard__correction-answer{font-weight:700;font-size:var(--text-lg)}.answer{gap:var(--space-3);flex-direction:column;display:flex}.answer__input{min-height:3.25rem;padding:var(--space-3) var(--space-4);text-align:center;font-size:var(--text-xl);background:var(--color-surface-raised);border:2px solid var(--color-border-strong);border-radius:var(--radius-md)}.answer__input:focus-visible{border-color:var(--color-primary)}.feedback{align-items:center;gap:var(--space-2);text-align:center;flex-direction:column;display:flex}.feedback__verdict{font-size:var(--text-xl);font-weight:700}.feedback--correct .feedback__verdict{color:var(--color-correct)}.feedback--incorrect .feedback__verdict{color:var(--color-incorrect)}.feedback__mapping{font-size:var(--text-2xl);word-break:break-word;font-weight:600}.feedback__detail{font-size:var(--text-sm);color:var(--color-text-muted);line-height:1.8}.feedback__submitted{color:var(--color-text);text-decoration:line-through;-webkit-text-decoration-color:var(--color-incorrect);text-decoration-color:var(--color-incorrect);font-weight:600}.feedback__correct-answer{color:var(--color-correct);font-weight:700}.feedback__attempt{font-size:var(--text-sm);color:var(--color-text-muted);font-weight:600}.feedback__copy-prompt{margin-top:var(--space-2);color:var(--color-text);font-weight:600}.progress{gap:var(--space-2);flex-direction:column;display:flex}.progress__row{justify-content:space-between;align-items:baseline;gap:var(--space-3);font-size:var(--text-sm);font-weight:600;display:flex}.progress__tally{gap:var(--space-3);display:flex}.progress__correct{color:var(--color-correct)}.progress__incorrect{color:var(--color-incorrect)}.progress__track{background:var(--color-surface);border:1px solid var(--color-border);border-radius:999px;height:.5rem;overflow:hidden}.progress__fill{background:var(--color-primary);height:100%;transition:width .15s}.quiz{gap:var(--space-5);flex-direction:column;display:flex}.quiz__stage{min-height:min(42vh,18rem);padding:var(--space-5) var(--space-4);background:var(--color-surface-raised);border:1px solid var(--color-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-card);flex-direction:column;justify-content:center;align-items:center;display:flex;overflow:hidden}.quiz__quit{min-height:var(--touch-target);padding:var(--space-2) var(--space-4);color:var(--color-text-muted);font-size:var(--text-sm);cursor:pointer;background:0 0;border:0;align-self:center;text-decoration:underline}.results{gap:var(--space-4);text-align:center;flex-direction:column;display:flex}.results__title{font-size:var(--text-2xl);font-weight:700}.results__score{font-size:var(--text-xl);font-weight:600}.results__accuracy{gap:var(--space-1);flex-direction:column;display:flex}.results__accuracy-value{color:var(--color-primary);font-size:clamp(3rem,18vw,4.5rem);font-weight:700;line-height:1}.results__tally{justify-content:center;gap:var(--space-5);font-weight:600;display:flex}.results__correct{color:var(--color-correct)}.results__incorrect{color:var(--color-incorrect)}.results__missed{gap:var(--space-3);padding:var(--space-4);background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);text-align:left;flex-direction:column;display:flex}.results__missed-list{gap:var(--space-3);grid-template-columns:repeat(auto-fill,minmax(5.5rem,1fr));padding:0;list-style:none;display:grid}.results__missed-item{align-items:center;gap:var(--space-1);padding:var(--space-2);background:var(--color-surface-raised);border:1px solid var(--color-border);border-radius:var(--radius-sm);flex-direction:column;display:flex}.results__missed-kana{font-size:var(--text-2xl);line-height:1.2}.results__missed-romaji{font-size:var(--text-sm);color:var(--color-text-muted)}.results__actions{gap:var(--space-3);margin-top:var(--space-2);flex-direction:column;display:flex}.results__attempts{gap:var(--space-2);padding:var(--space-3);background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);grid-template-columns:repeat(auto-fit,minmax(6rem,1fr));margin:0;display:grid}.results__attempt{gap:var(--space-1);flex-direction:column;display:flex}.results__attempt dt{color:var(--color-text-muted);font-size:.75rem}.results__attempt dd{justify-content:center;align-items:baseline;gap:var(--space-2);font-size:var(--text-lg);font-variant-numeric:tabular-nums;margin:0;font-weight:700;display:flex}.results__attempt-credit{color:var(--color-text-muted);font-size:.75rem;font-weight:500}.results__timing{gap:var(--space-2);padding:var(--space-3);background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);grid-template-columns:1fr 1fr;margin:0;display:grid}.results__timing-item{gap:var(--space-1);flex-direction:column;display:flex}.results__timing dt{color:var(--color-text-muted);font-size:.75rem}.results__timing dd{font-size:var(--text-xl);font-variant-numeric:tabular-nums;margin:0;font-weight:700}.results__shortcut{display:none}@media (hover:hover) and (pointer:fine){.results__shortcut{margin-top:calc(var(--space-2) * -1);display:block}}.results__shortcut kbd{border:1px solid var(--color-border-strong);border-radius:var(--radius-sm);background:var(--color-surface-raised);border-bottom-width:2px;padding:.1em .45em;font-family:inherit;font-size:.9em;font-weight:600}.mistake-row{gap:var(--space-3);padding:var(--space-3) var(--space-4);min-height:var(--touch-target);background:var(--color-surface-raised);border:1px solid var(--color-border);border-radius:var(--radius-md);grid-template-columns:auto 1fr auto;align-items:center;display:grid}.mistake-row__kana{font-size:var(--text-2xl);color:var(--color-text);text-align:center;min-width:2.5ch;line-height:1}.mistake-row__detail{gap:var(--space-1);flex-direction:column;min-width:0;display:flex}.mistake-row__romaji{font-size:var(--text-lg);color:var(--color-text)}.mistake-row__script{font-size:var(--text-sm);color:var(--color-text-muted)}.mistake-row__stats{gap:var(--space-1);text-align:right;flex-direction:column;align-items:flex-end;display:flex}.mistake-row__misses{font-size:var(--text-sm);color:var(--color-text-muted);white-space:nowrap}.mistake-row__progress{align-items:center;gap:var(--space-2);display:flex}.mistake-row__pips{gap:var(--space-1);display:inline-flex}.mistake-row__pip{border:1px solid var(--color-border-strong);background:0 0;border-radius:50%;width:.5rem;height:.5rem}.mistake-row__pip--on{background:var(--color-correct);border-color:var(--color-correct)}.mistake-row__progress-text{font-size:var(--text-sm);color:var(--color-text-muted);white-space:nowrap}@media (max-width:30rem){.mistake-row{grid-template-columns:auto 1fr}.mistake-row__stats{text-align:left;grid-column:2;align-items:flex-start}.mistake-row__progress-text{white-space:normal}}.history{gap:var(--space-4);width:100%;max-width:34rem;padding:var(--space-5) var(--space-4) var(--space-6);flex-direction:column;margin:0 auto;display:flex}.history__header{justify-content:space-between;align-items:center;gap:var(--space-3);display:flex}.history__title{font-size:var(--text-xl);color:var(--color-text);margin:0}.history__back{min-height:var(--touch-target);min-width:var(--touch-target)}.history__count{font-size:var(--text-lg);color:var(--color-text);margin:0}.history__ordering{font-size:var(--text-sm);margin:0}.history__list{gap:var(--space-2);flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.history__empty{gap:var(--space-2);padding:var(--space-6) var(--space-4);text-align:center;background:var(--color-surface);border:1px dashed var(--color-border);border-radius:var(--radius-lg);flex-direction:column;display:flex}.history__empty-title{font-size:var(--text-lg);color:var(--color-text);margin:0}.history__footer{gap:var(--space-3);margin-top:var(--space-4);padding-top:var(--space-4);border-top:1px solid var(--color-border);flex-direction:column;display:flex}.history__clear{min-height:var(--touch-target);color:var(--color-incorrect);align-self:flex-start}.history__confirm{gap:var(--space-3);padding:var(--space-4);background:var(--color-incorrect-soft);border:1px solid var(--color-incorrect);border-radius:var(--radius-md);flex-direction:column;display:flex}.history__confirm-text{color:var(--color-text);margin:0}.history__confirm-actions{gap:var(--space-2);flex-wrap:wrap;display:flex}.history__confirm-actions .button{min-height:var(--touch-target)}.history__note{font-size:var(--text-sm);margin:0}.history__practice{gap:var(--space-4);padding-top:var(--space-4);border-top:1px solid var(--color-border);flex-direction:column;display:flex}.history__practice-note{margin:0}:root{--color-bg:#fff;--color-surface:#f8fafc;--color-surface-raised:#fff;--color-border:#cbd5e1;--color-border-strong:#94a3b8;--color-text:#0f172a;--color-text-muted:#475569;--color-primary:#1d4ed8;--color-primary-text:#fff;--color-primary-soft:#eff6ff;--color-correct:#15803d;--color-correct-soft:#f0fdf4;--color-incorrect:#b91c1c;--color-incorrect-soft:#fef2f2;--color-focus:#1d4ed8;--space-1:.25rem;--space-2:.5rem;--space-3:.75rem;--space-4:1rem;--space-5:1.5rem;--space-6:2rem;--space-7:3rem;--radius-sm:.375rem;--radius-md:.625rem;--radius-lg:1rem;--text-sm:.875rem;--text-base:1rem;--text-lg:1.125rem;--text-xl:1.5rem;--text-2xl:2rem;--text-kana:clamp(4rem, 22vw, 8rem);--touch-target:2.75rem;--font-ui:"Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--shadow-card:0 1px 3px #0f172a1f, 0 8px 24px #0f172a0f}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--color-bg:#0b1120;--color-surface:#111c33;--color-surface-raised:#172444;--color-border:#33415c;--color-border-strong:#64748b;--color-text:#f1f5f9;--color-text-muted:#cbd5e1;--color-primary:#93b4fd;--color-primary-text:#0b1120;--color-primary-soft:#1c2a4d;--color-correct:#86efac;--color-correct-soft:#14311f;--color-incorrect:#fca5a5;--color-incorrect-soft:#3b1414;--color-focus:#93b4fd;--shadow-card:0 1px 3px #0006, 0 8px 24px #0000004d}}:root[data-theme=dark]{--color-bg:#0b1120;--color-surface:#111c33;--color-surface-raised:#172444;--color-border:#33415c;--color-border-strong:#64748b;--color-text:#f1f5f9;--color-text-muted:#cbd5e1;--color-primary:#93b4fd;--color-primary-text:#0b1120;--color-primary-soft:#1c2a4d;--color-correct:#86efac;--color-correct-soft:#14311f;--color-incorrect:#fca5a5;--color-incorrect-soft:#3b1414;--color-focus:#93b4fd;--shadow-card:0 1px 3px #0006, 0 8px 24px #0000004d}@font-face{font-family:Noto Sans JP;src:url(/kana-training/assets/noto-sans-jp-kana-Bp1fuVT1.woff2)format("woff2");font-weight:100 900;font-style:normal;font-display:swap}*,:before,:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--color-bg);min-height:100dvh;color:var(--color-text);font-family:var(--font-ui);font-size:var(--text-base);-webkit-font-smoothing:antialiased;margin:0;line-height:1.5}#root{flex-direction:column;min-height:100dvh;display:flex}h1,h2,h3,p,ul,ol{margin:0}button,input{font:inherit;color:inherit}:focus-visible{outline:3px solid var(--color-focus);outline-offset:2px;border-radius:var(--radius-sm)}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}.app-shell{width:100%;max-width:44rem;padding:var(--space-5) var(--space-4) var(--space-6);gap:var(--space-5);flex-direction:column;flex:1;margin-inline:auto;display:flex}.visually-hidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.button{min-height:var(--touch-target);min-width:var(--touch-target);padding:var(--space-2) var(--space-5);border:1px solid var(--color-border-strong);border-radius:var(--radius-md);background:var(--color-surface-raised);color:var(--color-text);cursor:pointer;font-weight:600;transition:background-color .12s,border-color .12s}.button:hover:not(:disabled){border-color:var(--color-primary)}.button:disabled{opacity:.55;cursor:not-allowed}.button--primary{background:var(--color-primary);border-color:var(--color-primary);color:var(--color-primary-text)}.button--large{width:100%;font-size:var(--text-lg);min-height:3.25rem}.button--danger{background:var(--color-incorrect);border-color:var(--color-incorrect);color:var(--color-primary-text)}.section-title{font-size:var(--text-lg);font-weight:700}.muted{color:var(--color-text-muted);font-size:var(--text-sm)}
