:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-dark: #8B6914;
  --green-deep: #0D1F0F;
  --green-mid: #1A3A1C;
  --green-fairway: #2D5A30;
  --cream: #F5EDD8;
  --cream-dark: #E8D9B8;
  --white: #FAFAF7;
  --text-dark: #0D1F0F;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--green-deep);
  color: var(--cream);
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 8rem));
  margin: 0 auto;
}

nav {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 1.2rem 4rem;
  background: linear-gradient(to bottom, rgba(13, 31, 15, 0.97), transparent);
  transition: background 0.3s, border-color 0.3s;
}

nav.scrolled {
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  background: rgba(13, 31, 15, 0.97);
}

.nav-logo {
  flex: 0 0 auto;
  color: var(--gold);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  text-decoration: none;
}

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

.nav-links a {
  color: var(--cream);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  opacity: 0.8;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s, opacity 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  opacity: 1;
}

.results-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 520px;
  overflow: hidden;
  padding: 9rem 4rem 5rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.results-hero-media,
.results-hero-overlay {
  position: absolute;
  inset: 0;
}

.results-hero-media {
  background: url("../images/hero-poster.jpg") center 42% / cover no-repeat;
  transform: scale(1.01);
}

.results-hero-overlay {
  background:
    linear-gradient(to top, rgba(13, 31, 15, 0.98) 0%, rgba(13, 31, 15, 0.62) 55%, rgba(13, 31, 15, 0.72) 100%),
    linear-gradient(to right, rgba(13, 31, 15, 0.55), transparent 62%);
}

.results-hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-label {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.results-hero h1,
.panel-heading h2 {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.results-hero h1 {
  max-width: 900px;
  color: var(--white);
  font-size: clamp(4.3rem, 9vw, 8rem);
  line-height: 0.88;
}

.results-hero h1 em,
.panel-heading h2 em {
  color: var(--gold);
  font-style: normal;
}

.results-hero > .results-hero-content > p {
  max-width: 700px;
  margin-top: 1.5rem;
  color: var(--cream-dark);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.55;
}

.hero-meta {
  display: flex;
  gap: 2rem;
  margin-top: 2.2rem;
  color: rgba(245, 237, 216, 0.68);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-meta strong {
  color: var(--cream);
  font-weight: 500;
}

.results-workspace {
  min-height: 700px;
  padding: 0 0 7rem;
  background:
    linear-gradient(rgba(201, 168, 76, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.018) 1px, transparent 1px),
    var(--green-deep);
  background-size: 64px 64px;
}

.view-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-right: 1px solid rgba(201, 168, 76, 0.22);
  border-bottom: 1px solid rgba(201, 168, 76, 0.22);
  border-left: 1px solid rgba(201, 168, 76, 0.22);
  background: rgba(7, 18, 8, 0.64);
}

.view-tab {
  min-width: 0;
  min-height: 70px;
  padding: 0.85rem 1rem;
  border: 0;
  border-right: 1px solid rgba(201, 168, 76, 0.18);
  background: transparent;
  color: rgba(245, 237, 216, 0.58);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  transition: background 0.2s, color 0.2s;
}

.view-tab:last-child {
  border-right: 0;
}

.view-tab:hover {
  color: var(--cream);
}

.view-tab.active {
  background: var(--gold);
  color: var(--green-deep);
}

.view-panel {
  padding-top: 5.5rem;
}

.view-panel[hidden] {
  display: none;
}

.panel-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
  gap: 4rem;
  align-items: end;
  margin-bottom: 2.8rem;
}

.panel-heading h2 {
  color: var(--white);
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.95;
}

.panel-heading > p {
  padding-bottom: 0.35rem;
  color: rgba(245, 237, 216, 0.64);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.55;
}

.table-scroll {
  overflow-x: auto;
  border-top: 1px solid rgba(201, 168, 76, 0.25);
  scrollbar-color: var(--gold-dark) transparent;
}

.leaderboard-table,
.event-table,
.points-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

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

.leaderboard-table th,
.event-table th,
.points-table th {
  padding: 1rem 0.8rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.16);
  color: rgba(245, 237, 216, 0.48);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.leaderboard-table th.player-column,
.event-table th.player-column {
  text-align: left;
}

.leaderboard-table td,
.event-table td {
  height: 74px;
  padding: 0.85rem 0.8rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  color: rgba(245, 237, 216, 0.78);
  font-size: 0.82rem;
  text-align: center;
}

.leaderboard-table tr:hover td,
.event-table tr:hover td {
  background: rgba(201, 168, 76, 0.035);
}

.rank-cell {
  width: 68px;
  color: var(--gold) !important;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem !important;
}

.rank-cell.top-rank {
  color: var(--gold-light) !important;
}

.player-cell {
  color: var(--cream) !important;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.22rem !important;
  font-weight: 600;
  text-align: left !important;
}

.points-cell,
.total-points {
  color: var(--gold-light) !important;
  font-weight: 500;
}

.total-points {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem !important;
  letter-spacing: 0.04em;
}

.edition-head {
  display: block;
  color: var(--cream);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.edition-type {
  display: block;
  margin-top: 0.2rem;
  color: rgba(245, 237, 216, 0.38);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
}

.mobile-card-region {
  display: none;
}

.standing-card,
.result-card {
  border: 1px solid rgba(201, 168, 76, 0.16);
  border-radius: 4px;
  background: rgba(9, 23, 10, 0.72);
}

.standing-card {
  padding: 1rem;
}

.standing-card-head,
.result-card-head {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.standing-identity,
.result-identity {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  min-width: 0;
}

.mobile-rank {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(201, 168, 76, 0.32);
  border-radius: 50%;
  color: var(--gold);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.1rem;
}

.standing-name,
.result-name {
  overflow-wrap: anywhere;
  color: var(--cream);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.05;
}

.standing-total,
.result-points {
  flex: 0 0 auto;
  color: var(--gold-light);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  text-align: right;
}

.standing-total small,
.result-points small {
  display: block;
  color: rgba(245, 237, 216, 0.42);
  font-family: "Montserrat", sans-serif;
  font-size: 0.48rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.standing-breakdown {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.3rem;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
}

.standing-breakdown span {
  min-width: 0;
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 500;
  text-align: center;
}

.standing-breakdown small {
  display: block;
  margin-bottom: 0.25rem;
  color: rgba(245, 237, 216, 0.4);
  font-size: 0.52rem;
  font-weight: 400;
}

.year-picker {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  margin-bottom: 3rem;
  padding-bottom: 0.65rem;
  scrollbar-color: var(--gold-dark) transparent;
}

.year-button {
  flex: 0 0 82px;
  min-height: 44px;
  border: 1px solid rgba(201, 168, 76, 0.24);
  border-radius: 3px;
  background: transparent;
  color: rgba(245, 237, 216, 0.6);
  cursor: pointer;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  transition: background 0.2s, color 0.2s;
}

.year-button:hover {
  color: var(--cream);
}

.year-button.active {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--green-deep);
}

.event-block + .event-block {
  margin-top: 4.5rem;
}

.event-header {
  display: flex;
  gap: 2rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.event-kicker {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.event-header h3 {
  color: var(--white);
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.event-meta {
  color: rgba(245, 237, 216, 0.48);
  font-size: 0.65rem;
  letter-spacing: 0.09em;
  line-height: 1.7;
  text-align: right;
  text-transform: uppercase;
}

.event-table {
  min-width: 720px;
}

.event-table.has-rounds {
  min-width: 930px;
}

.event-table .round-score {
  color: rgba(245, 237, 216, 0.7);
  font-variant-numeric: tabular-nums;
}

.event-table .score-total {
  color: var(--cream);
  font-weight: 500;
}

.status-tag {
  display: inline-block;
  min-width: 34px;
  padding: 0.28rem 0.4rem;
  border: 1px solid rgba(201, 168, 76, 0.24);
  border-radius: 3px;
  color: var(--gold-light);
  font-size: 0.62rem;
  font-weight: 500;
}

.result-cards {
  display: none;
}

.result-card {
  padding: 1rem;
}

.result-card-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
}

.result-stat {
  min-width: 0;
  text-align: center;
}

.result-stat span {
  display: block;
  overflow-wrap: anywhere;
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 500;
}

.result-stat small {
  display: block;
  margin-bottom: 0.25rem;
  color: rgba(245, 237, 216, 0.38);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rounds-mobile {
  display: flex;
  gap: 0.4rem;
  grid-column: 1 / -1;
  justify-content: center;
  padding-top: 0.45rem;
}

.rounds-mobile span {
  color: rgba(245, 237, 216, 0.62);
  font-size: 0.68rem;
}

.upcoming-event {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(201, 168, 76, 0.18);
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
}

.upcoming-event h3 {
  margin-top: 0.3rem;
  color: var(--cream);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  font-weight: 600;
}

.upcoming-event p {
  margin-top: 0.4rem;
  color: rgba(245, 237, 216, 0.5);
  font-size: 0.72rem;
  line-height: 1.5;
}

.upcoming-badge {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--gold);
  border-radius: 3px;
  color: var(--gold-light);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.points-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(0, 1.1fr);
  gap: 4rem;
  align-items: start;
}

.points-table-wrap {
  border-top: 1px solid rgba(201, 168, 76, 0.25);
}

.points-table td {
  height: 50px;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.09);
  color: rgba(245, 237, 216, 0.76);
  font-size: 0.78rem;
  text-align: center;
}

.points-table td:first-child {
  color: var(--gold);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.05rem;
}

.points-table td:nth-child(2) {
  color: var(--gold-light);
  font-weight: 500;
}

.rules-list {
  border-top: 1px solid rgba(201, 168, 76, 0.25);
}

.rule-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.rule-number {
  color: var(--gold);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.3rem;
}

.rule-item h3 {
  color: var(--cream);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.rule-item p {
  margin-top: 0.3rem;
  color: rgba(245, 237, 216, 0.55);
  font-size: 0.76rem;
  line-height: 1.65;
}

.tie-example {
  margin-top: 3.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.tie-example p {
  color: rgba(245, 237, 216, 0.7);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  line-height: 1.55;
}

.tie-example strong {
  color: var(--gold-light);
  font-weight: 600;
}

footer {
  padding: 5rem 4rem;
  border-top: 1px solid rgba(201, 168, 76, 0.16);
  background: #081509;
  text-align: center;
}

.footer-logo {
  color: var(--gold);
  font-family: "Bebas Neue", sans-serif;
  font-size: 3rem;
  letter-spacing: 0.16em;
}

.footer-tagline {
  margin-top: 0.5rem;
  color: var(--cream-dark);
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-style: italic;
}

.footer-rule {
  width: 60px;
  height: 1px;
  margin: 2rem auto;
  background: var(--gold-dark);
}

.footer-copy {
  color: rgba(245, 237, 216, 0.35);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  display: none;
  pointer-events: none;
  transform: translate(-100px, -100px) translate(-50%, -50%);
}

.cursor-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-light);
  transition: width 0.2s, height 0.2s;
}

.cursor-ring {
  width: 60px;
  height: 60px;
  color: rgba(232, 201, 122, 0.78);
  transition: width 0.25s, height 0.25s, color 0.25s;
}

.cursor-ring svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.reticle-ring,
.reticle-tick,
.flag-stick {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.8;
}

.reticle-ring {
  opacity: 0.6;
}

.reticle-tick {
  opacity: 0.85;
  transition: opacity 0.2s;
}

.cup-flag {
  opacity: 0;
  transform-origin: 0 -22px;
  transition: opacity 0.2s;
}

.flag-banner {
  fill: var(--gold-light);
}

body.cursor-hover .cursor-ring {
  width: 84px;
  height: 84px;
  color: var(--gold-light);
}

body.cursor-hover .reticle-tick {
  opacity: 0;
}

body.cursor-hover .cup-flag {
  opacity: 1;
}

body.cursor-hover .cursor-dot {
  width: 3px;
  height: 3px;
}

@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  body.custom-cursor-ready,
  body.custom-cursor-ready a,
  body.custom-cursor-ready button {
    cursor: none;
  }

  body.custom-cursor-ready .cursor-dot,
  body.custom-cursor-ready .cursor-ring {
    display: block;
  }
}

@media (max-width: 900px), (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none;
    opacity: 0;
  }

  body.touch-cursor-ready.touch-cursor-visible .cursor-dot,
  body.touch-cursor-ready.touch-cursor-visible .cursor-ring {
    display: block;
    opacity: 1;
  }

  body.touch-cursor-ready .cursor-ring {
    width: 54px;
    height: 54px;
  }

  body.touch-cursor-ready.cursor-hover .cursor-ring {
    width: 76px;
    height: 76px;
  }
}

@media (max-width: 900px) {
  .container {
    width: min(calc(100% - 2rem), 720px);
  }

  nav {
    display: block;
    min-height: 92px;
    padding: 0.85rem 1rem 0.7rem;
    background: rgba(13, 31, 15, 0.95);
  }

  .nav-logo {
    display: block;
    width: max-content;
    margin-bottom: 0.55rem;
    font-size: 1.25rem;
  }

  .nav-links {
    gap: 1.35rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    white-space: nowrap;
    font-size: 0.56rem;
    letter-spacing: 0.12em;
  }

  .results-hero {
    min-height: 500px;
    padding: 8.5rem 1rem 3.5rem;
  }

  .results-hero-media {
    background-position: 46% center;
  }

  .results-hero h1 {
    max-width: 650px;
    font-size: clamp(3.8rem, 14vw, 6rem);
  }

  .results-hero > .results-hero-content > p {
    max-width: 560px;
    font-size: 1.12rem;
  }

  .hero-meta {
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 1.5rem;
    font-size: 0.58rem;
    line-height: 1.5;
  }

  .view-tabs {
    margin: 0 -1rem;
  }

  .view-tab {
    min-height: 62px;
    padding: 0.7rem 0.45rem;
    font-size: 0.57rem;
    letter-spacing: 0.1em;
    line-height: 1.45;
    white-space: normal;
  }

  .view-panel {
    padding-top: 4rem;
  }

  .panel-heading {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-bottom: 2rem;
  }

  .panel-heading > p {
    max-width: 560px;
    padding-bottom: 0;
    font-size: 1rem;
  }

  .desktop-table-region,
  .event-table-region {
    display: none;
  }

  .mobile-card-region,
  .result-cards {
    display: grid;
    gap: 0.65rem;
  }

  .event-header {
    display: block;
  }

  .event-meta {
    margin-top: 0.7rem;
    text-align: left;
  }

  .points-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .points-table-wrap {
    overflow-x: auto;
  }

  .points-table {
    min-width: 410px;
  }

  footer {
    padding: 4rem 1.2rem;
  }
}

@media (max-width: 520px) {
  .results-hero {
    min-height: 470px;
  }

  .results-hero h1 {
    font-size: 3.65rem;
  }

  .results-hero > .results-hero-content > p {
    font-size: 1rem;
  }

  .view-tab {
    padding-right: 0.3rem;
    padding-left: 0.3rem;
    font-size: 0.5rem;
    letter-spacing: 0.07em;
  }

  .panel-heading h2 {
    font-size: 3.1rem;
  }

  .standing-breakdown {
    grid-template-columns: repeat(5, minmax(48px, 1fr));
    overflow-x: auto;
  }

  .result-card-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .upcoming-event {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .upcoming-badge {
    width: max-content;
  }

  .footer-copy {
    line-height: 1.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
