:root {
  color-scheme: dark;
  --ink: #f6f2e8;
  --muted: #b9c2bd;
  --panel: #151b1d;
  --panel-strong: #20292b;
  --felt: #0c6b4a;
  --felt-dark: #073e32;
  --amber: #dca64a;
  --red: #b64036;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #0b1011;
  color: var(--ink);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(11, 16, 17, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0 16%, var(--red) 17% 48%, #14191a 49% 100%);
  color: #fff;
  font-size: 11px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.16);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.site-nav a:hover,
.site-nav a:focus {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 68px));
  display: grid;
  align-items: end;
  padding: clamp(28px, 5vw, 64px);
  overflow: hidden;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 12, 13, 0.96) 0%, rgba(7, 12, 13, 0.7) 45%, rgba(7, 12, 13, 0.2) 100%),
    linear-gradient(0deg, rgba(7, 12, 13, 0.92) 0%, transparent 38%);
}

.hero-content {
  position: relative;
  width: min(780px, 100%);
  padding-bottom: clamp(24px, 7vh, 84px);
}

.eyebrow,
.panel-kicker,
.action-label {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 18px;
  font-size: clamp(48px, 10vw, 116px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy,
.section-heading p,
.feature-panel p,
.division-card p,
.timeline p,
.rules-grid p,
.new-player-grid p,
.contact-list p,
.source-map p,
.stat-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-copy {
  max-width: 620px;
  font-size: clamp(18px, 2.4vw, 24px);
}

.hero-actions,
.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--amber);
  border-color: var(--amber);
  color: #17120a;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: #101617;
}

.quick-actions a {
  min-height: 156px;
  padding: 24px;
  border-right: 1px solid var(--line);
  text-decoration: none;
}

.quick-actions a:last-child {
  border-right: 0;
}

.quick-actions strong,
.quick-actions small {
  display: block;
}

.quick-actions strong {
  margin-bottom: 8px;
  font-size: 22px;
}

.quick-actions small {
  color: var(--muted);
  line-height: 1.5;
}

.section {
  padding: clamp(56px, 8vw, 110px) clamp(16px, 4vw, 48px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.schedule-section,
.tournament-section,
.contact-section {
  background: #0f1516;
}

.standings-section,
.rules-section,
.join-section,
.sources-section {
  background: #111819;
}

.schedule-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
}

.feature-panel,
.division-card,
.stat-grid article,
.timeline article,
.rules-grid article,
.new-player-grid article,
.contact-list article,
.source-map article,
.quick-actions a {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-panel,
.division-card {
  padding: 24px;
  box-shadow: var(--shadow);
}

.compact-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
}

.compact-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.compact-list dt {
  color: var(--muted);
}

.compact-list dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.division-tool {
  display: grid;
  align-content: start;
  gap: 10px;
}

.schedule-layout .division-tool {
  grid-column: 1 / -1;
}

.data-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.match-card,
.event-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.match-card header,
.event-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.match-card strong,
.event-card strong {
  font-size: 18px;
}

.meta-line {
  color: var(--muted);
  line-height: 1.5;
}

.table-panel {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.data-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--amber);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.tab-list {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1112;
}

.tab {
  flex: 1;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.tab.is-active {
  background: var(--felt);
  color: white;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
}

.stat-grid,
.rules-grid,
.new-player-grid,
.contact-list,
.source-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.rules-grid {
  grid-template-columns: repeat(4, 1fr);
}

.new-player-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 16px;
}

.stat-grid article,
.rules-grid article,
.new-player-grid article,
.contact-list article,
.source-map article {
  padding: 22px;
}

.stat-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--amber);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.stat-grid span {
  display: block;
  margin-bottom: 12px;
  font-weight: 800;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.timeline article {
  padding: 24px;
}

.timeline span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--felt);
  font-weight: 900;
}

.join-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--felt-dark), #171d1e 58%, #241b13);
}

.contact-list a {
  color: var(--amber);
  overflow-wrap: anywhere;
}

.api-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.api-status span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.api-status strong {
  text-align: right;
}

.source-area {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--line);
  background: #090d0e;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--ink);
}

.policy-page {
  min-height: 100vh;
}

.policy-page h1 {
  max-width: 14ch;
  font-size: clamp(44px, 8vw, 82px);
}

.policy-main {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) 0;
}

.policy-hero {
  padding: clamp(24px, 5vw, 48px) 0;
}

.policy-hero p:not(.eyebrow),
.policy-panel p,
.policy-panel li {
  color: var(--muted);
  line-height: 1.65;
}

.policy-updated {
  margin-bottom: 18px;
  font-size: 14px;
}

.policy-panel {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.policy-panel h2 {
  margin-top: 30px;
  font-size: clamp(24px, 4vw, 34px);
}

.policy-panel h2:first-child {
  margin-top: 0;
}

.policy-panel a {
  color: var(--amber);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 18px;
    background: #0b1011;
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .policy-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    background: transparent;
    border-bottom: 0;
  }

  .site-nav a {
    min-height: 44px;
  }

  .quick-actions,
  .schedule-layout,
  .stat-grid,
  .timeline,
  .event-grid,
  .rules-grid,
  .contact-list,
  .source-map,
  .join-panel {
    grid-template-columns: 1fr;
  }

  .quick-actions a {
    min-height: 126px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .join-actions {
    width: 100%;
  }

  .join-actions .button {
    flex: 1 1 220px;
  }

  .api-status {
    align-items: flex-start;
    flex-direction: column;
  }

  .api-status strong {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .brand span:last-child {
    max-width: 170px;
    line-height: 1.1;
  }

  .hero {
    min-height: 660px;
    padding-inline: 16px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 12, 13, 0.96) 0%, rgba(7, 12, 13, 0.76) 100%),
      linear-gradient(0deg, rgba(7, 12, 13, 0.92) 0%, transparent 44%);
  }

  .hero-actions .button {
    width: 100%;
  }

  .section {
    padding-inline: 16px;
  }

  .tab-list {
    flex-direction: column;
  }

  .compact-list div {
    display: grid;
    gap: 4px;
  }

  .compact-list dd {
    text-align: left;
  }

  .new-player-grid {
    grid-template-columns: 1fr;
  }
}
