@font-face{font-family:'Klee One';src:url('./assets/KleeOne-Kana.woff2') format('woff2');font-weight:400;font-display:swap}
:root{--ink:#29283d;--muted:#8a879c;--purple:#5542a9;--purple-light:#efebfb;--mint:#e1f1e6;--green:#39785c;--line:#e9e6ef;--bg:#f7f6fb;--coral:#df806c;--radius:22px;font-family:'Segoe UI',Arial,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit}button:disabled{cursor:default}button{color:inherit}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #a995f4;outline-offset:4px}button{transition:background .16s,border-color .16s,transform .16s}button:hover:not(:disabled){filter:brightness(.98)}button:active:not(:disabled){transform:translateY(1px)}.kana{font-family:'Klee One',cursive;font-weight:400!important}.app-shell{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--line);padding:37px 22px 22px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-family:'Trebuchet MS',sans-serif;font-size:25px;letter-spacing:-1.1px;font-weight:bold;line-height:1.05;padding:0 6px}.brand-second{display:block;font-size:14px;font-weight:400;letter-spacing:1px;margin-top:5px}.brand-mark{display:grid;place-items:center;background:var(--purple);color:#fff;border-radius:12px 12px 12px 3px;width:44px;height:50px;font-size:35px;transform:rotate(-5deg)}.nav-label{font-size:9px;letter-spacing:1.5px;font-weight:700;color:#aaa5ba;margin:55px 12px 14px}.nav-item{display:flex;align-items:center;gap:12px;width:100%;border:0;background:none;text-align:left;padding:14px 13px;border-radius:10px;font-size:12px;font-weight:600;margin-bottom:7px;color:#817c92;white-space:nowrap}.nav-item.active{color:var(--purple);background:var(--purple-light)}.nav-item svg{width:17px;height:17px}.nav-dot{width:5px;height:5px;border-radius:50%;background:var(--purple);margin-left:auto}.sidebar-note{margin-top:auto;padding:25px 12px 30px}.note-star{font-size:36px;color:#9c8cce;display:inline-block;transform:rotate(10deg)}.sidebar-note p{font-size:12px;line-height:1.85;color:#9390a1}.sidebar-note strong{font-weight:500;color:#666176}.sidebar-note>span:last-child{font-family:'Klee One',cursive;font-size:14px;color:#b0a7c6}.local-note{display:flex;align-items:center;gap:7px;color:#a5a0b2;font-size:9px;line-height:1.6;border-top:1px solid var(--line);padding-top:20px}.local-note svg{width:12px;height:12px;flex-shrink:0}main{padding:0 48px;max-width:1600px;width:100%;margin:auto}.topbar{height:91px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:15px}.breadcrumb{font-size:9px;letter-spacing:1.5px;color:#aba6bc;font-weight:600}.breadcrumb span{margin:0 14px;color:#cec9db}.breadcrumb strong{color:#736d87;font-size:11px;letter-spacing:.2px;font-weight:500}.button{border:1px solid var(--line);border-radius:9px;background:#fff;padding:11px 17px;font-size:12px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px}.button svg{width:15px;height:15px}.button.quiet{background:transparent;border-color:#e3deed;color:#706681;font-size:11px}.button.primary{background:var(--purple);border-color:var(--purple);color:#fff}.button.secondary{background:var(--purple-light);border-color:var(--purple-light);color:var(--purple)}.button.positive{background:var(--green);border-color:var(--green);color:#fff}.button:disabled{opacity:.4}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;margin:39px 0 29px;gap:20px}.eyebrow{font-size:9px;letter-spacing:1.8px;font-weight:700;color:#9b93b1}h1{font-family:'Trebuchet MS','Segoe UI',sans-serif;font-size:36px;letter-spacing:-1.2px;margin:10px 0 10px;font-weight:700}h1>span{color:var(--coral)}.page-heading p{font-size:12px;color:#918a9f;margin:0;line-height:1.6}.direction-badge{display:flex;align-items:center;gap:9px;color:#9890a8;font-size:10px;padding-bottom:5px;white-space:nowrap}.direction-badge svg{width:14px;height:14px}.direction-badge b{font-weight:400;margin:0 5px;color:#b9b1c9}.direction-badge .kana{font-size:15px;color:#80748f}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 254px;gap:25px;align-items:start}.session-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 1px 14px;min-height:31px}.batch-heading{font-size:11px;font-weight:600;color:#756c8a}.batch-heading strong{color:var(--purple)}.batch-heading>span{color:#b2a9be;margin-left:7px;font-weight:400;font-size:10px}.prompt-switch{display:flex;background:#ece9f3;border-radius:8px;padding:3px}.prompt-switch button{font-size:9px;font-weight:600;padding:6px 9px;border-radius:6px;border:0;background:transparent;color:#9a91aa;white-space:nowrap}.prompt-switch button.active{background:#fff;color:var(--purple);box-shadow:0 1px 3px #3a28580b}.practice-card{background:#fff;border:1px solid #e6e1ef;box-shadow:0 6px 24px #3b276104;border-radius:var(--radius);padding:25px 30px 22px;min-height:485px;position:relative;overflow:hidden}.exercise-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:23px}.stage-badge{background:var(--mint);color:var(--green);font-size:9px;font-weight:700;letter-spacing:1px;display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:6px}.stage-badge .tiny-dot{background:#77a88a}.step-caption{font-size:10px;color:#a69caf}.question-title{font-size:16px;letter-spacing:-.2px;font-weight:600;text-align:center;margin:0 0 6px}.question-subtitle{text-align:center;font-size:11px;color:#a097ad;line-height:1.6;margin:0 0 12px}.flashcard{display:flex;align-items:center;justify-content:center;flex-direction:column;width:100%;min-height:252px;background:#f7f8f3;border:1px solid #e9ece3;border-radius:15px;margin:22px 0 18px;position:relative;color:var(--ink);overflow:hidden}.flashcard:before{content:'';position:absolute;top:18px;left:20px;width:12px;height:12px;border:1px solid #d2dacd;border-radius:50%}.flashcard:after{content:'';position:absolute;top:18px;right:20px;width:12px;height:12px;border:1px solid #d2dacd;border-radius:50%}.flashcard.revealed{background:#f2effa;border-color:#e8e2f4}.big-romaji{font-family:'Trebuchet MS',sans-serif;font-size:104px;font-weight:400;line-height:1;letter-spacing:-5px;color:#554c69;display:block}.big-kana{font-size:123px;line-height:1.4;color:var(--purple)}.big-kana.combo{font-size:94px}.flip-hint{font-size:10px;color:#a9a0b6;margin-top:26px;display:flex;align-items:center;gap:6px}.flip-hint svg{width:12px;height:12px}.card-back-romaji{font-size:15px;color:#988aac;margin-top:3px}.flash-actions{display:flex;justify-content:center;align-items:center;gap:12px;min-height:43px}.flash-actions .button{min-width:135px}.audio-button{border:1px solid #e4ddef;background:#fff;border-radius:50%;width:38px;height:38px;display:inline-grid;place-items:center;color:var(--purple);flex-shrink:0}.audio-button svg{width:17px;height:17px}.prompt-area{display:flex;align-items:center;justify-content:center;gap:16px;margin:16px 0 20px;min-height:93px}.prompt-area .big-romaji{font-size:76px;letter-spacing:-3px}.prompt-area .big-romaji.long{font-size:60px}.prompt-note{color:#a097ad;font-size:10px;text-align:center;margin:-10px 0 14px}.listen-prompt{display:flex;flex-direction:column;align-items:center;gap:9px}.listen-prompt>.audio-button{width:70px;height:70px;background:var(--purple-light);border:0}.listen-prompt>.audio-button svg{width:27px;height:27px}.listen-prompt>span{font-size:10px;color:#a59aae}.reveal-romaji{border:0;background:transparent;font-size:10px;text-decoration:underline;color:#9b8db3;padding:5px}.choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 18px}.choice{min-height:100px;border:1.5px solid #e7e2ef;border-radius:11px;background:#fff;position:relative;display:flex;align-items:center;justify-content:center}.choice .kana{font-size:56px;line-height:1.6;color:#524866}.choice .kana.combo{font-size:42px}.choice .choice-key{position:absolute;top:10px;left:12px;font-size:9px;color:#b6adbf;border:1px solid #eee9f3;border-radius:4px;min-width:17px;height:18px;display:grid;place-items:center}.choice:hover:not(:disabled){border-color:#a699c9;background:#faf8ff}.choice.correct{border-color:#8ebba2;background:#f0f8f2}.choice.correct .kana{color:var(--green)}.choice.incorrect{border-color:#e8b0a2;background:#fff5f2}.choice.incorrect .kana{color:#bc7463}.choice.dimmed{opacity:.5}.hint-bar{display:flex;justify-content:center;align-items:center;gap:12px;min-height:27px}.text-button{background:none;border:0;padding:3px 0;font-size:11px;color:#8b7ba6;font-weight:500}.text-button:hover{color:var(--purple)}.text-button svg{width:13px;height:13px;vertical-align:middle;margin-right:4px}.feedback{background:#f4f1fa;border:1px solid #e8e0f2;border-radius:12px;margin-top:16px;padding:15px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.feedback.good{background:#f0f7f2;border-color:#dcebe1}.feedback.bad{background:#fff6f2;border-color:#f3dfd7}.feedback-symbol{font-size:20px;color:var(--purple);width:25px}.feedback.good .feedback-symbol{color:var(--green)}.feedback.bad .feedback-symbol{color:#bf806b}.feedback-copy{flex:1;min-width:120px}.feedback-copy strong{font-size:12px;display:block;line-height:1.6}.feedback-copy p{font-size:10px;color:#95869e;line-height:1.65;margin:2px 0 0}.feedback .button{font-size:10px;min-height:36px;padding:8px 14px}.feedback-kana{font-size:30px;vertical-align:middle;margin:0 4px}.practice-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 4px;color:#a89fb5;font-size:9px}.practice-foot>span:first-child{display:flex;align-items:center;gap:6px}.tiny-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#a69abb}.method-note{display:flex;gap:13px;margin:15px 5px 0}.method-symbol{width:31px;height:31px;display:grid;place-items:center;border:1px solid #e9e2f0;border-radius:10px;color:#a395bb;flex-shrink:0}.method-symbol svg{width:17px;height:17px}.method-note strong{font-size:11px;font-weight:600;color:#83758f}.method-note p{font-size:10px;line-height:1.8;margin:5px 0;color:#a69aae;max-width:400px}.progress-column{padding-top:45px}.progress-card{border:1px solid #e7e1ef;background:#fff;border-radius:19px;padding:23px 21px 20px}.card-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}h2,h3{margin:0}.card-heading h2{font-size:13px;font-weight:600}.live-pill{font-size:7px;font-weight:700;letter-spacing:.8px;color:#9b8eaf;background:#f4f1f8;padding:5px;border-radius:5px}.progress-ring{--progress:0%;width:155px;height:155px;border-radius:50%;background:conic-gradient(var(--purple) var(--progress),#f0edf6 0);padding:9px;margin:27px auto 24px;transform:rotate(-90deg)}.progress-ring>div{background:#fff;width:100%;height:100%;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;transform:rotate(90deg);gap:7px}.progress-ring strong{font-family:'Trebuchet MS',sans-serif;font-size:37px;letter-spacing:-1.7px;font-weight:400}.progress-ring strong>span{font-family:'Segoe UI',sans-serif;font-size:15px;letter-spacing:0;color:#bbb0cb;margin-left:2px}.progress-ring>div>span{font-size:8px;color:#a99db7}.progress-metrics{display:grid;grid-template-columns:1fr 1fr;text-align:center;margin-bottom:22px}.progress-metrics>div+div{border-left:1px solid #eee8f3}.progress-metrics strong{display:block;font-size:19px;font-weight:500;color:#6f6085;margin-bottom:5px}.progress-metrics span{font-size:8px;color:#b1a6bc}.progress-card hr{border:0;border-top:1px solid #eee9f4;margin:0 0 20px}.card-heading h3{font-size:11px;font-weight:600;color:#786785}.card-heading>.text-button{font-size:9px}.stage-list{display:grid;gap:17px;margin-top:20px}.stage-row{display:flex;gap:10px;align-items:center;font-size:10px;color:#aca1b7}.stage-number{border:1px solid #e4ddee;border-radius:50%;width:21px;height:21px;display:grid;place-items:center;font-size:8px}.stage-row.current{color:var(--purple);font-weight:600}.stage-row.current .stage-number{background:var(--purple);border-color:var(--purple);color:#fff}.stage-row.done .stage-number{background:#eaf4ed;border-color:#eaf4ed;color:var(--green)}.stage-row.excluded{opacity:.45}.stage-row.excluded>.stage-name{text-decoration:line-through}.stage-row>small{margin-left:auto;font-size:8px;font-weight:400;color:#b9aec4}.focus-card{border:1px solid #e6e1ef;border-radius:16px;padding:20px;margin-top:17px}.focus-card .card-heading>span{font-size:9px;color:#a393b0}.focus-chips{display:flex;flex-wrap:wrap;gap:7px;margin:15px 0}.focus-chip{border:1px solid #e3dcec;padding:7px 9px;border-radius:7px;min-width:30px;text-align:center;font-size:11px;color:#9584a6}.focus-chip.current{background:#eee8fa;border-color:#d7cbed;color:var(--purple)}.focus-chip.learned{background:#edf5ef;border-color:#dcebe1;color:var(--green)}.focus-card p{font-size:9px;line-height:1.7;color:#afa0bc;margin-bottom:12px}.focus-card .text-button{font-size:9px}.handwritten-note{color:#afa0c1;font-size:14px;font-style:italic;text-align:center;margin-top:23px;font-family:'Trebuchet MS',sans-serif;transform:rotate(-5deg)}.handwritten-note span{font-size:25px;display:inline-block;transform:rotate(-20deg);margin-left:7px}footer{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:34px 0 24px;margin-top:16px;color:#bbb1c7;font-size:8px;letter-spacing:.5px}.footer-dot{padding:0 7px}footer a{text-decoration:none;letter-spacing:0}.write-body{display:grid;grid-template-columns:115px minmax(0,1fr);gap:20px;align-items:center;margin:17px 0}.write-body .prompt-area{margin:0;flex-direction:column;gap:16px}.write-body .big-romaji{font-size:64px}.write-body .big-romaji.long{font-size:47px}.drawing-wrap{min-width:0}.drawing-board{position:relative;background:#fcfbfe;border:1.5px solid #e6dfef;border-radius:12px;overflow:hidden;aspect-ratio:1;touch-action:none}.drawing-board.combo-board{aspect-ratio:1.5}.drawing-board:before,.drawing-board:after{content:'';position:absolute;pointer-events:none;z-index:0}.drawing-board:before{width:100%;left:0;top:50%;border-top:1px dashed #e5deef}.drawing-board:after{height:100%;top:0;left:50%;border-left:1px dashed #e5deef}.drawing-board canvas{display:block;position:absolute;inset:0;width:100%;height:100%;touch-action:none;z-index:2;cursor:crosshair}.drawing-placeholder{pointer-events:none;position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#c1b6ce;font-size:10px;z-index:1;gap:5px}.drawing-placeholder svg{width:14px;height:14px}.drawing-tools{display:flex;justify-content:space-between;align-items:center;padding:10px 1px}.drawing-tools>span{font-size:9px;color:#b2a4c0}.drawing-tools button{border:0;background:none;font-size:9px;color:#9a88b0;padding:5px 7px}.writing-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px}.writing-controls .text-button{font-size:10px}.shape-note{font-size:9px;color:#b1a4bf;text-align:center;line-height:1.7;margin:13px 0 0}.reference-box{margin-top:13px;display:flex;align-items:center;gap:16px;background:#f8f5fc;border-radius:11px;padding:10px 14px}.reference-box svg{height:90px;max-width:48%;width:auto;flex-shrink:0}.reference-box>div{font-size:10px;line-height:1.8;color:#a08db0}.reference-box strong{color:#7d6597;display:block;font-weight:600}.reference-strokes path{fill:none;stroke:#716187;stroke-width:3.4;stroke-linecap:round;stroke-linejoin:round}.reference-strokes path.animate{stroke-dasharray:1;stroke-dashoffset:1;animation:draw-stroke .65s ease forwards;animation-delay:calc(var(--i)*.75s)}.stroke-number{font-family:'Segoe UI',sans-serif;font-size:6px;fill:#c4a3b8}.reference-strokes text{pointer-events:none}.match-area{display:grid;grid-template-columns:minmax(95px,.8fr) minmax(0,1.5fr);gap:30px;margin-top:24px;position:relative}.match-column-label{font-size:8px;letter-spacing:1px;color:#b3a6c0;margin:0 0 10px;text-transform:uppercase}.romaji-list{display:grid;gap:9px}.romaji-tile{padding:12px;border:1px solid #e6e0ee;border-radius:8px;background:#fff;font-size:14px;min-height:43px;position:relative}.romaji-tile.active{background:var(--purple-light);color:var(--purple);border-color:#b5a3d8;font-weight:600}.romaji-tile.completed{background:#f4f8f5;border-color:#e4efe7;color:#aac2b2}.romaji-tile.completed:after{content:'✓';font-size:10px;position:absolute;right:9px}.kana-tiles{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;align-content:start}.kana-tile{height:76px;border:1px solid #e6dfef;border-radius:10px;background:#fff}.kana-tile .kana{font-size:39px;line-height:1.5}.kana-tile .kana.combo{font-size:27px}.kana-tile:hover:not(:disabled){background:#f6f1fe;border-color:#b29ecf}.kana-tile.completed{opacity:.3;background:#edf5ef}.kana-tile.wrong{background:#fff2ed;border-color:#e2b09f}.kana-tile.right{background:#eaf5ee;border-color:#98bca5}.completion{text-align:center;padding:20px 5px}.completion-mark{margin:0 auto 17px;width:80px;height:80px;border-radius:27px;background:var(--mint);display:grid;place-items:center;font-size:35px;color:var(--green);transform:rotate(-6deg)}.completion h2{font-family:'Trebuchet MS',sans-serif;font-size:29px;letter-spacing:-1px}.completion>p{font-size:12px;color:#a08eac;line-height:1.8}.completion-stats{display:flex;justify-content:center;gap:38px;margin:28px 0}.completion-stats strong{display:block;font-size:28px;font-weight:400;color:var(--purple)}.completion-stats span{font-size:9px;color:#a493b3}.completion .button{margin:5px}.completion small{display:block;font-size:10px;color:#ad9bbd;line-height:1.8;margin:18px}.modal{border:1px solid #e5ddef;border-radius:22px;background:#fff;padding:30px;color:var(--ink);max-width:710px;width:calc(100% - 32px);max-height:90vh;box-shadow:0 30px 100px #34264830;overscroll-behavior:contain}.modal::backdrop{background:#29203d5e;backdrop-filter:blur(4px)}.modal-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.modal-heading h2{font-family:'Trebuchet MS',sans-serif;font-size:25px;letter-spacing:-.8px;margin-top:8px}.icon-button{width:32px;height:32px;border:1px solid #e9e2f2;background:#fff;border-radius:50%;font-size:20px;color:#9e8eae;display:grid;place-items:center;flex-shrink:0}.modal-intro{font-size:12px;line-height:1.8;color:#9d8caa;margin:16px 0 22px}.modal fieldset{border:0;padding:0;margin:22px 0}.modal legend{font-size:10px;color:#b6a6c4;display:flex;align-items:center;gap:10px;width:100%;margin-bottom:12px}.modal legend>span{font-size:12px;font-weight:600;color:#756081}.modal legend small{margin-left:auto;font-size:9px;color:#b1a0bc;font-weight:400}.set-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.set-option{position:relative;cursor:pointer;border:1.5px solid #e9e1f1;border-radius:12px;padding:15px 12px;display:block;min-width:0}.set-option:has(input:checked){background:#f5f1fc;border-color:#ab94cd}.set-option input{accent-color:var(--purple);position:absolute;right:12px;top:13px}.set-option .kana{font-size:27px;color:#8c739f;display:block;margin:8px 0}.set-option strong{display:block;font-size:11px;font-weight:600;color:#786084;line-height:1.6}.set-option small{font-size:9px;color:#b19cbd;display:block;margin-top:4px}.stage-options{display:grid;grid-template-columns:1fr 1fr;gap:9px}.stage-option{border:1px solid #e9e1f0;border-radius:10px;display:flex;gap:10px;align-items:center;padding:12px;cursor:pointer}.stage-option:has(input:checked){background:#faf7fe;border-color:#c7b6df}.stage-option input{accent-color:var(--purple);width:15px;height:15px;flex-shrink:0}.stage-option strong{font-size:11px;font-weight:600;color:#806b8e;display:block}.stage-option small{font-size:9px;color:#b19cbf;display:block;margin-top:4px;line-height:1.5}.settings-bottom{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:24px}.batch-select{display:flex;gap:12px;align-items:center;font-size:10px;color:#a18bad}.batch-select select{font-size:11px;border:1px solid #e7ddef;border-radius:7px;padding:8px;color:#7f6590;background:#fff}.selection-summary{font-size:10px;color:#a28cb0}.form-error{font-size:11px;color:#b66d62;min-height:14px}.modal-actions{display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:1px solid var(--line);padding-top:19px;margin-top:10px}.modal-actions p{font-size:9px;line-height:1.7;color:#b09cbd;max-width:215px}.library-tabs{display:flex;gap:7px;margin-bottom:20px;flex-wrap:wrap}.library-tabs button{border:1px solid #e8dfef;background:#fff;border-radius:8px;font-size:11px;padding:9px 12px;color:#a18aad}.library-tabs button.active{background:var(--purple-light);border-color:#d9ccec;color:var(--purple)}.library-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.library-character{background:#fcfaff;border:1px solid #eee6f3;border-radius:9px;padding:8px;display:flex;flex-direction:column;align-items:center;gap:4px}.library-character .kana{font-size:34px;color:#74617f;line-height:1.5}.library-character .kana.combo{font-size:27px}.library-character>span:last-child{font-size:9px;color:#b39cbe}.character-detail{background:#f8f4fc;border-radius:14px;padding:20px;margin-top:20px;display:flex;align-items:center;gap:24px}.character-detail[hidden]{display:none}.character-detail>.reference-strokes{width:145px;height:120px}.character-detail strong{font-size:19px;color:#796086}.character-detail p{font-size:10px;color:#a98eb7;line-height:1.8}.writing-tips{padding-left:21px;margin:28px 0 3px;display:grid;gap:18px}.writing-tips li{padding-left:8px;color:#9b80ad;font-size:12px}.writing-tips strong{color:#7c618b;font-size:13px}.writing-tips p{font-size:12px;line-height:1.8;color:#a08bad;margin:6px 0}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,15px);background:#453653;color:#fff;padding:13px 20px;border-radius:10px;font-size:12px;line-height:1.6;box-shadow:0 7px 30px #30203e25;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:calc(100% - 35px);z-index:10}.toast.show{opacity:1;transform:translate(-50%,0)}.noscript{position:fixed;inset:0;background:#fff;padding:30px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@keyframes draw-stroke{to{stroke-dashoffset:0}}@media(min-width:1450px){main{padding:0 65px}.workspace{grid-template-columns:minmax(0,1fr) 280px;gap:32px}.practice-card{min-height:535px}.flashcard{min-height:295px}.progress-card{padding:26px}.progress-ring{width:170px;height:170px}.choice{min-height:120px}.write-body{grid-template-columns:150px minmax(0,1fr)}.drawing-board{max-width:360px;margin:auto}}
@media(max-width:1200px){main{padding:0 28px}.app-shell{grid-template-columns:195px minmax(0,1fr)}.sidebar{padding-left:15px;padding-right:15px}.workspace{grid-template-columns:minmax(0,1fr) 222px;gap:20px}.progress-card{padding:20px 16px}.practice-card{padding:23px 23px 20px}.direction-badge{display:none}h1{font-size:32px}.session-toolbar{flex-wrap:wrap}.progress-column{padding-top:45px}.write-body{grid-template-columns:90px minmax(0,1fr);gap:14px}.write-body .big-romaji{font-size:52px}.write-body .big-romaji.long{font-size:38px}}
@media(max-width:1000px){.app-shell{grid-template-columns:170px minmax(0,1fr)}.brand{gap:9px;font-size:23px}.brand-mark{width:37px;height:45px;font-size:29px}.brand-second{font-size:12px}.nav-item{font-size:10px;gap:8px;padding:13px 9px}.nav-label{font-size:8px;letter-spacing:1px;margin-left:8px}.workspace{grid-template-columns:minmax(0,1fr)}.progress-column{display:grid;grid-template-columns:1.3fr 1fr;gap:17px;padding-top:0}.progress-card{display:grid;grid-template-columns:1fr 1fr;gap:10px 20px}.progress-card>.card-heading:first-child{grid-column:1/-1}.progress-ring{width:115px;height:115px;margin:5px auto;grid-column:1}.progress-ring strong{font-size:29px}.progress-ring>div>span{font-size:6px}.progress-metrics{margin:0;grid-column:1;grid-row:3}.progress-card hr{display:none}.progress-card>.card-heading:nth-of-type(4){grid-column:2;grid-row:2;align-self:start}.progress-card>.stage-list{grid-column:2;grid-row:2/4;margin-top:35px;gap:12px}.focus-card{margin:0;align-self:start}.handwritten-note{display:none}.write-body{grid-template-columns:130px minmax(0,1fr)}.drawing-board{max-width:330px;margin:auto}.practice-card{min-height:485px}.page-heading{margin-top:28px}.topbar{height:76px}.method-note{margin-bottom:16px}footer{margin-top:3px}.practice-foot{font-size:8px}.stage-row>small{display:none}}
@media(max-width:650px){.app-shell{display:block}.sidebar{position:static;height:auto;border-right:0;border-bottom:1px solid var(--line);padding:16px 20px;flex-direction:row;align-items:center;justify-content:space-between}.brand{font-size:21px;padding:0;gap:8px}.brand-mark{width:33px;height:39px;font-size:27px;border-radius:9px}.brand-second{font-size:11px;margin-top:3px}.nav-label,.sidebar-note,.local-note{display:none}.sidebar nav{display:flex;gap:4px}.nav-item{width:auto;padding:10px;margin:0;font-size:0;gap:0}.nav-item svg{width:19px;height:19px}.nav-dot{display:none}main{padding:0 18px}.topbar{height:64px}.breadcrumb{font-size:8px;letter-spacing:1px}.breadcrumb span{margin:0 7px}.breadcrumb strong{font-size:10px}.button.quiet{font-size:10px;padding:9px 10px;min-height:35px}.button.quiet svg{width:13px;height:13px}.page-heading{margin:26px 0 23px}.eyebrow{font-size:8px;letter-spacing:1.4px}h1{font-size:30px;margin:9px 0}.page-heading p{font-size:11px}.session-toolbar{flex-wrap:nowrap;margin-bottom:11px}.batch-heading{font-size:10px}.batch-heading>span{font-size:8px;margin-left:4px}.prompt-switch button{font-size:8px;padding:6px 7px}.practice-card{padding:20px 19px;border-radius:17px;min-height:460px}.exercise-top{margin-bottom:23px}.step-caption{font-size:9px}.question-title{font-size:15px}.question-subtitle{font-size:10px}.flashcard{min-height:245px;margin-top:20px}.big-romaji{font-size:94px}.big-kana{font-size:105px}.big-kana.combo{font-size:79px}.flash-actions .button{min-width:115px;font-size:11px}.choice{min-height:93px}.choices{gap:10px}.choice .kana{font-size:54px}.practice-foot{padding:13px 0;font-size:8px}.practice-foot #keyboard-hint{display:none}.method-note p{font-size:9px}.method-note strong{font-size:10px}.progress-column{grid-template-columns:1fr;gap:13px}.progress-card{grid-template-columns:1fr 1fr;padding:19px}.progress-ring{width:122px;height:122px}.progress-ring>div>span{font-size:7px}.focus-card{padding:18px}.focus-chips{margin:12px 0}.focus-card p{margin:7px 0}.focus-card .text-button{font-size:10px}.focus-card .card-heading h3{font-size:12px}.focus-card .card-heading>span{font-size:10px}.write-body{grid-template-columns:1fr;margin:12px 0;gap:13px}.write-body .prompt-area{flex-direction:row;gap:15px;min-height:65px}.write-body .big-romaji{font-size:57px}.write-body .big-romaji.long{font-size:44px}.drawing-board{max-width:320px}.drawing-board.combo-board{max-width:none}.writing-controls .button{font-size:11px}.shape-note{font-size:8px}.match-area{gap:20px;grid-template-columns:85px minmax(0,1fr)}.kana-tile{height:69px}.kana-tile .kana{font-size:35px}.kana-tile .kana.combo{font-size:25px}.romaji-tile{font-size:13px}.modal{padding:23px 20px;border-radius:17px;max-height:92vh}.modal-heading h2{font-size:21px}.modal-intro{font-size:11px}.set-options{gap:6px}.set-option{padding:13px 8px}.set-option input{right:8px;top:10px}.set-option .kana{font-size:25px}.set-option strong{font-size:9px;min-height:30px}.set-option small{font-size:8px;line-height:1.6}.modal legend{gap:6px}.modal legend small{font-size:8px;max-width:115px;text-align:right;line-height:1.5}.stage-options{gap:7px}.stage-option{padding:10px 8px;gap:7px}.stage-option strong{font-size:10px}.stage-option small{font-size:8px}.settings-bottom{gap:12px;align-items:flex-start}.batch-select{gap:7px;flex-direction:column;align-items:flex-start;font-size:9px}.selection-summary{font-size:9px;line-height:1.8;text-align:right}.modal-actions{gap:12px}.modal-actions p{font-size:8px;max-width:140px}.modal-actions .button{font-size:10px;padding:10px 12px;white-space:nowrap}.library-grid{gap:6px}.library-character{padding:5px}.library-character .kana{font-size:29px}.library-character .kana.combo{font-size:23px}.library-tabs{gap:5px}.library-tabs button{font-size:9px;padding:8px}.character-detail{gap:14px;padding:14px}.character-detail>.reference-strokes{width:120px;height:100px}.character-detail strong{font-size:16px}.character-detail p{font-size:9px}footer{font-size:7px;line-height:1.8;padding-bottom:22px}.completion h2{font-size:26px}.completion-stats{gap:25px}.feedback{gap:8px;padding:12px}.feedback .button{margin-left:auto}.feedback-copy strong{font-size:11px}.feedback-copy p{font-size:9px}.toast{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.reference-strokes path.animate{stroke-dashoffset:0}}
.drawing-placeholder[hidden]{display:none}.romaji-tile svg{width:17px;height:17px;vertical-align:middle;margin-right:7px}.romaji-tile .sound-number{font-size:10px}
.library-character{position:relative}.library-character.learned:after{content:"✓";position:absolute;top:5px;right:7px;color:var(--green);font-size:10px}
.question-subtitle,.prompt-note,.shape-note,.step-caption,.flip-hint,.drawing-tools>span,.drawing-tools button,.feedback-copy p,.modal-intro,.writing-tips p,.set-option small,.stage-option small,.batch-select,.selection-summary,.modal-actions p,.focus-card p{color:#786781}.question-subtitle{font-size:12px}.prompt-note,.shape-note{font-size:11px}.drawing-placeholder{color:#897596}.stage-option strong,.set-option strong{font-size:12px}.set-option small,.stage-option small{font-size:10px}.modal legend small{color:#786781}.character-detail p,.library-character>span:last-child{color:#786781}
.order-option{display:flex;align-items:center;gap:12px;border:1px solid #e9e1f0;border-radius:10px;padding:14px;cursor:pointer}.order-option:has(input:checked){background:#f5f1fc;border-color:#ab94cd}.order-option input{accent-color:var(--purple);width:17px;height:17px;flex-shrink:0}.order-option strong{display:block;font-size:12px;font-weight:600;color:#786781}.order-option small{display:block;font-size:11px;line-height:1.7;color:#786781;margin-top:4px}
.match-area.all-characters{grid-template-columns:95px minmax(0,1fr);gap:20px}.all-characters .romaji-list{max-height:420px;overflow:auto;padding:3px;scrollbar-gutter:stable}.all-characters .kana-tiles{grid-template-columns:repeat(auto-fill,minmax(52px,1fr));max-height:420px;overflow:auto;gap:7px;padding:3px 5px 3px 3px;scrollbar-gutter:stable;align-content:start;overscroll-behavior:contain}.all-characters .kana-tile{height:62px;min-width:0}.all-characters .kana-tile .kana{font-size:33px}.all-characters .kana-tile .kana.combo{font-size:22px}.matching-pool-note{font-size:10px;line-height:1.7;color:#786781;margin:9px 0 0}.all-characters .match-column-label{font-size:9px;letter-spacing:.6px;color:#786781;line-height:1.6;min-height:29px}@media(max-width:650px){.match-area.all-characters{grid-template-columns:65px minmax(0,1fr);gap:10px}.all-characters .kana-tiles{grid-template-columns:repeat(auto-fill,minmax(42px,1fr));max-height:370px;gap:5px}.all-characters .romaji-list{max-height:370px}.all-characters .kana-tile{height:55px}.all-characters .kana-tile .kana{font-size:27px}.all-characters .kana-tile .kana.combo{font-size:19px}.all-characters .romaji-tile{padding:12px 5px}.matching-pool-note{font-size:9px}}
.all-characters .kana-tile{padding:0}.all-characters .kana-tile .kana{white-space:nowrap;display:inline-block}
.topbar{height:auto;min-height:91px;flex-wrap:wrap;padding:15px 0}
.topbar-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;max-width:100%;min-width:0}
.topbar-actions #open-settings{white-space:nowrap}
.sound-controls{display:flex;align-items:center;gap:8px;padding:4px 9px 4px 4px;border:1px solid #e3deed;border-radius:9px;background:#fff;min-width:0}
.sound-controls label{font-size:10px;font-weight:600;color:#706681}
.sound-mute{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;padding:0;border:0;border-radius:6px;background:var(--purple-light);color:var(--purple)}
.sound-mute>span{display:grid;place-items:center}.sound-mute svg{width:17px;height:17px}
.sound-mute[aria-pressed="true"]{background:var(--purple);color:#fff}
.sound-controls input[type="range"]{width:86px;min-width:50px;margin:0;accent-color:var(--purple);cursor:pointer}
.sound-controls input[type="range"]:focus-visible{outline:3px solid #a995f4;outline-offset:4px;border-radius:3px}
.sound-controls output{min-width:32px;text-align:right;font-size:10px;font-variant-numeric:tabular-nums;color:#706681}
@media(max-width:1000px){.topbar{min-height:76px;padding:12px 0}}
@media(max-width:650px){
  .topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;min-height:0;padding:12px 0}
  .topbar .breadcrumb{grid-column:1;grid-row:1;min-width:0;line-height:1.7;letter-spacing:.6px}
  .topbar-actions{display:contents}
  .topbar-actions #open-settings{grid-column:2;grid-row:1}
  .sound-controls{grid-column:1/-1;grid-row:2;width:100%;gap:10px}
  .sound-mute{flex-basis:38px;width:38px;height:38px}
  .sound-controls input[type="range"]{flex:1;min-width:50px;width:0}
  .sound-controls label,.sound-controls output{font-size:11px}
  .sound-controls output{min-width:36px}
}

/* Direction selection and hiragana-to-romaji recall. */
.flash-actions{flex-wrap:wrap}
.direction-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.direction-option{position:relative;display:block;min-width:0;padding:16px;border:1.5px solid #e5dced;border-radius:12px;background:#fff;cursor:pointer}
.direction-option:has(input:checked){border-color:#ab94cd;background:#f5f1fc}
.direction-option:focus-within{outline:3px solid #a995f4;outline-offset:3px}
.direction-option input{position:absolute;right:15px;top:16px;width:16px;height:16px;margin:0;accent-color:var(--purple)}
.direction-preview{display:flex;align-items:center;gap:14px;min-height:44px;margin-bottom:8px;padding-right:24px;color:#79618e;font-family:'Trebuchet MS',sans-serif;font-size:31px;line-height:1}
.direction-preview .kana{font-size:36px;line-height:1.2}
.direction-preview .direction-arrow{font-family:'Segoe UI',sans-serif;font-size:18px;color:#9882b1}
.direction-option strong{display:block;font-size:12px;font-weight:600;line-height:1.6;color:#70577f}
.direction-option small{display:block;margin-top:5px;font-size:11px;line-height:1.7;color:#756880}
.reverse-prompt{display:flex;align-items:center;justify-content:center;min-height:145px;margin:20px 0 22px;text-align:center}
.reverse-prompt .big-kana{display:block;font-size:112px;line-height:1.3;color:#635077}
.reverse-prompt .big-kana.combo{font-size:85px}
.choice .romaji-option{font-family:'Trebuchet MS',sans-serif;font-size:38px;font-weight:400;line-height:1.2;letter-spacing:-1px;color:#554c69}
.typing-form{width:100%;max-width:370px;margin:0 auto}
.typing-form label{display:block;margin-bottom:9px;font-size:12px;font-weight:600;color:#756081}
.typing-form input{display:block;width:100%;min-height:58px;border:1.5px solid #d4c5e4;border-radius:11px;background:#fcfbfe;padding:12px 16px;color:#554c69;font-family:'Trebuchet MS',sans-serif;font-size:28px;text-align:center;letter-spacing:1px;line-height:1.2}
.typing-form input::placeholder{font-family:'Segoe UI',sans-serif;font-size:14px;letter-spacing:0;color:#94849f}
.typing-form input:focus-visible{outline:3px solid #a995f4;outline-offset:3px;border-color:var(--purple)}
.typing-form input[aria-invalid="true"]{border-color:#b66d62}
.typing-form input:disabled{background:#f2eef6;color:#776885}
.typing-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:16px}
.typing-actions .text-button{font-size:11px}
.typing-actions .button{min-width:130px}
.typing-error{min-height:18px;margin:9px 0 0;font-size:11px;line-height:1.6;color:#9d4a42}
@media(max-width:650px){.direction-options{grid-template-columns:1fr;gap:9px}.direction-option{padding:13px 14px 13px 80px;min-height:92px}.direction-preview{position:absolute;left:14px;top:18px;width:60px;min-height:51px;padding:0;margin:0;gap:3px;justify-content:center;font-size:20px}.direction-preview .kana{font-size:24px}.direction-preview .direction-arrow{font-size:13px}.direction-option input{right:13px;top:14px}.direction-option strong{padding-right:23px;font-size:11px}.direction-option small{font-size:10px;line-height:1.7}.reverse-prompt{min-height:125px;margin:17px 0 19px}.reverse-prompt .big-kana{font-size:100px}.reverse-prompt .big-kana.combo{font-size:72px}.choice .romaji-option{font-size:31px}.typing-form{max-width:330px}.typing-form input{min-height:56px;font-size:26px}.typing-actions{gap:10px}.typing-actions .button{min-width:120px;font-size:11px}.typing-actions .text-button{font-size:10px}}
