/* ClawRacers — AAA Dark Theme with Neon Cyan Accents */
/* Rocket League energy × F1 precision × Botgames.gg aesthetic */

:root {
  --bg-primary: #060a14;
  --bg-secondary: #0d1220;
  --bg-card: #141b2d;
  --bg-card-hover: #1a2340;
  --accent: #00d4ff;
  --accent-dim: #0090b0;
  --accent-glow: rgba(0, 212, 255, 0.35);
  --accent-glow-strong: rgba(0, 212, 255, 0.6);
  --gold: #ffd700;
  --gold-glow: rgba(255, 215, 0, 0.4);
  --silver: #c0c0c0;
  --bronze: #cd7f32;
  --text-primary: #edf0f7;
  --text-secondary: #8892a8;
  --text-muted: #556077;
  --danger: #ff3366;
  --success: #00e676;
  --warning: #ffab00;
  --border: #1e2740;
  --border-bright: #2a3555;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-xs: 5px;
  --transition: 0.3s ease;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Menlo', monospace;
}

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

/* Smooth scrolling everywhere */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh; /* Use dynamic viewport height for mobile browsers */
  overflow-x: hidden;
  /* Safe area padding for notched phones */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* ============ ANIMATED BACKGROUND ============ */
#bg-canvas {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Track lines moving across background */
.bg-track-line {
  position: absolute;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(90deg,
    transparent 0px, transparent 20px,
    rgba(0,212,255,0.06) 20px, rgba(0,212,255,0.06) 40px
  );
  animation: trackScroll 4s linear infinite;
}

@keyframes trackScroll {
  from { transform: translateX(-80px); }
  to { transform: translateX(0px); }
}

/* Ambient glow orbs */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.08;
  animation: orbFloat 12s ease-in-out infinite alternate;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.15); }
  100% { transform: translate(-20px, 20px) scale(0.9); }
}

/* ============ CONNECTION STATUS ============ */
#connection-status {
  position: fixed;
  top: 14px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 1000;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danger);
  transition: background var(--transition);
  box-shadow: 0 0 6px rgba(255,51,102,0.5);
}

.status-dot.connected {
  background: var(--success);
  box-shadow: 0 0 8px rgba(0,230,118,0.6);
  animation: pulseGreen 2s ease-in-out infinite;
}

@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 4px rgba(0,230,118,0.4); }
  50% { box-shadow: 0 0 14px rgba(0,230,118,0.8); }
}

/* ============ HEADER ============ */
#header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #0d1220 0%, #111b32 50%, #0d1220 100%);
  background-size: 200% 200%;
  animation: headerShimmer 8s ease-in-out infinite;
  z-index: 10;
}

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

#header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
  opacity: 0.5;
}

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

.logo-icon {
  font-size: 34px;
  filter: drop-shadow(0 0 12px rgba(255,100,50,0.4));
  animation: logoFloat 3s ease-in-out infinite;
}

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

.logo h1 {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--text-primary);
  text-shadow: 0 0 20px rgba(0,212,255,0.15);
}

.accent {
  color: var(--accent);
  text-shadow: 0 0 18px var(--accent-glow);
}

/* Creator tag in header */
.creator-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(29,161,242,0.08);
  border: 1px solid rgba(29,161,242,0.15);
  transition: all 0.2s;
  white-space: nowrap;
}

.creator-tag:hover {
  background: rgba(29,161,242,0.15);
  border-color: rgba(29,161,242,0.35);
}

.creator-name {
  color: #1DA1F2;
  font-weight: 700;
}

/* Prize pool badge */
.prize-pool-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(0,230,118,0.08));
  border: 1px solid rgba(0,212,255,0.2);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.prize-pool-badge:hover {
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(0,230,118,0.15));
  border-color: rgba(0,212,255,0.4);
  box-shadow: 0 0 16px var(--accent-glow);
}

.prize-sol-icon {
  font-size: 16px;
  color: var(--accent);
  font-weight: 900;
}

#prize-pool-amount {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

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

.header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phase-badge {
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, var(--accent), #0090ff);
  color: var(--bg-primary);
  text-transform: uppercase;
  box-shadow: 0 0 16px var(--accent-glow);
}

/* ============ MAIN LAYOUT ============ */
#main-layout {
  display: flex;
  height: calc(100vh - 62px);
  height: calc(100dvh - 62px); /* Dynamic viewport height for mobile */
  overflow: hidden;
  position: relative;
  z-index: 5;
}

#screen-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* ============ SCREENS ============ */
.screen {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  overflow-y: auto;
  transform: scale(0.98);
}

.screen.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s ease;
}

.screen-content {
  width: 100%;
  max-width: 900px;
  padding: 32px 24px;
  text-align: center;
}

.screen-content h2 {
  font-size: 22px;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ============ LOBBY SCREEN ============ */
#lobby-screen .screen-content {
  max-width: 1000px;
}

.lobby-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}

/* Race Card - the main attraction */
.race-card {
  background: linear-gradient(160deg, #141b2d 0%, #0f1626 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border-bright);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.race-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-glow), transparent 40%, transparent 60%, var(--accent-glow));
  z-index: 0;
  opacity: 0;
  animation: cardBorderPulse 4s ease-in-out infinite;
}

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

.race-card > * { position: relative; z-index: 1; }

.race-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.next-race-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 12px;
  border: 1px solid var(--accent-dim);
  border-radius: 4px;
  animation: neonBorderPulse 2s ease-in-out infinite;
}

@keyframes neonBorderPulse {
  0%, 100% { border-color: var(--accent-dim); box-shadow: none; }
  50% { border-color: var(--accent); box-shadow: 0 0 12px var(--accent-glow), inset 0 0 8px var(--accent-glow); }
}

.race-number {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.pool-counter {
  margin: 16px 0;
}

.pool-counter-number {
  font-size: 80px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, var(--accent), #0088cc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px var(--accent-glow));
}

.pool-counter-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
  font-weight: 500;
}

.pool-counter-bar {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
}

.pool-slot {
  width: 32px;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  transition: all 0.4s ease;
}

.pool-slot.filled {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.countdown-display {
  margin-top: 20px;
  padding: 14px;
  background: rgba(0,212,255,0.05);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,212,255,0.15);
}

.countdown-display p {
  color: var(--text-secondary);
  font-size: 12px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.timer-big {
  font-size: 44px;
  font-weight: 900;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  text-shadow: 0 0 20px var(--accent-glow);
}

.hidden { display: none !important; }

/* Pool list / racer chips */
.racer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.racer-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  animation: chipIn 0.4s ease both;
}

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

.racer-chip .color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
}

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

.hint code {
  background: var(--bg-card);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  color: var(--accent);
  font-family: var(--font-mono);
}

/* Track Preview */
.track-preview {
  background: linear-gradient(160deg, #141b2d 0%, #0f1626 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border-bright);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.track-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.track-preview-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.track-length-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  padding: 3px 10px;
  background: rgba(0,212,255,0.08);
  border-radius: 10px;
  border: 1px solid rgba(0,212,255,0.2);
}

/* Mini drag strip animation */
.mini-track {
  position: relative;
  height: 100px;
  background: #1a1e2e;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.track-surface {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(90deg,
    transparent 0px, transparent 30px,
    rgba(255,255,255,0.03) 30px, rgba(255,255,255,0.03) 32px
  );
}

.track-lanes {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}

.track-lane-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg,
    rgba(255,255,255,0.15) 0px, rgba(255,255,255,0.15) 12px,
    transparent 12px, transparent 24px
  );
  animation: dashMove 1.5s linear infinite;
}

@keyframes dashMove {
  from { transform: translateX(0); }
  to { transform: translateX(24px); }
}

.track-start-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 40px;
  width: 3px;
  background: var(--success);
  opacity: 0.5;
}

.track-finish-line {
  position: absolute;
  top: 0; bottom: 0;
  right: 40px;
  width: 12px;
  background: repeating-conic-gradient(#fff 0% 25%, #111 0% 50%) 50%/8px 8px;
  opacity: 0.4;
}

/* Idle lobsters on track preview */
.idle-lobster {
  position: absolute;
  animation: idleBob 2s ease-in-out infinite;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  transition: left 0.6s ease;
}

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

.idle-lobster:nth-child(odd) {
  animation-delay: -0.5s;
}

/* Recent results section */
.recent-results {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px 20px;
}

.recent-results-header {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-align: left;
}

.recent-results-empty {
  color: var(--text-muted);
  font-size: 13px;
  padding: 8px 0;
}

.recent-result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.recent-result-row:last-child { border-bottom: none; }

.recent-pos {
  font-weight: 800;
  width: 20px;
  color: var(--accent);
}

.recent-result-row:nth-child(1) .recent-pos { color: var(--gold); }
.recent-result-row:nth-child(2) .recent-pos { color: var(--silver); }
.recent-result-row:nth-child(3) .recent-pos { color: var(--bronze); }

.recent-name { flex: 1; font-weight: 600; }

.recent-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.recent-points {
  font-weight: 700;
  color: var(--accent);
  min-width: 30px;
  text-align: right;
}

/* ============ WEATHER PANEL (PLANNING) ============ */
#planning-screen .screen-content {
  max-width: 950px;
}

.planning-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}

.weather-panel {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.weather-big-icon {
  font-size: 64px;
  display: block;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

/* Sun animation */
.weather-big-icon.sunny::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 80px; height: 80px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,200,0,0.15) 0%, transparent 70%);
  animation: sunPulse 3s ease-in-out infinite;
}

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

/* Rain animation */
.rain-drops {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.rain-drop {
  position: absolute;
  width: 2px;
  background: linear-gradient(transparent, rgba(0,180,255,0.4));
  animation: rainFall linear infinite;
}

/* #17 LOW: Use transform for GPU-accelerated rain animation */
@keyframes rainFall {
  from { transform: translateY(-20px); opacity: 0; }
  10% { opacity: 1; }
  to { transform: translateY(200px); opacity: 0; }
}

.weather-label {
  font-size: 18px;
  font-weight: 800;
  display: block;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.rain-gauge { display: flex; flex-direction: column; gap: 5px; }

.rain-gauge label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.gauge-bar {
  width: 100%;
  height: 10px;
  background: var(--bg-primary);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.gauge-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #00d4ff, #0077ff);
  transition: width 0.5s ease;
  box-shadow: 0 0 8px rgba(0,120,255,0.4);
}

#rain-prob-text {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-mono);
}

/* Circular Timer */
.planning-timer-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.timer-ring-container {
  position: relative;
  width: 110px;
  height: 110px;
}

.timer-ring-svg {
  width: 110px;
  height: 110px;
  transform: rotate(-90deg);
}

.timer-ring-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 6;
}

.timer-ring-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.3s ease;
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

.timer-ring-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 32px;
  font-weight: 900;
  color: var(--accent);
  font-family: var(--font-mono);
}

.timer-ring-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

/* Submitted panel */
.submitted-panel {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  text-align: center;
}

.submitted-count-big {
  font-size: 36px;
  font-weight: 900;
  color: var(--success);
  font-family: var(--font-mono);
}

.submitted-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-top: 4px;
}

/* Racer grid */
.racer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.racer-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition);
}

.racer-card.submitted {
  border-color: var(--success);
  box-shadow: 0 0 10px rgba(0,230,118,0.15);
}

.racer-card .lobster-icon { display: inline-block; line-height: 0; }
.racer-card .name { font-size: 13px; font-weight: 600; }

.racer-card .status-indicator {
  margin-left: auto;
  font-size: 14px;
}

/* ============ PRE-RACE ============ */
.prerace-content { position: relative; }

.setups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.setup-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 14px;
  text-align: left;
  transition: all 0.3s ease;
}

.setup-card .name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.setup-card .setup-detail {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.setup-card .setup-detail span {
  color: var(--text-primary);
  font-weight: 600;
}

/* Countdown overlay — dramatic */
.countdown-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 10, 20, 0.75);
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}

.countdown-overlay.active {
  opacity: 1;
  visibility: visible;
}

.countdown-center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.countdown-number {
  font-size: 220px;
  font-weight: 900;
  color: var(--accent);
  text-shadow: 0 0 80px var(--accent-glow-strong), 0 0 160px var(--accent-glow);
  animation: countPulse 1s ease infinite;
  transition: all 0.3s ease;
  z-index: 2;
}

.countdown-number.go {
  color: var(--success) !important;
  text-shadow: 0 0 80px rgba(0,230,118,0.6), 0 0 160px rgba(0,230,118,0.3) !important;
  font-size: 200px !important;
}

@keyframes countPulse {
  0% { transform: scale(0.85); opacity: 0.5; }
  40% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 0.85; }
}

/* Shockwave rings */
.shockwave {
  position: absolute;
  width: 100px; height: 100px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  animation: shockExpand 1s ease-out forwards;
  opacity: 0;
  z-index: 1;
}

@keyframes shockExpand {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(6); opacity: 0; }
}

.shockwave:nth-child(2) { animation-delay: 0.15s; }
.shockwave:nth-child(3) { animation-delay: 0.3s; }

/* ============ RACE TRACK ============ */
.race-content {
  max-width: 100%;
  padding: 16px 20px;
}

.race-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.race-info-bar { display: flex; gap: 8px; }

.badge {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.surface-badge {
  color: var(--accent);
  border-color: var(--accent-dim);
}

.race-timer {
  font-size: 30px;
  font-weight: 900;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  text-shadow: 0 0 12px var(--accent-glow);
}

.race-track {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 14px;
  border: 1px solid var(--border);
  position: relative;
}

.race-lane {
  display: flex;
  align-items: center;
  height: 52px;
  position: relative;
  background: linear-gradient(90deg, rgba(20,27,45,0.8), rgba(20,27,45,1));
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* Lane dashed center line */
.race-lane::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg,
    rgba(255,255,255,0.08) 0px, rgba(255,255,255,0.08) 10px,
    transparent 10px, transparent 22px
  );
  z-index: 0;
}

.lane-name {
  position: absolute;
  left: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  z-index: 2;
  white-space: nowrap;
  text-shadow: 0 0 4px rgba(0,0,0,0.6);
}

.lane-time {
  position: absolute;
  right: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  z-index: 2;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

.lobster-racer {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
  line-height: 0;
  animation: raceBob 0.6s ease-in-out infinite;
}

@keyframes raceBob {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 2px)); }
}

.lobster-racer.crashed {
  animation: spin 0.5s linear infinite !important;
}

.lobster-racer.winner {
  filter: drop-shadow(0 0 20px var(--gold)) drop-shadow(0 0 40px var(--gold-glow));
}

.lobster-racer.winner::after {
  content: '👑';
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
}

.finish-line {
  position: absolute;
  right: 40px;
  top: 0; bottom: 0;
  width: 12px;
  background: repeating-conic-gradient(#fff 0% 25%, #111 0% 50%) 50%/6px 6px;
  z-index: 1;
  opacity: 0.35;
}

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

/* ============ PODIUM ============ */
.podium-content { max-width: 750px; }

.podium-blocks {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  margin: 28px 0;
  position: relative;
}

.podium-spot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: slideUp 0.6s ease both;
}

.podium-spot.first { animation-delay: 0.3s; }
.podium-spot.second { animation-delay: 0.15s; }
.podium-spot.third { animation-delay: 0.45s; }

.podium-racer {
  text-align: center;
  min-height: 90px;
}

.podium-racer .podium-lobster { line-height: 0; }

.podium-racer .podium-name {
  font-size: 14px;
  font-weight: 800;
  margin-top: 6px;
  display: block;
}

.podium-racer .podium-time {
  font-size: 11px;
  color: var(--text-secondary);
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
}

.podium-racer .podium-setup {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
  margin-top: 1px;
}

.podium-block {
  width: 110px;
  border-radius: 10px 10px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: var(--bg-primary);
}

.podium-block.gold {
  height: 130px;
  background: linear-gradient(180deg, #ffd700, #b8860b);
  box-shadow: 0 0 40px var(--gold-glow), 0 0 80px rgba(255,215,0,0.15);
}

.podium-block.silver {
  height: 95px;
  background: linear-gradient(180deg, #e0e0e0, #8e8e8e);
  box-shadow: 0 0 20px rgba(192,192,192,0.15);
}

.podium-block.bronze {
  height: 75px;
  background: linear-gradient(180deg, #cd7f32, #8b4513);
  box-shadow: 0 0 20px rgba(205,127,50,0.15);
}

.podium-pos { font-size: 34px; }

.first .podium-racer .podium-lobster {
  filter: drop-shadow(0 0 16px var(--gold-glow));
  animation: winnerGlow 2s ease-in-out infinite;
}

@keyframes winnerGlow {
  0%, 100% { filter: drop-shadow(0 0 12px var(--gold-glow)); }
  50% { filter: drop-shadow(0 0 24px rgba(255,215,0,0.6)); }
}

/* Confetti */
.confetti-container {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}

/* #17 LOW: Confetti uses transform (already GPU-accelerated) */
.confetti {
  position: absolute;
  width: 8px;
  height: 14px;
  transform: translateY(-20px);
  animation: confettiFall linear forwards;
  opacity: 0.9;
  will-change: transform, opacity;
}

@keyframes confettiFall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* Full results table */
.full-results { margin-top: 20px; }

.result-row {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  border: 1px solid var(--border);
  animation: slideUp 0.3s ease both;
}

.result-pos {
  width: 28px;
  font-weight: 900;
  color: var(--accent);
  font-size: 16px;
}

.result-row:nth-child(1) .result-pos { color: var(--gold); }
.result-row:nth-child(2) .result-pos { color: var(--silver); }
.result-row:nth-child(3) .result-pos { color: var(--bronze); }

.result-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 10px;
  box-shadow: 0 0 4px currentColor;
}

.result-name {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
}

.result-time {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

.result-points {
  width: 50px;
  text-align: right;
  font-weight: 800;
  color: var(--accent);
  font-size: 14px;
}

.result-traction {
  font-size: 11px;
  color: var(--danger);
  margin-left: 8px;
  font-weight: 600;
}

/* ============ LEADERBOARD SIDEBAR ============ */
#leaderboard-sidebar {
  width: 290px;
  background: linear-gradient(180deg, var(--bg-secondary), #0a0f1a);
  border-left: 1px solid var(--border);
  padding: 20px 16px;
  overflow-y: auto;
  flex-shrink: 0;
}

#leaderboard-sidebar h3 {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lb-row {
  display: flex;
  align-items: center;
  padding: 10px 10px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 13px;
  transition: all var(--transition);
  gap: 6px;
}

.lb-row:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
}

.lb-row.rank-1 {
  border-color: rgba(255,215,0,0.25);
  background: linear-gradient(135deg, rgba(255,215,0,0.05), var(--bg-card));
  box-shadow: 0 0 12px rgba(255,215,0,0.08);
}

.lb-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-weight: 900;
  font-size: 11px;
  flex-shrink: 0;
  background: var(--border);
  color: var(--text-secondary);
}

.lb-rank.gold {
  background: linear-gradient(135deg, #ffd700, #daa520);
  color: #1a1200;
  box-shadow: 0 0 8px rgba(255,215,0,0.3);
}

.lb-rank.silver {
  background: linear-gradient(135deg, #e0e0e0, #b0b0b0);
  color: #1a1a1a;
}

.lb-rank.bronze {
  background: linear-gradient(135deg, #cd7f32, #a0622a);
  color: #1a0e00;
}

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

.lb-name {
  font-weight: 700;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.lb-sub {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
  margin-top: 1px;
}

.lb-points {
  font-weight: 800;
  color: var(--accent);
  font-size: 14px;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.no-data {
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 20px 0;
}

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

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

/* ============ HELP BUTTON ============ */
.help-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--accent-dim);
  background: transparent;
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-btn:hover {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: scale(1.1);
}

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(6, 10, 20, 0.96);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
  padding: 20px;
  backdrop-filter: blur(8px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border-bright);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 40px var(--accent-glow);
  animation: modalIn 0.4s ease;
}

@keyframes modalIn {
  from { transform: translateY(-30px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--danger);
  color: white;
  transform: rotate(90deg);
}

.modal-body {
  padding: 36px 30px;
}

.modal-body h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--accent);
  text-align: center;
}

.help-section {
  margin-bottom: 28px;
}

.help-section h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-primary);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

.lead {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.flow-list, .strategy-list { list-style: none; padding: 0; }

.flow-list li, .strategy-list li {
  padding: 7px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.flow-list {
  counter-reset: step-counter;
}

.flow-list li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 34px;
}

.flow-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-primary);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.setup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 10px;
}

.setup-table thead { background: var(--bg-card); }

.setup-table th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 2px solid var(--border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.setup-table td {
  padding: 10px 12px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.setup-table tbody tr:hover { background: var(--bg-card); }

.setup-table code {
  background: var(--bg-primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--accent);
  font-family: var(--font-mono);
}

.scoring {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 2;
  text-align: center;
}

.scoring strong {
  color: var(--accent);
  font-weight: 800;
}

.api-base {
  font-size: 13px;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.api-base code {
  background: var(--bg-card);
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--accent);
  font-size: 12px;
  font-family: var(--font-mono);
}

.api-endpoints {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.endpoint {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 13px;
}

.method {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  min-width: 42px;
  text-align: center;
}

.method.get { background: var(--success); color: var(--bg-primary); }
.method.post { background: var(--accent); color: var(--bg-primary); }

.endpoint code {
  color: var(--accent);
  font-size: 12px;
  font-family: var(--font-mono);
}

.endpoint .desc {
  color: var(--text-muted);
  font-size: 11px;
  margin-left: auto;
}

.code-example { margin-bottom: 14px; }

.code-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.code-example pre {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  overflow-x: auto;
  margin: 0;
}

.code-example code {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
}

.help-footer {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

.help-footer p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .lobby-grid {
    grid-template-columns: 1fr;
  }

  .planning-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  #leaderboard-sidebar { display: none; }
  #main-layout { flex-direction: column; }

  .countdown-number { font-size: 140px !important; }
  .podium-block { width: 85px; }
  .setups-grid { grid-template-columns: 1fr; }
  .racer-grid { grid-template-columns: 1fr 1fr; }
  .pool-counter-number { font-size: 60px; }

  .modal-body { padding: 28px 18px; }
  .modal-body h2 { font-size: 22px; }
  .help-section h3 { font-size: 16px; }
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-bright);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dim);
}

.lane-setup {
  font-size: 11px;
  color: var(--text-tertiary, #6b7394);
  font-weight: 400;
  margin-left: 8px;
  opacity: 0.8;
}




/* ============ SPECTATOR BADGE ============ */
.spectator-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-secondary);
}
.spectator-icon { font-size: 14px; }
.spectator-num { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ============ MOBILE RESPONSIVE ============ */
@media (max-width: 600px) {
  /* Add padding for fixed footer so content isn't hidden */
  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }

  /* Header - make it stack better */
  #header {
    flex-wrap: wrap;
    padding: 10px 14px;
    gap: 8px;
  }
  
  .logo {
    flex: 1 1 100%;
    justify-content: center;
  }
  
  .logo-icon {
    font-size: 28px;
  }
  
  .logo h1 {
    font-size: 20px;
    letter-spacing: 2px;
  }
  
  .creator-tag { display: none; }
  .prize-pool-badge { padding: 4px 10px; }
  .prize-label { display: none; }
  #prize-pool-amount { font-size: 12px; }
  
  .header-info {
    flex: 1 1 100%;
    justify-content: center;
    gap: 12px;
  }
  
  /* Increase touch targets - minimum 44px */
  .help-btn {
    width: 44px !important;
    height: 44px !important;
    font-size: 16px !important;
  }
  
  #phase-badge {
    font-size: 11px;
    padding: 6px 14px;
    min-height: 32px;
    display: flex;
    align-items: center;
  }

  /* Layout */
  #main-layout {
    flex-direction: column;
    padding: 0;
    gap: 0;
    height: auto;
    min-height: calc(100dvh - 120px);
  }
  
  #screen-container {
    padding-bottom: 20px;
  }
  
  /* Leaderboard - make it a proper scrollable section */
  #leaderboard-sidebar {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    border-left: none;
    border-top: 1px solid var(--border);
    order: 2;
    max-height: 300px;
    overflow-y: auto;
    padding: 16px;
  }
  
  #leaderboard-sidebar h3 {
    font-size: 14px;
    margin-bottom: 12px;
    text-align: center;
  }

  /* Lobby */
  .lobby-grid { grid-template-columns: 1fr; gap: 12px; }
  .pool-counter-number { font-size: 56px; }
  .pool-counter-label { font-size: 14px; }
  
  /* Pool counter bar - make slots bigger and tappable */
  .pool-counter-bar { gap: 6px; }
  .pool-slot {
    width: 40px;
    height: 12px;
    border-radius: 6px;
  }
  
  /* Mini track - make it taller so lobsters are visible */
  .mini-track {
    min-height: 140px;
    height: 140px;
  }
  
  .idle-lobster svg {
    width: 32px;
    height: 32px;
  }

  /* Planning */
  .planning-top { grid-template-columns: 1fr; gap: 12px; }
  .weather-panel { padding: 16px; }
  .timer-ring-container svg { width: 100px; height: 100px; }
  .timer-ring-text { font-size: 32px; }
  .submitted-panel { padding: 16px; }
  .submitted-count-big { font-size: 40px; }
  .submitted-label { font-size: 12px; }
  .racer-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .racer-card { padding: 10px 8px; }
  .racer-card .name { font-size: 13px; }

  /* Pre-Race */
  .setups-grid { grid-template-columns: 1fr; gap: 8px; }
  .setup-card { padding: 12px; font-size: 13px; }
  .countdown-number { font-size: 120px !important; }

  /* Race - increase lane height and font sizes */
  .race-header { flex-wrap: wrap; gap: 8px; padding: 10px; }
  .race-timer { font-size: 24px; }
  .race-track { padding: 10px; gap: 3px; }
  .race-lane { height: 56px; } /* Increased from 44px */
  .lane-name { font-size: 12px; left: 8px; } /* Increased from 9px */
  .lane-setup { font-size: 10px; } /* Increased from 7px */
  .lane-time { font-size: 12px; right: 8px; } /* Increased from 9px */
  .lobster-racer svg { width: 36px; height: 36px; } /* Increased from 28px */
  .finish-line { right: 30px; width: 8px; }
  
  .badge {
    font-size: 13px;
    padding: 6px 16px;
  }

  /* Podium - wider blocks */
  .podium-blocks { gap: 10px; }
  .podium-block { width: 90px; } /* Increased from 70px */
  .podium-block.gold { height: 120px; }
  .podium-block.silver { height: 90px; }
  .podium-block.bronze { height: 70px; }
  .podium-racer { min-height: 80px; }
  .podium-lobster svg { width: 44px; height: 44px; }
  .podium-name { font-size: 13px; } /* Increased from 11px */
  .podium-time { font-size: 11px; } /* Increased from 9px */
  .podium-setup { font-size: 10px; }
  .full-results { gap: 4px; }
  .result-row { padding: 8px 10px; font-size: 13px; } /* Increased */
  .result-pos { font-size: 18px; }
  .result-name { font-size: 14px; }
  .result-time { font-size: 13px; }

  /* Leaderboard */
  .lb-row { padding: 10px; }
  .lb-rank { width: 30px; height: 30px; font-size: 12px; }
  .lb-name { font-size: 14px; } /* Increased from 12px */
  .lb-sub { font-size: 11px; } /* Increased from 9px */
  .lb-points { font-size: 15px; }

  /* Modal */
  .modal-body { padding: 24px 16px; max-width: 95vw; }
  .modal-body h2 { font-size: 22px; }
  .help-section h3 { font-size: 17px; }
  .lead { font-size: 14px; }

  /* Recent results */
  .recent-result-row { font-size: 13px; padding: 6px 0; } /* Increased from 11px */
  .recent-pos { font-size: 15px; }
  .recent-time { font-size: 12px; }
}

/* Touch feedback - add active states for better mobile UX */
@media (hover: none) and (pointer: coarse) {
  .help-btn:active {
    transform: scale(0.95);
    opacity: 0.8;
  }
  
  .racer-chip:active,
  .lb-row:active,
  .result-row:active {
    transform: scale(0.98);
    opacity: 0.9;
  }
  
  button:active,
  .modal-close:active {
    transform: scale(0.95);
  }
}

/* Small phones */
@media (max-width: 380px) {
  .logo h1 { font-size: 18px; }
  .pool-counter-number { font-size: 48px; }
  .race-lane { height: 50px; }
  .lobster-racer svg { width: 32px; height: 32px; }
  .countdown-number { font-size: 100px !important; }
  .podium-block { width: 75px; }
}
