*,*:before,*:after{box-sizing:border-box}:root{--bg: #000000;--text: #ffffff;--muted: #888888;--dim: #555555;--line: #ffffff;--divider: #333333;--bad: #ff0000;--good: #ffffff;--pending: #777777;--scan: rgba(255, 255, 255, .07);color:var(--text);background-color:var(--bg)}:root[data-theme=light]{--bg: #ffffff;--text: #000000;--muted: #666666;--dim: #cccccc;--line: #000000;--divider: #dddddd;--bad: #cc0000;--good: #000000;--pending: #888888;--scan: rgba(0, 0, 0, .06)}html,body,#root{min-height:100%}body{margin:0;min-height:100vh;font-family:JetBrains Mono,monospace;color:var(--text);background-color:var(--bg);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}html,body,.terminal-window,.results-box{background-image:repeating-linear-gradient(to bottom,transparent 0 2px,var(--scan) 2px 3px);background-attachment:fixed}a{color:inherit;text-decoration:underline}button,input,textarea{font:inherit;color:inherit}button{cursor:pointer}.terminal-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:32px 20px}.terminal-window{width:min(1100px,calc(100vw - 40px));border:1px solid var(--line);background-color:var(--bg)}.window-chrome{display:flex;align-items:center;gap:12px;padding:10px 18px;border-bottom:1px solid var(--line);font-size:.75rem;color:var(--muted)}.window-controls{display:flex;gap:5px;flex-shrink:0}.window-btn{display:flex;align-items:center;justify-content:center;width:8px;height:8px;border:1px solid var(--muted);background:var(--bg);font-size:7px;line-height:1;color:var(--muted)}.window-btn--close{font-size:8px;line-height:.85}.window-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.theme-toggle{flex-shrink:0}.chrome-button{padding:2px 0;font-size:.72rem;color:var(--muted);background:transparent;border:none;cursor:pointer}.chrome-button:hover{color:var(--text)}.terminal-header{padding:14px 18px 0}.terminal-tabs{display:flex;gap:10px}.terminal-body,.typing-panel{display:flex;flex-direction:column}.typing-section{padding:14px 18px}.typing-section+.typing-section{padding-top:10px}.typing-controls-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.control-group{display:flex;gap:4px}.text-button{display:inline-flex;align-items:center;padding:2px 0;font-size:.84rem;letter-spacing:.04em;color:var(--muted);background:transparent;border:none;cursor:pointer;text-decoration:none}.text-button:hover,.text-button.is-active{color:var(--text)}.text-button:disabled{cursor:not-allowed;opacity:.45}.stat-line{display:flex;flex-wrap:wrap;gap:0;font-size:.84rem;color:var(--muted)}.stat-item{white-space:pre;letter-spacing:.04em}.stat-sep{color:var(--dim);margin:0 8px;-webkit-user-select:none;user-select:none}.prompt-box{cursor:text;min-height:260px}.prompt-status{display:block;font-size:.68rem;letter-spacing:.08em;text-transform:lowercase;color:var(--muted);margin-bottom:6px}.prompt-progress-wrap{margin-bottom:14px}.prompt-progress-line{height:1px;background:transparent}.prompt-progress-line span{display:block;height:1px;background:var(--text);transition:width 1s linear}@media(prefers-reduced-motion:reduce){.prompt-progress-line span{transition:none}}.prompt-copy{position:relative;font-size:clamp(1.2rem,2vw,1.65rem);line-height:1.85;color:var(--pending);overflow:hidden;min-height:calc(1.85em * 3);max-height:calc(1.85em * 3);overflow-wrap:break-word;contain:layout style}.prompt-scroll{position:relative;transition:transform .125s ease-out;will-change:transform}@media(prefers-reduced-motion:reduce){.prompt-scroll{transition:none}}.prompt-word{border-bottom:2px solid transparent}.prompt-word--error{border-bottom-color:var(--bad)}.prompt-char{position:relative;font-variant:no-common-ligatures;transition:color .08s ease-out}.prompt-char--correct{color:var(--good)}.prompt-char--wrong{color:var(--bad)}.prompt-char.is-extra{color:var(--bad);opacity:.55}.prompt-char--space{white-space:normal}.prompt-char.is-current{background:transparent;z-index:1;animation:none}.prompt-caret{position:absolute;left:0;top:0;width:.6em;height:1.2em;background:var(--text);pointer-events:none;z-index:0;will-change:transform;transition:opacity .15s ease-out;animation:caretFloatBlink 1.1s ease-in-out infinite}.prompt-copy.is-typing .prompt-caret{animation:none;opacity:1}.prompt-copy.is-finished .prompt-caret{opacity:0}@keyframes caretFloatBlink{0%,to{opacity:0}50%{opacity:1}}.prompt-copy.is-blurred .prompt-scroll{opacity:.25;filter:blur(4px);transition:opacity .25s ease-out,filter .25s ease-out,transform .125s ease-out}.prompt-focus-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;display:flex;align-items:center;justify-content:center;padding:16px;background:transparent;border:none;color:var(--text);font-size:.84rem;letter-spacing:.04em;cursor:pointer}.caps-warning{margin:0 0 8px;font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:var(--text);border:1px solid var(--line);display:inline-block;padding:2px 8px}.typing-panel.is-blurred .stat-line{opacity:.45}@media(prefers-reduced-motion:reduce){.prompt-caret{animation:none;transition:none}}.capture-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.arithmetic-panel{display:flex;flex-direction:column}.settings-note{color:var(--muted);font-size:.75rem;letter-spacing:.04em}.seed-field{display:inline-flex;align-items:center;gap:8px;flex-shrink:0;color:var(--muted);font-size:.84rem}.seed-input{width:12ch;padding:0 0 1px;border:0;border-bottom:1px solid var(--divider);outline:none;background:transparent;color:var(--text)}.seed-input:focus{border-bottom-color:var(--line)}.seed-input:disabled{opacity:.45;cursor:not-allowed}.arithmetic-box{min-height:340px;display:flex;flex-direction:column}.arithmetic-meta{display:flex;justify-content:space-between;align-items:baseline;gap:16px;color:var(--text);font-size:.84rem;letter-spacing:.04em}.arithmetic-meta-item{white-space:nowrap}.arithmetic-meta-label{margin-right:8px;color:var(--muted)}.arithmetic-equation{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%}.arithmetic-problem{margin-top:28px;font-size:clamp(3rem,9vw,6.25rem);letter-spacing:-.045em;line-height:1.1;color:var(--text)}.arithmetic-input{width:min(360px,100%);margin-top:18px;margin-inline:auto;padding:8px 0;border:0;border-bottom:1px solid var(--line);outline:none;background:transparent;color:var(--text);font-size:clamp(1.6rem,5vw,3rem);text-align:center}.arithmetic-input:disabled{color:var(--muted);border-bottom-color:var(--divider);cursor:not-allowed}.arithmetic-finished{margin-top:18px;color:var(--text);font-size:1rem;text-align:center}.arithmetic-history{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 18px;padding:0;margin:12px 0 0;list-style:none;color:var(--muted);font-size:.75rem}.arithmetic-panel .stat-line{justify-content:center}.arithmetic-panel .prompt-status{text-align:center}.arithmetic-panel .prompt-progress-wrap{max-width:240px;margin-inline:auto}.typing-footer{display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:.75rem;letter-spacing:.04em}.typing-footer p{margin:0;white-space:pre}.profile-panel{position:relative;padding:14px 18px 16px}.profile-panel:before{content:"";position:absolute;top:0;left:18px;right:18px;height:1px;background:var(--divider)}.wpm-guide{padding:28px 18px 12px;max-width:42rem}.wpm-guide-title{margin:0 0 18px;font-size:.84rem;font-weight:400;letter-spacing:.04em}.wpm-guide p{margin:0 0 16px;color:var(--muted);font-size:.84rem;line-height:1.65;letter-spacing:.02em}.wpm-guide pre{margin:0 0 16px;padding:0;border:0;background:transparent;color:var(--text);font:inherit;font-size:.84rem;line-height:1.7;letter-spacing:.02em;white-space:pre-wrap}.wpm-guide-example{color:var(--dim)}.profile-quiet{margin:0;color:var(--muted);font-size:.8rem;letter-spacing:.04em}.terminal-link{color:var(--text);text-decoration:none;border-bottom:1px solid var(--dim)}.terminal-link:hover{background:transparent;color:var(--text);border-bottom-color:var(--text)}.results-box{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:var(--bg);padding:20px;overflow-y:auto;--heat-1: #2a2a2a;--heat-2: #5a5a5a;--heat-3: #9a9a9a;--heat-4: #ffffff;--heat-ink: #000000}.results-box>button{margin-top:28px}.results-quiet-wpm{margin:0;font-size:clamp(3rem,10vw,6rem);line-height:1;letter-spacing:-.04em}.results-quiet-wpm span{font-size:.28em;letter-spacing:.08em;color:var(--muted)}.results-quiet-meta{margin:18px 0 0;color:var(--muted);font-size:.84rem;letter-spacing:.04em}:root[data-theme=light] .results-box{--heat-1: #e8e8e8;--heat-2: #c4c4c4;--heat-3: #8a8a8a;--heat-4: #000000;--heat-ink: #ffffff}.results-kb{display:flex;flex-direction:column;align-items:center;gap:5px;margin-top:28px}.results-kb-row{display:flex;gap:5px}.results-kb-row[data-row="1"]{padding-left:16px}.results-kb-row[data-row="2"]{padding-left:26px}.results-kb-row[data-row="3"]{padding-left:42px}.results-key{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid var(--divider);font-size:11px;letter-spacing:.02em;color:var(--muted)}.results-key[data-heat="1"]{background:var(--heat-1);border-color:var(--dim);color:var(--text)}.results-key[data-heat="2"]{background:var(--heat-2);border-color:var(--muted);color:var(--text)}.results-key[data-heat="3"]{background:var(--heat-3);border-color:var(--muted);color:var(--bg)}.results-key[data-heat="4"],.results-key[data-heat="5"]{background:var(--heat-4);border-color:var(--heat-4);color:var(--heat-ink)}.results-key--space{width:210px}.results-kb-legend{margin:10px 0 0;color:var(--dim);font-size:.68rem;letter-spacing:.08em}.profile-dot{margin:0 10px;color:var(--dim)}@media(max-width:820px){.typing-controls-row{flex-direction:column;align-items:flex-start}.stat-line{flex-direction:column;gap:4px}}@media(max-width:720px){.terminal-shell{padding:16px 10px;align-items:flex-start}.terminal-window{width:100%}.window-chrome{flex-wrap:wrap;gap:8px}.window-title{order:3;flex-basis:100%}.typing-footer{flex-direction:column;align-items:flex-start}.prompt-box{min-height:220px}.prompt-copy{font-size:1rem;line-height:1.75;min-height:5.25em;max-height:5.25em}.results-key{width:24px;height:24px;font-size:9px}.results-key--space{width:140px}.results-kb-row[data-row="1"]{padding-left:10px}.results-kb-row[data-row="2"]{padding-left:16px}.results-kb-row[data-row="3"]{padding-left:26px}}.terminal-tabs{gap:8px;flex-wrap:wrap}.terminal-tabs .mode-link{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:10px 14px;border:1px solid transparent;border-bottom:2px solid transparent}.terminal-tabs .mode-link.is-active{border-color:var(--divider);border-bottom-color:var(--text);background:var(--scan)}.mode-name{font-size:.8rem}.mode-description{font-size:.62rem;letter-spacing:0;color:var(--muted)}.mode-link:focus-visible,.arithmetic-panel button:focus-visible,.seed-input:focus-visible{outline:2px solid var(--text);outline-offset:3px}.mode-arithmetic .terminal-window{max-width:1000px;border-color:var(--muted)}.mode-arithmetic .window-chrome{border-color:var(--muted)}.mode-arithmetic .terminal-header{padding:16px 32px 0}.arithmetic-panel{padding:32px 42px 20px}.arithmetic-panel>.typing-section{padding:0}.arithmetic-intro{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:30px}.arithmetic-kicker{color:var(--muted);font-size:.62rem;letter-spacing:.14em;text-transform:uppercase}.arithmetic-intro h1{margin:12px 0 0;font-size:clamp(1.4rem,3vw,1.9rem);font-weight:400;letter-spacing:-.05em}.arithmetic-intro>p{margin:0;color:var(--muted);font-size:.7rem;line-height:1.8}.arithmetic-panel .arithmetic-toolbar{flex-direction:row;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--divider);border-bottom:1px solid var(--divider)}.arithmetic-toolbar .text-button{padding:8px 10px;font-size:.75rem}.arithmetic-toolbar .arithmetic-start{border:1px solid var(--text)}.arithmetic-toolbar .seed-field{margin-left:auto;font-size:.75rem}.arithmetic-toolbar .settings-note{display:none}.arithmetic-panel .arithmetic-box{padding-top:28px;min-height:330px}.arithmetic-meta{gap:15px;font-size:1.3rem}.arithmetic-meta-label{font-size:.65rem}.arithmetic-question-label{display:flex;justify-content:space-between;margin-top:30px;color:var(--muted);font-size:.62rem;text-transform:uppercase;letter-spacing:.08em}.arithmetic-question-label .prompt-status{margin:0}.arithmetic-panel .prompt-progress-wrap{max-width:none;width:100%;margin:12px 0 0}.arithmetic-panel .prompt-progress-line{background:var(--divider)}.arithmetic-panel .prompt-progress-line span{transition:width .1s linear}.arithmetic-equation{flex-direction:row;gap:18px;padding:42px 0}.arithmetic-problem{margin:0;font-size:clamp(1.8rem,4.5vw,3.4rem);white-space:nowrap}.arithmetic-input{width:3.4ch;margin:0;padding:5px 0;font-size:clamp(1.8rem,4.5vw,3.4rem);border-bottom-color:var(--divider)}.arithmetic-input:focus{border-bottom-color:var(--text)}.arithmetic-input::placeholder{color:var(--dim)}.arithmetic-finished{display:flex;flex-direction:column;gap:9px;padding:0 0 24px}.arithmetic-finished strong{font-size:1.5rem;font-weight:400}.arithmetic-finished span{color:var(--muted);font-size:.7rem;overflow-wrap:anywhere}.arithmetic-history-heading{display:flex;justify-content:space-between;border-top:1px solid var(--divider);padding-top:20px;margin-top:16px;font-size:.62rem;color:var(--muted);text-transform:uppercase;letter-spacing:.1em}.arithmetic-history{justify-content:flex-start;gap:8px}.arithmetic-history li{padding:9px 12px;border:1px solid var(--divider);color:var(--text)}.arithmetic-history-empty{color:var(--muted);font-size:.7rem;margin:18px 0 0}.mode-arithmetic .profile-panel{border-top:1px solid var(--divider);padding:18px 42px}@media(max-width:720px){.mode-arithmetic .terminal-header{padding:12px 12px 0}.terminal-tabs{gap:3px}.terminal-tabs .mode-link{padding:8px}.mode-description{font-size:.56rem}.arithmetic-panel{padding:26px 20px 20px}.arithmetic-intro{flex-direction:column;align-items:flex-start;gap:16px}.arithmetic-toolbar .seed-field{margin-left:0}.arithmetic-meta-item{display:flex;flex-direction:column;gap:7px}.arithmetic-meta-label{margin:0}.arithmetic-equation{gap:10px;padding:40px 0}.arithmetic-problem,.arithmetic-input{font-size:clamp(1.45rem,6vw,2.7rem)}.mode-arithmetic .profile-panel{padding:18px 20px}}@media(prefers-reduced-motion:reduce){.arithmetic-panel .prompt-progress-line span{transition:none}}
