/* =========================
   Westhills Black — Shared styles
   ========================= */
:root {
  --bg: #0a0a0a;
  --bg-elev: #161616;
  --bg-card: #1c1c1c;
  --border: #2a2a2a;
  --gold: #f0c14b;
  --gold-bright: #ffd95a;
  --gold-dim: #a8801c;
  --gold-shine: linear-gradient(135deg, #b8860b 0%, #f0c14b 25%, #fff3a8 50%, #ffd95a 75%, #b8860b 100%);
  --text: #f5f5f5;
  --text-dim: #a3a3a3;
  --text-faint: #6b6b6b;
  --red: #c44545;
  --green: #4a9d5e;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

/* ============ Header / Nav ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: inherit;
  text-decoration: none;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(240, 193, 75, 0.25);
  background: #000;
}

/* Hero logo (big, next to the team name) */
.hero-title-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 14px;
  text-align: left;
}
.hero-title-wrap h1 {
  margin: 0;
  text-align: left;
}
/* Wrapper: relative positioning so shine and shockwave can stack over the logo */
.hero-logo-wrap {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  border-radius: 16px;
}
/* Shockwave ring — expands outward from the logo on page load */
.hero-logo-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 3px solid rgba(255, 243, 168, 0.95);
  pointer-events: none;
  opacity: 0;
  z-index: 3;
  animation: logoShockwave 1.5s cubic-bezier(0.2, 0.7, 0.3, 1) 0.15s 1 forwards;
}
@keyframes logoShockwave {
  0%   { transform: scale(1);    opacity: 1;   border-width: 4px; }
  60%  { opacity: 0.5; }
  100% { transform: scale(2.4);  opacity: 0;   border-width: 0; }
}

/* The logo itself: opens with a bright flash, then settles into the steady halo pulse */
.hero-logo {
  width: 140px;
  height: 140px;
  border-radius: 16px;
  display: block;
  background: #000;
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 36px rgba(240, 193, 75, 0.45),
    0 0 80px rgba(240, 193, 75, 0.28),
    0 0 140px rgba(240, 193, 75, 0.14),
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(240, 193, 75, 0.35);
  animation:
    logoFlashIn 1.5s ease-out 0s 1 forwards,
    logoHalo 4.5s ease-in-out 1.5s infinite;
}
@keyframes logoFlashIn {
  0% {
    filter: brightness(1.4) saturate(1.2);
    box-shadow:
      0 0 0 rgba(255, 217, 90, 0),
      0 0 0 rgba(255, 217, 90, 0),
      0 0 0 rgba(255, 217, 90, 0),
      0 8px 32px rgba(0, 0, 0, 0.4),
      0 0 0 0 rgba(255, 243, 168, 0);
  }
  15% {
    filter: brightness(1.6) saturate(1.3);
    box-shadow:
      0 0 70px rgba(255, 243, 168, 1),
      0 0 160px rgba(255, 217, 90, 0.85),
      0 0 260px rgba(255, 217, 90, 0.5),
      0 8px 32px rgba(0, 0, 0, 0.4),
      0 0 0 3px rgba(255, 243, 168, 0.9);
  }
  100% {
    filter: brightness(1) saturate(1);
    box-shadow:
      0 0 36px rgba(240, 193, 75, 0.45),
      0 0 80px rgba(240, 193, 75, 0.28),
      0 0 140px rgba(240, 193, 75, 0.14),
      0 8px 32px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(240, 193, 75, 0.35);
  }
}
@keyframes logoHalo {
  0%, 100% {
    box-shadow:
      0 0 36px rgba(240, 193, 75, 0.45),
      0 0 80px rgba(240, 193, 75, 0.28),
      0 0 140px rgba(240, 193, 75, 0.14),
      0 8px 32px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(240, 193, 75, 0.35);
  }
  50% {
    box-shadow:
      0 0 48px rgba(255, 217, 90, 0.65),
      0 0 110px rgba(255, 217, 90, 0.42),
      0 0 180px rgba(255, 217, 90, 0.22),
      0 8px 32px rgba(0, 0, 0, 0.4),
      0 0 0 1.5px rgba(255, 243, 168, 0.55);
  }
}

/* Diagonal shine streak that swooshes across the logo on load */
.hero-logo-shine {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
.hero-logo-shine::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -120%;
  width: 80%;
  height: 140%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 243, 168, 0.0) 35%,
    rgba(255, 243, 168, 0.55) 45%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(255, 243, 168, 0.55) 55%,
    rgba(255, 243, 168, 0.0) 65%,
    transparent 100%
  );
  transform: skewX(-18deg);
  animation: logoShine 1.3s cubic-bezier(0.3, 0.1, 0.3, 1) 0.35s 1 forwards;
  mix-blend-mode: screen;
}
@keyframes logoShine {
  0%   { left: -120%; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: 200%;  opacity: 0; }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-logo-wrap::before,
  .hero-logo-shine::before {
    animation: none;
    opacity: 0;
  }
  .hero-logo {
    animation: logoHalo 4.5s ease-in-out infinite;
  }
}
@media (max-width: 620px) {
  .hero-title-wrap {
    flex-direction: column;
    gap: 16px;
  }
  .hero-title-wrap h1 {
    text-align: center;
  }
  .hero-logo {
    width: 110px;
    height: 110px;
  }
}
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
}
.nav-links > li { position: relative; }
.nav-links a, .nav-dropdown-toggle {
  color: var(--text-dim);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-links a:hover, .nav-dropdown-toggle:hover { color: var(--gold); background: var(--bg-elev); }
.nav-links a.active { color: var(--gold); background: rgba(240, 193, 75, 0.08); }
.nav-dropdown-toggle::after { content: "▾"; font-size: 10px; margin-top: 1px; }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  min-width: 280px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  z-index: 200;
  list-style: none;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 14px;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { color: var(--gold); background: rgba(240, 193, 75, 0.06); }
.nav-dropdown-menu .menu-section-label {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 14px 6px;
}
.nav-dropdown-menu .menu-item-sub {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 2px;
}
.nav-dropdown-menu a:hover .menu-item-sub { color: var(--text-dim); }
.nav-dropdown-menu hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 6px 0;
}
.nav-toggle {
  display: none;
  background: rgba(240, 193, 75, 0.12);
  border: 1.5px solid var(--gold-dim);
  color: var(--gold-bright);
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 10px rgba(240, 193, 75, 0.15);
}
.nav-toggle:hover { background: rgba(240, 193, 75, 0.18); border-color: var(--gold); }
@media (max-width: 760px) {
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    right: 20px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    min-width: 220px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--gold-dim);
    margin: 4px 0 4px 12px;
    padding: 4px 0 4px 8px;
    background: transparent;
    min-width: 0;
  }
}

/* ============ Page layout ============ */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  gap: 48px;
}
section { scroll-margin-top: 80px; }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}
.section-header h2 {
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section-header h2 .accent {
  color: var(--gold);
  margin-right: 8px;
}
.section-header h2 .accent-logo {
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.22em;
  border-radius: 5px;
  object-fit: cover;
  box-shadow: 0 0 8px rgba(240, 193, 75, 0.25);
}
.section-header .meta { color: var(--text-faint); font-size: 13px; }
.subheader {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin: 28px 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 64px 20px 56px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(212, 175, 55, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elev) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero-content { position: relative; max-width: 800px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.hero h1 .gold {
  background: var(--gold-shine);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 6s ease-in-out infinite;
  filter: drop-shadow(0 2px 8px rgba(240, 193, 75, 0.25));
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Red strikethrough across the entire "All Stars Black" line */
.hero h1 .strike-out {
  position: relative;
  text-decoration: line-through;
  text-decoration-color: rgba(255, 82, 82, 0.9);
  text-decoration-thickness: 5px;
  -webkit-text-decoration-line: line-through;
  -webkit-text-decoration-color: rgba(255, 82, 82, 0.9);
  -webkit-text-decoration-thickness: 5px;
  text-decoration-skip-ink: none;
  -webkit-text-decoration-skip-ink: none;
}

/* Daddy Ball Checklist — sarcastic notebook-style callout on the home hero */
.daddy-ball-checklist {
  position: relative;
  max-width: 620px;
  margin: 26px auto 28px;
  padding: 26px 26px 18px;
  background:
    repeating-linear-gradient(
      transparent,
      transparent 26px,
      rgba(255, 82, 82, 0.08) 27px
    ),
    rgba(255, 82, 82, 0.07);
  border: 2px dashed rgba(255, 82, 82, 0.55);
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), inset 0 0 0 3px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

/* "CERTIFIED" stamp in the corner, tilted like a rubber-stamped seal */
.dbc-stamp {
  position: absolute;
  top: 12px;
  right: -38px;
  transform: rotate(18deg);
  background: #ff3838;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  padding: 4px 44px;
  border: 2px solid #ff3838;
  outline: 1px dashed rgba(255, 255, 255, 0.55);
  outline-offset: -4px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
  box-shadow: 0 2px 8px rgba(255, 56, 56, 0.5);
  text-transform: uppercase;
  z-index: 2;
}

.dbc-title {
  font-family: "Bradley Hand", "Marker Felt", "Comic Sans MS", cursive;
  font-size: 26px;
  font-weight: 700;
  font-style: italic;
  color: #ff5252;
  text-align: center;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.dbc-subtitle {
  text-align: center;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
  font-weight: 600;
}
.dbc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dbc-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
}
.dbc-list li + li {
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}
.dbc-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0;
  border: 2px solid;
}
.dbc-x {
  color: #ffffff;
  background: #ff1f1f;
  border-color: #ff6b6b;
  box-shadow: 0 0 12px rgba(255, 31, 31, 0.7), inset 0 -2px 4px rgba(0, 0, 0, 0.25);
}
.dbc-check {
  color: #ffffff;
  background: #1fbf5f;
  border-color: #5fe39a;
  box-shadow: 0 0 12px rgba(31, 191, 95, 0.65), inset 0 -2px 4px rgba(0, 0, 0, 0.25);
}
.dbc-q {
  font-style: italic;
  color: var(--text);
  font-weight: 500;
}
.dbc-footer {
  text-align: center;
  font-family: "Bradley Hand", "Marker Felt", "Comic Sans MS", cursive;
  font-size: 14px;
  color: #ff5252;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 82, 82, 0.35);
  font-style: italic;
  letter-spacing: 0.5px;
}

@media (max-width: 520px) {
  .daddy-ball-checklist {
    margin: 18px 14px 22px;
    padding: 22px 16px 14px;
  }
  .dbc-list li { font-size: 13.5px; gap: 10px; padding: 8px 0; }
  .dbc-title { font-size: 22px; }
  .dbc-subtitle { font-size: 10.5px; }
  .dbc-mark { width: 24px; height: 24px; font-size: 15px; }
  .dbc-stamp { right: -32px; font-size: 9px; padding: 3px 38px; }
}

/* "Daddy Ball" handwritten note — big and bold, sits just below the struck-through line */
.hero h1 .daddy-ball {
  display: inline-block;
  font-family: "Bradley Hand", "Marker Felt", "Comic Sans MS", cursive;
  font-size: 1em;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.01em;
  color: #ff5252;
  -webkit-text-fill-color: #ff5252;
  background: none;
  filter: none;
  animation: none;
  transform: rotate(-5deg);
  margin-top: -0.25em;
  line-height: 1.0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.hero-tagline {
  color: var(--text-dim);
  font-size: clamp(15px, 2.2vw, 18px);
  max-width: 560px;
  margin: 0 auto 28px;
}
.hero-cta, .button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #ffd95a 0%, #f0c14b 50%, #c89622 100%);
  color: #1a1300;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  transition: filter 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(240, 193, 75, 0.3), inset 0 1px 0 rgba(255, 243, 168, 0.6);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.hero-cta:hover, .button:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(240, 193, 75, 0.45), inset 0 1px 0 rgba(255, 243, 168, 0.7);
  color: #1a1300;
}
.hero-cta:active, .button:active { transform: translateY(1px); }
.button.secondary {
  background: var(--bg-card);
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  box-shadow: none;
  text-shadow: none;
}
.button.secondary:hover {
  background: var(--bg-elev);
  color: var(--gold-bright);
  border-color: var(--gold);
  filter: none;
  box-shadow: 0 0 12px rgba(240, 193, 75, 0.15);
}

/* ============ Tournament card ============ */
.tournament-block { margin-bottom: 56px; }
.tournament-block:last-child { margin-bottom: 0; }
.tournament-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, #1a1a1a 100%);
  border: 1px solid var(--gold-dim);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.tournament-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8a6914 0%, #f0c14b 25%, #fff3a8 50%, #ffd95a 75%, #8a6914 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 12px rgba(240, 193, 75, 0.45);
  animation: barShimmer 6s ease-in-out infinite;
}
.tournament-card.compact { border-color: var(--border); }
.tournament-card.compact::before {
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-dim));
  height: 2px;
  box-shadow: none;
}
.tournament-card h3 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  margin-bottom: 8px;
}
.tournament-card .subtitle {
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.tournament-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.meta-item .label {
  color: var(--text-faint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.meta-item .value {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.tournament-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.tournament-status-badge.active {
  background: rgba(74, 157, 94, 0.15);
  color: var(--green);
  border: 1px solid rgba(74, 157, 94, 0.4);
}
.tournament-status-badge.upcoming {
  background: rgba(240, 193, 75, 0.10);
  color: var(--gold);
  border: 1px solid var(--gold-dim);
}
.tournament-status-badge.completed {
  background: rgba(107, 107, 107, 0.15);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

/* ============ Schedule / games ============ */
.schedule-list { display: grid; gap: 12px; }
.game {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  transition: border-color 0.2s;
}
.game:hover { border-color: var(--gold-dim); }
.game-date { text-align: center; min-width: 60px; }
.game-date .day {
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.game-date .month {
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1px;
}
.game-date .num {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  margin-top: 2px;
}
.game-info .matchup {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.game-info .location {
  color: var(--text-dim);
  font-size: 13px;
}
.game-info .location .field-link {
  color: var(--gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px dashed rgba(240, 193, 75, 0.35);
  transition: color 0.2s, border-color 0.2s;
}
.game-info .location .field-link:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
}
.game-info .location .field-link-icon {
  font-size: 10px;
  opacity: 0.7;
}
.game-info .location .calendar-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  margin-left: 10px;
  padding: 2px 8px;
  border: 1px solid var(--gold-dim);
  border-radius: 6px;
  background: rgba(240, 193, 75, 0.06);
  transition: background 0.15s, color 0.15s;
}
.game-info .location .calendar-link::before {
  content: "📅";
  font-size: 11px;
}
.game-info .location .calendar-link:hover {
  background: rgba(240, 193, 75, 0.18);
  color: var(--gold-bright);
}

/* Opponent name link (to GameChanger). Subtle dashed underline + tiny arrow icon.
   Inherits color from the surrounding "vs X" matchup text. */
.opponent-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(240, 193, 75, 0.45);
  transition: color 0.2s, border-color 0.2s;
}
.opponent-link:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
}
.opponent-link-icon {
  display: inline-block;
  margin-left: 3px;
  font-size: 0.75em;
  opacity: 0.7;
  vertical-align: baseline;
}
/* In the home page countdown ("First pitch vs X in"), hide the arrow icon —
   the name still links to GameChanger, just without the visual ↗. The dashed
   underline is enough of a tell, and the arrow read awkwardly in that label. */
.countdown-label .opponent-link-icon { display: none; }
.h2h-note {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  background: rgba(240, 193, 75, 0.06);
  border: 1px solid var(--gold-dim);
  border-radius: 6px;
}
.h2h-note::before { content: "↺"; color: var(--gold); }
.game-time {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}
.game.result .game-time {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}
.game.result.win .game-time { color: var(--green); }
.game.result.loss .game-time { color: var(--red); }
.game-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.game-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(240, 193, 75, 0.10);
  color: var(--gold);
  border: 1px solid var(--gold-dim);
}
.game-tag.playoff {
  background: rgba(240, 193, 75, 0.14);
  color: var(--gold-bright);
  border: 1px solid var(--gold);
  box-shadow: 0 0 10px rgba(240, 193, 75, 0.15);
}
.game-tag.championship {
  background: var(--gold-shine);
  background-size: 200% 200%;
  color: #1a1300;
  border: 1px solid var(--gold);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 10px rgba(240, 193, 75, 0.35), inset 0 1px 0 rgba(255, 243, 168, 0.5);
  animation: shimmer 6s ease-in-out infinite;
}
.game .yt-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 60, 60, 0.4);
  color: #ff6464;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.game .yt-link:hover { background: rgba(255, 0, 0, 0.2); color: #ff8080; }
.game .yt-link::before { content: "▶"; font-size: 10px; }
.game .recording-unavailable {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-faint);
  font-size: 11px;
  font-style: italic;
  padding: 4px 8px;
}
.game .recording-unavailable::before { content: "○"; font-size: 9px; opacity: 0.6; }
.placeholder-note {
  background: rgba(240, 193, 75, 0.08);
  border: 1px dashed var(--gold-dim);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 8px;
}
.placeholder-note strong { color: var(--gold); }

/* ============ Roster ============ */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.player {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.2s, transform 0.15s;
}
.player:hover { border-color: var(--gold); transform: translateY(-2px); }
.player-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-image:
    radial-gradient(circle at 30% 30%, #1a1a1a 0%, #050505 100%),
    var(--gold-shine);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border: 2px solid transparent;
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(240, 193, 75, 0.18), inset 0 1px 1px rgba(255, 217, 90, 0.15);
  text-shadow: 0 0 8px rgba(255, 217, 90, 0.4);
}
.player-name { font-size: 14px; font-weight: 600; line-height: 1.2; }
.player-position {
  color: var(--text-faint);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 3px;
}
.player-bio {
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 4px;
}
.player-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-elev), var(--bg-card));
  border: 2px solid var(--gold-dim);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 10px;
  text-align: center;
}

/* ============ Stats ============ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}
.stat-card .stat-value {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  background: var(--gold-shine);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 1px 4px rgba(240, 193, 75, 0.25));
}
.stat-card .stat-label {
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Countdown to first pitch (Home page) */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--bg-card), #1a1a1a);
  border: 1px solid var(--gold-dim);
  border-radius: 12px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.countdown::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #8a6914 0%, #f0c14b 25%, #fff3a8 50%, #ffd95a 75%, #8a6914 100%);
  background-size: 200% 100%;
  animation: barShimmer 6s ease-in-out infinite;
}
.countdown-label {
  color: var(--text-dim);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.countdown-units {
  display: flex;
  gap: 14px;
}
.countdown-unit {
  text-align: center;
  min-width: 52px;
}
.countdown-unit .num {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  background: var(--gold-shine);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.countdown-unit .lbl {
  color: var(--text-faint);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}
.countdown.live {
  border-color: var(--green);
}
.countdown.live .countdown-label { color: var(--green); }
.countdown.live::before {
  background: linear-gradient(90deg, var(--green), #6ec280, var(--green));
}

/* "2026 All-Star Season" banner (sits where the section header used to be) */
.all-star-banner-wrap {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.all-star-banner {
  display: inline-block;
  padding: 8px 21px;
  border: 1.5px solid var(--gold-dim);
  border-radius: 999px;
  color: var(--gold);
  font-size: clamp(16px, 2.7vw, 22px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  box-shadow: 0 0 14px rgba(240, 193, 75, 0.12), inset 0 0 0 1px rgba(240, 193, 75, 0.08);
}

/* Weather forecast grid (Tournament page) */
.weather-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.weather-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.weather-card .weather-date {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.weather-card .weather-icon {
  font-size: 38px;
  line-height: 1;
  margin-bottom: 6px;
}
.weather-card .weather-temps { font-size: 15px; font-weight: 700; }
.weather-card .weather-temps .hi { color: var(--text); }
.weather-card .weather-temps .lo { color: var(--text-faint); margin-left: 4px; }
.weather-card .weather-cond {
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 4px;
}
.weather-card .weather-precip {
  color: var(--text-faint);
  font-size: 11px;
  margin-top: 4px;
}

/* Pinned team-stats banner on Home */
.stats-banner {
  background: linear-gradient(135deg, var(--bg-card), #1a1a1a);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.stats-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #8a6914 0%, #f0c14b 25%, #fff3a8 50%, #ffd95a 75%, #8a6914 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 12px rgba(240, 193, 75, 0.45);
  animation: barShimmer 6s ease-in-out infinite;
}
@keyframes barShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Standalone gold bar — drop after a section header for a decorative top stripe */
.gold-bar {
  height: 3px;
  background: linear-gradient(90deg, #8a6914 0%, #f0c14b 25%, #fff3a8 50%, #ffd95a 75%, #8a6914 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 12px rgba(240, 193, 75, 0.45);
  animation: barShimmer 6s ease-in-out infinite;
  border-radius: 2px;
  margin-bottom: 18px;
}
.stats-banner .banner-label {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.stats-banner .stat-grid { gap: 10px; }
.stats-banner .stat-card { background: var(--bg); padding: 14px 10px; }
.stats-banner .stat-card .stat-value { font-size: 26px; }

/* Season chart inside the stats banner */
.season-chart {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.season-chart-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.season-chart-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.season-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.season-dot.win {
  background: rgba(74, 157, 94, 0.18);
  color: var(--green);
  border: 1px solid rgba(74, 157, 94, 0.5);
}
.season-dot.loss {
  background: rgba(196, 69, 69, 0.18);
  color: var(--red);
  border: 1px solid rgba(196, 69, 69, 0.5);
}
.season-dot:hover {
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}

/* ============ Scouting ============ */
.scouting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.scout-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}
.scout-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.scout-card .scout-record {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.scout-card p {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.55;
}

/* ============ Photos / Videos ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.photo-slot {
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(45deg, var(--bg-card), var(--bg-card) 10px, var(--bg-elev) 10px, var(--bg-elev) 20px);
  border: 1px dashed var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 12px;
  text-align: center;
  padding: 10px;
}
.photo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.15s;
}
.photo-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.photo-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #000;
  display: block;
}
.photo-card .photo-caption {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.4;
}
/* Photo submission form */
.submit-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.submit-form::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #8a6914, var(--gold), #fff3a8, var(--gold-bright), #8a6914);
  background-size: 200% 100%;
  animation: barShimmer 6s ease-in-out infinite;
}
.submit-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.submit-form label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.submit-form input[type="text"],
.submit-form textarea,
.submit-form input[type="file"] {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s;
}
.submit-form input[type="text"]:focus,
.submit-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.submit-form textarea { min-height: 64px; resize: vertical; }
.submit-form input[type="file"] {
  padding: 8px;
  color: var(--text-dim);
}
.submit-form .form-hint {
  color: var(--text-faint);
  font-size: 12px;
  margin-top: 6px;
}
.submit-form .form-success {
  background: rgba(74, 157, 94, 0.12);
  border: 1px solid rgba(74, 157, 94, 0.4);
  color: var(--green);
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
}

.photo-card .photo-tournament-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(240, 193, 75, 0.10);
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.15s;
}
.video-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.video-thumb {
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb::after {
  content: "▶";
  position: absolute;
  font-size: 36px;
  color: #fff;
  background: rgba(255, 0, 0, 0.85);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
.video-meta { padding: 14px 16px; }
.video-meta .v-title { font-size: 14px; font-weight: 700; line-height: 1.3; }
.video-meta .v-sub {
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 4px;
}

/* ============ Tournament Archive (legacy section, kept for tournament page) ============ */
.archive-list { display: grid; gap: 14px; }
.archive-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.archive-card summary {
  list-style: none;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}
.archive-card summary::-webkit-details-marker { display: none; }
.archive-card summary::after {
  content: "▾";
  color: var(--gold);
  font-size: 14px;
  transition: transform 0.2s;
}
.archive-card[open] summary::after { transform: rotate(180deg); }
.archive-card .archive-title { font-weight: 700; font-size: 16px; line-height: 1.3; }
.archive-card .archive-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}
.archive-card .archive-record { font-size: 14px; font-weight: 800; }
.archive-card .archive-record.w { color: var(--green); }
.archive-card .archive-record.l { color: var(--red); }
.archive-place {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.archive-place.champion {
  background: var(--gold-shine);
  color: #1a1300;
  border: 1px solid var(--gold);
}
.archive-place.runner-up {
  background: rgba(192, 192, 192, 0.15);
  color: #c0c0c0;
  border: 1px solid #8a8a8a;
}
.archive-place.semifinalist {
  background: rgba(205, 127, 50, 0.15);
  color: #cd7f32;
  border: 1px solid #8a5a25;
}
.archive-place.pool-finish {
  background: rgba(240, 193, 75, 0.10);
  color: var(--gold);
  border: 1px solid var(--gold-dim);
}
.archive-place.in-progress {
  background: rgba(74, 157, 94, 0.15);
  color: var(--green);
  border: 1px solid rgba(74, 157, 94, 0.4);
}
.archive-body { padding: 0 22px 22px; border-top: 1px solid var(--border); }
.archive-body h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 20px 0 10px;
}

/* ============ Standings table ============ */
table.standings { width: 100%; border-collapse: collapse; font-size: 13px; }
table.standings th, table.standings td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.standings th {
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
table.standings td.num {
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  width: 30px;
}
table.standings td.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
table.standings tr.us { background: rgba(240, 193, 75, 0.10); }
table.standings tr.us td { color: var(--gold); font-weight: 700; }
table.standings tr.us td.num { color: var(--gold); }
.standings-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}
.standings-class-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.10);
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  margin-right: 6px;
  letter-spacing: 0.04em;
}

/* ============ Tournament field grid ============ */
.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.field-team {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
}
.field-team.us {
  background: rgba(240, 193, 75, 0.12);
  border-color: var(--gold);
  font-weight: 700;
}
.field-team.us .field-rank { color: var(--gold-bright); }
.field-team .field-rank {
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  min-width: 22px;
  font-weight: 700;
  font-size: 12px;
}
.field-team .field-name { flex: 1; }
.field-team .us-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--gold-shine);
  color: #1a1300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============ Bracket diagrams ============ */
.bracket-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 18px;
}
.bracket-block.champ {
  border-color: var(--gold-dim);
  position: relative;
}
.bracket-block.champ::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #8a6914, var(--gold), #fff3a8, var(--gold), #8a6914);
  border-radius: 14px 14px 0 0;
}
.bracket-block .bracket-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bracket-block.champ .bracket-title { color: var(--gold-bright); }
.bracket-block .bracket-medal {
  font-size: 22px;
  line-height: 1;
}
.bracket-block .bracket-subtitle {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 4px;
}
.bracket-block .bracket-desc {
  color: var(--text-faint);
  font-size: 12px;
  margin-bottom: 18px;
}
.bracket-block.our-bracket {
  border: 1px solid var(--gold);
  box-shadow: 0 0 24px rgba(240, 193, 75, 0.15);
}
.our-bracket-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold-shine);
  color: #1a1300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 8px;
  vertical-align: middle;
}

.bracket-rounds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.bracket-round {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bracket-round-header {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.bracket-game {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.bracket-game.final { border-color: var(--gold); }
.bracket-game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bracket-game.final .bracket-game-header {
  background: rgba(240, 193, 75, 0.10);
  color: var(--gold);
}
.bracket-team {
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.bracket-team:last-child { border-bottom: none; }
.bracket-team.tbd {
  font-style: italic;
  color: var(--text-faint);
  display: block;
}
.bracket-team.winner {
  color: var(--text);
  font-weight: 700;
  background: rgba(74, 157, 94, 0.06);
}
.bracket-team.winner .bracket-team-name::before {
  content: "✓ ";
  color: var(--green);
  font-weight: 800;
}
.bracket-team.loser {
  color: var(--text-faint);
}
.bracket-team.us {
  color: var(--gold-bright);
}
.bracket-team.us.winner {
  background: rgba(240, 193, 75, 0.10);
  color: var(--gold-bright);
}
.bracket-team.us.winner .bracket-team-name::before {
  content: "★ ";
  color: var(--gold);
}
.bracket-team-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bracket-score {
  font-weight: 800;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: inherit;
  flex-shrink: 0;
}
.bracket-team.winner .bracket-score { color: var(--green); }
.bracket-team.us.winner .bracket-score { color: var(--gold-bright); }
.bracket-team.loser .bracket-score { color: var(--red); }
/* ============ Tournament calendar (Schedule page) ============ */
.calendar-wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.cal-month {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}
.cal-month-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-align: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.cal-dow-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}
.cal-dow {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-faint);
  padding: 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
/* Each week has two stacked grids:
   - .cal-week-cells: the day cells (normal flow, fills the row)
   - .cal-week-bars: tournament bars (absolutely positioned over the bottom of the row)
   Both grids share the same 7-column structure so bars align with cells. */
.cal-week {
  position: relative;
  margin-bottom: 5px;
}
.cal-week-cells {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.cal-cell {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  min-height: 120px;
  position: relative;
}
.cal-cell.empty { background: transparent; border-color: transparent; }
.cal-cell.today {
  outline: 2px solid var(--gold);
  outline-offset: -1px;
  background: rgba(240, 193, 75, 0.05);
}
.cal-date {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dim);
  line-height: 1;
}
.cal-cell.today .cal-date {
  background: var(--gold-shine);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 6s ease-in-out infinite;
  font-size: 20px;
}
/* Bars overlay layer: same column structure as cells, absolutely positioned
   so it sits over the bottom of the day cells. */
.cal-week-bars {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  pointer-events: none;
  z-index: 2;
}
.cal-bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
  transition: filter 0.15s, transform 0.15s;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
  min-height: 40px;
  text-align: center;
  margin: 0 4px;
}
.cal-bar:hover { filter: brightness(1.18); transform: translateY(-1px); }
.cal-bar.no-left-radius {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: 0;
}
.cal-bar.no-right-radius {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  margin-right: 0;
}
.cal-bar-text {
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: center;
}
.cal-legend-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.cal-legend-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: filter 0.15s, transform 0.15s;
}
.cal-legend-chip:hover { filter: brightness(1.12); transform: translateY(-1px); }
@media (max-width: 560px) {
  .cal-month { padding: 14px; }
  .cal-month-name { font-size: 18px; }
  .cal-week-cells { gap: 3px; }
  .cal-cell { padding: 6px 7px; border-radius: 6px; min-height: 70px; }
  .cal-date { font-size: 13px; }
  .cal-week-bars { bottom: 6px; gap: 3px; }
  .cal-bar { padding: 5px 6px; font-size: 9px; min-height: 22px; border-radius: 5px; margin: 0 2px; }
  .cal-bar.no-left-radius { margin-left: 0; }
  .cal-bar.no-right-radius { margin-right: 0; }
  .cal-dow { font-size: 10px; padding: 6px 0; }
}

/* ============ Results page list ============ */
.results-list { display: grid; gap: 12px; }
.tournament-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(240, 193, 75, 0.10);
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* ============ Player stats table ============ */
table.player-stats {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.player-stats th, table.player-stats td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.player-stats th {
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
table.player-stats td.numeric { text-align: right; font-variant-numeric: tabular-nums; }
table.player-stats td.player-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
table.player-stats .mini-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-image:
    radial-gradient(circle at 30% 30%, #1a1a1a 0%, #050505 100%),
    var(--gold-shine);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: var(--gold-bright);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

/* ============ Footer ============ */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 20px;
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
  margin-top: 32px;
}
footer .footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--gold);
  font-weight: 700;
}
.footer-disclaimer {
  max-width: 640px;
  margin: 20px auto 0;
  padding: 14px 18px;
  font-size: 11px;
  color: var(--text-faint);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  opacity: 0.85;
}

@media (max-width: 560px) {
  .game { grid-template-columns: auto 1fr; }
  .game-right {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
  .tournament-card { padding: 22px 18px; }
  .archive-card summary {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .archive-card .archive-record {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }
  .archive-card .archive-place {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

/* =====================================================
   Mobile-only readability pass (≤ 640px).
   Desktop layout is untouched — these rules only apply
   when the viewport is phone-sized.
   ===================================================== */
@media (max-width: 640px) {
  /* Tighten main padding so content has more breathing room on narrow screens */
  main { padding: 28px 16px; gap: 36px; }

  /* Hero — slightly more compact, but logo and title stay prominent */
  .hero { padding: 44px 18px 38px; }
  .hero-tagline { font-size: 15px; line-height: 1.55; }
  .hero-cta { padding: 12px 20px; font-size: 14px; }

  /* Section headers slightly smaller to fit on one line */
  .section-header { padding-bottom: 8px; margin-bottom: 16px; }
  .section-header .meta { font-size: 12px; }
  .subheader { font-size: 12px; margin: 22px 0 12px; padding-bottom: 5px; }

  /* "2026 All-Star Season" banner — keep readable */
  .all-star-banner { padding: 8px 18px; font-size: 16px; letter-spacing: 0.05em; }

  /* Stats banner — make the cards more readable */
  .stats-banner { padding: 16px; }
  .stats-banner .banner-label { font-size: 10px; margin-bottom: 10px; }
  .stats-banner .stat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stats-banner .stat-card { padding: 12px 8px; }
  .stats-banner .stat-card .stat-value { font-size: 22px; }
  .stats-banner .stat-card .stat-label { font-size: 10px; margin-top: 4px; }

  /* Countdown — tighter so 4 units fit comfortably */
  .countdown { padding: 12px 14px; gap: 10px; }
  .countdown-units { gap: 12px; }
  .countdown-unit { min-width: 44px; }
  .countdown-unit .num { font-size: 20px; }
  .countdown-unit .lbl { font-size: 9px; letter-spacing: 0.08em; }
  .countdown-label { font-size: 18px; letter-spacing: 0.06em; }

  /* Tournament card — bigger text, 2 meta items per row */
  .tournament-card { padding: 18px 16px; }
  .tournament-card h3 { font-size: 20px; line-height: 1.25; }
  .tournament-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .meta-item .label { font-size: 11px; }
  .meta-item .value { font-size: 14px; line-height: 1.3; }

  /* Game cards on schedule list — bigger location text */
  .game { padding: 14px 14px; gap: 12px; }
  .game-info .matchup { font-size: 15px; }
  .game-info .location { font-size: 13px; line-height: 1.5; }
  .game-info .location .calendar-link { padding: 4px 9px; font-size: 12px; }
  .game-time { font-size: 14px; }
  .game.result .game-time { font-size: 17px; }
  .game-date .day { font-size: 10px; }
  .game-date .num { font-size: 22px; }
  .h2h-note { font-size: 11px; padding: 3px 8px; }

  /* Scouting cards — the long-form section gets bigger text */
  .scouting-grid { gap: 12px; }
  .scout-card { padding: 16px; }
  .scout-card h4 { font-size: 16px; }
  .scout-card .scout-record { font-size: 12px; margin-bottom: 8px; }
  .scout-card p { font-size: 14px; line-height: 1.6; }

  /* Roster + Coaches — 2 cards per row, comfortable size */
  .roster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .player { padding: 14px 10px; gap: 10px; flex-direction: column; align-items: center; text-align: center; }
  .player-photo { width: 56px; height: 56px; }
  .player-num { width: 40px; height: 40px; font-size: 16px; }
  .player-name { font-size: 13px; line-height: 1.25; }
  .player-position { font-size: 10px; }

  /* Tournament field grid — 2 columns instead of auto-fit */
  .field-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .field-team { font-size: 12px; padding: 8px 10px; }
  .field-team .field-rank { font-size: 11px; min-width: 18px; }

  /* Brackets — comfortable spacing */
  .bracket-block { padding: 16px; margin-bottom: 14px; }
  .bracket-title { font-size: 16px; }
  .bracket-subtitle { font-size: 12px; }
  .bracket-desc { font-size: 11px; }
  .bracket-team { padding: 8px 10px; font-size: 12px; }
  .bracket-score { font-size: 13px; }
  .bracket-round-header { font-size: 9px; }

  /* By Tournament + standings tables — slightly tighter so they fit */
  table.standings { font-size: 12px; }
  table.standings th, table.standings td { padding: 7px 8px; }

  /* Photo gallery — 2 per row, slightly smaller captions */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .photo-card .photo-caption { padding: 10px 12px; font-size: 12px; }

  /* Video cards — one per row, comfortable text */
  .video-grid { grid-template-columns: 1fr; }
  .video-meta { padding: 12px 14px; }
  .video-meta .v-title { font-size: 14px; }

  /* Photo submission form — comfortable inputs */
  .submit-form { padding: 18px; }
  .submit-form input[type="text"],
  .submit-form textarea,
  .submit-form input[type="file"] { font-size: 16px; padding: 10px 12px; }

  /* Archive cards — more space, easier to tap */
  .archive-card summary { padding: 16px 18px; }
  .archive-card .archive-title { font-size: 15px; }
  .archive-card .archive-sub { font-size: 11px; }

  /* Tournament dropdown menu — easier touch targets */
  .nav-dropdown-menu { min-width: 240px; }
  .nav-dropdown-menu a { padding: 12px 14px; font-size: 14px; }
  .nav-dropdown-menu .menu-section-label { font-size: 13px; padding: 14px 14px 6px; }

  /* Footer */
  footer { padding: 24px 16px; font-size: 12px; }
}

/* Extra tight on very small phones (older iPhone SE, etc.) */
@media (max-width: 380px) {
  main { padding: 24px 12px; }
  .stats-banner .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-banner .stat-card .stat-value { font-size: 20px; }
  .roster-grid { grid-template-columns: 1fr; }
  .player { flex-direction: row; align-items: center; text-align: left; }
}

/* =====================================================
   Mobile bottom navigation + tournaments sheet
   Hidden on desktop, fixed bottom on phones.
   ===================================================== */
.bottom-nav { display: none; }
.tournament-sheet { display: none; }

@media (max-width: 760px) {
  .bottom-nav {
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    background: rgba(22, 22, 22, 0.97);
    border-top: 1px solid var(--gold-dim);
    margin-top: 28px;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px 8px;
    color: var(--text-dim);
    text-decoration: none;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
  }
  .bottom-nav-item:hover,
  .bottom-nav-item:active { color: var(--gold); background: rgba(240, 193, 75, 0.08); }
  .bottom-nav-item.active {
    color: var(--gold-bright);
    background: rgba(240, 193, 75, 0.12);
    box-shadow: inset 0 2px 0 var(--gold);
  }
  .bottom-nav-icon { font-size: 17px; line-height: 1; color: var(--gold); }
  .bottom-nav-label { font-size: 8.5px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; line-height: 1.15; text-align: center; }
  /* Tighter tabs since we now show 7 */
  .bottom-nav-item { padding: 9px 1px 7px; gap: 3px; }

  /* Prevent any horizontal scroll on phones */
  body { overflow-x: hidden; }

  /* Tournaments slide-up sheet */
  .tournament-sheet {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
  }
  .tournament-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.25s;
  }
  .tournament-sheet.open { pointer-events: auto; }
  .tournament-sheet.open .tournament-sheet-backdrop { opacity: 1; }
  .tournament-sheet-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-elev);
    border-top: 1.5px solid var(--gold-dim);
    border-radius: 18px 18px 0 0;
    padding: 12px 0 calc(20px + env(safe-area-inset-bottom, 0));
    max-height: 75vh;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6);
  }
  .tournament-sheet.open .tournament-sheet-panel { transform: translateY(0); }
  .tournament-sheet-handle {
    width: 44px;
    height: 4px;
    background: var(--border);
    border-radius: 999px;
    margin: 0 auto 12px;
  }
  .tournament-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 22px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .tournament-sheet-close {
    background: none;
    border: none;
    color: var(--text-faint);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
  }
  .tournament-sheet-close:hover { color: var(--text); }
  .tournament-sheet-body {
    overflow-y: auto;
    padding: 6px 12px 0;
    flex: 1;
  }
  .tournament-sheet-section-label {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 14px 10px 6px;
  }
  .tournament-sheet-item {
    display: block;
    padding: 12px 12px;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s;
  }
  .tournament-sheet-item:hover,
  .tournament-sheet-item:active { background: rgba(240, 193, 75, 0.08); }
  .tournament-sheet-item-name {
    font-size: 15px;
    font-weight: 700;
  }
  .tournament-sheet-item-sub {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 3px;
  }

  /* Prevent body scroll when sheet is open */
  body.tournament-sheet-open { overflow: hidden; }
}

/* =====================================================
   Mobile overflow safety (Photos + Schedule pages)
   ===================================================== */
@media (max-width: 640px) {
  /* Photos page — keep everything inside the viewport */
  .photo-card, .video-card { min-width: 0; max-width: 100%; }
  .photo-card img, .video-thumb img { max-width: 100%; }
  .photo-caption, .video-meta { min-width: 0; }
  .photo-caption,
  .video-meta .v-title,
  .video-meta .v-sub { word-wrap: break-word; overflow-wrap: anywhere; }

  /* Photo submission form — bounded inputs */
  .submit-form { max-width: 100%; box-sizing: border-box; }
  .submit-form input,
  .submit-form textarea {
    max-width: 100%;
    box-sizing: border-box;
    width: 100%;
  }

  /* Schedule (calendar) — tighter so it never overflows */
  .calendar-wrap { max-width: 100%; }
  .cal-month { max-width: 100%; box-sizing: border-box; overflow: hidden; }
  .cal-legend-chips { gap: 6px; }
  .cal-legend-chip {
    font-size: 10px;
    padding: 5px 10px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media (max-width: 560px) {
  /* Calendar at phone width — smaller cells, smaller bar text */
  .cal-month { padding: 12px; }
  .cal-month-name { font-size: 16px; padding-bottom: 10px; margin-bottom: 8px; }
  .cal-dow-row { gap: 2px; margin-bottom: 4px; }
  .cal-dow { font-size: 9px; padding: 4px 0; }
  .cal-week-cells { gap: 2px; }
  .cal-cell {
    padding: 4px 5px;
    border-radius: 5px;
    min-height: 64px;
    min-width: 0;
  }
  .cal-date { font-size: 11px; }
  .cal-cell.today .cal-date { font-size: 12px; }
  .cal-week-bars { bottom: 4px; gap: 2px; padding: 0 0; }
  .cal-bar {
    padding: 4px 5px;
    font-size: 8px;
    min-height: 18px;
    border-radius: 4px;
    margin: 0 1px;
    letter-spacing: 0;
  }
  .cal-bar.no-left-radius { margin-left: 0; }
  .cal-bar.no-right-radius { margin-right: 0; }
}

/* =====================================================
   Mobile overflow safety — Results page
   ===================================================== */
@media (max-width: 640px) {
  /* Force every section to respect viewport width */
  main { width: 100%; max-width: 100%; box-sizing: border-box; }
  main section { min-width: 0; max-width: 100%; }

  /* Standings tables (By Tournament + pool play) — internal horizontal scroll
     instead of pushing the page wider */
  .standings-wrap { max-width: 100%; width: 100%; box-sizing: border-box; }
  table.standings { width: 100%; min-width: 0; }
  table.standings th,
  table.standings td {
    padding: 6px 7px;
    font-size: 11px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: anywhere;
  }
  table.standings td:first-child { min-width: 110px; }

  /* Game cards in the results list — never exceed cell width */
  .results-list { min-width: 0; }
  .game { min-width: 0; max-width: 100%; box-sizing: border-box; padding: 12px 12px; gap: 10px; }
  .game-info { min-width: 0; }
  .game-info .matchup,
  .game-info .location {
    overflow-wrap: anywhere;
    min-width: 0;
  }
  .game-info .location {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    align-items: center;
  }
  .game-info .location .field-link,
  .game-info .location .calendar-link { max-width: 100%; }

  /* Filter chips — compact so the long tournament name fits */
  #filterBar { gap: 6px; }
  #filterBar button {
    font-size: 11px !important;
    padding: 6px 10px !important;
    max-width: 100%;
  }

  /* Tournament tag inside game card */
  .tournament-tag { font-size: 9px; padding: 2px 6px; }
}

/* =====================================================
   Mobile-only: let the By Tournament table be its natural readable width
   and scroll horizontally inside its wrapper. The All Games list below
   stays at the standard width.
   ===================================================== */
@media (max-width: 640px) {
  .by-tournament-section {
    margin-left: -10px;
    margin-right: -10px;
  }
  /* Force the wrapper to scroll horizontally and the table to be readable */
  .by-tournament-section .standings-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table.by-tournament-table {
    min-width: 680px;
    font-size: 13px;
  }
  table.by-tournament-table th,
  table.by-tournament-table td {
    padding: 9px 12px;
    white-space: nowrap;
  }
  /* Tournament name column can wrap if it's really long */
  table.by-tournament-table th:first-child,
  table.by-tournament-table td:first-child {
    min-width: 160px;
    white-space: normal;
  }
  table.by-tournament-table td.numeric { font-weight: 700; }
  /* Subtle hint that the table scrolls sideways */
  .by-tournament-section .standings-wrap::after {
    content: "↔ swipe";
    display: block;
    text-align: right;
    font-size: 10px;
    color: var(--text-faint);
    padding: 4px 10px 0;
    opacity: 0.6;
  }
}

/* =====================================================
   By Team section (Results page) — head-to-head table per opponent,
   split into All-Star and Travel Ball tables. Same look as By Tournament.
   ===================================================== */
.by-team-section .by-team-subheader {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin: 22px 0 12px;
}
.by-team-section .by-team-subheader:first-of-type { margin-top: 8px; }
.by-team-section .standings-wrap + .by-team-subheader { margin-top: 28px; }

/* Lock column widths so both the All-Star and Travel Ball tables render with the
   same proportions — makes the two grids read as one continuous chart. */
table.by-team-table {
  table-layout: fixed;
  width: 100%;
}
table.by-team-table th:nth-child(1),
table.by-team-table td:nth-child(1) { width: 22%; } /* Team */
table.by-team-table th:nth-child(2),
table.by-team-table td:nth-child(2) { width: 8%;  } /* Games */
table.by-team-table th:nth-child(3),
table.by-team-table td:nth-child(3) { width: 9%;  } /* Record */
table.by-team-table th:nth-child(4),
table.by-team-table td:nth-child(4) { width: 6%;  } /* RS */
table.by-team-table th:nth-child(5),
table.by-team-table td:nth-child(5) { width: 6%;  } /* RA */
table.by-team-table th:nth-child(6),
table.by-team-table td:nth-child(6) { width: 8%;  } /* Diff */
table.by-team-table th:nth-child(7),
table.by-team-table td:nth-child(7) { width: 41%; overflow-wrap: anywhere; } /* Scores */

/* Mobile: same horizontal-scroll treatment as By Tournament so the
   7-column table doesn't squish on phones. */
@media (max-width: 640px) {
  .by-team-section {
    margin-left: -10px;
    margin-right: -10px;
  }
  .by-team-section .standings-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .by-team-section .by-team-subheader {
    margin-left: 10px;
    margin-right: 10px;
  }
  table.by-team-table {
    min-width: 680px;
    font-size: 13px;
  }
  table.by-team-table th,
  table.by-team-table td {
    padding: 9px 12px;
    white-space: nowrap;
  }
  table.by-team-table th:first-child,
  table.by-team-table td:first-child {
    min-width: 160px;
    white-space: normal;
  }
  /* Swipe hint, matches By Tournament */
  .by-team-section .standings-wrap::after {
    content: "↔ swipe";
    display: block;
    text-align: right;
    font-size: 10px;
    color: var(--text-faint);
    padding: 4px 10px 0;
    opacity: 0.6;
  }
}

/* =====================================================
   Districts Roundup — small recap cards (one per district) on the
   PONY District 4 tournament page.
   ===================================================== */
.districts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.district-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}
.district-card.ours {
  border-color: var(--gold);
  background: rgba(240, 193, 75, 0.06);
  box-shadow: 0 0 16px rgba(240, 193, 75, 0.18);
}
.district-card-head {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.district-num {
  font-size: 15px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.district-num .ours-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: rgba(240, 193, 75, 0.15);
  border: 1px solid var(--gold-dim);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.district-meta {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 3px;
}
.district-finisher {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13.5px;
  padding: 4px 0;
  color: var(--text);
}
.district-finisher.pending { color: var(--text-faint); font-style: italic; }
.finisher-medal { font-size: 13px; flex-shrink: 0; }
.district-note {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
}

/* Sections Roundup additions: advancement badge + field list */
.section-advances {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin: 2px 0 8px;
  border: 1px solid;
}
.section-advances.advances-two {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.3);
}
.section-advances.advances-one {
  color: var(--accent);
  background: rgba(255, 199, 44, 0.08);
  border-color: rgba(255, 199, 44, 0.3);
}
.section-advances.advances-tbd {
  color: var(--text-faint);
  background: transparent;
  border-color: var(--border);
  font-style: italic;
}
.section-field-line {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
  line-height: 1.6;
}
.section-field-line a {
  color: var(--text);
  text-decoration: none;
}
.section-field-line a:hover { color: var(--accent); }

/* =====================================================
   Stats page — passcode gate + batting table
   ===================================================== */
.gate-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 22px;
  max-width: 520px;
  margin: 12px auto 0;
}
.gate-card .gate-intro {
  color: var(--text-dim);
  line-height: 1.55;
  font-size: 14px;
  margin: 0 0 18px;
}
.gate-card .gate-hint {
  font-size: 12px;
  color: var(--text-faint);
  font-style: italic;
}
.gate-card form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.gate-card input[type="password"] {
  flex: 1 1 200px;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
}
.gate-card input[type="password"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 193, 75, 0.15);
}
.gate-error {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(220, 80, 80, 0.10);
  border: 1px solid rgba(220, 80, 80, 0.35);
  border-radius: 8px;
  color: var(--red);
  font-size: 13px;
}

/* Filter bar above the stats tables — "All Games" + one chip per game */
.stats-filter-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.stats-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stats-chip {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.stats-chip:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
}
.stats-chip.active {
  background: rgba(240, 193, 75, 0.15);
  color: var(--gold-bright);
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(240, 193, 75, 0.18);
}
.stats-filter-context {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-dim);
}
.stats-filter-context strong { color: var(--gold); }
.stats-filter-sub { color: var(--text-faint); }

/* Stats table — wider columns, rate stats in gold */
table.stats-table th,
table.stats-table td {
  padding: 8px 9px;
}
/* Sortable column headers — clickable, with caret on the active sort */
table.stats-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: color 0.15s, background 0.15s;
  position: relative;
}
table.stats-table th.sortable:hover {
  color: var(--gold-bright);
  background: rgba(240, 193, 75, 0.06);
}
table.stats-table th.sort-asc,
table.stats-table th.sort-desc {
  color: var(--gold);
  background: rgba(240, 193, 75, 0.10);
}
table.stats-table th.sort-asc::after  { content: " ▲"; font-size: 9px; opacity: 0.85; }
table.stats-table th.sort-desc::after { content: " ▼"; font-size: 9px; opacity: 0.85; }
table.stats-table .stat-rate {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
table.stats-table .stat-ops {
  color: var(--gold);
  font-weight: 700;
}
table.stats-table tfoot tr.team-totals {
  background: rgba(240, 193, 75, 0.10);
  border-top: 2px solid var(--gold-dim);
}
table.stats-table tfoot tr.team-totals td {
  color: var(--gold);
  padding-top: 12px;
  padding-bottom: 12px;
}

.legend-card {
  margin-top: 18px;
  padding: 12px 16px;
  background: rgba(240, 193, 75, 0.06);
  border: 1px solid var(--gold-dim);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}
.legend-card strong { color: var(--gold); }
.lock-back {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
}
.lock-back a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px dashed rgba(240, 193, 75, 0.35);
}
.lock-back a:hover { color: var(--gold-bright); }
.lock-back-note { color: var(--text-faint); margin-left: 8px; }

/* Mobile: stats table is 17 columns wide — much wider than the viewport.
   Same horizontal-scroll treatment as the pool play standings. */
@media (max-width: 640px) {
  .stats-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    box-sizing: border-box;
  }
  table.stats-table {
    min-width: 1100px;
    width: 100%;
    font-size: 12px;
  }
  table.stats-table th,
  table.stats-table td {
    padding: 8px 8px;
    white-space: nowrap;
    word-wrap: normal;
    overflow-wrap: normal;
  }
  table.stats-table th:nth-child(2),
  table.stats-table td:nth-child(2) {
    min-width: 160px;
    white-space: normal;
  }
  .stats-wrap::after {
    content: "↔ swipe";
    display: block;
    text-align: right;
    font-size: 10px;
    color: var(--text-faint);
    padding: 4px 10px 0;
    opacity: 0.6;
  }
  .gate-card { padding: 18px 16px; }
}

/* =====================================================
   Mobile-only: Pool Play Standings (tournament page) — 7 columns.
   Same horizontal-scroll treatment as the By Tournament + By Team tables on
   Results, so the table stays readable instead of squishing into the viewport.
   ===================================================== */
@media (max-width: 640px) {
  /* Override the squish rules (line ~2203) so the pool-play standings expand */
  .pool-play-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    box-sizing: border-box;
  }
  table.pool-play-table {
    min-width: 640px;
    width: 100%;
    font-size: 12px;
  }
  table.pool-play-table th,
  table.pool-play-table td {
    padding: 8px 10px;
    white-space: nowrap;
    word-wrap: normal;
    overflow-wrap: normal;
  }
  /* Team name column gets more room and is the only one allowed to wrap */
  table.pool-play-table th:nth-child(2),
  table.pool-play-table td:nth-child(2) {
    min-width: 160px;
    white-space: normal;
  }
  /* Subtle hint that the table scrolls sideways */
  .pool-play-wrap::after {
    content: "↔ swipe";
    display: block;
    text-align: right;
    font-size: 10px;
    color: var(--text-faint);
    padding: 4px 10px 0;
    opacity: 0.6;
  }
}

/* =====================================================
   Mobile-only: pitch count chart on PONY Rules page.
   8 columns (Age + Daily Max + 6 rest tiers) — too wide to fit a phone.
   Let the wrapper scroll horizontally, keep numbers on one line.
   ===================================================== */
@media (max-width: 640px) {
  .pitch-count-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table.pitch-count-table {
    min-width: 640px;
    width: 100%;
    font-size: 12px;
  }
  table.pitch-count-table th,
  table.pitch-count-table td {
    padding: 8px 10px;
    white-space: nowrap;
    word-wrap: normal;
    overflow-wrap: normal;
  }
  table.pitch-count-table td:first-child,
  table.pitch-count-table th:first-child {
    min-width: 0;
  }
  /* Subtle hint that the table scrolls sideways */
  .pitch-count-wrap::after {
    content: "↔ swipe";
    display: block;
    text-align: right;
    font-size: 10px;
    color: var(--text-faint);
    padding: 4px 10px 0;
    opacity: 0.6;
  }
}

/* =====================================================
   Photo lightbox — taps on a photo open it here instead of
   navigating to the raw image file. Easy to close on mobile.
   ===================================================== */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px 16px 32px;
  opacity: 0;
  transition: opacity 0.2s ease-out;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: zoom-out;
}
.photo-lightbox.open { display: flex; opacity: 1; }
.photo-lightbox-content {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  cursor: default;
}
.photo-lightbox-content img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.7);
  background: #000;
}
.photo-lightbox-caption {
  color: var(--text-dim);
  font-size: 14px;
  text-align: center;
  max-width: 640px;
  line-height: 1.5;
  padding: 0 8px;
}
.photo-lightbox-close {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0) + 14px);
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(22, 22, 22, 0.92);
  color: var(--text);
  border: 1.5px solid var(--gold-dim);
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  padding: 0;
  font-family: inherit;
}
.photo-lightbox-close:hover {
  background: rgba(240, 193, 75, 0.18);
  color: var(--gold-bright);
  border-color: var(--gold);
}
/* Lock page scroll behind the lightbox */
body.lightbox-open { overflow: hidden; }

/* Photo cards need a button reset since they're now <button> elements */
button.photo-card {
  font: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0;
  width: 100%;
}
