:root{--bg:#f7f5f0;--surface:#fff;--text:#1d1b18;--muted:#6b665e;--border:#ddd8cf;--accent:#3b5bdb;--tile-bg:#1d1b18;--tile-text:#f7f5f0;--correct:#2f9e44;--wrong:#e03131;--radius:12px;--font:system-ui, -apple-system, "Segoe UI", Roboto, sans-serif}@media (prefers-color-scheme:dark){:root{--bg:#161513;--surface:#22201d;--text:#f0ede7;--muted:#a39d93;--border:#3a3732;--accent:#748ffc;--tile-bg:#f0ede7;--tile-text:#161513;--correct:#51cf66;--wrong:#ff6b6b}}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);font-family:var(--font);-webkit-tap-highlight-color:transparent;margin:0}.screen{flex-direction:column;gap:20px;max-width:28rem;min-height:100dvh;margin:0 auto;padding:16px;display:flex}.topbar{justify-content:space-between;align-items:baseline;display:flex}.topbar h1{margin:0;font-size:1.25rem}.progress{color:var(--muted);font-variant-numeric:tabular-nums}.timer{background:var(--border);border-radius:999px;height:8px;overflow:hidden}.timer-fill{height:100%;width:calc(var(--fraction,1) * 100%);background:var(--accent);border-radius:inherit}.timer-fill.low{background:var(--wrong)}.prompt{text-align:center;color:var(--muted);margin:12px 0 0}.tiles{justify-content:center;gap:4px;display:flex}.tile{aspect-ratio:1;background:var(--tile-bg);width:min(2.75rem,12.5vw - 7.5px);color:var(--tile-text);border-radius:6px;place-items:center;font-size:1.4rem;font-weight:700;display:grid}.options{gap:10px;margin-top:auto;display:grid}.option{background:var(--surface);min-height:56px;color:var(--text);border:2px solid var(--border);border-radius:var(--radius);font:inherit;letter-spacing:.08em;cursor:pointer;padding:0 16px;font-size:1.15rem;font-weight:600}.option:hover{border-color:var(--muted)}.option:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.option:disabled{cursor:default;color:var(--text)}.option:disabled:not(.correct):not(.wrong){opacity:.45}.option.correct{border-color:var(--correct);background:color-mix(in srgb, var(--correct) 15%, var(--surface))}.option.wrong{border-color:var(--wrong);background:color-mix(in srgb, var(--wrong) 15%, var(--surface))}.feedback{text-align:center;min-height:1.5em;margin:0;font-size:1.25rem;font-weight:700}.feedback.good{color:var(--correct)}.feedback.bad{color:var(--wrong)}.start-screen,.results-screen{text-align:center;justify-content:center}.title{margin:0;font-size:2rem}.date,.muted{color:var(--muted);margin:0}.rules{gap:8px;margin:0;padding:0;line-height:1.4;list-style:none;display:grid}.primary{border-radius:var(--radius);background:var(--accent);color:#fff;min-height:56px;font:inherit;cursor:pointer;border:0;font-size:1.15rem;font-weight:700}.primary:focus-visible{outline:3px solid var(--text);outline-offset:2px}.score{color:var(--muted);margin:0;font-size:1.25rem}.score strong{color:var(--text);font-size:3rem}.summary{text-align:left;gap:8px;margin:0;padding:0;list-style:none;display:grid}.summary li{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);align-items:center;gap:12px;padding:12px 14px;display:flex}.summary .status{text-align:center;width:1.25em}.summary .good .status{color:var(--correct)}.summary .bad .status{color:var(--wrong)}.summary .pair{letter-spacing:.04em;flex:1;font-weight:600}.summary .points{font-variant-numeric:tabular-nums;color:var(--muted)}.stats{grid-template-columns:repeat(3,1fr);gap:8px;margin:0;display:grid}.stats div{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:10px 4px}.stats dt{color:var(--muted);font-size:.8rem}.stats dd{font-variant-numeric:tabular-nums;margin:0;font-size:1.5rem;font-weight:700}.share-box{gap:10px;display:grid}.share-preview{background:var(--surface);border:1px dashed var(--border);border-radius:var(--radius);white-space:pre-wrap;-webkit-user-select:all;user-select:all;margin:0;padding:12px;font-family:inherit;font-size:1rem;line-height:1.5}.share-status{min-height:1.4em;margin:0;font-size:.95rem}.share-status.good{color:var(--correct)}.share-status.bad{color:var(--wrong)}
