:root {
  --bg-dark: #0a0e17;
  --accent-cyan: #00f2fe;
  --accent-purple: #9d4edd;
  --accent-gold: #ffb703;
  --accent-pink: #ff007f;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background-color: var(--bg-dark);
  color: #fff;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 16:9 Stage */
#stage-container {
  width: 100vw;
  height: 56.25vw;
  max-height: 100vh;
  max-width: 177.78vh;
  position: relative;
  background: radial-gradient(circle at 50% 30%, #1e1b4b 0%, #0f172a 50%, #020617 100%);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.light-beam-left {
  position: absolute;
  top: -100px;
  left: 10%;
  width: 300px;
  height: 1200px;
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.15) 0%, transparent 80%);
  transform: rotate(25deg);
  pointer-events: none;
  filter: blur(40px);
  animation: pulseGlow 6s ease-in-out infinite alternate;
}

.light-beam-right {
  position: absolute;
  top: -100px;
  right: 10%;
  width: 300px;
  height: 1200px;
  background: linear-gradient(180deg, rgba(236, 72, 153, 0.15) 0%, transparent 80%);
  transform: rotate(-25deg);
  pointer-events: none;
  filter: blur(40px);
  animation: pulseGlow 6s ease-in-out infinite alternate-reverse;
}

@keyframes pulseGlow {
  0% { opacity: 0.4; }
  100% { opacity: 0.9; }
}

/* Broadcast Header */
.broadcast-header {
  height: 75px;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-badge {
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ff007f, #ffb703, #00f2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mode-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.stream-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pin-pill {
  background: linear-gradient(90deg, #ef4444, #f59e0b);
  padding: 6px 20px;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 2px;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.players-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.online-dot {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
}

.main-viewport {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px 50px;
  z-index: 5;
}

/* ========================================================
   1. PRE-EVENT BROADCAST COUNTDOWN SCREEN
   ======================================================== */
.pre-countdown-view {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.countdown-hero {
  flex: 1.2;
}

.countdown-subhead {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.digital-clock-display {
  font-size: 6.5rem;
  font-weight: 900;
  font-family: monospace;
  letter-spacing: 4px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 30px;
  border-radius: 24px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  display: inline-block;
  box-shadow: 0 0 50px rgba(0, 242, 254, 0.3), inset 0 2px 4px rgba(0,0,0,0.8);
  margin-bottom: 24px;
}

/* ========================================================
   2. 5-GAME PITCH CAROUSEL SCREEN
   ======================================================== */
.carousel-view {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.carousel-card-active {
  width: 820px;
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(24px);
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  padding: 36px 44px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  text-align: center;
  position: relative;
  animation: slideCard 0.25s ease-out;
}

@keyframes slideCard {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.carousel-badge {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--accent-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.carousel-icon {
  font-size: 4.5rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.carousel-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.carousel-tagline {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.carousel-desc {
  font-size: 1.25rem;
  color: #cbd5e1;
  line-height: 1.4;
  margin-bottom: 24px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.carousel-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.2s;
}

.carousel-dot.active {
  background: var(--accent-gold);
  width: 36px;
  border-radius: 999px;
  box-shadow: 0 0 10px var(--accent-gold);
}

/* ========================================================
   3. CROWD VOTE LIVE SCOREBOARD
   ======================================================== */
.crowd-vote-view {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.vote-board-title {
  font-size: 2.3rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, #38bdf8, #f43f5e, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vote-bars-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.vote-row {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 12px 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.vote-row-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.4), rgba(59, 130, 246, 0.5));
  z-index: 1;
  transition: width 0.6s ease-out;
  width: 0%;
}

.vote-row-meta {
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.vote-row-icon { font-size: 2rem; }
.vote-row-name { font-size: 1.4rem; font-weight: 800; color: #fff; }
.vote-row-pct {
  z-index: 2;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent-gold);
}

/* ========================================================
   4. LOBBY VIEW
   ======================================================== */
.lobby-view {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.lobby-hero { flex: 1.2; }
.lobby-hero h1 {
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lobby-hero p {
  font-size: 1.5rem;
  color: #cbd5e1;
  line-height: 1.4;
  margin-bottom: 24px;
}

.lobby-qr-card {
  flex: 0.8;
  background: rgba(30, 41, 59, 0.75);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
}

.qr-image {
  width: 220px;
  height: 220px;
  background: #fff;
  padding: 10px;
  border-radius: 20px;
  margin: 0 auto 14px auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.qr-image img { width: 100%; height: 100%; display: block; }
.join-instruction { font-size: 1.25rem; font-weight: 800; color: #f1f5f9; margin-bottom: 6px; }
.join-url-pill { font-size: 1.05rem; color: var(--accent-cyan); font-weight: 700; word-break: break-all; }

/* ========================================================
   5. QUESTION & PRICING STAGE
   ======================================================== */
.question-view {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.question-card {
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  padding: 22px 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.question-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.question-badge {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timer-pill {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  background: #f43f5e;
  padding: 3px 18px;
  border-radius: 999px;
  min-width: 80px;
  text-align: center;
}

.item-showcase {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 14px;
  padding: 8px 16px;
  margin-bottom: 8px;
}

.question-text {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}

/* 4 Broadcast Answer Pods with Giant 3D Beveled Shapes */
.answers-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  margin-top: 14px;
  flex: 1;
  min-height: 0;
}

.answer-pod {
  border-radius: 24px;
  padding: 14px 28px 14px 18px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  border-top: 2px solid rgba(255, 255, 255, 0.35);
  transition: all 0.25s;
  min-height: 175px;
}

/* Giant 3D Shape Icon nearly filling the pad */
.pod-shape-icon {
  width: 140px;
  height: 140px;
  min-width: 140px;
  margin-right: 22px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.pod-shape-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.answer-pod .text {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.25;
  flex: 1;
  z-index: 3;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
}

.answer-pod .vote-stat {
  font-size: 2.4rem;
  font-weight: 900;
  color: #ffffff;
  z-index: 3;
  margin-left: 16px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
}

.pod-0 { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.pod-1 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.pod-2 { background: linear-gradient(135deg, #f59e0b, #b45309); }
.pod-3 { background: linear-gradient(135deg, #10b981, #047857); }

.answer-pod.revealed-correct {
  transform: scale(1.02);
  box-shadow: 0 0 45px #10b981, 0 16px 30px rgba(0, 0, 0, 0.5);
  border: 3px solid #6ee7b7;
}

.answer-pod.revealed-correct .pod-shape-icon {
  transform: scale(1.08);
}

.answer-pod.revealed-wrong {
  opacity: 0.35;
  filter: grayscale(60%);
}

.vote-fill-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.22);
  z-index: 1;
  transition: width 0.7s ease-out;
  width: 0%;
}

.vote-stat {
  font-size: 1.35rem;
  font-weight: 900;
  z-index: 2;
  margin-left: 10px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: 10px;
  display: none;
}

.witty-banner {
  margin-top: 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ========================================================
   3 CLINICAL DOORS (LET'S MAKE A DIAGNOSIS - SIDE BY SIDE)
   ======================================================== */
.doors-stage-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  flex: 1;
  margin-top: 8px;
  perspective: 1600px;
}

.door-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.door-header-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 6px 16px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.door-num-badge {
  font-size: 1rem;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: 1px;
}

.door-vote-pct {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fbbf24;
}

.door-perspective-box {
  position: relative;
  width: 320px;
  height: 420px;
  perspective: 1200px;
}

/* What is hidden inside the chamber */
.door-chamber {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, #1e293b 0%, #090e17 100%);
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.85);
  z-index: 1;
  overflow: hidden;
  transition: all 0.5s ease;
}

.door-chamber.jackpot {
  border-color: #facc15;
  box-shadow: inset 0 0 60px rgba(250, 204, 21, 0.45), 0 0 40px rgba(250, 204, 21, 0.4);
}

.door-chamber.zonk {
  border-color: #ef4444;
  box-shadow: inset 0 0 60px rgba(239, 68, 68, 0.45), 0 0 30px rgba(239, 68, 68, 0.3);
}

.door-chamber.deal {
  border-color: #38bdf8;
  box-shadow: inset 0 0 60px rgba(56, 189, 248, 0.45), 0 0 30px rgba(56, 189, 248, 0.3);
}

.chamber-icon {
  font-size: 5rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
  animation: floatPrize 2.5s ease-in-out infinite alternate;
}

@keyframes floatPrize {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.chamber-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 6px;
  line-height: 1.2;
}

.chamber-points {
  font-size: 1.7rem;
  font-weight: 900;
  color: #10b981;
  letter-spacing: 1px;
}

.door-chamber.zonk .chamber-points {
  color: #f87171;
}

.chamber-flare-sparkles {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 2.2rem;
  opacity: 0.85;
  animation: pulseSparkle 1.2s infinite;
}

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

/* 3D Swinging Door Leaf */
.door-leaf {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 4px solid #38bdf8;
  border-radius: 20px;
  transform-origin: left center;
  transition: transform 1.25s cubic-bezier(0.2, 0.85, 0.25, 1), box-shadow 1.25s ease;
  backface-visibility: hidden;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px 18px 20px 18px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), inset 0 2px 4px rgba(255, 255, 255, 0.15);
}

.door-leaf.opened {
  transform: perspective(1200px) rotateY(-112deg);
  box-shadow: -15px 20px 35px rgba(0, 0, 0, 0.5);
  border-color: #64748b;
}

.door-window {
  width: 140px;
  height: 110px;
  background: rgba(56, 189, 248, 0.12);
  border: 3px solid #64748b;
  border-radius: 14px;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 0 20px rgba(56, 189, 248, 0.25);
}

.window-cross {
  position: absolute;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.window-num {
  font-size: 3.2rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.8);
  font-family: monospace;
}

.door-hospital-sign {
  background: #090e17;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 90%;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.sign-icon { font-size: 1.3rem; }

.sign-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.door-brass-handle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 52px;
  background: linear-gradient(90deg, #fef08a, #d97706);
  border-radius: 7px;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.6);
  border: 1px solid #ca8a04;
}

.door-kickplate {
  width: 92%;
  height: 36px;
  background: linear-gradient(180deg, #475569 0%, #1e293b 100%);
  border-top: 1px solid #94a3b8;
  border-radius: 6px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.witty-banner .text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f8fafc;
}

/* ========================================================
   6. WHEEL OF CHAOS 70% BROADCAST MODAL OVERLAY
   Covers ~70% of screen over any stage with dramatic lighting
   ======================================================== */
.wheel-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(16px);
  z-index: 95;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wheel-modal-box {
  width: 74vw;
  max-width: 1250px;
  height: 76%;
  background: radial-gradient(circle at 50% 20%, #1e1b4b 0%, #0f172a 60%, #020617 100%);
  border: 3px solid rgba(0, 242, 254, 0.4);
  border-radius: 36px;
  padding: 30px 44px;
  box-shadow: 
    0 0 80px rgba(0, 242, 254, 0.35),
    0 30px 60px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  position: relative;
  animation: popInModal 0.3s ease-out;
}

@keyframes popInModal {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close-tag {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
}

.wheel-canvas-box {
  position: relative;
  width: 440px;
  height: 440px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#wheelCanvas {
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(0, 242, 254, 0.4), 0 20px 40px rgba(0,0,0,0.8);
}

.wheel-pointer {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 36px solid #ff007f;
  z-index: 20;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8));
}

.wheel-info-card {
  flex: 1;
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  padding: 32px;
  text-align: center;
}

.wheel-result-title {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--accent-gold);
  margin-bottom: 10px;
}

.wheel-result-desc {
  font-size: 1.35rem;
  color: #cbd5e1;
  line-height: 1.4;
}

/* ========================================================
   7. LEADERBOARD VIEW
   ======================================================== */
#viewLeaderboard.leaderboard-view {
  width: 100%;
  height: 100%;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center;
}

#viewLeaderboard .leaderboard-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 24px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  width: 100%;
}

#viewLeaderboard .leaderboard-card-container {
  width: 100%;
  max-width: 960px;
  background: rgba(22, 30, 46, 0.9);
  backdrop-filter: blur(24px);
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  padding: 24px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  margin: 0 auto !important;
  align-self: center !important;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.leaderboard-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.leaderboard-grid.multi-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 12px 22px;
  min-height: 58px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.lb-rank { font-size: 1.3rem; font-weight: 900; width: 44px; color: #94a3b8; }
.lb-rank-1 { color: #facc15; font-size: 1.6rem; }
.lb-rank-2 { color: #e2e8f0; font-size: 1.5rem; }
.lb-rank-3 { color: #d97706; font-size: 1.4rem; }
.lb-emoji { font-size: 1.65rem; margin-right: 12px; }
.lb-name { flex: 1; font-size: 1.35rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #f8fafc; }
.lb-score { font-size: 1.45rem; font-weight: 900; color: var(--accent-cyan); }

/* ========================================================
   8. PODIUM VIEW
   ======================================================== */
.podium-view {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.podium-title {
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #facc15, #f59e0b, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}

.podium-stages {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 28px;
  height: 360px;
  width: 780px;
}

.podium-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.podium-player-card { text-align: center; margin-bottom: 12px; }
.podium-avatar { font-size: 3.2rem; }
.podium-name { font-size: 1.35rem; font-weight: 900; color: #fff; margin-top: 4px; }
.podium-score { font-size: 1.15rem; font-weight: 800; color: var(--accent-gold); }

.podium-block {
  width: 100%;
  border-radius: 18px 18px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3.5rem;
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
  border-top: 3px solid rgba(255, 255, 255, 0.4);
}

.podium-1 { height: 240px; background: linear-gradient(180deg, #facc15, #ca8a04); color: #713f12; }
.podium-2 { height: 180px; background: linear-gradient(180deg, #e2e8f0, #94a3b8); color: #334155; }
.podium-3 { height: 130px; background: linear-gradient(180deg, #f97316, #c2410c); color: #431407; }

#reactionCanvas, #confettiCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

.hidden { display: none !important; }
