:root{--bg:#0f172a;--surface:#1e293b;--surface-hi:#334155;--border:#334155;--text:#f1f5f9;--muted:#94a3b8;--accent:#38bdf8;--ok:#4ade80;--ok-bg:#052e16;--ko:#f87171;--ko-bg:#450a0a;--radius:14px;--font:system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--font-cn:"PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif}*{box-sizing:border-box}#__nuxt,body,html{height:100%}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);line-height:1.5;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}.app{max-width:560px;margin:0 auto;padding:calc(.75rem + env(safe-area-inset-top)) 1rem calc(1rem + env(safe-area-inset-bottom));min-height:100%;display:flex;flex-direction:column}h1{font-size:1.35rem;margin:0 0 .25rem}.muted{color:var(--muted);font-size:.9rem}.hanzi{font-family:var(--font-cn);line-height:1.25}button{font:inherit;color:inherit;cursor:pointer;border:1px solid var(--border);background:var(--surface);border-radius:var(--radius);padding:.85rem 1rem;min-height:44px;transition:background .12s,border-color .12s}button:hover:not(:disabled){background:var(--surface-hi)}button:disabled{cursor:default;opacity:.75}.btn-primary{background:var(--accent);border-color:var(--accent);color:#06283d;font-weight:600;width:100%}.btn-primary:hover:not(:disabled){background:#7dd3fc}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1rem}.stats{display:flex;gap:.75rem}.stat{flex:1;text-align:center}.stat-value{font-size:1.6rem;font-weight:700}.prompt{display:flex;align-items:center;justify-content:center;text-align:center;flex:1;min-height:150px;padding:1.5rem 1rem}.prompt-hanzi{font-size:clamp(3.5rem,22vw,5.5rem)}.prompt-text{font-size:clamp(1.4rem,7vw,2rem);font-weight:600}.choices{display:grid;gap:.6rem;grid-template-columns:minmax(0,1fr)}.choice{text-align:center;width:100%}.choice-hanzi{font-size:2rem}.choice.correct,.choice.wrong{border-width:2px;font-weight:600}.choice.correct{background:var(--ok-bg);border-color:var(--ok);color:var(--ok);box-shadow:0 0 0 3px #4ade802e}.choice.wrong{background:var(--ko-bg);border-color:var(--ko);color:var(--ko);box-shadow:0 0 0 3px #f871712e;text-decoration:line-through;text-decoration-thickness:2px}.choice.spent{opacity:.35}.choice.correct:after{content:"✓"}.choice.correct:after,.choice.wrong:after{display:inline-block;margin-left:.4em;font-weight:700}.choice.wrong:after{content:"✗";text-decoration:none}.reveal{display:flex;flex-direction:column;gap:.5rem;align-items:center;text-align:center}.reveal-hanzi{font-size:2.75rem}.reveal-pinyin{font-size:1.3rem;color:var(--accent)}.tone-note{font-size:.85rem}.badge,.tone-note{color:var(--muted)}.badge{display:inline-block;font-size:.75rem;padding:.15rem .5rem;border-radius:999px;background:var(--surface-hi)}.sticky-bottom{position:sticky;bottom:0;padding:.5rem 0 calc(.25rem + env(safe-area-inset-bottom));background:linear-gradient(to top,var(--bg) 75%,transparent)}.row{display:flex;gap:.6rem;align-items:center}.spacer{flex:1}.stack{display:flex;flex-direction:column;gap:1rem}a{color:var(--accent)}.listen{min-height:40px;width:44px;padding:0;font-size:1.1rem;flex:0 0 auto}.play-big{width:96px;height:96px;border-radius:50%;font-size:2rem;padding:0;background:var(--accent);border-color:var(--accent);color:#06283d}.play-big:hover:not(:disabled){background:#7dd3fc}.badge.good{color:var(--ok);border-color:var(--ok)}.badge.partial{color:#facc15;border-color:#facc15}.badge.weak{color:var(--ko);border-color:var(--ko)}.typed-diff{display:grid;gap:.2rem;justify-content:center;margin-bottom:.2rem}.diff-line{display:flex;align-items:baseline;gap:.5rem}.diff-tag{color:var(--muted);font-size:.72rem;text-align:right;min-width:4.6rem}.diff-word{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:1.15rem;letter-spacing:.02em;color:var(--muted)}.diff-word em{font-style:normal;font-weight:700;padding:0 .1em;border-radius:3px}.diff-word.ko em{color:var(--ko);background:var(--ko-bg);text-decoration:line-through}.diff-word.ok em{color:var(--ok);background:var(--ok-bg)}
