/* ─── Pylon World Cup 2026 — Brand Theme ─── */

:root {
  /* Brand palette */
  --orange:       #FF7426;   /* primary — pylon body */
  --orange-light: #FF8A47;   /* pylon top cap */
  --orange-dark:  #D9591A;   /* pylon shaded face / hover */
  --purple:       #9945FF;   /* Solana band — secondary accent */
  --teal:         #14F195;   /* Solana band — tertiary */

  /* Soccer-field greens — bright pitch tones */
  --green-pitch:  #2e7d32;   /* vibrant pitch green — header */
  --green-pitch-dk: #1b5e20; /* deeper pitch — header gradient base */
  --green-grass:  #c8e6c9;   /* light fresh-cut grass — body bg */
  --green-line:   #a5d6a7;   /* medium grass — borders */
  --green-mid:    #43a047;   /* mid-pitch — accents */

  /* Functional */
  --bg:           var(--green-grass);
  --surface:      #ffffff;   /* card surface */
  --surface-alt:  #e8f5e9;   /* very light pitch — card sub-headers */
  --border:       var(--green-line);
  --border-strong:#81c784;
  --text:         #1a3a1f;   /* dark green-black, reads on light grass */
  --muted:        #4e6b54;
  --danger:       #dc2626;

  /* Functional accents (semantic) */
  --win:          var(--orange);
  --draw:         var(--purple);
  --lose:         #4a5a52;    /* muted slate-green — picked-loser */

  --radius:       10px;
  --shadow-sm:    0 1px 2px rgba(20,61,29,0.06);
  --shadow-md:    0 2px 8px rgba(20,61,29,0.10);
  --font:         'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* Force backgrounds to print as-is — Chrome strips them by default */
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

html { font-size: 16px; }

html, body {
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

body {
  background-color: var(--bg);
  /* Mowed-pitch stripes — subtle alternating bands */
  background-image: repeating-linear-gradient(
    90deg,
    rgba(46,125,50,0) 0,
    rgba(46,125,50,0) 90px,
    rgba(46,125,50,0.10) 90px,
    rgba(46,125,50,0.10) 180px
  );
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden; /* prevent horizontal scroll on mobile */
}

a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Layout ─── */
.page { max-width: 1100px; margin: 0 auto; padding: 0 16px 60px; }

/* ─── Header / Logo Strip ─── */
.site-header {
  background-color: var(--green-pitch);
  /* Mowed-pitch stripes — slightly darker bands every 60px */
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(0,0,0,0.0) 0,
      rgba(0,0,0,0.0) 60px,
      rgba(0,0,0,0.06) 60px,
      rgba(0,0,0,0.06) 120px
    ),
    linear-gradient(180deg, var(--green-pitch) 0%, var(--green-pitch-dk) 100%);
  margin: 0 -16px 28px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0 0 var(--radius) var(--radius);
  border-bottom: 3px solid var(--orange);
  box-shadow: var(--shadow-md);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img.brand-icon {
  height: 38px;
  width: auto;
  display: block;
}
.brand-wordmark {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  line-height: 1;
}
.brand-wordmark .pp-bold   { font-weight: 800; }
.brand-wordmark .pp-light  { font-weight: 500; opacity: 0.92; }
.brand-tag {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 10px;
  background: rgba(255,255,255,0.18);
  border-radius: 99px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
}
.nav-links { display: flex; gap: 22px; font-size: 0.92rem; }
.nav-links a {
  color: #ffffff;
  font-weight: 500;
  opacity: 0.9;
}
.nav-links a:hover { opacity: 1; text-decoration: none; border-bottom: 2px solid #fff; padding-bottom: 1px; }

/* ─── Hero ─── */
.hero {
  text-align: center;
  padding: 24px 0 28px;
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--text);
}
.hero h1 span { color: var(--orange); }
.hero p { color: var(--muted); font-size: 1rem; max-width: 540px; margin: 0 auto 24px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 12px; }
.pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 0.82rem;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.pill strong { color: var(--orange-dark); }

/* ─── Entry count badge ─── */
.entry-badge {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.entry-badge strong { color: var(--text); }

/* ─── Forms ─── */
.form-section { margin-bottom: 36px; }
.form-section h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
}
.form-section > p.text-muted { margin-top: 8px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field input, .field select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 11px 14px;
  font-size: 0.95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus, .field select:focus { border-color: var(--orange); }

/* ─── Flag utility ─── */
/* All flags rendered at identical dimensions for visual consistency.
   object-fit:cover crops slightly (e.g., Switzerland's square flag → 4:3 frame)
   so every flag occupies the same rectangular footprint. */
.flag {
  display: inline-block;
  width: 24px;
  height: 18px;
  vertical-align: middle;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.10);
  flex-shrink: 0;
  object-fit: cover;
  background: #f4f9f1;
  image-rendering: -webkit-optimize-contrast;
}
/* Smaller flags inside bracket-team-btn keep the same aspect ratio */
.bracket-team-btn .flag {
  width: 20px;
  height: 15px;
}
.team-with-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.team-with-flag .team-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─── Favorites chip grid (multi-select) ─── */
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}
.fav-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.85rem;
  text-align: left;
  transition: all 0.12s;
  color: var(--text);
  font-weight: 500;
  min-width: 0; /* allow flex shrink so all grid columns stay equal */
  overflow: hidden;
}
.fav-chip:hover { border-color: var(--orange); color: var(--orange-dark); }
.fav-chip.selected {
  background: rgba(255, 116, 38, 0.12);
  border-color: var(--orange);
  color: var(--orange-dark);
  font-weight: 700;
}
.fav-chip.selected::before {
  content: '✓';
  color: var(--orange);
  font-weight: 800;
  margin-right: 2px;
  flex-shrink: 0;
}
.fav-chip .flag { width: 20px; height: 15px; flex-shrink: 0; }
.fav-chip .chip-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.favorites-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 4px;
}
.btn-random {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--purple) 0%, #7b3eff 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
  box-shadow: 0 2px 0 #6b2cd9;
}
.btn-random:hover {
  background: linear-gradient(135deg, #8a3eff 0%, #6b2cd9 100%);
  transform: translateY(-1px);
}
@media (max-width: 600px) {
  .favorites-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Group Cards ─── */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.group-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.group-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
}
.group-card-header .group-label { color: var(--orange-dark); font-size: 0.95rem; flex-shrink: 0; }
.group-card-header .group-flags {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.group-card-header .group-flags .flag { width: 28px; height: 21px; }

.match-row {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* Date · time · venue line above each match — muted so it doesn't compete with team names */
.match-meta {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 2px;
}
/* Vegas-odds row — mirrors .pick-row's flex layout so each cell sits
   directly below its pick button. Same uppercase muted treatment as
   .match-meta (the date/time line), but bold for emphasis. */
.odds-row {
  display: flex;
  gap: 6px;
  padding-top: 4px;
}
.odds-cell {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.odds-cell .pct {
  color: var(--orange-dark);
}
.match-row:last-child { border-bottom: none; }
.match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 500;
  gap: 8px;
}
.match-teams .team-with-flag { flex: 1; min-width: 0; }
.match-teams .vs { color: var(--muted); font-size: 0.72rem; padding: 0 4px; flex-shrink: 0; }
/* Team 2: flag on the RIGHT, name right-justified — mirrors Team 1's layout.
   Note: with flex-direction:row-reverse, justify-content:flex-start packs items
   to the visually-RIGHT side (since the main axis is reversed). flex-end would
   pack to the left — opposite of what we want. */
.match-teams .team-with-flag:last-child {
  justify-content: flex-start;
  flex-direction: row-reverse;
}
.match-teams .team-with-flag:last-child .team-name { text-align: right; }

.pick-row {
  display: flex;
  gap: 6px;
}
.pick-btn {
  flex: 1;
  min-width: 0;
  padding: 7px 4px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s;
  text-align: center;
  font-family: var(--font);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pick-btn:hover { border-color: var(--green-mid); color: var(--green-pitch); }
/* Picking a winning team = green (whether home or away). Draw = orange (the "special" outcome). */
.pick-btn.active-win  { background: var(--green-mid); border-color: var(--green-mid); color: #fff; }
.pick-btn.active-draw { background: var(--orange);    border-color: var(--orange);    color: #fff; }
.pick-btn.active-lose { background: var(--green-mid); border-color: var(--green-mid); color: #fff; }

/* ─── Progress bar ─── */
.progress-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
  gap: 8px;
  flex-wrap: wrap;
}
.progress-info span { color: var(--orange-dark); font-weight: 700; }
.progress-bar-track {
  height: 5px;
  background: var(--surface-alt);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange-light), var(--orange));
  border-radius: 99px;
  transition: width 0.3s;
}

/* ─── Standings cards ─── */
.standings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.standings-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.standings-header {
  padding: 10px 14px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--orange-dark);
}
.standings-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
}
.standings-row:last-child { border-bottom: none; }
.st-rank {
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.standings-row.st-1 { background: rgba(255,116,38,0.07); }
.standings-row.st-1 .st-rank { color: var(--orange-dark); }
.standings-row.st-2 { background: rgba(255,116,38,0.03); }
.standings-row.st-2 .st-rank { color: var(--orange-dark); }
.standings-row.st-3 .st-rank { color: var(--purple); }
.standings-row.st-4 .st-rank { color: var(--muted); }
.standings-row.st-4 .team-name { color: var(--muted); }
.st-pts { font-size: 0.72rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ─── Best 3rds picker ─── */
.best3rds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.b3-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.b3-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--orange-dark);
  margin-bottom: 4px;
}
.b3-vs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.b3-card select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 9px 10px;
  font-size: 0.88rem;
  font-family: var(--font);
}

/* ─── Bracket ─── */
.bracket-rounds {
  display: grid;
  grid-template-columns: repeat(6, minmax(180px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
}
.bracket-round {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 180px;
}
.bracket-round-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--orange);
}
.bracket-pts {
  color: var(--orange-dark);
  font-weight: 800;
  margin-left: 4px;
}
.bracket-game {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}
.bracket-game-id {
  font-size: 0.62rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}
.bracket-team-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 7px 8px;
  border-radius: 5px;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.12s;
  text-align: left;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bracket-team-btn .flag { width: 18px; }
.bracket-team-btn:hover:not(:disabled) {
  border-color: var(--orange);
  color: var(--orange-dark);
}
.bracket-team-btn.picked {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  font-weight: 700;
}
.bracket-team-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  font-style: italic;
  color: var(--muted);
}

/* ─── Bonus picks ─── */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.bonus-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.bonus-card .bonus-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin-bottom: 4px;
}
.bonus-card .bonus-pts {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--orange-dark);
  margin-bottom: 10px;
}
.bonus-card select { margin: 0; }

/* ─── Submit button ─── */
.submit-area {
  text-align: center;
  padding: 24px 0 0;
}
.btn-submit {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 48px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
  box-shadow: 0 2px 0 var(--orange-dark);
}
.btn-submit:hover:not(:disabled) {
  background: var(--orange-dark);
  transform: translateY(-1px);
}
.btn-submit:disabled {
  background: var(--border-strong);
  color: var(--muted);
  cursor: not-allowed;
  box-shadow: none;
}

/* ─── Toast messages ─── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
  padding: 14px 24px;
  font-size: 0.9rem;
  z-index: 1000;
  max-width: 90vw;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}
.toast.show { opacity: 1; pointer-events: auto; }
.toast.success { background: var(--orange); }
.toast.error   { background: var(--danger); }

/* ─── Leaderboard ─── */
.lb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.lb-header h1 { font-size: 1.7rem; font-weight: 800; color: var(--text); }
.lb-meta { font-size: 0.85rem; color: var(--muted); }
.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.lb-table th {
  text-align: left;
  padding: 11px 14px;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.lb-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.lb-table tr:last-child td { border-bottom: none; }
.lb-table tr:hover td { background: var(--surface-alt); }
.rank { font-weight: 700; color: var(--muted); width: 50px; }
.rank.gold   { color: #d97706; }
.rank.silver { color: #9ca3af; }
.rank.bronze { color: #b45309; }
.pts { font-weight: 800; font-size: 1.05rem; color: var(--orange-dark); font-variant-numeric: tabular-nums; }
.lb-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ─── Admin ─── */
.admin-match-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  background: var(--surface);
}
.admin-match-row:last-child { border-bottom: none; }
.admin-match-teams { flex: 1; font-size: 0.92rem; min-width: 220px; }
.admin-match-id {
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.admin-match-teams .teams-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-match-teams .vs-sep { color: var(--muted); font-size: 0.75rem; }
.result-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
}
.result-badge.H { background: rgba(255,116,38,0.13); color: var(--orange-dark); }
.result-badge.D { background: rgba(153,69,255,0.13); color: var(--purple); }
.result-badge.A { background: rgba(71,85,105,0.13); color: var(--lose); }
.result-badge.pending { background: var(--surface-alt); color: var(--muted); }
.btn-sm {
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 500;
  transition: all 0.12s;
}
.btn-sm:hover { border-color: var(--orange); color: var(--orange-dark); }
.btn-sm.danger:hover { border-color: var(--danger); color: var(--danger); }

/* ─── Auth gate ─── */
.auth-gate {
  width: 100%;
  max-width: 380px;
  margin: 80px auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.auth-gate h2 { margin-bottom: 8px; color: var(--text); }
.auth-gate p { color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; }

/* ─── Util ─── */
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.text-muted { color: var(--muted); font-size: 0.88rem; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .bracket-rounds {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }
  .bracket-round {
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
  }
  .bracket-round:last-child { border-bottom: none; }
}

@media (max-width: 600px) {
  .site-header { flex-direction: column; gap: 12px; align-items: flex-start; padding: 12px 16px; }
  .brand img.brand-icon { height: 32px; }
  .brand-wordmark { font-size: 1.3rem; }
  .hero h1 { font-size: 1.7rem; }
  .groups-grid { grid-template-columns: 1fr; }
  .bonus-grid  { grid-template-columns: 1fr; }
  .standings-grid { grid-template-columns: 1fr; }
  .best3rds-grid { grid-template-columns: 1fr; }
  .admin-match-row { flex-direction: column; align-items: flex-start; }
  .lb-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .lb-meta { white-space: normal; word-break: break-word; }
  .lb-table th, .lb-table td { padding: 8px 10px; font-size: 0.85rem; }
  .pill-row { padding: 0 8px; }
}
