/* /reaction/ — the reaction pad and its states. Replaces the page's
   inline rt- style block. Frame, h1, subline and the HUD strip come from
   games.css; the pad surface and history from utility-tools.css. Skill
   accent. Red (wait) and green (go) are the instrument's signals, so
   they fill the pad; every other state stays on the system surfaces. */

#reaction-area .rt-content { inline-size: 100%; padding: var(--space-6) var(--space-4); }
#reaction-area .rt-content > * { margin: 0; }
#reaction-area .rt-icon { min-block-size: 1em; margin-block-end: var(--space-2); color: var(--accent); font-size: 2rem; }
#reaction-area .rt-title {
  margin-block-end: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 600;
  line-height: 0.95;
  text-transform: uppercase;
  padding-block-start: 0.1em;
}
:lang(zh) #reaction-area .rt-title,
:lang(ja) #reaction-area .rt-title { font-family: var(--font-body); font-weight: 700; font-size: var(--step-3); line-height: 1.15; }
:lang(ru) #reaction-area .rt-title,
:lang(hi) #reaction-area .rt-title { line-height: 1.15; }
:lang(ar) #reaction-area .rt-title { line-height: 1.4; letter-spacing: 0; }
#reaction-area .rt-sub { color: var(--text-muted); }
#reaction-area .rt-result {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: calc(var(--step-5) * 1.2);
  font-weight: 600;
  line-height: 0.8;
  padding-block-start: 0.1em;
  font-variant-numeric: tabular-nums;
}
#reaction-area .rt-result-s { margin-block-start: var(--space-2); color: var(--text-muted); font-size: var(--step-1); font-variant-numeric: tabular-nums; }

/* Wait: Alarm Red fill; go: Pass Green fill with Void Ink. */
#reaction-area.glass-panel.rt-waiting { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 62%, var(--bg)); color: var(--text); }
#reaction-area.rt-waiting :is(.rt-icon, .rt-sub) { color: var(--text); }
#reaction-area.glass-panel.rt-ready { border-color: var(--success); background: var(--success); color: var(--primary-ink); }
#reaction-area.rt-ready :is(.rt-icon, .rt-sub, .rt-title) { color: var(--primary-ink); }
/* Result: the accent edge and a faint tint; too soon: a red edge. */
#reaction-area.glass-panel.rt-result { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--bg-raised)); }
#reaction-area.glass-panel.rt-toosoon { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, var(--bg-raised)); }
#reaction-area.rt-toosoon .rt-icon { color: var(--danger); }

@media (max-width: 480px) {
  #reaction-area .rt-title { font-size: var(--step-3); }
}

/* The go signal must land on the frame it fires: no colour transition. */
#reaction-area.glass-panel { transition: none; }
