:root {
  --bg-dark: #0a1628;
  --bg-card: #0f2137;
  --neon-green: #00ff88;
  --neon-red: #ff3b5c;
  --neon-blue: #00d4ff;
  --neon-yellow: #ffd700;
  --text-primary: #ffffff;
  --text-secondary: #a0b4c8;
  --accent: #e31837;
  --field-green: #1a3a2a;
  --dirt: #c4a35a;
  --glow: 0 0 20px rgba(0, 255, 136, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Animated background */
.bg-overlay {
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(0, 100, 50, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(227, 24, 55, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #0a1628 0%, #0d1f2d 50%, #0a1628 100%);
  z-index: -2;
}

.particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--neon-green);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 15s infinite linear;
}

@keyframes float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  background: linear-gradient(180deg, rgba(15, 33, 55, 0.95) 0%, rgba(15, 33, 55, 0.7) 100%);
  border-bottom: 2px solid rgba(0, 255, 136, 0.2);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.baseball-icon {
  font-size: 3rem;
  animation: spin-slow 8s linear infinite;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

h1 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-blue), var(--neon-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

.subtitle {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 4px;
  color: var(--text-secondary);
  margin-top: -2px;
}

.controls {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Portrait iPhone / small screens: stack vertically centered */
@media (max-width: 600px), (orientation: portrait) {
  .controls {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
  }
  .timer-box {
    width: auto;
    text-align: center;
  }
  .or-if-you-dare {
    margin: 0.2rem 0;
  }
  .spin-btn-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

.or-if-you-dare {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffd700;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
  white-space: nowrap;
  opacity: 0.9;
}

.timer-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 12px;
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  box-shadow: var(--glow);
}

.timer-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
  font-weight: 600;
}

.timer {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--neon-green);
  min-width: 2.2ch;
  text-align: center;
}

.timer-unit {
  font-size: 0.9rem;
  color: var(--neon-green);
}

.spin-btn {
  background: linear-gradient(135deg, var(--neon-green), #00c46a);
  color: #003318;
  border: none;
  border-radius: 50px;
  padding: 0.8rem 1.6rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spin-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.7);
}

.spin-btn:active {
  transform: scale(0.98);
}

.spin-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ===== MUTE BUTTON (half size of spin, always under it) ===== */
/* Mute: small icon-only button, fixed bottom-right of the screen */
.mute-btn {
  position: fixed !important;
  bottom: 14px;
  right: 14px;
  z-index: 500;
  margin: 0 !important;
  width: 42px;
  height: 42px;
  min-width: 42px !important;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #444, #2a2a2a);
  color: #eee;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 12px rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.92;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mute-btn:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, #555, #333);
  box-shadow: 0 0 16px rgba(0,0,0,0.55);
}

.mute-btn:active {
  transform: scale(0.95);
}

.mute-btn.muted {
  background: linear-gradient(135deg, #c0392b, #922b21);
  color: #fff;
  border-color: rgba(255,100,100,0.45);
  box-shadow: 0 0 14px rgba(192, 57, 43, 0.5);
}

.mute-btn.muted:hover {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

/* Hide mute text label if still present */
.mute-btn #muteLabel {
  display: none !important;
}

/* Make sure mute sits cleanly under spin on all layouts */
.spin-btn-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

@media (max-width: 600px), (orientation: portrait) {
  .spin-btn-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .mute-btn {
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    min-width: 40px !important;
    font-size: 1.05rem;
  }
}

/* ===== DODGER STADIUM STYLE SCOREBOARD LOGO ===== */
.scoreboard-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem 0.4rem;
  background: linear-gradient(180deg, rgba(0, 30, 60, 0.45) 0%, transparent 100%);
  position: relative;
  min-height: 40px;
  width: 100%;
  box-sizing: border-box;
}

/* ===== EXTRA BUTTONS BAR (Monster Jam | NL West | Davin) – centered just above strike panel ===== */
.extra-buttons-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.2rem 1.8rem;
  padding: 0.75rem 1rem 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* ===== CITY / WEATHER / CLOCK – FAR LEFT ===== */
.city-weather-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  min-width: 0;
  z-index: 2;
  justify-self: center;
  margin: 1rem auto 1.5rem;
  max-width: 320px;
  width: 100%;
}

.city-name-bar {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.45), 0 1px 3px #000;
  background: linear-gradient(90deg, transparent, rgba(0, 40, 80, 0.85), transparent);
  padding: 0.22rem 0.8rem;
  border-radius: 4px;
  white-space: nowrap;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.city-boxes {
  display: flex;
  gap: 0.55rem;
  align-items: stretch;
}

.weather-box,
.clock-box {
  background: linear-gradient(160deg, #00264d 0%, #001a33 100%);
  border: 2px solid #b8c4ce;
  border-radius: 8px;
  box-shadow:
    0 0 0 1px #111,
    0 0 0 3px #004a8f,
    0 6px 18px rgba(0, 0, 0, 0.5);
  padding: 0.45rem 0.55rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 88px;
}

.weather-box {
  min-width: 78px;
}

.weather-icon {
  font-size: 1.55rem;
  line-height: 1;
  margin-bottom: 0.15rem;
  filter: drop-shadow(0 1px 2px #000);
}

.weather-temp {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px #000;
  line-height: 1.1;
}

.weather-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  color: #a8c4e0;
  text-align: center;
  text-transform: capitalize;
  margin-top: 0.1rem;
  max-width: 120px;
  line-height: 1.15;
}

.analogue-clock {
  width: 62px;
  height: 62px;
  position: relative;
  margin-bottom: 0.2rem;
}

.clock-face {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #f0f4f8 0%, #d0d8e0 55%, #a8b4c0 100%);
  border: 2px solid #ffd700;
  box-shadow:
    inset 0 0 8px rgba(0, 0, 0, 0.25),
    0 0 0 1px #00264d,
    0 2px 6px rgba(0, 0, 0, 0.45);
  position: relative;
}

/* hour marks */
.clock-face::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg,
      #00264d 0deg 2deg,
      transparent 2deg 30deg);
  opacity: 0.55;
  mask: radial-gradient(circle, transparent 62%, black 63%);
  -webkit-mask: radial-gradient(circle, transparent 62%, black 63%);
}

.hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom center;
  border-radius: 2px;
  z-index: 2;
}

.hour-hand {
  width: 3px;
  height: 18px;
  background: #001a33;
  margin-left: -1.5px;
}

.minute-hand {
  width: 2px;
  height: 24px;
  background: #003d7a;
  margin-left: -1px;
}

.second-hand {
  width: 1.5px;
  height: 26px;
  background: #c41e3a;
  margin-left: -0.75px;
  z-index: 3;
}

.clock-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: #c41e3a;
  border-radius: 50%;
  border: 1px solid #001a33;
  z-index: 4;
}

.digital-time {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px #000;
  white-space: nowrap;
}

/* Banner – truly centered in the middle column */
.scoreboard-logo {
  background: linear-gradient(180deg, #003d7a 0%, #005A9C 45%, #00264d 100%);
  border: 4px solid #b8c4ce;
  border-radius: 5px;
  box-shadow:
    0 0 0 2px #111,
    0 0 0 6px #004a8f,
    0 10px 30px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -3px 10px rgba(0, 0, 0, 0.45);
  padding: 0.5rem 2.4rem 0.6rem;
  position: relative;          /* no longer absolute – stays in grid */
  left: auto;
  transform: none;
  min-width: 280px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  overflow: hidden;
  z-index: 1;
  justify-self: center;
  margin: 0 auto;
}

/* Keyword image – right column */
/* Responsive: stack on smaller screens / portrait */
@media (max-width: 900px) {
  .scoreboard-logo-wrapper {
    min-height: auto;
    padding: 0.4rem 0.75rem;
  }
  .city-weather-clock {
    justify-self: center;
    width: 100%;
    max-width: 280px;
  }
  .scoreboard-logo {
    min-width: 280px;
    max-width: 95%;
  }
  .vin-keyword-image {
    justify-self: center;
    margin: 0.2rem auto;
  }
  .extra-buttons-bar {
    gap: 0.9rem 1.2rem;
    padding: 0.5rem 0.75rem 0.35rem;
  }
}

@media (max-width: 420px) {
  .city-weather-clock {
    transform: scale(0.92);
  }
  .weather-box,
  .clock-box {
    min-width: 120px;
    padding: 0.35rem 0.4rem;
  }
  .analogue-clock {
    width: 54px;
    height: 54px;
  }
  .scoreboard-logo {
    min-width: 260px;
    padding: 0.4rem 1.2rem 0.5rem;
  }
}

/* ===== VIN KEYWORD STOCK IMAGE (appears to the right of banner when Vin speaks) ===== */
.vin-keyword-image {
  position: relative;
  width: 180px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  border: 3px solid #ffd700;
  box-shadow:
    0 0 0 2px #111,
    0 0 18px rgba(255, 215, 0, 0.55),
    0 8px 25px rgba(0, 0, 0, 0.55);
  background: #001a33;
  animation: keywordPopIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  flex-shrink: 0;
  z-index: 40;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vin-keyword-image.hidden {
  display: none !important;
}

.vin-keyword-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vin-keyword-image .keyword-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  color: #ffd700;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  padding: 0.35rem 0.3rem 0.4rem;
  text-transform: uppercase;
  text-shadow: 0 1px 3px #000;
}

@keyframes keywordPopIn {
  0%   { opacity: 0; transform: scale(0.55) translateX(30px); }
  100% { opacity: 1; transform: scale(1) translateX(0); }
}

.vin-keyword-image.leaving {
  animation: keywordPopOut 0.4s ease forwards;
}

@keyframes keywordPopOut {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.7) translateX(20px); }
}

/* On very small screens put the image under the banner and make it a bit wider */
@media (max-width: 520px) {
  .vin-keyword-image {
    width: 210px;
    height: 130px;
  }
}
/* Classic scoreboard LED strips */
.scoreboard-top-bar {
  height: 5px;
  background: linear-gradient(90deg, 
    transparent 0%, #ffd700 8%, #ffffff 28%, #00ff88 50%, #ffffff 72%, #ffd700 92%, transparent 100%);
  margin: 0 -1.8rem 0.4rem;
  opacity: 0.95;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.scoreboard-bottom-bar {
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 5%, #ffd700 18%, #ffffff 50%, #ffd700 82%, transparent 95%);
  margin: 0.35rem -1.8rem 0;
  opacity: 0.75;
}

.scoreboard-text {
  font-family: 'Orbitron', 'Bebas Neue', Impact, sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 4.5px;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.85),
    0 0 20px rgba(0, 160, 255, 0.55),
    0 2px 0 #001a33,
    0 3px 5px rgba(0, 0, 0, 0.55);
  line-height: 1.15;
  position: relative;
  z-index: 2;
}

/* Subtle LED / scanline effect like real scoreboards */
.scoreboard-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.07) 2px,
    rgba(0, 0, 0, 0.07) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Status bar */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
  background: rgba(0, 0, 0, 0.3);
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--neon-red);
  letter-spacing: 1px;
}

.pulse {
  width: 10px;
  height: 10px;
  background: var(--neon-red);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 10px var(--neon-red);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* Scoreboard grid */
.scoreboard {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 2rem 3rem;
  max-width: 1600px;
  margin: 0 auto;
  perspective: 1200px; /* for 3D rotate */
}

/* Game card */
.game-card {
  background: linear-gradient(145deg, #0f2137 0%, #0a1a2e 100%);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 136, 0.15);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(0, 255, 136, 0.1);
}

.game-card.live {
  border-color: rgba(255, 59, 92, 0.4);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(255, 59, 92, 0.15);
}

/* Vin is currently speaking about this team's game */
.game-card.vin-highlight {
  border: 2px solid #ffd700 !important;
  box-shadow:
    0 0 0 3px rgba(255, 215, 0, 0.35),
    0 0 40px rgba(255, 215, 0, 0.55),
    0 0 80px rgba(255, 215, 0, 0.25),
    0 15px 50px rgba(0, 0, 0, 0.6) !important;
  transform: scale(1.04);
  z-index: 20;
  position: relative;
  animation: vinPulse 1.6s ease-in-out infinite;
}

@keyframes vinPulse {
  0%, 100% {
    box-shadow:
      0 0 0 3px rgba(255, 215, 0, 0.35),
      0 0 40px rgba(255, 215, 0, 0.55),
      0 0 80px rgba(255, 215, 0, 0.25),
      0 15px 50px rgba(0, 0, 0, 0.6);
  }
  50% {
    box-shadow:
      0 0 0 5px rgba(255, 215, 0, 0.55),
      0 0 55px rgba(255, 215, 0, 0.75),
      0 0 100px rgba(255, 215, 0, 0.4),
      0 15px 50px rgba(0, 0, 0, 0.6);
  }
}

.game-card.vin-highlight .vin-badge {
  background: linear-gradient(90deg, #ffd700, #ffaa00);
  color: #1a1200;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 0.18rem 0.55rem;
  border-radius: 12px;
  text-transform: uppercase;
  margin-left: 0.4rem;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.7);
  animation: badgePulse 1.2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.05); }
}

/* Make sure header flex still looks good with the badge */
.game-card.vin-highlight .game-header {
  background: rgba(40, 30, 0, 0.55);
  flex-wrap: wrap;
  gap: 0.3rem;
}

/* VERTICAL SPIN / WHEEL ANIMATION */
.game-card.spinning {
  animation: verticalSpin 0.4s ease-in-out infinite;
  z-index: 5;
}

@keyframes verticalSpin {
  0%   { transform: rotateX(0deg) scale(1); }
  25%  { transform: rotateX(90deg) scale(0.95); }
  50%  { transform: rotateX(180deg) scale(1.02); }
  75%  { transform: rotateX(270deg) scale(0.95); }
  100% { transform: rotateX(360deg) scale(1); }
}

.game-card.spinning-slow {
  animation: verticalSpinSlow 0.8s ease-in-out infinite;
}

@keyframes verticalSpinSlow {
  0%   { transform: rotateX(0deg); }
  100% { transform: rotateX(360deg); }
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.game-status {
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.game-status.live {
  background: rgba(255, 59, 92, 0.2);
  color: var(--neon-red);
  border: 1px solid rgba(255, 59, 92, 0.4);
}

.game-status.final {
  background: rgba(160, 180, 200, 0.15);
  color: var(--text-secondary);
}

.game-status.preview {
  background: rgba(0, 212, 255, 0.15);
  color: var(--neon-blue);
}

.game-status.delayed {
  background: rgba(255, 215, 0, 0.15);
  color: var(--neon-yellow);
}

.venue {
  color: var(--text-secondary);
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Teams */
.teams {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.2rem;
  gap: 0.8rem;
}

.team-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.team-logo {
  width: 42px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.team-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.team-info {
  flex: 1;
  min-width: 0;
}

.team-name {
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-record {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 1px;
}

/* Score display */
.score {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  min-width: 2.2ch;
  text-align: center;
  color: var(--neon-green);
  text-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
  transition: all 0.1s;
  position: relative;
}

.score.scrambling {
  color: var(--neon-yellow);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  animation: scramble-glow 0.1s infinite;
}

@keyframes scramble-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.5); }
}

.score.winner {
  color: var(--neon-green);
}

.score.loser {
  color: var(--text-secondary);
  opacity: 0.7;
}

/* Inning info */
.game-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1.2rem;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
}

.inning-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.inning-badge {
  background: rgba(0, 255, 136, 0.15);
  color: var(--neon-green);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
}

.bases {
  display: flex;
  gap: 3px;
}

.base {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(45deg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.base.occupied {
  background: var(--neon-yellow);
  box-shadow: 0 0 8px var(--neon-yellow);
  border-color: var(--neon-yellow);
}

/* Loading */
.loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  gap: 1.5rem;
  color: var(--text-secondary);
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(0, 255, 136, 0.2);
  border-top-color: var(--neon-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Empty state */
.no-games {
  padding: 4rem 2rem;
  text-align: center;
}

.empty-state .big-ball {
  font-size: 5rem;
  margin-bottom: 1rem;
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.hidden {
  display: none !important;
}

/* Scramble overlay effect */
.scrambling-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 215, 0, 0.08) 50%, transparent 60%);
  background-size: 200% 200%;
  animation: shimmer 0.6s ease;
  pointer-events: none;
  z-index: 10;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== NO LIVE GAMES rolling top banner ===== */
.no-live-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 48px;
  background: linear-gradient(90deg, #b30000, #ff2222, #b30000, #ff2222);
  background-size: 200% 100%;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 3px;
  z-index: 1600;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 4px 25px rgba(255, 0, 0, 0.55);
  transform: translateY(-100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.no-live-banner.show {
  transform: translateY(0);
  animation: bannerPulse 1.5s ease-in-out infinite alternate;
}

/* When the red no-live banner is visible, push the whole header (and the 3 buttons)
   down so the SPIN / MUTE / QUIZ buttons are never covered by the banner */
body.no-live-banner-active header {
  margin-top: 56px;
  transition: margin-top 0.35s ease;
}
body.no-live-banner-active .spin-btn-area {
  padding-top: 4px;
}

@keyframes bannerPulse {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.no-live-banner .marquee-text {
  display: inline-block;
  padding-left: 100%;
  animation: marqueeScroll 20s linear infinite;
  text-shadow: 0 0 10px rgba(255,255,255,0.6);
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Red Vin word banner styles removed (subtitle feature disabled) */

/* Voice announcement visual */
.voice-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.95), rgba(0, 180, 100, 0.95));
  color: #003318;
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  padding: 1.5rem 3rem;
  border-radius: 20px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 60px rgba(0, 255, 136, 0.6);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  letter-spacing: 2px;
}

.voice-banner.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.voice-banner .sub {
  font-size: 1rem;
  letter-spacing: 4px;
  margin-top: 0.3rem;
  opacity: 0.8;
}

/* ===== VIN SCULLY POPUP ===== */
.vin-popup {
  position: fixed;
  bottom: 30px;
  right: 36px;
  z-index: 2000;
  max-width: 520px;
  animation: vinSlideIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* No-live stories: Vin image forefront on the scoreboard (centered, larger) */
.vin-popup.no-live-mode {
  bottom: auto;
  right: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 1600px;         /* twice previous */
  width: 96%;
  max-height: 92vh;
  z-index: 2100; /* above the red banner */
  animation: vinCenterIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vin-popup.no-live-mode .vin-photo-wrapper {
  width: 520px;              /* ~1.6× previous 330 (capped so it still fits most screens) */
  height: 660px;
  max-width: 55vw;
  max-height: 70vh;
  border-radius: 28px;
  border-width: 5px;
}

.vin-popup.no-live-mode .vin-card {
  box-shadow: 0 0 140px rgba(255, 215, 0, 0.55), 0 50px 120px rgba(0,0,0,0.8);
  border-width: 5px;
  padding: 2.4rem;
  gap: 2rem;
  max-height: 90vh;
}

.vin-popup.no-live-mode .vin-name {
  font-size: 3.2rem;
}

.vin-popup.no-live-mode .vin-tagline {
  font-size: 1.6rem !important;
}

.vin-popup.no-live-mode .vin-subtitles {
  font-size: 2.4rem;
  line-height: 1.35;
}

@keyframes vinCenterIn {
  0% { transform: translate(-50%, -40%) scale(0.7); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.vin-popup.hidden {
  display: none;
}

.vin-popup.leaving {
  animation: vinSlideOut 0.6s ease forwards;
}

/* Mobile-only Vin play button (speech bubble style) */
.vin-play-bubble {
  position: absolute;
  bottom: -8px;
  right: -12px;
  background: #fff;
  border: 3px solid #1a3c6e;
  border-radius: 20px;
  padding: 6px 10px 6px 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
  animation: vinPlayPop 0.3s ease forwards;
}
.vin-play-bubble.hidden {
  display: none !important;
}
.vin-play-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffcc00, #ff9900);
  border: none;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.1s ease;
}
.vin-play-btn:active {
  transform: scale(0.92);
}
.vin-play-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1a3c6e;
  white-space: nowrap;
  padding-right: 4px;
}

@keyframes vinPlayPop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.vin-popup.no-live-mode.leaving {
  animation: vinCenterOut 0.5s ease forwards;
}

@keyframes vinCenterOut {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -40%) scale(0.7); opacity: 0; }
}

@keyframes vinSlideIn {
  0% { transform: translateX(120%) scale(0.8); opacity: 0; }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes vinSlideOut {
  0% { transform: translateX(0) scale(1); opacity: 1; }
  100% { transform: translateX(120%) scale(0.8); opacity: 0; }
}

.vin-card {
  background: linear-gradient(145deg, #1a2740 0%, #0d1a2e 100%);
  border-radius: 24px;
  border: 3px solid rgba(255, 215, 0, 0.45);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.65),
    0 0 70px rgba(255, 215, 0, 0.35);
  display: flex;
  gap: 1.8rem;
  padding: 1.8rem;
  overflow: hidden;
  position: relative;
}

.vin-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-yellow), var(--neon-green), var(--neon-blue));
}

.vin-photo-wrapper {
  position: relative;
  width: 220px;
  height: 280px;
  flex-shrink: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid rgba(255, 215, 0, 0.55);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}

.vin-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.15s ease;
}

/* Subtle overall glow while talking */
.vin-photo-wrapper.talking {
  animation: vinTalkGlow 0.8s ease-in-out infinite alternate;
}

@keyframes vinTalkGlow {
  0%   { box-shadow: 0 0 18px rgba(255, 215, 0, 0.35); }
  100% { box-shadow: 0 0 32px rgba(255, 215, 0, 0.65); }
}

/* Mouth overlay - simple dark oval that opens/closes */
.mouth-overlay {
  position: absolute;
  bottom: 18%;
  left: 50%;
  width: 28%;
  height: 9%;
  background: rgba(40, 20, 15, 0.75);
  border-radius: 50%;
  transform: translateX(-50%) scaleY(0.35);
  transform-origin: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.vin-photo-wrapper.talking .mouth-overlay {
  opacity: 1;
  animation: mouthTalk 0.28s ease-in-out infinite alternate;
}

@keyframes mouthTalk {
  0%   { transform: translateX(-50%) scaleY(0.25) scaleX(0.9); }
  100% { transform: translateX(-50%) scaleY(1.15) scaleX(1.05); }
}

/* Extra subtle jaw/head movement on the photo itself */
.vin-photo-wrapper.talking .vin-photo {
  animation: headTalk 0.55s ease-in-out infinite alternate;
}

@keyframes headTalk {
  0%   { transform: translateY(0) scale(1); }
  100% { transform: translateY(1.5px) scale(1.01); }
}

.vin-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.vin-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 2.3rem;
  color: var(--neon-yellow);
  letter-spacing: 1px;
}

.vin-tagline {
  font-size: 1.4rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.vin-speech {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #e8eef5;
  margin-top: 0.25rem;
  max-height: 150px;
  overflow-y: auto;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
}

footer .tip {
  margin-top: 0.55rem;
  color: var(--neon-blue);
  font-size: 0.75rem;
}

/* Confetti */
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  top: -10px;
  z-index: 999;
  pointer-events: none;
  animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
  header {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
  }

  h1 {
    font-size: 1.4rem;
  }

  .scoreboard-logo {
    min-width: 0;
    width: 92%;
    padding: 0.4rem 1rem 0.5rem;
  }
  .scoreboard-text {
    font-size: 1.15rem;
    letter-spacing: 2px;
  }

  .scoreboard {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .score {
    font-size: 2rem;
  }

  .voice-banner {
    font-size: 1.6rem;
    padding: 1rem 1.5rem;
    width: 90%;
  }

  .vin-popup {
    bottom: 15px;
    right: 15px;
    left: 15px;
    max-width: none;
  }

  .vin-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .vin-photo-wrapper {
    width: 180px;
    height: 230px;
  }

  .vin-card-simple {
    max-width: 320px !important;
    padding: 1.2rem !important;
  }

  .vin-card-simple .vin-photo-wrapper {
    width: 200px !important;
    height: 250px !important;
  }

  .vin-card-simple .vin-name {
    font-size: 1.6rem !important;
  }

  .vin-popup.no-live-mode .vin-photo-wrapper {
    width: 280px !important;
    height: 360px !important;
    max-width: 80vw;
    max-height: 55vh;
  }

  .vin-popup.no-live-mode .vin-name {
    font-size: 2.2rem !important;
  }
}

/* ===== EXCITED JULIAN JUMPER ===== */
.julian-jumper {
  position: fixed;
  bottom: 20px;
  left: 36px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  transition: opacity 0.4s;
}

.julian-jumper.hidden {
  opacity: 0;
  visibility: hidden;
}

.julian-img {
  width: 160px;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5));
  transform-origin: bottom center;
}

.julian-jumper.jumping .julian-img {
  animation: julianJump 0.55s ease-in-out infinite;
}

@keyframes julianJump {
  0%, 100% { transform: translateY(0) rotate(-2deg) scale(1); }
  25% { transform: translateY(-38px) rotate(3deg) scale(1.05); }
  50% { transform: translateY(-18px) rotate(-1deg) scale(1.02); }
  75% { transform: translateY(-42px) rotate(2deg) scale(1.06); }
}

.julian-speech {
  background: linear-gradient(135deg, #005A9C, #003d7a);
  color: white;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  border: 2px solid #ffd700;
  margin-top: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.julian-jumper.jumping .julian-speech {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 768px) {
  .julian-jumper {
    bottom: 10px;
    left: 10px;
  }
  .julian-img {
    width: 110px;
  }
  .julian-speech {
    font-size: 0.8rem;
  }
}

/* ===== INTRO VIDEO OVERLAY ===== */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-overlay video {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* or "cover" if you want it to fill the screen */
  background: #000;
}

.skip-intro-btn {
  position: absolute;
  bottom: 30px;
  right: 36px;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50px;
  padding: 0.7rem 1.4rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
  z-index: 10000;
}

.skip-intro-btn:hover {
  background: rgba(0, 90, 156, 0.85);
  border-color: #ffd700;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .skip-intro-btn {
    bottom: 20px;
    right: 20px;
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
  }
}

/* ===== OLD-SCHOOL STRIKE BOARD ===== */
.strike-board-wrapper {
  display: flex;
  justify-content: center;
  padding: 0.4rem 1rem 0.6rem;
}

.strike-board {
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 3px solid #555;
  border-radius: 4px;
  box-shadow:
    0 0 0 1px #222,
    0 4px 12px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.08);
  padding: 0.35rem 1rem 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 180px;
}

.strike-board-label {
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffd700;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.5);
}

.strike-lights {
  display: flex;
  gap: 0.45rem;
}

.strike-light {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2a2a2a;
  border: 2px solid #444;
  color: #555;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.6);
}

.strike-light.active {
  background: radial-gradient(circle at 35% 35%, #ff6b6b, #cc0000);
  border-color: #ff4444;
  color: #fff;
  box-shadow:
    0 0 12px rgba(255, 50, 50, 0.8),
    0 0 24px rgba(255, 0, 0, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.3);
  animation: strikePulse 0.6s ease;
}

.strike-light.out {
  background: radial-gradient(circle at 35% 35%, #ff2222, #880000);
  border-color: #ff0000;
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 0, 0, 0.9);
}

@keyframes strikePulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* Simplified Vin card (photo + name only) - DOUBLE SIZE */
.vin-card-simple {
  flex-direction: column !important;
  align-items: center !important;
  text-align: center;
  padding: 1.6rem 1.8rem !important;
  max-width: 400px;
}

.vin-card-simple .vin-photo-wrapper {
  width: 240px !important;
  height: 300px !important;
  margin-bottom: 0.8rem;
  border-radius: 18px !important;
  border-width: 3px !important;
}

.vin-card-simple .vin-content {
  align-items: center;
}

.vin-card-simple .vin-name {
  font-size: 2rem !important;
}

.vin-card-simple .vin-tagline {
  font-size: 1.3rem !important;
}

/* Vin subtitles styles removed (feature disabled per user request) */

/* ===== JULIAN POINTER NEAR SPIN BUTTON ===== */
.spin-btn-area {
  position: relative;
  display: flex;
  flex-direction: column;   /* stack spin button + mute button vertically */
  align-items: center;
  gap: 0;
}

.julian-pointer {
  position: absolute;
  /* Sit fully BELOW the spin button, slightly left, pointing up at it */
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  bottom: auto;
  transform: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  z-index: 50;
  pointer-events: none;
  animation: julianPointBounce 0.6s ease infinite alternate;
}

.julian-pointer.hidden {
  display: none;
}

.julian-pointer-img {
  width: 192px; /* 3x previous 64px */
  height: auto;
  order: 2;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.5));
  transform: none; /* face natural; arrow points up to button */
}

.julian-pointer-arrow {
  order: 1;
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: -4px;
  animation: arrowWiggle 0.4s ease infinite alternate;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.4));
  display: inline-block;
}

@keyframes julianPointBounce {
  0%   { transform: translateY(0); }
  100% { transform: translateY(6px); }
}

@keyframes arrowWiggle {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

@media (max-width: 768px) {
  .julian-pointer-img {
    width: 144px;
  }
  .julian-pointer-arrow {
    font-size: 1.8rem;
  }
}


/* ===== STRIKE 3 JOE WEST ===== */
.joe-west-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.85);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.2rem;
  animation: joeFadeIn 0.3s ease;
}
.joe-west-overlay.hidden { display: none; }
.joe-west-img {
  max-width: min(90vw, 520px); max-height: 70vh;
  border-radius: 12px; border: 4px solid #ffd700;
  box-shadow: 0 0 40px rgba(255,0,0,0.5), 0 0 80px rgba(255,215,0,0.3);
}
.joe-west-text {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.2rem, 4vw, 2.2rem); font-weight: 900;
  color: #ffd700; text-align: center;
  text-shadow: 0 0 12px #ff0000, 0 2px 0 #000;
  letter-spacing: 2px; line-height: 1.3;
}
@keyframes joeFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ===== TAP TO START SCREEN ===== */
.start-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at center, #0a1f3a 0%, #000 80%);
  display: flex;
  align-items: flex-end;          /* push content toward bottom */
  justify-content: center;
  cursor: pointer;
  user-select: none;
  padding-bottom: 6vh;
}

.start-content {
  text-align: center;
  color: white;
  max-width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Text stays above; baseball sits at the bottom of the stack */
.start-content h1 {
  order: 1;
  margin-bottom: 0.6rem;
}
.start-content .tap-prompt {
  order: 2;
}
.start-content .stadium-note {
  order: 3;
  margin-bottom: 1.5rem;
}
.start-content .big-baseball {
  order: 4;
  margin-top: auto;
  margin-bottom: 0;
}

.big-baseball {
  font-size: 9rem;
  margin-bottom: 0;
  margin-top: 1.5rem;
  animation: pulseBig 2s ease infinite;
  filter: drop-shadow(0 0 40px #ffd700);
}

.start-content h1 {
  font-family: 'Orbitron', 'Bebas Neue', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  letter-spacing: 3px;
  margin: 0.2em 0 0.4em;
  background: linear-gradient(90deg, #00ff88, #00d4ff, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 25px rgba(0, 255, 136, 0.55));
}

.tap-prompt {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 6px;
  color: #ffd700;
  margin: 1.5rem 0;
  animation: tapPulse 1.5s ease infinite;
  text-shadow: 0 0 20px #ffd700;
}

.stadium-note {
  font-size: 1.1rem;
  opacity: 0.75;
  margin-top: 2rem;
}

@keyframes pulseBig {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

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

.start-screen.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

/* ===== QUIZ BUTTON (under mute) ===== */
.quiz-btn {
  margin-top: 0.7rem;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 36px;
  padding: 0.85rem 1.8rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 22px rgba(108, 92, 231, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 180px;
  min-height: 52px;
  z-index: 50;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.quiz-btn:hover {
  transform: scale(1.07);
  background: linear-gradient(135deg, #7d6ff0, #b3adff);
  box-shadow: 0 0 28px rgba(108, 92, 231, 0.85);
}
.quiz-btn:active { transform: scale(0.97); }
.quiz-btn.hidden { display: none !important; }
.quiz-btn:disabled,
.quiz-btn.vin-blocked {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
  filter: grayscale(0.35);
}

/* ===== NEW QUIZ BUTTON in extra-buttons-bar (next to Davin's Daily) ===== */
.quiz-main-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  cursor: pointer;
  z-index: 5;
  padding: 0.3rem;
  transition: transform 0.2s ease, filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.quiz-main-btn:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 12px rgba(108, 92, 231, 0.7));
}
.quiz-main-btn:active {
  transform: scale(0.96);
}
.quiz-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(145deg, #6c5ce7, #a29bfe);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #3d2a8a, 0 0 12px rgba(108, 92, 231, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
}
.quiz-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #c3b8ff;
  text-align: center;
  line-height: 1.15;
  text-shadow: 0 1px 3px #000, 0 0 8px rgba(108, 92, 231, 0.5);
  max-width: 110px;
  white-space: normal;
}

/* Double size on desktop like the other extra buttons */
@media (min-width: 901px) {
  .quiz-main-btn .quiz-icon {
    width: 96px;
    height: 96px;
    border-radius: 16px;
    border-width: 3px;
    font-size: 48px;
  }
  .quiz-main-btn .quiz-label {
    font-size: 1.55rem;
    max-width: 200px;
    line-height: 1.2;
  }
}

/* ===== MONSTER JAM TRUCK QUIZ - Blackout + blur effect ===== */
.quiz-q-image-wrap.monsterjam-redacted {
  position: relative;
  overflow: hidden;
}

/* Make the visible truck snippet more blurry */
.quiz-q-image-wrap.monsterjam-redacted img {
  filter: blur(9px) brightness(0.8) contrast(0.85);
  transition: filter 0.3s ease;
}

.quiz-q-image-wrap.monsterjam-redacted::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #000;
  /* Strictly show only one quarter (~22%) of the truck — the other 3/4 is solidly blacked out */
  clip-path: polygon(0% 78%, 100% 78%, 100% 100%, 0% 100%);
  pointer-events: none;
  z-index: 2;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.98);
}

/* ===== QUIZ OVERLAY ===== */
.quiz-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: linear-gradient(160deg, #0a1628 0%, #1a0a2e 50%, #0d1b2a 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 1rem;
  box-sizing: border-box;
}
.quiz-overlay.hidden { display: none !important; }

/* Round baseball back button – always visible on quiz screen */
.quiz-baseball-back {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 99999;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #f5f5f5 40%, #e8e8e8 100%);
  box-shadow:
    0 0 0 3px #c41e3a,
    0 4px 18px rgba(0,0,0,0.45),
    inset 0 0 12px rgba(0,0,0,0.08);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.quiz-baseball-back:hover {
  transform: scale(1.08);
  box-shadow:
    0 0 0 3px #ffd700,
    0 6px 22px rgba(0,0,0,0.5),
    inset 0 0 12px rgba(0,0,0,0.08);
}
.quiz-baseball-back:active {
  transform: scale(0.96);
}
.quiz-baseball-back .baseball-btn-inner {
  font-size: 2.8rem;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.25));
}
.quiz-baseball-back .baseball-btn-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  color: #c41e3a;
  letter-spacing: 0.5px;
  margin-top: -2px;
  text-shadow: 0 1px 0 #fff;
}
/* red stitching lines (CSS only) */
.quiz-baseball-back::before,
.quiz-baseball-back::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 70px;
  background: transparent;
  border-left: 2px dashed #c41e3a;
  opacity: 0.7;
  pointer-events: none;
}
.quiz-baseball-back::before {
  left: 36px;
  top: 24px;
  transform: rotate(-18deg);
}
.quiz-baseball-back::after {
  right: 36px;
  top: 24px;
  transform: rotate(18deg);
}

@media (max-width: 480px) {
  .quiz-baseball-back {
    width: 82px;
    height: 82px;
    top: 10px;
    right: 10px;
  }
  .quiz-baseball-back .baseball-btn-inner { font-size: 1.9rem; }
  .quiz-baseball-back .baseball-btn-label { font-size: 0.62rem; }
}

.quiz-inner {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.quiz-banner {
  background: linear-gradient(90deg, #ffd700, #ffaa00, #ffd700);
  color: #1a1a2e;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(1.1rem, 4vw, 1.7rem);
  text-align: center;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  letter-spacing: 1px;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

/* Roger the Robot */
.roger-host {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.4rem;
}
.roger-robot {
  position: relative;
  width: 90px;
  height: 110px;
  animation: rogerBob 2.2s ease-in-out infinite;
}
@keyframes rogerBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.roger-antenna {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 4px;
  height: 18px;
  background: #888;
  transform: translateX(-50%);
  border-radius: 2px;
}
.roger-antenna::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: #ff4757;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px #ff4757;
  animation: antennaBlink 1.5s ease-in-out infinite;
}
@keyframes antennaBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px #ff4757; }
  50% { opacity: 0.4; box-shadow: 0 0 4px #ff4757; }
}
.roger-head {
  width: 70px;
  height: 55px;
  background: linear-gradient(180deg, #dfe6e9, #b2bec3);
  border-radius: 16px 16px 10px 10px;
  margin: 0 auto;
  position: relative;
  border: 3px solid #636e72;
  box-shadow: inset 0 -4px 8px rgba(0,0,0,0.15);
}
.roger-eye {
  position: absolute;
  top: 16px;
  width: 14px;
  height: 14px;
  background: #2d3436;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #74b9ff, 0 0 6px #74b9ff;
}
.roger-eye.left { left: 12px; }
.roger-eye.right { right: 12px; }
.roger-mouth {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 8px;
  background: #2d3436;
  border-radius: 0 0 10px 10px;
  transition: height 0.12s;
}
.roger-mouth.talking {
  height: 14px;
  border-radius: 4px;
  animation: mouthTalk 0.25s ease-in-out infinite alternate;
}
@keyframes mouthTalk {
  from { height: 6px; }
  to { height: 14px; }
}
.roger-body {
  width: 55px;
  height: 40px;
  background: linear-gradient(180deg, #636e72, #2d3436);
  border-radius: 8px 8px 14px 14px;
  margin: 4px auto 0;
  position: relative;
  border: 2px solid #b2bec3;
}
.roger-chest-light {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: #00cec9;
  border-radius: 50%;
  box-shadow: 0 0 10px #00cec9;
  animation: chestPulse 1.8s ease-in-out infinite;
}
@keyframes chestPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.roger-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  color: #a29bfe;
  margin-top: 0.55rem;
  letter-spacing: 0.5px;
}
.roger-speech {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(162,155,254,0.35);
  border-radius: 12px;
  padding: 0.55rem 1rem;
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
  max-width: 340px;
  margin-top: 0.5rem;
  min-height: 2.4em;
  line-height: 1.35;
}

/* Screens */
.quiz-screen { animation: quizFadeIn 0.35s ease; }
.quiz-screen.hidden { display: none !important; }
@keyframes quizFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.quiz-title {
  font-family: 'Orbitron', sans-serif;
  color: #ffd700;
  text-align: center;
  font-size: 1.35rem;
  margin: 0 0 0.3rem;
}
.quiz-sub {
  text-align: center;
  color: #aaa;
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
}

.quiz-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 560px;
  margin: 0 auto 1.5rem;
}
@media (min-width: 700px) {
  .quiz-choices {
    grid-template-columns: 1fr 1fr 1fr;
    max-width: 780px;
  }
}
.quiz-choice-btn {
  background: linear-gradient(145deg, #1e2a44, #152038);
  border: 2px solid rgba(255,215,0,0.35);
  border-radius: 16px;
  padding: 0.85rem 0.6rem 1rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Orbitron', sans-serif;
  position: relative;
  min-height: 180px;
  overflow: hidden;
}
.quiz-choice-btn:hover:not(:disabled) {
  border-color: #ffd700;
  background: linear-gradient(145deg, #2a3a5c, #1e2a44);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(255,215,0,0.25);
}
.quiz-choice-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.6);
}
.quiz-choice-btn .quiz-letter {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffd700;
  line-height: 1;
}
.quiz-choice-btn .quiz-name {
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.quiz-choice-btn .quiz-cover-img {
  width: 100%;
  max-width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(255,215,0,0.45);
  background: linear-gradient(145deg, #1a2740, #0d1525);
  margin-top: 0.25rem;
  min-height: 90px;
}
.quiz-choice-btn .quiz-lock {
  font-size: 0.7rem;
  color: #ff6b6b;
  min-height: 1em;
}
.quiz-choice-btn.completed .quiz-lock::after {
  content: '✓ DONE';
  color: #00b894;
  font-weight: 700;
}

.quiz-close-btn {
  /* bigger back button */
  display: block;
  margin: 0 auto;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #ccc;
  padding: 0.75rem 1.9rem;
  border-radius: 30px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s;
}
.quiz-close-btn:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* Question screen */
.quiz-progress {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  color: #a29bfe;
}
.quiz-timer-bar {
  flex: 1;
  height: 10px;
  background: rgba(255,255,255,0.12);
  border-radius: 6px;
  overflow: hidden;
}
.quiz-timer-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #00b894, #ffd700, #ff4757);
  border-radius: 6px;
  transition: width 0.2s linear;
}
#quizTimerNum {
  min-width: 1.4em;
  text-align: center;
  font-weight: 700;
  color: #ffd700;
}

/* Question layout: image left + content right on wider screens */
.quiz-question-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
@media (min-width: 640px) {
  .quiz-question-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.4rem;
  }
}
.quiz-q-image-wrap {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid rgba(255,215,0,0.45);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  background: linear-gradient(145deg, #1a2740, #0d1525);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.quiz-q-image-wrap::before {
  content: '🎨';
  font-size: 2.8rem;
  opacity: 0.55;
  position: absolute;
  z-index: 0;
}
@media (min-width: 640px) {
  .quiz-q-image-wrap {
    width: 200px;
    height: 200px;
  }
}
.quiz-question-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  background: transparent;
}
.quiz-q-content {
  flex: 1;
  min-width: 0;
  width: 100%;
}
.quiz-question-text {
  font-size: clamp(1.05rem, 3.5vw, 1.35rem);
  color: #fff;
  text-align: center;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1.1rem;
  padding: 0 0.5rem;
  min-height: 2.6em;
}
@media (min-width: 640px) {
  .quiz-question-text { text-align: left; }
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  max-width: 520px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .quiz-options { margin: 0; }
}
.quiz-option-btn {
  background: linear-gradient(145deg, #1e2a44, #152038);
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.quiz-option-btn:hover:not(:disabled) {
  border-color: #74b9ff;
  background: linear-gradient(145deg, #243454, #1a2740);
  transform: translateX(4px);
}
.quiz-option-btn .opt-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,215,0,0.15);
  color: #ffd700;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.quiz-option-btn.correct {
  border-color: #00b894 !important;
  background: linear-gradient(145deg, #0a3d32, #0d2b24) !important;
  box-shadow: 0 0 16px rgba(0,184,148,0.35);
}
.quiz-option-btn.wrong {
  border-color: #ff4757 !important;
  background: linear-gradient(145deg, #3d1518, #2b0d10) !important;
  opacity: 0.85;
}
.quiz-option-btn:disabled { cursor: default; }

/* Results */
.quiz-results-emoji {
  font-size: 3.5rem;
  text-align: center;
  margin: 0.5rem 0;
}
.quiz-score {
  text-align: center;
  font-size: 1.25rem;
  color: #ffd700;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  margin: 0.5rem 0;
}
.quiz-roger-comment {
  text-align: center;
  color: #ccc;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

@media (max-width: 500px) {
  .quiz-choices { grid-template-columns: 1fr; }
  .roger-robot { width: 75px; height: 95px; }
  .quiz-banner { font-size: 1.15rem; }
}

/* ===== MONSTER JAM LEADERBOARDS BUTTON (next to D) ===== */
.monster-jam-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  cursor: pointer;
  z-index: 5;
  padding: 0.3rem;
  transition: transform 0.2s ease, filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.monster-jam-btn:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 12px rgba(255, 100, 0, 0.7));
}
.monster-jam-btn:active {
  transform: scale(0.96);
}
.monster-jam-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #1a1a1a, #333);
  border: 2px solid #ff6600;
  box-shadow: 0 0 0 2px #111, 0 0 12px rgba(255, 100, 0, 0.5);
}
.monster-jam-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.monster-jam-fallback {
  font-size: 28px;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* ===== NEW MONSTER JAM TRUCK QUIZ BUTTON (top-left on Quiz page) ===== */
.monsterjam-new-quiz-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: linear-gradient(145deg, #1a1a1a, #2a1a00);
  border: 3px solid #ff6600;
  border-radius: 16px;
  padding: 8px 10px 6px;
  box-shadow: 0 0 0 3px #111, 0 4px 15px rgba(255, 100, 0, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.monsterjam-new-quiz-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px #111, 0 6px 20px rgba(255, 100, 0, 0.85);
}
.monsterjam-new-quiz-btn:active {
  transform: scale(0.95);
}
.monsterjam-new-quiz-img {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
.monsterjam-new-quiz-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  color: #ff2222;
  letter-spacing: 1.5px;
  text-shadow: 0 0 8px #ff0000, 0 2px 4px #000;
  animation: flashRed 1.1s ease-in-out infinite;
  text-align: center;
  line-height: 1;
}

@keyframes flashRed {
  0%, 100% { opacity: 1; color: #ff2222; }
  50% { opacity: 0.35; color: #ff6666; }
}

/* ===== MONSTER JAM MATCHING BUTTON (top-right on Quiz page) ===== */
.monsterjam-matching-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: linear-gradient(145deg, #0a2a1a, #003322);
  border: 3px solid #00ff88;
  border-radius: 16px;
  padding: 8px 10px 6px;
  box-shadow: 0 0 0 3px #111, 0 4px 15px rgba(0, 255, 136, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.monsterjam-matching-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px #111, 0 6px 20px rgba(0, 255, 136, 0.85);
}
.monsterjam-matching-btn:active {
  transform: scale(0.95);
}
.monsterjam-matching-img {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
.monsterjam-matching-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  color: #00ff88;
  letter-spacing: 1.5px;
  text-shadow: 0 0 8px #00ff88, 0 2px 4px #000;
  animation: flashGreen 1.1s ease-in-out infinite;
  text-align: center;
  line-height: 1;
}

@keyframes flashGreen {
  0%, 100% { opacity: 1; color: #00ff88; }
  50% { opacity: 0.4; color: #66ffaa; }
}

/* Make sure the quiz screen has position relative for the absolute button */
#quizSelectScreen {
  position: relative;
}

/* ===== MONSTER JAM MATCHING MEMORY GAME ===== */
.matching-header {
  text-align: center;
}

.matching-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 620px;
  margin: 0 auto 1rem;
  padding: 0.5rem;
}

@media (max-width: 600px) {
  .matching-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 95%;
  }
}

.matching-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  perspective: 1000px;
  cursor: pointer;
  user-select: none;
}

.matching-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.matching-card.flipped .matching-card-inner {
  transform: rotateY(180deg);
}

.matching-card.matched .matching-card-inner {
  transform: rotateY(180deg);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
}

.matching-card-front,
.matching-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 14px;
  overflow: hidden;
  border: 4px solid #ffd700;
}

.matching-card-front {
  background: linear-gradient(145deg, #1a2740, #0d1525);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #ffd700;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.7);
}

.matching-card-back {
  background: #111;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.matching-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.matching-footer {
  text-align: center;
}

.matching-status {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  color: #00ff88;
  text-shadow: 0 0 10px rgba(0,255,136,0.5);
  margin-bottom: 0.4rem;
}

/* ===== NL WEST STANDINGS BUTTON ===== */
.standings-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  cursor: pointer;
  z-index: 5;
  padding: 0.3rem;
  transition: transform 0.2s ease, filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.standings-btn:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 12px rgba(0, 150, 255, 0.7));
}
.standings-btn:active {
  transform: scale(0.96);
}
.standings-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(160deg, #002d5d, #004d99);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #001a33, 0 0 12px rgba(0, 100, 200, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
}
.standings-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #a0d0ff;
  text-align: center;
  line-height: 1.15;
  text-shadow: 0 1px 3px #000, 0 0 8px rgba(0,100,200,0.5);
  max-width: 110px;
  white-space: normal;
}
.monster-jam-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #ffaa55;
  text-align: center;
  line-height: 1.15;
  text-shadow: 0 1px 3px #000, 0 0 8px rgba(255,100,0,0.5);
  max-width: 120px;
  white-space: normal;
}

/* ===== DAVIN'S DAILY RECAP BUTTON (left of JULIAN'S SCOREBOARD) ===== */
.davin-recap-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  cursor: pointer;
  z-index: 5;
  justify-self: end; /* sit to the right of city, left of banner */
  padding: 0.3rem;
  transition: transform 0.2s ease, filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.davin-recap-btn.hidden {
  display: none !important;
}
.davin-recap-btn:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 12px rgba(0, 150, 255, 0.7));
}
.davin-recap-btn:active {
  transform: scale(0.96);
}
.davin-d {
  width: 41px;              /* same size as previous D logo */
  height: 41px;
  border-radius: 50%;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  line-height: 1;
}
.davin-d-img {
  width: 41px;
  height: 41px;
  object-fit: contain;
  display: block;
  border-radius: 50%;
  box-shadow:
    0 0 0 2px #001a33,
    0 0 12px rgba(30, 144, 255, 0.65);
}
.davin-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;       /* slightly smaller */
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #80c0ff;
  text-align: center;
  line-height: 1.15;
  text-shadow: 0 1px 3px #000, 0 0 10px rgba(30,144,255,0.5);
  max-width: 150px;
  white-space: normal;
}

/* ===== DAVIN RECAP VIDEO PANEL ===== */
.davin-recap-panel {
  width: 100%;
  max-width: 960px;
  margin: 0.6rem auto 1rem;
  background: linear-gradient(160deg, #001a33 0%, #00264d 40%, #001020 100%);
  border: 3px solid #1e90ff;
  border-radius: 16px;
  box-shadow:
    0 0 0 2px #001a33,
    0 0 30px rgba(30, 144, 255, 0.45),
    0 12px 40px rgba(0,0,0,0.55);
  overflow: hidden;
  animation: davinPanelIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 2200;
}
.davin-recap-panel.hidden {
  display: none !important;
}
@keyframes davinPanelIn {
  0% { opacity: 0; transform: translateY(-20px) scale(0.96); }
  100% { opacity: 1; transform: none; }
}
.davin-recap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: linear-gradient(90deg, #003d7a, #0066cc, #003d7a);
  border-bottom: 2px solid #1e90ff;
}
.davin-recap-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-shadow: 0 1px 4px #000;
}
.davin-recap-d-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(30,144,255,0.6);
  display: block;
}
.davin-recap-close {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}
.davin-recap-close:hover {
  background: #c0392b;
  border-color: #ff6b6b;
  transform: scale(1.05);
}
.davin-recap-video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
}
.davin-recap-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.davin-recap-footer {
  padding: 0.55rem 1rem;
  text-align: center;
  font-size: 0.78rem;
  color: #80c0ff;
  background: rgba(0,0,0,0.35);
  letter-spacing: 0.3px;
}

/* ===== MONSTER JAM LEADERBOARD PANEL ===== */
.monster-jam-panel {
  width: 100%;
  max-width: 820px;
  margin: 1.5rem auto;
  background: linear-gradient(160deg, #1a0a00 0%, #331a00 40%, #0d0500 100%);
  border: 4px solid #ff6600;
  border-radius: 20px;
  box-shadow: 0 0 0 4px #111, 0 0 60px rgba(255, 100, 0, 0.6);
  overflow: hidden;
  position: fixed;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999; /* Forefront of everything */
  animation: davinPanelIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.monster-jam-panel.hidden {
  display: none !important;
}
.monster-jam-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: linear-gradient(90deg, #4a1a00, #cc5500, #4a1a00);
  border-bottom: 2px solid #ff6600;
}
.monster-jam-logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.monster-jam-logo-img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px #cc5500, 0 4px 12px rgba(0,0,0,0.5);
}
.monster-jam-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 1px 4px #000;
}
.monster-jam-close {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.monster-jam-close:hover {
  background: #c0392b;
  border-color: #ff6b6b;
  transform: scale(1.05);
}
.monster-jam-body {
  padding: 1.5rem 2rem;
  color: #ffd;
}
.monster-jam-note {
  font-size: 0.75rem;
  color: #ffaa55;
  margin-bottom: 0.8rem;
  text-align: center;
}
.monster-jam-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
}
.monster-jam-table th {
  background: rgba(255,100,0,0.3);
  color: #fff;
  padding: 0.5rem;
  text-align: left;
  border-bottom: 2px solid #ff6600;
}
.monster-jam-table td {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid rgba(255,150,50,0.25);
  color: #ffe0b0;
}
.monster-jam-table tr:nth-child(even) td {
  background: rgba(255,100,0,0.08);
}
.monster-jam-prize {
  margin-top: 1rem;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255,215,0,0.5);
}

/* ===== NL WEST STANDINGS PANEL ===== */
.standings-panel {
  width: 100%;
  max-width: 720px;
  margin: 0.6rem auto 1rem;
  background: linear-gradient(160deg, #001a33 0%, #002d5d 40%, #000a1a 100%);
  border: 3px solid #4da6ff;
  border-radius: 16px;
  box-shadow: 0 0 0 2px #001a33, 0 0 30px rgba(0, 100, 200, 0.45);
  overflow: hidden;
  position: relative;
  z-index: 2200;
  animation: davinPanelIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.standings-panel.hidden {
  display: none !important;
}
.standings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: linear-gradient(90deg, #002d5d, #4da6ff, #002d5d);
  border-bottom: 2px solid #4da6ff;
}
.standings-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 1px 4px #000;
}
.standings-close {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.standings-close:hover {
  background: #c0392b;
  border-color: #ff6b6b;
  transform: scale(1.05);
}
.standings-body {
  padding: 1rem;
  color: #e0f0ff;
}
.standings-note {
  font-size: 0.75rem;
  color: #a0d0ff;
  margin-bottom: 0.8rem;
  text-align: center;
}
.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
}
.standings-table th {
  background: rgba(77, 166, 255, 0.3);
  color: #fff;
  padding: 0.5rem;
  text-align: center;
  border-bottom: 2px solid #4da6ff;
}
.standings-table td {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid rgba(77, 166, 255, 0.25);
  color: #e0f0ff;
  text-align: center;
}
.standings-table tr:nth-child(even) td {
  background: rgba(77, 166, 255, 0.08);
}
.standings-footer {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #a0d0ff;
}

/* Responsive for Davin button + panel */
@media (max-width: 900px) {
  .davin-d {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
  .davin-label {
    font-size: 0.95rem;
    max-width: 120px;
  }
  .davin-recap-panel {
    margin: 0.5rem 0.75rem 1rem;
    max-width: none;
  }
  .davin-recap-title {
    font-size: 0.95rem;
  }
}
@media (max-width: 480px) {
  .davin-recap-header {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* ===== PC ONLY: double-size the three action buttons (Monster Jam / NL West / Davin) ===== */
@media (min-width: 901px) {
  .extra-buttons-bar {
    gap: 2rem 2.8rem;
    padding: 1rem 1.5rem 0.7rem;
  }

  /* Monster Jam – 2× */
  .monster-jam-icon {
    width: 96px;
    height: 96px;
    border-radius: 16px;
    border-width: 3px;
  }
  .monster-jam-fallback {
    font-size: 52px;
  }
  .monster-jam-label {
    font-size: 1.55rem;
    max-width: 200px;
    line-height: 1.2;
  }

  /* NL West Standings – 2× */
  .standings-icon {
    width: 96px;
    height: 96px;
    border-radius: 16px;
    border-width: 3px;
    font-size: 48px;
  }
  .standings-label {
    font-size: 1.55rem;
    max-width: 200px;
    line-height: 1.2;
  }

  /* Davin's Daily Dodger Replays – 2× */
  .davin-d {
    width: 82px;
    height: 82px;
  }
  .davin-d-img {
    width: 82px;
    height: 82px;
  }
  .davin-label {
    font-size: 1.55rem;
    max-width: 240px;
    line-height: 1.2;
  }
}

/* ===== QUIZ: freeze buttons while Roger is speaking ===== */
.quiz-choice-btn.roger-locked,
.quiz-option-btn.roger-locked,
.quiz-choice-btn:disabled.roger-locked,
.quiz-option-btn:disabled.roger-locked {
  opacity: 0.42;
  cursor: not-allowed !important;
  pointer-events: none;
  filter: grayscale(0.35);
  transform: none !important;
  box-shadow: none !important;
}
.quiz-choice-btn.roger-locked:hover,
.quiz-option-btn.roger-locked:hover {
  transform: none !important;
  border-color: inherit;
  background: inherit;
}


/* ===== QUIZ JULIAN FLASH (correct answer) ===== */
.quiz-julian-flash {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100000;
  pointer-events: none;
  animation: quizJulianPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.quiz-julian-flash.hidden {
  display: none !important;
}
.quiz-julian-flash-img {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(255, 215, 0, 0.85)) drop-shadow(0 6px 16px rgba(0,0,0,0.5));
  transform-origin: top right;
}
.quiz-julian-flash.leaving {
  animation: quizJulianOut 0.35s ease forwards;
}
@keyframes quizJulianPop {
  0%   { opacity: 0; transform: scale(0.4) rotate(-12deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes quizJulianOut {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.6) translateY(-20px); }
}
@media (max-width: 500px) {
  .quiz-julian-flash-img { width: 100px; }
  .quiz-julian-flash { top: 10px; right: 10px; }
}
