/* Modern Retro Arcade UI Styling - Fantasy Football Race */

:root {
  --bg-dark: #090d16;
  --bg-panel: rgba(15, 23, 42, 0.85);
  --bg-card: rgba(30, 41, 59, 0.7);
  --border-glow: rgba(56, 189, 248, 0.35);
  --neon-cyan: #00f0ff;
  --neon-gold: #ffd700;
  --neon-red: #ff2a5f;
  --neon-green: #00ff66;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-blue: #3b82f6;
  --font-arcade: "Press Start 2P", monospace;
  --font-ui: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-ui);
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* Header & Top Bar */
.arcade-header {
  height: 64px;
  background: rgba(11, 17, 32, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

.brand-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  flex-shrink: 0;
}

.footer-logo-img {
  width: 28px;
  height: 28px;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-arcade);
  font-size: 18px;
  letter-spacing: 1.5px;
  color: #ffd700;
  text-shadow: 2px 2px 0 #000;
  margin: 0;
}

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

/* Control Buttons */
.btn,
a.btn {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none !important;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: linear-gradient(135deg, #00d2ff 0%, #0072ff 100%);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.7);
  transform: translateY(-1px);
}

.btn-accent {
  background: linear-gradient(135deg, #ffd700 0%, #ff8800 100%);
  color: #111;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
  font-family: var(--font-arcade);
  font-size: 13px;
  padding: 11px 24px;
}

.btn-accent:hover {
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.8);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: var(--neon-cyan);
}

.btn-results {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.22), rgba(245, 158, 11, 0.32));
  border: 1.5px solid #ffd700;
  color: #ffd700;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.35);
  font-weight: 800;
}

.btn-results:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.38), rgba(245, 158, 11, 0.5));
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.7);
  transform: translateY(-1px);
}

.btn-icon {
  padding: 8px 10px;
  font-size: 15px;
}

/* App Main Container */
.app-container {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
}

/* Stadium Viewport & Canvas */
.stadium-viewport {
  flex: 1;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#raceCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Sidebar Live Leaderboard */
.sidebar-leaderboard {
  width: 320px;
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(16px);
  border-left: 2px solid var(--border-glow);
  display: flex;
  flex-direction: column;
  z-index: 50;
}

.sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-title {
  font-family: var(--font-arcade);
  font-size: 13px;
  color: var(--neon-cyan);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.leaderboard-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leaderboard-item {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.leaderboard-item:hover {
  background: rgba(51, 65, 85, 0.8);
  border-color: var(--neon-cyan);
  transform: translateX(-2px);
}

.leaderboard-item.rank-1 {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.2), rgba(30, 41, 59, 0.6));
  border-color: #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
}

.rank-badge {
  font-family: var(--font-arcade);
  font-size: 12px;
  width: 24px;
  text-align: center;
  color: var(--text-muted);
}

.rank-1 .rank-badge {
  color: #ffd700;
  font-weight: bold;
}

/* Scanlines CRT Shader Overlay (Disabled by default) */
.scanlines-overlay {
  display: none !important;
}

.player-jersey-pill {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-arcade);
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 2px 4px rgba(0,0,0,0.8);
  flex-shrink: 0;
  box-sizing: border-box;
}

.player-jersey-pill.dark-text {
  color: #000 !important;
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff !important;
}

.player-info {
  flex: 1;
  overflow: hidden;
}

.player-name {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-stats {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
}

.player-status-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
}

.status-turbo {
  background: #ff6600;
  color: #fff;
  animation: pulse-glow 0.8s infinite;
}

.status-stumble {
  background: #ff2a5f;
  color: #fff;
}

.status-finished {
  background: #00ff66;
  color: #000;
}

/* Floating Bottom Control Bar */
.floating-hud {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow);
  padding: 6px 18px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 60;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-hud.racing-fade {
  opacity: 0.2;
  transform: translateX(-50%) translateY(12px);
}

.floating-hud.racing-fade:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.floating-hud.minimized {
  opacity: 0;
  transform: translateX(-50%) translateY(80px);
  pointer-events: none;
}

.hud-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.hud-select {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.hud-select:focus {
  border-color: var(--neon-cyan);
}

.btn-hud-minimize {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}
.btn-hud-minimize:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: var(--neon-cyan);
}

.btn-hud-restore {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11, 17, 32, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--neon-cyan);
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-family: var(--font-arcade);
  font-size: 11px;
  cursor: pointer;
  z-index: 60;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
  transition: all 0.2s ease;
}
.btn-hud-restore:hover {
  background: rgba(0, 240, 255, 0.2);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5);
}

/* Fullscreen Mode Styles */
:fullscreen .app-container {
  height: 100vh;
  max-width: 100vw;
  padding: 0;
  border-radius: 0;
}

:fullscreen .stadium-viewport {
  border-radius: 0;
  border: none;
}

:fullscreen .arcade-header {
  padding: 8px 20px;
}

/* Top-Down Vertical Roster Editor List */
.roster-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
  padding: 4px;
}

.roster-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.roster-card {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.roster-card:hover {
  border-color: var(--neon-cyan);
  background: rgba(51, 65, 85, 0.7);
}

.roster-idx-badge {
  font-family: var(--font-arcade);
  font-size: 12px;
  color: var(--neon-cyan);
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.color-square-swatch {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-arcade);
  font-size: 11px;
  font-weight: bold;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  flex-shrink: 0;
  box-sizing: border-box;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.color-square-swatch.dark-num {
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff !important;
}

.roster-input {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  outline: none;
}

.roster-input:focus {
  border-color: var(--neon-cyan);
  background: rgba(15, 23, 42, 1);
}

.roster-num-input {
  width: 65px;
  text-align: center;
  font-family: var(--font-arcade);
  font-size: 12px;
  flex-shrink: 0;
}

.roster-color-select {
  width: 130px;
  flex-shrink: 0;
  cursor: pointer;
}

/* Setup Modal Import Dropdowns / Accordions */
.import-options-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.setup-accordion {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.setup-accordion:hover {
  border-color: rgba(56, 189, 248, 0.5);
}

.setup-accordion[open] {
  background: rgba(15, 23, 42, 0.92);
  border-color: var(--neon-cyan);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 240, 255, 0.12);
}

.setup-accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  user-select: none;
  transition: background 0.15s ease;
}

.setup-accordion-summary::-webkit-details-marker {
  display: none;
}

.setup-accordion-summary:hover {
  background: rgba(56, 189, 248, 0.08);
}

.setup-accordion[open] .setup-accordion-summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 240, 255, 0.06);
}

.summary-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-icon {
  font-size: 16px;
  display: flex;
  align-items: center;
}

.summary-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.2px;
}

.badge-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-espn {
  background: #dc2626;
  color: #fff;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

.badge-sleeper {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #fff;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.badge-cyan {
  background: rgba(0, 240, 255, 0.15);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.4);
}

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

.summary-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.accordion-chevron {
  font-size: 12px;
  color: var(--neon-cyan);
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.setup-accordion[open] .accordion-chevron {
  transform: rotate(180deg);
}

.setup-accordion-content {
  padding: 14px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.espn-method-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.espn-method-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.espn-auth-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.espn-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.espn-help-box {
  font-size: 12px;
  color: #e2e8f0;
  line-height: 1.6;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 6px;
  padding: 12px 14px;
}

.roster-textarea {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #fff;
  padding: 10px 12px;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.5;
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.roster-textarea:focus {
  border-color: var(--neon-cyan);
  background: #0b1120;
}

@media (max-width: 640px) {
  .espn-auth-grid {
    grid-template-columns: 1fr;
  }
  .summary-subtitle {
    display: none;
  }
}

/* Countdown Overlay */
.countdown-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 150;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.countdown-number {
  font-family: var(--font-arcade);
  font-size: 96px;
  color: #ffd700;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 140, 0, 0.6);
  animation: countdown-pop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.countdown-subtext {
  font-family: var(--font-arcade);
  font-size: 18px;
  color: #00f0ff;
  letter-spacing: 2px;
  margin-top: 16px;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 8, 16, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid var(--border-glow);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 780px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 240, 255, 0.15);
  overflow: hidden;
  animation: modal-enter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-arcade);
  font-size: 16px;
  color: var(--neon-cyan);
  letter-spacing: 0.5px;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(11, 17, 32, 0.8);
}

/* Compact Equal-Height Championship Highlight Cards */
.podium-container {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  gap: 10px;
  margin: 0 auto 12px auto;
  width: 100%;
  align-items: stretch;
}

.podium-stand {
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  text-align: center;
  position: relative;
  box-sizing: border-box;
  min-height: 84px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.podium-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}

.podium-medal {
  font-size: 17px;
  line-height: 1;
}

.podium-1st {
  order: 2;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.22) 0%, rgba(245, 158, 11, 0.38) 100%);
  border: 2px solid #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.25), 0 4px 16px rgba(0, 0, 0, 0.4);
}
.podium-1st .podium-rank-text {
  color: #ffd700;
}
.podium-1st .podium-name {
  color: #ffffff;
  font-weight: 800;
}

.podium-2nd {
  order: 1;
  background: linear-gradient(135deg, rgba(226, 232, 240, 0.16) 0%, rgba(148, 163, 184, 0.28) 100%);
  border: 2px solid #cbd5e1;
  box-shadow: 0 0 16px rgba(203, 213, 225, 0.2), 0 4px 16px rgba(0, 0, 0, 0.4);
}
.podium-2nd .podium-rank-text {
  color: #e2e8f0;
}
.podium-2nd .podium-name {
  color: #ffffff;
}

.podium-3rd {
  order: 3;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.16) 0%, rgba(194, 65, 12, 0.28) 100%);
  border: 2px solid #f97316;
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.2), 0 4px 16px rgba(0, 0, 0, 0.4);
}
.podium-3rd .podium-rank-text {
  color: #fdba74;
}
.podium-3rd .podium-name {
  color: #ffffff;
}

.podium-rank-text {
  font-family: var(--font-arcade);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.podium-name {
  font-size: 13px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding: 0 4px;
  line-height: 1.3;
}

/* Draft Order Standings List */
.draft-order-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
  padding: 8px;
  background: rgba(11, 17, 32, 0.6);
  border-radius: var(--radius-md);
}

.draft-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: rgba(30, 41, 59, 0.5);
  border-radius: var(--radius-sm);
  font-size: 15px;
}

.pick-badge {
  font-family: var(--font-arcade);
  font-size: 11px;
  color: var(--neon-cyan);
  width: 90px;
}

/* Keyframes */
@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.04); }
}

@keyframes countdown-pop {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes modal-enter {
  0% { transform: translateY(20px) scale(0.96); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.sleeper-method-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sleeper-method-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(11, 17, 32, 0.95);
  backdrop-filter: blur(16px);
  border: 1.5px solid var(--neon-cyan);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 240, 255, 0.3);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-notification.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(11, 17, 32, 0.5);
}
::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}

/* Header Navigation Tabs */
.arcade-nav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
}

.nav-tab {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-arcade);
  font-size: 11px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.nav-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.nav-tab.active {
  background: rgba(0, 240, 255, 0.12);
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.nav-tab-highlight {
  border-color: var(--neon-gold);
  color: var(--neon-gold);
}
.nav-tab-highlight:hover {
  background: rgba(255, 215, 0, 0.15);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
}

/* Scheduled Live Reveal Jumbotron Overlay */
.scheduled-reveal-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.96) 0%, rgba(2, 6, 23, 0.98) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  backdrop-filter: blur(12px);
  padding: 20px;
}

.reveal-card {
  background: rgba(11, 17, 32, 0.95);
  border: 2px solid var(--neon-gold);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  text-align: center;
  max-width: 580px;
  width: 100%;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.25), 0 20px 50px rgba(0, 0, 0, 0.9);
  animation: modal-enter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-badge {
  font-family: var(--font-arcade);
  font-size: 11px;
  color: var(--neon-gold);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.reveal-league-title {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 20px;
  letter-spacing: 0.5px;
}

.reveal-timer-box {
  background: rgba(0, 0, 0, 0.6);
  border: 1.5px solid var(--neon-cyan);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.15);
}

.reveal-timer-clock {
  font-family: var(--font-arcade);
  font-size: 44px;
  color: var(--neon-cyan);
  letter-spacing: 4px;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

.reveal-timer-label {
  font-size: 10px;
  font-family: var(--font-arcade);
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 1.5px;
}

.reveal-desc {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0 0 24px;
}

.reveal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Weighted Lottery Panel */
.weighted-lottery-panel {
  background: rgba(255, 215, 0, 0.06);
  border: 1px dashed rgba(255, 215, 0, 0.35);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 10px;
}

.roster-balls-input {
  width: 65px;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #ffd700;
  font-family: var(--font-arcade);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
}
.roster-balls-input:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* Pricing Grid & Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.pricing-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
}

.pricing-card-featured {
  background: rgba(26, 20, 10, 0.85);
  border: 2px solid var(--neon-gold);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.2);
}

.pricing-badge-gold {
  position: absolute;
  top: -12px;
  right: 18px;
  background: linear-gradient(135deg, #ffd700 0%, #ff8800 100%);
  color: #000;
  font-family: var(--font-arcade);
  font-size: 9px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 10px;
  letter-spacing: 1px;
}

.pricing-badge-cyan {
  position: absolute;
  top: -12px;
  right: 18px;
  background: linear-gradient(135deg, #00f0ff 0%, #0284c7 100%);
  color: #000;
  font-family: var(--font-arcade);
  font-size: 9px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 10px;
  letter-spacing: 1px;
}

.pricing-badge-free {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-family: var(--font-arcade);
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.pricing-plan-name {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.pricing-price {
  font-family: var(--font-arcade);
  font-size: 36px;
  color: var(--neon-gold);
  line-height: 1;
}

.pricing-period {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 16px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.5;
}

.pricing-features strong {
  color: #fff;
}

.tip-jar-banner {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 8px;
}

/* FAQ Accordion Styling */
.faq-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  transition: all 0.2s ease;
}

.faq-item[open] {
  background: rgba(15, 23, 42, 0.85);
  border-color: var(--neon-cyan);
}

.faq-summary {
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: '➕';
  font-size: 14px;
  opacity: 0.7;
}

.faq-item[open] .faq-summary::after {
  content: '➖';
  color: var(--neon-cyan);
}

.faq-answer {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.7;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Results Modal In-Game Pricing Upgrade Card */
.results-pricing-upgrade-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(26, 20, 10, 0.9) 100%);
  border: 1.5px solid #ffd700;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.15);
}

.upgrade-card-left {
  flex: 1;
  min-width: 240px;
}

.upgrade-badge {
  font-family: var(--font-arcade);
  font-size: 9px;
  color: #ffd700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.upgrade-headline {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.upgrade-features-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #cbd5e1;
}

.upgrade-card-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.upgrade-price-tag {
  font-family: var(--font-arcade);
  font-size: 16px;
  color: #ffd700;
  text-shadow: 1px 1px 0 #000;
}

.upgrade-sub {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-ui);
}

/* Arcade Global Multi-Column Footer */
.arcade-global-footer {
  background: rgba(11, 17, 32, 0.95);
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  padding: 48px 24px 32px;
  margin-top: 60px;
  width: 100%;
  box-sizing: border-box;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
}

.footer-brand-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer-icon {
  font-size: 24px;
}

.footer-brand-title {
  font-family: var(--font-arcade);
  font-size: 15px;
  color: #ffd700;
  letter-spacing: 1px;
}

.footer-tagline {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

.footer-copyright {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 6px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-heading {
  font-family: var(--font-arcade);
  font-size: 11px;
  color: var(--neon-cyan);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.footer-column a {
  font-size: 14px;
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-column a:hover {
  color: var(--neon-gold);
  transform: translateX(2px);
}

.footer-bottom-disclaimer {
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-bottom-disclaimer p {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive UI Styles
   ========================================================================== */

@media (max-width: 860px) and (orientation: portrait), (max-width: 768px) {
  /* App Arena Container: Split View for Mobile */
  .app-container {
    flex-direction: column;
    height: calc(100vh - 56px);
    height: calc(100dvh - 56px);
    overflow: hidden;
  }

  .stadium-viewport {
    flex: 1 1 52%;
    height: 52%;
    min-height: 220px;
    max-height: 58vh;
    position: relative;
    width: 100%;
  }

  .sidebar-leaderboard {
    flex: 1 1 48%;
    width: 100%;
    height: 48%;
    max-height: 48vh;
    border-left: none;
    border-top: 2px solid var(--border-glow);
  }

  .sidebar-header {
    padding: 8px 12px;
  }

  .sidebar-title {
    font-size: 11px;
  }

  .leaderboard-list {
    padding: 6px 8px;
    gap: 5px;
    -webkit-overflow-scrolling: touch;
  }

  .leaderboard-item {
    padding: 6px 10px;
    border-radius: var(--radius-sm);
  }

  .rank-badge {
    font-size: 11px;
    width: 20px;
  }

  .player-jersey-pill {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    font-size: 10px;
  }

  .player-name {
    font-size: 13px;
  }

  .player-stats {
    font-size: 11px;
    gap: 6px;
  }
}

/* Mobile Landscape Gaming Mode */
@media (max-height: 520px) and (orientation: landscape) {
  .arcade-header {
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 10px !important;
  }

  .brand-logo-img {
    width: 22px;
    height: 22px;
  }

  .brand-title {
    font-size: 10px !important;
    letter-spacing: 0.5px;
  }

  .app-container {
    flex-direction: row;
    height: calc(100vh - 40px);
    height: calc(100dvh - 40px);
  }

  .stadium-viewport {
    flex: 1;
    height: 100%;
    min-width: 0;
  }

  .sidebar-leaderboard {
    width: 210px;
    max-width: 35vw;
    height: 100%;
    border-left: 2px solid var(--border-glow);
    border-top: none;
  }

  .sidebar-header {
    padding: 6px 10px;
  }

  .leaderboard-item {
    padding: 5px 8px;
  }

  .player-name {
    font-size: 12px;
  }
}

/* Tablet & Mobile Header Adjustments */
@media (max-width: 768px) {
  .arcade-header {
    height: 56px;
    min-height: 56px;
    padding: 0 10px;
  }

  .brand-logo {
    gap: 8px;
  }

  .brand-logo-img {
    width: 26px;
    height: 26px;
  }

  .brand-title {
    font-size: 11px;
    letter-spacing: 0.5px;
  }

  .arcade-nav-tabs {
    display: none;
  }

  .header-actions {
    gap: 5px;
  }

  .header-actions .btn {
    padding: 6px 9px;
    font-size: 12px;
    gap: 4px;
    min-height: 36px;
  }

  .header-actions .btn-accent {
    font-size: 10.5px;
    padding: 7px 12px;
  }

  /* Floating HUD Mobile Styles */
  .floating-hud {
    bottom: 6px;
    padding: 5px 8px;
    gap: 6px;
    max-width: 95%;
    border-radius: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .floating-hud::-webkit-scrollbar {
    display: none;
  }

  .floating-hud .hud-group {
    gap: 3px;
    flex-shrink: 0;
  }

  .floating-hud .hud-label {
    font-size: 10px;
    white-space: nowrap;
  }

  .floating-hud .hud-select {
    font-size: 11px;
    padding: 3px 5px;
  }

  .floating-hud .btn-hud-minimize {
    width: 20px;
    height: 20px;
    font-size: 10px;
    flex-shrink: 0;
  }

  .btn-hud-restore {
    bottom: 6px;
    padding: 5px 12px;
    font-size: 10px;
  }

  /* Footer Responsive */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-links-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
  }

  /* Pricing Grid in Modal */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pricing-card {
    padding: 16px 14px;
  }

  .tip-jar-banner {
    padding: 12px 14px;
  }
}

/* Small Smartphone Viewports (<= 640px) */
@media (max-width: 640px) {
  /* Modals */
  .modal-card {
    width: 96%;
    max-width: 96%;
    max-height: 94vh;
    max-height: 94dvh;
    border-radius: 12px;
  }

  .modal-header {
    padding: 10px 14px;
  }

  .modal-title {
    font-size: 11.5px;
    letter-spacing: 0;
  }

  .modal-body {
    padding: 10px 12px;
    gap: 10px;
  }

  /* Roster Setup Modal Mobile 2-Row Card Layout */
  .roster-header-row {
    display: none !important;
  }

  .roster-grid {
    max-height: 48vh;
    max-height: 48dvh;
    gap: 6px;
    padding: 2px;
  }

  .roster-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 8px;
  }

  .roster-card .roster-idx-badge {
    order: 1;
    width: 18px;
    font-size: 11px;
    text-align: center;
    flex-shrink: 0;
  }

  .roster-card .color-square-swatch {
    order: 2;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    font-size: 10px;
    flex-shrink: 0;
  }

  .roster-card .racer-name-input {
    order: 3;
    flex: 1 1 120px;
    min-width: 110px;
    font-size: 14px;
    padding: 6px 8px;
  }

  .roster-card .btn-remove-racer {
    order: 4;
    width: 28px !important;
    height: 28px !important;
    flex-shrink: 0;
  }

  .roster-card .racer-balls-input {
    order: 5;
    width: 60px;
    font-size: 12px;
    padding: 6px 4px;
    margin-left: 24px;
  }

  .roster-card .racer-num-input {
    order: 6;
    width: 55px;
    font-size: 12px;
    padding: 6px 4px;
    margin-left: 24px;
  }

  .roster-card .racer-color-select {
    order: 7;
    flex: 1;
    min-width: 110px;
    font-size: 12px;
    padding: 6px 6px;
  }

  /* Setup Accordions on Mobile */
  .setup-accordion-summary {
    padding: 10px 12px;
    font-size: 12px;
  }

  .summary-title {
    font-size: 11.5px;
  }

  .summary-subtitle {
    display: none;
  }

  .setup-accordion-content {
    padding: 10px 12px;
    gap: 8px;
  }

  .setup-accordion-content .btn {
    width: 100%;
    justify-content: center;
    font-size: 12px;
    padding: 9px;
  }

  .espn-auth-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .modal-footer {
    padding: 10px 12px;
    flex-direction: column-reverse;
    gap: 6px;
  }

  .modal-footer button,
  .modal-footer a.btn {
    width: 100%;
    justify-content: center;
    padding: 10px;
    font-size: 12px;
  }

  /* Post-Race Podium & Results Modal on Mobile */
  .podium-container {
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 4px;
    margin-bottom: 6px;
  }

  .podium-stand {
    padding: 6px 2px;
    min-height: 68px;
  }

  .podium-header-row {
    gap: 2px;
    margin-bottom: 2px;
  }

  .podium-medal {
    font-size: 13px;
  }

  .podium-stand .player-jersey-pill {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    font-size: 9px;
  }

  .podium-rank-text {
    font-size: 8.5px;
  }

  .podium-name {
    font-size: 9.5px;
    line-height: 1.2;
    padding: 0 2px;
  }

  .draft-order-list {
    max-height: 200px;
    padding: 5px;
    gap: 4px;
  }

  .draft-order-item {
    padding: 6px 8px;
    font-size: 12px;
  }

  .pick-badge {
    font-size: 9.5px;
    width: 60px;
  }

  .results-pricing-upgrade-card {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
  }

  .upgrade-card-right {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .modal-footer > div {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  #btnExportGraphicCard {
    grid-column: 1 / -1;
    justify-content: center;
    font-size: 12px;
    padding: 9px;
  }

  #btnCopyDraftOrder,
  #btnShareResultsLink {
    font-size: 11px;
    padding: 8px 4px;
    justify-content: center;
    text-align: center;
  }

  #btnRematch {
    width: 100%;
    justify-content: center;
    font-size: 12px;
    padding: 9px;
  }

  /* Countdown & Overlays */
  .countdown-number {
    font-size: clamp(48px, 14vw, 84px);
  }

  .countdown-subtext {
    font-size: clamp(12px, 3.5vw, 16px);
  }

  .scheduled-reveal-overlay {
    padding: 12px;
  }

  .reveal-card {
    padding: 18px 14px;
    max-height: 92vh;
    overflow-y: auto;
  }

  .reveal-league-title {
    font-size: 18px;
    margin: 0 0 12px;
  }

  .reveal-timer-box {
    padding: 12px;
    margin-bottom: 12px;
  }

  .reveal-timer-clock {
    font-size: 32px;
    letter-spacing: 2px;
  }

  .reveal-actions {
    flex-direction: column;
    gap: 8px;
  }

  .reveal-actions button {
    width: 100%;
    justify-content: center;
  }

  .photo-finish-banner {
    font-size: 10px;
    padding: 5px 10px;
    top: 8px;
    width: 92%;
    text-align: center;
  }

  .toast-notification {
    max-width: 90%;
    font-size: 11px;
    padding: 8px 16px;
    bottom: 16px;
    text-align: center;
  }
}

/* Extra-Compact Smartphone Viewports (<= 480px) */
@media (max-width: 480px) {
  .arcade-header {
    height: 52px;
    min-height: 52px;
    padding: 0 8px;
  }

  .brand-title {
    font-size: 9.5px;
    letter-spacing: 0;
  }

  .header-actions .btn-text-collapse {
    display: none;
  }

  .header-actions .btn {
    padding: 6px 8px;
    font-size: 13px;
    gap: 0;
  }

  .header-actions #btnOpenSetup,
  .header-actions #btnOpenResults {
    font-size: 11px;
    padding: 6px 8px;
    gap: 2px;
  }

  .header-actions #btnStartRace {
    font-size: 10px;
    padding: 7px 10px;
    gap: 3px;
  }

  .header-actions #btnStartRace .btn-text {
    display: inline;
    font-size: 10px;
    letter-spacing: 0;
  }
}

/* Universal Button and CTA Anchor Styling */
a.btn,
.btn,
.hero-cta-btn,
.arcade-header a,
.arcade-nav-tabs a,
.cta-banner a,
.footer-column a,
.tip-jar-btn {
  text-decoration: none !important;
}

a.btn:hover,
.btn:hover,
.hero-cta-btn:hover,
.cta-banner a:hover,
.tip-jar-btn:hover {
  text-decoration: none !important;
}

