:root{--bg:#f4f1eb;--ink:#2c2c2c;--muted:#6f6a64;--faint:#9a948c;--line:#e3ddd4;--navy:#5a7090;--navy-press:#4b617e;--card:#fff;--ok-bg:#e5f0e2;--ok-fg:#5c7b59;--ng-bg:#f6e6c2;--ng-fg:#8a6a30;--pinyin:#8ea3b6;--correct:#5d7ea6;--next-bg:#e7eef6;--shadow:0 16px 44px #483a260d;--sans:"Noto Sans JP", "Hiragino Sans", "Yu Gothic", "WenQuanYi Micro Hei", sans-serif;--mincho:"Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", serif;--song:"Noto Serif SC", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;--num:"Source Serif 4", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;background:var(--bg);color:var(--ink);font-family:var(--sans);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;font-weight:400;line-height:1.5}*{box-sizing:border-box}html,body,#root{min-height:100%}body{background:var(--bg);margin:0}@media (width>=760px){body{background:#e6e1d8}.app-frame{background:var(--bg);min-height:100dvh}}button,input{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.42}:focus-visible{outline:2px solid var(--navy);outline-offset:3px}::selection{background:#e4ebf3}.app-frame{width:min(440px,100%);min-height:100dvh;margin:0 auto}.icon{flex:none;width:1.15em;height:1.15em;display:block}.home,.plain,.session{min-height:100dvh}.home{text-align:center;padding:calc(48px + env(safe-area-inset-top)) 0 calc(32px + env(safe-area-inset-bottom));flex-direction:column;align-items:center;display:flex}.home h1,.plain h1,.done-title{font-family:var(--mincho);letter-spacing:.18em;text-indent:.18em;margin:18px 0 0;font-size:46px;font-weight:500;line-height:1.15}.done-title{letter-spacing:.08em;text-indent:0;margin-top:12px;font-size:28px}.tagline{letter-spacing:.04em;color:#3e3c39;margin:14px 0 0;font-size:15px}.retained{margin-top:8px}.halo{background:radial-gradient(circle,#d6cfc48c 0%,#f4f1eb00 68%);border-radius:50%;place-items:center;width:min(78vw,320px);height:min(78vw,320px);margin:8px auto 0;display:grid}.num{font-family:var(--num);font-optical-sizing:auto;letter-spacing:-.03em;color:#3a3a3a;font-size:clamp(108px,32vw,148px);font-weight:500;line-height:.82}.num-3{font-size:clamp(78px,22vw,112px)}.retained-label{font-family:var(--mincho);letter-spacing:.22em;text-indent:.22em;margin:2px 0 0;font-size:22px}.retained-label:after{content:"";background:#cfc8be;width:36px;height:1px;margin:14px auto 0;display:block}.pool{color:#5c5853;letter-spacing:.08em;margin:26px 0 0;font-size:15px}.cta{background:var(--navy);color:#f7f5f2;letter-spacing:.12em;border:none;border-radius:16px;justify-content:center;align-items:center;gap:8px;min-height:56px;padding:0 20px;font-size:18px;font-weight:500;display:inline-flex}.home .cta,.plain .cta{width:calc(100% - 48px);margin-top:36px}.cta:active{background:var(--navy-press)}.linkish{color:var(--ink);letter-spacing:.18em;text-underline-offset:7px;background:0 0;border:none;margin-top:26px;font-size:16px;text-decoration:underline}.debug-link{color:var(--faint);letter-spacing:.08em;margin-top:auto;padding-top:28px;font-size:12px;text-decoration:none}.warn,.error,.fallback{color:#5c564e;text-align:left;background:#fff;border-radius:14px;margin:12px 20px 0;padding:12px 14px;font-size:14px;line-height:1.7}.plain{text-align:center;padding:calc(48px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom));flex-direction:column;align-items:center;display:flex}.plain p{color:#4e4a45;max-width:28em;margin:14px 0 0;font-size:15px;line-height:1.8}.topbar{z-index:3;padding:calc(12px + env(safe-area-inset-top)) 8px 10px 16px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#f4f1ebf0;align-items:center;gap:8px;display:flex;position:sticky;top:0}.brand{flex:1;align-items:baseline;gap:4px;min-width:0;margin:0;font-size:15px;display:flex}.brand .icon{align-self:center;width:18px;height:18px;margin-right:2px}.brand strong{letter-spacing:.01em;font-size:18px;font-weight:600}.today{color:#6a6560;letter-spacing:.04em;white-space:nowrap;border-left:1px solid #ddd7ce;margin:0;padding-left:12px;font-size:14px}.icon-btn{color:#2a2a2a;background:0 0;border:none;width:42px;height:42px;font-size:26px;line-height:1}.session{padding-bottom:calc(18px + env(safe-area-inset-bottom));flex-direction:column;display:flex}.char-card,.sheet{background:var(--card);box-shadow:var(--shadow)}.char-card{border-radius:22px;place-items:center;min-height:min(46vh,340px);margin:8px 16px 0;display:grid}.glyph{font-family:var(--song);color:#1a1a1a;margin:0;font-size:clamp(104px,32vw,148px);font-weight:600;line-height:1}.glyph-ng{color:#1c2944;font-size:clamp(92px,28vw,128px)}.prompt{text-align:center;letter-spacing:.08em;margin:28px 16px 16px;font-size:18px}.session>.cta{width:calc(100% - 36px);margin:4px auto 0}.attempt,.fineprint{color:#7a756f;letter-spacing:.06em;justify-content:center;align-items:center;gap:6px;margin:16px 16px 0;font-size:14px;display:flex}.fineprint.foot{margin-top:auto;padding:22px 0 8px}.reveal-skip{color:var(--ink);letter-spacing:.02em;text-underline-offset:4px;background:0 0;border:none;margin:18px 28px 0;font-size:15px;line-height:1.7;text-decoration:underline}.unjudged-note{color:#5c564e;text-align:center;margin:18px 8px 0;font-size:14px;line-height:1.7}.unjudged-listen{width:100%;margin-top:16px}.sheet{border-radius:28px;flex-direction:column;align-items:center;margin:8px 14px 12px;padding:22px 16px 16px;display:flex}.sheet .glyph{font-size:clamp(84px,24vw,112px)}.pinyin{font-family:var(--num);letter-spacing:.02em;color:var(--pinyin);margin:10px 0 0;font-size:40px;font-style:italic;font-weight:500;line-height:1.1}.pinyin-ng{color:#1c2944;margin:0;font-size:44px}.pinyin-row{justify-content:center;align-items:center;gap:28px;width:100%;margin-top:8px;display:flex}.ear{color:#cfc8be;width:28px;height:38px}.ear.flip{transform:scaleX(-1)}.enso{color:#ddd6cc;width:52px;height:52px;margin:0 0 2px}.leaf{color:#b7c4ae;width:22px;height:22px;margin-top:8px}.rule{background:#eeeae3;width:64%;height:1px;margin:18px 0 16px}.badge{letter-spacing:.04em;border-radius:999px;align-items:center;gap:8px;margin:0;padding:8px 16px;font-size:14px;display:inline-flex}.badge-ok{background:var(--ok-bg);color:var(--ok-fg)}.badge-ng{background:var(--ng-bg);color:var(--ng-fg);margin-top:14px}.badge-plain{letter-spacing:.08em}.pair{grid-template-columns:1fr 1fr;gap:10px;width:100%;margin-top:18px;display:grid}.ghost{letter-spacing:.02em;background:#fff;border:1px solid #e7e1d8;border-radius:12px;justify-content:center;align-items:center;gap:6px;min-height:48px;padding:8px;font-size:14px;display:inline-flex}.sheet .cta{letter-spacing:.14em;width:100%;margin-top:14px}.ornament{align-items:center;width:46%;margin:8px 0 6px;display:flex}.ornament:before,.ornament:after{content:"";background:#e6e0d7;flex:1;height:1px}.ornament span{background:#d5cfc6;border-radius:50%;width:4px;height:4px;margin:0 8px}.compare{letter-spacing:.02em;color:#6a6560;margin:12px 0 0;font-size:15px}.compare strong{color:#243044;font-family:var(--num);font-size:20px;font-style:italic;font-weight:500}.compare em{color:var(--correct);font-family:var(--num);font-size:20px;font-style:italic;font-weight:500}.arrow{color:#b7b1a8;margin:0 6px}.tone-note{color:var(--faint);letter-spacing:.06em;margin:10px 0 0;font-size:13px}.ng-list{flex-direction:column;gap:8px;width:100%;margin-top:16px;display:flex}.ng-row{text-align:left;background:#fff;border:1px solid #ece7e0;border-radius:14px;align-items:center;gap:10px;width:100%;padding:11px 14px;font-size:15px;display:flex}.ng-row span{flex:1;min-width:0;line-height:1.35;display:block}.ng-row small{color:#8d877f;margin-top:2px;font-size:12px;display:block}.chev{color:#c2bbb2;flex:none;width:18px;height:18px;margin-left:auto}.ng-row.next{background:var(--next-bg);border-color:#0000}.side-note{color:var(--muted);text-align:center;margin:8px 0 0;font-size:13px}.debug-panel,.debug-page{text-align:left}.debug-panel{color:var(--muted);border:1px dashed #d9d2c8;border-radius:14px;margin:22px 16px 0;padding:12px;font-size:13px}.debug-panel p{margin:0 0 8px}.debug-panel label{display:block}.debug-panel input{border:1px solid var(--line);background:#fff;border-radius:10px;width:100%;margin-top:4px;padding:8px 10px;display:block}.debug-panel button,.debug-actions button{border:1px solid var(--line);background:#fff;border-radius:10px;margin-top:8px;padding:8px 10px}.debug-stats{grid-template-columns:repeat(3,1fr);gap:8px;width:100%;margin:18px 0 0;display:grid}.debug-stats div{background:#fff;border-radius:12px;padding:10px 8px}.debug-stats dt{color:var(--faint);font-size:12px}.debug-stats dd{margin:2px 0 0;font-size:18px}.debug-actions{flex-direction:column;width:100%;margin-top:12px;display:flex}.debug-list{text-align:left;width:100%;margin:12px 0 0;padding:0;font-size:14px;list-style:none}.debug-list li{border-bottom:1px solid var(--line);padding:6px 0}@media (hover:hover){.cta:hover{background:var(--navy-press)}.ghost:hover,.ng-row:hover{background:#fbfaf7}.ng-row.next:hover{background:#dce6f1}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}
