:root{--bg: #0b0b0b;--surface: #141414;--surface-2: #1c1c1c;--text: #f3ede2;--muted: #8d877e;--line: #262626;--line-strong: #363636;--card-border: #333333;--bw: 1px;--card-shadow: none;--header-bg: #000000;--header-fg: #f3ede2;--header-line: #222222;--btn-bg: #f3ede2;--btn-fg: #111111;--ok: #8fd19b;--ng: #ff7a6b;--warn-bg: #2a2310;--warn-text: #f2d469;--halo: rgb(255 255 255 / .08);--halo-strong: rgb(255 255 255 / .2);--sheet-shadow: 0 -8px 32px rgb(0 0 0 / .6);--step-1: #f2d469;--step-2: #ec8a7c;--step-3: #8fb59b;--step-4: #ab9bd6;--on-pastel: #141414;--radius: 14px;--radius-sm: 10px;color-scheme:dark}:root[data-theme=light]{--bg: #ffffff;--surface: #ffffff;--surface-2: #f2f2f2;--text: #141414;--muted: #6b6b6b;--line: #e6e6e6;--line-strong: #d0d0d0;--card-border: #1a1a1a;--bw: 1.5px;--card-shadow: 0 3px 0 rgb(0 0 0 / .06);--header-bg: #141414;--header-fg: #ffffff;--header-line: #141414;--btn-bg: #141414;--btn-fg: #ffffff;--ok: #1f8a3e;--ng: #d63b2f;--warn-bg: #fff3c4;--warn-text: #5c4300;--halo: rgb(0 0 0 / .06);--halo-strong: rgb(0 0 0 / .14);--sheet-shadow: 0 -6px 28px rgb(0 0 0 / .14);--step-1: #f9e17e;--step-2: #f5b3cf;--step-3: #a6e0e4;--step-4: #ccb3f0;color-scheme:light}:root{--accent-d: #ec8a7c;--accent-l: #f9e17e}:root,[style*=--accent-d]{--accent: var(--accent-d);--accent-ink: var(--accent);--fill: color-mix(in srgb, var(--accent) 15%, #121212);--fill-soft: color-mix(in srgb, var(--accent) 8%, #121212);--fill-border: color-mix(in srgb, var(--accent) 40%, #2a2a2a);--fill-divider: color-mix(in srgb, var(--accent) 22%, #2a2a2a);--on-fill-glyph: var(--accent);--dot-on: var(--accent);--dot-line: color-mix(in srgb, var(--accent) 55%, #444);--bar-fill: var(--accent)}:root[data-theme=light],:root[data-theme=light] [style*=--accent-d]{--accent: var(--accent-l);--accent-ink: color-mix(in srgb, var(--accent) 45%, #000);--fill: var(--accent);--fill-soft: color-mix(in srgb, var(--accent) 35%, #fff);--fill-border: #1a1a1a;--fill-divider: rgb(0 0 0 / .16);--on-fill-glyph: #141414;--dot-on: #141414;--dot-line: #141414;--bar-fill: var(--accent)}[style*=--c-d]{--c: var(--c-d);--c-fill: color-mix(in srgb, var(--c) 14%, #121212);--c-border: color-mix(in srgb, var(--c) 38%, #2a2a2a);--c-sel: var(--c);--play-bg: var(--c);--play-fg: #141414;--play-border: transparent}:root[data-theme=light] [style*=--c-d]{--c: var(--c-l, var(--c-d));--c-fill: var(--c);--c-border: #1a1a1a;--c-sel: #141414;--play-bg: #ffffff;--play-fg: #141414;--play-border: #141414}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Noto Sans JP,system-ui,sans-serif;line-height:1.6;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:not-allowed}h1,h2,h3,h4{margin:0;line-height:1.3}p{margin:.25rem 0}:focus-visible{outline:2px solid var(--text);outline-offset:2px}.app{max-width:1080px;margin:0 auto;padding:0 40px 80px}.muted{color:var(--muted)}.small{font-size:.82rem}.center{text-align:center}.row{display:flex;gap:12px;justify-content:center;margin-top:20px;flex-wrap:wrap}.block{display:block;width:100%;text-align:center}.arrow{flex:none}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;margin-bottom:32px;background:var(--header-bg);color:var(--header-fg);box-shadow:0 0 0 100vmax var(--header-bg);clip-path:inset(0 -100vmax);border-bottom:1px solid var(--header-line)}.logo{display:inline-flex;align-items:center}.logo-text{font-family:Noto Sans,Noto Sans JP,sans-serif;font-weight:800;font-size:1.3rem;letter-spacing:-.01em}.logo-text span{color:var(--c-d)}:root[data-theme=light] .logo-text span{color:var(--header-fg)}.topnav{display:flex;gap:28px;font-weight:700;font-size:.9rem}.topnav a{padding:4px 2px;border-bottom:2px solid transparent;opacity:.85}.topnav a:hover,.topnav-on{border-bottom-color:currentColor;opacity:1}.close{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:.9rem}.btn,.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:0 22px;border:none;border-radius:999px;background:var(--btn-bg);color:var(--btn-fg);font-weight:700;font-size:.92rem;transition:filter .12s,transform .08s}.btn:hover:not(:disabled),.primary:hover:not(:disabled){filter:brightness(1.15)}.btn:active:not(:disabled),.primary:active:not(:disabled){transform:translateY(1px)}.btn:disabled,.primary:disabled{background:var(--surface-2);color:var(--muted)}.btn-ghost,.secondary{background:transparent;color:var(--text);box-shadow:inset 0 0 0 var(--bw) var(--card-border)}.btn-ghost:hover,.secondary:hover{background:var(--surface-2)}.btn-block{width:100%}.btn-wide{min-width:280px;min-height:52px}.btn-sm{min-height:32px;padding:0 14px;font-size:.8rem}a.primary,a.secondary{text-align:center}.btn .arrow,.primary .arrow{width:18px;height:18px}.eyebrow{font-size:.78rem;color:var(--muted);font-weight:500;margin-bottom:4px}.section-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:14px}.section-title{font-size:1.25rem;font-weight:900;margin:0 0 14px}.section-head .section-title{margin:0}.section-note{font-size:.78rem;color:var(--muted)}.page-head{display:flex;align-items:baseline;gap:10px;margin-bottom:24px}.page-title{font-size:1.5rem;font-weight:900}.page-sub{font-size:.85rem;font-weight:700;color:var(--muted)}.back{align-self:center;display:grid;place-items:center;width:32px;height:32px;margin-left:-6px;border-radius:50%}.back:hover{background:var(--surface-2)}.back svg{width:20px;height:20px}.crumb{font-size:.8rem;color:var(--muted)}.pill{display:inline-block;font-size:.78rem;font-weight:700;padding:2px 12px;border-radius:999px;background:var(--fill);color:var(--text)}:root[data-theme=light] .pill{color:#141414}.tile{flex:none;display:grid;place-items:center;background:var(--fill);color:var(--on-fill-glyph);border:var(--bw) solid var(--fill-border);border-radius:var(--radius-sm);font-weight:700;line-height:1}.tile span{display:block;line-height:1}.tile-md{width:48px;height:48px;font-size:1.7rem}.tile-xl{width:128px;height:128px;border-radius:var(--radius);font-size:5rem;box-shadow:var(--card-shadow)}.home-head{margin-bottom:36px}.home-title{font-size:clamp(1.7rem,3.6vw,2.5rem);font-weight:900;letter-spacing:-.01em;line-height:1.25}.home-lead{font-size:.98rem;margin-top:12px;line-height:1.75}.script-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.script-card{display:flex;flex-direction:column;background:var(--fill);border:var(--bw) solid var(--fill-border);border-radius:var(--radius);box-shadow:var(--card-shadow);padding:18px 18px 12px;transition:transform .12s,box-shadow .12s}.script-card:hover{transform:translateY(-2px)}.script-card-top{display:flex;align-items:center;gap:18px;min-height:64px}.script-card-glyph{flex:none;width:64px;text-align:center;font-size:3.1rem;font-weight:700;line-height:1;color:var(--on-fill-glyph)}.script-card-body{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}.script-card-name{font-weight:900;font-size:1.05rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.script-card-progress{display:flex;align-items:center;justify-content:space-between;gap:10px}.script-card-count{font-size:.75rem;font-variant-numeric:tabular-nums;opacity:.8;flex:none}.script-card-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding-top:10px;border-top:1px solid var(--fill-divider)}.script-card-meta{font-size:.82rem;font-weight:500}.script-card-resume .script-card-meta{font-weight:700}.round-arrow{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--btn-bg);color:var(--btn-fg);flex:none}.round-arrow .arrow{width:16px;height:16px}.lesson-dots{display:flex;flex-wrap:wrap;gap:5px}.ldot{width:9px;height:9px;border-radius:50%;border:1.2px solid var(--dot-line)}.ldot-on{background:var(--dot-on);border-color:var(--dot-on)}.home-footer{display:flex;justify-content:space-between;gap:16px;margin-top:40px;padding-top:16px;border-top:1px solid var(--line);font-size:.78rem;color:var(--muted)}.home-footer a:hover{color:var(--text)}.hero{display:flex;align-items:center;justify-content:space-between;gap:32px;margin-bottom:32px}.hero-body{min-width:0;display:flex;flex-direction:column;align-items:flex-start}.hero-title{font-size:clamp(1.3rem,2.6vw,1.8rem);font-weight:900;line-height:1.3}.hero-stats{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 18px}.stat{border:var(--bw) solid var(--card-border);border-radius:8px;padding:3px 12px;font-size:.82rem}.stat b{margin-left:6px;font-weight:700}.hero-intro{color:var(--muted);font-size:.8rem;margin-top:14px;max-width:40em}.course-body{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:24px;align-items:start}.lessons{list-style:none;margin:0;position:relative;padding:0 0 0 56px;display:flex;flex-direction:column;gap:10px}.lessons:before{content:"";position:absolute;left:19px;top:22px;bottom:22px;width:2px;background:var(--card-border)}.lesson-link{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;row-gap:2px;align-items:center;position:relative;min-height:58px;padding:10px 16px 10px 18px;background:var(--surface);border:var(--bw) solid var(--card-border);border-radius:12px}a.lesson-link{transition:transform .1s}a.lesson-link:hover{transform:translateY(-1px)}.lesson-num{position:absolute;left:-56px;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--bg);border:var(--bw) solid var(--card-border);font-size:.85rem;font-weight:900;font-variant-numeric:tabular-nums}.lesson-title{grid-column:1;grid-row:1;font-weight:900;font-size:.95rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lesson-chars{grid-column:1;grid-row:2;display:flex;flex-wrap:wrap;gap:2px 10px;font-size:.95rem;overflow:hidden;max-height:3em}.lesson-chars:empty{display:none}.lesson-action{grid-column:2;grid-row:1 / span 2;display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:.85rem;color:var(--muted)}.lesson-action svg{width:16px;height:16px}.lesson-current .lesson-link{background:var(--fill);border-color:var(--fill-border);box-shadow:var(--card-shadow)}.lesson-current .lesson-num{background:var(--fill);border-color:var(--fill-border)}.lesson-current .lesson-action{background:var(--btn-bg);color:var(--btn-fg);border-radius:999px;padding:6px 16px}.lesson-done .lesson-link{background:var(--fill-soft)}.lesson-done .lesson-num{background:var(--btn-bg);color:var(--btn-fg);border-color:var(--btn-bg)}.lesson-done .lesson-chars{color:var(--muted)}.lesson-stars{color:var(--accent-ink);letter-spacing:1px;font-size:.85rem}:root[data-theme=light] .lesson-stars{color:#141414}.star-off{color:var(--line-strong)}.free{border:var(--bw) solid var(--card-border);border-radius:var(--radius);padding:18px 16px;background:var(--surface);box-shadow:var(--card-shadow);position:sticky;top:16px}.free .section-title{font-size:1.05rem;margin-bottom:4px}.free-lead{color:var(--muted);font-size:.8rem}.free-links{display:grid;grid-template-columns:1fr;gap:8px;margin-top:12px}.free-links a{display:flex;justify-content:space-between;align-items:center;border:var(--bw) solid var(--card-border);border-radius:var(--radius-sm);padding:9px 14px;font-weight:700;font-size:.88rem}.free-links a:after{content:"→"}.free-links a:hover{background:var(--surface-2)}.congrats{text-align:center;font-weight:700;margin:12px 0}.lesson-top{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}.lesson-heading{flex:1;min-width:0;max-width:560px}.lesson-h1{font-size:1.2rem;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}.lesson-progress{display:flex;align-items:center;gap:14px;margin-top:8px}.bar{flex:1;height:8px;border-radius:99px;background:var(--surface-2);overflow:hidden}.bar-fill{height:100%;border-radius:99px;background:var(--bar-fill);transition:width .25s ease}.bar-count{flex:none;font-size:.8rem;font-variant-numeric:tabular-nums}.steps{display:flex;gap:6px}.step{font-weight:700;font-size:.82rem;padding:5px 14px;border-radius:var(--radius-sm);border:var(--bw) solid var(--card-border);color:var(--muted);white-space:nowrap}.step-done{color:var(--text)}.step-on{background:var(--btn-bg);color:var(--btn-fg);border-color:var(--btn-bg)}.intro{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:40px;align-items:start}.crumb-row{display:flex;align-items:center;gap:14px}.intro-title{font-size:clamp(1.7rem,3.6vw,2.4rem);font-weight:900;margin:14px 0 10px}.intro-text{font-size:.98rem;line-height:1.8}.intro-chars{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:12px;margin:24px 0}.char-tile{display:grid;place-items:center;aspect-ratio:1 / 1.05;background:var(--fill);border-radius:var(--radius);color:var(--on-fill-glyph)}.char-tile .glyph-lg{font-size:2.8rem;line-height:1.2}.intro-notes{border-top:1px solid var(--line);padding-top:14px;font-size:.85rem;color:var(--muted)}.flow{border:var(--bw) solid var(--card-border);border-radius:18px;padding:24px 22px;background:var(--surface);box-shadow:var(--card-shadow)}.flow-title{font-size:1.15rem;font-weight:900;margin-bottom:18px}.flow-steps{list-style:none;padding:0;margin:0 0 22px;display:flex;flex-direction:column;gap:22px;position:relative}.flow-steps:before{content:"";position:absolute;left:19px;top:20px;bottom:20px;width:1px;background:var(--line-strong)}.flow-step{display:flex;align-items:center;gap:18px;position:relative}.flow-num{flex:none;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--n);color:var(--on-pastel);font-size:.85rem;font-weight:700}.flow-body{display:flex;flex-direction:column}.flow-step-title{font-weight:900;font-size:.95rem}.flow-step-sub{font-size:.8rem;color:var(--muted)}.learn-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:stretch}.learn-card{position:relative;display:grid;place-items:center;min-height:380px;background:var(--fill);border:var(--bw) solid var(--fill-border);border-radius:18px;box-shadow:var(--card-shadow);color:var(--on-fill-glyph)}.learn-card-label{position:absolute;top:18px;left:22px;font-size:.82rem;color:var(--text)}:root[data-theme=light] .learn-card-label{color:#141414}.learn-card .glyph-xl{font-size:9rem;line-height:1.2}.learn-side{display:flex;flex-direction:column;gap:18px}.learn-heading{font-size:clamp(1.25rem,2.4vw,1.6rem);font-weight:900}.speak-row{display:flex;flex-wrap:wrap;gap:10px}.speak-pill{display:inline-flex;align-items:center;gap:12px;padding:12px 28px;border-radius:999px;background:var(--fill);color:var(--text);border:var(--bw) solid var(--fill-border);font-weight:900;font-size:1rem;transition:transform .08s,filter .12s}:root[data-theme=light] .speak-pill{color:#141414}.speak-pill:hover:not(:disabled){filter:brightness(1.05)}.speak-pill:active:not(:disabled){transform:scale(.97)}.speak-pill:disabled{opacity:.4}.hint-card{border:var(--bw) solid var(--card-border);border-radius:var(--radius);padding:18px 22px;background:var(--surface)}.hint-notes{margin-top:14px;padding-top:12px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:6px}.hint-card>.hint-notes:first-child{margin-top:0;padding-top:0;border-top:none}.hint-note{display:flex;gap:10px;align-items:flex-start;font-size:.82rem;color:var(--muted);margin:0}.hint-note .speaker-icon{margin-top:3px}.learn-next{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:28px}.learn-next-note{font-size:.8rem;color:var(--muted)}.minibar{display:flex;justify-content:space-between;align-items:center;gap:12px;height:38px;padding:0 14px;margin-bottom:14px;border:var(--bw) solid var(--card-border);border-radius:var(--radius-sm)}.minibar-title{font-size:.82rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.pips{display:flex;gap:6px;flex:0 1 auto;min-width:0;overflow:hidden}.pip{flex:0 1 26px;min-width:4px;height:6px;border-radius:99px;background:var(--surface-2)}.pip-done{background:var(--btn-bg)}.pip-on{background:var(--bar-fill)}.result{text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px}.result h3{font-size:1.5rem;font-weight:900}.result h4{margin-top:16px;align-self:stretch;text-align:left}.stars{font-size:2.4rem;letter-spacing:6px}.star-on{color:var(--accent-ink)}:root[data-theme=light] .star-on{color:#141414}.score{font-size:2.4rem;font-weight:900}.quiz{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:16px;align-items:start}.prompt{position:relative;height:400px;overflow:hidden;display:flex;flex-direction:column;background:var(--surface);border:var(--bw) solid var(--card-border);border-radius:18px;box-shadow:var(--card-shadow);padding:22px 24px}.prompt-head{min-height:5.6em}.prompt-title{font-size:1.3rem;font-weight:900}.prompt-sub{font-size:.85rem;color:var(--muted);margin-top:2px}.prompt-main{flex:1;display:grid;place-items:center;min-height:0}.prompt-main .glyph-xl{font-size:8rem;line-height:1.2}.prompt-desc{font-size:1rem}.prompt-ok{border-color:var(--ok)}.prompt-ng{border-color:var(--ng)}.qhint{width:fit-content;margin-bottom:8px;font-size:.75rem;font-weight:700;color:var(--text);background:var(--fill);border-radius:99px;padding:1px 10px}:root[data-theme=light] .qhint{color:#141414}.answer-col{display:flex;flex-direction:column;gap:14px}.choices{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:150px;gap:12px}.choice{position:relative;display:grid;place-items:center;background:var(--c-fill);border:var(--bw) solid var(--c-border);border-radius:var(--radius);box-shadow:var(--card-shadow);cursor:pointer;-webkit-user-select:none;user-select:none;overflow:hidden;transition:transform .1s,border-color .12s,opacity .12s}@media(hover:hover){.choice:not(.choice-correct):not(.choice-wrong):not(.choice-dim):not(.choice-selected):hover{transform:translateY(-1px)}}.choice-letter{position:absolute;top:10px;left:14px;font-size:1rem;font-weight:900;line-height:1.1}:root[data-theme=light] .choice{color:#141414}.choice-radio{position:absolute;top:10px;right:10px;width:24px;height:24px;border-radius:50%;display:none;place-items:center;background:var(--c-sel);color:var(--bg)}:root[data-theme=light] .choice-radio{color:#fff}.choice-radio svg{width:15px;height:15px;display:block}.choice-selected{border-color:var(--c-sel);box-shadow:0 0 0 1.5px var(--c-sel),var(--card-shadow)}.choice-selected .choice-radio{display:grid}.choice .glyph{line-height:1.2}.choice .glyph-lg{font-size:3.2rem}.play-wrap{display:flex;flex-direction:column;align-items:center;gap:6px}.play-label{font-size:.75rem;font-weight:700}.play{display:grid;place-items:center;padding:0;width:58px;height:58px;border-radius:50%;background:var(--play-bg);color:var(--play-fg);border:var(--bw) solid var(--play-border);transition:transform .08s,box-shadow .12s}.play:hover:not(:disabled){box-shadow:0 0 0 6px var(--halo)}.play:active:not(:disabled){transform:scale(.94)}.play:disabled{opacity:.35}.play-on{box-shadow:0 0 0 5px var(--halo-strong)}.play-icon{width:42%;height:42%;display:block}.play-xl{width:104px;height:104px}.play-accent{background:var(--fill);color:var(--text);border:var(--bw) solid var(--fill-border)}:root[data-theme=light] .play-accent{color:#141414}.choice-correct{border-color:var(--ok);box-shadow:0 0 0 1.5px var(--ok)}.choice-wrong{border-color:var(--ng);box-shadow:0 0 0 1.5px var(--ng)}.choice-dim{opacity:.45}.choice-dim.choice-playing{opacity:1}.choice-playing{box-shadow:0 0 0 2px var(--text)}.choice-reveal{position:absolute;right:14px;bottom:6px}.choice-reveal .glyph-md{font-size:1.6rem}.choice-tag{position:absolute;top:10px;right:10px;font-size:.7rem;font-weight:700;border-radius:99px;padding:1px 10px;color:#fff;white-space:nowrap}.choice-tag-ok{background:var(--ok)}.choice-tag-ng{background:var(--ng)}:root:not([data-theme=light]) .choice-tag{color:#111}.answer-col .btn-block{min-height:52px;font-size:1rem}.choice-help{text-align:center;color:var(--muted);font-size:.78rem;margin:-4px 0 0;min-height:1.6em}.result-box{display:flex;flex-direction:column;gap:10px;height:100%}.result-verdict{font-size:1.3rem;font-weight:900}.result-verdict.ok{color:var(--ok)}.result-verdict.ng{color:var(--ng)}.result-main{flex:1;display:grid;place-items:center;min-height:0}.result-main .glyph-xl{font-size:5.5rem;line-height:1.2}.result-row{display:flex;align-items:center;gap:12px;padding:4px 10px;border-radius:var(--radius-sm);background:var(--surface-2);flex-wrap:wrap}.result-row .glyph-md{min-width:2em;text-align:center;font-size:1.5rem}.result-row-ng{background:color-mix(in srgb,var(--ng) 10%,var(--surface))}.result-label{font-size:.8rem;font-weight:700;width:3.4em;flex:none;color:var(--ok)}.result-row-ng .result-label{color:var(--ng)}.result-why{font-size:.78rem;color:var(--muted)}.result-again{font-size:.8rem;color:var(--muted)}.glyph{line-height:1.5;unicode-bidi:isolate}.glyph-sm{font-size:1.1rem}.glyph-md{font-size:1.9rem}.glyph-lg{font-size:2.6rem}.glyph-xl{font-size:4.6rem}.detail{position:relative;background:var(--surface);border:var(--bw) solid var(--card-border);border-radius:var(--radius);padding:16px 20px}.detail-close{position:absolute;top:6px;right:10px;border:none;background:none;font-size:1.5rem;color:var(--muted)}.detail-main{display:flex;gap:18px;align-items:center}.detail-main .glyph{min-width:90px;text-align:center}.detail-info{display:flex;flex-direction:column;gap:4px;align-items:flex-start}.note{font-size:.85rem;color:var(--muted);margin-top:8px}.note .speaker-icon{display:inline-block;vertical-align:-2px}.forms{margin-top:12px;border-top:1px dashed var(--line-strong);padding-top:8px}.forms-title{font-size:.8rem;color:var(--muted)}.forms-row{display:flex;flex-direction:row-reverse;justify-content:space-around}.form{text-align:center}.form-glyph{font-size:2rem;line-height:1.6}.form-label{font-size:.75rem;color:var(--muted)}.speak{display:inline-grid;place-items:center;border:var(--bw) solid var(--card-border);background:var(--surface);border-radius:99px;padding:5px 12px}.speak:disabled{opacity:.4}.speaker-icon{display:block;flex:none}.speak-big{display:inline-flex;gap:8px;align-items:center;padding:8px 18px;font-size:.88rem;font-weight:700;background:var(--fill);border-color:var(--fill-border)}:root[data-theme=light] .speak-big{color:#141414}.speak-pair{display:flex;gap:8px;flex-wrap:wrap}.credit-line{display:block;margin-top:4px;font-size:.75rem;color:var(--muted)}.credit-line a,.credits a{color:var(--accent-ink);text-decoration:underline}.tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:0 0 24px;position:sticky;top:0;z-index:5;background:var(--bg);padding:6px 0}.tab{text-align:center;padding:8px 4px;font-weight:700;font-size:.85rem;white-space:nowrap;border:var(--bw) solid var(--card-border);border-radius:var(--radius-sm);color:var(--muted)}.tab-on{background:var(--btn-bg);color:var(--btn-fg);border-color:var(--btn-bg)}.warn{background:var(--warn-bg);color:var(--warn-text);border-radius:var(--radius-sm);padding:10px 14px;font-size:.85rem;margin:8px 0 16px}.warn code{font-size:.85em}.tips{background:var(--surface);border:var(--bw) solid var(--card-border);border-radius:var(--radius);padding:12px 16px 12px 34px;margin:0 0 20px;font-size:.9rem}.group{margin-bottom:24px}.group h3{font-size:1.05rem;font-weight:900}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:8px;margin-top:8px}.cell{display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--surface);border:var(--bw) solid var(--card-border);border-radius:var(--radius-sm);padding:6px 4px;min-height:90px}.cell:hover{background:var(--fill-soft)}.cell-active{background:var(--fill);border-color:var(--fill-border)}.cell-mastered{background:var(--fill-soft)}.cell-static{cursor:default}.cell-roman{font-size:.78rem;color:var(--muted);text-align:center}.sheet{position:fixed;left:0;right:0;bottom:0;z-index:10;padding:0 12px 12px;display:flex;justify-content:center;pointer-events:none}.sheet .detail{pointer-events:auto;width:100%;max-width:760px;box-shadow:var(--sheet-shadow);animation:up .18s ease-out}@keyframes up{0%{transform:translateY(20px);opacity:0}}.quiz-setup{display:flex;flex-direction:column;gap:14px;align-items:center;text-align:center}.quiz-setup h3{font-size:1.2rem;font-weight:900}.chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.chip{border:var(--bw) solid var(--card-border);background:transparent;border-radius:99px;padding:6px 16px;font-weight:700}.chip-on{background:var(--btn-bg);color:var(--btn-fg);border-color:var(--btn-bg)}.chip-sm{padding:2px 12px;font-size:.8rem;white-space:nowrap}.progress{height:8px;background:var(--surface-2);border-radius:99px;overflow:hidden;margin-bottom:6px}.progress-bar{height:100%;background:var(--bar-fill);transition:width .2s}.words .prompt{height:auto;min-height:220px;display:grid;place-items:center;margin-bottom:16px}.words>.primary{display:flex;margin:0 auto}.callout{border:1px dashed var(--line-strong);border-radius:var(--radius);padding:10px 14px;margin:0 0 16px}.feedback{margin-top:16px;display:flex;flex-direction:column;gap:12px;align-items:stretch}.answer{text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px}.meaning{color:var(--muted)}.pieces{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.piece{background:var(--surface);border:var(--bw) solid var(--card-border);border-radius:var(--radius-sm);padding:4px 12px;text-align:center;min-width:64px}button.piece{cursor:pointer;display:flex;flex-direction:column;align-items:center}button.piece:disabled{cursor:default}.piece-parts{display:flex;gap:4px;justify-content:center;font-size:.78rem;color:var(--muted)}.word-prompt{position:relative;gap:6px;padding:34px 20px 26px}.words .word-prompt .glyph-xl{font-size:5.5rem;line-height:1.25;text-align:center;overflow-wrap:anywhere}.word-prompt-open{border-color:var(--ok)}.word-label{position:absolute;top:14px;left:16px;font-size:.75rem;font-weight:700;background:var(--fill);border-radius:99px;padding:1px 10px}.word-meaning{font-size:1.05rem;font-weight:700;color:var(--muted)}.word-steps{display:flex;flex-direction:column;gap:14px}.word-howto{list-style:none;padding:0;margin:0;display:flex;justify-content:center;gap:8px;flex-wrap:wrap;counter-reset:wh}.word-howto li{counter-increment:wh;font-size:.8rem;color:var(--muted);display:inline-flex;align-items:center;gap:6px}.word-howto li:before{content:counter(wh);display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--surface-2);color:var(--text);font-weight:700;font-size:.72rem}.word-howto li+li:after{content:none}.word-hint{display:flex;flex-direction:column;gap:8px;padding:12px;border:1px dashed var(--line-strong);border-radius:var(--radius)}.word-actions{margin-top:0}.word-ask{text-align:center;font-weight:700;margin-top:4px}.word-grade{margin-top:0}.word-grade .primary,.word-grade .secondary{min-width:180px;min-height:52px}.word-stages{display:flex;gap:8px;margin-bottom:14px}.word-stage{display:inline-flex;align-items:center;gap:8px;font-size:.82rem;font-weight:700;color:var(--muted);border:var(--bw) solid var(--line-strong);border-radius:99px;padding:3px 14px 3px 4px}.word-stage b{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--surface-2);font-size:.75rem}.word-stage-on{color:var(--text);border-color:var(--card-border);background:var(--fill)}.word-stage-on b{background:var(--btn-bg);color:var(--btn-fg)}.word-stage-done b{background:var(--ok);color:var(--bg)}.wlisten{display:flex;flex-direction:column;gap:14px}.wlisten-q{display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--surface);border:var(--bw) solid var(--card-border);border-radius:18px;box-shadow:var(--card-shadow);padding:20px 24px}.wlisten-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.wchoice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:120px;padding:12px;background:var(--surface);border:var(--bw) solid var(--card-border);border-radius:var(--radius);box-shadow:var(--card-shadow);color:var(--text)}.wchoice:hover{background:var(--surface-2)}.wchoice .glyph-lg{font-size:2.4rem;line-height:1.3;overflow-wrap:anywhere;text-align:center}.wchoice.choice-correct{border-color:var(--ok);box-shadow:inset 0 0 0 2px var(--ok)}.wchoice.choice-wrong{border-color:var(--ng);box-shadow:inset 0 0 0 2px var(--ng)}.wchoice.choice-dim{opacity:.55}.wchoice-meaning{font-size:.8rem;color:var(--muted)}.result-words{align-self:stretch;display:flex;flex-direction:column;align-items:center;gap:12px;margin:14px 0 4px;padding:20px;border-radius:18px;background:var(--fill-soft);border:var(--bw) solid var(--fill-border)}.result-words-title{margin:0!important;text-align:center!important;font-size:1.1rem}.result-words-title b{font-size:1.6rem;color:var(--accent-ink)}.word-gallery{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.word-tile{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:120px;padding:12px 16px 10px;background:var(--surface);border:var(--bw) solid var(--card-border);border-radius:var(--radius);box-shadow:var(--card-shadow);color:var(--text)}.word-tile:hover:not(:disabled){transform:translateY(-1px)}.word-tile .glyph-lg{font-size:2.2rem;line-height:1.3}.word-tile-meaning{font-size:.8rem;color:var(--muted)}.word-tile-ok{font-size:.7rem;font-weight:700;color:var(--ok)}.drill-intro{max-width:560px;margin:8px auto 0;display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;padding:30px 26px 22px;background:var(--surface);border:var(--bw) solid var(--card-border);border-radius:18px;box-shadow:var(--card-shadow)}.drill-intro-badge{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;font-size:2.2rem;font-weight:900;line-height:1;background:var(--fill);border:var(--bw) solid var(--fill-border)}.drill-intro-title{font-size:1.3rem;font-weight:900}.drill-intro-lead{font-size:.9rem;color:var(--muted)}.drill-intro-points{list-style:none;padding:0;margin:4px 0 6px;display:flex;flex-direction:column;gap:10px;text-align:left;align-self:stretch}.drill-intro-points li{padding:10px 14px;border-radius:var(--radius-sm);background:var(--surface-2);font-size:.88rem}.drill-intro-points b{display:block;font-size:.95rem}.drill-intro-skip{background:none;border:none;color:var(--muted);font-size:.8rem;text-decoration:underline;padding:4px}.explain{max-width:640px;margin:8px auto 0;display:flex;flex-direction:column;align-items:center;gap:16px;text-align:center;padding:30px 26px 22px;background:var(--surface);border:var(--bw) solid var(--card-border);border-radius:18px;box-shadow:var(--card-shadow)}.explain-title{font-size:1.4rem;font-weight:900}.explain-lead{font-size:.95rem;line-height:1.8}.explain-map{display:grid;grid-template-columns:84px 120px 84px;grid-template-rows:84px 120px 84px;grid-template-areas:". top ." "left base right" ". bottom .";gap:6px;margin:6px 0}.explain-cell{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border-radius:var(--radius-sm)}.explain-top{grid-area:top}.explain-bottom{grid-area:bottom}.explain-left{grid-area:left}.explain-right{grid-area:right}.explain-top,.explain-bottom,.explain-left,.explain-right{border:1.5px dashed var(--fill-border)}.explain-base{grid-area:base;background:var(--surface-2);border:var(--bw) solid var(--card-border)}.explain-base .glyph-xl{font-size:4.4rem;line-height:1.2}.explain-mark{color:var(--accent-ink);font-weight:700}.explain-mark .glyph-md{font-size:1.9rem;line-height:1.2}.explain-pos{font-size:.72rem;color:var(--muted);font-weight:700}.explain-examples{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-self:stretch}.explain-ex{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 6px;border-radius:var(--radius);background:var(--fill);color:var(--on-fill-glyph)}.explain-ex .glyph-lg{font-size:2.4rem;line-height:1.3}.explain-ex-pos{font-size:.75rem;font-weight:700;color:var(--text)}.explain-ex-sum{font-size:.85rem;color:var(--text);display:flex;align-items:center;gap:4px}.explain-ex-sum .explain-mark{color:var(--accent-ink)}.explain-points{max-width:520px}.drill-inf{font-weight:900}.drill .minibar .chips{flex-wrap:nowrap;gap:6px}.drill-exit{position:sticky;bottom:12px;z-index:5;margin-top:18px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 12px 12px 18px;border-radius:18px;background:var(--surface);border:var(--bw) solid var(--card-border);box-shadow:var(--sheet-shadow)}.drill-exit-text{display:flex;flex-direction:column;min-width:0}.drill-exit-text strong{font-size:.92rem}.drill-exit-text span{font-size:.78rem;color:var(--muted)}.drill-exit-btn{flex:none}.drill-exit-ready{background:var(--fill);border-color:var(--fill-border)}.drill-exit-ready .drill-exit-btn{animation:drill-pulse 1.6s ease-in-out 3}@keyframes drill-pulse{0%,to{box-shadow:0 0 0 0 var(--halo-strong)}50%{box-shadow:0 0 0 8px transparent}}@media(prefers-reduced-motion:reduce){.drill-exit-ready .drill-exit-btn{animation:none}}.settings .section-title{font-size:1.05rem;margin:28px 0 4px}.segmented{display:inline-flex;gap:2px;padding:3px;margin-top:10px;border:var(--bw) solid var(--card-border);border-radius:999px}.segment{border:none;background:transparent;color:var(--muted);font-weight:700;font-size:.85rem;padding:6px 16px;border-radius:999px}.segment:hover{color:var(--text)}.segment-on{background:var(--btn-bg);color:var(--btn-fg)}.settings-list{list-style:none;padding:0;margin:16px 0 0;display:flex;flex-direction:column;gap:10px}.settings-row{display:flex;align-items:center;gap:16px;border:var(--bw) solid var(--card-border);border-radius:var(--radius-sm);padding:10px 16px 10px 10px}.settings-row .tile-md{width:40px;height:40px;font-size:1.4rem}.settings-body{flex:1;display:flex;flex-direction:column;min-width:0}.settings-name{font-weight:700}.settings-link{display:flex;justify-content:space-between;align-items:center;border:var(--bw) solid var(--card-border);border-radius:var(--radius-sm);padding:12px 16px;margin-top:12px;font-weight:700;font-size:.9rem}.settings-link:hover{background:var(--surface-2)}.credits-section{background:var(--surface);border:var(--bw) solid var(--card-border);border-radius:var(--radius);padding:14px 16px;margin:16px 0 12px}.credits-section h3{font-size:1rem;margin-bottom:4px}.credits-table{width:100%;border-collapse:collapse;font-size:.82rem;margin-top:8px}.credits-table th,.credits-table td{text-align:left;padding:6px 4px;border-top:1px solid var(--line);vertical-align:top;word-break:break-word}.credits-sym{font-size:1.1rem;font-weight:700;width:2.5em}@media(max-width:900px){.app{padding:0 24px 72px}.script-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.course-body{grid-template-columns:1fr}.free{position:static}.free-links{grid-template-columns:repeat(2,1fr)}.lesson-top{flex-direction:column;align-items:stretch;gap:12px}.lesson-heading{max-width:none}.intro{grid-template-columns:1fr;gap:28px}.learn-grid{grid-template-columns:1fr;gap:18px}.learn-card{min-height:260px}.learn-card .glyph-xl{font-size:7rem}.prompt{height:360px}.prompt-main .glyph-xl{font-size:6.5rem}.choices{grid-auto-rows:132px}}@media(max-width:640px){.app{padding:0 16px 56px}.topbar{padding:10px 0;margin-bottom:22px}.logo-text{font-size:1.15rem}.topnav{gap:18px}.home-head{margin-bottom:26px}.script-grid{grid-template-columns:1fr;gap:10px}.script-card{padding:14px 14px 10px}.script-card-glyph{width:52px;font-size:2.5rem}.script-card-top{min-height:52px;gap:14px}.hero{gap:16px;margin-bottom:24px}.tile-xl{width:76px;height:76px;font-size:2.8rem;align-self:flex-start}.hero .btn{width:100%}.hero-body{flex:1}.page-head{margin-bottom:18px}.page-title{font-size:1.3rem}.lessons{padding-left:46px}.lessons:before{left:15px}.lesson-num{left:-46px;width:32px;height:32px;font-size:.75rem}.lesson-title{font-size:.88rem}.lesson-current .lesson-action{padding:5px 12px}.steps{gap:4px}.step{padding:3px 8px;font-size:.75rem;flex:1;text-align:center}.intro-chars{grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:8px;margin:18px 0}.char-tile .glyph-lg{font-size:2.2rem}.flow{padding:18px 16px}.learn-card{min-height:200px}.learn-card .glyph-xl{font-size:5.5rem}.speak-pill{padding:10px 22px;font-size:.92rem}.hint-card{padding:14px 16px}.btn-wide{min-width:0;width:100%}.quiz{grid-template-columns:1fr;gap:10px}.prompt{height:210px;padding:14px 16px}.prompt-head{min-height:0}.prompt-title{font-size:1.05rem}.prompt-sub{font-size:.78rem}.prompt-main .glyph-xl{font-size:5rem}.play-xl{width:76px;height:76px}.result-main{display:none}.result-verdict{font-size:1.1rem}.result-box{gap:6px}.answer-col{gap:10px}.choices{grid-auto-rows:108px;gap:8px}.choice-letter{top:6px;left:10px;font-size:.9rem}.choice-radio,.choice-tag{top:7px;right:7px}.choice-radio{width:20px;height:20px}.play{width:46px;height:46px}.play-label{display:none}.choice .glyph-lg{font-size:2.6rem}.choice-reveal{right:10px;bottom:4px}.choice-reveal .glyph-md{font-size:1.3rem}.answer-col .btn-block{min-height:48px;font-size:.95rem}.glyph-xl{font-size:3.6rem}.tab{font-size:.78rem}.words .word-prompt .glyph-xl{font-size:3.6rem}.word-howto{justify-content:flex-start;flex-direction:column;gap:4px}.word-actions{flex-direction:column-reverse}.word-actions .btn{width:100%}.word-grade{flex-wrap:nowrap}.word-grade .primary,.word-grade .secondary{min-width:0;flex:1;font-size:.85rem;padding:0 12px}.wlisten-q{padding:14px 16px}.wchoice{min-height:96px}.wchoice .glyph-lg{font-size:1.9rem}.word-tile{min-width:0;flex:1 1 40%}.drill-intro,.explain{padding:22px 16px 16px}.explain-examples{grid-template-columns:repeat(2,minmax(0,1fr))}.explain-map{grid-template-columns:72px 104px 72px;grid-template-rows:72px 104px 72px}.drill .minibar{height:auto;min-height:38px;flex-wrap:wrap;padding:6px 12px}.drill-exit{flex-direction:column;align-items:stretch;gap:8px;padding:10px 12px;bottom:8px}.drill-exit-text span{display:none}.drill-exit-btn{width:100%}}
