.reaction-match-game .rm-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 28px 24px 26px;
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-lg);
  background: var(--hub-surface);
  box-shadow: var(--hub-shadow-sm);
}

.reaction-match-game .rm-timer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 460px;
}

.reaction-match-game .rm-timer-label {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #4f46e5;
  min-width: 56px;
  transition: color 0.15s ease;
}

.reaction-match-game .rm-timer-label.is-low {
  color: #b91c1c;
}

.reaction-match-game .rm-timer-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: #e0e7ff;
  overflow: hidden;
}

.reaction-match-game .rm-timer-fill {
  height: 100%;
  width: 100%;
  background: #4f46e5;
  transition: width 50ms linear, background-color 0.15s ease;
}

.reaction-match-game .rm-timer-fill.is-low {
  background: #ef4444;
}

.reaction-match-game .rm-strings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.reaction-match-game .rm-string {
  min-width: 160px;
  padding: 24px 20px;
  border-radius: 14px;
  border: 2px solid var(--hub-border);
  background: var(--hub-surface);
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--hub-ink);
}

.reaction-match-game .rm-vs {
  font-size: 20px;
  font-weight: 800;
  color: #4f46e5;
}

.reaction-match-game .rm-actions {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 460px;
}

.reaction-match-game .rm-btn {
  flex: 1 1 0;
  padding: 16px 20px;
  border-radius: 14px;
  border: 2px solid #4f46e5;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.05s ease-in-out, background 0.15s ease;
}

.reaction-match-game .rm-btn.rm-same {
  background: #4f46e5;
  color: #fff;
}

.reaction-match-game .rm-btn.rm-diff {
  background: #fff;
  color: #312e81;
}

.reaction-match-game .rm-btn:hover {
  transform: translateY(-1px);
}

.reaction-match-game .rm-btn:active {
  transform: translateY(0);
}

.reaction-match-game .rm-feedback {
  min-height: 22px;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.reaction-match-game .rm-feedback[data-kind="correct"] { color: #047857; }
.reaction-match-game .rm-feedback[data-kind="wrong"]   { color: #b91c1c; }

.reaction-match-game .rm-live-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.reaction-match-game .rm-live-stats span {
  padding: 6px 14px;
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--hub-muted);
  background: var(--hub-surface-muted);
  font-variant-numeric: tabular-nums;
}

.reaction-match-game .rm-live-stats strong {
  color: var(--hub-ink);
  margin-left: 4px;
}

.reaction-match-game .rm-ready-note {
  margin: 0;
  max-width: 54ch;
  text-align: center;
  color: var(--hub-muted);
  font-size: 14px;
  line-height: 1.55;
}

.reaction-match-game .rm-key-hint {
  font-size: 12px;
  font-weight: 600;
  color: var(--hub-muted);
}

.reaction-match-game .rm-key-hint kbd {
  display: inline-block;
  margin: 0 2px;
  padding: 2px 6px;
  border: 1px solid var(--hub-border);
  border-radius: 4px;
  background: var(--hub-surface-muted);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--hub-ink);
}

.reaction-match-game .rm-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 460px;
  margin: 0 auto 20px;
}

.reaction-match-game .rm-result-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 12px;
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-md);
  background: var(--hub-surface-muted);
}

.reaction-match-game .rm-result-stat span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hub-muted);
}

.reaction-match-game .rm-result-stat strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--hub-ink);
  font-variant-numeric: tabular-nums;
}
