/* ════════════════════════════════════════════════════════════════════════
   Dirty Birdie Cup — Cup Mode theme ("Bad Birdie" redesign).
   Editorial navy base + brass-gold hero accent, data-driven team dyads
   (USA red / Europe blue by default), cream tone, broadcast scoreboard,
   dramatic cards. No build step. Fonts are SELF-HOSTED (see fonts/README.md) —
   Cormorant Garamond (serif display) + Archivo (sans) — never a CDN, so the
   PWA stays offline-capable. Dark-locked, mobile-first.
   ════════════════════════════════════════════════════════════════════════ */

/* ── Self-hosted fonts (OFL, redistributable). Variable woff2 keep the file
   count low. Until the woff2 are dropped into fonts/, the stacks below fall
   back to Georgia (serif) / system sans, so the app stays fully legible. */
@font-face {
  font-family: "Archivo";  /* variable (single file covers 100–900) */
  src: url("/console/cup/fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";  /* static weights — this family has no variable axis */
  src: url("/console/cup/fonts/cormorant-garamond-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/console/cup/fonts/cormorant-garamond-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/console/cup/fonts/cormorant-garamond-600-italic.woff2") format("woff2");
  font-weight: 600; font-style: italic; font-display: swap;
}

:root {
  /* base — navy editorial system (Bad Birdie redesign; token NAMES unchanged
     so every existing selector keeps working). The console (app.css) is a
     separate :root and is intentionally left on its own palette. */
  --bg: #0A1120;
  --bg-1: #0C1424;
  --bg-2: #0E1830;
  --surface: #111D33;
  --surface-2: #16233D;
  --surface-3: #1C2A47;
  --line: #26324A;
  --line-soft: #1A2338;
  --text: #F2EEE3;
  --text-dim: #9AA1AC;
  --text-faint: #7A818F; /* a11y: 4.82:1 on --bg (was #6B7280 = 3.9:1, failed WCAG AA for small text) */
  --cream: #F2EEE3;
  --cream-dim: #CFC8B6;

  /* cup accents — the Cup itself (trophy, hero, primary actions) */
  --gold: #C2A24B;
  --gold-hi: #D9BD6B;
  --gold-deep: #977E33;
  --gold-glow: rgba(194, 162, 75, 0.22);
  /* success / "in the hole" semantic (safe play, settled, final) */
  --green: #6BBF8A;
  --green-deep: #2E5E43;
  --green-glow: rgba(107, 191, 138, 0.20);
  --danger: #E0576A;
  --live: #FF6B6B;

  /* team slots — data-driven from team.color at boot (applyTeamTheme);
     defaults give a Ryder-style USA red vs Europe blue cup out of the box.
     These are only fallbacks: applyTeamTheme() overwrites them from each
     team's real color, so live tournaments keep their own identity. */
  --team-a: #E05A6B;
  --team-a-deep: #B22335;
  --team-a-glow: rgba(224, 90, 107, 0.20);
  --team-a-ink: #ffffff;
  --team-b: #7D9BE0;
  --team-b-deep: #2A4D9E;
  --team-b-glow: rgba(125, 155, 224, 0.20);
  --team-b-ink: #0C1424;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-7: 32px; --sp-8: 48px; --sp-9: 64px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, monospace;
  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 10px 26px rgba(0, 0, 0, 0.38);
  --ring: 0 0 0 3px var(--gold-glow);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); letter-spacing: -0.01em; line-height: 1.12; font-weight: 600; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
/* Press feedback (Bad Birdie signature). Add `bbtap` to any tappable element. */
.bbtap { transition: transform 0.12s ease, background 0.15s ease, opacity 0.15s ease; }
.bbtap:active { transform: scale(0.965); opacity: 0.92; }
/* Honor reduced-motion: collapse the app's entrance/loop animations. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
}

/* Ambient cinematic backdrop — dual radial glow + faint turf grain. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1100px 620px at 78% -12%, var(--team-a-glow), transparent 60%),
    radial-gradient(900px 640px at -6% 112%, var(--team-b-glow), transparent 58%),
    linear-gradient(180deg, #0A1120 0%, #070C18 100%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none !important; opacity: 0.5;
  background-image: radial-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 3px 3px;
}

/* ── Icons ── */
.ic { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ic svg { width: 18px; height: 18px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ════════════════════════ App shell ════════════════════════ */

.app-shell { min-height: 100dvh; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: var(--sp-4);
  height: 62px; padding: 0 var(--sp-5);
  background: rgba(10, 17, 32, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.cup-brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -0.01em; }
.cup-brand .mark {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--gold), var(--gold-deep));
  color: #0C1424; font-weight: 900; font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 6px 16px var(--gold-glow);
}
.cup-brand small { color: var(--text-faint); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; }
.topbar .spacer { flex: 1; }
.topbar .whoami { display: flex; align-items: center; gap: 9px; color: var(--text-dim); font-size: 13px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 12px; color: #0a0a0a; font-family: var(--mono);
}
.avatar.team-a { background: linear-gradient(150deg, var(--team-a), var(--team-a-deep)); color: var(--team-a-ink); }
.avatar.team-b { background: linear-gradient(150deg, var(--team-b), var(--team-b-deep)); color: var(--team-b-ink); }

.layout { flex: 1; display: grid; grid-template-columns: 232px 1fr; }
.sidenav {
  border-right: 1px solid var(--line); padding: var(--sp-4) var(--sp-3);
  display: flex; flex-direction: column; gap: 3px; position: sticky; top: 62px; height: calc(100vh - 62px); overflow-y: auto;
}
.nav-group-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-faint); padding: 14px 12px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text-dim); font-weight: 600; font-size: 14px; border: none; background: none; text-align: left; width: 100%;
  transition: background 0.14s ease, color 0.14s ease;
}
.nav-item:hover { background: var(--surface); color: var(--text); }
.nav-item.on { background: var(--gold-glow); color: var(--cream); }
.nav-item.on .ic { color: var(--gold); }
.nav-item .badge { margin-left: auto; font-size: 10px; }

.view { padding: var(--sp-7) var(--sp-7) var(--sp-9); max-width: 1180px; margin: 0 auto; width: 100%; animation: viewIn 0.34s cubic-bezier(0.2,0.7,0.2,1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.view-head { margin-bottom: var(--sp-6); }
.view-head .eyebrow { color: var(--gold); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; }
.view-head h1 { font-size: clamp(26px, 4vw, 38px); margin-top: 6px; }
.view-head p { color: var(--text-dim); margin: 8px 0 0; max-width: 62ch; }

/* ════════════════════════ Buttons & chips ════════════════════════ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font-weight: 700; font-size: 15px;
  transition: transform 0.12s ease, background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.btn:hover { background: var(--surface-3); border-color: var(--line); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary {
  background: linear-gradient(150deg, var(--gold), var(--gold-deep)); color: #0C1424; border: none;
  box-shadow: 0 10px 26px var(--gold-glow);
}
.btn.primary:hover { box-shadow: 0 14px 34px var(--gold-glow); }
.btn.green { background: linear-gradient(150deg, var(--green), var(--green-deep)); color: #0C1424; border: none; }
.btn.ghost { background: transparent; }
.btn.lg { padding: 16px 30px; font-size: 17px; border-radius: var(--radius); }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 14px; font-size: 13px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-dim);
}
.chip.gold { background: var(--gold-glow); color: var(--gold); border-color: transparent; }
.chip.team-a { background: var(--team-a-glow); color: var(--team-a); border-color: transparent; }
.chip.team-b { background: var(--team-b-glow); color: var(--team-b); border-color: transparent; }
.chip.green { background: var(--green-glow); color: var(--green); border-color: transparent; }
.chip.live { background: rgba(255,93,93,0.14); color: var(--live); border-color: transparent; }
.chip.live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,93,93,0.5); } 50% { opacity: 0.55; box-shadow: 0 0 0 6px rgba(255,93,93,0); } }

/* ════════════════════════ Cards & grid ════════════════════════ */

.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-1) 100%);
  border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}
.card.pad-lg { padding: var(--sp-6); }
.grid { display: grid; gap: var(--sp-4); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.section-title { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint); margin: 0 0 var(--sp-4); }
.stack { display: flex; flex-direction: column; gap: var(--sp-4); }
.row { display: flex; align-items: center; gap: var(--sp-3); }
.between { justify-content: space-between; }

/* ════════════════════════ LANDING / HERO ════════════════════════ */

.landing {
  min-height: 100vh; display: grid; place-items: center; padding: var(--sp-6);
  position: relative; overflow: hidden;
}
.landing::before {
  content: ""; position: absolute; inset: -20% -20% auto -20%; height: 70%; pointer-events: none;
  background: radial-gradient(closest-side, var(--gold-glow), transparent 70%);
  filter: blur(20px); animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate(-4%, -6%) scale(1); } to { transform: translate(6%, 4%) scale(1.08); } }
.landing-inner { position: relative; z-index: 2; text-align: center; max-width: 760px; animation: heroIn 0.9s cubic-bezier(0.16,0.8,0.24,1); }
@keyframes heroIn { from { opacity: 0; transform: translateY(28px) scale(0.98); } to { opacity: 1; transform: none; } }
.landing .kicker { display: inline-flex; gap: 8px; align-items: center; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--gold-deep); color: var(--gold); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.24em; margin-bottom: var(--sp-5); }
.landing h1 {
  font-family: var(--serif); font-size: clamp(46px, 10vw, 104px); font-weight: 600; letter-spacing: -0.01em; line-height: 0.94;
  background: linear-gradient(120deg, var(--cream) 0%, var(--gold) 46%, var(--gold-deep) 60%, var(--cream) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s ease-in-out infinite;
  text-shadow: 0 0 60px var(--gold-glow);
}
@keyframes sheen { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.landing .sub { color: var(--cream-dim); font-size: clamp(16px, 2.4vw, 21px); margin-top: var(--sp-4); font-weight: 500; }
.landing .tagline { color: var(--text-dim); margin-top: var(--sp-3); font-style: italic; }
.landing .vs {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-5); margin: var(--sp-7) 0;
  font-weight: 900; font-size: clamp(20px, 4vw, 30px);
}
.landing .vs .g { color: var(--team-a); } .landing .vs .n { color: var(--team-b); }
.landing .vs .bolt { color: var(--text-faint); font-size: 0.7em; }
.landing .cta-row { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; margin-top: var(--sp-5); }
.landing .meta { margin-top: var(--sp-7); color: var(--text-faint); font-size: 13px; display: flex; gap: var(--sp-5); justify-content: center; flex-wrap: wrap; }
.landing .meta b { color: var(--cream); }

/* ════════════════════════ PLAYER SELECT ════════════════════════ */

.select-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--sp-3); }
.team-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.team-col-head { display: flex; align-items: center; gap: 10px; margin-bottom: var(--sp-3); font-weight: 800; font-size: 15px; }
.team-col-head.team-a { color: var(--team-a); } .team-col-head.team-b { color: var(--team-b); }
.player-pick {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); width: 100%; text-align: left; color: var(--text);
  transition: transform 0.12s ease, border-color 0.14s ease, background 0.14s ease;
}
.player-pick:hover { transform: translateY(-2px); background: var(--surface-2); }
.player-pick.team-a:hover { border-color: var(--team-a-deep); }
.player-pick.team-b:hover { border-color: var(--team-b-deep); }
.player-pick .who { display: flex; flex-direction: column; min-width: 0; }
.player-pick .who .nm { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-pick .who .nick { font-size: 12px; color: var(--text-faint); }
.player-pick .hcp { margin-left: auto; font-family: var(--mono); color: var(--text-dim); font-size: 13px; }
.cap-star { color: var(--gold); font-size: 11px; }

/* ════════════════════════ SCOREBOARD (broadcast) ════════════════════════ */

.scoreboard {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--sp-4);
  padding: var(--sp-6); border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, rgba(194,162,75,0.10), transparent 40%, transparent 60%, rgba(107,191,138,0.10)),
    linear-gradient(180deg, var(--surface) 0%, var(--bg-1) 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.scoreboard .team-score { text-align: center; }
.scoreboard .team-score .name { font-weight: 800; font-size: 15px; letter-spacing: 0.02em; }
.scoreboard .team-score.team-a .name { color: var(--team-a); }
.scoreboard .team-score.team-b .name { color: var(--team-b); }
.scoreboard .team-score .pts { font-family: var(--serif); font-variant-numeric: tabular-nums; font-size: clamp(58px, 12vw, 96px); font-weight: 600; line-height: 1; margin-top: 4px; }
.scoreboard .team-score.team-a .pts { color: var(--team-a); text-shadow: 0 0 40px var(--team-a-glow); }
.scoreboard .team-score.team-b .pts { color: var(--team-b); text-shadow: 0 0 40px var(--team-b-glow); }
.scoreboard .team-score .rec { color: var(--text-faint); font-size: 12px; font-family: var(--mono); margin-top: 6px; }
.scoreboard .mid { text-align: center; color: var(--text-faint); }
.scoreboard .mid .clinch { font-family: var(--mono); font-size: 13px; color: var(--cream-dim); }
.scoreboard .mid .of { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; margin-top: 4px; }
.progress-cup { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; display: flex; margin-top: var(--sp-4); }
.progress-cup .g { background: linear-gradient(90deg, var(--team-a-deep), var(--team-a)); }
.progress-cup .n { background: linear-gradient(90deg, var(--team-b), var(--team-b-deep)); margin-left: auto; }
.clinch-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--cream); opacity: 0.5; }

/* ════════════════════════ MATCH CARDS ════════════════════════ */

.match-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-4) var(--sp-5);
  background: var(--surface); display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--sp-3); align-items: center;
  transition: border-color 0.14s ease, transform 0.12s ease;
}
.match-card:hover { transform: translateY(-2px); }
.match-card.live { border-color: rgba(255,93,93,0.35); box-shadow: 0 0 0 1px rgba(255,93,93,0.15), var(--shadow-sm); }
.match-card.featured { background: linear-gradient(180deg, var(--surface-2), var(--bg-1)); }
.match-side { display: flex; flex-direction: column; gap: 4px; }
.match-side.right { text-align: right; align-items: flex-end; }
.match-side .players { font-weight: 700; font-size: 14px; }
.match-side .sub { font-size: 12px; color: var(--text-faint); }
.match-side.leader.team-a .players { color: var(--team-a); }
.match-side.leader.team-b .players { color: var(--team-b); }
.match-status { text-align: center; }
.match-status .txt { font-family: var(--mono); font-weight: 800; font-size: 18px; }
.match-status.team-a .txt { color: var(--team-a); } .match-status.team-b .txt { color: var(--team-b); }
.match-status .thru { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.1em; }
.match-narrative { grid-column: 1 / -1; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-soft); color: var(--text-dim); font-size: 13px; }

/* ════════════════════════ ROUND SCHEDULE ════════════════════════ */

.round-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.round-card .rc-head { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line-soft); }
.round-card .rc-head .rnum { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--mono); font-weight: 800; background: var(--surface-3); color: var(--gold); }
.round-card .rc-head .meta { flex: 1; }
.round-card .rc-head .meta .lbl { font-weight: 800; }
.round-card .rc-head .meta .sub { font-size: 12px; color: var(--text-faint); }
.round-card .rc-body { padding: var(--sp-4) var(--sp-5); color: var(--text-dim); font-size: 14px; }
.timeline { display: flex; flex-direction: column; gap: var(--sp-4); position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline .node { position: relative; }
.timeline .node::before { content: ""; position: absolute; left: -21px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--gold-deep); }
.timeline .node.live::before { background: var(--live); border-color: var(--live); animation: pulse 1.4s ease-in-out infinite; }
.timeline .node.final::before { background: var(--green); border-color: var(--green); }

/* ════════════════════════ LEADERBOARD / WAR ROOM ════════════════════════ */

.momentum-feed { display: flex; flex-direction: column; gap: 2px; }
.momentum-item { display: flex; gap: 12px; padding: 12px; border-radius: var(--radius-sm); }
.momentum-item .bar { width: 3px; border-radius: 2px; flex: none; }
.momentum-item.team-a .bar { background: var(--team-a); } .momentum-item.team-b .bar { background: var(--team-b); }
.momentum-item .txt { flex: 1; font-size: 14px; }
.momentum-item .t { color: var(--text-faint); font-size: 12px; font-family: var(--mono); }
.stat-tile { text-align: center; padding: var(--sp-4); }
.stat-tile .n { font-family: var(--serif); font-variant-numeric: tabular-nums; font-size: 34px; font-weight: 600; }
.stat-tile .l { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 4px; }

/* ════════════════════════ SIDE BET BOARD (Vegas-style, no money) ════════════════════════ */

.betboard { background: #060a08; border: 1px solid var(--gold-deep); border-radius: var(--radius); padding: var(--sp-5); box-shadow: inset 0 0 60px rgba(0,0,0,0.6); }
.betboard-title { font-family: var(--mono); color: var(--gold); letter-spacing: 0.2em; text-transform: uppercase; font-size: 13px; display: flex; align-items: center; gap: 10px; margin-bottom: var(--sp-4); }
.betboard-title .flick { text-shadow: 0 0 12px var(--gold-glow); animation: flick 5s steps(1) infinite; }
@keyframes flick { 0%,97%,100% { opacity: 1; } 98% { opacity: 0.4; } }
.bet-row { display: grid; grid-template-columns: 1fr auto; gap: var(--sp-3); padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.bet-row:last-child { border-bottom: none; }
.bet-row .title { font-weight: 700; color: var(--cream); }
.bet-row .desc { font-size: 13px; color: var(--text-dim); margin-top: 3px; }
.bet-row .stake { font-size: 12px; color: var(--gold); font-family: var(--mono); margin-top: 5px; }
.bet-row .line { font-family: var(--mono); text-align: right; color: var(--cream); font-weight: 700; }
.bet-row .fav { font-size: 12px; color: var(--text-faint); text-align: right; margin-top: 4px; }
.bet-status { font-size: 10px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; padding: 2px 8px; border-radius: 4px; }
.bet-status.open { background: var(--surface-3); color: var(--text-dim); }
.bet-status.live { background: rgba(255,93,93,0.16); color: var(--live); }
.bet-status.settled { background: var(--green-glow); color: var(--green); }
.no-money-note { font-size: 11px; color: var(--text-faint); margin-top: var(--sp-4); font-style: italic; }

/* ════════════════════════ BANTER FEED ════════════════════════ */

.banter-feed { display: flex; flex-direction: column; gap: var(--sp-3); }
.banter-post { display: flex; gap: 12px; padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.banter-post.system { border-color: var(--gold-deep); background: linear-gradient(180deg, rgba(194,162,75,0.06), var(--surface)); }
.banter-post.highlight { border-color: var(--green-deep); }
.banter-post .body { flex: 1; }
.banter-post .head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.banter-post .head .nm { font-weight: 700; }
.banter-post .head .nm.team-a { color: var(--team-a); } .banter-post .head .nm.team-b { color: var(--team-b); }
.banter-post .head .t { color: var(--text-faint); margin-left: auto; font-family: var(--mono); font-size: 12px; }
.banter-post .msg { margin-top: 6px; }
.banter-post .reacts { display: flex; gap: 14px; margin-top: 10px; color: var(--text-faint); font-size: 13px; }
.banter-post .reacts button { background: none; border: none; color: var(--text-faint); display: inline-flex; gap: 5px; align-items: center; font-size: 13px; }
.banter-post .reacts button:hover { color: var(--cream); }
.banter-compose { display: flex; gap: 10px; margin-bottom: var(--sp-4); }
.heckle-chip { font-size: 12px; }

/* ════════════════════════ COURSE / HOLE VIEW ════════════════════════ */

.hole-viz {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(180deg, #0d2016 0%, #0a1410 100%); padding: 0;
}
.hole-viz .holemap { display: block; width: 100%; height: auto; max-height: 460px; }

/* Satellite (real) course map — MapLibre fills this container. */
.cup-map { width: 100%; height: 460px; border-radius: var(--radius); overflow: hidden; background: #0a1410; }
.cup-map .maplibregl-ctrl-attrib { font-size: 10px; }
.maprow { margin-top: 8px; color: var(--text-dim); font-size: 12px; display: flex; align-items: center; gap: 8px; line-height: 1.4; }
.maprow .ic svg { width: 14px; height: 14px; }
/* Per-hole numbered pins the map drops (element class + textContent from coursemap.js). */
.db-holepin {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(150deg, var(--gold), var(--gold-deep)); border: 2px solid #0C1424;
  display: grid; place-items: center; box-shadow: 0 3px 8px rgba(0,0,0,0.55); cursor: default;
  color: #0C1424; font-family: var(--mono); font-weight: 800; font-size: 11px;
}
.seg button[disabled] { opacity: 0.4; cursor: not-allowed; }
.seg button .ic svg { width: 15px; height: 15px; }
.hole-viz .fairway { position: absolute; left: 50%; bottom: 8%; width: 34%; height: 78%; transform: translateX(-50%);
  background: linear-gradient(180deg, #1f7a4d, #14512f); border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%; opacity: 0.9; }
.hole-viz .green-blob { position: absolute; left: 50%; top: 10%; width: 120px; height: 92px; transform: translateX(-50%);
  background: radial-gradient(closest-side, #35c17e, #1c7a4d); border-radius: 50%; box-shadow: 0 0 40px var(--green-glow); }
.hole-viz .pin { position: absolute; left: 50%; top: 12%; transform: translateX(-50%); width: 2px; height: 34px; background: var(--cream); }
.hole-viz .pin::before { content: ""; position: absolute; top: 0; left: 2px; width: 14px; height: 10px; background: var(--live); }
.hole-viz .tee-marker { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); width: 12px; height: 12px; border-radius: 50%; background: var(--cream); }
.hole-viz .bunker { position: absolute; width: 46px; height: 26px; background: #cbb079; border-radius: 50%; opacity: 0.85; }
.hole-viz .water { position: absolute; width: 90px; height: 44px; background: linear-gradient(180deg,#2b7fd4,#1c5aa0); border-radius: 40%; opacity: 0.85; }
.hole-viz .dist-tag { position: absolute; font-family: var(--mono); font-size: 11px; background: rgba(0,0,0,0.6); color: var(--cream); padding: 2px 7px; border-radius: 5px; }

.hole-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hole-pill { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text-dim); font-family: var(--mono); font-weight: 700; font-size: 13px; }
.hole-pill.on { background: var(--gold-glow); color: var(--gold); border-color: var(--gold-deep); }
.hole-pill .p { display: block; font-size: 8px; color: var(--text-faint); }
.hole-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.fact { text-align: center; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.fact .n { font-family: var(--mono); font-size: 22px; font-weight: 800; color: var(--cream); }
.fact .l { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-top: 3px; }

/* ════════════════════════ LOGIN (live mode) ════════════════════ */

.login-card {
  text-align: left;
  background: linear-gradient(180deg, var(--surface-2), var(--bg-1));
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
}
.login-card .fld { display: block; margin-bottom: var(--sp-4); }
.login-card .fld span { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.login-card input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 16px; font-family: inherit;
}
.login-card input:focus { outline: none; border-color: var(--gold-deep); box-shadow: var(--ring); }
.login-error {
  margin: 0 0 var(--sp-4); padding: 10px 12px; border-radius: var(--radius-sm);
  background: rgba(229, 72, 77, 0.12); border: 1px solid var(--danger);
  color: #ff9a9e; font-size: 13px;
}

/* ════════════════════════ SEGMENTED CONTROL ════════════════════ */

.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 3px; }
.seg button { border: none; background: none; color: var(--text-dim); padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.seg button.on { background: var(--gold); color: #0C1424; }

.warn-list { list-style: none; padding: 0; margin: var(--sp-4) 0 0; }
.warn-list li { display: flex; gap: 9px; padding: 8px 0; color: var(--text-dim); font-size: 13px; border-top: 1px dashed var(--line-soft); }
.warn-list li .ic { color: var(--gold); }

.ask-log { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-4); max-height: 340px; overflow-y: auto; }
.ask-suggests { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--sp-3); }
.ask-input-row { display: flex; gap: 10px; }
.ask-input-row input { flex: 1; padding: 13px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 15px; }
.ask-input-row input:focus { outline: none; border-color: var(--gold-deep); box-shadow: var(--ring); }

/* ════════════════════════ PRESS ROOM ════════════════════════ */

.press-article { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.press-article .masthead { padding: var(--sp-3) var(--sp-5); border-bottom: 1px solid var(--line); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.24em; font-size: 11px; color: var(--gold); display: flex; justify-content: space-between; }
.press-article .body { padding: var(--sp-6); }
.press-article h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 900; }
.press-article .subhead { color: var(--text-dim); font-size: 17px; margin-top: 8px; font-style: italic; }
.press-article p { color: var(--cream-dim); line-height: 1.7; margin: var(--sp-4) 0; }
.press-article .pullquote { border-left: 3px solid var(--gold); padding-left: var(--sp-4); margin: var(--sp-5) 0; font-size: 19px; color: var(--cream); }
.press-article .pullquote cite { display: block; font-size: 13px; color: var(--text-faint); margin-top: 8px; font-style: normal; }
.star-of { display: flex; align-items: center; gap: 14px; padding: var(--sp-4); border-radius: var(--radius-sm); background: var(--surface-2); margin-top: var(--sp-4); }

/* ════════════════════════ TROPHY LIFT / TROPHY ROOM ════════════════════════ */

.trophy-stage { min-height: 74vh; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; }
.trophy-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(closest-side, var(--gold-glow), transparent 62%);
  animation: haze 6s ease-in-out infinite alternate;
}
.trophy-stage > div { position: relative; z-index: 2; }
.trophy-stage .cta-row { position: relative; z-index: 3; }
@keyframes haze { from { opacity: 0.5; transform: scale(1); } to { opacity: 1; transform: scale(1.12); } }
.trophy-svg { position: relative; z-index: 2; filter: drop-shadow(0 20px 50px var(--gold-glow)); animation: lift 2.2s cubic-bezier(0.16,0.8,0.24,1) both; }
@keyframes lift { 0% { transform: translateY(120px) scale(0.6); opacity: 0; } 60% { opacity: 1; } 100% { transform: translateY(0) scale(1); opacity: 1; } }
.trophy-svg .cup-body { fill: url(#goldgrad); }
.trophy-shine { animation: shine 3.4s ease-in-out infinite; transform-origin: center; }
@keyframes shine { 0%,100% { opacity: 0.35; } 50% { opacity: 0.9; } }
.trophy-stage h1 { position: relative; z-index: 2; font-size: clamp(30px, 6vw, 60px); font-weight: 900; margin-top: var(--sp-5);
  background: linear-gradient(120deg, var(--cream), var(--gold), var(--cream)); background-size: 200%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 5s ease-in-out infinite; }
.trophy-stage .who-lifts { position: relative; z-index: 2; color: var(--cream-dim); margin-top: var(--sp-3); font-size: 18px; }
.confetti { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; opacity: 0.9; animation: fall linear infinite; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }

.roll-of-honor { display: flex; flex-direction: column; gap: var(--sp-2); }
.honor-row { display: flex; align-items: center; gap: 12px; padding: 12px var(--sp-4); border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.honor-row .yr { font-family: var(--mono); color: var(--gold); font-weight: 800; }

/* Round-by-round accordion (Leaderboard · Cup points). Native <details> — no JS. */
.round-acc { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.round-acc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.round-acc > summary::-webkit-details-marker { display: none; }
.round-acc > summary::before { content: "›"; color: var(--text-faint); font-weight: 800; transition: transform 0.18s ease; }
.round-acc[open] > summary::before { transform: rotate(90deg); }
.round-acc .ra-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.round-acc .ra-score { font-family: var(--serif); font-size: 18px; display: flex; gap: 6px; align-items: baseline; }
.round-acc .ra-status { margin-left: auto; }
.round-acc .ra-body { padding: 0 14px 12px; }

/* ════════════════════════ Toast + misc ════════════════════════ */

.appfoot { border-top: 1px solid var(--line); padding: var(--sp-5); text-align: center; color: var(--text-faint); font-size: 12px; }
.synthetic-banner { background: var(--surface-2); border: 1px dashed var(--gold-deep); border-radius: var(--radius-sm); padding: 10px 14px; color: var(--gold); font-size: 12px; text-align: center; margin-bottom: var(--sp-5); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--surface-3); border: 1px solid var(--gold-deep); color: var(--cream); padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow); opacity: 0; transition: all 0.25s ease; z-index: 100; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ════════════════════════ Mobile tab bar + More sheet ════════════════ */

.tabbar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(10, 17, 32, 0.94); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
.tab-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 4px 5px; border: none; background: none; border-radius: var(--radius-sm);
  color: var(--text-faint); font-size: 10px; font-weight: 700; letter-spacing: 0.02em;
}
.tab-item .ic svg { width: 21px; height: 21px; }
.tab-item.on { color: var(--gold); background: var(--gold-glow); }
.tab-item:active { background: var(--surface-2); }

.more-sheet {
  position: fixed; inset: 0; z-index: 80; display: none;
}
.more-sheet.open { display: block; }
.more-sheet .sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }
.more-sheet .sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--bg-1); border-top: 1px solid var(--line);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: var(--sp-4) var(--sp-4) calc(var(--sp-6) + env(safe-area-inset-bottom));
  max-height: 72dvh; overflow-y: auto;
  animation: sheetUp 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-grab { width: 44px; height: 4px; border-radius: 999px; background: var(--line); margin: 0 auto var(--sp-4); }
.sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
.sheet-item {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 14px 6px; border-radius: var(--radius-sm); border: 1px solid var(--line-soft);
  background: var(--surface); color: var(--text-dim); font-size: 11px; font-weight: 700;
}
.sheet-item .ic { color: var(--gold); }
.sheet-item.on { border-color: var(--gold-deep); color: var(--cream); }

/* ════════════════════════ Responsive ════════════════════════ */

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidenav { display: none; }
  .tabbar { display: grid; }
  .view { padding: var(--sp-5) var(--sp-4) calc(96px + env(safe-area-inset-bottom)); }
  .topbar .whoami span:not(.avatar) { display: none; }
  .team-split { grid-template-columns: 1fr; }
  .hole-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .match-card { grid-template-columns: 1fr auto; }
  .scoreboard { padding: var(--sp-4); }
}
/* ════════════════════════ MATCH DETAIL (hole-by-hole) ════════════════ */

.match-open { grid-column: 1 / -1; margin-top: 10px; text-align: right; }
.hole-strip { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; margin: 0 0 var(--sp-4); }
.hole-cell {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--text-faint);
}
.hole-cell.team-a { background: var(--team-a); border-color: var(--team-a-deep); color: var(--team-a-ink); }
.hole-cell.team-b { background: var(--team-b); border-color: var(--team-b-deep); color: var(--team-b-ink); }
.hole-cell.halved { background: var(--surface-3); border-color: var(--cream); color: var(--cream); }
/* a11y: distinguish the two teams by PATTERN, not color alone — team-b holes carry a
   diagonal hatch (team-a stays solid, halved stays light-bordered), so red-vs-blue is
   never the only cue. The hole number stays legible over the thin, low-opacity lines. */
.hole-cell.team-b::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: repeating-linear-gradient(45deg, transparent 0 3px, var(--team-b-ink) 3px 4px);
  opacity: 0.28;
}
.hole-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hole-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.hole-table td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line-soft); font-family: var(--mono); color: var(--cream-dim); }

/* ════════════════════════ SCORE ENTRY (thumb-first) ══════════════════ */

.hole-select { display: flex; align-items: center; justify-content: center; gap: var(--sp-6); margin: var(--sp-5) 0 var(--sp-4); }
.hole-select .hole-big { font-family: var(--serif); font-variant-numeric: tabular-nums; font-size: 68px; font-weight: 600; color: var(--cream); line-height: 1; min-width: 100px; text-align: center; }
.hole-select .hole-big small { display: block; font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; margin-top: 6px; }
.hole-arrow {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--cream); font-size: 24px; line-height: 1; flex: none;
}
.hole-arrow:active { background: var(--surface-3); }

.score-pads { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.stepper-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: var(--sp-4); text-align: center; }
.stepper-card.team-a { border-color: var(--team-a-deep); box-shadow: 0 0 0 1px var(--team-a-glow); }
.stepper-card.team-b { border-color: var(--team-b-deep); box-shadow: 0 0 0 1px var(--team-b-glow); }
.stepper-card .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint); font-weight: 700; }
.stepper-card.team-a .k { color: var(--team-a); }
.stepper-card.team-b .k { color: var(--team-b); }
.stepper-card .who { font-size: 12px; color: var(--text-dim); margin-top: 2px; min-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stepper-card .num { font-family: var(--serif); font-size: 60px; font-weight: 600; color: var(--cream); line-height: 1.15; font-variant-numeric: tabular-nums; }
.stepper-card .steps { display: flex; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-2); }
.step-btn {
  width: 60px; height: 48px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface-2); color: var(--cream); font-size: 24px; font-weight: 800; line-height: 1;
}
.step-btn:active { background: var(--surface-3); }

.toast.win { border-color: var(--green); color: var(--green); }
.toast.loss { border-color: var(--danger); color: var(--danger); }
.toast.halve { border-color: var(--cream); color: var(--cream); }

/* ════════════════════════ LIVE FEED (photos) ═════════════════════════ */

.feed-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; }
.feed-photo {
  width: 100%; max-height: 320px; height: 100%; object-fit: cover; display: block;
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-3);
}
.feed-count { color: var(--gold); font-family: var(--mono); font-size: 12px; }

/* ════════════════════════ LIVE SIDE BETS ═════════════════════════════ */

.bet-input {
  padding: 11px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 15px; font-family: inherit;
}
.bet-input:focus { outline: none; border-color: var(--gold-deep); box-shadow: var(--ring); }
.pick-row { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--sp-3) 0 var(--sp-4); }
.pick-chip {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text-dim); font-size: 12px; font-weight: 700;
}
.pick-chip.on { background: var(--gold-glow); color: var(--gold); border-color: var(--gold-deep); }
.pick-chip.team-a.on { background: var(--team-a-glow); color: var(--team-a); border-color: var(--team-a-deep); }
.pick-chip.team-b.on { background: var(--team-b-glow); color: var(--team-b); border-color: var(--team-b-deep); }
.bet-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; justify-content: center; }
.bet-status.accepted { background: var(--gold-glow); color: var(--gold); }
.bet-status.void { background: var(--surface-2); color: var(--text-faint); text-decoration: line-through; }

/* ════════════════════════ SIDE GAMES ═════════════════════════════════ */

.sg-table { display: flex; flex-direction: column; }
.sg-row { display: flex; justify-content: space-between; gap: var(--sp-3); padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.sg-row:first-child { border-top: none; }
.sg-row.sg-head { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); font-weight: 700; }

/* Side games — clickable cards + detail page (how-to-play, leaderboard, entry) */
.sg-card { cursor: pointer; transition: border-color 0.15s ease, transform 0.05s ease; }
.sg-card:hover { border-color: var(--gold-deep); }
.sg-card:active { transform: scale(0.995); }
.sg-open-hint { margin-top: 12px; color: var(--gold); font-size: 13px; font-weight: 600; }
.sg-leader { margin-top: 8px; color: var(--cream); font-size: 17px; }
.sg-del { background: none; border: none; color: var(--text-faint); cursor: pointer; font-size: 13px; margin-left: 8px; padding: 0 4px; }
.sg-del:hover { color: var(--danger); }
.sg-entry-form .fld { display: block; margin-bottom: var(--sp-4); }
.sg-entry-form .fld span { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.sg-entry-form select, .sg-entry-form input {
  width: 100%; padding: 11px 13px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 15px; font-family: inherit;
}
.sg-entry-form select:focus, .sg-entry-form input:focus { outline: none; border-color: var(--gold-deep); box-shadow: var(--ring); }

/* ════════════════════════ LIVE RECAP / TROPHY ════════════════════════ */

.recap-line { padding: 8px 0; border-top: 1px dashed var(--line-soft); color: var(--cream-dim); font-size: 14px; }
.recap-line:first-of-type { border-top: none; }
.recap-line b { color: var(--cream); }
.timeline-list { display: flex; flex-direction: column; }
.timeline-list .tl-row { display: flex; gap: var(--sp-3); padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--cream-dim); }
.timeline-list .tl-row:first-child { border-top: none; }
.timeline-list .tl-row .t { margin-left: auto; color: var(--text-faint); font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.clinch-banner {
  display: inline-block; font-family: var(--mono); font-weight: 900; letter-spacing: 0.3em; font-size: 13px;
  padding: 6px 18px 6px 24px; border-radius: 999px; margin-bottom: var(--sp-4);
  background: var(--gold-glow); color: var(--gold); border: 1px solid var(--gold-deep);
}
.clinch-banner.team-a { background: var(--team-a-glow); color: var(--team-a); border-color: var(--team-a-deep); }
.clinch-banner.team-b { background: var(--team-b-glow); color: var(--team-b); border-color: var(--team-b-deep); }

@media (min-width: 621px) {
  .hole-strip { grid-template-columns: repeat(18, 1fr); }
}
@media (max-width: 620px) {
  .bet-row { grid-template-columns: 1fr; }
  .bet-actions { flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ════════════════════════ Broadcast / media center ════════════════════════
   The Live view: a broadcast stage (embed or offline placeholder), a scrolling
   ticker, lower-third, sponsor rails, and the highlight reel. Dark-locked and
   mobile-first like the rest of Cup Mode. */

.broadcast-stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2), var(--bg-1));
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--sp-5);
}
.stage-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.stage-frame iframe, .stage-frame video { width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }
.stage-hint { position: absolute; left: 10px; bottom: 10px; font: 11px var(--mono); color: var(--text-dim); background: rgba(0,0,0,.5); padding: 3px 8px; border-radius: 6px; }
.stage-placeholder {
  aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: 24px;
  background:
    radial-gradient(120% 90% at 50% 0%, var(--gold-glow), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.015) 0 12px, transparent 12px 24px), var(--bg-1);
}
.stage-placeholder.interactive { background: radial-gradient(120% 90% at 50% 0%, var(--team-b-glow), transparent 60%), var(--bg-1); }
.stage-mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--line); color: var(--gold); }
.stage-mark .ic svg { width: 26px; height: 26px; }
.stage-title { font-size: 20px; font-weight: 800; color: var(--cream); }
.stage-sub { color: var(--text-dim); max-width: 46ch; font-size: 13px; line-height: 1.5; }
.stage-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line-soft); background: var(--surface); }
.stage-meta { min-width: 0; flex: 1; }
.stage-headline { font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-subline { color: var(--text-faint); font-size: 12px; }
.stage-status { display: flex; gap: 6px; align-items: center; }
.chip.rec { color: #fff; background: var(--live); border-color: transparent; }
.lower-third {
  position: absolute; left: 0; bottom: 62px; max-width: 78%;
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 16px 8px 14px; background: linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.35));
  border-left: 4px solid var(--gold);
}
.lt-title { font-weight: 800; color: var(--cream); letter-spacing: .04em; }
.lt-sub { color: var(--text-dim); font-size: 12px; }

/* Ticker */
.ticker { overflow: hidden; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); margin-bottom: var(--sp-4); }
.ticker-track { display: inline-flex; gap: 14px; align-items: center; white-space: nowrap; padding: 8px 0; animation: ticker-scroll 34s linear infinite; }
.ticker .tick { color: var(--text-dim); font-size: 13px; }
.ticker .tick.sponsor { color: var(--gold); font-weight: 700; }
.ticker .tick-sep { color: var(--text-faint); }
@keyframes ticker-scroll { from { transform: translateX(2%); } to { transform: translateX(-50%); } }

/* Sponsor rails */
.sponsor-rail { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sponsor-rail.overlay { position: absolute; right: 12px; bottom: 70px; flex-direction: row; gap: 8px; }
.rail-label { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--text-faint); margin-right: 4px; }
.sponsor-link { text-decoration: none; }
.sponsor-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--cream-dim); font-weight: 700; font-size: 13px;
}
.sponsor-chip img { height: 20px; width: auto; display: block; }
.sponsor-chip.tier-title { border-color: var(--gold-deep); color: var(--gold); background: rgba(194,162,75,.08); }
.sponsor-chip.tier-gold { border-color: var(--gold-deep); }
.sponsor-chip.tier-media { border-color: var(--team-b-deep); }
.sponsor-rail.overlay .sponsor-chip { padding: 4px 9px; font-size: 11px; background: rgba(0,0,0,.55); }

/* Broadcast layout */
.broadcast-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.broadcast-provider-note { margin-top: 18px; text-align: center; color: var(--text-faint); font-size: 12px; }
.empty-hint { color: var(--text-faint); font-size: 13px; padding: 8px 0; }

/* Talking points */
.talking-points { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.talking-points li { color: var(--text-dim); line-height: 1.45; }
.captain-notes { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.cnote { padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-dim); font-size: 13px; }
.cnote b { color: var(--cream); }

/* Highlight reel */
.highlight-reel { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.highlight-card { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.highlight-card.featured { border-color: var(--gold-deep); background: rgba(194,162,75,.05); }
.hl-emoji { font-size: 24px; line-height: 1; }
.hl-body { min-width: 0; }
.hl-kind { font: 11px var(--mono); letter-spacing: .1em; color: var(--text-faint); display: flex; gap: 6px; align-items: center; }
.chip.gold { color: var(--gold); border-color: var(--gold-deep); background: rgba(194,162,75,.08); }
.chip.sm { font-size: 10px; padding: 1px 6px; }
.hl-title { font-weight: 800; color: var(--cream); margin: 3px 0; }
.hl-desc { color: var(--text-dim); font-size: 13px; line-height: 1.4; }
.hl-meta { color: var(--text-faint); font-size: 12px; margin-top: 5px; }
.hl-media { margin-top: 8px; width: 100%; border-radius: 8px; display: block; }

@media (max-width: 860px) {
  .broadcast-grid { grid-template-columns: 1fr; }
  .highlight-reel { grid-template-columns: 1fr; }
  .lower-third { bottom: 58px; }
  .sponsor-rail.overlay { position: static; margin-top: 8px; padding: 0 12px 12px; }
}

/* ── Rangefinder overlay markers (Phase A/B) ─────────────────────────────── */
.rf-pin { font: 600 11px/1.1 var(--mono, ui-monospace, monospace); color: #0C1424;
  background: rgba(243, 234, 214, .94); padding: 3px 6px; border-radius: 6px;
  white-space: nowrap; box-shadow: 0 1px 5px rgba(0, 0, 0, .55);
  border: 1px solid rgba(4, 21, 13, .35); pointer-events: none; }
.rf-tee { background: #132b20; color: #dfeee6; border-color: rgba(223, 238, 230, .4); }
.rf-pin.rf-pin-me { background: var(--accent, #6BBF8A); color: #0C1424; }
.rf-pin.rf-aim { background: var(--gold, #f5c542); }
.rf-gps-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rf-live { display: flex; gap: 18px; justify-content: space-around; text-align: center; margin-top: 10px; }
.rf-live .n { font: 700 24px/1 var(--mono, ui-monospace, monospace); color: var(--accent, #6BBF8A); }
.rf-live .l { color: var(--text-faint); font-size: 11px; margin-top: 2px; }
.rf-acc { color: var(--text-faint); font-size: 12px; }

/* Course hub tab bar (Distances / Score — wrap on narrow) */
.hub-tabs { flex-wrap: wrap; }
.hub-tabs button { flex: 1 1 auto; white-space: nowrap; }
