.typing-speed-test{width:100%;max-width:1080px;margin-inline:auto;padding:0 4px 48px}.typing-test-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.typing-test-back,.typing-test-guide-toggle,.typing-test-secondary{min-height:44px;color:var(--muted-foreground);border-radius:8px;justify-content:center;align-items:center;gap:8px;font-size:13px;font-weight:500;display:inline-flex}.typing-test-back:hover,.typing-test-guide-toggle:hover,.typing-test-secondary:hover{color:var(--foreground)}.typing-test-back:focus-visible,.typing-test-guide-toggle:focus-visible,.typing-test-secondary:focus-visible{outline:2px solid var(--ring);outline-offset:3px}.typing-test-intro{margin:28px 0 24px}.typing-test-eyebrow{letter-spacing:.14em;text-transform:uppercase;color:var(--muted-foreground);font-size:10px;font-weight:700}.typing-test-intro h1,.typing-test-result h1{letter-spacing:-.04em;margin:6px 0 8px;font-size:clamp(26px,3vw,36px);font-weight:750;line-height:1.2}.typing-test-intro>p:last-child{color:var(--muted-foreground);font-size:14px}.typing-test-options{flex-wrap:wrap;justify-content:space-between;gap:12px;margin-bottom:18px;display:flex}.typing-test-segments,.typing-test-extra-options{gap:4px;display:flex}.typing-test-segments{border:1px solid var(--border);background:var(--card);border-radius:12px;padding:3px}.typing-test-options button{min-width:64px;min-height:44px;color:var(--muted-foreground);font-variant-numeric:tabular-nums;border-radius:8px;justify-content:center;align-items:center;gap:6px;padding:8px 14px;font-size:13px;font-weight:600;transition:background-color .12s,color .12s;display:inline-flex}.typing-test-options button[aria-pressed=true]{background:var(--foreground);color:var(--background)}.typing-test-options button:hover:not(:disabled):not([aria-pressed=true]){background:var(--muted);color:var(--foreground)}.typing-test-options button:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.typing-test-options button:disabled{cursor:default;opacity:.7}.typing-test-segments button span{opacity:.8;font-weight:400}.typing-test-extra-options{align-items:center}.typing-test-extra-options button{border:1px solid var(--border)}.typing-test-stage{border:1px solid var(--typing-hairline,var(--border));background:var(--typing-stage,var(--card));border-radius:20px;overflow:hidden}.typing-test-hud{font-variant-numeric:tabular-nums;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:16px 24px;display:flex}.typing-test-hud>div{color:var(--muted-foreground);gap:24px;font-size:12px;display:flex}.typing-test-hud strong{color:var(--foreground);font-weight:700}.typing-test-timer{color:var(--muted-foreground);align-items:center;gap:8px;font-size:12px;display:inline-flex}.typing-test-timer strong{letter-spacing:-.04em;min-width:1.7ch;font-size:25px}.typing-test-time-track{background:var(--border);height:2px}.typing-test-time-track span{background:var(--foreground);height:100%;transition:width .2s linear;display:block}.typing-test-field{cursor:text;text-align:center;width:100%;padding:30px 20px;display:block;position:relative}.typing-test-field:focus-visible{outline:2px solid var(--ring);outline-offset:-4px;border-radius:8px}.typing-test-focus{background:color-mix(in srgb, var(--background) 90%, transparent);color:var(--foreground);justify-content:center;align-items:center;padding:20px;font-size:14px;font-weight:600;display:flex;position:absolute;inset:0}.typing-test-stage-footer{border-top:1px solid var(--border);color:var(--muted-foreground);justify-content:space-between;align-items:center;gap:8px;padding:4px 12px 4px 24px;font-size:12px;display:flex}.typing-test-actions{flex-wrap:wrap;align-items:center;gap:8px 18px;padding-block:12px;display:flex}.typing-test-best{color:var(--muted-foreground);margin-left:auto;font-size:12px}.typing-test-best strong{color:var(--foreground);font-variant-numeric:tabular-nums;margin-left:6px}.typing-test-guide{width:100%;margin:0 auto;overflow-x:auto}.typing-test-guide>.typing-outline-guide{max-width:680px}.typing-speed-test[data-phase=running]{z-index:50;background:var(--background);flex-direction:column;align-items:center;max-width:none;padding:0 24px 12px;display:flex;position:fixed;inset:0;overflow-y:auto}.typing-speed-test[data-phase=running]>*{flex-shrink:0;width:min(100%,960px)}.typing-speed-test[data-phase=running] .typing-test-header{border-bottom:1px solid var(--border);width:100%;min-height:56px}.typing-speed-test[data-phase=running] .typing-test-intro{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px;margin-block:10px;display:flex}.typing-test-live-config{color:var(--muted-foreground);font-size:12px}.typing-speed-test[data-phase=running] .typing-test-intro h1{margin:0;font-size:18px}.typing-speed-test[data-phase=running] .typing-test-intro p,.typing-speed-test[data-phase=running] .typing-test-options{display:none}.typing-speed-test[data-phase=running] .typing-test-field{padding-block:18px}.typing-speed-test[data-phase=running] .typing-test-actions{padding-block:2px}.typing-speed-test[data-phase=running] .typing-test-guide{text-align:center;flex:1 1 0;min-height:120px;container-type:size}.typing-speed-test[data-phase=running] .typing-test-guide>.typing-outline-guide{width:min(100%,202.105cqh - 56.5895px);max-width:820px}.typing-speed-test[data-phase=running] .typing-test-guide:has([data-interactive=true]){min-height:410px}.typing-test-result{max-width:860px;margin:28px auto 0}.typing-test-personal-best{color:var(--muted-foreground);font-size:14px}.typing-test-result-stats{grid-template-columns:repeat(3,1fr);gap:20px;padding:28px 0 20px;display:grid}.typing-test-result-stats>div{color:var(--muted-foreground);flex-direction:column;align-items:flex-start;gap:6px;display:flex}.typing-test-result-stats strong{letter-spacing:-.055em;color:var(--foreground);font-variant-numeric:tabular-nums;font-size:clamp(38px,6vw,62px);font-weight:750;line-height:1.1}.typing-test-result-stats small{margin-left:3px;font-size:.44em;font-weight:500}.typing-test-result-stats span{font-size:12px}.typing-test-result-detail{border-block:1px solid var(--border);font-variant-numeric:tabular-nums;color:var(--muted-foreground);flex-wrap:wrap;gap:8px 24px;padding:12px 0;font-size:12px;display:flex}.typing-test-result-chart{margin-top:24px}.typing-test-result-chart>p{margin-bottom:8px}.typing-test-coaching{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:16px 0;display:flex}.typing-test-coaching kbd{border:1px solid var(--border);background:var(--card);border-bottom-width:3px;border-radius:8px;justify-content:center;align-items:center;min-width:40px;height:40px;padding:8px;font-size:16px;display:inline-flex}.typing-test-save{min-height:36px;color:var(--muted-foreground);flex-wrap:wrap;align-items:center;gap:8px;font-size:12px;display:flex}.typing-test-save-error{border:1px dashed var(--border);border-radius:12px;margin-block:12px;padding:12px}.typing-test-result-actions{flex-wrap:wrap;align-items:center;gap:12px 20px;margin-block:16px;display:flex}.typing-test-history{border-top:1px solid var(--border);max-width:860px;margin:32px auto 0;padding-top:20px}.typing-test-history header{justify-content:space-between;align-items:center;gap:12px;font-size:12px;display:flex}.typing-test-history h2{font-size:14px;font-weight:600}.typing-test-history header>span{color:var(--muted-foreground)}.typing-test-history-list{margin-top:12px}.typing-test-history-list>div{border-bottom:1px solid var(--border);font-variant-numeric:tabular-nums;grid-template-columns:1fr 1fr 1fr;gap:12px;padding:12px 0;font-size:12px;display:grid}.typing-test-history-list strong{text-align:center;font-size:14px}.typing-test-history-list strong>span{color:var(--muted-foreground);font-size:11px;font-weight:400}.typing-test-history-list>div>span{text-align:right;color:var(--muted-foreground)}@media (width<=600px){.typing-test-intro{margin-top:16px}.typing-test-extra-options{width:100%}.typing-test-extra-options button{flex:1}.typing-test-hud{padding:10px 14px}.typing-test-hud>div{gap:12px}.typing-test-field{padding:20px 10px}.typing-test-stage-footer{padding-left:14px}.typing-test-best{width:100%;margin-left:0}.typing-test-result-stats{gap:12px}}@media (prefers-reduced-motion:reduce){.typing-test-options button,.typing-test-time-track span{transition:none}}.typing-test-review,.typing-test-scoring{border-block:1px solid var(--border);margin-block:16px;padding-block:12px}.typing-test-review summary,.typing-test-scoring summary{cursor:pointer;min-height:24px;font-size:13px;font-weight:600}.typing-test-review summary span{color:var(--muted-foreground);margin-left:12px;font-size:11px;font-weight:400}.typing-test-review p,.typing-test-scoring p{color:var(--muted-foreground);margin-top:10px;font-size:12px;line-height:1.6}.typing-test-review-text{font-family:var(--font-mono);overflow-wrap:anywhere;white-space:pre-wrap;margin-top:16px;font-size:17px;line-height:2}.typing-test-review-text [data-error]{font:inherit;cursor:pointer;color:var(--typing-error,#c51e21);text-underline-offset:4px;background:color-mix(in srgb, var(--typing-error,#c51e21) 10%, transparent);border:0;padding:0;text-decoration:underline;text-decoration-thickness:2px}.typing-test-review-text [data-error]:focus-visible{outline:2px solid var(--ring);outline-offset:3px;border-radius:2px}.typing-test-scoring{border-top:0;margin-top:0}
