/* ============================================================
   BANG BANG SHRIMP CUP — Main Stylesheet
   Color palette derived from the vintage shrimp golfer logo
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
  /* Background scale */
  --bg-900: #090E0A;
  --bg-800: #0E1A10;
  --bg-700: #132115;
  --bg-600: #1A2E1D;
  --bg-500: #1E3622;
  --bg-400: #253E29;
  --bg-300: #2E4D33;
  --bg-200: #3A5E40;
  --bg-100: #4A7250;

  /* Accent colors from logo */
  --orange:       #D85C22;
  --orange-light: #E87B45;
  --orange-dark:  #AA4618;
  --gold:         #E8A828;
  --gold-light:   #F0BE55;
  --gold-dark:    #B87E18;
  --blue:         #4D7FA8;
  --blue-light:   #6A9EC5;

  /* Text */
  --cream:        #F0E4C0;
  --cream-muted:  #C8B896;
  --text-muted:   #8A7C60;
  --text-dark:    #4A3F2E;

  /* Borders */
  --border:       rgba(58, 94, 64, 0.6);
  --border-light: rgba(90, 135, 86, 0.4);
  --border-gold:  rgba(232, 168, 40, 0.4);

  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-heading: 'Oswald', sans-serif;
  --font-body:    'Lato', sans-serif;

  /* Spacing */
  --nav-height: 70px;
  --radius:     8px;
  --radius-lg:  16px;

  /* Shadows */
  --shadow:     0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.7);
  --glow-orange: 0 0 20px rgba(216,92,34,0.3);
  --glow-gold:   0 0 20px rgba(232,168,40,0.3);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-800);
  color: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-light); }
button { cursor: pointer; font-family: var(--font-body); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-900); }
::-webkit-scrollbar-thumb { background: var(--bg-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange-dark); }

/* ── Utility Classes ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.text-orange  { color: var(--orange); }
.text-gold    { color: var(--gold); }
.text-cream   { color: var(--cream); }
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.badge-orange  { background: var(--orange-dark); color: var(--cream); border: 1px solid var(--orange); }
.badge-gold    { background: rgba(232,168,40,.15); color: var(--gold); border: 1px solid var(--border-gold); }
.badge-green   { background: rgba(74,114,80,.3); color: #7DC27A; border: 1px solid rgba(74,114,80,.5); }
.badge-blue    { background: rgba(77,127,168,.2); color: var(--blue-light); border: 1px solid rgba(77,127,168,.4); }
.badge-muted   { background: rgba(138,124,96,.15); color: var(--text-muted); border: 1px solid rgba(138,124,96,.3); }

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: linear-gradient(180deg, var(--bg-900) 0%, rgba(9,14,10,.95) 100%);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-brand img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-brand-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: .06em;
  color: var(--cream);
  line-height: 1;
}
.nav-brand-sub {
  font-family: var(--font-heading);
  font-size: .65rem;
  letter-spacing: .12em;
  color: var(--gold);
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
}

/* Desktop: fixed overlay aligned with the navbar container.
   Lives at body level so its z-index is in the root stacking context,
   not trapped inside navbar's backdrop-filter compositing layer. */
@media (min-width: 769px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(100%, 1200px);
    height: var(--nav-height);
    justify-content: flex-end;
    padding: 0 20px;
    z-index: 1001;
    pointer-events: none;
  }
  .nav-links > li { pointer-events: auto; }
}

.nav-links li { position: relative; }

.nav-links a {
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cream-muted);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--orange-light);
  background: rgba(216,92,34,.12);
}

/* Dropdown */
.nav-has-dropdown { position: relative; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 180px;
  background: var(--bg-700);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  /* Invisible padding bridges the gap so the mouse stays inside the li */
  padding-top: 8px;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
}
.nav-links li:hover .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 10px 16px;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
}
.nav-dropdown a:last-child { border-bottom: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.5rem;
  padding: 8px;
}

/* ── Page Layout ── */
.page-content {
  padding-top: calc(var(--nav-height) + 40px);
  min-height: 100vh;
}

/* ── Hero Section ── */
.hero {
  position: relative;
  padding: 80px 0 60px;
  background: radial-gradient(ellipse at top center, var(--bg-600) 0%, var(--bg-800) 60%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/logo/logo-primary.png') center/contain no-repeat;
  opacity: .04;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-logo {
  max-width: 320px;
  margin: 0 auto 32px;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.8));
  animation: float 6s ease-in-out infinite;
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: .04em;
  color: var(--cream);
  line-height: .95;
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}
.hero-title span { color: var(--orange); }

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: .2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 8px;
}

.hero-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  margin: 24px auto;
}

.hero-desc {
  max-width: 680px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  color: var(--cream-muted);
  font-style: italic;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.hero-stat {
  text-align: center;
}
.hero-stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--orange);
  line-height: 1;
}
.hero-stat-label {
  font-family: var(--font-heading);
  font-size: .7rem;
  letter-spacing: .15em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── Section Headers ── */
.section {
  padding: 60px 0;
}
.section-alt {
  background: var(--bg-700);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-label {
  font-family: var(--font-heading);
  font-size: .75rem;
  letter-spacing: .25em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: .04em;
  color: var(--cream);
  line-height: 1;
}
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--orange);
  margin: 16px auto 0;
  border-radius: 2px;
}
.section-sub {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: .95rem;
}

/* ── Page Header (internal pages) ── */
.page-header {
  background: linear-gradient(180deg, var(--bg-700) 0%, var(--bg-800) 100%);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 32px;
  margin-bottom: 48px;
}
.page-header-inner {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}
.page-header-icon {
  font-size: 3rem;
  line-height: 1;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: .04em;
  color: var(--cream);
  line-height: 1;
}
.page-header p {
  color: var(--text-muted);
  font-size: .9rem;
  margin-top: 6px;
}

/* ── Cards ── */
.card {
  background: var(--bg-600);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-light);
}
.card-body { padding: 24px; }
.card-header-bar {
  padding: 16px 24px;
  background: var(--bg-700);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cream-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Player Cards ── */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.player-card {
  background: var(--bg-600);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
}
.player-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.7);
  border-color: var(--orange-dark);
}
.player-card.captain {
  border-color: var(--gold-dark);
}
.player-card.captain::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
}

.player-photo-wrap {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
  background: var(--bg-500);
}
.player-photo-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .4s;
}
.player-card:hover .player-photo-wrap img {
  transform: scale(1.05);
}

.player-team-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 6px 12px;
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
}
.player-team-bar.team-a {
  background: rgba(216,92,34,.85);
  color: var(--cream);
}
.player-team-bar.team-b {
  background: rgba(77,127,168,.85);
  color: var(--cream);
}

.player-info { padding: 20px; }
.player-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 2px;
}
.player-nickname {
  font-style: italic;
  color: var(--gold);
  font-size: .85rem;
  margin-bottom: 12px;
}
.player-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.player-bio {
  font-size: .875rem;
  color: var(--cream-muted);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* ── Leaderboard / Tables ── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
thead {
  background: var(--bg-700);
  border-bottom: 2px solid var(--border);
}
thead th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
thead th:first-child { padding-left: 20px; }

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,.03); }
tbody tr.leader { background: rgba(232,168,40,.06); }

tbody td {
  padding: 14px 16px;
  color: var(--cream-muted);
  vertical-align: middle;
}
tbody td:first-child {
  padding-left: 20px;
  color: var(--cream);
  font-weight: 700;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 700;
}
.rank-1 { background: var(--gold-dark); color: var(--bg-900); }
.rank-2 { background: #8A9BA8; color: var(--bg-900); }
.rank-3 { background: #8B6040; color: var(--cream); }
.rank-other { background: var(--bg-400); color: var(--text-muted); }

.score-cell {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
}
.score-plus { color: #5CB85C; }
.score-even { color: var(--cream-muted); }
.score-minus { color: #D9534F; }

/* ── Forms & Inputs ── */
.form-group {
  margin-bottom: 20px;
}
label {
  display: block;
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-bottom: 8px;
}
input, select, textarea {
  width: 100%;
  background: var(--bg-700);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: .95rem;
  padding: 10px 14px;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(216,92,34,.15);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
select option { background: var(--bg-700); color: var(--cream); }
textarea { resize: vertical; min-height: 80px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: none;
  transition: all .2s;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--orange);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--orange-light);
  color: var(--cream);
  transform: translateY(-1px);
  box-shadow: var(--glow-orange);
}

.btn-gold {
  background: var(--gold-dark);
  color: var(--bg-900);
}
.btn-gold:hover {
  background: var(--gold);
  color: var(--bg-900);
  transform: translateY(-1px);
  box-shadow: var(--glow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--cream-muted);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange-light);
  background: rgba(216,92,34,.08);
}

.btn-sm {
  padding: 6px 14px;
  font-size: .75rem;
}
.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}
.btn-block {
  width: 100%;
  justify-content: center;
}

.btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--cream-muted); }
.tab-btn.active {
  color: var(--orange-light);
  border-bottom-color: var(--orange);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Score Entry Grid ── */
.score-grid {
  display: grid;
  grid-template-columns: auto repeat(18, minmax(42px, 1fr));
  gap: 2px;
  font-size: .82rem;
  overflow-x: auto;
}
.score-grid-header {
  background: var(--bg-700);
  padding: 8px 10px;
  font-family: var(--font-heading);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  border-radius: 4px;
}
.score-grid-name {
  padding: 8px 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--cream);
  background: var(--bg-600);
  border-radius: 4px;
  display: flex;
  align-items: center;
}
.score-grid-cell {
  background: var(--bg-600);
  border-radius: 4px;
  overflow: hidden;
}
.score-grid-cell input {
  background: transparent;
  border: none;
  border-radius: 0;
  text-align: center;
  padding: 8px 4px;
  color: var(--cream);
  font-size: .82rem;
}
.score-grid-cell input:focus {
  background: rgba(216,92,34,.15);
  box-shadow: inset 0 0 0 2px var(--orange);
}
.score-grid-total {
  background: var(--bg-500);
  padding: 8px 10px;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gold);
  border-radius: 4px;
}

/* ── Bet Cards ── */
.bets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.bet-card {
  background: var(--bg-600);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  transition: all .2s;
}
.bet-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}
.bet-card.bet-won { border-color: rgba(92,184,92,.4); }
.bet-card.bet-lost { border-color: rgba(217,83,79,.4); }

.bet-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}
.bet-desc {
  color: var(--cream);
  font-size: .95rem;
  margin: 8px 0 12px;
  line-height: 1.5;
}
.bet-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--text-muted);
}
.bet-riders {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.bet-riders-label {
  font-family: var(--font-heading);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.rider-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rider-chip {
  padding: 3px 10px;
  background: rgba(77,127,168,.2);
  border: 1px solid rgba(77,127,168,.3);
  border-radius: 20px;
  font-size: .75rem;
  color: var(--blue-light);
}

/* ── Drinking Games ── */
.drinking-bracket {
  overflow-x: auto;
  padding-bottom: 20px;
}

.game-card {
  background: var(--bg-600);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all .2s;
}
.game-card:hover {
  border-color: var(--blue-light);
  box-shadow: 0 4px 20px rgba(77,127,168,.15);
}
.game-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: .05em;
  color: var(--cream);
  margin-bottom: 4px;
}
.game-subtitle {
  font-family: var(--font-heading);
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 16px;
}

.bracket-round {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 200px;
}
.bracket-match {
  background: var(--bg-700);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.bracket-team {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
  cursor: pointer;
}
.bracket-team:last-child { border-bottom: none; }
.bracket-team.winner { background: rgba(232,168,40,.12); }
.bracket-team.winner .team-name { color: var(--gold); font-weight: 700; }
.bracket-team.loser .team-name { color: var(--text-muted); }
.bracket-team .team-score {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--cream);
}

/* ── Schedule ── */
.schedule-day {
  background: var(--bg-600);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.schedule-day-header {
  background: linear-gradient(135deg, var(--bg-500) 0%, var(--bg-600) 100%);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.schedule-day-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: .04em;
  color: var(--cream);
  line-height: 1;
}
.schedule-day-date {
  font-family: var(--font-heading);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}
.schedule-events { padding: 0; }
.schedule-event {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.schedule-event:last-child { border-bottom: none; }
.schedule-time {
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 600;
  color: var(--gold);
  min-width: 80px;
  padding-top: 2px;
}
.schedule-event-body h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 4px;
}
.schedule-event-body p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Draft ── */
.draft-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.draft-team-panel {
  background: var(--bg-600);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.draft-team-header {
  padding: 20px 24px;
  text-align: center;
}
.draft-team-header.team-a {
  background: linear-gradient(135deg, rgba(216,92,34,.3) 0%, rgba(216,92,34,.1) 100%);
  border-bottom: 2px solid var(--orange-dark);
}
.draft-team-header.team-b {
  background: linear-gradient(135deg, rgba(77,127,168,.3) 0%, rgba(77,127,168,.1) 100%);
  border-bottom: 2px solid var(--blue);
}
.draft-team-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: .05em;
  color: var(--cream);
}
.draft-team-captain {
  font-family: var(--font-heading);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 4px;
}
.draft-team-captain.team-a { color: var(--orange-light); }
.draft-team-captain.team-b { color: var(--blue-light); }

.draft-roster {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.draft-player-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-700);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.draft-player-slot.empty {
  opacity: .4;
  border-style: dashed;
}
.draft-slot-num {
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 24px;
}
.draft-slot-photo {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
}
.draft-slot-info .name {
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 600;
  color: var(--cream);
}
.draft-slot-info .hcp {
  font-size: .75rem;
  color: var(--text-muted);
}

.available-pool {
  background: var(--bg-600);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 24px;
}
.available-players {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.available-player {
  background: var(--bg-700);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.available-player:hover {
  border-color: var(--gold-dark);
  background: rgba(232,168,40,.08);
  transform: translateY(-2px);
}
.available-player img {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  margin: 0 auto 8px;
}
.available-player .name {
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 600;
  color: var(--cream);
}
.available-player .hcp {
  font-size: .7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Admin Auth Panel ── */
.admin-gate {
  background: var(--bg-700);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}
.admin-gate h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 8px;
}
.admin-gate p {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 24px;
}

/* ── Toast Notifications ── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--bg-500);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 14px 20px;
  min-width: 280px;
  box-shadow: var(--shadow-lg);
  animation: slideIn .3s ease;
  font-size: .9rem;
  color: var(--cream);
}
.toast.success { border-left-color: #5CB85C; }
.toast.error   { border-left-color: #D9534F; }
.toast.info    { border-left-color: var(--blue); }
@keyframes slideIn {
  from { transform: translateX(100px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--bg-600);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(.95);
  transition: transform .2s;
}
.modal-overlay.open .modal { transform: scale(1); }

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: .04em;
  color: var(--cream);
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color .2s;
}
.modal-close:hover { color: var(--cream); }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ── Team Colors ── */
.team-a-accent { color: var(--orange-light); }
.team-b-accent { color: var(--blue-light); }
.team-a-bg { background: rgba(216,92,34,.12); border-color: rgba(216,92,34,.3); }
.team-b-bg { background: rgba(77,127,168,.12); border-color: rgba(77,127,168,.3); }

/* ── Footer ── */
footer {
  background: var(--bg-900);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  margin-top: 80px;
}
footer .footer-logo { height: 48px; margin: 0 auto 16px; }
footer p {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.8;
}
footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
footer .footer-links a {
  font-family: var(--font-heading);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
footer .footer-links a:hover { color: var(--orange-light); }

/* ── Info Banner ── */
.info-banner {
  background: linear-gradient(135deg, rgba(232,168,40,.1) 0%, rgba(216,92,34,.1) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.info-banner .icon { font-size: 1.5rem; flex-shrink: 0; }
.info-banner p { font-size: .9rem; color: var(--cream-muted); line-height: 1.5; }
.info-banner strong { color: var(--gold); }

/* ── Vibe Power Rankings ── */
.vibe-warning {
  margin-top: 10px;
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.6;
  border-left: 3px solid var(--shrimp);
  padding-left: 12px;
  max-width: 680px;
}
.vibe-warning strong { color: var(--cream-muted); }

.vibe-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 28px;
  padding: 14px 18px;
  background: var(--bg-800);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .78rem;
  color: var(--text-muted);
}

.vibe-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-800);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
  transition: border-color .2s;
}
.vibe-card:hover { border-color: var(--border-light); }
.vibe-card--gold   { border-color: var(--gold); background: linear-gradient(135deg, var(--bg-800) 80%, rgba(232,168,40,.08)); }
.vibe-card--silver { border-color: #a0a0a0; background: linear-gradient(135deg, var(--bg-800) 80%, rgba(160,160,160,.06)); }
.vibe-card--bronze { border-color: #b87333; background: linear-gradient(135deg, var(--bg-800) 80%, rgba(184,115,51,.06)); }

.vibe-rank {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-muted);
  min-width: 36px;
  text-align: center;
  line-height: 1;
}
.vibe-card--gold   .vibe-rank { color: var(--gold); }
.vibe-card--silver .vibe-rank { color: #c0c0c0; }
.vibe-card--bronze .vibe-rank { color: #cd7f32; }

.vibe-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.vibe-card--gold   .vibe-photo { border-color: var(--gold); }
.vibe-card--silver .vibe-photo { border-color: #a0a0a0; }
.vibe-card--bronze .vibe-photo { border-color: #b87333; }

.vibe-info { flex: 1; min-width: 0; }
.vibe-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vibe-nickname {
  font-size: .75rem;
  color: var(--text-muted);
  margin: 2px 0 4px;
  font-style: italic;
}
.vibe-tier { font-size: .8rem; color: var(--cream-muted); }

.vibe-score-block {
  text-align: center;
  min-width: 54px;
}
.vibe-score {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}
.vibe-score--pos  { color: #5cb85c; }
.vibe-score--neg  { color: var(--shrimp); }
.vibe-score--zero { color: var(--text-muted); }

@keyframes vibeFlash {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.vibe-flash { animation: vibeFlash .35s ease; }

.vibe-vote-counts {
  display: flex;
  gap: 8px;
  justify-content: center;
  font-size: .72rem;
  margin-top: 4px;
}
.vibe-count-up   { color: #5cb85c; }
.vibe-count-down { color: var(--shrimp); }

.vibe-btns {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vibe-btn {
  width: 40px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-700);
  color: var(--cream-muted);
  font-size: .9rem;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vibe-btn--up:hover   { background: rgba(92,184,92,.2); border-color: #5cb85c; color: #5cb85c; transform: scale(1.1); }
.vibe-btn--down:hover { background: rgba(216,92,34,.2); border-color: var(--shrimp); color: var(--shrimp); transform: scale(1.1); }
.vibe-btn:active { transform: scale(.95); }

@media (max-width: 600px) {
  .vibe-card { gap: 10px; padding: 12px 12px; }
  .vibe-photo { width: 40px; height: 40px; }
  .vibe-nickname { display: none; }
  .vibe-score { font-size: 1.5rem; }
  .vibe-btn { width: 34px; height: 30px; }
}

/* ── Coming Soon ── */
.coming-soon {
  text-align: center;
  padding: 80px 40px;
}
.coming-soon-icon { font-size: 4rem; margin-bottom: 16px; }
.coming-soon h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: .04em;
  color: var(--cream);
  margin-bottom: 12px;
}
.coming-soon p {
  color: var(--text-muted);
  font-size: .95rem;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .draft-board { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: var(--nav-height) 0 0;
    background: var(--bg-900);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    padding: 16px;
    z-index: 1001;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; font-size: .9rem; }
  .nav-dropdown {
    position: static;
    transform: none !important;
    opacity: 1;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--border);
    background: var(--bg-800);
    border-radius: 0;
    margin-left: 16px;
    margin-top: 4px;
    display: none;
  }
  .nav-links li.open .nav-dropdown { display: block; }
  .nav-toggle { display: block; }
  .nav-brand-text { display: none; }

  .players-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .score-grid { font-size: .75rem; }
  .page-header-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 16px; }
  .hero-stat-number { font-size: 2rem; }
  .available-players { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .bets-grid { grid-template-columns: 1fr; }
}
