:root {
  --bg-deep: #050811;
  --bg-panel: #0b1120;
  --bg-card: #111a2e;
  --bg-card-hover: #17233d;
  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-glow: rgba(0, 242, 254, 0.45);
  --neon-cyan: #00f2fe;
  --neon-blue: #3b82f6;
  --neon-lime: #ccff00;
  --neon-green: #10b981;
  --neon-red: #ff3366;
  --neon-amber: #f59e0b;
  --neon-purple: #a855f7;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

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

body {
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 242, 254, 0.06) 0%, transparent 35%),
    radial-gradient(circle at 85% 85%, rgba(204, 255, 0, 0.05) 0%, transparent 35%);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================================================
   TOP GLOBAL NAVIGATION BAR
   ============================================================================ */
.top-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1.1rem;
  background: rgba(8, 13, 26, 0.94);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
}

.ball-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #eaff66, #b8e600 70%, #7ea300);
  box-shadow: 0 0 14px rgba(204, 255, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #050811;
  font-size: 0.75rem;
}

.brand-title {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-title span.pro-tag {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  color: #040914;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.8px;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.42rem 0.78rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-tab:hover {
  background: rgba(0, 242, 254, 0.1);
  color: var(--text-main);
  border-color: rgba(0, 242, 254, 0.35);
}

.nav-tab.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(59, 130, 246, 0.22));
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

.nav-status-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.76rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-weight: 700;
  font-family: var(--font-mono);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseAnim 1.4s infinite;
}

@keyframes pulseAnim {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

/* ============================================================================
   VIEW CONTAINERS
   ============================================================================ */
.view-section {
  display: none;
  padding: 0.85rem 1.1rem;
  max-width: 1920px;
  margin: 0 auto;
}

.view-section.active {
  display: block;
}

/* ============================================================================
   0. IMPACTFUL LANDING PAGE (/landing)
   ============================================================================ */
.landing-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 242, 254, 0.35);
  background: linear-gradient(135deg, rgba(5, 8, 17, 0.92) 0%, rgba(11, 17, 32, 0.78) 100%);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.75);
  margin-bottom: 1.5rem;
}

.landing-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(1.25) contrast(1.1);
  pointer-events: none;
}

.landing-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.75rem;
  padding: 2.5rem 2.2rem;
  align-items: center;
}

@media (max-width: 1100px) {
  .landing-hero-content {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(204, 255, 0, 0.14);
  border: 1px solid var(--neon-lime);
  color: var(--neon-lime);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.hero-headline {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.hero-headline span.highlight-cyan {
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-lime));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.02rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin-bottom: 1.4rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #ccff00, #88cc00);
  color: #050811;
  font-weight: 900;
  font-size: 0.98rem;
  padding: 0.85rem 1.45rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(204, 255, 0, 0.45);
  transition: transform 0.18s, box-shadow 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(204, 255, 0, 0.75);
}

.btn-hero-secondary {
  background: rgba(0, 242, 254, 0.14);
  border: 1px solid var(--neon-cyan);
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.82rem 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-hero-secondary:hover {
  background: rgba(0, 242, 254, 0.28);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.35);
}

.landing-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
  .landing-showcase-grid {
    grid-template-columns: 1fr;
  }
}

.showcase-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.showcase-card:hover {
  transform: translateY(-4px);
  border-color: var(--neon-cyan);
  box-shadow: 0 12px 32px rgba(0, 242, 254, 0.15);
}

.showcase-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-subtle);
}

.showcase-card-body {
  padding: 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ============================================================================
   PRE-MATCH LOBBY & PLAYER PHOTO / SIDES / RULES SETUP (/setup)
   ============================================================================ */
.setup-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.1rem;
  align-items: start;
}

@media (max-width: 1150px) {
  .setup-grid {
    grid-template-columns: 1fr;
  }
}

.team-setup-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.9rem;
}

.players-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

@media (max-width: 720px) {
  .players-two-col {
    grid-template-columns: 1fr;
  }
}

.player-setup-card {
  background: rgba(5, 8, 17, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.player-avatar-circle {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--neon-cyan);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.3);
  background: #060d1f;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.48rem 0.65rem;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
}

.form-input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  background: rgba(0, 242, 254, 0.08);
}

.court-side-selector-diagram {
  background: linear-gradient(90deg, rgba(0, 242, 254, 0.14), rgba(9, 52, 97, 0.65), rgba(255, 51, 102, 0.14));
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 0.9rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  margin: 0.75rem 0;
}

/* Webcam Photo Capture Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 14, 0.86);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 1rem;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  background: var(--bg-panel);
  border: 2px solid var(--neon-cyan);
  border-radius: 14px;
  padding: 1.2rem;
  max-width: 520px;
  width: 100%;
  text-align: center;
}

/* ============================================================================
   1. CENTRAL VAR WORKSTATION (LAPTOP VIEW)
   ============================================================================ */
.var-workstation-grid {
  display: grid;
  grid-template-columns: 1fr 410px;
  gap: 0.9rem;
  align-items: start;
}

@media (max-width: 1280px) {
  .var-workstation-grid {
    grid-template-columns: 1fr;
  }
}

.panel-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.85rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.panel-title {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.mini-scoreboard-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(90deg, rgba(0, 242, 254, 0.09), rgba(15, 23, 42, 0.9), rgba(255, 51, 102, 0.09));
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.55rem 0.95rem;
  margin-bottom: 0.8rem;
}

.mini-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.mini-team-name {
  font-weight: 800;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.mini-avatar-pair {
  display: inline-flex;
  align-items: center;
}

.mini-avatar-pair img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--neon-cyan);
  margin-right: -6px;
}

.serve-ball-icon {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--neon-lime);
  box-shadow: 0 0 8px var(--neon-lime);
}

.mini-score-boxes {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
}

.score-pill {
  padding: 0.22rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  font-weight: 700;
}

.score-pill.points-active {
  background: var(--neon-lime);
  color: #050811;
  font-weight: 900;
  font-size: 0.95rem;
  min-width: 44px;
  text-align: center;
}

/* 4-CAMERA QUAD GRID */
.multicam-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.multicam-container.single-focus .cam-viewport:not(.focused) {
  display: none;
}

.multicam-container.single-focus {
  grid-template-columns: 1fr;
}

.cam-viewport {
  position: relative;
  background: #03060c;
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cam-viewport:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.cam-viewport canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.cam-hud-top {
  position: absolute;
  top: 6px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 4;
}

.cam-badge {
  background: rgba(5, 8, 17, 0.82);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: #fff;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cam-source-tag {
  font-size: 0.65rem;
  padding: 0.14rem 0.42rem;
  border-radius: 4px;
  font-weight: 800;
  font-family: var(--font-mono);
}

.cam-source-tag.live-phone {
  background: rgba(16, 185, 129, 0.92);
  color: #03150e;
}

.cam-source-tag.ai-sim {
  background: rgba(0, 242, 254, 0.88);
  color: #041019;
}

.cam-hud-bottom {
  position: absolute;
  bottom: 6px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: #cbd5e1;
  background: rgba(5, 8, 17, 0.72);
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  z-index: 4;
}

/* HAWK-EYE 3D + LOUPE ROW */
.hawkeye-loupe-row {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 900px) {
  .multicam-container,
  .hawkeye-loupe-row {
    grid-template-columns: 1fr;
  }
}

.hawkeye-3d-box,
.loupe-zoom-box {
  position: relative;
  background: #040812;
  border: 1px solid rgba(204, 255, 0, 0.32);
  border-radius: 8px;
  overflow: hidden;
  height: 230px;
}

.hawkeye-3d-box canvas,
.loupe-zoom-box canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* DVR TIMELINE & PLAYBACK CONTROLS */
.dvr-controls-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
}

.auto-replay-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, rgba(204, 255, 0, 0.16), rgba(0, 242, 254, 0.14));
  border: 1px solid rgba(204, 255, 0, 0.45);
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  margin-bottom: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.timeline-slider-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.timeline-slider {
  flex: 1;
  accent-color: var(--neon-lime);
  height: 6px;
  cursor: pointer;
}

.dvr-buttons-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.btn-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--neon-cyan);
}

.btn.active {
  background: var(--neon-cyan);
  color: #050811;
  border-color: var(--neon-cyan);
}

.btn-lime {
  background: linear-gradient(135deg, #ccff00, #99cc00);
  color: #050811;
  border: none;
  font-weight: 800;
}

.btn-lime:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 12px rgba(204, 255, 0, 0.45);
}

.btn-green {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  font-weight: 800;
}

.btn-red {
  background: linear-gradient(135deg, #ff3366, #e11d48);
  color: #fff;
  border: none;
  font-weight: 800;
}

.btn-amber {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #050811;
  border: none;
  font-weight: 800;
}

.btn-purple {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #fff;
  border: none;
  font-weight: 800;
}

/* AI VERDICT CARD */
.ai-verdict-card {
  border-radius: 8px;
  padding: 0.85rem;
  margin-bottom: 0.8rem;
  border: 2px solid var(--neon-green);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.14), rgba(11, 17, 32, 0.95));
}

.ai-verdict-card.is-fault {
  border-color: var(--neon-red);
  background: linear-gradient(145deg, rgba(255, 51, 102, 0.16), rgba(11, 17, 32, 0.95));
}

.ai-verdict-card.is-let {
  border-color: var(--neon-amber);
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.16), rgba(11, 17, 32, 0.95));
}

.verdict-header-tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  margin-bottom: 0.35rem;
  color: var(--neon-lime);
}

.verdict-main-title {
  font-size: 1.08rem;
  font-weight: 900;
  margin-bottom: 0.25rem;
  letter-spacing: 0.3px;
}

.verdict-subtitle {
  font-size: 0.82rem;
  color: #e2e8f0;
  margin-bottom: 0.55rem;
}

.verdict-rule-box {
  background: rgba(0, 0, 0, 0.38);
  border-left: 3px solid var(--neon-cyan);
  padding: 0.45rem 0.6rem;
  font-size: 0.75rem;
  color: #cbd5e1;
  line-height: 1.38;
  border-radius: 0 4px 4px 0;
  margin-bottom: 0.65rem;
}

.telemetry-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  font-family: var(--font-mono);
}

.metric-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.38rem 0.5rem;
  text-align: center;
}

.metric-chip .lbl {
  font-size: 0.63rem;
  color: var(--text-muted);
  display: block;
}

.metric-chip .val {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--neon-cyan);
}

.decision-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.decision-btn-large {
  padding: 0.68rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 8px;
  justify-content: center;
  text-align: center;
}

.decision-btn-full {
  grid-column: 1 / -1;
}

.scenario-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  max-height: 295px;
  overflow-y: auto;
  padding-right: 4px;
}

.scenario-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.48rem 0.65rem;
  color: var(--text-main);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}

.scenario-btn:hover,
.scenario-btn.active {
  border-color: var(--neon-lime);
  background: rgba(204, 255, 0, 0.09);
}

.scenario-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  font-weight: 800;
}

.tag-in { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.tag-fault { background: rgba(255, 51, 102, 0.2); color: #fb7185; }
.tag-let { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }

/* ============================================================================
   2. SUCTION-CUP PHONE CAMERA & AI SELF-TRAINING WIZARD (/camera)
   ============================================================================ */
.phone-cam-wrapper {
  max-width: 1050px;
  margin: 0 auto;
}

.phone-slot-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .phone-slot-selector {
    grid-template-columns: repeat(2, 1fr);
  }
}

.slot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.6rem;
  cursor: pointer;
  transition: all 0.15s;
}

.slot-card.active {
  border-color: var(--neon-lime);
  background: rgba(204, 255, 0, 0.12);
  box-shadow: 0 0 14px rgba(204, 255, 0, 0.2);
}

.training-wizard-box {
  background: rgba(0, 242, 254, 0.07);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 10px;
  padding: 0.85rem;
  margin-bottom: 0.75rem;
}

.training-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 0.55rem;
}

@media (max-width: 720px) {
  .training-steps-grid {
    grid-template-columns: 1fr;
  }
}

.training-step-card {
  background: rgba(5, 8, 17, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font-size: 0.76rem;
}

.training-step-card.done {
  border-color: var(--neon-green);
  background: rgba(16, 185, 129, 0.12);
}

.phone-viewfinder-box {
  position: relative;
  background: #000;
  border: 2px solid var(--neon-cyan);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 0.75rem;
}

.phone-viewfinder-box video {
  display: none;
}

.phone-viewfinder-box canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================================================
   3. COURT SCOREBOARD & GIANT SCREEN (/court)
   ============================================================================ */
.court-screen-wrapper {
  max-width: 1600px;
  margin: 0 auto;
}

.stadium-board {
  background: linear-gradient(180deg, #091022 0%, #050811 100%);
  border: 2px solid rgba(0, 242, 254, 0.35);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
  position: relative;
  overflow: hidden;
}

.stadium-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.9rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.golden-point-banner {
  background: linear-gradient(90deg, #f59e0b, #fde047, #f59e0b);
  color: #050811;
  font-weight: 900;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 1px;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
  animation: pulseAnim 1.2s infinite;
}

.scoreboard-rows {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.score-row-giant {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 85px) 115px 150px;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
}

@media (max-width: 900px) {
  .score-row-giant {
    grid-template-columns: 1fr repeat(3, 48px) 64px 85px;
    padding: 0.65rem;
    gap: 0.35rem;
  }
}

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

.giant-player-photos {
  display: flex;
  align-items: center;
}

.giant-player-photos img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--neon-cyan);
  margin-right: -12px;
  background: #060b18;
}

.team-color-bar {
  width: 8px;
  height: 54px;
  border-radius: 4px;
}

.giant-team-name {
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.giant-set-cell {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  padding: 0.45rem 0;
  color: var(--text-muted);
}

.giant-set-cell.current-set {
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.giant-games-cell {
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.4);
  border-radius: 10px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 2.35rem;
  font-weight: 900;
  padding: 0.4rem 0;
  color: var(--neon-cyan);
}

.giant-points-cell {
  background: var(--neon-lime);
  color: #050811;
  border-radius: 10px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 2.65rem;
  font-weight: 900;
  padding: 0.35rem 0;
  box-shadow: 0 0 24px rgba(204, 255, 0, 0.35);
}

.court-live-decision-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.1rem;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .court-live-decision-grid {
    grid-template-columns: 1fr;
  }
}

.court-status-banner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 12px;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(11, 17, 32, 0.95));
  border: 2px solid var(--neon-green);
}

.court-status-banner.fault-banner {
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.22), rgba(11, 17, 32, 0.95));
  border-color: var(--neon-red);
}

.court-status-banner.review-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(11, 17, 32, 0.95));
  border-color: var(--neon-amber);
}

.court-call-badge {
  font-size: 2.05rem;
  font-weight: 900;
  letter-spacing: 1px;
  margin: 0.35rem 0;
}

.court-challenge-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* ============================================================================
   4. PUBLIC LIVE STREAM, NARRATOR FEED & SELF-SERVICE FAN VAR (/live)
   ============================================================================ */
.fan-portal-grid {
  display: grid;
  grid-template-columns: 1fr 410px;
  gap: 0.9rem;
}

@media (max-width: 1150px) {
  .fan-portal-grid {
    grid-template-columns: 1fr;
  }
}

.narrator-live-ticker {
  background: linear-gradient(90deg, rgba(204, 255, 0, 0.16), rgba(0, 242, 254, 0.15));
  border: 1px solid var(--neon-lime);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.narrator-mic-badge {
  background: var(--neon-lime);
  color: #050811;
  font-weight: 900;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.78rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.commentary-feed-box {
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
  padding-right: 4px;
}

.commentary-item {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--neon-cyan);
  border-radius: 0 6px 6px 0;
  padding: 0.5rem 0.65rem;
  font-size: 0.78rem;
}

.commentary-item.POINT { border-left-color: var(--neon-green); }
.commentary-item.FAULT { border-left-color: var(--neon-red); }
.commentary-item.CHALLENGE { border-left-color: var(--neon-amber); }

.vault-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.65rem;
  margin-bottom: 0.55rem;
  cursor: pointer;
  transition: all 0.15s;
}

.vault-card:hover,
.vault-card.active {
  border-color: var(--neon-cyan);
  background: var(--bg-card-hover);
}

/* ============================================================================
   5. QR CODES & LINKS HUB (/hub)
   ============================================================================ */
.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.9rem;
  margin-top: 0.8rem;
}

.qr-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.qr-card img {
  width: 165px;
  height: 165px;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
}

.url-box {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.4rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--neon-cyan);
  word-break: break-all;
}
