/* ============================================================
   League of GOATS — Stylesheet
   Palette pulled from the crest: near-black ground, foil gold,
   ram-fur silver, bone white. Scoreboard/record-plaque motif
   throughout — this is a league that keeps score on everything.
   ============================================================ */

:root {
  --bg: #08080a;
  --bg-panel: #131217;
  --bg-panel-2: #1c1b22;
  --bg-panel-3: #232129;
  --gold: #d4af37;
  --gold-light: #f2ce6b;
  --gold-dim: #7d6425;
  --silver: #a7abb3;
  --white: #f5f4f0;
  --muted: #8b8a92;
  --line: rgba(212, 175, 55, 0.22);
  --line-soft: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  --radius: 14px;
  --font-display: "Anton", sans-serif;
  --font-head: "Oswald", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "Space Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 15% 0%, rgba(212, 175, 55, 0.08), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(212, 175, 55, 0.05), transparent 40%);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--gold); color: #08080a; }

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { margin: 0; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.02em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------------- Nav ---------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 10, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand-word {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--white);
}
.brand-word span { color: var(--gold); }

.nav-links { display: flex; gap: 4px; margin-left: 8px; flex: 1; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silver);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); background: rgba(212,175,55,0.08); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--bg-panel-2);
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--silver);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.year-select-wrap { flex-shrink: 0; }
select.year-select {
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 8px;
}

/* ---------------- Hero ---------------- */
.hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
.hero .wrap { display: flex; align-items: center; gap: 48px; }
.hero-crest { width: 168px; height: 168px; flex-shrink: 0; filter: drop-shadow(0 10px 30px rgba(212,175,55,0.25)); }
.hero-copy { flex: 1; min-width: 0; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.95;
  color: var(--white);
}
.hero h1 .accent { color: var(--gold); }
.hero-sub {
  margin-top: 14px;
  color: var(--silver);
  font-size: 16px;
  max-width: 560px;
}
.hero-meta {
  margin-top: 22px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-meta div { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.hero-meta strong { display: block; font-family: var(--font-display); font-size: 26px; color: var(--gold-light); letter-spacing: 0.01em; }

/* ---------------- Sections ---------------- */
section.page-section { padding: 56px 0; border-bottom: 1px solid var(--line-soft); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); color: var(--white); }
.section-desc { color: var(--muted); font-size: 14px; max-width: 480px; margin-top: 6px; }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--silver);
}
.chip.active { background: var(--gold); color: #08080a; border-color: var(--gold); }

/* ---------------- Record plaques ---------------- */
.record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}
.plaque {
  position: relative;
  background: linear-gradient(160deg, var(--bg-panel-2), var(--bg-panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.plaque::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--gold), transparent 40%, transparent 70%, var(--gold-dim));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}
.plaque-title {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.plaque-value-row { display: flex; align-items: baseline; gap: 8px; }
.plaque-value {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.plaque-suffix { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }
.plaque-context { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.plaque-holder {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plaque-holder-row { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--bg-panel-3);
  border: 1px solid var(--line-soft);
  object-fit: cover;
  flex-shrink: 0;
}
.avatar-fallback {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--bg-panel-3);
  border: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 13px; color: var(--gold);
  flex-shrink: 0;
}
.plaque-holder-name { font-family: var(--font-head); font-size: 14px; letter-spacing: 0.02em; color: var(--white); }
.plaque-holder-label { font-size: 11px; color: var(--muted); }
.plaque-more-note { font-family: var(--font-mono); font-size: 11px; color: var(--muted); padding-left: 44px; }

.tied-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid var(--line);
  background: rgba(212,175,55,0.1);
  border-radius: 5px;
  padding: 2px 7px;
  margin-left: 8px;
  vertical-align: middle;
}

.plaque { cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.plaque:hover { transform: translateY(-2px); border-color: var(--gold); }
.plaque.is-selected { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.plaque-hint { margin-top: 14px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold-dim); }
.plaque.is-selected .plaque-hint { color: var(--gold-light); }

/* ---------------- Record leaderboard panel ---------------- */
.leaderboard-panel-row {
  grid-column: 1 / -1;
  animation: leaderboard-in 0.2s ease;
}
@keyframes leaderboard-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.leaderboard-panel {
  margin-top: 0;
  background: linear-gradient(160deg, var(--bg-panel-2), var(--bg-panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.leaderboard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.leaderboard-title { font-family: var(--font-head); font-size: 17px; color: var(--white); letter-spacing: 0.02em; }
.leaderboard-scope { font-family: var(--font-mono); font-size: 12px; color: var(--gold); margin-top: 4px; }
.leaderboard-close {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--silver);
  background: var(--bg-panel-2);
  border: 1px solid var(--line-soft);
  padding: 7px 12px;
  border-radius: 8px;
  flex-shrink: 0;
}
.leaderboard-close:hover { border-color: var(--gold); color: var(--gold-light); }

.leaderboard-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line-soft);
}
.leaderboard-row:last-child { border-bottom: none; }
.leaderboard-row.is-top1 { background: rgba(212,175,55,0.06); border-radius: 8px; }
.leaderboard-rank { font-family: var(--font-display); font-size: 18px; color: var(--muted); text-align: center; }
.leaderboard-row.is-top1 .leaderboard-rank { color: var(--gold-light); }
.leaderboard-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.leaderboard-name { font-family: var(--font-head); font-size: 14px; color: var(--white); }
.leaderboard-context { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.leaderboard-value { font-family: var(--font-mono); font-size: 15px; color: var(--gold-light); text-align: right; white-space: nowrap; }
.leaderboard-value-suffix { font-size: 10px; color: var(--muted); display: block; text-align: right; letter-spacing: 0.05em; }

/* ---------------- Standings table ---------------- */
.table-card {
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; min-width: 480px; border-collapse: collapse; }
thead th {
  text-align: left;
  font-family: var(--font-head);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-panel-2);
}
tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--white);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(212,175,55,0.04); }
td.num, th.num { text-align: right; font-family: var(--font-mono); }
.rank-cell { font-family: var(--font-mono); color: var(--muted); width: 36px; }
.team-cell { display: flex; align-items: center; gap: 10px; }
.badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(212,175,55,0.15);
  color: var(--gold-light);
  border: 1px solid var(--line);
}

/* ---------------- Transactions bars ---------------- */
.bar-list { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 160px 1fr 60px; align-items: center; gap: 14px; }
.bar-name { font-family: var(--font-head); font-size: 13px; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 22px; background: var(--bg-panel-2); border-radius: 6px; overflow: hidden; border: 1px solid var(--line-soft); }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold-dim), var(--gold)); border-radius: 6px 0 0 6px; }
.bar-count { font-family: var(--font-mono); font-size: 13px; color: var(--gold-light); text-align: right; }

/* ---------------- Franchise cards ---------------- */
.franchise-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.franchise-card {
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 14px;
}
.franchise-card .avatar, .franchise-card .avatar-fallback { width: 52px; height: 52px; border-radius: 10px; font-size: 18px; }
.franchise-info { flex: 1; min-width: 0; }
.franchise-name { font-family: var(--font-head); font-size: 16px; color: var(--white); }
.franchise-manager { font-size: 12px; color: var(--muted); margin-top: 2px; }
.franchise-stats { margin-top: 10px; display: flex; gap: 16px; flex-wrap: wrap; }
.franchise-stats div { font-family: var(--font-mono); font-size: 12px; color: var(--silver); }
.franchise-stats b { display: block; color: var(--gold-light); font-size: 15px; }
.titles-row { margin-top: 10px; display: flex; gap: 4px; }
.title-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px rgba(212,175,55,0.7); }

/* ---------------- Loading bar (bottom, non-blocking) ---------------- */
.spinner {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--gold);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-msg { font-family: var(--font-mono); font-size: 13px; color: var(--muted); min-height: 18px; }

.loading-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: rgba(19, 18, 23, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 30px rgba(0,0,0,0.35);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.loading-bar.is-hidden { transform: translateY(100%); opacity: 0; pointer-events: none; }
.loading-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.loading-bar-text { display: flex; flex-direction: column; gap: 2px; }
.loading-bar.is-error { border-top-color: rgba(200,80,70,0.5); }
.loading-bar.is-error .spinner { display: none; }
.loading-bar-retry {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--silver);
  background: var(--bg-panel-2);
  border: 1px solid var(--line-soft);
  padding: 8px 14px;
  border-radius: 8px;
}
.loading-bar-retry:hover { border-color: var(--gold); color: var(--gold-light); }

.spinner-sm { width: 22px; height: 22px; border-width: 2px; flex-shrink: 0; }

.error-box {
  border: 1px solid rgba(200,80,70,0.4);
  background: rgba(200,80,70,0.08);
  border-radius: var(--radius);
  padding: 20px;
  color: #e8b3ad;
  font-size: 14px;
}
.empty-note { color: var(--muted); font-size: 14px; padding: 24px; text-align: center; border: 1px dashed var(--line-soft); border-radius: var(--radius); }

/* ---------------- Footer ---------------- */
footer { padding: 36px 0 60px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-note { font-size: 12.5px; color: var(--muted); }
.footer-refresh {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--silver);
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  padding: 8px 14px;
  border-radius: 8px;
}
.footer-refresh:hover { border-color: var(--gold); color: var(--gold-light); }

/* ---------------- Head-to-Head ---------------- */
.h2h-picker { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.h2h-select { flex: 1; min-width: 200px; max-width: 340px; }
.h2h-vs { font-family: var(--font-display); color: var(--gold); font-size: 18px; }

.h2h-summary {
  display: flex; align-items: center; justify-content: center; gap: 28px;
  background: linear-gradient(160deg, var(--bg-panel-2), var(--bg-panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  text-align: center;
}
.h2h-side { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 140px; }
.h2h-side .avatar, .h2h-side .avatar-fallback { width: 56px; height: 56px; border-radius: 12px; font-size: 20px; }
.h2h-side-name { font-family: var(--font-head); font-size: 15px; color: var(--white); }
.h2h-side-record { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.h2h-score {
  font-family: var(--font-display);
  font-size: 44px;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}
.h2h-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.h2h-mid-label { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

.h2h-log-row { display: grid; grid-template-columns: 90px 1fr 70px 1fr 60px; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.h2h-log-row:last-child { border-bottom: none; }
.h2h-log-when { font-family: var(--font-mono); color: var(--muted); font-size: 12px; }
.h2h-log-score { text-align: center; font-family: var(--font-mono); }
.h2h-log-name { color: var(--silver); font-size: 13px; }
.h2h-log-name.winner { color: var(--gold-light); font-family: var(--font-head); }
.h2h-playoff-tag { font-family: var(--font-mono); font-size: 10px; color: var(--gold); border: 1px solid var(--line); border-radius: 5px; padding: 2px 5px; justify-self: start; }

/* ---------------- Hall of Fame / Shame ---------------- */
.halls-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.halls-subhead { font-family: var(--font-head); font-size: 18px; color: var(--gold-light); margin-bottom: 14px; letter-spacing: 0.03em; }
.hall-list { display: flex; flex-direction: column; gap: 10px; }
.hall-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 12px 16px;
}
.hall-rank {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--muted);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.hall-rank.medal-1 { color: #f2ce6b; }
.hall-rank.medal-2 { color: #c9c9d1; }
.hall-rank.medal-3 { color: #c98a4b; }
.hall-info { flex: 1; min-width: 0; }
.hall-name { font-family: var(--font-head); font-size: 14.5px; color: var(--white); }
.hall-years { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hall-count { font-family: var(--font-mono); font-size: 22px; color: var(--gold-light); text-align: right; flex-shrink: 0; }
.hall-count-label { font-size: 10px; color: var(--muted); text-align: right; letter-spacing: 0.05em; text-transform: uppercase; }
.hall-list.shame .hall-count { color: #d98f7a; }
.hall-list.shame .hall-rank.medal-1 { color: #d98f7a; }

/* ============================================================
   Responsive — this site is used mostly on phones, so these
   rules aren't an afterthought shrink-to-fit pass: type scale,
   spacing, tap targets, and table overflow are all deliberately
   tuned for a one-handed phone session.
   ============================================================ */

/* Large phones / small tablets */
@media (max-width: 760px) {
  .wrap { padding: 0 18px; }

  section.page-section { padding: 38px 0; }
  .section-head h2 { font-size: clamp(22px, 6vw, 30px); }
  .section-desc { font-size: 13.5px; }

  .hero { padding: 32px 0 26px; }
  .hero .wrap { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero-crest { width: 96px; height: 96px; }
  .hero h1 { font-size: clamp(34px, 11vw, 54px); }
  .hero-sub { font-size: 14.5px; }
  .hero-meta { gap: 20px 28px; }
  .hero-meta strong { font-size: 22px; }

  .site-nav .wrap { height: 60px; padding: 0 14px; gap: 8px; position: relative; }
  .brand { min-width: 0; overflow: hidden; }
  .brand img { width: 30px; height: 30px; flex-shrink: 0; }
  .brand-word { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .year-select-wrap { order: 2; margin-left: auto; min-width: 0; flex-shrink: 1; }
  .nav-toggle { display: flex; order: 3; margin-left: 6px; flex-shrink: 0; }
  select.year-select { font-size: 16px; padding: 8px 8px; max-width: 30vw; } /* 16px avoids iOS auto-zoom on tap */

  .nav-links {
    display: flex;
    flex-direction: column;
    order: 4;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(10, 10, 12, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 16px 30px rgba(0,0,0,0.45);
    transition: max-height 0.25s ease;
  }
  .nav-links.is-open { max-height: 420px; }
  .nav-links a {
    padding: 15px 20px;
    font-size: 15px;
    border-radius: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.active { background: rgba(212,175,55,0.1); }

  .record-grid { gap: 14px; }
  .plaque { padding: 18px; }
  .plaque-value { font-size: 34px; }
  .plaque-title { font-size: 12px; }

  .franchise-grid { gap: 12px; }
  .franchise-card { padding: 16px; }

  .h2h-picker { gap: 10px; }
  .h2h-select { min-width: 0; flex: 1 1 42%; font-size: 16px; }
  .h2h-vs { flex: 0 0 auto; }
  .h2h-summary { padding: 20px 16px; gap: 18px; }
  .h2h-score { font-size: 34px; }
  .h2h-log-row { grid-template-columns: 62px 1fr 50px 1fr 30px; gap: 6px; font-size: 11.5px; padding: 10px 10px; }

  .halls-grid { grid-template-columns: 1fr; gap: 28px; }

  .leaderboard-panel { padding: 16px; }
  .leaderboard-row { grid-template-columns: 32px 1fr auto; gap: 8px; padding: 10px 4px; }
  .leaderboard-title { font-size: 15px; }

  .bar-row { grid-template-columns: 96px 1fr 42px; gap: 10px; }

  thead th { padding: 11px 12px; font-size: 10.5px; }
  tbody td { padding: 11px 12px; font-size: 13px; }

  footer .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* Small phones */
@media (max-width: 420px) {
  .wrap { padding: 0 14px; }
  section.page-section { padding: 30px 0; }

  .brand-prefix { display: none; }
  select.year-select { max-width: 26vw; }

  .hero h1 { font-size: 30px; }
  .hero-meta { gap: 16px 22px; }
  .hero-meta strong { font-size: 19px; }

  .plaque-value { font-size: 28px; }
  .plaque-holder-name, .franchise-name, .leaderboard-name { font-size: 13px; }

  .h2h-select { flex: 1 1 100%; }
  .h2h-vs { width: 100%; text-align: center; }
  .h2h-score { font-size: 28px; }

  .hall-row { padding: 10px 12px; gap: 10px; }
  .hall-count { font-size: 18px; }

  table { min-width: 420px; }
}
