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

.t-intro-icon::before {
  content: 'bolt';
}

/* ── REACTION BOX ── */
.rt-box {
  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"],
.rt-box[data-state="countdown"],
.rt-box[data-state="wait"]      { background: var(--color-surface-container-low); }
.rt-box[data-state="go"]        {
  background: #2ecc71;
  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; cursor: default; }
.rt-box[data-state="miss"]      { background: #fef2f1; cursor: default; }
.rt-box[data-state="early"]     { background: #fef2f1; 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: 54px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  transition: color 0.1s;
}
.rt-box[data-state="countdown"] .rt-status,
.rt-box[data-state="wait"] .rt-status { color: var(--text); }
.rt-box[data-state="go"] .rt-status { color: #fff; font-size: 64px; 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: 16px;
  font-weight: 500;
  color: var(--text-faint);
  transition: color 0.1s;
}
.rt-box[data-state="countdown"] .rt-sub,
.rt-box[data-state="wait"] .rt-sub { color: var(--text-muted); }
.rt-box[data-state="go"] .rt-sub { color: rgba(255,255,255,0.8); }

@media (max-width: 480px) {
  .rt-status { font-size: 38px; }
  .rt-box[data-state="go"] .rt-status { font-size: 44px; }
  .rt-sub { font-size: 13.5px; }
}

/* Ripple on go state */
.rt-box[data-state="go"]::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-md, 8px);
  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: var(--text-faint);
  text-align: center;
  margin-top: -8px;
}


/* ── INTRO VISUAL MAPPING ── */
.rt-intro-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--color-surface-container-low);
  border: 1px solid var(--color-outline);
  border-radius: var(--r-md, 8px);
  padding: 20px 28px;
  margin-bottom: 20px;
}
@media (max-width: 480px) {
  .rt-intro-visual {
    gap: 16px;
    padding: 16px 20px;
    margin-bottom: 16px;
  }
}

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

.rt-intro-shape {
  width: 80px;
  height: 80px;
  border-radius: var(--r-md, 8px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.rt-intro-shape.wait {
  background: var(--color-surface-variant);
  border: 1px solid var(--color-outline);
}
.rt-intro-shape.wait::before {
  content: 'hourglass_empty';
  font-family: 'Material Symbols Outlined';
  font-size: 30px;
  color: var(--text-muted);
  animation: waitSpin 4s linear infinite;
}
@keyframes waitSpin {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(0deg); }
  35% { transform: rotate(180deg); }
  75% { transform: rotate(180deg); }
  85% { transform: rotate(360deg); }
  100% { transform: rotate(360deg); }
}

.rt-intro-shape.go {
  background: #2ecc71;
  border: 1px solid #27ae60;
  box-shadow: 0 0 0 6px rgba(35,193,107,0.15), 0 6px 16px rgba(35,193,107,0.25);
}
.rt-intro-shape.go::before {
  content: 'touch_app';
  font-family: 'Material Symbols Outlined';
  font-size: 32px;
  color: #fff;
  animation: pulseTouch 1.2s ease-in-out infinite alternate;
}
@keyframes pulseTouch {
  0% { transform: scale(0.92); opacity: 0.85; }
  100% { transform: scale(1.05); opacity: 1; }
}


.rt-intro-text {
  font-family: 'Lexend', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}
.rt-intro-text strong {
  font-weight: 800;
  color: #2ecc71;
}

.rt-intro-divider {
  color: var(--color-outline-variant);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rt-intro-divider svg {
  width: 32px;
  height: 32px;
  stroke-width: 2.5px;
}


