/* ============================================================================
   HARDWOOD 82-0: Broadcast Sports Television & Arena Scoreboard Design System
   ============================================================================ */
:root {
  --bg-arena: #090d16;
  --bg-panel: #111827;
  --bg-card: #182234;
  --bg-card-hover: #1f2d44;
  --border-subtle: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(245, 158, 11, 0.45);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-gold: #f59e0b;
  --accent-gold-bright: #fde047;
  --accent-emerald: #10b981;
  --accent-crimson: #ef4444;
  --accent-sky: #38bdf8;
  --font-display: "Roboto Condensed", "Impact", system-ui, -apple-system, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-arena);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Broadcast Top Scorebug Navigation Bar */
.broadcast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 20px;
  background: linear-gradient(180deg, #131c2e 0%, #0b101b 100%);
  border-bottom: 2px solid var(--accent-gold);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

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

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gold);
  color: #090d16;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

.brand-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.mode-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-pill {
  background: #182234;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 7px 13px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nav-pill:hover {
  background: var(--bg-card-hover);
  color: #ffffff;
}

.nav-pill.active {
  background: var(--accent-gold);
  color: #090d16;
  border-color: var(--accent-gold-bright);
}

.nav-pill.nav-daily.done::after {
  content: " ✓";
  color: var(--accent-emerald);
}

.nav-pill.nav-daily.done.active::after {
  color: #090d16;
}

/* Phones: keep the mode nav to one swipeable row instead of a five-row wall of pills */
@media (max-width: 720px) {
  .broadcast-header {
    padding: 8px 12px;
    gap: 8px;
  }
  .brand-title {
    font-size: 1.1rem;
  }
  .brand-subtitle {
    font-size: 0.7rem;
  }
  .mode-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .mode-nav::-webkit-scrollbar {
    display: none;
  }
  .nav-pill {
    flex: 0 0 auto;
    padding: 7px 11px;
    font-size: 0.8rem;
  }
}

/* Main Split Arena Workspace */
.arena-workspace {
  display: grid;
  grid-template-columns: minmax(540px, 1.52fr) minmax(370px, 1fr);
  gap: 18px;
  max-width: 1720px;
  margin: 0 auto;
  padding: 16px 20px 28px;
  align-items: start;
}

@media (max-width: 1120px) {
  .arena-workspace {
    grid-template-columns: 1fr;
  }
}

/* Court Canvas Stage */
.court-stage-wrap {
  background: #0d1320;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.court-canvas-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1536 / 1064;
  border-radius: 8px;
  overflow: hidden;
  user-select: none;
}

#court-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#court-hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.court-hotspot {
  position: absolute;
  transform: translate(-50%, -48%);
  width: 9.2%;
  height: 13.5%;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.court-hotspot:hover {
  transform: translate(-50%, -50%) scale(1.05);
  border-color: rgba(250, 204, 21, 0.75);
  background: rgba(250, 204, 21, 0.08);
}

.court-hotspot.pulse-target {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.28);
  animation: slotPulse 1.3s infinite ease-in-out;
}

.court-hotspot.locked {
  cursor: not-allowed;
}

@keyframes slotPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.48); }
}

.court-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  padding: 6px 8px 2px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Right Control Deck */
.side-panel-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.side-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.side-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.side-card-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.94rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.roster-count-pill, .mvp-cap-pill {
  background: #1e293b;
  color: var(--accent-gold-bright);
  border: 1px solid rgba(250, 204, 21, 0.35);
  padding: 3px 9px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
}

.telemetry-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.t-metric-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
}

.t-metric-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.t-metric-val {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

.gold-text {
  color: var(--accent-gold-bright);
}

.synergy-status-bar {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: #6ee7b7;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}

.field-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 10px 0 6px;
}

.scheme-btn-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 6px;
}

.scheme-btn {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 7px 8px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
}

.scheme-btn.active {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--accent-gold);
  color: var(--accent-gold-bright);
}

.builder-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.action-btn {
  padding: 10px 12px;
  border-radius: 7px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary-gold {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
  color: #090d16;
  font-size: 0.96rem;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.32);
}

.btn-primary-gold:hover {
  filter: brightness(1.06);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
}

/* Compact Roster List */
.compact-roster-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.compact-roster-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: var(--bg-card);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.83rem;
}

.compact-roster-row:hover {
  background: var(--bg-card-hover);
}

.compact-pos-tag {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.74rem;
  padding: 2px 6px;
  border-radius: 4px;
  min-width: 44px;
  text-align: center;
}

.compact-pos-tag.offense {
  background: #d97706;
  color: #ffffff;
}

.compact-pos-tag.defense {
  background: #0284c7;
  color: #ffffff;
}

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

.compact-fit-tag {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
}

/* 82-0 Challenge Slot Machine Box */
.slot-machine-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: #0b101b;
  border: 2px solid var(--accent-gold);
  border-radius: 9px;
  padding: 10px;
  margin-bottom: 10px;
}

.reel-window {
  background: #141d2f;
  border-radius: 6px;
  padding: 8px 10px;
  text-align: center;
}

.reel-lbl {
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.reel-val {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  margin-top: 3px;
}

.reroll-btn-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.reroll-btn {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 7px 6px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
}

.reroll-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.challenge-step-instruction {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.challenge-pool-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 430px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Player Scouting Cards */
.player-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.player-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.35);
}

.player-card.selected-card {
  border: 2px solid var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
}

.player-card.mvp-card {
  border-left: 4px solid var(--accent-gold-bright);
}

.player-card.disabled-card {
  opacity: 0.46;
  cursor: not-allowed;
}

.pcard-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pcard-sprite-wrap {
  width: 78px;
  height: 78px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.20), rgba(9, 13, 22, 0.94));
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.42);
}

.pcard-sprite-img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.55));
}

.pcard-jersey {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  padding: 4px 8px;
  border-radius: 6px;
  min-width: 36px;
  text-align: center;
}

.pcard-title-wrap {
  flex: 1;
}

.pcard-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.02rem;
}

.pcard-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.mvp-crown-pill {
  background: var(--accent-gold-bright);
  color: #090d16;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.pro-fit-pill {
  background: var(--accent-emerald);
  color: #090d16;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.pcard-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 7px 0;
}

.archetype-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  border: 1px solid currentColor;
  background: rgba(9, 13, 22, 0.55);
}

.pos-hint-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: #0f172a;
  color: var(--text-secondary);
}

.pcard-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  margin-top: 6px;
}

.stat-mini-cell {
  background: #0f172a;
  padding: 4px 5px;
  border-radius: 4px;
  text-align: center;
}

.stat-mini-lbl {
  display: block;
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 700;
}

.stat-mini-val {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.stat-elite {
  color: var(--accent-gold-bright);
}

.stat-good {
  color: var(--accent-emerald);
}

.stat-mini-track {
  height: 3px;
  background: #1e293b;
  border-radius: 2px;
  margin-top: 2px;
  overflow: hidden;
}

.stat-mini-fill {
  height: 100%;
  background: var(--accent-sky);
}

.pcard-disabled-overlay {
  position: absolute;
  top: 8px;
  right: 10px;
  background: #090d16;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  max-width: 46%;
  text-align: right;
  line-height: 1.2;
}

.disabled-card .pcard-title-wrap {
  padding-right: 48%;
}

/* Snake Draft Styles */
.snake-teams-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 8px 0;
}

.snake-team-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 6px 8px;
}

.user-team-pill {
  border-color: var(--accent-gold);
}

.st-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.84rem;
}

.st-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.snake-log-box {
  background: #090d16;
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 0.74rem;
  color: #93c5fd;
  margin-bottom: 8px;
}

/* Native Dialog Modals */
.broadcast-dialog {
  background: #0f172a;
  color: var(--text-primary);
  border: 2px solid var(--accent-gold);
  border-radius: 12px;
  padding: 0;
  width: min(92vw, 940px);
  max-height: 90vh;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.78);
}

.broadcast-dialog::backdrop {
  background: rgba(5, 8, 15, 0.82);
  backdrop-filter: blur(4px);
}

.dlg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #141e33;
  border-bottom: 1px solid var(--border-subtle);
}

.dlg-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  margin: 0;
  letter-spacing: 0.03em;
}

.dlg-close-btn {
  background: #1e293b;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 5px 11px;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.dlg-body {
  padding: 16px 18px 20px;
  overflow-y: auto;
  max-height: calc(90vh - 64px);
}

/* Picker Modal Specifics */
.picker-tip-banner {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.picker-search-bar {
  width: 100%;
  background: #090d16;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.chip-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.chip-btn {
  background: #182234;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 4px 9px;
  border-radius: 99px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.chip-btn.active {
  background: var(--accent-gold);
  color: #090d16;
  border-color: var(--accent-gold);
}

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

/* 82-0 Season Recap Modal */
.recap-top-hero {
  text-align: center;
  padding: 8px 0 14px;
}

.recap-record-big {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent-gold-bright);
}

.recap-banner {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 14px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.96rem;
}

.recap-banner[hidden],
.reveal-hint[hidden] {
  display: none;
}

.banner-gold { background: var(--accent-gold-bright); color: #090d16; }
.banner-emerald { background: var(--accent-emerald); color: #090d16; }
.banner-blue { background: #0284c7; color: #ffffff; }
.banner-red { background: var(--accent-crimson); color: #ffffff; }

.game-82-matrix {
  display: grid;
  grid-template-columns: repeat(41, 1fr);
  gap: 3px;
  margin: 12px 0 6px;
}

@media (max-width: 780px) {
  .game-82-matrix {
    grid-template-columns: repeat(14, 1fr);
  }
}

.game-tile {
  aspect-ratio: 1;
  border: none;
  border-radius: 3px;
  font-size: 0.56rem;
  font-weight: 800;
  color: #090d16;
  cursor: pointer;
  padding: 0;
}

.tile-win { background: var(--accent-emerald); }
.tile-ot  { background: var(--accent-gold); }
.tile-loss { background: var(--accent-crimson); color: #ffffff; }

.game-hover-readout {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  min-height: 20px;
  margin-bottom: 12px;
}

/* 16-Team Indigo League Standings Table */
.standings-table-wrap {
  margin: 8px 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 13, 22, 0.78);
  overflow-x: auto;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.80rem;
}

.standings-table th {
  padding: 7px 10px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.standings-table td {
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.st-col-seed {
  width: 34px;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--text-secondary);
}

.st-playoff-row .st-col-seed {
  color: #38bdf8;
}

.st-col-rec,
.st-col-gb,
.st-col-h2h {
  text-align: right !important;
  font-family: var(--font-display);
  font-weight: 800;
  white-space: nowrap;
}

.st-col-rec {
  font-size: 0.86rem;
  color: #f8fafc;
}

.st-col-gb {
  color: var(--text-muted);
}

.st-col-h2h.h2h-win {
  color: #34d399;
}

.st-col-h2h.h2h-loss {
  color: #f87171;
}

.st-team-flex {
  display: flex;
  align-items: center;
  gap: 9px;
}

.st-badge-holder {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.st-team-text {
  min-width: 0;
}

.st-team-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.86rem;
  color: #f8fafc;
  line-height: 1.15;
}

.st-team-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.15;
}

.st-player-row {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.22), rgba(56, 189, 248, 0.14)) !important;
}

.st-player-row .st-team-name,
.st-player-row .st-col-seed,
.st-player-row .st-col-rec {
  color: var(--accent-gold-bright) !important;
}

.st-lottery-row {
  opacity: 0.78;
}

.st-cutline-row td.st-cutline-cell {
  padding: 4px 10px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fde047;
  background: rgba(245, 158, 11, 0.15);
  border-top: 1px dashed rgba(250, 204, 21, 0.6);
  border-bottom: 1px dashed rgba(250, 204, 21, 0.6);
}

/* 8-Team Playoff Bracket Visualization */
.playoff-bracket-wrap {
  margin: 8px 0 12px;
}

.bracket-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: rgba(9, 13, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px;
}

.bracket-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bracket-col-title {
  font-family: var(--font-display);
  font-size: 0.70rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 6px;
}

.bracket-col-body {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 8px;
  flex: 1;
}

.bracket-matchup {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  overflow: hidden;
}

.bracket-matchup.br-player-series {
  border-color: rgba(250, 204, 21, 0.65);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.16);
}

.br-team-row {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  font-size: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.br-team-row:last-child {
  border-bottom: none;
}

.br-team-row.br-is-winner {
  color: #ffffff;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.11);
}

.br-team-row.br-is-player {
  color: var(--accent-gold-bright);
  font-weight: 800;
}

.br-seed {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 900;
  color: var(--text-muted);
  min-width: 18px;
}

.br-badge {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.br-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-display);
}

.br-score {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.82rem;
  min-width: 14px;
  text-align: right;
}

/* Dramatic Playoff Series Cards with Game-by-Game Score Strip */
.playoff-rounds-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0 14px;
}

.po-series-card {
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.88);
  transition: border-color 0.2s, background 0.2s;
}

.po-in-progress {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(15, 23, 42, 0.92);
}

.po-won {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(15, 23, 42, 0.92));
  border-color: var(--accent-emerald);
}

.po-lost {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(15, 23, 42, 0.92));
  border-color: var(--accent-crimson);
}

.po-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.po-round-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.po-rivalry-pill {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(9, 13, 22, 0.75);
  color: #cbd5e1;
}

.po-rivalry-pill.rivalry-nemesis {
  border-color: rgba(239, 68, 68, 0.55);
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.14);
}

.po-rivalry-pill.rivalry-lead {
  border-color: rgba(16, 185, 129, 0.55);
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.14);
}

.po-rivalry-pill.rivalry-even {
  border-color: rgba(250, 204, 21, 0.55);
  color: #fde047;
  background: rgba(250, 204, 21, 0.12);
}

.po-matchup-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.po-opp-badge-wrap {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(9, 13, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.po-opp-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.04rem;
  color: #f8fafc;
  line-height: 1.15;
}

.po-opp-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.po-series-score {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.28rem;
  color: var(--accent-gold-bright);
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(9, 13, 22, 0.75);
  border: 1px solid rgba(250, 204, 21, 0.35);
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.po-series-score.score-flash {
  transform: scale(1.10);
  border-color: #fde047;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.35);
}

.standings-jump-bar {
  display: flex;
  justify-content: center;
  padding: 9px 10px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  border-top: 1px solid rgba(250, 204, 21, 0.28);
}

.standings-jump-btn {
  width: 100%;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid rgba(250, 204, 21, 0.65);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(234, 88, 12, 0.20));
  color: #fef08a;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.standings-jump-btn:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.34), rgba(234, 88, 12, 0.30));
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.25);
}

.po-series-action-bar {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 4px;
}

.po-series-action-bar[hidden],
.po-live-ticker[hidden],
.po-games-strip[hidden] {
  display: none !important;
}

.po-play-series-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid #fbbf24;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #090d16;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.96rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.32);
  transition: transform 0.14s ease, filter 0.14s ease, box-shadow 0.14s ease;
}

.po-play-series-btn:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.44);
}

.po-play-series-btn:active {
  transform: translateY(0);
}

.po-play-btn-sub {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(9, 13, 22, 0.82);
}

.po-sim-all-btn {
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.85);
  color: #cbd5e1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.po-sim-all-btn:hover {
  background: rgba(30, 41, 59, 0.95);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
}

.po-live-ticker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  margin-bottom: 8px;
  border-radius: 7px;
  background: rgba(9, 13, 22, 0.88);
  border: 1px solid rgba(250, 204, 21, 0.30);
}

.po-live-ticker.ticker-won {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.10);
}

.po-live-ticker.ticker-lost {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.10);
}

.po-ticker-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.80rem;
  color: #fde047;
  letter-spacing: 0.02em;
  flex: 1;
  min-width: 0;
}

.po-live-ticker.ticker-won .po-ticker-text {
  color: #6ee7b7;
}

.po-live-ticker.ticker-lost .po-ticker-text {
  color: #fca5a5;
}

.po-replay-btn {
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.9);
  color: #e2e8f0;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
}

.po-replay-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold-bright);
}

.po-games-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 6px;
}

.po-game-chip {
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(9, 13, 22, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.10);
  text-align: center;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.po-game-chip.po-game-live {
  border-color: #fbbf24;
  background: rgba(245, 158, 11, 0.18);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.28);
  animation: poGameLivePulse 0.65s ease-in-out infinite alternate;
}

.po-game-chip.po-game-live .po-gm-score {
  color: #fde047;
}

@keyframes poGameLivePulse {
  from { transform: scale(0.98); box-shadow: 0 0 6px rgba(245, 158, 11, 0.18); }
  to   { transform: scale(1.02); box-shadow: 0 0 14px rgba(245, 158, 11, 0.42); }
}

@keyframes poGameChipPop {
  0%   { transform: scale(0.88); opacity: 0.5; }
  60%  { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.po-game-chip.po-game-pop {
  animation: poGameChipPop 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.po-game-chip.po-game-win {
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.12);
}

.po-game-chip.po-game-loss {
  border-color: rgba(239, 68, 68, 0.48);
  background: rgba(239, 68, 68, 0.10);
}

.po-gm-num {
  font-size: 0.63rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.po-gm-score {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.84rem;
  color: #f8fafc;
  margin: 1px 0;
}

.po-game-win .po-gm-score {
  color: #6ee7b7;
}

.po-game-loss .po-gm-score {
  color: #fca5a5;
}

.po-gm-series {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* All-Time Playoff Rivalries Tracker */
.playoff-rivalries-wrap {
  margin: 10px 0 14px;
}

.rivalry-tracker-card {
  background: rgba(9, 13, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
}

.rivalry-tracker-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.rivalry-tracker-title {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--accent-gold-bright);
}

.rivalry-tracker-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.rivalry-tracker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 7px;
}

.rivalry-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rivalry-badge-wrap {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.rivalry-team-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.rivalry-team-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.riv-status-tag {
  font-family: var(--font-display);
  font-size: 0.60rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 99px;
  flex-shrink: 0;
}

.riv-tag-nemesis {
  background: rgba(239, 68, 68, 0.20);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.5);
}

.riv-tag-leads {
  background: rgba(16, 185, 129, 0.20);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.riv-tag-tied {
  background: rgba(250, 204, 21, 0.18);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.5);
}

.rivalry-rec-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Best Fit, Worst Fit & Finals MVP Callout Units with Enlarged Pokémon Art */
.fit-callouts-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.side-fit-callouts {
  grid-template-columns: 1fr;
  gap: 7px;
  margin-top: 8px;
  margin-bottom: 0;
}

.fit-callout {
  padding: 10px 11px;
  border-radius: 9px;
}

.fit-best { background: rgba(16, 185, 129, 0.12); border: 1px solid var(--accent-emerald); }
.fit-weak { background: rgba(239, 68, 68, 0.12); border: 1px solid var(--accent-crimson); }
.fit-mvp  { background: rgba(245, 158, 11, 0.14); border: 1px solid var(--accent-gold); }
.fit-mvp.is-crowned {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.22), rgba(15, 23, 42, 0.92));
  border-color: var(--accent-gold-bright);
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.18);
}

.fit-callout-flex {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fit-callout-sprite-wrap {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fit-callout-sprite {
  width: 52px;
  height: 52px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.55));
}

.fit-callout-body {
  min-width: 0;
  flex: 1;
}

.fit-callout-tag {
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.fit-best .fit-callout-tag { color: #34d399; }
.fit-weak .fit-callout-tag { color: #f87171; }
.fit-mvp  .fit-callout-tag { color: #fde047; }

.fit-callout-mon {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.04rem;
  color: #ffffff;
  line-height: 1.15;
  margin-top: 1px;
}

.fit-callout-main {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  color: #e2e8f0;
  margin-top: 2px;
}

.fit-callout-sub {
  font-size: 0.70rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.goat-log-line {
  color: #fde047 !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em;
}

.share-card-canvas-preview {
  display: block;
  max-width: 380px;
  width: 100%;
  height: auto;
  margin: 12px auto;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

/* Leaderboard Table */
.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.lb-table th, .lb-table td {
  padding: 9px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.lb-gold-row {
  background: rgba(250, 204, 21, 0.12);
  color: var(--accent-gold-bright);
  font-weight: 700;
}

/* Drag Ghost & Toasts */
.drag-ghost {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  padding: 6px 12px;
  border-radius: 99px;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.86rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

#toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  max-width: min(92vw, 520px);
}

.toast {
  background: #1e293b;
  color: #ffffff;
  border-left: 4px solid var(--accent-gold);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast-success { border-left-color: var(--accent-emerald); }
.toast-warn { border-left-color: var(--accent-crimson); }
.toast-hide { opacity: 0; transform: translateY(8px); }

/* ============================================================================
   all22pokemon-style Slot Machine Reel Overlay (#roll-pop) over the Court
   ============================================================================ */
.roll-pop {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.25));
  cursor: pointer;
  animation: roll-fade 0.18s ease-out;
  transition: opacity 0.18s ease;
}

.roll-pop[hidden] {
  display: none !important;
}

.roll-pop.out {
  opacity: 0;
}

@keyframes roll-fade {
  from { opacity: 0; }
}

.roll-card {
  --reel-h: 76px;
  --ring: #f2c230;
  --ring-soft: rgba(242, 194, 48, 0.22);
  --ring-glow: rgba(242, 194, 48, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 30px;
  border-radius: 10px;
  background: rgba(9, 13, 20, 0.96);
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.72);
  animation: roll-card-in 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.25);
}

.roll-card.mode-151 {
  --ring: #f87171;
  --ring-soft: rgba(248, 113, 113, 0.22);
  --ring-glow: rgba(248, 113, 113, 0.35);
}

@keyframes roll-card-in {
  from { transform: scale(0.85); opacity: 0; }
}

.roll-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ring);
}

.reels {
  display: flex;
  gap: 16px;
}

.reel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.reel[hidden] {
  display: none !important;
}

.reel-win {
  position: relative;
  width: 196px;
  height: var(--reel-h);
  overflow: hidden;
  border-radius: 8px;
  background: #0e1524;
  border: 2px solid rgba(255, 255, 255, 0.22);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.reel-win::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(#0e1524, transparent 22%, transparent 78%, #0e1524);
}

.reel-win.landed,
.reel-win.held {
  border-color: var(--ring);
}

.reel-win.landed {
  box-shadow: 0 0 0 4px var(--ring-soft), 0 0 28px var(--ring-glow);
  animation: reel-land 0.4s ease-out;
}

@keyframes reel-land {
  40% { transform: scale(1.07); }
}

.reel-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.reel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: calc(var(--reel-h) - 4px);
  font-family: var(--font-display);
  line-height: 1.1;
  text-transform: uppercase;
  color: #f8fafc;
}

.reel-item b {
  font-size: 1.55rem;
  font-weight: 900;
}

.reel-item small {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
}

.reel-item .reel-type-pill {
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 1.32rem;
  font-weight: 900;
  color: #090d16;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.reel.mon .reel-win {
  width: 340px;
}

.reel-item.mon {
  flex-direction: row;
  gap: 12px;
  padding: 0 14px;
}

.reel-item.mon img {
  flex: none;
  width: auto;
  height: 62px;
  image-rendering: pixelated;
}

.reel-item.mon b {
  overflow: hidden;
  font-size: 1.45rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.reel-label,
.roll-skip {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reel-label {
  color: #94a3b8;
}

.roll-skip {
  color: #64748b;
}

/* Pulsing Open Court Spot when a Draft Pick is Ready to Place */
.court-hotspot.open-slot {
  border-color: rgba(74, 222, 128, 0.85) !important;
  background: rgba(74, 222, 128, 0.14) !important;
  animation: open-slot-pulse 1.3s ease-in-out infinite;
}

@keyframes open-slot-pulse {
  50% {
    border-color: rgba(74, 222, 128, 0.28) !important;
    background: rgba(74, 222, 128, 0.05) !important;
  }
}

/* Two-Way OFF/DEF Badges on Player Cards */
.twoway-pill-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.twoway-pill {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.70rem;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.twoway-ovr {
  background: var(--accent-emerald);
  color: #090d16;
}

.twoway-off {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #f59e0b;
  color: #fde68a;
}

.twoway-def {
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid #38bdf8;
  color: #bae6fd;
}

.rotation-unit-header {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 8px;
  margin: 6px 0 4px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.85);
  color: var(--accent-gold-bright);
  border-left: 3px solid var(--accent-gold);
}

.rotation-unit-header.bench-header {
  color: #38bdf8;
  border-left-color: #38bdf8;
}

/* ============================================================================
   TikTok Filter "Start 1, Bench 1" Tray, Buttons & 5-Position Depth Chart
   ============================================================================ */
.start-bench-tray {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 10px 0;
  padding: 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border-subtle);
}

.sb-tray-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sb-tray-title {
  font-family: var(--font-display);
  font-size: 0.80rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-gold-bright);
}

.sb-slots-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sb-ticket {
  border-radius: 8px;
  padding: 8px 10px;
  border: 2px solid var(--border-subtle);
  background: rgba(9, 13, 22, 0.90);
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}

.sb-ticket.starter-ticket {
  border-color: rgba(16, 185, 129, 0.45);
}

.sb-ticket.bench-ticket {
  border-color: rgba(56, 189, 248, 0.45);
}

.sb-ticket.active-ticket.starter-ticket {
  border-color: #4ade80;
  background: rgba(16, 185, 129, 0.15);
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.25);
}

.sb-ticket.active-ticket.bench-ticket {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.sb-ticket.done-ticket {
  opacity: 0.72;
  border-style: dashed;
}

.sb-ticket-badge {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sb-ticket-badge.start-badge {
  color: #4ade80;
}

.sb-ticket-badge.bench-badge {
  color: #38bdf8;
}

.sb-ticket-mon {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 900;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-ticket-sub {
  font-size: 0.70rem;
  color: #94a3b8;
}

.sb-pos-quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: 4px;
}

.sb-pos-btn {
  padding: 5px 2px;
  border-radius: 5px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 900;
  cursor: pointer;
  border: 1px solid rgba(74, 222, 128, 0.45);
  background: rgba(16, 185, 129, 0.14);
  color: #86efac;
  transition: transform 0.1s, border-color 0.15s, background 0.15s;
}

.sb-pos-btn:hover:not(:disabled) {
  border-color: #4ade80;
  background: #10b981;
  color: #090d16;
}

.sb-pos-btn.bench-pos-btn {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.14);
  color: #bae6fd;
}

.sb-pos-btn.bench-pos-btn:hover:not(:disabled) {
  border-color: #38bdf8;
  background: #38bdf8;
  color: #090d16;
}

.sb-pos-btn:disabled {
  opacity: 0.30;
  cursor: not-allowed;
  text-decoration: line-through;
}

.sb-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}

.sb-action-pill {
  padding: 6px 8px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.14s ease;
}

.sb-action-pill.start-pill {
  background: rgba(16, 185, 129, 0.16);
  border-color: #10b981;
  color: #6ee7b7;
}

.sb-action-pill.start-pill:hover:not(:disabled),
.sb-action-pill.start-pill.active-start {
  background: #10b981;
  color: #090d16;
}

.sb-action-pill.bench-pill {
  background: rgba(56, 189, 248, 0.16);
  border-color: #0ea5e9;
  color: #7dd3fc;
}

.sb-action-pill.bench-pill:hover:not(:disabled),
.sb-action-pill.bench-pill.active-bench {
  background: #38bdf8;
  color: #090d16;
}

.sb-action-pill:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* 5-Position TikTok-Style START vs BENCH Depth Chart */
.depth-chart-table {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.depth-row {
  display: grid;
  grid-template-columns: 38px 1fr 28px 1fr;
  gap: 5px;
  align-items: center;
}

.depth-pos-badge {
  background: #1e293b;
  color: var(--accent-gold-bright);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.82rem;
  text-align: center;
  padding: 9px 0;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.depth-slot-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  min-width: 0;
  transition: border-color 0.14s, background 0.14s;
}

.depth-slot-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.depth-mon-sprite {
  width: 34px;
  height: 34px;
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.depth-slot-btn.starter-slot {
  border-left: 3px solid #10b981;
}

.depth-slot-btn.bench-slot {
  border-left: 3px solid #38bdf8;
}

.depth-slot-btn:hover {
  border-color: var(--accent-gold);
  background: rgba(30, 41, 59, 0.92);
}

.depth-tier-tag {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.depth-tier-tag.start-tag {
  color: #4ade80;
}

.depth-tier-tag.bench-tag {
  color: #38bdf8;
}

.depth-mon-name {
  font-family: var(--font-display);
  font-size: 0.80rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.depth-mon-fit {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  color: #94a3b8;
}

.depth-swap-btn {
  background: #141e33;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 5px;
  height: 32px;
  width: 28px;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.14s;
}

.depth-swap-btn:hover:not(:disabled) {
  border-color: var(--accent-gold);
  color: var(--accent-gold-bright);
  background: #1e293b;
}

.depth-swap-btn:disabled {
  opacity: 0.30;
  cursor: not-allowed;
}

.court-hotspot.open-bench-slot {
  border-color: rgba(56, 189, 248, 0.90) !important;
  background: rgba(56, 189, 248, 0.16) !important;
  animation: open-bench-pulse 1.3s ease-in-out infinite;
}

@keyframes open-bench-pulse {
  50% {
    border-color: rgba(56, 189, 248, 0.28) !important;
    background: rgba(56, 189, 248, 0.05) !important;
  }
}

/* ★ Legendary Star Badges & 3-Legendary Cap Pills */
.pcard-sprite-wrap {
  position: relative;
}

.pcard-sprite-star {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 17px;
  height: 17px;
  border-radius: 99px;
  background: #facc15;
  color: #090d16;
  font-size: 0.68rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #090d16;
  box-shadow: 0 2px 6px rgba(250, 204, 21, 0.55);
  pointer-events: none;
}

.legend-star-inline {
  color: #facc15;
  font-weight: 900;
  text-shadow: 0 0 8px rgba(250, 204, 21, 0.45);
}

.header-pill-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
}

.depth-slot-btn.legend-slot {
  border-color: rgba(250, 204, 21, 0.55);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.10), rgba(15, 23, 42, 0.88));
}

.pcard-name.legend-name {
  color: #fde047;
}

.chip-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  align-self: center;
  margin-right: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Placeholder shown in the challenge panel while the reel is still spinning */
.spin-wait-note {
  border: 1px dashed rgba(245, 158, 11, 0.45);
  border-radius: 8px;
  padding: 18px 14px;
  text-align: center;
  background: rgba(245, 158, 11, 0.06);
}

.spin-wait-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--accent-gold-bright);
}

.spin-wait-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Broadcast Sponsor / Display Ad Unit */
.sponsor-ad-unit {
  border: 1px dashed rgba(245, 158, 11, 0.42);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(9, 13, 22, 0.96));
  padding: 10px 12px;
}

.sponsor-ad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.sponsor-ad-tag {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #f59e0b;
}

.sponsor-remove-btn {
  background: rgba(245, 158, 11, 0.16);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 99px;
  padding: 2px 8px;
  font-size: 0.66rem;
  font-weight: 800;
  cursor: pointer;
}

.sponsor-remove-btn:hover {
  background: #f59e0b;
  color: #090d16;
}

.sponsor-ad-body {
  background: rgba(9, 13, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  padding: 9px 11px;
}

.sponsor-ad-headline {
  font-family: var(--font-display);
  font-size: 0.80rem;
  font-weight: 900;
  color: #f8fafc;
  margin-bottom: 3px;
}

.sponsor-ad-copy {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.35;
}


/* ============================================================================
   HOME LANDING (mode picker), SEASON REVEAL, STREAK / TARGET PILLS
   ============================================================================ */
.home-card .side-card-title {
  margin-bottom: 8px;
}

.home-mode-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.home-mode-btn:hover {
  background: var(--bg-card-hover);
  border-color: rgba(245, 158, 11, 0.55);
}

.home-mode-btn:active {
  transform: scale(0.99);
}

.home-mode-btn.home-mode-primary {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(245, 158, 11, 0.06) 100%);
  border-color: var(--accent-gold);
}

.home-mode-btn.home-mode-daily {
  border-color: rgba(56, 189, 248, 0.45);
}

.home-mode-btn.home-mode-daily.is-done {
  border-color: rgba(16, 185, 129, 0.5);
}

.home-mode-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.home-mode-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 3px;
  line-height: 1.35;
}

.daily-countdown {
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  font-weight: 700;
}

.home-streak {
  display: inline-block;
  margin-top: 7px;
  padding: 2px 9px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-steps {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.45;
}

.home-steps li + li {
  margin-top: 5px;
}

.target-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 99px;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Season reveal: tiles start dark and flip game by game; the rest of the sheet waits */
.game-tile.tile-pending {
  background: #1e293b;
  color: #475569;
}

.reveal-hidden {
  opacity: 0;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
}

.reveal-hint {
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@keyframes banner-pop {
  0% { transform: scale(0.85); opacity: 0; }
  60% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.recap-banner.banner-pop {
  animation: banner-pop 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.recap-streak-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.streak-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold-bright);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.86rem;
}

.streak-pill.pill-good {
  background: rgba(16, 185, 129, 0.16);
  border-color: var(--accent-emerald);
  color: #6ee7b7;
}

.streak-pill.pill-bad {
  background: rgba(239, 68, 68, 0.14);
  border-color: var(--accent-crimson);
  color: #fca5a5;
}

.streak-sub {
  flex-basis: 100%;
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .recap-banner.banner-pop {
    animation: none;
  }
}

/* ============================================================================
   EASTER EGG CALLOUTS & INLINE POSITION QUICK-PICK BAR
   ============================================================================ */
.fit-easter-egg {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(56, 189, 248, 0.12) 100%);
  border: 1px solid var(--accent-gold);
}

.fit-easter-egg .fit-callout-tag {
  color: var(--accent-gold-bright);
}

.fit-callout-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 3px;
  line-height: 1.35;
}

.pcard-inline-pos-bar {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
  padding: 7px 8px;
  border-radius: 7px;
  background: rgba(9, 13, 22, 0.88);
  border: 1px solid rgba(74, 222, 128, 0.42);
}

.pcard-inline-pos-bar.inline-bench {
  border-color: rgba(56, 189, 248, 0.48);
}

.pcard-inline-pos-lbl {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #86efac;
}

.pcard-inline-pos-bar.inline-bench .pcard-inline-pos-lbl {
  color: #7dd3fc;
}

.pcard-inline-pos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.pcard-inline-pos-btn {
  padding: 7px 2px;
  font-size: 0.80rem;
}

/* ============================================================================
   VISUAL POKÉMON POOL STRIP & SCOUTING SPOTLIGHT HERO
   ============================================================================ */
.pool-strip-label {
  margin-top: 2px;
  margin-bottom: 6px;
}

.pool-sprite-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 7px;
  max-height: 210px;
  overflow-y: auto;
  padding: 2px 2px 6px;
  margin-bottom: 8px;
}

.pool-sprite-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  padding: 7px 5px 6px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.90);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.14s ease, transform 0.12s ease, background-color 0.14s ease;
}

.pool-sprite-tile:hover:not(:disabled) {
  border-color: rgba(250, 204, 21, 0.72);
  transform: translateY(-1px);
}

.pool-sprite-tile.active-tile {
  border: 2px solid var(--accent-emerald);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.30);
}

.pool-sprite-tile.legend-tile {
  border-color: rgba(250, 204, 21, 0.65);
}

.pool-sprite-tile.disabled-tile {
  opacity: 0.38;
  cursor: not-allowed;
}

.pool-tile-art-wrap {
  position: relative;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pool-tile-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.55));
}

.pool-tile-star {
  position: absolute;
  top: -3px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 99px;
  background: #facc15;
  color: #090d16;
  font-size: 0.65rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #090d16;
}

.pool-tile-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.78rem;
  line-height: 1.1;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pool-tile-meta {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.66rem;
  color: var(--text-muted);
}

.sb-spotlight-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(9, 13, 22, 0.92);
  border: 1.5px solid rgba(148, 163, 184, 0.24);
}

.sb-spotlight-hero.hero-legend {
  border-color: rgba(250, 204, 21, 0.65);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.12), rgba(9, 13, 22, 0.95));
}

.sb-hero-sprite-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.25), rgba(9, 13, 22, 0.96));
  border: 2px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.50);
}

.sb-hero-sprite-img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.60));
}

.sb-hero-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sb-hero-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.sb-hero-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.18rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.sb-hero-phys {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

.sb-hero-stats-grid {
  margin-top: 2px;
}

/* ============================================================================
   MOBILE-OPTIMIZED RESPONSIVE LAYOUT (PHONES & COMPACT TABLETS)
   ============================================================================ */
@media (max-width: 820px) {
  .broadcast-header {
    position: sticky;
    top: 0;
    z-index: 60;
    padding: 8px 10px;
    gap: 6px;
    backdrop-filter: blur(10px);
    background: rgba(13, 19, 32, 0.96);
  }

  .brand-cluster {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .brand-subtitle {
    display: none;
  }

  .brand-badge {
    font-size: 0.98rem;
    padding: 3px 8px;
  }

  .brand-title {
    font-size: 1.12rem;
  }

  .mode-nav {
    display: grid;
    grid-template-columns: 1.28fr 0.98fr 0.78fr 0.96fr;
    gap: 5px;
    width: 100%;
    padding-bottom: 0;
    overflow: visible;
  }

  .nav-pill {
    width: 100%;
    text-align: center;
    padding: 8px 3px;
    font-size: 0.74rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .arena-workspace {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 8px 10px 28px;
  }

  .court-stage-wrap {
    padding: 6px;
    border-radius: 10px;
  }

  .court-footer-bar {
    display: none;
  }

  /* Bigger tap targets on the mobile court */
  .court-hotspot {
    width: 14.5%;
    height: 18.5%;
  }

  /* Hide the all-dashes YOUR TEAM card while a run is still in progress on phones */
  .telemetry-card.telemetry-hidden-during-run {
    display: none;
  }

  .side-panel-stack {
    gap: 10px;
  }

  .side-card {
    padding: 12px;
  }

  /* Slot-machine reel overlay scaled to fit any phone viewport cleanly */
  .roll-card {
    --reel-h: 64px;
    width: min(94%, 360px);
    padding: 14px 12px;
    gap: 8px;
  }

  .roll-title {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-align: center;
  }

  .reels {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }

  .reel {
    width: 100%;
    min-width: 0;
  }

  .reel-win {
    width: 100%;
  }

  .reel.mon {
    grid-column: 1 / -1;
  }

  .reel.mon .reel-win {
    width: 100%;
  }

  .reel-item b {
    font-size: 1.22rem;
  }

  .reel-item small {
    font-size: 0.68rem;
  }

  .reel-item .reel-type-pill {
    font-size: 1.05rem;
    padding: 4px 10px;
  }

  .reel-item.mon {
    gap: 8px;
    padding: 0 10px;
  }

  .reel-item.mon img {
    height: 48px;
  }

  .reel-item.mon b {
    font-size: 1.15rem;
  }

  /* Stack Start & Bench tickets vertically on phones so the 5 position buttons are wide & thumb-friendly */
  .sb-slots-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .sb-ticket {
    padding: 10px;
  }

  .sb-pos-quick-grid {
    gap: 6px;
    margin-top: 6px;
  }

  .sb-pos-btn {
    padding: 9px 4px;
    font-size: 0.86rem;
    min-height: 38px;
  }

  .reroll-btn {
    padding: 9px 6px;
    font-size: 0.76rem;
    min-height: 38px;
  }

  .sb-action-pill {
    padding: 9px 10px;
    font-size: 0.82rem;
    min-height: 38px;
  }

  .pcard-inline-pos-btn {
    padding: 9px 4px;
    font-size: 0.86rem;
    min-height: 38px;
  }

  .pcard-sprite-wrap {
    width: 86px;
    height: 86px;
  }

  .pcard-sprite-img {
    width: 74px;
    height: 74px;
  }

  .sb-hero-sprite-wrap {
    width: 102px;
    height: 102px;
  }

  .sb-hero-sprite-img {
    width: 88px;
    height: 88px;
  }

  .pool-sprite-strip {
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    max-height: 196px;
  }

  .pool-tile-art-wrap {
    width: 62px;
    height: 62px;
  }

  .pool-tile-img {
    width: 58px;
    height: 58px;
  }

  /* Modals on phones */
  .broadcast-dialog {
    width: 96vw;
    max-width: 96vw;
    margin: auto;
    border-radius: 12px;
  }

  .dlg-header {
    padding: 12px 14px;
  }

  .dlg-body {
    padding: 12px 14px 18px;
    max-height: calc(92dvh - 54px);
  }

  .recap-record-big {
    font-size: 3.1rem;
  }

  .fit-callouts-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .fit-callout-sprite-wrap {
    width: 66px;
    height: 66px;
  }

  .fit-callout-sprite {
    width: 58px;
    height: 58px;
  }

  .bracket-board {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .standings-table th,
  .standings-table td {
    padding: 5px 6px;
  }

  .st-team-sub {
    font-size: 0.63rem;
  }

  .po-games-strip {
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  }

  /* Hide raw seed column on narrow phone Best Runs table so it never overflows horizontally */
  .lb-table th:nth-child(6),
  .lb-table td.lb-seed {
    display: none;
  }

  .lb-table th,
  .lb-table td {
    padding: 8px 6px;
    font-size: 0.80rem;
  }
}

@media (max-width: 480px) {
  .playoff-rounds-grid {
    grid-template-columns: 1fr;
  }

  .home-mode-btn {
    padding: 13px 14px;
  }

  .home-mode-title {
    font-size: 1.18rem;
  }
}


/* ============================================================================
   TODAY'S TRAINERS (social Daily comparison), REPORT DIALOG, FOOTER, SCOUT'S SURPRISE
   ============================================================================ */
.trainers-compare-wrap {
  margin: 4px 0 14px;
}

.trainers-compare-wrap[hidden] {
  display: none !important;
}

.trainers-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(15, 23, 42, 0.92) 55%);
  border: 1px solid rgba(250, 204, 21, 0.45);
  border-radius: 12px;
  padding: 12px 14px;
}

.trainers-hdr {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.trainers-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--accent-gold-bright);
}

.trainers-sub {
  font-size: 0.70rem;
  color: var(--text-muted);
}

.trainers-headline {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
}

.trainers-headline .tr-accent {
  color: var(--accent-gold-bright);
}

.trainers-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.trainers-pill {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(9, 13, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
}

.trainers-pill strong {
  color: #fde047;
}

.trainers-dist {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-top: 10px;
}

.trainers-dist-col {
  text-align: center;
}

.trainers-dist-bar-wrap {
  height: 38px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.trainers-dist-bar {
  width: 70%;
  min-height: 3px;
  border-radius: 4px 4px 0 0;
  background: rgba(148, 163, 184, 0.45);
}

.trainers-dist-col.is-you .trainers-dist-bar {
  background: linear-gradient(180deg, #fde047, #f59e0b);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.35);
}

.trainers-dist-lbl {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-top: 3px;
  white-space: nowrap;
}

.trainers-dist-col.is-you .trainers-dist-lbl {
  color: #fde047;
}

.trainers-rarity {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 0.78rem;
  color: #e2e8f0;
}

.trainers-rarity-score {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  color: #fde047;
}

.trainers-rarity-sub {
  color: var(--text-muted);
  font-size: 0.70rem;
}

.trainers-popular {
  margin-top: 8px;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.trainers-popular strong {
  color: #f8fafc;
}

.trainers-empty {
  font-size: 0.80rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Report a problem */
.report-intro {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin: 0 0 10px;
}

.report-textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 110px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(9, 13, 22, 0.9);
  color: #f8fafc;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.4;
}

.report-textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.report-meta {
  font-size: 0.70rem;
  color: var(--text-muted);
  margin: 8px 0 12px;
  word-break: break-all;
}

.report-actions {
  grid-template-columns: 1fr 1fr;
}

.report-changelog-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Footer */
.site-footer {
  max-width: 1500px;
  margin: 18px auto 28px;
  padding: 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.70rem;
  color: var(--text-muted);
}

.site-footer-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.site-footer a,
.link-btn {
  color: #cbd5e1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.site-footer a:hover,
.link-btn:hover {
  color: var(--accent-gold-bright);
}

/* Scout's Surprise roll accent */
.roll-card.mode-surprise {
  border-color: #fbbf24;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.45), 0 18px 48px rgba(0, 0, 0, 0.55), 0 0 28px rgba(245, 158, 11, 0.28);
}

.roll-card.mode-surprise .roll-title {
  color: #fde047;
}

.surprise-chip {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.6);
  color: #fde047;
  margin-left: 6px;
  vertical-align: middle;
}

@media (max-width: 560px) {
  .trainers-headline {
    font-size: 1.12rem;
  }

  .site-footer {
    justify-content: center;
    text-align: center;
  }
}
