:root{--bg:#1b1d24;--bg-2:#22252e;--key:#2a2e39;--key-edge:#1f222a;--sub:#5c6270;--sub-2:#3a3f4b;--text:#e6e3d8;--accent:#7dd3c0;--error:#f0707a;--error-extra:#9b3f48;--selection:#7dd3c040;--hand-fill:#d9cfc4;--hand-outline:#f3ece4;--font:"JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace}*{box-sizing:border-box}html,body{background:var(--bg);color:var(--text);font-family:var(--font);-webkit-font-smoothing:antialiased;margin:0}button{font:inherit}kbd{font-family:var(--font);background:var(--sub-2);color:var(--text);border-radius:4px;padding:.1em .45em;font-size:.75em}.app{flex-direction:column;gap:12px;max-width:1360px;min-height:100vh;margin:0 auto;padding:20px 32px 14px;display:flex}.top{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:24px;display:flex}.logo{letter-spacing:-.02em;cursor:pointer;-webkit-user-select:none;user-select:none;font-size:1.7rem;font-weight:700}.logo-mark{color:var(--accent)}.config{background:var(--bg-2);border-radius:10px;flex-wrap:wrap;align-items:center;gap:4px;padding:4px 10px;font-size:.78rem;transition:opacity .25s;display:flex}.is-running .config,.is-running .foot,.is-running .restart-row,.is-running .guide-opts,.is-running .bookmarks{opacity:0;pointer-events:none}.config-group{display:flex}.config-sep{background:var(--sub-2);border-radius:2px;width:4px;height:18px;margin:0 4px}.toggle{white-space:nowrap;color:var(--sub);cursor:pointer;background:0 0;border:none;border-radius:6px;padding:6px 7px;transition:color .15s}.toggle:hover{color:var(--text)}.toggle.on{color:var(--accent)}.main{flex-direction:column;flex:1;justify-content:center;gap:8px;display:flex}.live{height:2rem;color:var(--accent);align-items:baseline;gap:16px;font-size:1.6rem;display:flex}.live-tip{color:var(--sub);margin-left:auto;font-size:.78rem}.is-running .live-tip{opacity:.6}.words-placeholder{line-height:var(--lh);color:var(--sub-2);pointer-events:none;position:absolute;top:0;left:1.2rem}.live-wpm{color:var(--sub);font-size:1rem}.words-wrap{--fs:1.75rem;--lh:2.6rem;height:calc(var(--lh) * 3);font-size:var(--fs);position:relative;overflow:hidden}.words-scroll{transition:transform .12s ease-out;position:relative}.words-wrap.blurred .words-scroll{filter:blur(5px);opacity:.5}.focus-hint{color:var(--text);cursor:pointer;place-items:center;font-size:1rem;display:grid;position:absolute;inset:0}.words{-webkit-user-select:none;user-select:none;flex-wrap:wrap;display:flex}.word{height:var(--lh);line-height:var(--lh);border-bottom:2px solid #0000;margin:0 .6em 0 0}.word-wrong{-webkit-text-decoration:underline var(--error) 2px;text-decoration:underline var(--error) 2px;text-underline-offset:6px}.word-sel{background:var(--selection);margin-right:0;padding-right:.6em}.word-sel-letters .l-ok,.word-sel-letters .l-bad,.word-sel-letters .l-extra{background:var(--selection)}.l{color:var(--sub);transition:color 50ms}.l-ok{color:var(--text)}.l-bad{color:var(--error)}.l-extra{color:var(--error-extra)}.l-missed{color:var(--sub)}.caret{background:var(--accent);border-radius:2px;width:3px;margin-left:-1.5px;transition:transform 90ms ease-out;position:absolute;top:0;left:0}.caret-blink{animation:1s step-end infinite blink}@keyframes blink{50%{opacity:0}}.restart-row{justify-content:center;transition:opacity .25s;display:flex}.icon-btn{color:var(--sub);cursor:pointer;background:0 0;border:none;border-radius:8px;padding:8px 16px;font-size:1.1rem}.icon-btn:hover,.icon-btn:focus-visible{color:var(--text);background:var(--bg-2);outline:none}.restart{font-size:1.4rem}.guide{flex-direction:column;align-items:center;gap:6px;margin-top:8px;display:flex}.hint{color:var(--sub);min-height:1.8rem;font-size:.95rem}.hint-warn{color:var(--error);min-height:0;font-size:.8rem}.layout-notice{color:var(--text);background:var(--bg-2);border:1px solid var(--sub-2);border-radius:8px;padding:6px 12px;font-size:.85rem}.layout-notice strong{color:var(--accent)}.hint-then{color:var(--sub)}.link-btn{color:var(--accent);cursor:pointer;font-size:inherit;background:0 0;border:none;margin-left:8px;text-decoration:underline}.select{color:var(--sub);align-items:center;gap:6px;padding:0 6px;display:inline-flex}.select select{font:inherit;color:var(--accent);background:var(--bg-2);border:1px solid var(--sub-2);cursor:pointer;border-radius:6px;padding:4px 6px}.select select:focus-visible{outline:1px solid var(--accent)}.hint-key{background:var(--key);border:2px solid;padding:.05em .5em;font-size:.9rem}.hint-plus{color:var(--sub)}.kb{width:100%;max-width:900px;height:auto;display:block}.key-cap{fill:var(--key);stroke:var(--key-edge);stroke-width:1px;transition:fill .15s}.key-bump{fill:var(--sub)}.key-label{fill:var(--sub);font-family:var(--font);-webkit-user-select:none;user-select:none}.key-label .lbl-strong{fill:var(--text);opacity:.75}.key-label .lbl-dim{fill:var(--sub)}text.key-label{fill:var(--text);opacity:.7}.lbl-alt{font-size:11px}.key-label .lbl-dead{opacity:.45}.key-label-target,text.key-label-target{opacity:1;font-weight:700}.key-label-target .lbl-strong{fill:#fff;opacity:1}text.key-label-target{fill:#fff;paint-order:stroke;stroke:#00000073;stroke-width:3px}.key-label-target text{paint-order:stroke;stroke:#00000073;stroke-width:3px}.key-flash-ok .key-cap{fill:#3c5a55;transition:none}.key-flash-bad .key-cap{fill:#6a2f36;transition:none}.bw-box{fill:var(--bg);opacity:.82}.bw-text,.bw-following{font-family:var(--font);-webkit-user-select:none;user-select:none}.bw-ok{fill:var(--text)}.bw-bad{fill:var(--error)}.bw-extra{fill:var(--error-extra)}.bw-todo{fill:var(--sub)}.bw-next{fill:var(--accent);font-weight:700;text-decoration:underline}.bw-following{fill:var(--sub);opacity:.8}.hand-outline{fill:var(--hand-outline);stroke:var(--hand-outline)}line.hand-outline{fill:none}.hand-fill{fill:var(--hand-fill)}.hand-fill-stroke{stroke:var(--hand-fill)}.hand-nail{stroke:#f6efe8}.hand-nail-active{stroke:#ffffff8c}.active-finger{transition:opacity .12s}.guide-opts{flex-wrap:wrap;justify-content:center;align-items:center;gap:4px;font-size:.78rem;transition:opacity .25s;display:flex}.results{flex-direction:column;gap:18px;animation:.25s ease-out fadein;display:flex}@keyframes fadein{0%{opacity:0;transform:translateY(6px)}}.results-top{grid-template-columns:auto 1fr;align-items:center;gap:24px;display:grid}.big-stats{flex-direction:column;gap:10px;display:flex}.stat-label{color:var(--sub);font-size:1rem}.stat-big{color:var(--accent);font-size:3.6rem;line-height:1}.stat-mid{color:var(--accent);font-size:1.6rem}.stat-mid.small{max-width:220px;font-size:.95rem}.stat-sub{color:var(--sub);margin-top:4px;font-size:.8rem}.pb-badge{color:var(--bg);background:var(--accent);border-radius:999px;margin-top:6px;padding:2px 8px;font-size:.7rem;display:inline-block}.small-stats{flex-wrap:wrap;justify-content:space-between;gap:18px;display:flex}.results-actions{justify-content:center;gap:8px;display:flex}.chart{width:100%;height:auto}.chart .grid{stroke:var(--sub-2);stroke-width:1px}.chart .axis{fill:var(--sub);font-size:11px;font-family:var(--font)}.line-wpm{fill:none;stroke:var(--accent);stroke-width:3px;stroke-linejoin:round}.line-raw{fill:none;stroke:var(--sub);stroke-width:2px;stroke-linejoin:round}.err-mark line{stroke:var(--error);stroke-width:2px;stroke-linecap:round}.foot{color:var(--sub);justify-content:center;gap:24px;font-size:.78rem;transition:opacity .25s;display:flex}@media (width<=720px){.app{padding:16px}.config-sep{display:none}.words-wrap{--fs:1.25rem;--lh:2rem}.results-top{grid-template-columns:1fr}}[hidden]{display:none!important}.editor{flex-direction:column;gap:12px;width:100%;max-width:900px;font-size:.85rem;display:flex}.editor-row{flex-wrap:wrap;align-items:flex-end;gap:12px;display:flex}.field{color:var(--sub);flex-direction:column;gap:4px;display:flex}.field input,.field select,.editor-io textarea{font:inherit;color:var(--text);background:var(--bg-2);border:1px solid var(--sub-2);border-radius:6px;padding:6px 8px}.field input:focus,.field select:focus,.editor-io textarea:focus{outline:1px solid var(--accent)}.field-char input{text-align:center;width:3.2em}.editor-panel{background:var(--bg-2);border-radius:10px;padding:12px 14px;line-height:1.6}.editor-panel.recording{border:1px solid var(--accent)}.editor-buttons{flex-wrap:wrap;align-items:center;gap:8px;margin-top:4px;display:flex}.spacer{flex:1}.muted{color:var(--sub)}.btn{font:inherit;color:var(--text);background:var(--bg-2);border:1px solid var(--sub-2);cursor:pointer;border-radius:6px;padding:6px 12px}.btn:hover{border-color:var(--sub)}.btn:disabled{opacity:.5;cursor:default}.btn-primary{background:var(--accent);border-color:var(--accent);color:var(--bg)}.btn-danger{color:var(--error)}.editor-io{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.editor-io textarea{resize:vertical;width:100%;font-size:.75rem}.error-text{color:var(--error)}.kb-editing .key{cursor:pointer}.kb-editing .key:hover .key-cap{fill:var(--sub-2)}.key-selected{fill:none;stroke:var(--accent);stroke-width:3px;stroke-dasharray:6 4}.foot-link{font-size:inherit;color:var(--sub);margin:0}.foot-link:hover{color:var(--text)}.bookmarks{flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;font-size:.78rem;transition:opacity .25s;display:flex}.chip{background:var(--bg-2);border:1px solid var(--sub-2);border-radius:999px;align-items:center;display:inline-flex;overflow:hidden}.chip.on{border-color:var(--accent)}.chip button{font:inherit;color:var(--sub);cursor:pointer;background:0 0;border:none;padding:4px 4px 4px 10px}.chip.on button:first-child{color:var(--accent)}.chip button:hover{color:var(--text)}.chip .chip-x{padding:4px 9px 4px 4px}.bookmark-form{align-items:center;gap:6px;display:inline-flex}.bookmark-form input{font:inherit;color:var(--text);background:var(--bg-2);border:1px solid var(--sub-2);border-radius:6px;width:220px;padding:5px 8px}.gallery{flex-direction:column;gap:20px;display:flex}.gallery-head{justify-content:space-between;align-items:center;display:flex}.gallery h2{margin:0;font-size:1.3rem}.gallery h3{color:var(--sub);text-transform:uppercase;letter-spacing:.08em;margin:0 0 8px;font-size:.85rem}.gallery-group{flex-direction:column;gap:14px;display:flex}.gallery-item{background:var(--bg-2);border:1px solid #0000;border-radius:12px;flex-direction:column;align-items:center;gap:8px;padding:14px 16px 6px;display:flex}.gallery-item.current{border-color:var(--accent)}.gallery-meta{flex-wrap:wrap;justify-content:space-between;align-self:stretch;align-items:center;gap:6px 16px;font-size:.85rem;display:flex}.tag{border:1px solid var(--sub-2);color:var(--sub);border-radius:999px;margin-left:8px;padding:2px 8px;font-size:.7rem}.tag-on{border-color:var(--accent);color:var(--accent)}.key{transition:opacity .2s}.key-dim{opacity:.35}.key-focus .key-cap{stroke:var(--accent);stroke-opacity:.55;stroke-width:1.5px}.help-btn{border:1px solid var(--sub-2);background:var(--bg-2);width:28px;height:28px;color:var(--sub);font:inherit;cursor:pointer;border-radius:50%;flex:none;font-size:.85rem}.help-btn:hover{color:var(--text);border-color:var(--sub)}.is-running .help-btn{opacity:0;pointer-events:none}.tour{pointer-events:none;z-index:50;position:fixed;inset:0}.tour-ring{border:2px solid var(--accent);border-radius:12px;transition:all .25s ease-out;position:fixed;box-shadow:0 0 0 4px #7dd3c026}.tour-pop{pointer-events:auto;background:var(--bg-2);border:1px solid var(--sub-2);border-radius:12px;padding:12px 14px;font-size:.85rem;line-height:1.5;animation:.2s ease-out fadein;position:fixed;box-shadow:0 10px 30px #00000073}.tour-title{color:var(--accent);justify-content:space-between;margin-bottom:4px;font-weight:700;display:flex}.tour-title .muted{font-weight:400}.tour-buttons{align-items:center;gap:6px;margin-top:10px;display:flex}.tour-buttons .link-btn{margin:0}.brand{align-items:center;gap:12px;display:flex}.callout{background:var(--bg-2);border:1px solid var(--sub-2);border-radius:10px;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:12px 16px;font-size:.88rem;line-height:1.5;display:flex}.callout-good{border-color:#7dd3c080}.callout .btn{margin-left:auto}.your-keys{border-top:1px solid var(--sub-2);padding-top:16px;font-size:.88rem}.your-keys h3{color:var(--sub);text-transform:uppercase;letter-spacing:.08em;margin:0;font-size:.85rem}.your-keys-head{justify-content:space-between;align-items:center;display:flex}.your-keys p{flex-wrap:wrap;align-items:center;gap:6px 10px;margin:10px 0;display:flex}.your-keys .btn{margin-left:auto}.weak-keys{color:var(--error);letter-spacing:.2em}.your-keys-board{max-width:640px;margin:0 auto}.small{font-size:.75rem}.key-heat{fill:var(--error);pointer-events:none}.hint-exercise{min-height:0;font-size:.8rem}.hint-exercise strong{color:var(--accent);letter-spacing:.15em}.xmenu{color:var(--sub);align-items:center;gap:6px;padding:0 6px;display:inline-flex}.xmenu-button{font:inherit;color:var(--accent);background:var(--bg-2);border:1px solid var(--sub-2);cursor:pointer;white-space:nowrap;border-radius:6px;align-items:center;gap:8px;padding:4px 8px;display:inline-flex}.xmenu-button:hover,.xmenu-button.open,.xmenu-button:focus-visible{border-color:var(--sub);outline:none}.xmenu-step{color:var(--bg);background:var(--accent);border-radius:999px;padding:0 6px;font-size:.7rem}.xmenu-caret{color:var(--sub);font-size:.7rem}.xmenu-pop{z-index:40;background:var(--bg-2);border:1px solid var(--sub-2);border-radius:12px;grid-template-columns:220px 1fr;animation:.15s ease-out fadein;display:grid;position:fixed;overflow:hidden;box-shadow:0 14px 40px #00000080}.xmenu-pop.narrow{grid-template-columns:1fr}.xmenu-list{border-right:1px solid var(--sub-2);max-height:min(420px,60vh);padding:6px;overflow-y:auto}.xmenu-pop.narrow .xmenu-list{border-right:none;border-bottom:1px solid var(--sub-2);max-height:40vh}.xmenu-group{text-transform:uppercase;letter-spacing:.08em;color:var(--sub);padding:10px 10px 4px;font-size:.68rem}.xmenu-item{color:var(--text);cursor:pointer;border-radius:6px;justify-content:space-between;align-items:center;padding:6px 10px;display:flex}.xmenu-item.active{background:var(--sub-2)}.xmenu-item.selected{color:var(--accent)}.xmenu-check{font-size:.75rem}.xmenu-about{color:var(--text);padding:14px 16px;font-size:.85rem;line-height:1.55}.xmenu-about p{margin:8px 0 0}.xmenu-about-title{color:var(--accent);font-weight:700}.xmenu-keys{color:var(--sub)}.xmenu-keys span{color:var(--text);letter-spacing:.15em}.live-actions{align-self:center;align-items:center;gap:2px;margin-left:auto;display:flex}.live .live-tip+.live-actions{margin-left:12px}.live .restart{padding:2px 10px;font-size:1.15rem}.is-running .live .restart{opacity:0;pointer-events:none}.autoplay-play{padding:5px 10px;font-size:.85rem}.autoplay{color:var(--sub);align-items:center;gap:8px;font-size:.85rem;display:inline-flex}.autoplay-dot{background:var(--accent);border-radius:50%;width:7px;height:7px;animation:1.6s ease-in-out infinite autoplay-pulse}@keyframes autoplay-pulse{50%{opacity:.25}}.autoplay-speed{font:inherit;color:var(--accent);background:var(--bg-2);border:1px solid var(--sub-2);cursor:pointer;border-radius:6px;padding:2px 4px}.autoplay-speed:focus-visible{outline:1px solid var(--accent)}.autoplay .toggle{padding:2px 4px}.autoplay-stop{padding:3px 8px;font-size:.85rem}.guide .kb{max-height:max(250px,100vh - 412px)}.foot{flex-wrap:wrap;align-items:center;gap:8px 20px}.foot .bookmarks{justify-content:flex-start}.foot-spacer{flex:1}@media (height<=900px){.app{gap:8px;padding-top:14px}.main{gap:4px}}.toasts{z-index:30;pointer-events:none;flex-direction:column;align-items:center;gap:8px;width:max-content;max-width:calc(100vw - 32px);display:flex;position:fixed;bottom:52px;left:50%;transform:translate(-50%)}.toasts .layout-notice{pointer-events:auto;animation:.2s ease-out fadein;box-shadow:0 8px 24px #00000073}.live-notes{color:var(--sub);flex-direction:column;justify-content:center;align-self:center;gap:2px;min-width:0;font-size:.8rem;display:flex}.live-note strong{color:var(--accent);letter-spacing:.15em}.live-warn{color:var(--error)}.live-warn .link-btn{font-size:inherit}.results .chart{max-height:160px}.your-keys-board .kb{max-height:165px}.results{gap:12px}.your-keys p{margin:6px 0}.cp-backdrop{z-index:60;background:#0a0b0f8c;justify-content:center;align-items:flex-start;padding:10vh 16px 16px;animation:.12s ease-out fadein;display:flex;position:fixed;inset:0}.cp{background:var(--bg-2);border:1px solid var(--sub-2);border-radius:14px;flex-direction:column;width:min(760px,100%);max-height:80vh;display:flex;overflow:hidden;box-shadow:0 24px 60px #0000008c}.cp-search{border-bottom:1px solid var(--sub-2);align-items:center;gap:8px;padding:12px 14px;display:flex}.cp-search input{min-width:0;font:inherit;color:var(--text);background:0 0;border:none;outline:none;flex:1;font-size:1rem}.cp-search input::placeholder{color:var(--sub)}.cp-crumb{font:inherit;color:var(--accent);background:var(--bg);border:1px solid var(--sub-2);cursor:pointer;white-space:nowrap;border-radius:999px;padding:2px 10px;font-size:.8rem}.cp-body{flex:1;grid-template-columns:minmax(0,1fr) 300px;min-height:0;display:grid}.cp-list{border-right:1px solid var(--sub-2);max-height:min(440px,60vh);padding:6px;overflow-y:auto}.cp-group{text-transform:uppercase;letter-spacing:.08em;color:var(--sub);padding:10px 10px 4px;font-size:.68rem}.cp-row{color:var(--text);cursor:pointer;border-radius:7px;align-items:center;gap:10px;padding:7px 10px;font-size:.9rem;display:flex}.cp-row.active{background:var(--sub-2)}.cp-row.disabled{color:var(--sub)}.cp-title{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.cp-value{color:var(--sub);white-space:nowrap;text-overflow:ellipsis;max-width:45%;font-size:.8rem;overflow:hidden}.cp-value.cp-on{color:var(--accent)}.cp-more,.cp-check{color:var(--accent);font-size:.85rem}.cp-empty{color:var(--sub);padding:16px 10px;font-size:.85rem}.cp-details{max-height:min(440px,60vh);padding:14px 16px;font-size:.84rem;line-height:1.55;overflow-y:auto}.cp-details p{margin:8px 0 0}.cp-details-title{color:var(--accent);font-weight:700}.cp-warn{color:var(--error)}.cp-changes{border-top:1px solid var(--sub-2);margin-top:12px;padding-top:10px}.cp-changes-title{text-transform:uppercase;letter-spacing:.08em;color:var(--sub);font-size:.68rem}.cp-changes ul{margin:6px 0 0;padding-left:16px}.cp-changes li{margin:2px 0}.cp-note{color:var(--sub);font-size:.8rem}.cp-foot{border-top:1px solid var(--sub-2);color:var(--sub);flex-wrap:wrap;gap:4px 16px;padding:8px 14px;font-size:.72rem;display:flex}.cp-foot kbd{margin-right:3px}@media (width<=640px){.cp-body{grid-template-columns:1fr}.cp-list{border-right:none;border-bottom:1px solid var(--sub-2);max-height:40vh}.cp-details{max-height:30vh}}.l-skip{color:var(--sub);text-decoration:line-through;-webkit-text-decoration-color:var(--error);text-decoration-color:var(--error)}.bw-skip{fill:var(--sub);text-decoration:line-through}
