/* =========================================================
   BDO Premier League — Stylesheet
   Polished version of the original stencil/field aesthetic.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --navy-900: #0a131c;
  --navy-800: #0f1b27;
  --navy-700: #16263a;
  --navy-600: #1f3550;
  --field-green: #2d6e3a;
  --field-green-dim: #1d4d2a;
  --gold: #f5b500;
  --gold-soft: #ffd35a;
  --white: #ffffff;
  --gray-100: #e6edf3;
  --gray-300: #b6c2cf;
  --gray-500: #7a8a99;
  --gray-700: #3a4858;
  --accent-cyan: #5bd0f0;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.5);

  --font-display: 'Black Ops One', 'Saira Stencil One', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --container: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--navy-900);
  color: var(--gray-100);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: var(--gold); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }

/* ---------- Top nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 19, 28, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--white);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 22px;
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--field-green) 0%, var(--field-green-dim) 100%);
  display: grid; place-items: center;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 16px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.12);
}
.nav-links {
  display: flex; gap: 6px; list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--gray-100);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.nav-links a.is-active {
  background: var(--field-green);
  color: var(--white);
}
.nav-toggle {
  display: none;
  background: none; border: 0; color: var(--white);
  padding: 8px; cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 820px) {
  .nav-links {
    position: absolute; top: 100%; right: 12px; left: 12px;
    flex-direction: column; gap: 4px;
    background: var(--navy-800);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 10px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 64px;
  overflow: hidden;
  background:
    radial-gradient(900px 400px at 20% -10%, rgba(45, 110, 58, 0.35), transparent 60%),
    radial-gradient(700px 300px at 90% 10%, rgba(91, 208, 240, 0.10), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hero::before {
  /* subtle yard-line stripes evoking turf */
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 119px,
    rgba(255,255,255,0.025) 119px 120px
  );
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
}
.hero-inner {
  position: relative;
  max-width: var(--container); margin: 0 auto;
  padding: 0 24px;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(91, 208, 240, 0.08);
  border: 1px solid rgba(91, 208, 240, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--white);
  margin: 0 0 18px;
  text-shadow: 0 2px 0 rgba(0,0,0,0.4);
}
.hero p.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--gray-300);
  max-width: 720px;
  margin: 0;
}

/* ---------- Section heads ---------- */
.section-head {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 8px;
  margin-bottom: 36px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.06em;
  color: var(--white);
  margin: 0;
}
.section-head .kicker {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
}
.section-head .accent-bar {
  width: 80px; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-top: 6px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.card-hover { transition: transform 0.2s ease, border-color 0.2s ease; }
.card-hover:hover { transform: translateY(-2px); border-color: rgba(245, 181, 0, 0.4); }

.grid {
  display: grid; gap: 22px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 980px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

/* ---------- Home: stat band ---------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.stat {
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.stat .label {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gray-500);
}
.stat .value {
  font-family: var(--font-display);
  font-size: 26px; color: var(--white);
  margin-top: 6px; letter-spacing: 0.04em;
}
.stat .sub { color: var(--gray-300); font-size: 13px; margin-top: 4px; }
@media (max-width: 760px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Owner cards ---------- */
.owner {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.owner:hover { transform: translateY(-3px); border-color: var(--gold); }
.owner-avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--field-green), var(--navy-700));
  display: grid; place-items: center;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.10), 0 6px 16px rgba(0,0,0,0.4);
  margin-bottom: 14px;
}
.owner-name {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 18px;
  color: var(--white);
}
.owner-team { font-size: 13px; color: var(--gray-300); margin-top: 4px; }
.owner-badge {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  background: rgba(245, 181, 0, 0.12);
  color: var(--gold);
  border: 1px solid rgba(245, 181, 0, 0.35);
  padding: 4px 10px; border-radius: 999px;
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,0.06); }
table.data {
  width: 100%; border-collapse: collapse;
  background: var(--navy-800); color: var(--gray-100);
  font-size: 14px;
}
table.data th, table.data td {
  text-align: left; padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
table.data th {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--gold);
  background: var(--navy-700);
}
table.data tbody tr:hover td { background: rgba(255,255,255,0.02); }
table.data td.num { font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; }

/* ---------- Prize tiers ---------- */
.prize-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 760px) { .prize-grid { grid-template-columns: 1fr; } }
.prize {
  border-radius: var(--radius-md);
  padding: 22px; text-align: center;
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.06);
}
.prize.is-first { border-color: rgba(245, 181, 0, 0.55); background: linear-gradient(180deg, rgba(245,181,0,0.10), var(--navy-800)); }
.prize .place {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}
.prize .amount {
  font-family: var(--font-display);
  font-size: 38px; color: var(--white); letter-spacing: 0.04em;
}
.prize .for { color: var(--gray-300); font-size: 13px; margin-top: 4px; }

/* ---------- Survivor bracket ---------- */
.survivor {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 880px) { .survivor { grid-template-columns: repeat(2, 1fr); } }
.survivor-col {
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 18px 16px;
}
.survivor-col h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  font-size: 18px;
  color: var(--gold);
  text-align: center;
}
.survivor-col ul { list-style: none; padding: 0; margin: 0; }
.survivor-col li {
  padding: 6px 0; font-size: 15px;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
  color: var(--gray-100);
}
.survivor-col li:last-child { border-bottom: 0; }
.survivor-col li.out { text-decoration: line-through; color: var(--gray-500); }
.survivor-col li.champ { color: var(--gold); font-weight: 700; }

.champ-callout {
  margin-top: 28px;
  text-align: center;
  background: linear-gradient(180deg, rgba(245,181,0,0.10), var(--navy-800));
  border: 1px solid rgba(245, 181, 0, 0.45);
  border-radius: var(--radius-md);
  padding: 24px;
}
.champ-callout .who {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ---------- Trophy case ---------- */
.trophy {
  display: flex; gap: 18px; align-items: center;
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  transition: border-color 0.2s ease;
}
.trophy:hover { border-color: rgba(245, 181, 0, 0.5); }
.trophy.is-champ {
  background: linear-gradient(180deg, rgba(245,181,0,0.12), var(--navy-800));
  border-color: rgba(245, 181, 0, 0.55);
}
.trophy-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(245,181,0,0.10);
  color: var(--gold);
  flex-shrink: 0;
}
.trophy-icon svg { width: 28px; height: 28px; }
.trophy h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 18px;
  color: var(--white);
}
.trophy .sub { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray-500); margin-top: 2px; }
.trophy .winner { margin-top: 8px; color: var(--gray-100); }
.trophy .winner strong { color: var(--gold); }

/* ---------- Preview / prose ---------- */
.prose {
  max-width: 760px; margin: 0 auto;
  color: var(--gray-100); font-size: 16px;
}
.prose h2 {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  color: var(--white);
  font-size: 26px;
  margin-top: 40px;
  margin-bottom: 12px;
}
.prose h3 {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  color: var(--gold);
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 8px;
}
.prose p { margin: 0 0 14px; color: var(--gray-300); }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; color: var(--gray-300); }

/* ---------- Callout / note ---------- */
.note {
  background: rgba(91, 208, 240, 0.08);
  border-left: 3px solid var(--accent-cyan);
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--gray-100);
  font-size: 14px;
  margin: 14px 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 30px 24px;
  text-align: center;
  color: var(--gray-500);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.site-footer .brand { justify-content: center; margin-bottom: 8px; }
