/* ═══════════════════════════════════════════════════════════════════
   MIA GAMES — Reaction Time Test Styles
   File     : games/reaction-time/reaction.css
   Inherits : ../../style.css

   TABLE OF CONTENTS
   ─────────────────
   01. Breadcrumb & Utilities
   02. Game Area Override
   03. Reaction Pad — Wrapper & Sizing
   04. Reaction Pad — Button Base
   05. Reaction Pad — State Themes (idle, waiting, go, result, false-start, done)
   06. Pad Content — Icon, Message, Sub-text
   07. Result Number Display
   08. Round History Pills
   09. Session Complete Banner
   10. Score Bump Animation
   11. SEO Content
   12. Responsive Breakpoints
   ═══════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════
   01. BREADCRUMB & UTILITIES
   ═══════════════════════════════════════════════════════════════════ */

.breadcrumb-bar { background:var(--bg-secondary); border-bottom:1px solid var(--border-subtle); padding:.625rem 0; }
.breadcrumb { display:flex; align-items:center; gap:.4rem; flex-wrap:wrap; }
.breadcrumb li { font-size:var(--fs-sm); color:var(--text-muted); }
.breadcrumb a  { color:var(--text-muted); text-decoration:none; transition:color var(--transition-fast); }
.breadcrumb a:hover { color:var(--accent-purple); }
.breadcrumb [aria-current="page"] { color:var(--text-secondary); font-weight:var(--fw-medium); }

.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }


/* ═══════════════════════════════════════════════════════════════════
   02. GAME AREA OVERRIDE — INCREASED SPACING
   ═══════════════════════════════════════════════════════════════════ */

.rt-game-area {
  min-height: unset;
  padding: var(--space-6);
  gap: var(--space-8);  /* Increased gap between all game area children */
}


/* ═══════════════════════════════════════════════════════════════════
   03. REACTION PAD — WRAPPER & SIZING
   ═══════════════════════════════════════════════════════════════════ */

.rt-pad-wrap {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 3;
  position: relative;
  /* Add margin to separate from stats row above and history below */
  margin-top: var(--space-6);
  margin-bottom: var(--space-6);
}


/* ═══════════════════════════════════════════════════════════════════
   04. REACTION PAD — BUTTON BASE
   The pad is a full-width <button> that changes colour based on state.
   Using a <button> guarantees keyboard focus, Enter/Space activation,
   and proper role announcement for screen readers.
   ═══════════════════════════════════════════════════════════════════ */

.rt-pad {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;

  /* Smooth colour transitions between states */
  transition:
    background-color 0.12s ease,
    box-shadow       0.2s ease,
    transform        0.1s ease;

  /* Prevent text selection on rapid clicking */
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;

  /* Ensure pad is always on top within game area */
  position: relative;
  z-index: 2;
}

.rt-pad:focus-visible {
  outline: 3px solid var(--accent-purple);
  outline-offset: 4px;
}

.rt-pad:active {
  transform: scale(0.985);
}


/* ═══════════════════════════════════════════════════════════════════
   05. REACTION PAD — STATE THEMES
   JS adds one of these classes to .rt-pad based on game phase.
   ═══════════════════════════════════════════════════════════════════ */

/* ── IDLE: initial state, waiting to start ── */
.rt-pad.state-idle {
  background: var(--bg-tertiary);
  border: 2px solid var(--border-default);
  box-shadow: var(--shadow-md);
}

.rt-pad.state-idle:hover {
  background: var(--bg-surface);
  border-color: var(--accent-purple);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* ── WAITING: red — player must not click yet ── */
.rt-pad.state-waiting {
  background: #c0392b;
  border: 2px solid #e74c3c;
  box-shadow: 0 8px 32px rgba(192, 57, 43, 0.45), inset 0 1px 0 rgba(255,255,255,0.1);
  cursor: wait;
}

[data-theme="light"] .rt-pad.state-waiting {
  background: #e74c3c;
  border-color: #c0392b;
}

/* Pulse animation on waiting state */
.rt-pad.state-waiting::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.06);
  animation: waitPulse 1.6s ease-in-out infinite;
}

@keyframes waitPulse {
  0%, 100% { opacity: 0; }
  50%       { opacity: 1; }
}

/* ── GO: green — click NOW ── */
.rt-pad.state-go {
  background: #27ae60;
  border: 2px solid #2ecc71;
  box-shadow: 0 8px 40px rgba(39, 174, 96, 0.55), inset 0 1px 0 rgba(255,255,255,0.15);
  cursor: pointer;
  animation: goFlash 0.18s ease both;
}

[data-theme="light"] .rt-pad.state-go {
  background: #2ecc71;
  border-color: #27ae60;
}

@keyframes goFlash {
  0%   { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* ── RESULT: shows the measured time ── */
.rt-pad.state-result {
  background: var(--accent-purple-dim);
  border: 2px solid var(--border-accent);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  cursor: pointer;
}

.rt-pad.state-result:hover {
  background: rgba(124, 109, 250, 0.18);
}

/* ── FALSE START: player clicked too early ── */
.rt-pad.state-false {
  background: #e67e22;
  border: 2px solid #f39c12;
  box-shadow: 0 8px 32px rgba(230, 126, 34, 0.45);
  animation: falseShake 0.4s ease both;
}

@keyframes falseShake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-8px); }
  40%     { transform: translateX(8px); }
  60%     { transform: translateX(-5px); }
  80%     { transform: translateX(5px); }
}

/* ── DONE: all rounds complete ── */
.rt-pad.state-done {
  background: linear-gradient(135deg, rgba(124,109,250,0.15), rgba(62,207,207,0.15));
  border: 2px solid var(--border-accent);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.rt-pad.state-done:hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}


/* ═══════════════════════════════════════════════════════════════════
   06. PAD CONTENT — ICON, MESSAGE, SUB-TEXT
   ═══════════════════════════════════════════════════════════════════ */

.rt-pad-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-6);
  text-align: center;
  position: relative;
  z-index: 1;
  pointer-events: none; /* content layer never intercepts clicks — pad button gets them */
}

.rt-icon {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1;
  transition: transform 0.2s var(--ease-spring);
}

.rt-pad.state-go .rt-icon {
  animation: iconBounce 0.35s var(--ease-spring) both;
}

@keyframes iconBounce {
  0%   { transform: scale(0.7) rotate(-10deg); }
  60%  { transform: scale(1.2) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.rt-message {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-xl), 4vw, var(--fs-3xl));
  font-weight: var(--fw-bold);
  line-height: 1.1;
  letter-spacing: var(--ls-snug);
  color: #fff;
  max-width: none;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Idle state — message uses themed colour not white */
.rt-pad.state-idle    .rt-message,
.rt-pad.state-result  .rt-message,
.rt-pad.state-done    .rt-message { color: var(--text-primary); text-shadow: none; }

.rt-sub {
  font-size: clamp(var(--fs-xs), 2vw, var(--fs-sm));
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  max-width: 28ch;
  margin: 0;
}

.rt-pad.state-idle   .rt-sub,
.rt-pad.state-result .rt-sub,
.rt-pad.state-done   .rt-sub { color: var(--text-muted); }


/* ═══════════════════════════════════════════════════════════════════
   07. RESULT NUMBER — the big ms display
   ═══════════════════════════════════════════════════════════════════ */

.rt-result-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 9vw, 5rem);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  line-height: 1;
  color: var(--accent-purple);
  animation: resultPop 0.4s var(--ease-spring) both;
}

@keyframes resultPop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.rt-result-unit {
  font-size: 0.35em;
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  letter-spacing: 0;
  vertical-align: middle;
}

.rt-result-rating {
  font-size: clamp(var(--fs-base), 2.5vw, var(--fs-lg));
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  margin: 0;
}


/* ═══════════════════════════════════════════════════════════════════
   08. ROUND HISTORY PILLS — INCREASED SPACING
   One coloured pill per completed round, shown below the pad.
   ═══════════════════════════════════════════════════════════════════ */

.rt-history {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);        /* Increased from space-2 to space-3 */
  justify-content: center;
  min-height: 44px;           /* Increased from 36px */
  width: 100%;
  max-width: 520px;
  margin-top: var(--space-4); /* Added top margin to separate from pad */
  padding-top: var(--space-2); /* Added padding for visual breathing */
}

.rt-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;                   /* Increased from 5px */
  padding: var(--space-2) var(--space-5); /* Increased horizontal padding */
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  animation: pillPop 0.3s var(--ease-spring) both;
  white-space: nowrap;
  /* Subtle shadow for depth */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

@keyframes pillPop {
  from { transform: scale(0.6) translateY(8px); opacity: 0; }
  to   { transform: scale(1)   translateY(0);   opacity: 1; }
}

/* Colour coding by reaction time range */
.rt-pill.pill-exceptional { background: rgba(52, 211, 153, 0.15); color: var(--accent-green);  border: 1px solid rgba(52,211,153,0.35); }
.rt-pill.pill-excellent   { background: rgba(62, 207, 207, 0.12); color: var(--accent-teal);   border: 1px solid rgba(62,207,207,0.3); }
.rt-pill.pill-good        { background: var(--accent-purple-dim); color: var(--accent-purple); border: 1px solid var(--border-accent); }
.rt-pill.pill-average     { background: var(--accent-amber-dim);  color: var(--accent-amber);  border: 1px solid rgba(245,166,35,0.3); }
.rt-pill.pill-slow        { background: var(--accent-red-dim);    color: var(--accent-red);    border: 1px solid rgba(240,82,82,0.3); }
.rt-pill.pill-false       { background: rgba(230,126,34,0.12);    color: #f39c12;              border: 1px solid rgba(230,126,34,0.3); }

.rt-pill-num { font-size: var(--fs-xs); color: var(--text-muted); font-weight: var(--fw-medium); }


/* ═══════════════════════════════════════════════════════════════════
   09. SESSION COMPLETE BANNER
   Shown inside the pad when all rounds are finished.
   ═══════════════════════════════════════════════════════════════════ */

.rt-done-avg {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-xl), 5vw, var(--fs-4xl));
  font-weight: var(--fw-bold);
  line-height: 1;
  letter-spacing: var(--ls-tight);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rt-done-unit {
  font-size: 0.4em;
  letter-spacing: 0;
}

.rt-done-label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
}

.rt-new-best {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--accent-amber-dim);
  border: 1px solid var(--accent-amber);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--accent-amber);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}


/* ═══════════════════════════════════════════════════════════════════
   10. SCORE BUMP ANIMATION (used on stat values)
   ═══════════════════════════════════════════════════════════════════ */

.score-bump {
  animation: scoreBump 0.35s var(--ease-spring) both;
}

@keyframes scoreBump {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.4); color: var(--accent-teal); }
  100% { transform: scale(1); }
}


/* ═══════════════════════════════════════════════════════════════════
   11. SEO CONTENT
   ═══════════════════════════════════════════════════════════════════ */

.seo-content { padding: 2.5rem 0 1rem; border-top: 1px solid var(--border-subtle); }
.seo-content h2 { font-size: clamp(var(--fs-xl),2.5vw,var(--fs-2xl)); margin-bottom: 1rem; }
.seo-content h3 { font-size: var(--fs-lg); font-weight: var(--fw-semibold); color: var(--text-primary); margin: 1.75rem 0 0.6rem; }
.seo-content p  { font-size: var(--fs-base); color: var(--text-secondary); line-height: 1.85; max-width: none; margin-bottom: 1rem; }
.seo-content ul { padding-left: 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; margin: 0.75rem 0 1rem; }
.seo-content ul li { list-style: disc; font-size: var(--fs-base); color: var(--text-secondary); line-height: 1.75; }


/* ═══════════════════════════════════════════════════════════════════
   12. RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .rt-game-area { 
    padding: var(--space-5); 
    gap: var(--space-6); 
  }
  .rt-pad-wrap { 
    max-width: 100%; 
    aspect-ratio: 3 / 2;
    margin-top: var(--space-5);
    margin-bottom: var(--space-5);
  }
  .rt-history  { 
    gap: var(--space-2);
    margin-top: var(--space-3);
  }
  .rt-pill     { 
    font-size: var(--fs-xs); 
    padding: var(--space-1) var(--space-4); 
  }
}

@media (max-width: 480px) {
  .rt-game-area { 
    padding: var(--space-4); 
    gap: var(--space-5); 
  }
  .rt-pad-wrap  { 
    aspect-ratio: 1 / 1;
    margin-top: var(--space-4);
    margin-bottom: var(--space-4);
  }
  .rt-pad-content { gap: var(--space-2); padding: var(--space-4); }
  .rt-history {
    gap: var(--space-2);
    margin-top: var(--space-3);
    padding-top: var(--space-1);
  }
  .rt-pill {
    padding: var(--space-1) var(--space-3);
    font-size: 0.7rem;
    gap: 4px;
  }
}

@media (max-width: 360px) {
  .rt-game-area { padding: var(--space-3); gap: var(--space-4); }
  .rt-pad-wrap { max-width: 100%; }
  .rt-history  { gap: var(--space-1); }
  .rt-pill     { padding: var(--space-1) var(--space-2); font-size: 0.65rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE CONTROLS FIX & CLICK FIX
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════
   GAME CONTROLS — Desktop: title left, controls right
   ═══════════════════════════════════════════════════════════════════ */

.rt-game-area .game-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: var(--space-2);
  width: 100%;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
  min-height: 48px;
  position: relative;
  z-index: 10;
  pointer-events: auto;
  touch-action: manipulation;
}

.rt-game-area .game-controls-title {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  flex: 0 0 auto;
  white-space: nowrap;
  line-height: 1.4;
  text-align: left;
}

.rt-game-area .game-controls-title span {
  margin-right: 2px;
}

.rt-game-area .game-controls .game-controls-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
  flex-wrap: nowrap;
}

/* ── Ensure all controls have identical height ── */
.rt-game-area .game-controls .control-btn,
.rt-game-area .game-controls .control-btn.control-btn--primary,
.rt-game-area .game-controls .difficulty-select,
.rt-game-area .game-controls select,
#rtResetBtn,
#rtSoundBtn,
#roundsSelect {
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  line-height: 1;
  box-sizing: border-box;
}

.rt-game-area .game-controls .game-controls-right .difficulty-select,
.rt-game-area .game-controls .game-controls-right select {
  flex: 0 1 auto;
  min-width: 95px;
  max-width: 130px;
  padding: var(--space-1) var(--space-6) var(--space-1) var(--space-2);
  font-size: var(--fs-xs);
  height: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239898b8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 26px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.rt-game-area .game-controls .game-controls-right .control-btn {
  flex: 0 0 auto;
  padding: var(--space-1) var(--space-3);
  font-size: var(--fs-xs);
  min-height: 32px;
  height: 32px;
  min-width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  box-sizing: border-box;
  white-space: nowrap;
}

.rt-game-area .game-controls .game-controls-right .control-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: block;
}

.rt-game-area .game-controls .game-controls-right .control-btn .btn-text {
  display: inline;
}

.rt-game-area .game-controls .game-controls-right .control-btn.control-btn--primary {
  background: var(--accent-purple-dim);
  color: var(--accent-purple);
  border-color: var(--border-accent);
}

.rt-game-area .game-controls .game-controls-right .control-btn.control-btn--primary:hover {
  background: var(--accent-purple);
  color: #fff;
}

/* ── Mobile Responsive: Title Bar ─────────────────────────────────── */
@media (max-width: 600px) {
  .rt-game-area .game-controls {
    flex-wrap: wrap;
    gap: var(--space-1);
    padding-bottom: var(--space-2);
    justify-content: space-between;
    min-height: 40px;
  }

  .rt-game-area .game-controls-title {
    font-size: var(--fs-sm);
    flex: 0 0 100%;
    text-align: left;
    padding-bottom: var(--space-1);
    margin-bottom: var(--space-1);
  }

  .rt-game-area .game-controls .game-controls-right {
    flex: 0 0 100%;
    justify-content: center;
    gap: var(--space-1.5);
    flex-wrap: wrap;
    padding: var(--space-0.5) 0;
  }

  .rt-game-area .game-controls .game-controls-right .difficulty-select,
  .rt-game-area .game-controls .game-controls-right select {
    flex: 0 1 auto;
    min-width: 85px;
    max-width: 115px;
    font-size: 0.65rem;
    height: 28px;
    min-height: 28px;
    max-height: 28px;
    padding: 0 var(--space-4) 0 var(--space-1);
    padding-right: 20px;
    background-size: 8px 5px;
    background-position: right 5px center;
  }

  .rt-game-area .game-controls .game-controls-right .control-btn {
    padding: var(--space-1) var(--space-2);
    font-size: 0.65rem;
    min-height: 28px;
    height: 28px;
    min-width: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
  }

  .rt-game-area .game-controls .game-controls-right .control-btn svg {
    width: 12px;
    height: 12px;
  }

  /* ── Show text on New button (there's enough space) ── */
  .rt-game-area .game-controls .game-controls-right .control-btn .btn-text {
    display: inline;
    font-size: 0.65rem;
  }

  .rt-game-area .game-controls .game-controls-right .control-btn.control-btn--primary {
    padding: var(--space-1) var(--space-2);
  }

  .rt-game-area .game-controls .game-controls-right .control-btn.control-btn--primary .btn-text {
    display: inline;
    font-size: 0.65rem;
  }

  .rt-game-area .game-controls .control-btn,
  .rt-game-area .game-controls .control-btn.control-btn--primary,
  .rt-game-area .game-controls .difficulty-select,
  .rt-game-area .game-controls select,
  #rtResetBtn,
  #rtSoundBtn,
  #roundsSelect {
    height: 28px;
    min-height: 28px;
    max-height: 28px;
  }
}

@media (max-width: 400px) {
  .rt-game-area .game-controls-title {
    font-size: 0.7rem;
    padding-bottom: var(--space-0.5);
    margin-bottom: var(--space-0.5);
  }

  .rt-game-area .game-controls .game-controls-right {
    gap: var(--space-1);
    padding: var(--space-0.5) 0;
  }

  .rt-game-area .game-controls .game-controls-right .difficulty-select,
  .rt-game-area .game-controls .game-controls-right select {
    min-width: 75px;
    max-width: 95px;
    font-size: 0.55rem;
    height: 24px;
    min-height: 24px;
    max-height: 24px;
    padding: 0 var(--space-3) 0 var(--space-1);
    padding-right: 16px;
    background-size: 6px 4px;
    background-position: right 4px center;
  }

  .rt-game-area .game-controls .game-controls-right .control-btn {
    padding: var(--space-1) var(--space-2);
    font-size: 0.55rem;
    min-height: 24px;
    height: 24px;
    min-width: 24px;
  }

  .rt-game-area .game-controls .game-controls-right .control-btn svg {
    width: 10px;
    height: 10px;
  }

  .rt-game-area .game-controls .game-controls-right .control-btn .btn-text {
    font-size: 0.55rem;
  }

  .rt-game-area .game-controls .game-controls-right .control-btn.control-btn--primary .btn-text {
    display: inline;
    font-size: 0.55rem;
  }

  .rt-game-area .game-controls .control-btn,
  .rt-game-area .game-controls .control-btn.control-btn--primary,
  .rt-game-area .game-controls .difficulty-select,
  .rt-game-area .game-controls select,
  #rtResetBtn,
  #rtSoundBtn,
  #roundsSelect {
    height: 24px;
    min-height: 24px;
    max-height: 24px;
  }
}

/* ── Mobile Click Fix ── */
button,
a,
.control-btn,
.primary-btn,
.secondary-btn,
.nav-toggle,
.theme-toggle,
.play-btn,
.game-card-link,
.game-card a,
.difficulty-select,
.rt-pad,
.rt-game-area .control-btn,
.rt-game-area .game-controls select,
.rt-game-area .game-controls button {
  pointer-events: auto !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
  cursor: pointer !important;
}

.nav-overlay {
  pointer-events: none !important;
}
.nav-overlay.is-visible {
  pointer-events: auto !important;
}

.mobile-nav a {
  pointer-events: auto !important;
  touch-action: manipulation !important;
}

.ad-container,
.ad-placeholder,
.adsbygoogle {
  pointer-events: none !important;
}
.ad-container .adsbygoogle {
  pointer-events: auto !important;
}

/* ── Stats Row ────────────────────────────────────────────────────── */
.game-stats-row {
  display: flex;
  justify-content: space-around;
  width: 100%;
  padding: var(--space-3) 0;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.game-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 60px;
}

.game-stat-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  font-weight: var(--fw-medium);
}

.game-stat-value {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  line-height: 1.2;
  transition: font-size var(--transition-base);
}

/* ── Responsive Stats Values ── */
@media (max-width: 768px) {
  .game-stat-value {
    font-size: var(--fs-lg);
  }
}

@media (max-width: 480px) {
  .game-stat-item {
    min-width: 45px;
  }

  .game-stat-label {
    font-size: 0.55rem;
    letter-spacing: var(--ls-wide);
  }

  .game-stat-value {
    font-size: var(--fs-base);
  }
}

@media (max-width: 360px) {
  .game-stat-value {
    font-size: var(--fs-sm);
  }

  .game-stat-label {
    font-size: 0.5rem;
  }

  .game-stats-row {
    gap: var(--space-1);
    padding: var(--space-2) 0;
  }
}

