/* =========================================================
   MATCH TIMELINE GUESSER - COMPREHENSIVE STYLESHEET
   Football Pitch Green Theme, Stadium Floodlights, Settings & Ticker
   ========================================================= */

:root {
  --bg-night: #05100c;
  --bg-surface: rgba(10, 28, 20, 0.88);
  --pitch-green-dark: #022c22;
  --pitch-green-base: #064e3b;
  --pitch-green-mid: #059669;
  --pitch-green-vibrant: #10b981;
  --pitch-green-glow: rgba(16, 185, 129, 0.35);
  --turf-stripe-1: #0a3d2c;
  --turf-stripe-2: #073223;
  --border-pitch: rgba(16, 185, 129, 0.32);
  --border-light: rgba(255, 255, 255, 0.12);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-gold: #fbbf24;
  --text-cyan: #38bdf8;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-led: 'Chakra Petch', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-night);
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
  position: relative;
}

#stadium-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* =========================================
   TOP NAVIGATION
   ========================================= */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 16, 12, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-pitch);
  padding: 10px 20px;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.brand-badge {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--pitch-green-vibrant) 0%, #047857 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 0 12px var(--pitch-green-glow);
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.5px;
}

.text-glow {
  background: linear-gradient(135deg, #34d399 0%, #a7f3d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.game-meta-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #86efac;
  text-transform: uppercase;
}

.pitch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.db-pill {
  background: rgba(251, 191, 36, 0.2);
  color: #fde047;
  border: 1px solid rgba(251, 191, 36, 0.4);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: #fff;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--pitch-green-vibrant);
  transform: scale(1.06);
}

/* =========================================
   MAIN LAYOUT
   ========================================= */
.main-container {
  position: relative;
  z-index: 10;
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 18px 50px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* =========================================
   VIEW 1: SETTINGS SCREEN
   ========================================= */
.settings-view {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeIn 0.3s ease;
}

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

.settings-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 10px 0 16px;
}

.hero-badge-pill {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 5px 16px;
  border-radius: 99px;
  text-transform: uppercase;
}

.settings-heading {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.8px;
  color: #fff;
  line-height: 1.1;
}

.gradient-text {
  background: linear-gradient(135deg, #34d399 0%, #6ee7b7 50%, #a7f3d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.settings-subheading {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.5;
}

.settings-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-card {
  background: radial-gradient(circle at 85% 15%, rgba(16, 185, 129, 0.12) 0%, rgba(8, 24, 18, 0.92) 80%);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-pitch);
  border-radius: 20px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #86efac;
  text-transform: uppercase;
}

/* Mode Options */
.modes-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 820px) {
  .modes-selector {
    grid-template-columns: 1fr;
  }
}

.mode-option {
  background: rgba(3, 15, 10, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.mode-option input[type="radio"] {
  display: none;
}

.mode-option:hover {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(6, 26, 18, 0.8);
  transform: translateY(-2px);
}

.mode-option.active {
  border-color: #10b981;
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.24) 0%, rgba(6, 26, 18, 0.95) 100%);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}

.mode-icon {
  font-size: 32px;
}

.mode-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mode-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.mode-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Chips */
.chip {
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.chip.green { background: rgba(16, 185, 129, 0.25); color: #86efac; border: 1px solid rgba(16, 185, 129, 0.5); }
.chip.gold { background: rgba(251, 191, 36, 0.2); color: #fde047; border: 1px solid rgba(251, 191, 36, 0.45); }
.chip.purple { background: rgba(168, 85, 247, 0.2); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.45); }

/* Difficulty Selector */
.diff-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 640px) {
  .diff-selector {
    grid-template-columns: 1fr;
  }
}

.diff-option {
  background: rgba(3, 15, 10, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.diff-option input[type="radio"] { display: none; }

.diff-option:hover { border-color: rgba(16, 185, 129, 0.5); }

.diff-option.active {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.15);
}

.diff-badge {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
}
.diff-badge.green { color: #86efac; }
.diff-badge.yellow { color: #fde047; }
.diff-badge.red { color: #fca5a5; }

.diff-info {
  font-size: 12px;
  color: var(--text-muted);
}

/* Filter Pills */
.filter-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  border-radius: 99px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #fff;
}

.filter-pill.active {
  background: #10b981;
  color: #022c22;
  border-color: #10b981;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

/* Speed Selector */
.speed-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 640px) {
  .speed-selector {
    grid-template-columns: 1fr;
  }
}

.speed-option {
  background: rgba(3, 15, 10, 0.6);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.speed-option input[type="radio"] { display: none; }

.speed-option:hover { border-color: #10b981; }

.speed-option.active {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.2);
  color: #86efac;
}

/* Kickoff Button */
.settings-actions {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.btn-kickoff {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #fff;
  border: none;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.8px;
  padding: 18px 48px;
  border-radius: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  max-width: 520px;
  justify-content: center;
}

.btn-kickoff:hover {
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(16, 185, 129, 0.6);
}

.kickoff-arrow {
  font-size: 24px;
  transition: transform 0.2s ease;
}
.btn-kickoff:hover .kickoff-arrow {
  transform: translateX(6px);
}

/* =========================================
   VIEW 2: ACTIVE GAME PLAY VIEW
   ========================================= */
.game-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.3s ease;
}

/* Stats Bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat-box {
  background: rgba(10, 30, 22, 0.7);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-pitch);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.stat-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stat-val {
  font-family: var(--font-led);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.text-green { color: #34d399; }
.text-gold { color: var(--text-gold); }
.text-cyan { color: var(--text-cyan); }

/* Match Scoreboard Card */
.match-card {
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.16) 0%, rgba(8, 24, 18, 0.94) 80%);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 20px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(16, 185, 129, 0.12);
}

.match-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.comp-chip {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
  padding: 4px 14px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.season-chip, .year-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}

.scoreboard-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.team-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.team-block.home { align-items: flex-end; text-align: right; }
.team-block.away { align-items: flex-start; text-align: left; }

.team-badge-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.team-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
  line-height: 1.2;
}

.score-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.score-led-display {
  background: #020b08;
  border: 2px solid rgba(16, 185, 129, 0.4);
  border-radius: 14px;
  padding: 8px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 16px rgba(16, 185, 129, 0.2);
}

.led-num {
  font-family: var(--font-led);
  font-size: 36px;
  font-weight: 900;
  color: #34d399;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.6);
  min-width: 22px;
  text-align: center;
}

.led-colon {
  font-family: var(--font-led);
  font-size: 30px;
  color: #10b981;
  opacity: 0.8;
}

.match-stage-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Mystery Match Banner */
.mystery-banner {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.mb-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #fde047;
}
.btn-mystery-action {
  background: #fbbf24;
  color: #000;
  border: none;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  padding: 8px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-mystery-action:hover {
  background: #f59e0b;
  transform: scale(1.03);
}

/* =========================================
   PITCH TIMELINE TRACK & LIVE CLOCK
   ========================================= */
.timeline-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.timeline-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.6px;
  color: #86efac;
}

.timeline-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.pitch-track-container {
  background: #041d15;
  border: 2px solid rgba(16, 185, 129, 0.4);
  border-radius: 16px;
  padding: 8px 12px;
  box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.7), 0 8px 24px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.pitch-turf-surface {
  position: relative;
  height: 90px;
  border-radius: 10px;
  background: repeating-linear-gradient(
    90deg,
    var(--turf-stripe-1) 0px,
    var(--turf-stripe-1) 40px,
    var(--turf-stripe-2) 40px,
    var(--turf-stripe-2) 80px
  );
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}

.pitch-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.28);
}
.pitch-start { left: 0; }
.pitch-center { left: 50%; transform: translateX(-50%); }
.pitch-end { right: 0; }

.pitch-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.pitch-box-left {
  position: absolute;
  top: 15%;
  bottom: 15%;
  left: 0;
  width: 32px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-left: none;
}

.pitch-box-right {
  position: absolute;
  top: 15%;
  bottom: 15%;
  right: 0;
  width: 32px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-right: none;
}

.minute-mark {
  position: absolute;
  bottom: 6px;
  font-family: var(--font-led);
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.65);
  transform: translateX(-50%);
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.m-0 { left: 3%; }
.m-15 { left: 18%; }
.m-30 { left: 34%; }
.m-45 { left: 50%; color: #fbbf24; }
.m-60 { left: 66%; }
.m-75 { left: 82%; }
.m-90 { left: 96%; color: #34d399; }

/* Revealed Pins Layer */
.event-pins-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.event-pin {
  position: absolute;
  top: 16px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  z-index: 15;
  animation: popPin 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popPin {
  0% { transform: translate(-50%, -20px) scale(0); opacity: 0; }
  100% { transform: translate(-50%, 0) scale(1); opacity: 1; }
}

.pin-bubble {
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.3);
}

.pin-bubble.goal { background: #15803d; color: #fff; border-color: #4ade80; }
.pin-bubble.card-yellow { background: #b45309; color: #fef08a; border-color: #fde047; }
.pin-bubble.card-red { background: #b91c1c; color: #fff; border-color: #f87171; }
.pin-bubble.sub { background: #1e293b; color: #94a3b8; border-color: #475569; }

.pin-stem {
  width: 2px;
  height: 28px;
  background: #fff;
  opacity: 0.75;
}

/* Clock / Ball Marker */
.clock-pin-marker {
  position: absolute;
  top: 8px;
  left: 0%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 20;
  transition: left 0.15s ease-out;
}

.pin-head {
  font-size: 22px;
  filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.9));
}

.pin-tooltip {
  background: #10b981;
  color: #022c22;
  font-family: var(--font-led);
  font-size: 12px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 6px;
  margin-top: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.pin-needle {
  width: 2px;
  height: 26px;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

/* =========================================
   TICKER CONTROL BAR
   ========================================= */
.ticker-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(10, 30, 22, 0.7);
  border: 1px solid var(--border-pitch);
  border-radius: 14px;
  padding: 10px 16px;
  flex-wrap: wrap;
}

.btn-ticker-play {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #fff;
  border-radius: 10px;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-ticker-play:hover {
  background: rgba(16, 185, 129, 0.35);
  border-color: #34d399;
}

.ticker-status-text {
  font-size: 13.5px;
  color: #86efac;
  font-weight: 700;
}

.btn-ticker-skip {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ticker-skip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* =========================================
   QUESTION OVERLAY BOX (WHISTLE FREEZE)
   ========================================= */
.question-box {
  background: radial-gradient(circle at 50% 10%, rgba(16, 185, 129, 0.2) 0%, rgba(6, 22, 15, 0.98) 100%);
  border: 2px solid #10b981;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(16, 185, 129, 0.3);
  animation: whistlePulse 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes whistlePulse {
  0% { transform: scale(0.96); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.qb-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.qb-whistle-tag {
  background: #e11d48;
  color: #fff;
  font-family: var(--font-led);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 6px 18px;
  border-radius: 99px;
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.6);
  animation: blinkTag 1s infinite alternate;
}

@keyframes blinkTag {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

.qb-sub {
  font-size: 15px;
  font-weight: 700;
  color: #e2e8f0;
}

.qb-step-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: #86efac;
  letter-spacing: 0.5px;
}

/* Team Choice Grid */
.team-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.team-choice-btn {
  background: rgba(3, 15, 10, 0.75);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #fff;
}

.team-choice-btn:hover {
  border-color: rgba(16, 185, 129, 0.6);
  background: rgba(6, 26, 18, 0.85);
}

.team-choice-btn.selected {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.35);
}

.choice-text {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
}

/* Action Choice Grid */
.action-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 640px) {
  .action-choice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.action-btn {
  background: rgba(3, 15, 10, 0.7);
  border: 1px solid var(--border-light);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.action-btn:hover {
  border-color: #10b981;
}

.action-btn.selected {
  border-color: #34d399;
  background: #10b981;
  color: #022c22;
  font-weight: 900;
}

/* Player Options Grid */
.player-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 580px) {
  .player-options-grid {
    grid-template-columns: 1fr;
  }
}

.player-btn {
  background: rgba(4, 18, 12, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player-btn:hover {
  border-color: rgba(16, 185, 129, 0.6);
  background: rgba(6, 26, 18, 0.85);
}

.player-btn.selected {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.25);
  color: #86efac;
  font-weight: 800;
}

.btn-lock-answer {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #fff;
  border: none;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.6px;
  padding: 16px 28px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
  width: 100%;
}

.btn-lock-answer:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-lock-answer:not(:disabled):hover {
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.55);
}

/* Feedback Banner */
.feedback-banner {
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.25) 0%, rgba(6, 26, 18, 0.95) 100%);
  border: 2px solid #10b981;
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(16, 185, 129, 0.25);
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
  0% { transform: translateY(-15px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.feedback-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}

.feedback-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #34d399;
}

.feedback-desc {
  font-size: 15px;
  font-weight: 600;
  color: #e2e8f0;
}

.feedback-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
}

.fb-item strong {
  font-family: var(--font-led);
  font-size: 15px;
}

.btn-next {
  background: #34d399;
  color: #022c22;
  border: none;
  border-radius: 12px;
  padding: 12px 32px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(52, 211, 153, 0.4);
}

.btn-next:hover {
  background: #6ee7b7;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(52, 211, 153, 0.6);
}

/* Mode 3: Minute Guesser Styles */
.challenge-card {
  background: radial-gradient(circle at 50% 10%, rgba(16, 185, 129, 0.12) 0%, rgba(10, 28, 20, 0.95) 100%);
  border: 1px solid var(--border-pitch);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 14px 35px rgba(0,0,0,0.5);
}

.challenge-tag {
  align-self: flex-start;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 99px;
  text-transform: uppercase;
}

.event-showcase {
  display: flex;
  align-items: center;
  gap: 18px;
}

.event-icon-circle {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(16, 185, 129, 0.18);
  border: 2px solid rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.event-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-type-badge {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #34d399;
  text-transform: uppercase;
}

.event-player-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.4px;
  color: #fff;
  line-height: 1.15;
}

.event-team-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.slider-control-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: rgba(4, 16, 12, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px 20px;
}

.minute-badge-big {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.minute-val {
  font-family: var(--font-led);
  font-size: 52px;
  font-weight: 900;
  color: #34d399;
  text-shadow: 0 0 16px rgba(52, 211, 153, 0.5);
  line-height: 1;
}

.minute-unit {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.slider-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.step-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-pitch);
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-family: var(--font-led);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  min-width: 44px;
}

.step-btn:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
}

.custom-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 12px;
  border-radius: 8px;
  background: #062b1e;
  outline: none;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #a7f3d0 40%, #10b981 100%);
  cursor: pointer;
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.8);
  border: 2px solid #fff;
}

.btn-lock-guess {
  width: 100%;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #fff;
  border: none;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.6px;
  padding: 16px 28px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

/* =========================================
   MODALS (MYSTERY MATCH & GAME OVER)
   ========================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 10, 7, 0.88);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: radial-gradient(circle at 50% 10%, rgba(16, 185, 129, 0.2) 0%, rgba(6, 22, 15, 0.98) 90%);
  border: 2px solid var(--border-pitch);
  border-radius: 24px;
  max-width: 580px;
  width: 100%;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(16, 185, 129, 0.25);
  animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomIn {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-trophy { font-size: 60px; }

.modal-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
}

.modal-subtitle {
  font-size: 15px;
  color: var(--text-muted);
}

.mystery-candidates-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.candidate-card {
  background: rgba(3, 15, 10, 0.8);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.candidate-card:hover {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.2);
  transform: translateX(4px);
}

.cand-match-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.cand-match-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.modal-score-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  background: rgba(2, 12, 8, 0.6);
  border: 1px solid var(--border-pitch);
  border-radius: 14px;
  padding: 16px;
}

.modal-score-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ms-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.ms-val {
  font-family: var(--font-led);
  font-size: 20px;
  font-weight: 900;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

.btn-action-outline {
  background: transparent;
  border: 1px solid var(--border-pitch);
  color: #86efac;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-action-outline:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: #34d399;
}

/* =========================================
   FOOTER
   ========================================= */
.game-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  z-index: 10;
}

.footer-back-links {
  display: flex;
  gap: 14px;
}

.footer-back-links a {
  color: #34d399;
  text-decoration: none;
  font-weight: 700;
}
.footer-back-links a:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 680px) {
  .scoreboard-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .team-block.home, .team-block.away {
    align-items: center;
    text-align: center;
  }
  .team-name { font-size: 18px; }
  .led-num { font-size: 30px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .settings-heading { font-size: 28px; }
  .team-choice-grid { grid-template-columns: 1fr; }
}
