/* ═══════════════════════════════════════════════════════════
   NavilinkGlobal Games Hub — games.css
   ═══════════════════════════════════════════════════════════ */

/* ── Base Variables ─────────────────────────────────────── */
:root {
  --games-bg: #0a1628;
  --games-card: #0f2040;
  --games-border: #1e3a5f;
  --neon-blue: #00d4ff;
  --neon-green: #00ff9d;
  --neon-orange: #ff6b35;
  --neon-gold: #ffd700;
  --neon-purple: #a855f7;
  --xp-grey: #6b7280;
  --xp-blue: #3b82f6;
  --xp-purple: #a855f7;
  --xp-gold: #f59e0b;
  --xp-red: #ef4444;
}

/* ── Global colour isolation — prevent site CSS bleeding in ── */
.games-hub-page a,
.game-page a {
  text-decoration: none;
}
.games-hub-page .btn,
.game-page .btn {
  color: inherit;          /* defeat any site-wide color: white on .btn */
}

/* ── Hub Navigation Tabs ─────────────────────────────────── */
.hub-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--games-border);
  padding-bottom: 0;
}

.hub-tab {
  background: transparent !important;
  border: none !important;
  border-bottom: 3px solid transparent;
  color: #64748b !important;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 0;
  margin-bottom: -2px;
}

.hub-tab:hover {
  color: #e2e8f0 !important;
}

.hub-tab.active {
  color: var(--neon-blue) !important;
  border-bottom-color: var(--neon-blue) !important;
}

.hub-tab-panel {
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Hub Page ────────────────────────────────────────────── */
.games-hub-page {
  background: var(--games-bg);
  min-height: 100vh;
  color: #e2e8f0;
  padding: 0;
}

.games-hub-hero {
  background: linear-gradient(135deg, #0a1628 0%, #0f2040 50%, #0a1628 100%);
  padding: 4rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--games-border);
}

.games-hub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0,212,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(168,85,247,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.games-hub-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.games-hub-subtitle {
  color: #94a3b8;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* ── Game Cards ──────────────────────────────────────────── */
.games-section {
  padding: 3rem 0;
}

.game-card {
  background: var(--games-card);
  border: 1px solid var(--games-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--neon-blue);
  box-shadow: 0 20px 60px rgba(0,212,255,0.15);
}

.game-card.trivia:hover {
  border-color: var(--neon-orange);
  box-shadow: 0 20px 60px rgba(255,107,53,0.15);
}

.game-card-header {
  padding: 2rem 2rem 1rem;
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(168,85,247,0.1));
  text-align: center;
  position: relative;
}

.game-card.trivia .game-card-header {
  background: linear-gradient(135deg, rgba(255,107,53,0.1), rgba(255,215,0,0.1));
}

.game-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.game-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--neon-blue);
  margin-bottom: 0.25rem;
}

.game-card.trivia .game-card-title {
  color: var(--neon-orange);
}

.game-card-tagline {
  color: #94a3b8;
  font-size: 0.9rem;
}

.game-card-body {
  padding: 1.5rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.game-feature-list li {
  padding: 0.4rem 0;
  color: #cbd5e1;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.game-feature-list li i {
  color: var(--neon-green);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.game-card-footer {
  padding: 0 2rem 2rem;
}

.btn-play {
  width: 100%;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: block;
  text-align: center;
}

.btn-play.cargo {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  color: white;
}

.btn-play.cargo:hover {
  opacity: 0.9;
  transform: scale(1.02);
  color: white;
  box-shadow: 0 0 20px rgba(0,212,255,0.4);
}

.btn-play.trivia {
  background: linear-gradient(135deg, var(--neon-orange), var(--neon-gold));
  color: white;
}

.btn-play.trivia:hover {
  opacity: 0.9;
  transform: scale(1.02);
  color: white;
  box-shadow: 0 0 20px rgba(255,107,53,0.4);
}

/* ── Tier Badges ─────────────────────────────────────────── */
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tier-guest  { background: rgba(107,114,128,0.2); color: #9ca3af; border: 1px solid #374151; }
.tier-free   { background: rgba(59,130,246,0.2);  color: #60a5fa; border: 1px solid #1d4ed8; }
.tier-pro    { background: rgba(168,85,247,0.2);  color: #c084fc; border: 1px solid #7c3aed; }
.tier-elite  { background: rgba(245,158,11,0.2);  color: #fbbf24; border: 1px solid #d97706; }

/* ── XP / Level Bar ──────────────────────────────────────── */
.xp-section {
  background: var(--games-card);
  border: 1px solid var(--games-border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.xp-level-label {
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.xp-bar-track {
  background: rgba(255,255,255,0.08);
  border-radius: 50px;
  height: 12px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.xp-bar-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  transition: width 1s ease;
  position: relative;
}

.xp-bar-fill::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 4px;
  background: white;
  border-radius: 50px;
  opacity: 0.6;
  animation: xpPulse 1.5s ease infinite;
}

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

.xp-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #64748b;
}

.level-dock-hand  { color: var(--xp-grey);   }
.level-freight    { color: var(--xp-blue);   }
.level-load-master{ color: var(--xp-purple); }
.level-legend     { color: var(--xp-gold);   }
.level-trade-admiral { color: var(--xp-red); }

/* ── Leaderboard ─────────────────────────────────────────── */
.leaderboard-section {
  background: var(--games-card);
  border: 1px solid var(--games-border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.leaderboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.leaderboard-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--neon-gold);
}

.leaderboard-tabs {
  display: flex;
  gap: 0.5rem;
}

.lb-tab {
  background: #1a2f4a !important;
  border: 1px solid var(--games-border) !important;
  color: #94a3b8 !important;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.lb-tab.active {
  background: var(--neon-blue) !important;
  border-color: var(--neon-blue) !important;
  color: #0a1628 !important;
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.lb-row:last-child { border-bottom: none; }

.lb-rank {
  font-weight: 800;
  font-size: 1.1rem;
  min-width: 2rem;
  text-align: center;
}

.lb-rank.rank-1 { color: var(--neon-gold); }
.lb-rank.rank-2 { color: #94a3b8; }
.lb-rank.rank-3 { color: #cd7f32; }

.lb-name {
  flex: 1;
  font-weight: 600;
  color: #e2e8f0;
}

.lb-score {
  font-weight: 700;
  color: var(--neon-green);
  font-size: 0.95rem;
}

.lb-blurred {
  filter: blur(4px);
  user-select: none;
  opacity: 0.5;
}

/* ── Streak Flames ───────────────────────────────────────── */
.streak-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.streak-flames {
  display: flex;
  gap: 2px;
}

.flame-icon {
  animation: flicker 0.8s ease infinite alternate;
}

@keyframes flicker {
  from { transform: scale(1) rotate(-3deg); opacity: 0.9; }
  to   { transform: scale(1.1) rotate(3deg); opacity: 1; }
}

/* ── Achievement Badges ──────────────────────────────────── */
.achievement-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem;
  background: rgba(255,215,0,0.08);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 12px;
  font-size: 0.75rem;
  color: var(--neon-gold);
  text-align: center;
  transition: all 0.2s;
}

.achievement-badge:hover {
  background: rgba(255,215,0,0.15);
  border-color: var(--neon-gold);
}

.achievement-badge .badge-icon {
  font-size: 1.5rem;
}

.achievement-badge.locked {
  opacity: 0.4;
  border-color: #374151;
  color: #6b7280;
}

/* ── Difficulty Lock ─────────────────────────────────────── */
.difficulty-lock {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: #6b7280;
  cursor: pointer;
}

.difficulty-lock .fa-lock {
  color: var(--neon-gold);
}

/* ── Score Card (shareable) ──────────────────────────────── */
.score-card {
  background: linear-gradient(135deg, #0a1628, #0f2040);
  border: 2px solid var(--neon-blue);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  font-family: 'Courier New', monospace;
}

.score-card .sc-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--neon-blue);
  margin-bottom: 0.5rem;
}

.score-card .sc-score {
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  text-shadow: 0 0 20px var(--neon-blue);
  margin: 0.5rem 0;
}

.score-card .sc-details {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.score-card .sc-url {
  color: var(--neon-green);
  font-size: 0.8rem;
}

/* ── Rank Popup ──────────────────────────────────────────── */
.rank-popup {
  background: rgba(0,0,0,0.9);
  border: 1px solid var(--neon-blue);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  color: var(--neon-blue);
  font-weight: 700;
  animation: rankSlideIn 0.5s ease;
}

@keyframes rankSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Game Page Common ────────────────────────────────────── */
.game-page {
  background: var(--games-bg);
  min-height: 100vh;
  color: #e2e8f0;
}

.game-topbar {
  background: rgba(15,32,64,0.95);
  border-bottom: 1px solid var(--games-border);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.game-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.game-stat-value {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--neon-blue);
  line-height: 1;
}

.game-stat-label {
  font-size: 0.65rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Cargo Blitz Canvas Area ─────────────────────────────── */
.cargo-game-area {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: flex-start;
  padding: 1.5rem;
  flex-wrap: wrap;
}

#cargo-canvas {
  border: 2px solid var(--neon-blue);
  border-radius: 8px;
  background: #050d1a;
  display: block;
  box-shadow: 0 0 30px rgba(0,212,255,0.2);
  image-rendering: pixelated;
}

.cargo-sidebar {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-panel {
  background: var(--games-card);
  border: 1px solid var(--games-border);
  border-radius: 10px;
  padding: 1rem;
}

.sidebar-panel h6 {
  color: #94a3b8;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.util-bar-track {
  background: rgba(255,255,255,0.08);
  border-radius: 50px;
  height: 10px;
  overflow: hidden;
  margin-bottom: 0.3rem;
}

.util-bar-fill {
  height: 100%;
  border-radius: 50px;
  background: var(--neon-blue);
  transition: width 0.3s ease, background 0.3s ease;
}

.util-bar-fill.green  { background: var(--neon-green); }
.util-bar-fill.gold   { background: linear-gradient(90deg, var(--neon-gold), #ff8c00); box-shadow: 0 0 10px var(--neon-gold); animation: goldPulse 0.8s ease infinite; }

@keyframes goldPulse {
  0%,100% { box-shadow: 0 0 10px var(--neon-gold); } 50% { box-shadow: 0 0 20px var(--neon-gold), 0 0 30px var(--neon-gold); }
}

.next-piece-canvas {
  border: 1px solid var(--games-border);
  border-radius: 6px;
  background: #050d1a;
  display: block;
  margin: 0 auto;
}

/* ── Combo Counter ───────────────────────────────────────── */
.combo-display {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  font-weight: 900;
  color: var(--neon-gold);
  text-shadow: 0 0 30px var(--neon-gold);
  pointer-events: none;
  animation: comboPop 1.5s ease forwards;
  z-index: 999;
}

@keyframes comboPop {
  0%   { opacity: 0; transform: translate(-50%,-50%) scale(0.5); }
  20%  { opacity: 1; transform: translate(-50%,-50%) scale(1.2); }
  80%  { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(0.8) translateY(-50px); }
}

/* ── Game Over Overlay ───────────────────────────────────── */
.game-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,13,26,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  backdrop-filter: blur(6px);
}

.game-overlay-card {
  background: var(--games-card);
  border: 2px solid var(--neon-blue);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  max-width: 420px;
  width: 90%;
  animation: overlaySlide 0.4s ease;
}

@keyframes overlaySlide {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

.overlay-score {
  font-size: 3rem;
  font-weight: 900;
  color: var(--neon-green);
  text-shadow: 0 0 20px var(--neon-green);
  margin: 0.5rem 0;
}

.btn-one-more {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  color: white;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
  margin-top: 1rem;
}

.btn-one-more:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.btn-revenge {
  background: linear-gradient(135deg, #ef4444, var(--neon-orange));
}

/* ── Trivia Page ─────────────────────────────────────────── */
.trivia-game-area {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.trivia-question-card {
  background: #0f2040;
  color: #e2e8f0;
  border: 1px solid #1e3a5f;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.trivia-category-tag {
  display: inline-block;
  background: rgba(0,212,255,0.1);
  color: #00d4ff;
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 20px;
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.trivia-question-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.trivia-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.trivia-option {
  background: rgba(255,255,255,0.05);
  border: 2px solid #1e3a5f;
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.95rem;
  font-weight: 500;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  width: 100%;
}

.trivia-option:hover:not(:disabled) {
  border-color: #00d4ff;
  background: rgba(0,212,255,0.08);
  color: #f1f5f9;
  transform: translateX(4px);
}

.trivia-option.correct {
  background: rgba(34,197,94,0.15);
  border-color: #22c55e;
  color: #86efac;
}

.trivia-option.wrong {
  background: rgba(239,68,68,0.15);
  border-color: #ef4444;
  color: #fca5a5;
}

.trivia-option:disabled {
  cursor: default;
  transform: none;
}

.option-key {
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  color: #94a3b8;
}

.trivia-option.correct .option-key { background: #22c55e; color: #0a1628; }
.trivia-option.wrong   .option-key { background: #ef4444; color: white; }

/* ── Timer Ring ──────────────────────────────────────────── */
.timer-ring-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.timer-ring-svg {
  transform: rotate(-90deg);
  width: 80px;
  height: 80px;
}

.timer-ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.1);
  stroke-width: 6;
}

.timer-ring-fg {
  fill: none;
  stroke: var(--neon-green);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
}

.timer-ring-fg.warn   { stroke: #f59e0b; }
.timer-ring-fg.danger { stroke: #ef4444; }
.timer-ring-fg.fast   { stroke: #ff6b35; filter: drop-shadow(0 0 4px #ff6b35); }

.timer-ring-number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: white;
}

/* ── Speed Multiplier ────────────────────────────────────── */
.multiplier-badge {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--neon-orange);
  text-shadow: 0 0 10px var(--neon-orange);
  animation: multiplierGlow 0.5s ease;
}

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

/* ── Explanation Box ─────────────────────────────────────── */
.explanation-box {
  background: #fffbeb;
  border: 1px solid #fbbf24;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  color: #78350f;
  font-size: 0.9rem;
  animation: fadeSlideIn 0.3s ease;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Trivia Progress ─────────────────────────────────────── */
.trivia-progress {
  background: rgba(255,255,255,0.06);
  border-radius: 50px;
  height: 6px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.trivia-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-orange), var(--neon-gold));
  border-radius: 50px;
  transition: width 0.5s ease;
}

/* ── Confetti / New Record ───────────────────────────────── */
.new-record-banner {
  background: linear-gradient(135deg, var(--neon-gold), #ff8c00);
  color: #0a1628;
  font-size: 1.3rem;
  font-weight: 900;
  padding: 0.6rem 2rem;
  border-radius: 50px;
  display: inline-block;
  margin: 0.5rem 0;
  animation: recordPop 0.5s ease;
  text-align: center;
}

@keyframes recordPop {
  from { transform: scale(0.7); opacity: 0; }
  50%  { transform: scale(1.1); }
  to   { transform: scale(1); opacity: 1; }
}

/* ── Guest Paywall ───────────────────────────────────────── */
.guest-paywall {
  background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(168,85,247,0.1));
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
}

.guest-paywall h4 { color: var(--neon-blue); font-weight: 800; }
.guest-paywall p  { color: #94a3b8; }

/* ── Access Tier Table ───────────────────────────────────── */
.tier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.tier-table th {
  background: rgba(255,255,255,0.05);
  color: #94a3b8;
  padding: 0.6rem 1rem;
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid var(--games-border);
}

.tier-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: #cbd5e1;
  vertical-align: top;
}

.tier-table tr:hover td {
  background: rgba(255,255,255,0.03);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .cargo-game-area {
    flex-direction: column;
    align-items: center;
  }
  .cargo-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sidebar-panel {
    flex: 1;
    min-width: 140px;
  }
  .game-topbar-inner {
    gap: 0.5rem;
  }
  .trivia-question-text {
    font-size: 1.05rem;
  }
}
