/* Typing speed test - live stat row, a per-character passage, and a focused input.
   Reuses base .btn-outline; colors from theme tokens only. */

.tt-stats { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 18px; }
.tt-stat { display: flex; flex-direction: column; }
.tt-stat-value { font-size: 40px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.tt-stat-accent .tt-stat-value { color: var(--accent-strong); }
.tt-stat-label { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 2px; }

.tt-passage {
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    padding: 18px 20px; font-size: 20px; line-height: 1.9; cursor: text;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: var(--muted); user-select: none;
}
.tt-char { border-radius: 3px; }
.tt-char.is-correct { color: var(--text); }
.tt-char.is-wrong { color: var(--bad); background: color-mix(in srgb, var(--bad) 18%, transparent); }
.tt-char.is-current { box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }

.tt-input {
    width: 100%; margin-top: 14px; min-height: 5rem; resize: vertical;
    font-size: 18px; line-height: 1.6; padding: 12px 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: var(--surface); color: var(--text);
    border: 1px solid var(--border-strong); border-radius: 10px;
}
.tt-input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.tt-input:disabled { opacity: .6; }

.tt-status { color: var(--muted); font-size: 14px; min-height: 1.2em; margin: 12px 0; }
.tt-actions { display: flex; flex-wrap: wrap; gap: 12px; }
