:root {
  --bg-deep: #020617;
  --bg-card: #0f172a;
  --bg-elevated: #1e293b;
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-highlight: rgba(245, 158, 11, 0.45);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --indigo-400: #818cf8;
  --indigo-500: #6366f1;
  --rose-500: #f43f5e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(245, 158, 11, 0.12), transparent 35%),
    radial-gradient(circle at 85% 15%, rgba(16, 185, 129, 0.10), transparent 35%),
    radial-gradient(circle at 50% 60%, rgba(99, 102, 241, 0.08), transparent 45%);
}

.font-display {
  font-family: 'Outfit', 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

.font-mono-tabular {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

/* Stadium Grid Backdrop */
.stadium-grid-bg {
  background-size: 48px 48px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Glass Cards */
.glass-panel {
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
}

.glass-panel-gold {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 20px 50px -15px rgba(245, 158, 11, 0.15);
}

/* Pulse Dot */
@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.9; }
  70% { transform: scale(2.1); opacity: 0; }
  100% { transform: scale(2.1); opacity: 0; }
}

.live-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: var(--emerald-400);
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background-color: var(--emerald-400);
  animation: pulse-ring 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

/* Authentic 11x11 PropDrop Squares Grid (1 corner + 10 col headers + 10 rows of [1 row header + 10 squares]) */
.propdrop-11x11-grid {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  grid-template-rows: repeat(11, minmax(0, 1fr));
  aspect-ratio: 1 / 1;
}

/* Vertical Rotated Home Team Label matching SquaresGrid.tsx */
.vertical-team-pill {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* Surface Switcher Tabs */
.surface-tab {
  transition: all 0.2s ease;
}

.surface-tab.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #020617;
  font-weight: 800;
  box-shadow: 0 8px 20px -4px rgba(245, 158, 11, 0.45);
}

/* Winner Celebration Banner Animation */
@keyframes trophy-pop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.winner-overlay-anim {
  animation: trophy-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom subtle scrollbars inside demo containers */
.demo-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.demo-scroll::-webkit-scrollbar-track {
  background: rgba(2, 6, 23, 0.5);
}
.demo-scroll::-webkit-scrollbar-thumb {
  background: rgba(71, 85, 105, 0.6);
  border-radius: 9999px;
}
