:root{--bg: #f4f6f5;--surface: #ffffff;--text: #1b2423;--muted: #5f6b69;--line: #dce3e1;--accent: #14706a;--accent-soft: #dcefed;--good: #2f7a4b;--warn: #a86a12;--paper: #ffffff;--grid: #c9dedb;--ink: #1b2423;--outline: #dce3e1;color-scheme:light}@media (prefers-color-scheme: dark){:root{--bg: #121716;--surface: #1b2221;--text: #e6eeec;--muted: #97a5a2;--line: #2d3836;--accent: #3cc2b4;--accent-soft: #173331;--good: #6cc08d;--warn: #e0a54a;--paper: #1b2221;--grid: #2a4541;--ink: #e6eeec;--outline: #2d3836;color-scheme:dark}}*{box-sizing:border-box}html,body{margin:0}body{background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,PingFang SC,Hiragino Sans,Noto Sans CJK SC,sans-serif;line-height:1.5;-webkit-text-size-adjust:100%}a{color:var(--accent)}.page{max-width:560px;margin:0 auto;padding:20px 16px 48px}.muted{color:var(--muted)}.small{font-size:.875rem}.masthead h1{margin:8px 0 4px;font-size:1.75rem;letter-spacing:-.01em}.masthead p{margin:0 0 20px}.card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px}.button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border:none;border-radius:999px;background:var(--accent);color:#fff;font:inherit;font-weight:600;text-decoration:none;cursor:pointer}.button.secondary{background:transparent;color:var(--text);border:1px solid var(--line)}.switches{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.segmented{display:inline-flex;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:3px}.segmented button{min-height:40px;padding:0 14px;border:none;border-radius:999px;background:transparent;color:var(--text);font:inherit;cursor:pointer}.segmented button.active{background:var(--accent);color:#fff}.segmented button.active .muted{color:#fffc}.error{border-color:var(--accent);margin-bottom:16px}.error p{margin-top:0}.streak{margin-bottom:24px}.streak-top{display:flex;justify-content:space-between;align-items:flex-end;gap:16px}.streak-number{font-size:2.75rem;font-weight:700;line-height:1;color:var(--accent);font-variant-numeric:tabular-nums}.streak-facts{text-align:right;font-size:.9rem}.history{display:grid;grid-template-columns:repeat(14,1fr);gap:4px;height:40px;margin:16px 0 8px;align-items:end}.history-day{height:100%;display:flex;align-items:flex-end}.history-bar{width:100%;border-radius:3px;background:var(--line)}.history-bar.on{background:var(--accent)}.streak-note{margin:0;font-size:.9rem;color:var(--muted)}.section-title{font-size:1.1rem;margin:0 0 12px}.decks{display:grid;gap:12px}.deck{display:flex;gap:14px;align-items:center;color:inherit;text-decoration:none}.deck:hover{border-color:var(--accent)}.deck-preview{flex:none;width:72px;height:72px;display:grid;grid-template-columns:1fr 1fr;place-items:center;font-size:1.35rem;background:var(--accent-soft);border-radius:12px;color:var(--accent)}.deck-body{flex:1;min-width:0}.deck-title{font-weight:600}.meter{height:6px;background:var(--line);border-radius:3px;margin:8px 0 4px;overflow:hidden}.meter div{height:100%;background:var(--good)}.due{color:var(--warn)}.lock-note{margin-top:8px;font-weight:600;color:var(--accent)}.footer{margin-top:32px;text-align:center}.practice{padding-top:12px}.topbar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:44px}.back{display:inline-flex;align-items:center;min-height:44px;color:var(--text);text-decoration:none;font-weight:500}.topbar-title{font-weight:600;text-align:center}.topbar-count{text-align:right;color:var(--muted);font-variant-numeric:tabular-nums}.progress-track{height:4px;background:var(--line);border-radius:2px;overflow:hidden;margin:4px 0 16px}.progress-track div{height:100%;background:var(--accent);transition:width .3s}.prompt{text-align:center;margin-bottom:12px}.mode-tag{display:inline-block;font-size:.8rem;font-weight:600;padding:2px 10px;border-radius:999px;background:var(--accent-soft);color:var(--accent)}.mode-tag.recall{background:var(--line);color:var(--text)}.reading{font-size:1.9rem;font-weight:600;margin-top:6px;line-height:1.2}.meaning{color:var(--muted)}.status-row{display:flex;justify-content:space-between;max-width:380px;margin:10px auto 0;font-size:.9rem;font-variant-numeric:tabular-nums}.slips{color:var(--warn)}.actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:16px}.outcome{text-align:center;margin-top:12px}.outcome p{margin:0 0 12px;font-weight:500}.outcome.perfect p{color:var(--good)}.outcome.missed p{color:var(--warn)}.outcome .button{min-width:160px}.summary{text-align:center}.summary h2{margin-top:4px}.browse{text-align:center;margin-top:24px}.browse a{display:inline-flex;align-items:center;min-height:44px;font-weight:600}.streak-inline{font-weight:700;color:var(--accent);font-size:1.2rem}.footer-links{display:flex;justify-content:center;flex-wrap:wrap;gap:4px 20px;margin-bottom:8px}.footer-links a{display:inline-flex;align-items:center;min-height:44px;color:var(--text);font-size:.95rem}.text-page h1{font-size:1.9rem;margin:8px 0 12px}.text-page h2{font-size:1.15rem;margin:28px 0 8px}.text-page h3{font-size:1rem;margin:18px 0 6px}.text-page ul{padding-left:1.2em}.text-page li{margin-bottom:6px}.text-page code{font-size:.9em;background:var(--surface);border:1px solid var(--line);border-radius:4px;padding:0 4px}.contact h2{margin-top:0}.contact .button{max-width:100%;white-space:normal;text-align:center}.account{margin-bottom:16px}.account.card{display:grid;gap:10px}.account .muted.small{margin:2px 0 0}.account-name{font-weight:600}.account-actions{display:flex;flex-direction:column;align-items:flex-start;gap:6px}.account-fallback{display:inline-flex;align-items:center;min-height:40px}.account-error{color:var(--accent);margin:0}.account.signed-in{display:flex;align-items:center;gap:12px;padding:8px 12px;background:var(--surface);border:1px solid var(--line);border-radius:16px}.account.signed-in img{border-radius:50%;flex:none}.account-who{flex:1;min-width:0}.account-who .account-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account.signed-in .button{min-height:40px;padding:0 14px;flex:none}.deck-preview img{width:30px;height:30px;object-fit:contain}.deck-preview.words{display:grid;place-items:center;grid-template-columns:1fr;font-weight:700;font-size:.95rem;letter-spacing:.08em}@media (prefers-color-scheme: dark){.deck-preview img{filter:invert(1) hue-rotate(180deg)}}.letter-target{font-size:4.5rem;font-weight:800;line-height:1.1;margin-top:4px}.word-target{display:flex;justify-content:center;gap:6px;font-size:2.6rem;font-weight:800;letter-spacing:.04em;margin-top:6px;flex-wrap:wrap}.word-target span{color:var(--outline)}.word-target .now{color:var(--accent)}.word-target .done{color:var(--text)}.practice-stage{display:grid;grid-template-columns:minmax(96px,30%) 1fr;gap:10px;align-items:start}.reference{background:#fff;border-radius:14px;border:1px solid var(--line);aspect-ratio:3 / 4;display:grid;place-items:center;overflow:hidden}.reference img{width:88%;height:88%;object-fit:contain}.reference.hidden{background:var(--surface)}.reference-cover{width:100%;height:100%;border:none;background:transparent;color:var(--text);font:inherit;font-weight:600;display:grid;place-content:center;gap:4px;padding:8px;cursor:pointer}.sign-camera{min-width:0}.camera-frame{position:relative;aspect-ratio:4 / 3;background:#0d1413;border-radius:14px;overflow:hidden;box-shadow:0 0 0 1px var(--line)}.camera-video,.camera-overlay{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}.camera-cover{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-content:center;gap:12px;padding:16px;text-align:center;color:#e6eeec;background:#0d1413}.camera-cover p{margin:0;font-size:.95rem}.camera-cover .button{justify-self:center}.camera-hint{margin:6px 0 0;text-align:center}.hold-ring{position:absolute;top:10px;right:10px;width:44px;height:44px;border-radius:50%;background:conic-gradient(var(--accent) calc(var(--p) * 360deg),rgba(255,255,255,.25) 0);-webkit-mask:radial-gradient(circle,transparent 13px,#000 14px);mask:radial-gradient(circle,transparent 13px,#000 14px)}.sign-camera.success .camera-frame{box-shadow:0 0 0 3px var(--good)}.sign-camera.success .hold-ring{background:var(--good)}.summary-items{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 14px;font-size:1.6rem;font-weight:700}.summary-items a{color:inherit;text-decoration:none}.debug{font-size:.72rem;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:8px;margin-top:12px;white-space:pre-wrap;overflow-x:auto}@media (max-width: 420px){.practice-stage{grid-template-columns:1fr}.reference{aspect-ratio:auto;height:150px}.reference img{width:auto;height:134px}}.site-header{display:flex;justify-content:space-between;align-items:center;max-width:560px;margin:0 auto;padding:12px 16px 0}.site-header a{display:inline-flex;align-items:center;min-height:44px;color:var(--text);text-decoration:none}.site-header .brand{font-weight:700;color:var(--accent)}.sign-page h1{font-size:1.9rem;margin:8px 0 6px;line-height:1.2}.sign-page h2{font-size:1.15rem;margin:28px 0 8px}.sign-page .lead{font-size:1.05rem}.crumbs a{color:var(--muted)}.facts{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}.facts span{padding:2px 10px;border-radius:999px;background:var(--surface);border:1px solid var(--line);font-size:.9rem}.sign-hero{display:grid;grid-template-columns:minmax(140px,40%) 1fr;gap:16px;align-items:start}.sign-figure{margin:0}.sign-figure img,.spelling img,.alphabet-chart img{display:block;width:100%;height:auto;background:#fff;border-radius:12px;border:1px solid var(--line);padding:8px}.sign-figure figcaption{margin-top:6px}@media (max-width: 420px){.sign-hero{grid-template-columns:1fr}.sign-figure img{max-width:240px;margin:0 auto}}.mixups{padding-left:1.2em}.mixups li{margin-bottom:8px}.mixups a{font-weight:700}.spelling,.alphabet-chart{list-style:none;padding:0;margin:12px 0 0;display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(92px,1fr))}.spelling a,.alphabet-chart a{display:block;text-align:center;color:var(--text);text-decoration:none;font-weight:700}.spelling a:hover img,.alphabet-chart a:hover img{border-color:var(--accent)}.spelling span,.alphabet-chart span{display:block;margin-top:4px}.word-chips{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:6px}.word-chips a{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border-radius:999px;background:var(--surface);border:1px solid var(--line);color:var(--text);text-decoration:none;font-weight:600;letter-spacing:.04em}.word-chips a:hover{border-color:var(--accent);color:var(--accent)}.prev-next{display:flex;justify-content:space-between;margin-top:28px}.prev-next a{display:inline-flex;align-items:center;min-height:44px;font-weight:700;font-size:1.1rem}.alphabet-nav{display:flex;flex-wrap:wrap;gap:4px;margin-top:12px}.alphabet-nav a,.alphabet-nav span{display:inline-grid;place-items:center;min-width:40px;min-height:40px;border-radius:8px;border:1px solid var(--line);background:var(--surface);color:var(--text);text-decoration:none;font-weight:600}.alphabet-nav span{background:var(--accent);color:#fff;border-color:var(--accent)}.try{margin-top:8px}.try-it .sign-camera{max-width:420px;margin:0 auto}.small-target{font-size:1.8rem;margin-bottom:8px}.cta{margin-top:28px}.cta h2{margin-top:0}@media (prefers-color-scheme: dark){.sign-figure img,.spelling img,.alphabet-chart img,.reference img{filter:none}}
