/* Reaction Time Test playfield (Phase 4, inside the shared game shell). Colours unchanged from games.css. */
.rt-stage { display: flex; flex-direction: column; gap: var(--rb-space-3); }
.rt-surface {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--rb-space-3);
    height: var(--rb-stage-height); padding: var(--rb-space-6) var(--rb-space-4);
    border-radius: var(--rb-radius-lg);
    color: #fff; text-align: center;
    cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background-color .12s ease;
}
.rt-surface:focus-visible { outline: 3px solid var(--rb-focus-ring); outline-offset: 3px; }
.rt-surface.is-idle { background: #1f2937; cursor: default; }
.rt-surface.is-waiting { background: #b91c1c; }
.rt-surface.is-ready { background: #15803d; }
.rt-surface.is-scored { background: #3730a3; }
.rt-surface.is-paused { background: #334155; }
.rt-surface__pulse { width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .75); border-radius: 50%; box-shadow: 0 0 0 7px rgba(255, 255, 255, .12); }
.rt-surface.is-ready .rt-surface__pulse { background: #fff; box-shadow: 0 0 0 9px rgba(255, 255, 255, .18), 0 0 28px rgba(255, 255, 255, .45); }
.rt-surface__message { max-width: 18ch; font-size: clamp(1.75rem, 1.3rem + 2.5vw, 2.5rem); font-weight: var(--rb-fw-extrabold); letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rt-surface.is-ready .rt-surface__message { font-size: clamp(2.5rem, 2rem + 3vw, 3.5rem); }
.rt-surface__sub { max-width: 40ch; min-height: 2.9em; color: rgba(255, 255, 255, .92); font-size: var(--rb-fs-sm); line-height: 1.45; }

/* Fixed-height row under the panel: round dots, Next Round, input hint. */
.rt-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--rb-space-3); min-height: 52px; }
.rt-rounds { flex: 0 0 auto; }
.rt-hint { color: var(--rb-text-secondary); font-size: var(--rb-fs-xs); text-align: right; }
.rb-game[data-state="start"] .rt-rounds { visibility: hidden; }

@media (prefers-reduced-motion: reduce) { .rt-surface { transition: none; } }

/* While playing, touches on the panel never scroll or zoom the page. */
.rb-game[data-state="playing"] .rt-surface { touch-action: none; }
