:root {
  --bg-1: #f6f0e6;
  --bg-2: #e9d9c3;
  --ink: #1b1a17;
  --muted: #5b5348;
  --accent: #f26f4c;
  --accent-2: #2b8c7a;
  --accent-3: #f3b24c;
  --card: #fefcf8;
  --shadow: 0 24px 60px rgba(27, 26, 23, 0.18);
  --ring: 0 0 0 2px rgba(242, 111, 76, 0.25);
}

@keyframes flash {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.cut-watch-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #f26f4c, #f3b24c);
  color: white;
  padding: 12px 0;
  font-weight: 700;
  font-size: 1rem;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(242, 111, 76, 0.4);
  animation: flash 0.6s ease-in-out 4;
}

.cut-watch-content {
  text-align: center;
  white-space: nowrap;
  padding: 0 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, var(--bg-1), var(--bg-2));
  min-height: 100vh;
}

body.cut-watch-active {
  padding-top: 64px;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 28px 80px;
  position: relative;
  overflow: hidden;
}

.site-header {
  position: relative;
  z-index: 2;
  margin-bottom: 14px;
  padding: 6px 12px 10px;
}

.page::before,
.page::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 111, 76, 0.28), transparent 70%);
  top: -120px;
  right: -120px;
  z-index: 0;
}

.page::after {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(43, 140, 122, 0.26), transparent 70%);
  bottom: -140px;
  left: -120px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 0.8fr);
  align-items: center;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(12px);
  margin-bottom: 12px;
}

.eyebrow {
  font-family: "Unbounded", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.65rem;
  color: var(--accent-2);
  margin: 0 0 6px;
}

.hero-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.hero-topline .eyebrow {
  margin: 0;
}

.tournament-mini {
  min-width: 168px;
  width: 168px;
  min-height: 0;
  height: 18px;
  padding: 0 18px 0 6px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(27, 26, 23, 0.28);
  background: transparent;
  font-size: 0.64rem;
  font-family: "Unbounded", sans-serif;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(27, 26, 23, 0.65) 50%),
    linear-gradient(135deg, rgba(27, 26, 23, 0.65) 50%, transparent 50%);
  background-position: calc(100% - 10px) 50%, calc(100% - 6px) 50%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  line-height: 1;
}

.tournament-mini:focus {
  box-shadow: none;
  border-bottom-color: rgba(27, 26, 23, 0.55);
}

h1 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  margin: 0 0 6px;
}

.subhead {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.hero-utility-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-utility-row .status {
  align-items: center;
}

.mobile-control-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-family: "Unbounded", sans-serif;
  font-size: 0.8rem;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-links a.active {
  color: var(--ink);
  border-bottom-color: rgba(27, 26, 23, 0.45);
}

.nav-links a:hover {
  color: var(--ink);
  border-bottom-color: rgba(27, 26, 23, 0.2);
}

/* Hamburger navigation — desktop: hidden */
.nav-brand {
  font-family: "Unbounded", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ink);
  display: none;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.site-header.nav-open .hamburger-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .hamburger-btn span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.site-header.nav-open .hamburger-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.select-wrap {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(27, 26, 23, 0.2);
  font-family: "Unbounded", sans-serif;
  background: var(--card);
  font-size: 0.95rem;
  min-width: 240px;
}

input[type="password"] {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(27, 26, 23, 0.2);
  font-family: "Unbounded", sans-serif;
  background: var(--card);
  font-size: 0.95rem;
  min-width: 240px;
}

select:focus {
  outline: none;
  box-shadow: var(--ring);
}

.btn {
  border: none;
  padding: 7px 12px;
  border-radius: 999px;
  font-family: "Unbounded", sans-serif;
  font-size: 0.76rem;
  line-height: 1;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 16px rgba(242, 111, 76, 0.22);
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.btn:disabled {
  background: rgba(27, 26, 23, 0.2);
  color: rgba(27, 26, 23, 0.5);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn:disabled:hover {
  transform: none;
}

select:disabled,
input[type="password"]:disabled {
  background: rgba(27, 26, 23, 0.08);
  color: rgba(27, 26, 23, 0.55);
  cursor: not-allowed;
}

.status {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 10px;
  font-size: 0.72rem;
  line-height: 1.2;
  color: var(--muted);
  opacity: 0.8;
}

.status .error {
  color: #9a3b2e;
  font-size: 0.7rem;
  min-height: 1em;
}

#updatedAt,
#exportStatus,
#archiveStatus {
  font-size: 0.66rem;
  opacity: 0.72;
}

#draftLockNotice {
  margin: 0 0 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(43, 140, 122, 0.15);
  color: var(--accent-2);
  font-family: "Unbounded", sans-serif;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

main {
  margin-top: 42px;
  position: relative;
  z-index: 1;
}

.leaderboard-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  margin-top: -8px;
}

.leaderboard-standings {
  display: none;
  margin-bottom: 16px;
}

.leaderboard-standings:not(.leaderboard-standings-minimal) {
  display: block;
}

.leaderboard-standings-minimal {
  margin-bottom: 10px;
}

.leaderboard-standings-minimal .leaderboard-head {
  margin-bottom: 6px;
}

.leaderboard-standings-minimal .leaderboard-head h2 {
  font-size: 1.12rem;
}

.leaderboard-standings-minimal .table {
  padding: 4px 8px 6px;
}

.leaderboard-standings-minimal .table-row {
  padding: 3px 6px;
  font-size: 0.8rem;
}

.admin {
  margin-top: 22px;
  opacity: 0.5;
}

.admin:hover {
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.admin h2 {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0;
}

.admin summary {
  cursor: pointer;
  list-style: none;
}

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

.admin[open] summary {
  margin-bottom: 10px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.admin .leaderboard-head p,
.export-status {
  font-size: 0.52rem;
  opacity: 0.72;
}

.cut-line-message {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 8px 0 12px 0;
  font-weight: 400;
}

.leaderboard-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.leader-message {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
  text-align: right;
}

.no-tournament-scheduled {
  padding: 40px 24px;
  text-align: center;
  background: rgba(27, 26, 23, 0.03);
  border-radius: 8px;
  margin: 40px auto;
  max-width: 600px;
}

.no-tournament-scheduled p {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0;
}

.history-page main {
  margin-top: 32px;
}

.season-grid {
  display: grid;
  gap: 18px;
}

.season-card {
  background: var(--card);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 0;
  overflow: hidden;
}

.season-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.season-head h2 {
  margin: 0 0 6px;
  font-family: "Unbounded", sans-serif;
  font-size: 1.2rem;
}

.season-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.season-winner {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  text-align: right;
}

.season-card[open] .season-head {
  border-bottom: 1px solid rgba(27, 26, 23, 0.08);
}

.season-head::-webkit-details-marker {
  display: none;
}

.season-body {
  padding: 12px 18px 18px;
  display: grid;
  gap: 18px;
}

.season-body .leaderboard-head h3 {
  font-family: "Unbounded", sans-serif;
  margin: 0;
  font-size: 1.05rem;
}

.history-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.history-card {
  background: var(--card);
  border-radius: 18px;
  padding: 0;
  box-shadow: var(--shadow);
}

.history-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.history-winner {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.history-card[open] .history-winner {
  display: none;
}

.history-card[open] .history-card-head {
  border-bottom: 1px solid rgba(27, 26, 23, 0.08);
}

.history-card-head::-webkit-details-marker {
  display: none;
}

.history-card h3 {
  font-family: "Unbounded", sans-serif;
  margin: 0 0 6px;
  font-size: 1rem;
}

.history-card span {
  color: var(--muted);
  font-size: 0.8rem;
}

.winner-mark {
  margin-left: 6px;
  font-weight: 800;
  color: var(--accent);
}

.table {
  display: grid;
  gap: 2px;
  margin-top: 0;
  padding: 8px 4px 10px;
}

.table-row {
  display: grid;
  grid-template-columns: 60px 1fr 80px;
  gap: 8px;
  padding: 4px 7px;
  background: rgba(27, 26, 23, 0.04);
  border-radius: 10px;
  font-size: 0.85rem;
}

.table-row.table-head {
  background: rgba(27, 26, 23, 0.08);
  font-weight: 600;
}
.leaderboard-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(27, 26, 23, 0.06);
  font-family: "Unbounded", sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
}

.toggle input {
  accent-color: var(--accent);
}

.toggle input:disabled + span {
  opacity: 0.5;
}

.export-status {
  font-size: 0.78rem;
  color: var(--muted);
}

.leaderboard-head h2 {
  font-family: "Unbounded", sans-serif;
  margin: 0;
  font-size: 1.5rem;
}

.leaderboard-head p {
  margin: 0;
  color: var(--muted);
}

.leaderboard-timestamp {
  margin: 2px 0 0 0;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.7;
}

.expand-collapse-toggle {
  background: none;
  border: none;
  padding: 4px 6px;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.expand-collapse-toggle:hover {
  opacity: 1;
}

.grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card {
  background: var(--card);
  border-radius: 20px;
  padding: 0;
  box-shadow: var(--shadow);
  position: relative;
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(242, 111, 76, 0.4);
  box-shadow: none;
  padding: 5px 10px;
}

.btn-ghost:hover {
  box-shadow: 0 10px 20px rgba(242, 111, 76, 0.18);
}
  overflow: hidden;
  animation: rise 0.6s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(27, 26, 23, 0.08);
  border-radius: 20px;
  pointer-events: none;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.card[open] .card-header {
  border-bottom: 1px solid rgba(27, 26, 23, 0.08);
}

.card-header::-webkit-details-marker {
  display: none;
}

.team-name {
  font-family: "Unbounded", sans-serif;
  font-size: 1rem;
  margin: 0;
}

.team-score {
  font-family: "Unbounded", sans-serif;
  font-size: 1rem;
  color: var(--accent);
}

.team-score-cut {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-score-flag {
  font-family: "Unbounded", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.card[open] .team-score-flag {
  display: none;
}

.card:not([open]) .team-score-value {
  display: none;
}

.golfer-list {
  display: grid;
  gap: 3px;
  padding: 8px 12px 10px;
}

.golfer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 12px;
  background: rgba(27, 26, 23, 0.04);
  font-size: 0.88rem;
  align-items: center;
}

.golfer.golfer-with-photo {
  grid-template-columns: auto auto 1fr auto;
}

.golfer-headshot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(27, 26, 23, 0.08);
  flex-shrink: 0;
}

.golfer-position {
  min-width: 32px;
  text-align: right;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.golfer span {
  color: var(--muted);
  font-size: 0.78rem;
}

.golfer-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.golfer-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.golfer-thru {
  font-size: 0.74rem;
}

.golfer strong {
  font-weight: 600;
}

.golfer-metrics {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.golfer-metrics .score {
  font-family: "Unbounded", sans-serif;
  font-size: 0.9rem;
  color: var(--accent);
}

.dg-stats {
  display: flex;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--muted);
  font-family: "Unbounded", sans-serif;
}

.dg-stat {
  padding: 2px 6px;
  background: rgba(27, 26, 23, 0.06);
  border-radius: 4px;
  white-space: nowrap;
}

.dg-odds {
  display: flex;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--muted);
  font-family: "Unbounded", sans-serif;
}

.dg-odd {
  padding: 2px 6px;
  background: rgba(74, 144, 226, 0.1);
  border-radius: 4px;
  white-space: nowrap;
  color: #4a90e2;
}

.golfer.best {
  background: rgba(242, 111, 76, 0.15);
  color: var(--ink);
}

.golfer-cut {
  background: rgba(27, 26, 23, 0.08);
  color: var(--muted);
}

.golfer-cut .score {
  color: var(--muted);
}

.cut-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(27, 26, 23, 0.12);
  font-size: 0.65rem;
  font-family: "Unbounded", sans-serif;
  letter-spacing: 0.08em;
}

.cut-line-status {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-family: "Unbounded", sans-serif;
  letter-spacing: 0.08em;
}

.above-cut .cut-line-status {
  background: rgba(43, 140, 122, 0.2);
  color: #2b8c7a;
}

.below-cut .cut-line-status {
  background: rgba(242, 111, 76, 0.2);
  color: #f26f4c;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .site-header {
    margin-bottom: 12px;
  }

  .nav-links {
    gap: 12px;
  }

  .leaderboard-head {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .leaderboard-head.leaderboard-head-inline {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .leaderboard-timestamp {
    font-size: 0.7rem;
    color: #999;
    white-space: nowrap;
  }
}

@media (max-width: 700px) {
  .page {
    padding: calc(62px + env(safe-area-inset-top)) 14px 20px;
  }

  .nav-brand {
    display: block;
  }

  .hamburger-btn {
    display: flex;
  }

  .site-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    z-index: 40;
    margin: 0;
    padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
    background: rgba(254, 252, 248, 0.96);
    border-bottom: 1px solid rgba(27, 26, 23, 0.1);
    border-top: none;
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(254, 252, 248, 0.98);
    border-bottom: 1px solid rgba(27, 26, 23, 0.1);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    padding: 6px 0 10px;
    gap: 0;
    font-size: 0.8rem;
    box-shadow: 0 8px 20px rgba(27, 26, 23, 0.08);
  }

  .site-header.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 11px 20px;
    min-height: 44px;
    display: flex;
    align-items: center;
    width: 100%;
    border-bottom: none;
  }

  .hero {
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
  }

  .hero-topline {
    align-items: center;
  }

  .tournament-mini {
    min-width: 142px;
    width: 142px;
    min-height: 0;
    height: 17px;
    padding: 0 14px 0 4px;
    font-size: 0.58rem;
    background-position: calc(100% - 9px) 50%, calc(100% - 5px) 50%;
  }

  h1 {
    font-size: clamp(1rem, 5vw, 1.45rem);
    margin-bottom: 6px;
  }

  .subhead {
    font-size: 0.78rem;
  }

  .hero-actions {
    width: 100%;
    gap: 10px;
  }

  .hero-utility-row {
    gap: 6px;
  }

  .mobile-control-bar {
    position: sticky;
    top: calc(62px + env(safe-area-inset-top) + 8px);
    z-index: 12;
    padding: 10px;
    border-radius: 14px;
    background: rgba(254, 252, 248, 0.97);
    box-shadow: 0 8px 18px rgba(27, 26, 23, 0.1);
  }

  .select-wrap {
    width: 100%;
  }

  select,
  input[type="password"] {
    width: 100%;
    min-width: 0;
    min-height: 44px;
  }

  .btn {
    width: auto;
    min-height: 36px;
  }

  main {
    margin-top: 18px;
  }

  .dg-stats {
    flex-wrap: wrap;
    gap: 4px;
  }

  .dg-stat {
    font-size: 0.65rem;
    padding: 2px 4px;
  }

  .dg-odds {
    flex-wrap: wrap;
    gap: 4px;
  }

  .dg-odd {
    font-size: 0.65rem;
    padding: 2px 4px;
  }
}

.draft-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.draft-card {
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 14px;
}

.draft-card h3 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: 1rem;
}

.draft-slot-grid {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.draft-slot {
  display: grid;
  gap: 5px;
}

.draft-slot span {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: "Unbounded", sans-serif;
}

.draft-slot-combobox {
  width: 100%;
  border: 1px solid rgba(27, 26, 23, 0.16);
  border-radius: 10px;
  padding: 6px 10px;
  font-family: "Unbounded", sans-serif;
  font-size: 0.72rem;
  background: var(--card);
}

.draft-slot-combobox:focus {
  outline: none;
  box-shadow: var(--ring);
}

.draft-slot-combobox:disabled {
  background: rgba(27, 26, 23, 0.08);
  color: rgba(27, 26, 23, 0.55);
  cursor: not-allowed;
}

/* Records page styles */
.records-page main {
  max-width: 1400px;
  margin: 0 auto;
}

.records {
  margin-top: 32px;
}

.career-earnings-table {
  margin-top: 24px;
  overflow-x: auto;
}

.earnings-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(27, 26, 23, 0.08);
}

.earnings-table thead {
  background: rgba(27, 26, 23, 0.04);
}

.earnings-table th {
  padding: 16px 12px;
  text-align: left;
  font-family: "Unbounded", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(27, 26, 23, 0.7);
  border-bottom: 2px solid rgba(27, 26, 23, 0.1);
}

.earnings-table th.year-col,
.earnings-table th.total-col {
  text-align: right;
}

.earnings-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(27, 26, 23, 0.06);
  font-family: "Fraunces", serif;
}

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

.earnings-table tbody tr:hover {
  background: rgba(27, 26, 23, 0.02);
}

.earnings-table .team-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.earnings-table .earnings-cell {
  text-align: right;
  font-size: 0.95rem;
  color: rgba(27, 26, 23, 0.8);
  font-variant-numeric: tabular-nums;
}

.earnings-table .earnings-cell.empty {
  color: rgba(27, 26, 23, 0.25);
}

.earnings-table .total-earnings {
  text-align: right;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  border-left: 2px solid rgba(27, 26, 23, 0.1);
}

@media (max-width: 900px) {
  .earnings-table th,
  .earnings-table td {
    padding: 12px 8px;
    font-size: 0.9rem;
  }
  
  .earnings-table th {
    font-size: 0.7rem;
  }
  
  .earnings-table .team-name {
    font-size: 0.95rem;
  }
}

/* Table-based leaderboard styles */
.table-team-header {
  background: linear-gradient(to right, var(--accent-2), rgba(43, 140, 122, 0.15));
  padding: 6px 16px;
  margin-top: 0;
  margin-bottom: 0;
  border-radius: 0;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.table-team-header:hover {
  background: linear-gradient(to right, var(--accent-2), rgba(43, 140, 122, 0.25));
}

.table-body.collapsed {
  display: none;
}

.table-team-header h3 {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.table-header-row {
  display: grid;
  grid-template-columns: 50px 220px 70px 70px 50px 50px 50px 50px 50px 90px 90px;
  gap: 10px;
  padding: 6px 12px;
  background: var(--bg-2);
  border-bottom: 2px solid var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.table-header-row:first-of-type {
  border-radius: 8px 8px 0 0;
}

.table-body {
  background: var(--card);
  border: 1px solid var(--bg-2);
  border-bottom: 2px solid var(--bg-2);
  border-radius: 0;
  margin-bottom: 0;
}

.table-body .table-row {
  display: grid;
  grid-template-columns: 50px 220px 70px 70px 50px 50px 50px 50px 50px 90px 90px;
  gap: 10px;
  padding: 6px 4px;
  border-bottom: 1px solid var(--bg-2);
  align-items: center;
  font-size: 0.9rem;
}

.table-body .table-row:last-child {
  border-bottom: none;
}

.table-body .table-row.best-scorer {
  background: rgba(243, 178, 76, 0.08);
  font-weight: 600;
}

.table-body .table-row.cut-player {
  background: rgba(200, 50, 50, 0.08);
}

.table-body .cut-line-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #888);
  background: transparent;
  border-top: 1px dashed var(--muted, #888);
  border-bottom: 1px dashed var(--muted, #888);
  margin: 2px 0;
  opacity: 0.65;
}

/* Column styles */
.table-body .col-pos {
  text-align: right;
  font-weight: 600;
  color: var(--accent);
  padding-right: 10px;
}

.table-body .col-player {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.table-body .player-name {
  font-weight: 600;
  color: var(--ink);
}

.country-flag {
  width: 18px;
  height: 18px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
}

.table-body .cut-badge-small {
  display: inline-block;
  background: var(--accent);
  color:white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  width: fit-content;
}

.table-body .col-total {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  text-align: center;
}

.table-body .col-thru,
.table-body .col-today,
.table-body .col-r1,
.table-body .col-r2,
.table-body .col-r3,
.table-body .col-r4,
.table-body .col-sg,
.table-body .col-odds {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.table-body .col-sg {
  font-weight: 500;
}

.table-body .col-odds {
  font-weight: 600;
  color: var(--accent);
}

/* Mobile responsive */
@media (max-width: 1400px) {
  .table-header-row,
  .table-body .table-row {
    grid-template-columns: 45px 170px 60px 65px 45px 45px 45px 45px 45px 75px 75px;
    gap: 6px;
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  
  .table-header-row {
    font-size: 0.75rem;
  }
  
  .table-body .col-player {
    gap: 4px;
  }
  
  .table-body .player-name {
    font-size: 0.9rem;
  }
}

@media (max-width: 1024px) {
  .table-header-row,
  .table-body .table-row {
    grid-template-columns: 40px 140px 50px 60px 45px 65px 65px;
    gap: 5px;
    padding: 6px 8px;
    font-size: 0.75rem;
  }
  
  .table-header-row {
    font-size: 0.65rem;
  }
  
  .table-team-header {
    padding: 4px 12px;
  }
  
  .table-team-header h3 {
    font-size: 0.85rem;
  }
  
  .table-body .player-name {
    font-size: 0.85rem;
  }

  .country-flag {
    width: 18px;
    height: 18px;
  }
  
  /* Hide round-by-round scores in header on smaller screens */
  .table-header-row .col-r1,
  .table-header-row .col-r2,
  .table-header-row .col-r3,
  .table-header-row .col-r4 {
    display: none;
  }
  
  /* Hide round-by-round scores in body on smaller screens */
  .table-body .col-r1,
  .table-body .col-r2,
  .table-body .col-r3,
  .table-body .col-r4 {
    display: none;
  }
}

@media (max-width: 768px) {
  /* Left-aligned table with horizontal scroll on mobile */
  .table-header-row,
  .table-body .table-row {
    grid-template-columns: 40px 1fr 45px 55px 40px;
    gap: 3px;
    padding: 4px 6px;
    font-size: 0.7rem;
  }

  /* Hide win odds and SG total on mobile */
  .table-header-row .col-sg,
  .table-header-row .col-odds,
  .table-body .col-sg,
  .table-body .col-odds {
    display: none;
  }
  
  .table-header-row {
    font-size: 0.6rem;
    padding: 8px 8px;
  }
  
  .table-team-header {
    padding: 4px 10px;
  }
  
  .table-team-header h3 {
    font-size: 0.8rem;
  }
  
  .table-body .player-name {
    font-size: 0.75rem;
  }
  
  .table-body .col-total {
    font-size: 0.9rem;
  }

  .country-flag {
    width: 16px;
    height: 16px;
  }
  
  /* Hide round columns in header on mobile */
  .table-header-row .col-r1,
  .table-header-row .col-r2,
  .table-header-row .col-r3,
  .table-header-row .col-r4 {
    display: none;
  }
}

/* ─── Admin Lock Screen ──────────────────────────────────────────────────── */

.admin-lock-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(circle at top, var(--bg-1), var(--bg-2));
  padding: 24px;
}

.admin-lock-card {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.admin-lock-eyebrow {
  font-family: "Unbounded", sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  text-transform: uppercase;
  margin: 0 0 4px;
}

.admin-lock-title {
  font-family: "Unbounded", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px;
}

.admin-lock-sub {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 20px;
}

.admin-lock-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-key-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 1rem;
  font-family: "Lato", sans-serif;
  border: 1.5px solid rgba(27, 26, 23, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s;
}

.admin-key-input:focus {
  border-color: var(--ink);
}

.admin-lock-error {
  font-size: 0.82rem;
  color: #9a3b2e;
  min-height: 1.2em;
  margin: 6px 0 0;
}

/* ─── Admin Tool Sections ────────────────────────────────────────────────── */

.admin-tool-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(27, 26, 23, 0.14);
}

.admin-tool-section:last-child {
  border-bottom: none;
}

.admin-tool-body {
  padding: 0 0 0 2px;
  margin-top: 14px;
}

.admin-tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.admin-year-input {
  width: 100px;
  padding: 6px 10px;
  font-size: 0.88rem;
  font-family: "Lato", sans-serif;
  border: 1.5px solid rgba(27, 26, 23, 0.22);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  box-sizing: border-box;
  outline: none;
}

.admin-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--ink);
  cursor: pointer;
  padding-bottom: 4px;
}

/* ─── Admin Modal ────────────────────────────────────────────────────────── */

.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.admin-modal {
  background: var(--card);
  border: 1px solid rgba(27, 26, 23, 0.14);
  border-radius: 14px;
  max-width: 540px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: var(--shadow);
}

.admin-modal-title {
  font-family: "Unbounded", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}

.admin-modal-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 18px;
}

.admin-modal-table {
  border: 1px solid rgba(27, 26, 23, 0.14);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 22px;
  font-size: 0.88rem;
}

.admin-modal-row {
  display: grid;
  grid-template-columns: 48px 1fr 60px 60px 60px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(27, 26, 23, 0.1);
  color: var(--ink);
}

.admin-modal-row:last-child {
  border-bottom: none;
}

.admin-modal-head {
  font-weight: 700;
  font-size: 0.72rem;
  background: rgba(27, 26, 23, 0.05);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.ta-right { text-align: right; }
.muted    { color: var(--muted); }
.bold     { font-weight: 700; }
.bonus    { color: #1b7e5a; font-weight: 700; }

/* ── Tournament Winner Banner ─────────────────────────────────────── */
@keyframes winner-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(243, 178, 76, 0.6), 0 8px 40px rgba(243, 178, 76, 0.35); }
  50%       { box-shadow: 0 0 0 12px rgba(243, 178, 76, 0), 0 8px 40px rgba(243, 178, 76, 0.35); }
}

.tournament-winner-banner {
  margin: 0 0 32px;
  background: linear-gradient(135deg, #1b1a17 0%, #2d2a22 50%, #1b1a17 100%);
  border: 2px solid var(--accent-3);
  border-radius: 16px;
  overflow: hidden;
  animation: winner-pulse 2s ease-in-out 3;
}

.tournament-winner-inner {
  padding: 36px 24px 32px;
  text-align: center;
  position: relative;
}

.winner-trophy {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 8px rgba(243, 178, 76, 0.5));
}

.winner-eyebrow {
  font-family: "Unbounded", sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-3);
  margin-bottom: 12px;
}

.winner-name {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 8px;
  text-shadow: 0 2px 16px rgba(243, 178, 76, 0.3);
}

.winner-tournament {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.winner-score {
  font-family: "Unbounded", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent-3);
  margin-bottom: 12px;
}

.winner-runnerup {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
}

/* ── Next Tournament Card ─────────────────────────────────────────── */
.next-tournament-card {
  margin: 12px 0 32px;
  background: var(--card);
  border: 1px solid var(--bg-2);
  border-radius: 12px;
  overflow: hidden;
}

.next-tournament-inner {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.next-eyebrow {
  font-family: "Unbounded", sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  flex: 0 0 100%;
  margin-bottom: -8px;
}

.next-name {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 700;
  color: var(--ink);
  flex: 1 1 auto;
}

.next-date {
  font-size: 0.9rem;
  color: var(--muted);
}

.next-countdown {
  font-family: "Unbounded", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(43, 140, 122, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Tournament logo + title row */
.tournament-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tournament-title-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.tournament-title-text h1 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tournament-logo {
  height: 90px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .tournament-logo {
    height: 60px;
    max-width: 140px;
  }
  .tournament-title-row {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .tournament-title-row #activeTournamentTitle {
    display: none;
  }
  .tournament-title-text {
    align-items: center;
    text-align: center;
  }
}
