:root {
  --bg: #0f1419;
  --bg-muted: #171e26;
  --surface: #1c2530;
  --border: #2a3644;
  --text: #eef2f6;
  --text-muted: #9aa8b6;
  --accent: #ff6b2c;
  --accent-dim: #c94e18;
  --rainbow-a: #e63946;
  --rainbow-b: #f4a261;
  --rainbow-c: #2a9d8f;
  --rainbow-d: #457b9d;
  --radius: 12px;
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Outfit", var(--font);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 107, 44, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(69, 123, 157, 0.12), transparent),
    var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 2rem, 720px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #111;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand__logo {
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--border);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  display: block;
}

.brand__sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  background: var(--surface);
}

.site-nav__quiet {
  font-size: 0.88rem;
}

.site-nav__cta {
  background: var(--accent) !important;
  color: #111 !important;
  font-weight: 600;
  margin-left: 0.25rem;
}

.site-nav__cta:hover {
  background: var(--accent-dim) !important;
  color: #fff !important;
}

.site-nav__cta--alt {
  background: transparent !important;
  color: var(--rainbow-c) !important;
  border: 1px solid var(--rainbow-c);
  font-weight: 600;
}

.site-nav__cta--alt:hover,
.site-nav__cta--alt.is-active {
  background: rgba(42, 157, 143, 0.15) !important;
  color: var(--text) !important;
}

.site-main {
  padding-bottom: 4rem;
}

.hero {
  padding: 2.5rem 0 3rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--rainbow-c);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__visual img {
  width: min(280px, 70vw);
  filter: drop-shadow(var(--shadow));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--rainbow-a));
  color: #111;
}

.btn--primary:hover {
  filter: brightness(1.05);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--secondary {
  background: linear-gradient(135deg, var(--rainbow-c), var(--rainbow-d));
  color: #fff;
}

.btn--secondary:hover {
  filter: brightness(1.08);
}

.btn--wide {
  width: 100%;
  padding: 0.85rem;
}

.section {
  padding: 2.5rem 0;
}

.section--muted {
  background: var(--bg-muted);
  border-block: 1px solid var(--border);
}

.section__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.card-grid--divisions {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.section-intro {
  color: var(--text-muted);
  max-width: 42rem;
  margin: -0.5rem 0 1.25rem;
}

.card__meta {
  margin-bottom: 0 !important;
  font-size: 0.85rem;
  opacity: 0.85;
}

.venue-gallery {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .venue-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

.venue-photo {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.venue-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.venue-photo figcaption {
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.venue-photo__placeholder {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: var(--bg);
}

.venue-photo__placeholder code {
  font-size: 0.8rem;
}

.venue-photo {
  position: relative;
}

.venue-photo__fails {
  object-fit: contain;
  background: var(--bg);
  padding: 0.5rem;
}

.venue-photo__tba {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  margin: 0;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--accent);
  color: #111;
}

.empty-state {
  text-align: center;
  padding: 1rem 0 2rem;
}

.empty-state__img {
  width: min(280px, 70vw);
  margin: 0 auto 1rem;
  border-radius: var(--radius);
}

.empty-state__badge {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
}

.empty-state__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.empty-state__message {
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 auto 1.25rem;
}

.empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.tba-table-wrap {
  margin-top: 2rem;
}

.tba-table__title {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.tba-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.tba-table th,
.tba-table td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.75rem;
  text-align: left;
}

.tba-table thead th {
  background: var(--surface);
  font-weight: 600;
}

.tba-table tbody th {
  font-weight: 600;
  color: var(--accent);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.card--division h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  color: var(--accent);
}

.card--division p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.check-list {
  margin: 0;
  padding-left: 1.2rem;
}

.check-list li {
  margin-bottom: 0.5rem;
}

.info-panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--border);
}

.info-panel h3 {
  margin-top: 0;
}

.text-link {
  font-weight: 600;
}

.prose h1 {
  font-family: var(--font-display);
}

.disclaimer-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
}

.disclaimer-block__title {
  font-size: 1rem;
  margin-top: 0;
}

.disclaimer-section h3 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.disclaimer-section p {
  margin-top: 0;
  color: var(--text);
}

.rules-summary {
  line-height: 1.65;
}

.rules-summary li {
  margin-bottom: 0.65rem;
}

.season-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.season-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.season-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.season-notes {
  margin: 0.75rem 0;
  padding-left: 1.2rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.round-details {
  margin: 0.75rem 0;
  font-size: 0.9rem;
}

.round-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
}

.round-details__list {
  margin: 0.5rem 0 0;
  line-height: 1.6;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.meta-dl {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

.meta-dl div {
  display: flex;
  gap: 0.75rem;
}

.meta-dl dt {
  min-width: 9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.meta-dl dd {
  margin: 0;
}

.muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.callout {
  background: rgba(42, 157, 143, 0.12);
  border: 1px solid rgba(42, 157, 143, 0.35);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.callout--inline {
  margin-top: 1rem;
  font-size: 0.92rem;
}

.callout--adult {
  border-color: rgba(69, 123, 157, 0.45);
  background: rgba(69, 123, 157, 0.1);
}

.register-wrap {
  max-width: 820px;
}

.register-header h1 {
  font-family: var(--font-display);
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 0;
  background: var(--surface);
}

.form-section legend {
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0 0.35rem;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0.75rem;
}

@media (min-width: 600px) {
  .field-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0.75rem;
}

.players-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.player-row {
  display: grid;
  grid-template-columns: 2rem 1fr 1fr;
  gap: 0.5rem;
  align-items: center;
}

.player-row__num {
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
}

.form-section--legal .legal-intro {
  margin-top: 0;
}

.legal-scroll {
  max-height: 280px;
  overflow: auto;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.55;
}

.legal-scroll p {
  margin: 0 0 0.75rem;
}

.legal-scroll__title {
  color: var(--text);
  font-weight: 600;
}

.check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
  cursor: pointer;
}

.check input {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.form-actions {
  margin-top: 0.5rem;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.alert--hidden {
  display: none;
}

.alert--success {
  background: rgba(42, 157, 143, 0.15);
  border: 1px solid rgba(42, 157, 143, 0.4);
}

.alert--error {
  background: rgba(230, 57, 70, 0.12);
  border: 1px solid rgba(230, 57, 70, 0.35);
}

.field--invalid input,
.field--invalid select {
  border-color: var(--rainbow-a);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--bg-muted);
  text-align: center;
}

.site-footer p {
  margin: 0.35rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer__club {
  color: var(--text) !important;
  font-weight: 600;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-muted);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem 1rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-header__inner {
    position: relative;
    flex-wrap: wrap;
  }

  .player-row {
    grid-template-columns: 1.5rem 1fr;
  }

  .player-row .field:last-child {
    grid-column: 2;
  }
}
