/* Base colors */
:root {
  --vegas-bg: #0b0b0d;
  --vegas-bg-dark: #111111;
  --vegas-gold: #e6b422;
  --vegas-gold-soft: rgba(230, 180, 34, 0.4);
  --vegas-text-muted: #aaaaaa;
}

body.bg-vegas {
  background: radial-gradient(circle at top, #1b1b22 0, #050507 45%, #000 100%);
  color: #f5f5f5;
  min-height: 100vh;
}

/* Navbar / cards */
.bg-vegas-dark {
  background-color: var(--vegas-bg-dark) !important;
}

.border-gold {
  border: 1px solid var(--vegas-gold) !important;
}

.card.border-gold {
  box-shadow: 0 0 14px rgba(230, 180, 34, 0.08);
}

.border-gold-bottom {
  border-bottom: 1px solid var(--vegas-gold-soft);
}

.card-vegas {
  background: rgba(10, 10, 14, 0.95);
  border: 1px solid rgba(230, 180, 34, 0.25);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
  border-radius: 0.75rem;
}

/* Solid gold Vegas badge */
.badge-vegas-gold {
  background-color: #ffd86b !important;   /* bright gold */
  color: #1a1a1a !important;              /* deep charcoal text */
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  border-radius: 0.4rem;
  text-shadow: 0 0 4px rgba(255, 216, 107, 0.6);
}

/* Outline gold Vegas badge */
.badge-vegas-outline {
  border: 2px solid #ffd86b !important;
  color: #ffd86b !important;
  background-color: transparent !important;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 0.4rem;
  text-shadow: 0 0 4px rgba(255, 216, 107, 0.5);
}


/* Hero */
.vegas-hero {
  min-height: 40vh;
  padding: 2.5rem 0;
  background:
    radial-gradient(circle at top, rgba(230, 180, 34, 0.15), transparent 55%),
    url('https://images.pexels.com/photos/1871508/pexels-photo-1871508.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover no-repeat;
  position: relative;
}

.vegas-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), #050507 80%);
}

.vegas-hero > .container {
  position: relative;
  z-index: 1;
}

/* Typography */
.neon-title {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow:
    0 0 8px rgba(230, 180, 34, 0.9),
    0 0 18px rgba(230, 180, 34, 0.7),
    0 0 32px rgba(255, 255, 255, 0.4);
}

.neon-subtitle {
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--vegas-gold);
  text-shadow: 0 0 6px rgba(196,106,46,0.35);
}

.neon-gold {
  color: var(--vegas-gold) !important;
  text-shadow:
    0 0 6px rgba(230, 180, 34, 0.8),
    0 0 14px rgba(230, 180, 34, 0.6);
}

.text-gold {
  color: var(--vegas-gold) !important;
}

.text-muted-vegas {
  color: var(--vegas-text-muted) !important;
}

/* Table styling */
.table-gold {
  color: var(--vegas-gold) !important;
}

/* Brighten homepage card text */
#next-event,
#latest-winner,
#current-leaders {
  color: #f8f9fa !important; /* bright white */
}

#next-event h6,
#latest-winner h6,
#current-leaders h6 {
  color: #ffd86b !important; /* gold */
}

.card-vegas p,
.card-vegas li {
  color: #e0e0e0 !important; /* light gray */
}


/* Brighten card headers */
.card-vegas .card-header h5 {
  color: #ffd86b !important; /* bright gold */
  font-weight: 600;
}

/* Brighten the tagline under the hero title */
.hero-tagline,
.hero-tagline span {
  color: #ffd86b !important; /* same gold as headers */
}

/* Force gold color on the hero tagline */
.hero-tagline {
  color: #ffd86b !important;
}

.hero-tagline span {
  color: #ffd86b !important;
}

/* Gold badge text override */
.season-gold {
  color: #000 !important; /* or #1b1b1b if you want softer */
  font-weight: 600;
}

/* Solid gold Vegas badge */
.badge-vegas-gold {
  background-color: #ffd86b !important;   /* bright gold */
  color: #1a1a1a !important;              /* deep charcoal text */
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  border-radius: 0.4rem;
  text-shadow: 0 0 4px rgba(255, 216, 107, 0.6);
}

/* Outline gold Vegas badge */
.badge-vegas-outline {
  border: 2px solid #ffd86b !important;
  color: #ffd86b !important;
  background-color: transparent !important;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 0.4rem;
  text-shadow: 0 0 4px rgba(255, 216, 107, 0.5);
}

/* Gold leaderboard headers */
#leaderboardTable thead th,
#cacTable thead th {
  color: #d4af37;
  font-weight: 600;
  border-bottom: 2px solid #d4af37;
  letter-spacing: 0.5px;
}

#cac-kpis .kpi-value {
  color: var(--vegas-gold);
  font-weight: 700;
}

#cac-kpis .kpi-label {
  color: var(--vegas-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
}


#leaderboardTable thead th.sortable:hover,
#cacTable thead th.sortable:hover {
  color: #ffd700;
  cursor: pointer;
}

#cac-kpis .card .small {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.7rem;
  opacity: 0.75;
}

.nav-link.cac-link {
  color: #ffd86b !important;
  font-weight: 600;
}

.nav-link.cac-link:hover {
  color: #fff3b0 !important;
}

.kpi-label {
  color: #f8f9fa;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.7;
}

.kpi-value {
  color: #d4af37;
  font-size: 1.6rem;
  font-weight: 700;
}

.kpi-sub {
  color: #f8f9fa;
  opacity: 0.6;
  font-size: 0.8rem;
}

.page-title {
  color: var(--vegas-gold);
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 2.75rem;
  text-shadow:
    0 0 6px rgba(230, 180, 34, 0.35),
    0 0 18px rgba(230, 180, 34, 0.15);
  margin-bottom: 0.25rem;
}

.page-subtitle {
  color: var(--vegas-text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.page-title{
  color:#f5f5f5;
  font-weight:800;          /* not 900 */
  letter-spacing:1px;
  text-transform:uppercase;

  font-size:2.3rem;         /* smaller base */
  line-height:1.1;

  text-shadow:
    0 0 8px rgba(230,180,34,.35),
    0 0 18px rgba(230,180,34,.18);

  margin-bottom:.25rem;
}

@media (min-width: 992px){
  .page-title{
    font-size:2.8rem;       /* not 3.4rem */
  }
}

/* Optional: consistent subtitle under titles */
.page-subtitle {
  color: rgba(255, 255, 255, 0.70);
  margin-bottom: 1rem;
}

/* Optional: make the title feel like the Leaderboard size */
@media (min-width: 992px) {
  .page-title { font-size: 3rem; }
}

/* Home page: center the 3 summary cards */
.home-draft #next-event,
.home-draft #latest-winner,
.home-draft #current-leaders {
  text-align: center;
}

/* If the header row of those cards isn't centered */
.home-draft .card-header {
  text-align: center;
}

#current-leaders ol {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-left: 0;
}

/* Week notes "Showing Week X notes" label */
.notes-meta {
  font-size: 0.9rem;
  color: rgba(255, 216, 107, 0.85); /* readable gold */
  margin-bottom: 0.5rem;
}

/* ---------- Analytics: mobile-friendly defaults ---------- */

/* Chart container: tall on desktop, tighter on phones */
.chart-box {
  height: 360px;
}
@media (max-width: 576px) {
  .chart-box {
    height: 260px;
  }
}

/* Tighten card padding on small screens */
@media (max-width: 576px) {
  .card-body {
    padding: 0.85rem;
  }
}

/* Tables: slightly smaller type on phones */
@media (max-width: 576px) {
  .table {
    font-size: 0.9rem;
  }
}

/* Hide Avg Minutes column on phones */
@media (max-width: 576px) {
  .col-minutes {
    display: none !important;
  }
}

/* Kill Matrix header labels */
.heatmap-table thead th {
  color: rgba(255, 255, 255, 0.82) !important;
}

/* Base table override */
.heatmap-table {
  background-color: #000;
}

/* Default cell background (dark) */
.heatmap-table td {
  background-color: rgba(0, 0, 0, 0.65) !important;
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 193, 7, 0.25) !important;
}

/* Kill Matrix: make header row match the site table vibe */
.heatmap-table thead th {
  background: rgba(20, 22, 24, 0.95) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 600;
  border-color: rgba(255, 193, 7, 0.25) !important;
}

/* Keep sticky header behaving */
.heatmap-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
}

.km-cell{
  text-align: center;
  font-weight: 500;
  color: rgba(255,255,255,.88);
}

/* Kill Matrix: prevent header name wrapping + keep columns readable */
.kill-matrix th,
.kill-matrix td {
  white-space: nowrap;
}

.kill-matrix th:not(.sticky-col),
.kill-matrix td:not(.sticky-col) {
  min-width: 64px;   /* bump to 70px if you want more breathing room */
  text-align: center;
}

.km-cell{
  text-align: center;
  font-weight: 500;
  color: rgba(255,255,255,.88);
}

/* Zero cells */
.hm-0 {
  background: rgba(0, 0, 0, 0.45) !important;
  color: rgba(255, 255, 255, 0.25);
}

/* Heat levels */
.hm-1 { background: rgba(255, 193, 7, 0.12) !important; }
.hm-2 { background: rgba(255, 193, 7, 0.22) !important; }
.hm-3 { background: rgba(255, 193, 7, 0.35) !important; }
.hm-4 {
  background: rgba(255, 193, 7, 0.5) !important;
  color: #111;
  font-weight: 700;
}

/* Victim header cells: no wrapping + slightly tighter */
.km-victim-head{
  font-size: 0.85rem;
  padding-left: .4rem !important;
  padding-right: .4rem !important;
}

/* Kill Matrix header/axis unify */
.km-axis-gold {
  color: var(--vegas-gold) !important;
  font-weight: 700;
}

.km-axis-blank {
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

/* =========================
   Eliminations — Kill Matrix (single source of truth)
   ========================= */

#killMatrixWrap{
  overflow-x: auto !important;
  overflow-y: visible !important;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

/* Make sure the matrix can be wider than the container (so scroll exists) */
#killMatrixWrap table.km-matrix{
  width: max-content;
  table-layout: auto;
  border-collapse: separate;
}

/* Force cells to have a minimum width so the table can exceed the wrapper on small screens */
#killMatrixWrap td{
  min-width: 44px;
}

/* No wrapping anywhere in the matrix (fix victim name wrap) */
#killMatrixWrap th,
#killMatrixWrap td{
  white-space: nowrap;
}

/* Header band look */
#killMatrixWrap .km-head{
  background: rgba(255,255,255,0.06) !important;
  border-bottom: 1px solid rgba(255,255,255,0.12) !important;
}

#killMatrixWrap .km-gold{
  color: var(--vegas-gold) !important;
  font-weight: 700;
}

/* Vertical Killer axis */
#killMatrixWrap .km-axis-label{
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
  vertical-align: middle;
  background: rgba(255,255,255,0.06) !important;
  border-right: 1px solid rgba(255,255,255,0.12) !important;
  width: 34px;
  min-width: 34px;
  color: var(--vegas-gold) !important;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Killer names gold (match theme) */
#killMatrixWrap .km-killer-name{
  color: var(--vegas-gold) !important;
  font-weight: 700;
}

/* Totals NOT gold */
#killMatrixWrap .km-row-total{
  color: rgba(255,255,255,0.85) !important;
  font-weight: 600;
}

/* Emphasis: 2 = caution yellow, 3+ = red */
#killMatrixWrap td.km-2{ color: #f6c343 !important; font-weight: 800; }
#killMatrixWrap td.km-3p{ color: #ff4d4d !important; font-weight: 900; }

/* Empty cells keep spacing but don’t show text */
#killMatrixWrap td.km-empty{ color: transparent; }

/* --- Vegas Card (authoritative dark background) --- */
.vegas-card {
  background-color: #0b0f16 !important;
  border: 1px solid rgba(196,106,46,0.35) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.55);
}

.vegas-card .card-body {
  background-color: transparent !important;
}

/* Force dark header for tables inside Vegas cards */
.vegas-card .table thead,
.vegas-card .table thead th {
  background-color: #11141a !important;
  color: var(--vegas-gold) !important;
  border-color: rgba(255,255,255,0.08) !important;
}

/* Keep body rows dark */
.vegas-card .table tbody tr {
  background-color: transparent !important;
}

.km-title{
  color: var(--vegas-gold);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(212,175,55,0.35);
}

.analytics-tile {
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.analytics-tile:hover {
  transform: translateY(-2px);
}

/* Improve readability inside analytics tiles */
.analytics-tile .text-muted,
.card.vegas-card .text-muted {
  color: rgba(255, 255, 255, 0.70) !important;
}

.vegas-card .display-6 {
  color: rgba(255, 255, 255, 0.85);
}

/* --- ANALYTICS CARD READABILITY FIX --- */

/* Body text inside vegas cards */
.card.vegas-card .text-muted {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Tile titles */
.analytics-tile .card-title {
  color: #ffffff;
}

/* KPI numbers */
.vegas-card .display-6 {
  color: #ffffff;
  font-weight: 600;
}

/* Analytics Hub tile text (don’t rely on Bootstrap text-muted) */
.hub-tile-title {
  color: rgba(255,255,255,0.92) !important;
  font-weight: 600;
}

.hub-tile-desc {
  color: rgba(255,255,255,0.78) !important;
}

/* Analytics Hub tile readability */
.hub-tile-title{
  color: rgba(255,255,255,0.95);
  font-weight: 650;
}

.hub-tile-desc{
  color: rgba(255,255,255,0.80);
}

.analytics-footer-note {
  color: rgba(255,255,255,0.65);
}

/* =====================================
   Analytics Hub — Production Styling
   ===================================== */

/* Tile base */
.hub-tile {
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.hub-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.65);
}

/* Disabled / Coming Soon tile */
.hub-tile--disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
  transform: none !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}

.hub-tile--disabled .neon-subtitle {
  color: rgba(255,255,255,0.5) !important;
  text-shadow: none !important;
}

/* KPI alignment polish */
#kpi-weeks,
#kpi-players {
  letter-spacing: 1px;
}

/* Subtle uniform spacing under header */
.analytics-hub-header {
  margin-bottom: 1.25rem;
}

/* Tile footer action */
.hub-tile .tile-action {
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

/* Mobile spacing tweak */
@media (max-width: 576px) {
  .hub-tile {
    margin-bottom: 0.5rem;
  }
}

/* =========================================================
   Vegas Theme: Global text token overrides (single source)
   Applies whenever the site is in Vegas mode
   ========================================================= */

body.bg-vegas,
body.bg-vegas-dark {
  /* Core text */
  --bs-body-color: rgba(255,255,255,0.90);
  --bs-body-color-rgb: 255,255,255;

  /* Muted/secondary/tertiary text tokens */
  --bs-secondary-color: rgba(255,255,255,0.72);
  --bs-tertiary-color: rgba(255,255,255,0.62);
  --bs-emphasis-color: rgba(255,255,255,0.92);

  /* Links */
  --bs-link-color: #ffd86b;
  --bs-link-hover-color: #fff3b0;
}

/* Hard-stop Bootstrap helper classes in Vegas mode */
body.bg-vegas .text-muted,
body.bg-vegas .text-body-secondary,
body.bg-vegas .text-secondary,
body.bg-vegas-dark .text-muted,
body.bg-vegas-dark .text-body-secondary,
body.bg-vegas-dark .text-secondary {
  color: var(--bs-secondary-color) !important;
}

body.bg-vegas .text-body-tertiary,
body.bg-vegas .text-tertiary,
body.bg-vegas-dark .text-body-tertiary,
body.bg-vegas-dark .text-tertiary {
  color: var(--bs-tertiary-color) !important;
}

/* Keep small text readable inside vegas cards */
body.bg-vegas .vegas-card .small,
body.bg-vegas .vegas-card small,
body.bg-vegas-dark .vegas-card .small,
body.bg-vegas-dark .vegas-card small {
  color: var(--bs-secondary-color) !important;
}

/* Bronze badge (3rd place) */
.bg-orange {
  background-color: #c46a2e !important;
  color: #111 !important;
}

/* -------------------------------------------------
   Weekly Results: Finish heat-scale badges
   1–3  : green (paid) with $ indicator
   4–10 : green -> yellow
   11–16: yellow -> red
-------------------------------------------------- */

.finish-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  letter-spacing: 0.2px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
}

.finish-badge .cash {
  font-size: 0.85em;
  opacity: 0.95;
}

/* Missing week */
.finish-na {
  background: rgba(255,255,255,0.10) !important;
  color: rgba(255,255,255,0.75) !important;
}

/* Paid (1–3): dark green -> lighter green */
.finish-1 { background: #0b5d1e !important; color: #eaffef !important; }
.finish-2 { background: #147a2b !important; color: #eaffef !important; }
.finish-3 { background: #1e9b3a !important; color: #0b1a10 !important; }

/* 4–10: green -> yellow */
.finish-4  { background: #38b24a !important; color: #07130b !important; }
.finish-5  { background: #57c14b !important; color: #07130b !important; }
.finish-6  { background: #79cf4a !important; color: #07130b !important; }
.finish-7  { background: #9bdd4a !important; color: #07130b !important; }
.finish-8  { background: #bddb4a !important; color: #151505 !important; }
.finish-9  { background: #ddd64a !important; color: #151505 !important; }
.finish-10 { background: #f1d34a !important; color: #151505 !important; }

/* 11–16: yellow -> dark red */
.finish-11 { background: #f0b84a !important; color: #1a0f05 !important; }
.finish-12 { background: #ee9b4a !important; color: #1a0f05 !important; }
.finish-13 { background: #ea7d4a !important; color: #1a0f05 !important; }
.finish-14 { background: #e45b4a !important; color: #ffe9e6 !important; }
.finish-15 { background: #c93a35 !important; color: #ffe9e6 !important; }
.finish-16 { background: #8f1d1b !important; color: #ffe9e6 !important; }

.player-select button.active {
  background: #ffc107;
  color: #000;
  border-color: #ffc107;
  box-shadow: 0 0 6px rgba(255,193,7,0.5);
}