:root {
  --font-sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  --sand: #f6efdf;
  --paper: rgba(250, 246, 237, 0.9);
  --paper-strong: rgba(249, 244, 233, 0.97);
  --pine: #16352a;
  --pine-soft: #25483a;
  --lake: #0c4f63;
  --gold: #d4a645;
  --gold-soft: rgba(212, 166, 69, 0.22);
  --ink: #1a1f1b;
  --muted: #52635a;
  --line: rgba(22, 53, 42, 0.14);
  --shadow: 0 26px 70px rgba(8, 22, 18, 0.22);
  --hero-image: linear-gradient(180deg, rgba(8, 24, 19, 0.15), rgba(8, 24, 19, 0.78)),
    url("./players_hero.jpg");
  --detail-image: linear-gradient(180deg, rgba(12, 26, 37, 0.28), rgba(12, 26, 37, 0.8)),
    url("./players_hero.jpg");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.45), transparent 28%),
    linear-gradient(180deg, #dce8dd 0%, #eef1e3 26%, #f7f2e8 60%, #efe7d5 100%);
  font-family: var(--font-sans);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.tabs-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 14px;
}

.tabs-bar__main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(22, 53, 42, 0.86);
  border: 1px solid rgba(248, 240, 218, 0.16);
  box-shadow: 0 14px 30px rgba(10, 28, 21, 0.18);
  backdrop-filter: blur(12px);
  flex-wrap: wrap;
}

.status-banner {
  margin: 18px 0 0;
  padding: 14px 18px;
  border-radius: 18px;
  line-height: 1.5;
  font-size: 0.94rem;
  box-shadow: 0 12px 24px rgba(10, 28, 21, 0.08);
}

.status-banner--healthy {
  background: rgba(12, 79, 99, 0.08);
  border: 1px solid rgba(12, 79, 99, 0.12);
  color: #18495b;
}

.status-banner--degraded {
  background: rgba(130, 44, 24, 0.1);
  border: 1px solid rgba(130, 44, 24, 0.16);
  color: #7b2718;
}

.hero {
  margin: 10px auto 20px;
  height: 360px;
  border-radius: 32px;
  background-image: var(--page-hero-image, var(--hero-image));
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero--details {
  background-image: var(--page-detail-image, var(--detail-image));
}

.hero__inner {
  padding: 28px 28px 34px;
  height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #f8f0da;
}

.brand__eyebrow {
  display: block;
  font-size: 1.1em;
  line-height: 1.2;
  min-height: 1.2em;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.82;
}

.brand__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.96;
  max-width: 8ch;
}

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(22, 53, 42, 0.86);
  border: 1px solid rgba(248, 240, 218, 0.16);
  box-shadow: 0 14px 30px rgba(10, 28, 21, 0.18);
  backdrop-filter: blur(12px);
  flex-wrap: wrap;
}

.tabs--primary {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.tabs--utility {
  margin-left: auto;
  flex-wrap: nowrap;
}

.tabs--secondary {
  margin-left: 4px;
  flex-wrap: nowrap;
  padding: 0;
  gap: 12px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.tabs--secondary .tab-link {
  background: rgba(22, 53, 42, 0.86);
  border: 1px solid rgba(248, 240, 218, 0.16);
  box-shadow: 0 14px 30px rgba(10, 28, 21, 0.18);
  padding: 11px 24px;
}

.tabs--secondary .tab-link:hover,
.tabs--secondary .tab-link:focus-visible {
  background: rgba(22, 53, 42, 0.96);
  box-shadow: 0 16px 32px rgba(10, 28, 21, 0.2);
}

.tabs--secondary .tab-link.is-active {
  background: #f7f0dd;
  color: var(--pine);
  box-shadow: 0 10px 24px rgba(8, 24, 19, 0.18);
}

.tournament-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.tournament-switcher__label {
  color: rgba(247, 240, 221, 0.86);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tournament-switcher__select {
  width: 270px;
  min-width: 220px;
  max-width: 100%;
  border: 1px solid rgba(22, 53, 42, 0.12);
  border-radius: 999px;
  padding: 10px 36px 10px 11px;
  background: #f7f0dd;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M4 7l5 5 5-5' stroke='%2316352a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 18px 18px;
  color: var(--pine);
  font: inherit;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.tournament-switcher__select--placeholder {
  color: rgba(22, 53, 42, 0.72);
  cursor: default;
}

.tab-link {
  padding: 11px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 600;
  color: #f7f0dd;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.tab-link:hover,
.tab-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(248, 240, 218, 0.18);
}

.tab-link.is-active {
  background: #f7f0dd;
  color: var(--pine);
  box-shadow: 0 10px 24px rgba(8, 24, 19, 0.18);
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 28px;
  margin-top: 28px;
  align-items: end;
  min-height: 180px;
  color: #f7f0dd;
}

.hero-copy__lede {
  font-size: clamp(1.08rem, 2.2vw, 1.45rem);
  line-height: 1.55;
  max-width: 38rem;
  margin: 0;
  align-self: start;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 18px 18px 16px;
  border-radius: 24px;
  background: rgba(248, 240, 218, 0.14);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(248, 240, 218, 0.18);
  align-self: end;
  min-height: 180px;
}

.hero-copy--status-offset .hero-panel {
  position: relative;
  bottom: 46px;
}


.hero-panel__label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-bottom: 10px;
}

.hero-panel__value {
  display: block;
  font-size: 1.1rem;
  line-height: 1.45;
  min-height: 5.9em;
}

.hero-panel__value strong {
  display: block;
  font-size: 1.35rem;
}

.meta-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 26px;
}

.meta-row--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  background: var(--paper);
  border: 1px solid rgba(22, 53, 42, 0.09);
  border-radius: 22px;
  padding: 18px 18px 16px;
  box-shadow: 0 12px 30px rgba(10, 28, 21, 0.08);
}

.stat-card__label {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stat-card__value {
  display: block;
  margin-top: 12px;
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--pine);
}

.stat-card__value--pending {
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  text-transform: none;
}

.panel {
  background: var(--paper-strong);
  border: 1px solid rgba(22, 53, 42, 0.09);
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.future-state {
  padding: 0 24px 24px;
}

.future-state__lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.future-state__lede--aligned {
  margin-left: 24px;
}

.future-state__meta {
  margin-bottom: 0;
}

.future-state__value {
  font-size: 1.15rem;
  line-height: 1.35;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.spotlight-card {
  padding: 22px;
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(10, 28, 21, 0.1);
  color: #f7f0dd;
}

.spotlight-card--payout {
  background:
    linear-gradient(135deg, rgba(9, 46, 37, 0.88), rgba(15, 78, 63, 0.8)),
    linear-gradient(180deg, rgba(212, 166, 69, 0.2), rgba(212, 166, 69, 0));
}

.spotlight-card--danger {
  background:
    linear-gradient(135deg, rgba(86, 46, 15, 0.9), rgba(130, 44, 24, 0.76)),
    linear-gradient(180deg, rgba(212, 166, 69, 0.18), rgba(212, 166, 69, 0));
}

.spotlight-card__label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.82;
}

.spotlight-card h3 {
  margin: 10px 0 16px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.spotlight-card__list {
  display: grid;
  gap: 10px;
}

.spotlight-card__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(247, 240, 221, 0.12);
}

.spotlight-card__name {
  font-weight: 700;
}

.spotlight-card__row strong {
  font-family: var(--font-display);
  font-weight: 800;
}

.spotlight-card__footer {
  margin-top: 16px;
  color: rgba(247, 240, 221, 0.85);
  line-height: 1.5;
}

.panel__header {
  padding: 24px 24px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: end;
}

.panel__heading-group {
  width: 100%;
}

.panel__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--pine);
}

.panel__subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 46rem;
  line-height: 1.55;
}

.panel__stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.panel--team-search .panel__header {
  min-height: 0;
  padding-top: 18px;
  padding-bottom: 18px;
  align-items: center;
}

.panel--team-search + [data-team-root] {
  margin-top: 18px;
}

.panel__header-button {
  margin-left: auto;
  margin-right: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d4b3a, #2f7a4c);
  color: #f7f0dd;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.95rem;
  box-shadow: 0 10px 22px rgba(22, 53, 42, 0.16);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.panel__header-button:hover,
.panel__header-button:focus-visible {
  background: linear-gradient(135deg, #246149, #3a9060);
  box-shadow: 0 14px 28px rgba(22, 53, 42, 0.22);
  transform: translateY(-1px);
}

.panel__header-button:focus-visible {
  outline: 2px solid rgba(12, 79, 99, 0.28);
  outline-offset: 3px;
}

.rules-layout {
  display: grid;
  gap: 24px;
  margin-bottom: 28px;
}

.rules-copy {
  padding: 28px 28px 30px;
}

.rules-copy p {
  margin: 0 0 22px;
  line-height: 1.42;
  font-size: clamp(1rem, 2vw, 1.06rem);
}

.rules-copy p:last-child {
  margin-bottom: 0;
}

.rules-copy h3 {
  margin: 30px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--pine);
}

.rules-copy h4 {
  margin: 24px 0 8px;
  font-size: 1rem;
  color: var(--pine);
  text-decoration: underline;
}

.rules-copy ul {
  margin: 0 0 26px;
  padding-left: 0;
  list-style: none;
}

.rules-copy li {
  margin: 0 0 10px;
  line-height: 1.42;
  font-size: clamp(1rem, 2vw, 1.06rem);
}

.rules-copy strong {
  color: var(--pine);
}

.rules-copy .rules-accent {
  color: #2f9167;
}

.rules-copy .rules-alert {
  color: #d92626;
}

.table-wrap {
  overflow-x: auto;
  padding: 0 8px 10px;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.leaderboard-table--standings {
  table-layout: fixed;
}

.leaderboard-table--standings th:first-child,
.leaderboard-table--standings td:first-child {
  width: 92px;
  padding-right: 0;
}

.leaderboard-table--standings th:nth-child(2),
.leaderboard-table--standings td:nth-child(2) {
  width: 200px;
  padding-left: 0;
}

.leaderboard-table--standings th:nth-child(3),
.leaderboard-table--standings td:nth-child(3) {
  width: 140px;
}

.leaderboard-table--standings th:nth-child(4),
.leaderboard-table--standings td:nth-child(4) {
  width: 370px;
}

.leaderboard-table--tournament th:nth-child(3),
.leaderboard-table--tournament td:nth-child(3),
.leaderboard-table--tournament th:nth-child(4),
.leaderboard-table--tournament td:nth-child(4),
.leaderboard-table--tournament th:nth-child(5),
.leaderboard-table--tournament td:nth-child(5),
.leaderboard-table--tournament th:nth-child(6),
.leaderboard-table--tournament td:nth-child(6),
.leaderboard-table--tournament th:nth-child(7),
.leaderboard-table--tournament td:nth-child(7) {
  text-align: center;
}

.leaderboard-table--tournament th:nth-child(5),
.leaderboard-table--tournament td:nth-child(5) {
  font-family: var(--font-display);
  font-weight: 800;
}

.leaderboard-table thead th {
  text-align: left;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
}

.leaderboard-table tbody tr {
  animation: cardRise 460ms ease both;
}

.leaderboard-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.46);
}

.leaderboard-table tbody tr:hover {
  background: rgba(212, 166, 69, 0.11);
}

.leaderboard-table td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(22, 53, 42, 0.08);
  vertical-align: middle;
}

.leaderboard-table__row--compact td {
  padding-top: 8px;
  padding-bottom: 8px;
}

.leaderboard-table__align-center {
  text-align: center;
}

.leaderboard-table thead th.leaderboard-table__align-center {
  text-align: center;
}

.leaderboard-table__row--compact td:nth-child(3),
.leaderboard-table__row--compact td:nth-child(4),
.leaderboard-table__row--compact td:nth-child(5) {
  text-align: center;
}

.rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #d7ddd7;
  color: #16352a;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
}

.rank-pill--elite {
  background: linear-gradient(135deg, #b28124, #e6c772);
  color: #122419;
}

.rank-pill--podium {
  background: #2f7a4c;
  color: #f6efdf;
}

.rank-pill--payout {
  background: #73b684;
  color: #f6efdf;
}

.rank-pill--toilet-bowl {
  background: #9fd3a8;
  color: #16352a;
}

.rank-pill--last-place {
  background: #c96b63;
  color: #f6efdf;
}

.entrant-cell strong {
  display: block;
  font-size: 1.18rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.entrant-cell > span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.entrant-cell__inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.entrant-cell__inline strong {
  display: inline;
}

.standings-entry-line {
  display: block;
}

.score-cell--mobile-inline {
  display: none;
}

.score-cell__main {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.leaderboard-table--standings thead th:nth-child(3) {
  text-align: left;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.leaderboard-table__row--compact .tag-row {
  margin-top: 4px;
}

.tag-row--inline {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 0;
  white-space: nowrap;
}

.tag-row--score-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 0;
}

.tag {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.tag--podium {
  background: rgba(212, 166, 69, 0.16);
  color: #8b6111;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.tag--payout {
  background: rgba(47, 122, 76, 0.14);
  color: #2f7a4c;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.tag--payout-bubble {
  background: rgba(12, 79, 99, 0.12);
  color: var(--lake);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.tag--toilet-bowl {
  background: rgba(159, 211, 168, 0.32);
  color: #24563a;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.tag--last-place {
  background: rgba(130, 44, 24, 0.1);
  color: #8b2f1e;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.score-cell strong {
  display: block;
  color: var(--pine);
  font-size: 1.18rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.score-cell span {
  display: block;
  color: var(--muted);
  margin-top: 2px;
  font-size: 0.84rem;
}

.leaderboard-table__row--compact .score-cell strong {
  font-size: 1.18rem;
}

.leaderboard-table td.pool-score-cell {
  color: #2f7a4c;
}

.leaderboard-table td.pool-score-cell span {
  color: #2f7a4c;
  font-weight: 700;
}

.leaderboard-table__row--compact .score-cell span {
  margin-top: 2px;
  font-size: 0.86rem;
}

.bonus-badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(47, 122, 76, 0.14);
  color: #2f7a4c;
  border: 1px solid rgba(47, 122, 76, 0.12);
  font-size: 0.8rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.team-card {
  padding: 22px;
  border: 1px solid rgba(22, 53, 42, 0.1);
  border-radius: 26px;
  background: rgba(252, 249, 242, 0.97);
  box-shadow: 0 18px 38px rgba(10, 28, 21, 0.08);
  animation: cardRise 420ms ease both;
}

.team-card__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.team-card__top h3 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--pine);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.team-card__meta {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.team-card__score {
  text-align: right;
}

.team-card__score strong {
  display: block;
  font-size: 1.8rem;
  color: var(--pine);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.team-card__score span {
  color: var(--muted);
  font-size: 0.9rem;
}

.team-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 18px;
}

.summary-chip {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(12, 79, 99, 0.08);
  border: 1px solid rgba(12, 79, 99, 0.09);
}

.summary-chip span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-chip strong {
  display: block;
  margin-top: 8px;
  color: var(--pine);
  font-size: 1.12rem;
  font-weight: 700;
}

.golfer-list {
  display: grid;
  gap: 10px;
}

.golfer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 18px;
  background: rgba(22, 53, 42, 0.045);
  border: 1px solid rgba(22, 53, 42, 0.07);
}

.golfer-row.is-counted {
  background: rgba(22, 53, 42, 0.09);
  border-color: rgba(22, 53, 42, 0.12);
}

.golfer-row.is-dropped {
  background: rgba(123, 92, 26, 0.08);
  border-color: rgba(123, 92, 26, 0.14);
}

.golfer-row__name {
  font-weight: 700;
}

.golfer-row__meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.golfer-row__place {
  text-align: right;
}

.golfer-row__place strong {
  display: block;
  color: var(--pine);
  font-size: 1.2rem;
  font-weight: 800;
}

.golfer-row__place span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

.bonus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.bonus-list .bonus-badge {
  background: rgba(77, 146, 97, 0.14);
  color: #2e6e45;
  border: 1px solid rgba(77, 146, 97, 0.12);
}

.toolbar {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

.toolbar--hof {
  gap: 16px;
}

.toolbar__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.toolbar__label {
  color: var(--pine);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.segmented-control {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(248, 240, 218, 0.16);
  background: rgba(79, 85, 89, 0.92);
  box-shadow: 0 14px 30px rgba(50, 54, 58, 0.16);
  backdrop-filter: blur(12px);
}

.segmented-control--year {
  padding: 4px;
}

.segment-button {
  border: 1px solid transparent;
  background: transparent;
  color: #f7f0dd;
  padding: 8px 16px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.year-filter {
  display: inline-flex;
}

.year-filter__select {
  min-width: 108px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 34px 8px 14px;
  background: #f7f0dd;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M4 7l5 5 5-5' stroke='%2316352a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
  color: var(--pine);
  font: inherit;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

[data-hof-tournament] {
  min-width: 148px;
}

.segment-button:hover,
.segment-button:focus-visible {
  transform: translateY(-1px);
  background: rgba(248, 240, 218, 0.18);
}

.segment-button.is-active {
  background: #f7f0dd;
  color: var(--pine);
  box-shadow: 0 10px 24px rgba(8, 24, 19, 0.14);
}

.hof-kpis {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: 18px;
  margin-bottom: 10px;
}

.history-panel-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.history-table {
  min-width: max-content;
}

.history-table th.history-rank,
.history-table td.history-rank {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #f7f3e7;
  text-align: center;
  min-width: 52px;
  width: 52px;
}

.history-table th:first-child,
.history-table td:first-child {
  left: 0;
}

.history-table th:nth-child(2),
.history-table td:nth-child(2) {
  position: sticky;
  left: 52px;
  z-index: 1;
  background: #f7f3e7;
}

.history-table thead th.history-rank,
.history-table thead th:nth-child(2) {
  z-index: 2;
}

.history-table td.history-name {
  font-weight: 700;
  color: var(--pine);
}

.history-table td.history-number,
.history-table th.history-number {
  text-align: center;
  white-space: nowrap;
}

.history-table td.history-total,
.history-table th.history-total {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0;
}

.toolbar--standings {
  margin-top: 10px;
}

.toolbar--stacked .search-hint {
  display: none;
}

.search-input {
  width: 540px;
  max-width: 100%;
  padding: 13px 16px;
  border-radius: 999px;
  border: 1px solid rgba(22, 53, 42, 0.14);
  background: rgba(255, 255, 255, 0.76);
  font: inherit;
  color: var(--ink);
}

.search-input:focus {
  outline: 2px solid rgba(12, 79, 99, 0.25);
  outline-offset: 2px;
}

.search-hint {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.leaderboard-table__empty {
  padding: 18px 12px;
  color: var(--muted);
  text-align: center;
}

.footer-note {
  margin: 18px 0 34px;
  padding: 18px 20px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.footer-note a {
  color: var(--lake);
}

.empty-state {
  padding: 30px 24px 36px;
  color: var(--muted);
}

.loading {
  padding: 36px 24px 44px;
  color: var(--muted);
}

@keyframes cardRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-copy,
  .detail-grid,
  .spotlight-grid {
    grid-template-columns: 1fr;
  }

  .meta-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meta-row--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hof-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel__header-button {
    margin-right: 0;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100vw - 8px, 100%);
  }

  .hero {
    height: auto;
    min-height: 0;
    border-radius: 24px;
  }

  .tabs-bar {
    gap: 8px;
    margin: 10px 0 12px;
    justify-content: stretch;
    align-items: stretch;
    flex-direction: column;
  }

  .tabs-bar__main {
    width: 100%;
    gap: 6px;
    padding: 6px;
    justify-content: center;
  }

  .tabs {
    width: 100%;
    gap: 6px;
    padding: 6px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .tab-link {
    padding: 9px 14px;
    font-size: 0.92rem;
  }

  .tabs--utility {
    margin-left: 0;
  }

  .tabs--utility .tab-link {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .tabs--secondary {
    margin-left: 0;
    flex-wrap: wrap;
  }

  .tournament-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .tournament-switcher__select {
    min-width: 0;
    flex: 1 1 auto;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .hero__inner {
    padding: 20px 18px 24px;
    height: auto;
  }

  .hero-copy {
    gap: 18px;
    margin-top: 18px;
    min-height: 0;
  }

  .hero-copy--status-offset .hero-panel {
    position: static;
    bottom: auto;
  }

  .hero-panel {
    align-self: stretch;
    min-height: 0;
    padding: 16px 16px 14px;
  }

  .hero-panel__value {
    min-height: 0;
  }

  .table-wrap {
    padding: 0 4px 10px;
  }

  .leaderboard-table {
    min-width: 560px;
  }

  .leaderboard-table--standings th:first-child,
  .leaderboard-table--standings td:first-child {
    width: 72px;
  }

  .leaderboard-table--standings th:nth-child(2),
  .leaderboard-table--standings td:nth-child(2) {
    width: auto;
  }

  .leaderboard-table--standings th:nth-child(3),
  .leaderboard-table--standings td:nth-child(3) {
    display: none;
  }

  .leaderboard-table--standings th:nth-child(4),
  .leaderboard-table--standings td:nth-child(4) {
    display: none;
  }

  .leaderboard-table--standings {
    min-width: 0;
    width: 100%;
  }

  .leaderboard-table--standings .standings-entry-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
  }

  .leaderboard-table thead th,
  .leaderboard-table td {
    padding-left: 8px;
    padding-right: 8px;
  }

  .leaderboard-table thead th {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .rank-pill {
    min-width: 32px;
    height: 32px;
    font-size: 0.84rem;
  }

  .entrant-cell strong,
  .leaderboard-table__row--compact .score-cell strong {
    font-size: 1.02rem;
  }

  .leaderboard-table--standings .entrant-cell strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1 1 auto;
  }

  .leaderboard-table--standings .score-cell {
    text-align: right;
  }

  .leaderboard-table--standings .score-cell--mobile-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
  }

  .leaderboard-table--standings .score-cell--mobile-inline strong {
    font-size: 0.68rem;
    white-space: nowrap;
  }

  .leaderboard-table--standings .tag-row--score-inline .tag {
    padding: 2px 6px;
    font-size: 0.64rem;
    letter-spacing: 0.02em;
  }

  .entrant-cell > span,
  .score-cell span,
  .leaderboard-table__row--compact .score-cell span {
    font-size: 0.78rem;
  }

  .meta-row,
  .team-summary {
    grid-template-columns: 1fr;
  }

  .meta-row--three {
    grid-template-columns: 1fr;
  }

  .hof-kpis {
    grid-template-columns: 1fr;
  }

  .panel__header {
    padding: 22px 18px 10px;
  }

  .panel__title-row {
    align-items: flex-start;
  }

  .team-card {
    padding: 18px;
  }

  .team-card__top {
    flex-direction: column;
  }

  .team-card__score {
    text-align: left;
  }
}
