/* 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;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-ui);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
}

/* 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);
}

/* 3D Retro Championship Podium */
.podium-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  margin: 10px auto 25px auto;
  height: 255px;
  width: 100%;
}

.podium-stand {
  width: 160px;
  border-radius: 14px 14px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 10px 18px 10px;
  text-align: center;
  position: relative;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
  border-top: 3px solid rgba(255, 255, 255, 0.4);
  box-sizing: border-box;
}

.podium-1st {
  height: 225px;
  background: linear-gradient(180deg, #ffd700 0%, #f59e0b 60%, #b45309 100%);
  color: #111;
  box-shadow: 0 0 45px rgba(255, 215, 0, 0.5), 0 14px 30px rgba(0, 0, 0, 0.6);
  order: 2;
  border: 3px solid #fff;
  border-bottom: none;
}

.podium-2nd {
  height: 180px;
  background: linear-gradient(180deg, #f8fafc 0%, #cbd5e1 50%, #64748b 100%);
  color: #111;
  order: 1;
  border: 3px solid #e2e8f0;
  border-bottom: none;
  box-shadow: 0 0 30px rgba(203, 213, 225, 0.35), 0 14px 30px rgba(0, 0, 0, 0.6);
}

.podium-3rd {
  height: 148px;
  background: linear-gradient(180deg, #fdba74 0%, #ea580c 50%, #7c2d12 100%);
  color: #fff;
  order: 3;
  border: 3px solid #fed7aa;
  border-bottom: none;
  box-shadow: 0 0 30px rgba(234, 88, 12, 0.35), 0 14px 30px rgba(0, 0, 0, 0.6);
}

.podium-rank-text {
  font-family: var(--font-arcade);
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.podium-name {
  font-size: 14px;
  font-weight: 800;
  margin-top: 6px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 145px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
}

/* Draft Order Standings List */
.draft-order-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  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: 6px;
  margin: 0 auto;
}

.nav-tab {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-arcade);
  font-size: 10px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.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;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* 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;
}

