/* Reaction Time — only test-specific overrides */
:root { --test-accent: #f5a623; }

/* ── REACTION BOX ── */
.rt-box {
  border-radius: 18px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

.rt-box[data-state="idle"]     { background: #f0f5f8; border: 2.5px dashed #cdd8df; }
.rt-box[data-state="wait"]     { background: #f3f6f9; border: 2.5px solid #dde8ee; }
.rt-box[data-state="go"]       {
  background: #2ecc71;
  border: 2.5px solid #27ae60;
  box-shadow: 0 0 0 8px rgba(35,193,107,0.15), 0 0 60px rgba(35,193,107,0.3);
  transform: scale(1.01);
  cursor: pointer;
}
.rt-box[data-state="hit"]      { background: #edfaf4; border: 2.5px solid #2ecc71; cursor: default; }
.rt-box[data-state="miss"]     { background: #fef2f1; border: 2.5px solid #e74c3c; cursor: default; }
.rt-box[data-state="early"]    { background: #fef2f1; border: 2.5px solid #e74c3c; cursor: default; }

.rt-box-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.rt-status {
  font-family: 'Manrope', sans-serif;
  font-size: 42px;
  font-weight: 900;
  color: #1a2e3b;
  line-height: 1;
  transition: color 0.1s;
}
.rt-box[data-state="go"] .rt-status { color: #fff; font-size: 48px; letter-spacing: -0.02em; }
.rt-box[data-state="hit"] .rt-status { color: #2ecc71; }
.rt-box[data-state="miss"] .rt-status { color: #e74c3c; }
.rt-box[data-state="early"] .rt-status { color: #e74c3c; }

.rt-sub {
  font-family: 'Lexend', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #9eb0bc;
  transition: color 0.1s;
}
.rt-box[data-state="go"] .rt-sub { color: rgba(255,255,255,0.8); }

/* Ripple on go state */
.rt-box[data-state="go"]::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  animation: rtRipple 0.8s ease-out infinite;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
}
@keyframes rtRipple {
  0%   { opacity: 0.6; transform: scale(0.95); }
  100% { opacity: 0; transform: scale(1.05); }
}

.rt-hint {
  font-family: 'Lexend', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #b0c0ca;
  text-align: center;
  margin-top: -8px;
}

/* ── TRIAL BARS ── */
.rt-trial-bars {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 70px;
  margin-top: 10px;
}
.rt-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}
.rt-bar {
  width: 100%;
  border-radius: 5px 5px 0 0;
  min-height: 4px;
  transition: height 0.4s ease;
}
.rt-bar.ok    { background: var(--test-accent); opacity: 0.85; }
.rt-bar.best  { background: #2ecc71; }
.rt-bar.worst { background: #e74c3c; opacity: 0.7; }
.rt-bar.error { background: #e0eaee; }
.rt-bar-val {
  font-family: 'Lexend', sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: #9eb0bc;
  white-space: nowrap;
}

/* ── INTRO VISUAL MAPPING ── */
.rt-intro-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: #fef8f0;
  border: 2px dashed #fbd4a6;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.rt-intro-rule {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.rt-intro-shape {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rt-intro-shape.wait {
  background: #dde8ed;
  border: none;
}

.rt-intro-shape.go {
  background: #2ecc71;
  border: none;
  box-shadow: 0 0 0 8px rgba(35,193,107,0.18);
}

/* ── 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 80px 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; }

.rt-intro-text {
  font-family: 'Lexend', sans-serif;
  font-size: 15px;
  color: #1a2e3b;
  text-align: center;
}

.rt-intro-divider {
  color: #cdd8df;
}


