/* ============================================
   REACTION SPEED TEST strip (Side Quests, after the footer).
   Desktop: the tap area stands alone on the left (comments under it);
   the start button, result, stats and leaderboard sit on the right.
   Poppins only: no graffiti font in here.
============================================ */
.games {
  background: var(--navy);
  padding: 8px 20px 32px;
  color: #fff;
}
.rx-game {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: stretch;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 1.5px rgba(191, 212, 255, 0.35);
}

/* ---- left: just the thing you tap, comments beneath ---- */
.rx-left { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rx-left .rx-panel { flex: 1 1 auto; min-height: 260px; border-radius: 20px; }
.rx-left .rx-compare { margin: 6px 0 0; min-height: 1.3em; font-size: 0.92rem; font-weight: 500; text-align: left; color: #fff; }
.rx-left .rx-tease { margin: 0; min-height: 1.2em; font-size: 0.84rem; text-align: left; color: rgba(255, 255, 255, 0.72); }
.rx-left .rx-big { font-family: var(--font-body); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4rem); letter-spacing: -0.02em; }

/* ---- right: start + results ---- */
.rx-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.game-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.game-title { margin: 0; font-family: var(--font-body); font-weight: 700; font-size: 1.3rem; line-height: 1.1; letter-spacing: -0.01em; color: #fff; }

.game-btn {
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.game-btn:hover:not(:disabled) { background: var(--blue); color: #fff; transform: translateY(-1px); }
.game-btn:disabled { opacity: 0.55; cursor: default; }
.game-btn:focus-visible { outline: 2px solid var(--periwinkle); outline-offset: 2px; }

.rx-right .rx-claim { margin: 0; padding: 12px; border-radius: 16px; max-width: none; }
.rx-right .rx-claim-text { font-size: 0.86rem; margin-bottom: 8px; }
.rx-right .rx-claim-input { padding: 8px 14px; }
.rx-right .rx-claim-save, .rx-right .rx-claim-skip { padding: 8px 14px; font-size: 0.85rem; }
.rx-right .rx-stats { gap: 8px; margin-top: 0; }
.rx-stats--two { grid-template-columns: repeat(2, 1fr) !important; }
/* One balanced block of five equal boxes: three on top, two centred beneath, stretched so the right column is as tall as the tap area */
.rx-right .rx-stats--grid { display: grid; grid-template-columns: repeat(6, 1fr) !important; grid-auto-rows: 1fr; gap: 8px; flex: 1 1 auto; min-height: 150px; }
.rx-stats--grid .rx-stat { grid-column: span 2; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 8px; }
.rx-stats--grid .rx-stat:nth-child(4) { grid-column: 2 / span 2; }
.rx-stats--grid .rx-stat:nth-child(5) { grid-column: 4 / span 2; }
.rx-right .rx-stats--grid .rx-stat-value { margin: 0; }
.rx-right .rx-stat-value.is-empty { font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; line-height: 1.25; text-wrap: balance; color: rgba(12, 0, 84, 0.62); }
.rx-stats--three { grid-template-columns: repeat(3, 1fr) !important; }
.rx-right .rx-stat { padding: 9px 6px; border-radius: 14px; }
.rx-right .rx-stat-label { font-size: 0.6rem; margin-bottom: 3px; letter-spacing: 0.4px; }
.rx-right .rx-stat-value { font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; }
.rx-right .rx-stat-note { font-size: 0.68rem; margin-top: 2px; }
.rx-right .rx-board { margin-top: 0; }
.rx-right .rx-board-title { margin-bottom: 6px; color: var(--periwinkle); }
.rx-right .rx-board-view { padding: 6px 0; }
.rx-right .rx-board-item { padding: 5px 12px; font-size: 0.82rem; }
.rx-right .rx-board-rank, .rx-right .rx-board-ms { font-family: var(--font-body); font-weight: 700; font-size: 0.85rem; }
.rx-right .rx-board-empty { font-size: 0.8rem; }

@media (max-width: 860px) {
  .rx-game { grid-template-columns: 1fr; gap: 16px; padding: 14px; }
  .rx-left .rx-panel { min-height: 220px; }
}
