/* =========================================================
   App CSS — I See What Game We Are Playing!
   Masters Green & Cream theme
   ========================================================= */

/* -----------------------------
   Design tokens
----------------------------- */
:root {
  --bg: #f5f2eb;
  --surface: #fffdf7;
  --text: #1e3d2f;
  --muted: #6b7c6b;

  --accent: #1e3d2f;
  --accent-soft: rgba(212, 180, 131, 0.20);
  --tint-1: rgba(212, 180, 131, 0.12);
  --tint-2: rgba(212, 180, 131, 0.22);

  --border: rgba(30, 61, 47, 0.12);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);

  --radius: 16px;
  --radius-sm: 12px;

  --container: 1100px;

  --pad-page: 16px;
  --gap: 14px;

  --btn-radius: 12px;
  --btn-pad-y: 10px;
  --btn-pad-x: 14px;

  --focus: 2px solid rgba(30, 61, 47, 0.35);
}

/* -----------------------------
   Reset / base
----------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

html, body { overflow-x: clip; }

h1, h2, h3 {
  margin: 0 0 8px 0;
  line-height: 1.15;
}

p {
  margin: 0 0 10px 0;
  color: var(--muted);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-page);
}

/* -----------------------------
   Main + page wrapper
----------------------------- */
main {
  display: block;
  overflow: visible;
  padding-top: 0;
}

.page-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px var(--pad-page) 36px;
  overflow-wrap: anywhere;
}

/* -----------------------------
   Page topbar
----------------------------- */
.page-topbar {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: #1e3d2f;
  border-bottom: 1px solid rgba(30, 61, 47, 0.20);
  box-shadow: var(--shadow-sm);
  padding: 10px 14px;
}

.page-topbar__home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: #d4b483;
}

.home-arrow {
  font-size: 18px;
  line-height: 1;
}

/* -----------------------------
   Ticker
----------------------------- */
.ticker-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.ticker-wrap.is-hidden { display: none; }

.ticker-label {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  opacity: .75;
  white-space: nowrap;
}

.ticker {
  overflow: hidden;
  flex: 1;
  white-space: nowrap;
}

.ticker-text {
  display: inline-block;
  padding-left: 100%;
  padding-right: 30px;
  animation: ticker-scroll 12s linear infinite;
}

.ticker-wrap:hover .ticker-text {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* -----------------------------
   Page hero — Masters scoreboard style
----------------------------- */
.page-hero {
  background: #1e3d2f;
  border: none;
  border-radius: 0 0 18px 18px;
  padding: 16px 18px;
  margin-bottom: var(--gap);
  min-width: 0;
}

.page-hero h1 {
  font-size: 34px;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.page-hero h2 {
  color: #ffffff;
}

.page-hero p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.65);
}

.page-hero::after {
  content: "";
  display: block;
  width: 84px;
  height: 3px;
  border-radius: 999px;
  background: #d4b483;
  margin-top: 12px;
}

/* -----------------------------
   Buttons
----------------------------- */
.btn {
  appearance: none;
  border: 1px solid rgba(30, 61, 47, 0.12);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--btn-radius);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 160ms ease, border-color 160ms ease;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
}

.btn-primary {
  background: #1e3d2f;
  color: #fff;
  border-color: rgba(30, 61, 47, 0.20);
}

.btn-primary:hover { background: rgba(30, 61, 47, 0.90); }

.btn-secondary {
  background: rgba(30, 61, 47, 0.06);
  color: var(--text);
}

.btn-secondary:hover { background: rgba(30, 61, 47, 0.10); }

/* -----------------------------
   Actions row
----------------------------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--gap);
}

.meta-line {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* -----------------------------
   Sheet embed
----------------------------- */
.sheet-card {
  background: linear-gradient(180deg, var(--tint-1), var(--surface));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  min-width: 0;
}

.sheet-frame {
  width: 100%;
  height: 78vh;
  min-height: 520px;
  border: 0;
  display: block;
}

/* -----------------------------
   Cards + tables
----------------------------- */
.payouts-stack {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.payouts-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 16px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.payouts-card h2 {
  margin: 0 0 10px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(30, 61, 47, 0.12);
  position: relative;
}

.payouts-card h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 84px;
  height: 4px;
  border-radius: 999px;
  background: #d4b483;
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  position: relative;
  padding-right: 6px;
  padding-left: 6px;
}

.table-scroll::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 28px; height: 100%;
  pointer-events: none;
  background: linear-gradient(to left, var(--surface), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity 180ms ease;
}

.table-scroll::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 22px; height: 100%;
  pointer-events: none;
  background: linear-gradient(to right, var(--surface), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity 180ms ease;
}

.table-scroll.has-overflow::after  { opacity: 1; }
.table-scroll.is-end::after        { opacity: 0; }
.table-scroll.is-start::before     { opacity: 0; }
.table-scroll.is-middle::before    { opacity: 1; }

.payouts-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  max-width: 100%;
  min-width: 0;
}

.payouts-card.daily-quota .payouts-table,
.payouts-card.overall-quota .payouts-table {
  min-width: 520px;
}

.payouts-table th,
.payouts-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(30, 61, 47, 0.10);
  text-align: left;
  white-space: nowrap;
}

.payouts-table thead th {
  font-weight: 800;
  color: rgba(30, 61, 47, 0.75);
  background: rgba(212, 180, 131, 0.10);
}

.payouts-table .num {
  text-align: right;
  white-space: nowrap;
}

.payouts-table .day { font-weight: 800; }

code {
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
  vertical-align: bottom;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(30, 61, 47, 0.06);
}

/* -----------------------------
   Scoring card internals
----------------------------- */
.scoring-card .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.card-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 180, 131, 0.50);
  background: var(--accent-soft);
  color: #7a5a20;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.scoring-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 720px) {
  .scoring-grid { grid-template-columns: 1fr 1fr; }
}

.scoring-block {
  border: 1px solid rgba(30, 61, 47, 0.10);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, var(--tint-1), var(--surface));
  min-width: 0;
}

.scoring-block h3 { margin: 0 0 8px 0; }

.scoring-list {
  margin: 0;
  padding-left: 18px;
}

.scoring-list li + li { margin-top: 6px; }

.muted { color: rgba(30, 61, 47, 0.55); }

.bullets { padding-left: 18px; }
.bullets li + li { margin-top: 6px; }

/* =========================================================
   Home page — tournament header + hub grid
   ========================================================= */
.home-wrap {
  padding-top: 0;
}

.home-header {
  background: #1e3d2f;
  border-radius: 0 0 20px 20px;
  padding: 20px 16px 20px;
  margin-bottom: 14px;
}

.home-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: #d4b483;
  margin-bottom: 8px;
}

.home-title {
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 6px;
  letter-spacing: -.01em;
}

.home-sub {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  margin: 0 0 14px;
}

.home-bar {
  width: 60px;
  height: 3px;
  background: #d4b483;
  border-radius: 999px;
}

.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-bottom: 20px;
}

.hub-section-label {
  grid-column: span 2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9aaa9a;
  padding: 2px 2px 0;
}

.hub-divider {
  grid-column: span 2;
  border-top: 1px solid rgba(30,61,47,.10);
  margin: 2px 0;
}

.hub-card {
  display: block;
  background: #fffdf7;
  border: 1px solid rgba(30,61,47,.12);
  border-radius: 14px;
  padding: 12px;
  min-width: 0;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 160ms ease;
}

.hub-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  border-color: rgba(212,180,131,.50);
}

.hub-card:active {
  transform: translateY(0);
  box-shadow: none;
}

.hub-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.hub-card__title {
  font-size: 16px;
  font-weight: 800;
  color: #1e3d2f;
  margin: 0 0 3px;
  line-height: 1.2;
}

.hub-card__title--muted {
  color: #5a6b5a;
}

.hub-card__sub {
  font-size: 12px;
  color: #6b7c6b;
  margin: 0;
  line-height: 1.3;
}

.hub-ic {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #1e3d2f;
}

.hub-ic--gold {
  color: #d4b483;
}

.hub-ic--muted {
  color: #5a6b5a;
}

.hub-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(212,180,131,.50);
  background: rgba(212,180,131,.20);
  color: #7a5a20;
  font-weight: 900;
  font-size: 10px;
  white-space: nowrap;
}

/* Featured leaderboard card */
.hub-card--featured {
  grid-column: span 2;
  background: #1e3d2f;
  border-color: #1e3d2f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
}

.hub-card--featured .hub-card__title {
  font-size: 20px;
  color: #fff;
}

.hub-card--featured .hub-card__sub {
  color: rgba(255,255,255,.60);
  font-size: 13px;
}

.hub-card--featured:hover {
  border-color: rgba(212,180,131,.40);
}

/* Monday card */
.hub-card--monday {
  grid-column: span 2;
  background: linear-gradient(180deg, rgba(212,180,131,.10), #fffdf7);
  border-style: dashed;
  border-color: rgba(30,61,47,.15);
}

/* Mobile tweaks */
@media (max-width: 400px) {
  .home-title { font-size: 26px; }
  .hub-card__title { font-size: 15px; }
}

/* -----------------------------
   Rules page — reference cards
----------------------------- */
.rules-stack {
  display: grid;
  gap: 12px;
}

.ref-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 14px 16px;
  min-width: 0;
}

.ref-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(30,61,47,.10);
}

.ref-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1e3d2f;
  color: #d4b483;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ref-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  flex: 1;
  margin: 0;
}

.ref-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(212,180,131,.20);
  border: 1px solid rgba(212,180,131,.40);
  color: #7a5a20;
  white-space: nowrap;
}

.ref-rules {
  display: grid;
  gap: 10px;
}

.ref-rule {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  align-items: baseline;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(30,61,47,.06);
}

.ref-rule:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ref-rule-label {
  font-size: 11px;
  font-weight: 800;
  color: #7a5a20;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding-top: 3px;
}

.ref-sub-list {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  padding-left: 4px;
}

.ref-sub-list span {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

/* -----------------------------
   Pairings page
----------------------------- */
.pairings-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 6px 0 14px;
}

.pairings-tools label {
  font-weight: 800;
  color: rgba(30,61,47,.80);
}

.pairings-tools select {
  appearance: none;
  border: 1px solid rgba(30,61,47,.18);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  line-height: 1.1;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}

.pairings-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 14px;
  margin: 8px 0 8px;
}

.pairings-summary h2 { margin: 0 0 10px 0; font-size: 22px; }

.day-block {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.day-title {
  font-weight: 900;
  font-size: 22px;
  color: rgba(30,61,47,.90);
  padding: 14px 16px 4px;
}

.day-course {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .02em;
  padding: 0 16px 12px;
  opacity: .80;
}

.pairings-details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 10px 12px 14px;
  margin: 10px 0;
  overflow: hidden;
}

.pairings-details > summary {
  list-style: none;
  cursor: pointer;
  font-weight: 900;
  padding: 18px 16px;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  user-select: none;
}

.pairings-details > summary::-webkit-details-marker { display: none; }

.pairings-details > summary::after {
  content: "▸";
  font-size: 20px;
  color: rgba(30,61,47,.55);
  transform: rotate(0deg);
  transition: transform 160ms ease;
}

.pairings-details[open] > summary::after {
  transform: rotate(90deg);
}

.pairings-divider {
  border: 0;
  border-top: 1px solid rgba(30, 61, 47, .12);
  margin: 24px 0 20px;
}

.pairings-section-title { margin: 0 0 12px 0; }

.foursome-grid {
  display: grid;
  gap: 10px;
  padding: 12px 8px 4px;
}

@media (min-width: 900px) {
  .foursome-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 640px) and (max-width: 899px) {
  .foursome-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.foursome-card {
  border: 1px solid rgba(30,61,47,.10);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  min-width: 0;
  position: relative;
}

.foursome-card ul {
  margin: 0;
  padding: 8px 16px 12px;
  list-style: none;
}

.foursome-card li {
  line-height: 1.4;
  font-size: 20px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(30,61,47,.07);
  color: var(--text);
}

.foursome-card li:last-child { border-bottom: none; }
.foursome-card strong { color: var(--text); font-size: 22px; }

.page-wrap hr {
  border: 0;
  border-top: 1px solid rgba(30,61,47,.12);
  margin: 16px 0;
}

.group-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 0;
  border: none;
  background: #1e3d2f;
  color: #d4b483;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
  width: 100%;
}

/* -----------------------------
   Mobile tweaks
----------------------------- */
@media (max-width: 720px) {
  :root {
    --pad-page: 14px;
    --gap: 12px;
  }

  .page-wrap { padding: 10px var(--pad-page) 30px; }
  .page-hero h1 { font-size: 26px; }

  h2 {
    font-size: 1.25rem;
    margin-bottom: 8px;
  }

  .sheet-frame {
    height: 72vh;
    min-height: 480px;
  }

  .payouts-card { padding: 14px; }

  .payouts-table th,
  .payouts-table td { padding: 8px 10px; }

  .rules-grid { gap: 10px; margin-top: 10px; }
  .rule-card { padding: 14px; }

  .pairings-details { padding: 8px 10px 12px; }
  .foursome-grid { padding: 10px 6px 2px; }

  .group-badge { top: 10px; right: 10px; }

  .hub-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hub-card { padding: 12px 10px; }
  .hub-card h2 { font-size: 16px; }
  .hub-card p { font-size: 13px; }
}

/* =========================================================
   Weather
   ========================================================= */
.wx-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px 10px;
  scroll-snap-type: x mandatory;
}

.wx-card { scroll-snap-align: start; }

@media (min-width: 720px) {
  .wx-strip { grid-auto-columns: minmax(260px, 1fr); }
}

.wx-strip::-webkit-scrollbar { height: 8px; }
.wx-strip::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 999px;
}

.wx-condition {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(30,61,47,.12);
  background: rgba(30,61,47,.04);
  color: rgba(30,61,47,.75);
}

.wx-clear  { background: rgba(255,200,0,.15);   border-color: rgba(255,200,0,.35);   color: #8a5b00; }
.wx-cloudy { background: rgba(120,140,160,.15); border-color: rgba(120,140,160,.35); color: #3c4b57; }
.wx-rain   { background: rgba(30,120,200,.12);  border-color: rgba(30,120,200,.35);  color: #1b5d8e; }
.wx-storm  { background: rgba(100,80,180,.14);  border-color: rgba(100,80,180,.40);  color: #43387a; }
.wx-fog    { background: rgba(150,150,150,.14); border-color: rgba(150,150,150,.35); color: #555;    }

.wx-condition-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.wx-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.wx-date   { margin: 0 0 6px 0; }
.wx-temps  { margin: 0 0 6px 0; color: var(--text); }
.wx-icon-lg { font-size: 26px; line-height: 1; flex-shrink: 0; }

.wx-divider {
  border: 0;
  border-top: 1px solid rgba(30, 61, 47, 0.10);
  margin: 10px 0;
}

.wx-footer { margin: 0; color: var(--muted); }

.wx-wind-badge {
  border-color: rgba(30,61,47,0.16);
  background: rgba(30,61,47,0.04);
  color: rgba(30,61,47,0.75);
}

/* =========================================================
   Addresses
   ========================================================= */
.venue-list {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.venue-card {
  border: 1px solid rgba(30, 61, 47, 0.10);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, var(--tint-1), var(--surface));
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.venue-day {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #7a5a20;
}

.venue-name { margin: 0; font-size: 20px; }
.venue-sub  { margin: 0; font-size: 13px; color: var(--muted); }

.venue-address,
.venue-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(30, 61, 47, 0.10);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease;
  -webkit-tap-highlight-color: transparent;
}

.venue-address:active,
.venue-phone:active {
  background: var(--accent-soft);
  border-color: rgba(212, 180, 131, 0.50);
}

.venue-icon { font-size: 16px; flex-shrink: 0; }

/* =========================================================
   List spacing helpers
   ========================================================= */
.course-quota-list > li,
.course-list > li { margin-bottom: 20px; }

.course-quota-list > li > ul > li:first-child,
.course-list > li > ul > li:first-child { margin-top: 10px; }

/* =========================================================
   Leaderboard
   ========================================================= */
.lb-card {
  padding: 0;
  overflow: hidden;
  margin-bottom: var(--gap);
}

.lb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(30, 61, 47, .12);
}

.lb-header h2 {
  margin: 0;
  padding: 0;
  border: none;
}

.lb-header h2::after { display: none; }

.lb-updated {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.lb-content { padding: 0; }

.lb-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.lb-table thead tr { background: #1e3d2f; }

.lb-table thead th {
  padding: 8px 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #d4b483;
  text-align: center;
  border: none;
  background: none;
}

.lb-col-pos   { width: 32px; }
.lb-col-name  { text-align: left !important; padding-left: 12px !important; }
.lb-col-score { width: 40px; }
.lb-col-total { width: 46px; }

.lb-row { border-bottom: 1px solid rgba(30, 61, 47, .07); }
.lb-row:last-child { border-bottom: none; }
.lb-row--leader { background: rgba(212, 180, 131, .10); }

.lb-table tbody td {
  padding: 10px 6px;
  font-size: 13px;
  text-align: center;
  color: var(--text);
  border: none;
}

.lb-col-name {
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  padding-left: 12px;
}

.lb-col-pos {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.lb-row--leader .lb-col-pos { color: #d4b483; font-size: 14px; }
.lb-row--leader .lb-col-name { color: var(--text); }

.lb-pos   { color: #1e6b3a; font-weight: 700; }
.lb-neg   { color: #a32d2d; font-weight: 700; }
.lb-zero  { color: var(--muted); font-weight: 700; }
.lb-empty { color: rgba(30,61,47,.25); }

.lb-total-pos  { color: #1e3d2f; font-weight: 900; font-size: 14px; }
.lb-total-neg  { color: #a32d2d; font-weight: 900; font-size: 14px; }
.lb-total-zero { color: var(--muted); font-weight: 900; font-size: 14px; }
