/* Blind Timer — test-specific overrides */
:root { --test-accent: #8b5cf6; }

/* ── TIMER ARENA ── */
.timer-arena {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px 24px;
  background: #f5f3ff;
  border: 2.5px solid #c4b5fd;
  border-radius: 22px;
  min-height: 300px;
}

.timer-round {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #6d28d9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timer-target {
  font-family: 'Manrope', sans-serif;
  font-size: 48px;
  font-weight: 900;
  color: #1a2e3b;
}

.timer-status {
  font-family: 'Lexend', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #9ca3af;
  text-align: center;
  min-height: 20px;
}

.timer-feedback {
  font-family: 'Lexend', sans-serif;
  font-size: 15px;
  font-weight: 600;
  min-height: 22px;
  text-align: center;
}
.timer-great { color: #059669; }
.timer-ok { color: #d97706; }
.timer-bad { color: #dc2626; }

/* ── BIG CIRCLE BUTTON ── */
.timer-toggle-btn {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 5px solid #c4b5fd;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  font-family: 'Manrope', sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: transform 0.12s, box-shadow 0.12s, background 0.2s;
  box-shadow: 0 8px 30px rgba(139,92,246,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.timer-toggle-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 40px rgba(139,92,246,0.45);
}
.timer-toggle-btn:active {
  transform: scale(0.94);
}
.timer-toggle-btn.timer-btn-active {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-color: #fca5a5;
  box-shadow: 0 8px 30px rgba(239,68,68,0.35);
  animation: pulse-ring 1.5s ease-in-out infinite;
}
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 8px 30px rgba(239,68,68,0.35); }
  50% { box-shadow: 0 8px 50px rgba(239,68,68,0.55); }
}

/* Result state — shows achieved time */
.timer-toggle-btn.timer-btn-result {
  cursor: default;
  font-size: 32px;
  letter-spacing: 0;
  pointer-events: none;
}
.timer-btn-unit {
  font-size: 18px;
  font-weight: 700;
  opacity: 0.7;
}
.timer-toggle-btn.timer-btn-great {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: #86efac;
  box-shadow: 0 8px 30px rgba(34,197,94,0.35);
}
.timer-toggle-btn.timer-btn-ok {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-color: #fcd34d;
  box-shadow: 0 8px 30px rgba(245,158,11,0.35);
}
.timer-toggle-btn.timer-btn-bad {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-color: #fca5a5;
  box-shadow: 0 8px 30px rgba(239,68,68,0.35);
}

/* ── PROGRESS ── */
.timer-progress {
  width: 100%;
  max-width: 300px;
  height: 6px;
  background: #e0e7ff;
  border-radius: 3px;
  overflow: hidden;
}

.timer-progress-fill {
  height: 100%;
  background: #8b5cf6;
  border-radius: 3px;
  transition: width 0.3s;
}

/* ── RESULT TRIAL ROWS ── */
.timer-trial-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: 'Lexend', sans-serif;
  font-size: 13px;
  background: #f9fafb;
  margin-bottom: 4px;
}
.timer-trial-target { font-weight: 700; color: #1a2e3b; }
.timer-trial-actual { color: #5a7285; }
.timer-trial-error { font-weight: 600; color: #8b5cf6; text-align: right; }

/* ── SCORE RANGE TABLE ── */
.rt-range-table { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.rt-range-row { display: grid; grid-template-columns: 10px 100px 1fr auto; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; font-family: 'Lexend', sans-serif; font-size: 13px; }
.rt-range-dot { width: 10px; height: 10px; border-radius: 50%; }
.rt-range-label { font-weight: 700; color: #1a2e3b; }
.rt-range-val { color: #5a7285; }
.rt-range-pct { font-weight: 700; text-align: right; }
.rt-range-row.elite  { background: #f0fdf4; } .rt-range-row.elite  .rt-range-dot { background: #2ecc71; } .rt-range-row.elite  .rt-range-pct { color: #2ecc71; }
.rt-range-row.fast   { background: #f0f9ff; } .rt-range-row.fast   .rt-range-dot { background: #0ea5e9; } .rt-range-row.fast   .rt-range-pct { color: #0ea5e9; }
.rt-range-row.avg    { background: #fafafa; } .rt-range-row.avg    .rt-range-dot { background: #f5a623; } .rt-range-row.avg    .rt-range-pct { color: #f5a623; }
.rt-range-row.slow   { background: #fef2f1; } .rt-range-row.slow   .rt-range-dot { background: #e74c3c; } .rt-range-row.slow   .rt-range-pct { color: #e74c3c; }

@media (max-width: 480px) {
  .timer-arena { padding: 24px 16px; min-height: 260px; }
  .timer-target { font-size: 36px; }
  .timer-toggle-btn { width: 150px; height: 150px; font-size: 20px; }
}
