/* Typing Speed Race Styles */
.stats-bar { display: flex; justify-content: space-around; text-align: center; }
.stat-value { font-size: var(--text-3xl); font-weight: 800; font-family: var(--font-mono); }
.stat-label { font-size: var(--text-xs); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.time-btn { text-transform: none !important; font-size: var(--text-xs) !important; padding: var(--space-2) var(--space-3) !important; }
.time-btn.active { background: var(--gradient-primary) !important; color: white !important; border: none !important; }
.race-settings { padding: var(--space-4) !important; }

.typing-area { position: relative; }
.text-display { font-size: var(--text-lg); line-height: 2; margin-bottom: var(--space-4); min-height: 100px; font-family: var(--font-mono); letter-spacing: 0.02em; }
.text-display .correct { color: var(--color-success); }
.text-display .incorrect { color: var(--color-error); text-decoration: underline; background: rgba(225,112,85,0.15); border-radius: 2px; }
.text-display .current { background: var(--color-primary-glow); border-radius: 2px; padding: 1px 0; animation: pulse 1s infinite; }
.text-display .pending { color: var(--color-text-muted); }

.typing-input { font-family: var(--font-mono); font-size: var(--text-lg); }
.typing-input:disabled { opacity: 0.5; }

.progress-bar { height: 4px; background: var(--color-surface); border-radius: var(--radius-full); margin-top: var(--space-4); overflow: hidden; }
.progress-fill { height: 100%; background: var(--gradient-primary); border-radius: var(--radius-full); width: 0%; transition: width 0.3s ease; }

.leaderboard .score-row { display: flex; justify-content: space-between; padding: var(--space-3); border-bottom: 1px solid var(--color-border); font-size: var(--text-sm); }
.score-row .rank { color: var(--color-warning); font-weight: 700; width: 30px; }
.score-row .wpm { font-family: var(--font-mono); font-weight: 700; color: var(--color-accent); }
.score-row .date { color: var(--color-text-muted); font-size: var(--text-xs); }

.finished-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.85); display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: var(--radius-lg); z-index: 10; }
.finished-overlay .final-wpm { font-size: var(--text-5xl); font-weight: 800; color: var(--color-accent); }
