/* ============================================================
   GT26 — 20-Year Anniversary Golf Trip
   style.css
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --green-darkest:  #060e08;
  --green-dark:     #0d1f12;
  --green-mid:      #12351a;
  --green-light:    #1a4a28;
  --green-accent:   #2a6640;

  --gold:           #c9a84c;
  --gold-light:     #e8d5a0;
  --gold-dim:       #a07830;
  --gold-glow:      rgba(201, 168, 76, 0.35);

  --cream:          #f5f0e8;
  --cream-dark:     #e8e0d0;
  --white:          #ffffff;

  --text-dark:      #1c1c1c;
  --text-mid:       #3d4a40;
  --text-muted:     #6b7a72;

  --radius:         8px;
  --radius-lg:      16px;
  --radius-xl:      24px;

  --shadow-sm:      0 2px 8px  rgba(0,0,0,0.10);
  --shadow-md:      0 4px 20px rgba(0,0,0,0.16);
  --shadow-lg:      0 8px 40px rgba(0,0,0,0.28);
  --shadow-gold:    0 4px 24px rgba(201,168,76,0.30);

  --transition:     0.25s ease;

  --font-display:   'Oswald', sans-serif;
  --font-serif:     'Playfair Display', serif;
  --font-body:      'Inter', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  {
  font-family: var(--font-body);
  background:  var(--green-dark);
  color:       var(--cream);
  line-height: 1.65;
  overflow-x:  hidden;
}
img   { max-width: 100%; display: block; border-radius: inherit; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }

/* Offset anchor scroll for sticky nav + ticker (96 px total) */
section[id] { scroll-margin-top: 96px; }

.container {
  max-width: 1100px;
  margin:    0 auto;
  padding:   0 1.25rem;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display:         inline-block;
  padding:         0.85rem 2rem;
  border-radius:   var(--radius);
  font-family:     var(--font-display);
  font-size:       0.95rem;
  font-weight:     600;
  letter-spacing:  0.09em;
  text-transform:  uppercase;
  cursor:          pointer;
  border:          2px solid transparent;
  transition:      transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  text-align:      center;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background:  var(--gold);
  color:       var(--green-darkest);
  box-shadow:  var(--shadow-gold);
}
.btn-gold:hover {
  background:  var(--gold-light);
  box-shadow:  0 6px 28px rgba(201,168,76,0.45);
}

.btn-outline {
  background:   transparent;
  color:        var(--cream);
  border-color: rgba(245,240,232,0.5);
}
.btn-outline:hover {
  background:   rgba(255,255,255,0.08);
  border-color: var(--cream);
}

.btn-sm { padding: 0.55rem 1.25rem; font-size: 0.8rem; }


/* ── Navigation ─────────────────────────────────────────────── */
#navbar {
  position:   fixed;
  top:        0; left: 0; right: 0;
  z-index:    1000;
  height:     64px;
  background: rgba(6, 14, 8, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,168,76,0.18);
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.4); }

.nav-container {
  max-width: 1100px;
  margin:    0 auto;
  padding:   0 1.25rem;
  height:    100%;
  display:   flex;
  align-items:     center;
  justify-content: space-between;
}

.nav-logo {
  font-family:    var(--font-display);
  font-size:      1.65rem;
  font-weight:    700;
  letter-spacing: 0.04em;
}
.nav-logo-gt  { color: var(--cream); }
.nav-logo-26  { color: var(--gold);  }

.nav-links {
  display:     flex;
  align-items: center;
  gap:         2rem;
}

.nav-link {
  font-family:    var(--font-display);
  font-size:      0.8rem;
  font-weight:    500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          rgba(245,240,232,0.72);
  transition:     color var(--transition), opacity var(--transition);
  position:       relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content:    '';
  position:   absolute;
  bottom:     -4px; left: 0;
  width:      0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-link:hover,
.nav-link.active { color: var(--gold); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Hamburger */
.nav-toggle {
  display:    none;
  flex-direction: column;
  gap:        5px;
  background: none;
  border:     none;
  cursor:     pointer;
  padding:    4px;
  z-index:    10;
}
.nav-toggle span {
  display:       block;
  width:         24px;
  height:        2px;
  background:    var(--cream);
  border-radius: 2px;
  transition:    transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ── Score Ticker ───────────────────────────────────────────── */
.score-ticker {
  position:   fixed;
  top:        64px; left: 0; right: 0;
  z-index:    999;
  height:     32px;
  background: var(--gold);
  overflow:   hidden;
  display:    flex;
  align-items: center;
}

.ticker-track {
  display:     flex;
  align-items: center;
  white-space: nowrap;
  animation:   ticker-scroll 35s linear infinite;
  font-family: var(--font-display);
  font-size:   0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  color:       var(--green-darkest);
}

.ticker-item  { padding: 0 1rem; }
.ticker-sep   { opacity: 0.45; padding: 0 0.25rem; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height:     100vh;
  display:        flex;
  flex-direction: column;
  padding-top:    96px; /* nav 64 + ticker 32 */
  position:       relative;
  overflow:       hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(42,102,64,0.45) 0%, transparent 70%),
    linear-gradient(170deg, #080f09 0%, #0d2015 45%, #08110a 100%);
}

/* Subtle diamond / fairway grid texture */
.hero-bg-pattern {
  position:   absolute;
  inset:      0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent, transparent 59px,
      rgba(201,168,76,0.04) 59px, rgba(201,168,76,0.04) 60px
    ),
    repeating-linear-gradient(
      90deg,
      transparent, transparent 59px,
      rgba(201,168,76,0.04) 59px, rgba(201,168,76,0.04) 60px
    );
  pointer-events: none;
}

.hero-inner {
  flex:           1;
  display:        flex;
  flex-direction: column;
  align-items:    center;
  justify-content: center;
  text-align:     center;
  padding-top:    3rem;
  padding-bottom: 4rem;
  position:       relative;
  z-index:        1;
}

/* Official Badge */
.official-badge {
  display:        inline-flex;
  align-items:    center;
  gap:            0.5rem;
  background:     rgba(201,168,76,0.10);
  border:         1px solid rgba(201,168,76,0.38);
  color:          var(--gold);
  font-family:    var(--font-display);
  font-size:      0.72rem;
  font-weight:    600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding:        0.4rem 1.1rem;
  border-radius:  100px;
  margin-bottom:  1.75rem;
  animation:      fadeDown 0.8s ease both;
}
.badge-star { font-size: 0.6rem; opacity: 0.8; }

/* Main Title */
.hero-title {
  font-family:    var(--font-display);
  font-size:      clamp(5.5rem, 20vw, 11rem);
  font-weight:    700;
  line-height:    1;
  letter-spacing: -0.02em;
  margin-bottom:  0.4rem;
  animation:      fadeDown 0.8s ease 0.1s both;
}
.hero-title-gt  { color: var(--white); }
.hero-title-num {
  color: var(--gold);
  text-shadow: 0 0 80px rgba(201,168,76,0.40);
}

.hero-tagline {
  font-family:    var(--font-serif);
  font-style:     italic;
  font-size:      clamp(1rem, 3vw, 1.45rem);
  color:          var(--gold-light);
  letter-spacing: 0.03em;
  margin-bottom:  0.75rem;
  animation:      fadeDown 0.8s ease 0.18s both;
}

.hero-meta {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             0.75rem;
  font-family:     var(--font-display);
  font-size:       clamp(0.78rem, 2vw, 0.95rem);
  letter-spacing:  0.1em;
  text-transform:  uppercase;
  color:           rgba(245,240,232,0.6);
  margin-bottom:   3rem;
  animation:       fadeDown 0.8s ease 0.24s both;
}
.hero-meta-pipe { color: var(--gold); opacity: 0.6; }

/* ── Countdown ──────────────────────────────────────────────── */
.countdown-wrapper {
  margin-bottom: 3rem;
  animation:     fadeDown 0.8s ease 0.32s both;
}

.countdown-label {
  font-family:    var(--font-display);
  font-size:      0.72rem;
  font-weight:    600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color:          var(--gold);
  margin-bottom:  1rem;
}

.countdown {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             0.5rem;
  flex-wrap:       wrap;
}

.countdown-unit {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            0.45rem;
}

.countdown-box {
  background:   rgba(0, 0, 0, 0.55);
  border:       1px solid rgba(201,168,76,0.28);
  border-radius: var(--radius);
  padding:      clamp(0.6rem, 1.5vw, 0.95rem) clamp(0.7rem, 2vw, 1.2rem);
  min-width:    clamp(56px, 12vw, 88px);
  text-align:   center;
  position:     relative;
  box-shadow:   0 4px 24px rgba(0,0,0,0.4),
                inset 0 1px 0 rgba(255,255,255,0.05);
}
/* horizontal split line */
.countdown-box::after {
  content:    '';
  position:   absolute;
  left: 0; right: 0; top: 50%;
  height:     1px;
  background: rgba(201,168,76,0.12);
}

.countdown-num {
  font-family:    var(--font-display);
  font-size:      clamp(2rem, 7vw, 3.6rem);
  font-weight:    700;
  color:          var(--white);
  line-height:    1;
  letter-spacing: -0.02em;
  position:       relative;
  z-index:        1;
  display:        block;
  font-variant-numeric: tabular-nums;
}

.countdown-unit-label {
  font-family:    var(--font-display);
  font-size:      0.63rem;
  font-weight:    600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color:          var(--gold);
}

.countdown-colon {
  font-family:    var(--font-display);
  font-size:      clamp(2rem, 6vw, 3.2rem);
  font-weight:    700;
  color:          var(--gold);
  margin-bottom:  1.8rem;
  opacity:        0.65;
  animation:      blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0.65; }
  50%       { opacity: 0.18; }
}

.countdown-sublabel {
  margin-top:     0.9rem;
  font-family:    var(--font-display);
  font-size:      0.7rem;
  letter-spacing: 0.1em;
  color:          rgba(245,240,232,0.35);
  text-transform: uppercase;
}

/* Hero CTA */
.hero-cta {
  display:         flex;
  gap:             1rem;
  flex-wrap:       wrap;
  justify-content: center;
  animation:       fadeDown 0.8s ease 0.42s both;
}

/* Stats Bar */
.stats-bar {
  background:   rgba(0, 0, 0, 0.38);
  border-top:   1px solid rgba(201,168,76,0.18);
  padding:      1.5rem 0;
  position:     relative;
  z-index:      1;
}

.stats-grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  text-align:            center;
}

.stat-card {
  padding:       1rem 0.5rem;
  border-right:  1px solid rgba(201,168,76,0.14);
}
.stat-card:last-child { border-right: none; }

.stat-number {
  font-family:    var(--font-display);
  font-size:      clamp(1.8rem, 5vw, 2.6rem);
  font-weight:    700;
  color:          var(--gold);
  line-height:    1;
}
.stat-sup {
  font-size:   0.55em;
  vertical-align: super;
  line-height: 0;
}
.stat-label {
  font-family:    var(--font-display);
  font-size:      0.67rem;
  font-weight:    500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          rgba(245,240,232,0.5);
  margin-top:     0.3rem;
}


/* ── Rick Roll Button ───────────────────────────────────────── */
.rickroll-wrapper {
  margin-top:     2.5rem;
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            0.5rem;
  animation:      fadeDown 0.8s ease 0.55s both;
}

.rickroll-eyebrow {
  font-family:    var(--font-display);
  font-size:      0.72rem;
  font-weight:    600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color:          rgba(245,240,232,0.45);
}

.btn-rickroll {
  display:        inline-flex;
  align-items:    center;
  gap:            0.6rem;
  padding:        1rem 2.25rem;
  border-radius:  var(--radius);
  font-family:    var(--font-display);
  font-size:      1.05rem;
  font-weight:    700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor:         pointer;
  color:          var(--green-darkest);
  background:     linear-gradient(135deg, #e8d060, var(--gold), #e8a020, var(--gold));
  background-size: 300% 300%;
  border:         none;
  box-shadow:     0 0 0 0 rgba(201,168,76,0.7);
  animation:      rickroll-pulse 2s ease-in-out infinite,
                  rickroll-gradient 3s ease infinite;
  transition:     transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}
.btn-rickroll:hover {
  transform:  translateY(-3px) scale(1.04);
  box-shadow: 0 8px 32px rgba(201,168,76,0.55);
  animation:  rickroll-gradient 3s ease infinite;
}

.rickroll-icon { font-size: 1rem; }

@keyframes rickroll-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(201,168,76,0.70); }
  60%  { box-shadow: 0 0 0 14px rgba(201,168,76,0.00); }
  100% { box-shadow: 0 0 0 0   rgba(201,168,76,0.00); }
}

@keyframes rickroll-gradient {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

.rickroll-sub {
  font-size:   0.72rem;
  color:       rgba(245,240,232,0.28);
  font-style:  italic;
}

/* ── Section Shared ─────────────────────────────────────────── */
.section { padding: 5rem 0; }

.section-cream {
  background: var(--cream);
  color:      var(--text-dark);
}
.section-dark {
  background: var(--green-dark);
  color:      var(--cream);
}

.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-eyebrow {
  font-family:    var(--font-display);
  font-size:      0.72rem;
  font-weight:    600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color:          var(--gold);
  margin-bottom:  0.4rem;
}

.section-title {
  font-family:    var(--font-display);
  font-size:      clamp(2rem, 5vw, 3rem);
  font-weight:    700;
  letter-spacing: -0.01em;
  line-height:    1.1;
}
.section-title.dark  { color: var(--green-dark); }
.section-title.light { color: var(--cream); }

.section-sub {
  font-size:   0.95rem;
  color:       var(--text-muted);
  margin-top:  0.45rem;
}
.section-sub.light { color: rgba(245,240,232,0.5); }


/* ── Schedule ───────────────────────────────────────────────── */
.schedule-day { margin-bottom: 2.75rem; }

.schedule-day-header {
  display:        flex;
  align-items:    baseline;
  gap:            0.9rem;
  margin-bottom:  1rem;
  padding-bottom: 0.75rem;
  border-bottom:  2px solid rgba(26,74,40,0.2);
}

.schedule-day-pill {
  font-family:    var(--font-display);
  font-size:      0.68rem;
  font-weight:    700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background:     var(--green-mid);
  color:          var(--gold);
  padding:        0.28rem 0.8rem;
  border-radius:  100px;
  white-space:    nowrap;
}

.schedule-day-title {
  font-family: var(--font-display);
  font-size:   1.25rem;
  font-weight: 600;
  color:       var(--text-dark);
}

.schedule-cards {
  display:        flex;
  flex-direction: column;
  gap:            0.7rem;
}

.schedule-card {
  display:       flex;
  align-items:   center;
  gap:           1rem;
  background:    var(--white);
  border:        1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding:       1.2rem 1.4rem;
  box-shadow:    var(--shadow-sm);
  transition:    transform var(--transition), box-shadow var(--transition);
}
.schedule-card:hover {
  transform:  translateY(-2px);
  box-shadow: var(--shadow-md);
}

.schedule-card-time {
  font-family: var(--font-display);
  font-size:   1rem;
  font-weight: 700;
  color:       var(--green-dark);
  min-width:   155px;
  flex-shrink: 0;
}

.schedule-card-info  { flex: 1; }

.schedule-card-course {
  font-family: var(--font-display);
  font-size:   1.05rem;
  font-weight: 700;
  color:       var(--green-dark);
}

.schedule-card-format {
  font-size:  0.84rem;
  color:      var(--text-muted);
  margin-top: 0.15rem;
}

.schedule-card-badge {
  font-family:    var(--font-display);
  font-size:      0.68rem;
  font-weight:    700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background:     var(--green-mid);
  color:          var(--gold);
  padding:        0.3rem 0.8rem;
  border-radius:  100px;
  white-space:    nowrap;
  flex-shrink:    0;
}
.schedule-card-badge--final {
  background: var(--gold);
  color:      var(--green-darkest);
}


/* ── Teams ──────────────────────────────────────────────────── */
.teams-grid {
  display:               grid;
  grid-template-columns: 1fr auto 1fr;
  gap:                   2rem;
  align-items:           start;
}

.team-card {
  background:    rgba(255,255,255,0.04);
  border:        1px solid rgba(201,168,76,0.16);
  border-radius: var(--radius-lg);
  overflow:      hidden;
}

.team-card-header {
  padding:       1.5rem;
  text-align:    center;
  border-bottom: 1px solid rgba(201,168,76,0.14);
}
.team-card--jason  .team-card-header { background: linear-gradient(135deg,rgba(26,74,40,0.5),rgba(13,32,18,0.4)); }
.team-card--jeremy .team-card-header { background: linear-gradient(135deg,rgba(26,50,90,0.5),rgba(13,20,40,0.4)); }

.team-icon {
  font-size:     1.8rem;
  margin-bottom: 0.4rem;
  opacity:       0.8;
}

.team-name {
  font-family:    var(--font-display);
  font-size:      1.3rem;
  font-weight:    700;
  color:          var(--gold);
  letter-spacing: 0.02em;
}

.team-record {
  font-family: var(--font-display);
  font-size:   0.82rem;
  color:       rgba(245,240,232,0.4);
  margin-top:  0.3rem;
}

.team-roster { padding: 0.75rem; }

.roster-item {
  display:       flex;
  align-items:   center;
  gap:           0.7rem;
  padding:       0.6rem 0.75rem;
  border-radius: 6px;
  transition:    background var(--transition);
}
.roster-item:hover { background: rgba(255,255,255,0.05); }

.roster-captain {
  border-bottom: 1px solid rgba(201,168,76,0.15);
  margin-bottom: 0.4rem;
  padding-bottom: 0.8rem;
}

.roster-num {
  font-family:    var(--font-display);
  font-size:      0.72rem;
  font-weight:    700;
  color:          var(--gold);
  width:          22px;
  text-align:     center;
  flex-shrink:    0;
}

.captain-badge {
  background:    var(--gold);
  color:         var(--green-darkest);
  width:         22px;
  height:        22px;
  border-radius: 50%;
  display:       flex;
  align-items:   center;
  justify-content: center;
  font-size:     0.65rem;
}

.roster-name {
  font-size:  0.95rem;
  color:      var(--cream);
  flex:       1;
}
.roster-captain .roster-name {
  font-weight: 600;
  color:       var(--gold-light);
}

.roster-tag {
  font-family:    var(--font-display);
  font-size:      0.62rem;
  font-weight:    600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--gold-dim);
  background:     rgba(201,168,76,0.1);
  padding:        0.15rem 0.5rem;
  border-radius:  100px;
}

/* VS column */
.teams-vs-col {
  display:         flex;
  align-items:     center;
  justify-content: center;
  padding-top:     3rem;
}

.teams-vs-badge {
  font-family:    var(--font-display);
  font-size:      2.5rem;
  font-weight:    700;
  color:          var(--gold);
  opacity:        0.35;
  writing-mode:   vertical-rl;
  letter-spacing: 0.2em;
}


/* ── Matches ────────────────────────────────────────────────── */
.matches-grid {
  display:               grid;
  grid-template-columns: repeat(2, 1fr);
  gap:                   1.25rem;
  margin-bottom:         2.75rem;
}

.match-card {
  background:    var(--white);
  border:        1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding:       1.5rem;
  box-shadow:    var(--shadow-sm);
  transition:    transform var(--transition), box-shadow var(--transition);
  position:      relative;
  overflow:      hidden;
}
.match-card:hover {
  transform:  translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Gold top accent bar */
.match-card::before {
  content:    '';
  position:   absolute;
  top: 0; left: 0; right: 0;
  height:     3px;
  background: var(--gold);
  opacity:    0.4;
}

.match-card--final { border-color: var(--gold); box-shadow: 0 4px 20px rgba(201,168,76,0.15); }
.match-card--final::before { opacity: 1; }

.match-card-day {
  font-family:    var(--font-display);
  font-size:      0.68rem;
  font-weight:    700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color:          var(--gold-dim);
  margin-bottom:  0.35rem;
}

.match-card-day-final {
  font-family:    var(--font-display);
  font-size:      0.68rem;
  font-weight:    700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color:          var(--gold-dim);
  margin-bottom:  0.35rem;
}
.match-card-day-final::before { content: '★ '; }

.match-card-title {
  font-family: var(--font-display);
  font-size:   1.1rem;
  font-weight: 700;
  color:       var(--green-dark);
  margin-bottom: 0.5rem;
}

.match-card-format {
  font-family:   var(--font-display);
  font-size:     0.9rem;
  font-weight:   600;
  color:         var(--green-accent);
  background:    rgba(26,74,40,0.1);
  display:       inline-block;
  padding:       0.22rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 0.7rem;
}

.match-card-desc {
  font-size:     0.875rem;
  color:         var(--text-muted);
  line-height:   1.55;
  margin-bottom: 1rem;
}

.match-card-footer {
  display:       flex;
  gap:           1rem;
  font-family:   var(--font-display);
  font-size:     0.72rem;
  font-weight:   500;
  letter-spacing: 0.08em;
  color:         var(--text-muted);
  border-top:    1px solid var(--cream-dark);
  padding-top:   0.75rem;
}

/* Scoring explainer */
.scoring-explainer {
  background:    var(--white);
  border:        1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding:       2rem;
  text-align:    center;
  margin-bottom: 2rem;
  box-shadow:    var(--shadow-sm);
}

.scoring-title {
  font-family:    var(--font-display);
  font-size:      1.1rem;
  font-weight:    700;
  color:          var(--green-dark);
  letter-spacing: 0.02em;
  margin-bottom:  1.5rem;
}

.scoring-grid {
  display:         flex;
  justify-content: center;
  gap:             1.25rem;
  flex-wrap:       wrap;
}

.scoring-item {
  flex:          1;
  min-width:     100px;
  max-width:     150px;
  padding:       1.2rem 0.75rem;
  border-radius: var(--radius);
}
.scoring-win  { background: rgba(26,74,40,0.09); }
.scoring-tie  { background: rgba(100,100,100,0.07); }
.scoring-loss { background: rgba(180,50,50,0.07); }

.scoring-result {
  font-family:    var(--font-display);
  font-size:      0.82rem;
  font-weight:    700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--text-dark);
  margin-bottom:  0.3rem;
}

.scoring-pts {
  font-family: var(--font-display);
  font-size:   1.75rem;
  font-weight: 700;
}
.scoring-win  .scoring-pts { color: var(--green-accent); }
.scoring-tie  .scoring-pts { color: var(--text-muted);   }
.scoring-loss .scoring-pts { color: #c0392b;              }
.scoring-item--gold        { background: rgba(201,168,76,0.12); }
.scoring-item--gold .scoring-pts { color: var(--gold-dim); }

.scoring-note {
  margin-top:     1rem;
  font-size:      0.8rem;
  color:          var(--text-muted);
  font-style:     italic;
}

/* Scoreboard */
.scoreboard {
  background:    var(--green-dark);
  border:        1px solid rgba(201,168,76,0.22);
  border-radius: var(--radius-xl);
  padding:       2.5rem 2rem;
  text-align:    center;
  box-shadow:    var(--shadow-lg);
}

.scoreboard-eyebrow {
  font-family:    var(--font-display);
  font-size:      0.72rem;
  font-weight:    600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color:          var(--gold);
  margin-bottom:  1.5rem;
}

.scoreboard-row {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             3rem;
}

.scoreboard-team-name {
  font-family:    var(--font-display);
  font-size:      0.85rem;
  font-weight:    500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--gold-light);
  margin-bottom:  0.4rem;
}

.scoreboard-score {
  font-family:    var(--font-display);
  font-size:      clamp(3rem, 10vw, 5.5rem);
  font-weight:    700;
  color:          var(--white);
  line-height:    1;
  font-variant-numeric: tabular-nums;
}

.scoreboard-dash {
  font-family: var(--font-display);
  font-size:   2rem;
  color:       var(--gold);
  opacity:     0.35;
}

.scoreboard-note {
  font-size:  0.75rem;
  color:      rgba(245,240,232,0.35);
  margin-top: 1rem;
  font-style: italic;
}


/* ── Courses ────────────────────────────────────────────────── */
.courses-grid {
  display:               grid;
  grid-template-columns: repeat(2, 1fr);
  gap:                   2rem;
}

.course-card {
  background:    rgba(255,255,255,0.04);
  border:        1px solid rgba(201,168,76,0.16);
  border-radius: var(--radius-lg);
  overflow:      hidden;
  transition:    transform var(--transition), box-shadow var(--transition);
}
.course-card:hover {
  transform:  translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.course-photo-placeholder {
  aspect-ratio: 16 / 9;
  background:   linear-gradient(135deg, rgba(26,74,40,0.5), rgba(8,18,10,0.9));
  border-bottom: 1px solid rgba(201,168,76,0.14);
  display:      flex;
  flex-direction: column;
  align-items:  center;
  justify-content: center;
  gap:          0.5rem;
  color:        rgba(245,240,232,0.45);
  font-size:    0.85rem;
  text-align:   center;
  padding:      1.5rem;
}
.placeholder-icon { font-size: 2rem; opacity: 0.6; }
.course-photo-placeholder small { font-size: 0.72rem; opacity: 0.55; }

/* When you add a real image */
.course-photo {
  width:        100%;
  aspect-ratio: 16 / 9;
  object-fit:   cover;
  border-radius: 0;
}

.course-card-body { padding: 1.5rem; }

.course-name {
  font-family:    var(--font-display);
  font-size:      1.5rem;
  font-weight:    700;
  color:          var(--gold);
  margin-bottom:  0.75rem;
}

.course-desc {
  font-size:     0.9rem;
  color:         rgba(245,240,232,0.68);
  line-height:   1.65;
  margin-bottom: 1rem;
}

.course-meta-row {
  display:       flex;
  flex-wrap:     wrap;
  gap:           0.6rem;
  margin-bottom: 1rem;
}

.course-meta-chip {
  font-family:    var(--font-display);
  font-size:      0.72rem;
  font-weight:    500;
  letter-spacing: 0.08em;
  color:          rgba(245,240,232,0.45);
  background:     rgba(255,255,255,0.05);
  padding:        0.22rem 0.6rem;
  border-radius:  100px;
}

.scorecard-placeholder {
  aspect-ratio:  5 / 3;
  background:    rgba(0,0,0,0.3);
  border:        1px dashed rgba(201,168,76,0.2);
  border-radius: var(--radius);
  display:       flex;
  flex-direction: column;
  align-items:   center;
  justify-content: center;
  gap:           0.4rem;
  color:         rgba(245,240,232,0.35);
  font-size:     0.82rem;
  text-align:    center;
  padding:       1rem;
  margin-bottom: 1rem;
}
.scorecard-placeholder small { font-size: 0.68rem; opacity: 0.7; font-family: monospace; }

/* When you add a real scorecard image */
.scorecard-img {
  width:         100%;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border:        1px solid rgba(201,168,76,0.18);
}


/* ── Gallery ────────────────────────────────────────────────── */
.gallery-grid {
  display:         grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows:  200px;
  gap:             0.85rem;
}

.gallery-item {
  position:      relative;
  border-radius: var(--radius);
  overflow:      hidden;
  cursor:        pointer;
  background:    var(--cream-dark);
}
.gallery-item:hover .gallery-placeholder { filter: brightness(0.9); }
.gallery-item:hover .gallery-caption    { opacity: 1; }

.gallery-item--featured { grid-column: span 2; grid-row: span 2; aspect-ratio: 1170 / 867; height: auto; }
.gallery-item--wide     { grid-column: span 2; }

.gallery-placeholder {
  width:           100%;
  height:          100%;
  background:      linear-gradient(135deg, var(--cream-dark), #d8d0c0);
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  gap:             0.4rem;
  color:           var(--text-muted);
  font-size:       0.82rem;
  transition:      filter var(--transition);
  border:          2px dashed #c8c0b0;
}
.gallery-placeholder span { font-size: 2.2rem; }
.gallery-placeholder small { font-size: 0.72rem; }

/* When you add a real photo */
.gallery-photo {
  width:      100%;
  height:     100%;
  object-fit: cover;
}

/* Featured gallery item — show full photo without cropping */
.gallery-item--featured .gallery-photo {
  object-fit:      contain;
  background:      #0d1f12;
}

.gallery-caption {
  position:   absolute;
  bottom: 0; left: 0; right: 0;
  padding:    0.6rem 0.9rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  font-family:    var(--font-display);
  font-size:  0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  color:      var(--white);
  transition: opacity var(--transition);
}


/* ── Player Field ───────────────────────────────────────────── */
.player-field {
  margin-top:    3rem;
  text-align:    center;
}

.player-field-title {
  font-family:    var(--font-display);
  font-size:      1rem;
  font-weight:    600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--gold);
  margin-bottom:  1.25rem;
}

.player-field-table-wrap {
  max-width:     480px;
  margin:        0 auto;
  border-radius: var(--radius-lg);
  border:        1px solid rgba(201,168,76,0.18);
  overflow:      hidden;
}

.player-field-table {
  width:           100%;
  border-collapse: collapse;
}

.player-field-table thead tr {
  background:    rgba(201,168,76,0.12);
  border-bottom: 1px solid rgba(201,168,76,0.25);
}

.player-field-table th {
  font-family:    var(--font-display);
  font-size:      0.68rem;
  font-weight:    600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          var(--gold);
  padding:        0.75rem 1rem;
  text-align:     left;
}

.player-field-table td {
  padding:       0.6rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color:         rgba(245,240,232,0.8);
  font-size:     0.9rem;
}
.player-field-table tbody tr:last-child td { border-bottom: none; }
.player-field-table tbody tr:hover { background: rgba(255,255,255,0.03); }

.pf-rank {
  font-family: var(--font-display);
  font-weight: 700;
  color:       rgba(201,168,76,0.5);
  font-size:   0.8rem;
  width:       32px;
}
.pf-rank--last { color: rgba(201,168,76,0.25); }

.pf-name { font-weight: 500; }

.pf-hcp {
  font-family: var(--font-display);
  font-weight: 700;
  color:       var(--gold-light);
  text-align:  right;
}

.pf-captain { color: var(--gold) !important; }

.pf-captain-badge {
  font-family:    var(--font-display);
  font-size:      0.62rem;
  font-weight:    700;
  letter-spacing: 0.08em;
  color:          var(--gold-dim);
  background:     rgba(201,168,76,0.12);
  padding:        0.1rem 0.45rem;
  border-radius:  100px;
  margin-left:    0.4rem;
  vertical-align: middle;
}

.pf-aka {
  font-size:  0.8rem;
  color:      rgba(245,240,232,0.4);
  font-style: italic;
}

.pf-tbd {
  font-family:    var(--font-display);
  font-size:      0.72rem;
  color:          var(--gold);
  background:     rgba(201,168,76,0.1);
  padding:        0.1rem 0.5rem;
  border-radius:  100px;
  letter-spacing: 0.08em;
}

/* ── History Table ──────────────────────────────────────────── */
.history-table-wrap {
  overflow-x:    auto;
  border-radius: var(--radius-lg);
  border:        1px solid rgba(201,168,76,0.18);
  margin-bottom: 2.5rem;
}

.history-table {
  width:           100%;
  border-collapse: collapse;
  font-family:     var(--font-body);
  font-size:       0.9rem;
}

.history-table thead tr {
  background: rgba(201,168,76,0.12);
  border-bottom: 1px solid rgba(201,168,76,0.25);
}

.history-table th {
  font-family:    var(--font-display);
  font-size:      0.72rem;
  font-weight:    600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          var(--gold);
  padding:        0.9rem 1.25rem;
  text-align:     left;
}

.history-table td {
  padding:     0.8rem 1.25rem;
  color:       rgba(245,240,232,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.history-table tbody tr:last-child td { border-bottom: none; }

.history-table tbody tr:hover { background: rgba(255,255,255,0.03); }

.history-row--highlight {
  background: rgba(201,168,76,0.07) !important;
}
.history-row--highlight td { color: var(--gold-light) !important; font-weight: 500; }

.history-year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size:   1rem;
  color:       var(--gold) !important;
}

.history-winner {
  display:        inline-block;
  background:     rgba(26,74,40,0.5);
  color:          #6dba8a;
  font-weight:    600;
  padding:        0.2rem 0.7rem;
  border-radius:  100px;
  font-size:      0.85rem;
}

.history-tbd {
  display:        inline-block;
  background:     rgba(201,168,76,0.15);
  color:          var(--gold);
  font-weight:    600;
  padding:        0.2rem 0.7rem;
  border-radius:  100px;
  font-size:      0.82rem;
  font-family:    var(--font-display);
  letter-spacing: 0.08em;
  animation:      blink 2s step-end infinite;
}

.history-dash  { opacity: 0.3; }
.history-score {
  font-family: var(--font-display);
  font-size:   0.85rem;
  color:       rgba(245,240,232,0.5);
  white-space: nowrap;
}

/* All-time leaders */
.history-leaders { text-align: center; }

.history-leaders-title {
  font-family:    var(--font-display);
  font-size:      1rem;
  font-weight:    600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--gold);
  margin-bottom:  1.25rem;
}

.history-leaders-grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   1rem;
}

.leader-card {
  background:    rgba(255,255,255,0.04);
  border:        1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius);
  padding:       1.25rem 0.75rem;
}

.leader-name {
  font-family: var(--font-display);
  font-size:   1.1rem;
  font-weight: 700;
  color:       var(--gold-light);
  margin-bottom: 0.25rem;
}

.leader-wins {
  font-family: var(--font-display);
  font-size:   0.85rem;
  font-weight: 600;
  color:       #6dba8a;
}

.leader-years {
  font-size:  0.75rem;
  color:      rgba(245,240,232,0.35);
  margin-top: 0.25rem;
}

@media (max-width: 600px) {
  .history-leaders-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Roster Page ────────────────────────────────────────────── */
.roster-page-hero {
  padding-top:    96px;
  padding-bottom: 3.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(42,102,64,0.45) 0%, transparent 70%),
    linear-gradient(170deg, #080f09 0%, #0d2015 45%, #08110a 100%);
  position:   relative;
  overflow:   hidden;
  text-align: center;
}

.roster-page-hero-inner {
  position:    relative;
  z-index:     1;
  padding-top: 2.5rem;
}

.roster-page-title {
  font-family:    var(--font-display);
  font-size:      clamp(2.8rem, 8vw, 5rem);
  font-weight:    700;
  color:          var(--white);
  letter-spacing: -0.02em;
  line-height:    1;
  margin:         0.4rem 0 0.6rem;
}

.roster-page-sub {
  font-family:    var(--font-display);
  font-size:      0.85rem;
  font-weight:    500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          rgba(245,240,232,0.4);
}

/* ── Scrollable wrapper ── */
.roster-list-wrap {
  overflow-x:    auto;
  border-radius: var(--radius-lg);
  border:        1px solid rgba(201,168,76,0.14);
}

/* Column template — shared by header and every row */
.roster-list-header,
.roster-row {
  display:               grid;
  grid-template-columns: minmax(180px, 1fr) 58px 90px 90px 70px 62px 56px 24px;
  gap:                   0 0.75rem;
  min-width:             640px;   /* keeps columns from crushing on narrow viewports */
}

/* ── List header ── */
.roster-list-header {
  padding:       0.3rem 1rem;
  border-bottom: 1px solid rgba(201,168,76,0.18);
  align-items:   center;
  background:    rgba(201,168,76,0.06);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Sort buttons */
.rl-sort-btn {
  background:     none;
  border:         none;
  cursor:         pointer;
  font-family:    var(--font-display);
  font-size:      0.6rem;
  font-weight:    700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          rgba(201,168,76,0.45);
  padding:        0.45rem 0.25rem;
  border-radius:  4px;
  transition:     color var(--transition);
  white-space:    nowrap;
  display:        flex;
  align-items:    center;
  justify-content: center;
  gap:            0.25rem;
  width:          100%;
}
.rl-sort-btn:first-child { justify-content: flex-start; }
.rl-sort-btn:hover       { color: var(--gold); }
.rl-sort-btn--active     { color: var(--gold) !important; }

.rl-sort-icon {
  font-size:   0.7rem;
  min-width:   0.7rem;
  display:     inline-block;
}

/* ── List container ── */
.roster-list {
  display:        flex;
  flex-direction: column;
}

/* ── Individual row ── */
.roster-row {
  align-items:     center;
  padding:         0.65rem 1rem;
  background:      transparent;
  border-bottom:   1px solid rgba(255,255,255,0.04);
  text-decoration: none;
  color:           inherit;
  transition:      background var(--transition), border-color var(--transition);
}
.roster-row:last-child { border-bottom: none; }
.roster-row:hover {
  background: rgba(201,168,76,0.07);
}

/* ── Avatar ── */
.rl-col-player {
  display:     flex;
  align-items: center;
  gap:         0.85rem;
  min-width:   0;
}

.rl-avatar {
  flex-shrink:   0;
  width:         48px;
  height:        48px;
  border-radius: 50%;
  overflow:      hidden;
  border:        2px solid rgba(201,168,76,0.25);
  background:    linear-gradient(135deg, var(--green-mid), var(--green-darkest));
}

.rl-avatar-img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
}

.rl-avatar-initials {
  width:           100%;
  height:          100%;
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-family:     var(--font-display);
  font-size:       1rem;
  font-weight:     700;
  color:           rgba(201,168,76,0.5);
}

/* ── Player name block ── */
.rl-player-info {
  min-width: 0;
}

.rl-player-name {
  font-family:  var(--font-display);
  font-size:    1rem;
  font-weight:  700;
  color:        var(--cream);
  white-space:  nowrap;
  overflow:     hidden;
  text-overflow: ellipsis;
  display:      flex;
  align-items:  center;
  gap:          0.45rem;
  flex-wrap:    wrap;
}

.rl-player-nick {
  font-family: var(--font-serif);
  font-style:  italic;
  font-size:   0.75rem;
  color:       var(--gold-light);
  line-height: 1.2;
}

.rl-player-rank {
  font-family:    var(--font-display);
  font-size:      0.6rem;
  font-weight:    600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          rgba(245,240,232,0.3);
  margin-top:     0.15rem;
}

/* Inline badges */
.rl-badge {
  font-family:    var(--font-display);
  font-size:      0.58rem;
  font-weight:    700;
  letter-spacing: 0.08em;
  padding:        0.15rem 0.45rem;
  border-radius:  100px;
  white-space:    nowrap;
  flex-shrink:    0;
}

.rl-badge--captain {
  background: var(--gold);
  color:      var(--green-darkest);
}

.rl-badge--champ {
  background: rgba(201,168,76,0.14);
  color:      var(--gold);
  border:     1px solid rgba(201,168,76,0.3);
}

/* ── Stat columns ── */
.rl-col-stat {
  text-align: center;
}

.rl-stat-val {
  font-family:    var(--font-display);
  font-size:      0.9rem;
  font-weight:    700;
  color:          rgba(245,240,232,0.75);
  white-space:    nowrap;
}

/* ── Arrow ── */
.rl-col-arrow {
  font-size:  1rem;
  color:      rgba(201,168,76,0.3);
  text-align: center;
  transition: color var(--transition), transform var(--transition);
}
.roster-row:hover .rl-col-arrow {
  color:     var(--gold);
  transform: translateX(3px);
}

/* ── Responsive ── */
/* All columns always visible — wrapper scrolls horizontally on small screens */
@media (max-width: 900px) {
  .roster-list-header,
  .roster-row {
    grid-template-columns: minmax(140px, 1fr) 52px 80px 80px 62px 52px 48px 20px;
    gap: 0 0.5rem;
    padding: 0.65rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .rl-avatar      { width: 36px; height: 36px; }
  .rl-player-rank { display: none; }
  .rl-badge       { display: none; }
}


/* ── Player Profile Page ────────────────────────────────────── */
.profile-loading {
  padding-top:    200px;
  text-align:     center;
  font-family:    var(--font-display);
  color:          rgba(245,240,232,0.35);
  font-size:      1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-not-found {
  font-family: var(--font-display);
  font-size:   clamp(2rem, 5vw, 3rem);
  color:       var(--cream);
  margin-top:  0.5rem;
}

.profile-hero {
  padding-top:    96px;
  padding-bottom: 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(42,102,64,0.45) 0%, transparent 70%),
    linear-gradient(170deg, #080f09 0%, #0d2015 45%, #08110a 100%);
  position:   relative;
  overflow:   hidden;
}

.profile-hero-inner {
  position:   relative;
  z-index:    1;
  padding-top: 2.5rem;
}

.profile-back-link {
  display:        inline-flex;
  align-items:    center;
  gap:            0.4rem;
  font-family:    var(--font-display);
  font-size:      0.78rem;
  font-weight:    600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          rgba(245,240,232,0.45);
  margin-bottom:  2.5rem;
  transition:     color var(--transition);
}
.profile-back-link:hover { color: var(--gold); }

.profile-card {
  display:     flex;
  align-items: center;
  gap:         3rem;
}

.profile-photo-wrap {
  flex-shrink:   0;
  width:         160px;
  height:        160px;
  border-radius: 50%;
  overflow:      hidden;
  border:        3px solid rgba(201,168,76,0.4);
  box-shadow:    0 0 0 6px rgba(201,168,76,0.08), 0 8px 40px rgba(0,0,0,0.5);
}

.profile-photo {
  width:      100%;
  height:     100%;
  object-fit: cover;
}

.profile-photo-placeholder {
  width:           100%;
  height:          100%;
  background:      linear-gradient(135deg, var(--green-mid), var(--green-dark));
  display:         flex;
  align-items:     center;
  justify-content: center;
}

.profile-initials {
  font-family:    var(--font-display);
  font-size:      3.5rem;
  font-weight:    700;
  color:          rgba(201,168,76,0.55);
  letter-spacing: -0.02em;
}

.profile-info { flex: 1; }

.profile-captain-badge {
  display:        inline-flex;
  align-items:    center;
  gap:            0.4rem;
  font-family:    var(--font-display);
  font-size:      0.68rem;
  font-weight:    700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background:     rgba(201,168,76,0.12);
  border:         1px solid rgba(201,168,76,0.3);
  color:          var(--gold);
  padding:        0.3rem 0.9rem;
  border-radius:  100px;
  margin-bottom:  0.75rem;
}

.profile-name {
  font-family:    var(--font-display);
  font-size:      clamp(2.2rem, 6vw, 3.5rem);
  font-weight:    700;
  color:          var(--white);
  line-height:    1.05;
  letter-spacing: -0.01em;
  margin-bottom:  0.3rem;
}

.profile-nickname {
  font-family:   var(--font-serif);
  font-style:    italic;
  font-size:     1.1rem;
  color:         var(--gold-light);
  margin-bottom: 1.25rem;
}

.profile-meta-row {
  display:    flex;
  flex-wrap:  wrap;
  gap:        0.75rem;
  margin-top: 1.25rem;
}

.profile-meta-chip {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  background:      rgba(255,255,255,0.05);
  border:          1px solid rgba(201,168,76,0.15);
  border-radius:   var(--radius);
  padding:         0.6rem 1.1rem;
  min-width:       90px;
  text-align:      center;
}

.profile-meta-label {
  font-family:    var(--font-display);
  font-size:      0.62rem;
  font-weight:    600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          rgba(245,240,232,0.4);
  margin-bottom:  0.2rem;
}

.profile-meta-val {
  font-family: var(--font-display);
  font-size:   1.1rem;
  font-weight: 700;
  color:       var(--gold-light);
}

/* Career Stat Cards */
.profile-stats-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   1.25rem;
}

.profile-stat-card {
  background:    var(--white);
  border:        1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding:       1.75rem 1.25rem;
  text-align:    center;
  box-shadow:    var(--shadow-sm);
  position:      relative;
  overflow:      hidden;
  transition:    transform var(--transition), box-shadow var(--transition);
}
.profile-stat-card:hover {
  transform:  translateY(-2px);
  box-shadow: var(--shadow-md);
}
.profile-stat-card::before {
  content:    '';
  position:   absolute;
  top: 0; left: 0; right: 0;
  height:     3px;
  background: var(--green-light);
  opacity:    0.4;
}
.profile-stat-card--win::before  { background: var(--green-accent); opacity: 1; }
.profile-stat-card--loss::before { background: #c0392b; opacity: 0.7; }
.profile-stat-card--gold::before { background: var(--gold); opacity: 1; }

.profile-stat-val {
  font-family:  var(--font-display);
  font-size:    clamp(2.2rem, 5vw, 3rem);
  font-weight:  700;
  color:        var(--green-dark);
  line-height:  1;
  margin-bottom: 0.4rem;
}
.profile-stat-card--win  .profile-stat-val { color: var(--green-accent); }
.profile-stat-card--loss .profile-stat-val { color: #c0392b; }
.profile-stat-card--gold .profile-stat-val { color: var(--gold-dim); }

.profile-stat-label {
  font-family:    var(--font-display);
  font-size:      0.68rem;
  font-weight:    600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          var(--text-muted);
}

/* Best-trip callout on profile hero */
.profile-best-year {
  display:        inline-flex;
  align-items:    center;
  gap:            0.6rem;
  flex-wrap:      wrap;
  margin-top:     1.25rem;
  background:     rgba(201,168,76,0.08);
  border:         1px solid rgba(201,168,76,0.22);
  border-radius:  var(--radius);
  padding:        0.55rem 1rem;
}

.profile-best-label {
  font-family:    var(--font-display);
  font-size:      0.68rem;
  font-weight:    700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--gold);
}

.profile-best-val {
  font-family: var(--font-display);
  font-size:   0.88rem;
  font-weight: 700;
  color:       var(--gold-light);
}

.profile-best-team {
  font-size:  0.78rem;
  color:      rgba(245,240,232,0.4);
  font-style: italic;
}

/* History loss badge (used in profile trip-history table) */
.history-loser {
  display:       inline-block;
  background:    rgba(180,50,50,0.12);
  color:         #c0392b;
  font-weight:   600;
  padding:       0.2rem 0.7rem;
  border-radius: 100px;
  font-size:     0.85rem;
}

/* Player field name links */
.pf-link {
  color:      inherit;
  transition: color var(--transition);
}
.pf-link:hover { color: var(--gold); }

@media (max-width: 700px) {
  .profile-card {
    flex-direction: column;
    align-items:    flex-start;
    gap:            1.75rem;
  }
  .profile-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .profile-photo-wrap { width: 110px; height: 110px; }
  .profile-initials   { font-size: 2.8rem; }
}


/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background:  var(--green-darkest);
  border-top:  1px solid rgba(201,168,76,0.14);
  padding:     3rem 0;
}

.footer-inner { text-align: center; }

.footer-logo {
  font-family:    var(--font-display);
  font-size:      3rem;
  font-weight:    700;
  letter-spacing: 0.04em;
  color:          var(--cream);
  margin-bottom:  0.4rem;
}
.footer-logo-accent { color: var(--gold); }

.footer-tagline {
  font-family:    var(--font-serif);
  font-style:     italic;
  font-size:      1rem;
  color:          var(--gold-light);
  margin-bottom:  0.25rem;
}

.footer-meta {
  font-family:    var(--font-display);
  font-size:      0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          rgba(245,240,232,0.35);
}

.footer-rule {
  width:      60px;
  height:     1px;
  background: rgba(201,168,76,0.3);
  margin:     1.5rem auto;
}

.footer-copy {
  font-size: 0.72rem;
  color:     rgba(245,240,232,0.28);
}


/* ── Video Modal ────────────────────────────────────────────── */
.video-modal {
  position:        fixed;
  inset:           0;
  z-index:         2000;
  background:      rgba(0,0,0,0.95);
  display:         flex;
  align-items:     center;
  justify-content: center;
  padding:         1.5rem;
  opacity:         0;
  pointer-events:  none;
  transition:      opacity 0.3s ease;
  cursor:          zoom-out;
}
.video-modal.open {
  opacity:        1;
  pointer-events: auto;
}
.modal-video {
  max-width:     100%;
  max-height:    85vh;
  border-radius: var(--radius);
  box-shadow:    0 16px 80px rgba(0,0,0,0.9);
  transform:     scale(0.94);
  transition:    transform 0.3s ease;
  cursor:        default;
}
.video-modal.open .modal-video { transform: scale(1); }

/* ── Lightbox ───────────────────────────────────────────────── */
.lightbox {
  position:        fixed;
  inset:           0;
  z-index:         2000;
  background:      rgba(0,0,0,0.92);
  display:         flex;
  align-items:     center;
  justify-content: center;
  padding:         1.5rem;
  opacity:         0;
  pointer-events:  none;
  transition:      opacity 0.25s ease;
  cursor:          zoom-out;
}
.lightbox.open {
  opacity:        1;
  pointer-events: auto;
}
.lightbox-img {
  max-width:     100%;
  max-height:    90vh;
  border-radius: var(--radius);
  box-shadow:    0 16px 80px rgba(0,0,0,0.8);
  transform:     scale(0.92);
  transition:    transform 0.25s ease;
  cursor:        default;
}
.lightbox.open .lightbox-img { transform: scale(1); }

.lightbox-close {
  position:   absolute;
  top:        1.25rem;
  right:      1.25rem;
  background: rgba(255,255,255,0.1);
  border:     1px solid rgba(255,255,255,0.2);
  color:      var(--white);
  font-size:  1.75rem;
  line-height: 1;
  width:      44px;
  height:     44px;
  border-radius: 50%;
  cursor:     pointer;
  display:    flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.scorecard-img { cursor: zoom-in; }

/* ── Fade-in animation ──────────────────────────────────────── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0);     }
}

.fade-in {
  opacity:    0;
  transform:  translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity:   1;
  transform: translateY(0);
}


/* ── Responsive — tablet ────────────────────────────────────── */
@media (max-width: 900px) {
  .teams-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .teams-vs-col { padding: 0; }
  .teams-vs-badge {
    writing-mode:   horizontal-tb;
    font-size:      1.5rem;
    opacity:        0.3;
  }
}

/* ── Responsive — mobile ────────────────────────────────────── */
@media (max-width: 768px) {
  section[id] { scroll-margin-top: 96px; }

  /* Nav */
  .nav-toggle { display: flex; }

  .nav-links {
    position:    fixed;
    top:         96px; left: 0; right: 0;
    background:  rgba(6,14,8,0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    padding:     1.5rem 1.25rem;
    gap:         0;
    transform:   translateY(-110%);
    opacity:     0;
    transition:  transform 0.32s ease, opacity 0.32s ease;
    pointer-events: none;
    border-bottom: 1px solid rgba(201,168,76,0.18);
    z-index:     998;
  }
  .nav-links.open {
    transform:      translateY(0);
    opacity:        1;
    pointer-events: auto;
  }
  .nav-link {
    padding:      0.9rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size:    0.95rem;
  }
  .nav-link::after { display: none; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card  { border-right: none; border-bottom: 1px solid rgba(201,168,76,0.12); }
  .stat-card:nth-child(odd) { border-right: 1px solid rgba(201,168,76,0.12); }
  .stat-card:nth-last-child(-n+2) { border-bottom: none; }

  /* Schedule cards */
  .schedule-card      { flex-wrap: wrap; }
  .schedule-card-time { min-width: 100%; }

  /* Matches */
  .matches-grid { grid-template-columns: 1fr; }

  /* Courses */
  .courses-grid { grid-template-columns: 1fr; }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows:        160px;
  }
  .gallery-item--featured,
  .gallery-item--wide { grid-column: span 2; }
}

@media (max-width: 480px) {
  .countdown { gap: 0.25rem; }
  .countdown-colon { font-size: 1.6rem; margin-bottom: 1.8rem; }

  .hero-cta { flex-direction: column; align-items: center; }
  .btn      { width: 100%; max-width: 300px; }

  .scoreboard-row { gap: 1.5rem; }

  .scoring-grid   { gap: 0.75rem; }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows:        180px;
  }
  .gallery-item--featured,
  .gallery-item--wide { grid-column: span 1; }
}


/* ── SmartFit Golf Ad Bar ── */
.sfg-ad-bar {
  background: #0a1a0f;
  border-top: 1px solid rgba(74,163,93,0.25);
  border-bottom: 1px solid rgba(74,163,93,0.25);
  padding: 18px 24px;
}
.sfg-ad-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sfg-ad-copy {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.sfg-ad-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #4aa35d;
  background: rgba(74,163,93,0.1);
  border: 1px solid rgba(74,163,93,0.3);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.sfg-ad-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}
.sfg-ad-btn {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a1a0f;
  background: #4aa35d;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.sfg-ad-btn:hover {
  background: #5dba70;
  transform: translateY(-1px);
}
@media (max-width: 520px) {
  .sfg-ad-inner { justify-content: center; text-align: center; }
  .sfg-ad-copy { justify-content: center; }
}
