/* Reaction Test — game-specific styles */
.rt-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  height: 100%;
  padding: 16px;
}
.rt-pad {
  display: grid;
  place-content: center;
  gap: 8px;
  width: min(100%, 560px);
  height: min(340px, max(220px, calc(100svh - 420px)));
  border: 0;
  border-radius: 24px;
  text-align: center;
  color: #0b0d17;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: background 90ms linear;
}
.is-fs .rt-pad,
.is-pseudo-fs .rt-pad { height: min(60dvh, 420px); }
.rt-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.2rem);
  line-height: 1.1;
}
.rt-sub { font-size: 1rem; opacity: 0.8; min-height: 1.4em; }
.rt-pad.is-ready { background: #3dd9ff; }
.rt-pad.is-wait { background: #ff5c7a; color: #fff; }
.rt-pad.is-go { background: #c6ff3d; }
.rt-pad.is-early { background: #ffb13d; }
.rt-pad.is-result { background: #7c5cff; color: #fff; }
.rt-pad:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.rt-dots { display: flex; gap: 10px; }
.rt-dots span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.rt-dots span.is-done { background: #c6ff3d; }
@media (prefers-reduced-motion: reduce) {
  .rt-pad { transition: none; }
}
