:root{color-scheme:dark;--bg: #121211;--surface: #1a1a19;--border: #2c2c2a;--text: #f0efec;--text-2: #c3c2b7;--muted: #6e6d66;--accent: #3987e5;--error: #d03b3b;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}.app{max-width:820px;margin:0 auto;padding:32px 16px}.header{display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between;margin-bottom:64px}h1{margin:0;font-size:20px;color:var(--text-2);font-weight:500}.modes{display:flex;gap:8px;flex-wrap:wrap}button{font:inherit;background:var(--surface);color:var(--text-2);border:1px solid var(--border);border-radius:6px;padding:6px 12px;cursor:pointer}button:hover{color:var(--text)}.mode.active{color:var(--text);border-color:var(--accent)}.progress{color:var(--accent);margin-bottom:12px}.words{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:26px;line-height:1.5;color:var(--muted);-webkit-user-select:none;user-select:none}.word{position:relative}.word.wrong{text-decoration:underline var(--error)}.ok{color:var(--text)}.bad{color:var(--error)}.extra{opacity:.7}.caret{display:inline-block;width:2px;height:1.1em;margin-right:-2px;vertical-align:-.15em;background:var(--accent);animation:blink 1s step-end infinite}@keyframes blink{50%{opacity:0}}.hint{color:var(--muted);font-size:13px;margin-top:32px}.stats{display:flex;flex-wrap:wrap;gap:32px;align-items:flex-end;margin-bottom:24px}.stat-label{color:var(--muted);font-size:13px}.stat-value{font-size:22px;color:var(--text)}.stat.big .stat-value{font-size:56px;color:var(--accent);line-height:1}.chart{margin:0 0 24px;background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:16px}.chart figcaption{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;color:var(--text-2);font-size:13px;margin-bottom:8px}.legend{display:inline-flex;align-items:center;gap:6px;color:var(--muted)}.legend-line{width:14px;height:2px;background:var(--accent);border-radius:1px}.legend-dot{width:8px;height:8px;border-radius:50%;background:var(--error);margin-left:10px}.chart-box{position:relative}.chart svg{display:block;width:100%;height:auto;overflow:visible}.grid{stroke:var(--border);stroke-width:1}.axis{fill:var(--muted);font-size:11px;font-family:inherit}.line{fill:none;stroke:var(--accent);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}.err{fill:var(--error);stroke:var(--surface);stroke-width:2}.crosshair{stroke:var(--muted);stroke-width:1;stroke-dasharray:3 3}.hover-dot{fill:var(--accent);stroke:var(--surface);stroke-width:2;pointer-events:none}.tooltip{position:absolute;top:0;transform:translate(-50%);pointer-events:none;background:var(--bg);border:1px solid var(--border);border-radius:6px;padding:6px 10px;font-size:12px;color:var(--text-2);white-space:nowrap}.tooltip b{color:var(--text)}.tooltip-err{color:var(--text-2)}.tooltip-err:before{content:"● ";color:var(--error)}kbd{color:var(--muted);font-family:inherit;font-size:12px;margin-left:6px}
