@font-face {
  font-family: "Rostex";
  src: url("../assets/fonts/Rostex-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --void: #02040a;
  --space: #050914;
  --space-soft: #091221;
  --ice: #eef8ff;
  --text: #d5e2ef;
  --muted: #8ca0b6;
  --cyan: #4fc8ff;
  --cyan-hot: #8de9ff;
  --blue: #156eff;
  --violet: #9f72ff;
  --gold: #ffc976;
  --danger: #ff6c82;
  --line: rgba(157, 215, 255, 0.18);
  --line-strong: rgba(157, 215, 255, 0.36);
  --panel: rgba(6, 14, 27, 0.82);
  --panel-solid: #07101e;
  --max: 1380px;
  --display: "Rostex", "Segoe UI", sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--void);
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(2, 4, 10, 0.18) 0, #02040a 720px),
    #02040a;
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  content: "";
  opacity: 0.03;
  mix-blend-mode: soft-light;
  background-image: repeating-linear-gradient(117deg, rgba(255, 255, 255, 0.68) 0 1px, transparent 1px 4px);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(1, 4, 11, 0.04) 0, rgba(1, 4, 11, 0.25) 44%, #02040a 88%),
    linear-gradient(90deg, rgba(1, 4, 11, 0.34), transparent 45%, rgba(1, 4, 11, 0.28)),
    url("hero-simple-concept.png") center top / cover no-repeat;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--cyan-hot);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(calc(100% - 36px), var(--max));
  min-height: 68px;
  padding: 8px 10px 8px 18px;
  border: 1px solid rgba(154, 213, 255, 0.17);
  background: linear-gradient(180deg, rgba(8, 17, 31, 0.91), rgba(3, 8, 17, 0.8));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.035);
  transform: translateX(-50%);
  backdrop-filter: blur(18px) saturate(130%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(79, 200, 255, 0.38));
}

.brand span {
  color: var(--ice);
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2vw, 34px);
  padding-inline: 24px;
}

.nav-links a {
  position: relative;
  padding: 12px 0;
  color: #b8c7d7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-current {
  color: var(--ice);
}

.nav-links a:hover::after,
.nav-links a.is-current::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  color: var(--ice);
  background: rgba(8, 20, 36, 0.74);
  font-size: 18px;
  cursor: pointer;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  overflow: hidden;
  border: 1px solid rgba(123, 215, 255, 0.42);
  color: var(--ice);
  background: rgba(8, 20, 36, 0.72);
  box-shadow: inset 0 0 28px rgba(79, 200, 255, 0.08);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  border-color: var(--cyan-hot);
  background: rgba(18, 42, 68, 0.86);
  box-shadow: inset 0 0 34px rgba(79, 200, 255, 0.15), 0 0 28px rgba(31, 145, 255, 0.14);
  transform: translateY(-2px);
}

.button-primary {
  border-color: rgba(141, 233, 255, 0.82);
  color: #03101b;
  background: linear-gradient(135deg, var(--cyan-hot), #48a7ff 62%, #6d83ff);
  box-shadow: 0 12px 35px rgba(21, 110, 255, 0.25), inset 0 1px rgba(255, 255, 255, 0.5);
}

.button-small {
  min-height: 46px;
  padding-inline: 20px;
}

.page-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 69svh;
  padding: 150px 0 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 73% 44%, rgba(34, 116, 191, 0.13), transparent 28%),
    linear-gradient(180deg, rgba(2, 5, 12, 0.08), rgba(2, 5, 12, 0.45) 65%, #02040a 100%);
}

.page-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(114, 193, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114, 193, 255, 0.1) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent 12%, black 72%, transparent 100%);
  transform: perspective(700px) rotateX(64deg) translateY(48%);
  transform-origin: bottom;
}

.page-hero-inner,
.page-main,
.footer-inner {
  width: min(calc(100% - 42px), var(--max));
  margin-inline: auto;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: end;
  gap: clamp(42px, 8vw, 120px);
}

.leaderboard-page-hero-inner {
  grid-template-columns: minmax(0, 1fr);
}

.section-index,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--cyan-hot);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-index::before,
.eyebrow::before {
  width: 30px;
  height: 1px;
  content: "";
  background: var(--cyan);
}

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

h1,
h2,
h3 {
  color: var(--ice);
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
}

h1 {
  max-width: 980px;
  margin-bottom: 24px;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.72), 0 0 48px rgba(76, 183, 255, 0.12);
  font-size: clamp(54px, 7vw, 110px);
  line-height: 0.88;
  letter-spacing: 0.055em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.4vw, 68px);
  line-height: 0.94;
  letter-spacing: 0.045em;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(22px, 2vw, 31px);
  line-height: 1;
  letter-spacing: 0.055em;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 0;
  color: #c5d3e1;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.78);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.7;
}

.hero-panel,
.surface,
.board-card,
.tournament-card,
.signup-card,
.legal-card {
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(10, 22, 39, 0.88), rgba(4, 10, 20, 0.92));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.028);
  backdrop-filter: blur(16px);
}

.hero-panel {
  padding: 10px;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}

.telemetry-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 74px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.telemetry-row:last-child {
  border-bottom: 0;
}

.telemetry-row span,
.telemetry-row small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.telemetry-row strong {
  color: var(--ice);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--cyan-hot);
  box-shadow: 0 0 14px rgba(141, 233, 255, 0.86);
}

.page-main {
  position: relative;
  padding-block: clamp(64px, 8vw, 118px);
}

.tournament-brackets-only {
  width: calc(100% - 42px);
  max-width: none;
  padding-block: clamp(46px, 6vw, 88px);
}

.tournament-page-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 38px;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(5, 13, 25, 0.88);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toolbar-tab-groups {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.leaderboard-period-strip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 36px;
  max-width: 100%;
  padding: 3px;
  border: 1px solid rgba(255, 201, 118, 0.38);
  border-left: 3px solid var(--gold);
  border-radius: 0;
  background: linear-gradient(110deg, rgba(255, 201, 118, 0.09), rgba(21, 110, 255, 0.07));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), inset 0 -1px rgba(0, 0, 0, 0.26);
}

.leaderboard-period-tabs {
  gap: 2px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.leaderboard-period-tabs .tab {
  min-height: 30px;
  padding-inline: 13px;
  font-size: 9px;
  border-radius: 0;
}

.tab {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.tab:hover,
.tab.is-active {
  border-color: var(--line-strong);
  color: var(--ice);
  background: rgba(34, 104, 163, 0.16);
}

.leaderboard-period-tabs .tab:hover,
.leaderboard-period-tabs .tab.is-active {
  border-color: rgba(255, 201, 118, 0.58);
  color: #fff3d3;
  background: linear-gradient(180deg, rgba(255, 201, 118, 0.17), rgba(255, 164, 78, 0.07));
  box-shadow: inset 0 -2px var(--gold);
}

.toolbar-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

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

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

.board-card {
  position: relative;
  overflow: hidden;
}

.board-card::before,
.tournament-card::before,
.signup-card::before,
.legal-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--cyan-hot), transparent);
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px 20px;
  border-bottom: 1px solid var(--line);
}

.board-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.board-title img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(79, 200, 255, 0.28));
}

.board-title h3 {
  margin: 0;
  font-size: 23px;
}

.metric {
  color: var(--cyan-hot);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ranking {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 10px 26px;
  border-bottom: 1px solid rgba(157, 215, 255, 0.09);
}

.ranking li:last-child {
  border-bottom: 0;
}

.ranking li:first-child {
  background: linear-gradient(90deg, rgba(79, 200, 255, 0.12), transparent 65%);
}

.rank {
  color: var(--muted);
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.ranking li:first-child .rank {
  color: var(--cyan-hot);
}

.pilot {
  min-width: 0;
  color: #dfeaf4;
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pilot small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.score {
  color: var(--ice);
  font-family: inherit;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.section-spacer {
  height: 46px;
}

.event-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  margin-bottom: 18px;
}

.tournament-card {
  position: relative;
  padding: clamp(28px, 4vw, 50px);
  overflow: hidden;
}

.tournament-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  color: #b9cad9;
  background: rgba(5, 12, 23, 0.7);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prize-card {
  background:
    radial-gradient(circle at 70% 28%, rgba(255, 201, 118, 0.13), transparent 35%),
    linear-gradient(155deg, rgba(12, 24, 42, 0.91), rgba(4, 10, 20, 0.94));
}

.prize-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.tournament-entry-button {
  min-height: 64px;
  padding-inline: 28px;
  font-size: clamp(17px, 1.6vw, 23px);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.bracket-shell {
  padding: clamp(24px, 3vw, 42px);
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(4, 10, 20, 0.9);
}

.bracket {
  display: grid;
  grid-template-columns: repeat(3, minmax(230px, 1fr));
  gap: 42px;
  min-width: 850px;
}

.round {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 18px;
}

.round-label {
  margin-bottom: 8px;
  color: var(--cyan-hot);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.match {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(8, 18, 33, 0.9);
}

.match::after {
  position: absolute;
  top: 50%;
  left: 100%;
  width: 43px;
  height: 1px;
  content: "";
  background: var(--line-strong);
}

.round:last-child .match::after {
  display: none;
}

.entrant {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(157, 215, 255, 0.1);
  color: #d9e6f1;
  font-size: 13px;
  font-weight: 700;
}

.entrant:last-child {
  border-bottom: 0;
}

.entrant.is-winner {
  color: var(--cyan-hot);
  background: rgba(79, 200, 255, 0.08);
}

.entrant span:last-child {
  color: var(--muted);
  font-family: var(--display);
}

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

.schedule-item {
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(6, 14, 27, 0.72);
}

.schedule-item small {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan-hot);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.schedule-item strong {
  color: var(--ice);
  font-size: 14px;
}

.signup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  align-items: start;
  gap: 18px;
}

.signup-card,
.legal-card {
  position: relative;
  padding: clamp(28px, 4vw, 54px);
  overflow: hidden;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.field {
  display: grid;
  gap: 9px;
}

.field-full {
  grid-column: 1 / -1;
}

.access-code-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 10px;
}

.access-code-entry .button {
  min-width: 164px;
}

.field label,
.field-label {
  color: #c5d4e2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ice);
  background: rgba(2, 7, 14, 0.78);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:focus {
  border-color: var(--cyan);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(79, 200, 255, 0.08);
}

.field small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.day-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.day-option {
  position: relative;
}

.day-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.day-option span {
  display: block;
  min-height: 74px;
  padding: 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(2, 7, 14, 0.66);
  cursor: pointer;
}

.day-option strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ice);
}

.day-option input:checked + span {
  border-color: rgba(141, 233, 255, 0.65);
  color: #c5d6e4;
  background: rgba(41, 125, 192, 0.17);
  box-shadow: inset 3px 0 var(--cyan-hot);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
}

.form-status {
  margin: 0;
  color: var(--cyan-hot);
  font-size: 12px;
}

.info-stack {
  display: grid;
  gap: 12px;
}

.info-card {
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(6, 14, 27, 0.82);
}

.info-card small {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan-hot);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.info-card strong {
  color: var(--ice);
  font-size: 15px;
}

.info-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.legal-nav {
  position: sticky;
  top: 112px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(5, 13, 25, 0.88);
}

.legal-nav strong {
  display: block;
  margin-bottom: 14px;
  color: var(--ice);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.legal-nav a {
  display: block;
  padding: 9px 0;
  color: var(--muted);
  font-size: 13px;
  transition: color 160ms ease, transform 160ms ease;
}

.legal-nav a:hover {
  color: var(--cyan-hot);
  transform: translateX(4px);
}

.legal-card h2 {
  margin-top: 46px;
  margin-bottom: 14px;
  font-size: clamp(25px, 2.7vw, 38px);
}

.legal-card h2:first-of-type {
  margin-top: 10px;
}

.legal-card p,
.legal-card li {
  color: #aebdcc;
  font-size: 15px;
  line-height: 1.8;
}

.legal-card a {
  color: var(--cyan-hot);
}

.legal-card ul {
  padding-left: 20px;
}

.legal-effective {
  display: inline-block;
  margin-bottom: 28px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #010308;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
  min-height: 136px;
  color: #91a4b8;
  font-size: 14px;
  line-height: 1.6;
}

.footer-inner strong {
  color: #b7c8d8;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;
}

.footer-links a:hover {
  color: var(--ice);
}

.footer-status {
  color: var(--cyan-hot);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

@media (max-width: 1040px) {
  .nav-links {
    gap: 15px;
  }

  .nav-links a {
    font-size: 10px;
  }

  .page-hero-inner,
  .section-heading,
  .event-overview,
  .signup-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 680px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 34px 0;
    text-align: center;
  }

  .footer-links {
    order: 2;
  }
}

@media (max-width: 780px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    padding-left: 12px;
  }

  .brand span {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-right: 8px;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    padding: 12px 18px 18px;
    border: 1px solid var(--line);
    background: rgba(3, 8, 17, 0.97);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.48);
  }

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

  .nav-links a {
    padding: 13px 0;
    font-size: 11px;
  }

  .page-hero {
    min-height: auto;
    padding: 132px 0 58px;
  }

  .page-hero-inner,
  .page-main,
  .footer-inner {
    width: min(calc(100% - 28px), var(--max));
  }

  .tournament-brackets-only {
    width: calc(100% - 28px);
  }

  h1 {
    font-size: clamp(45px, 14vw, 70px);
    letter-spacing: 0.025em;
  }

  h2 {
    font-size: clamp(32px, 10vw, 50px);
  }

  .board-grid,
  .schedule-grid,
  .field-grid,
  .day-options {
    grid-template-columns: 1fr;
  }

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

  .toolbar-tab-groups {
    width: 100%;
  }

  .leaderboard-period-strip {
    max-width: 100%;
  }

  .board-head,
  .ranking li {
    padding-right: 18px;
    padding-left: 18px;
  }

  .ranking li {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .score {
    font-size: 17px;
  }

  .leaderboard-value {
    font-size: 17px;
  }

  .tournament-entry-button {
    width: 100%;
    min-height: 58px;
    font-size: 17px;
  }

  .tournament-page-actions {
    justify-content: stretch;
  }

  .tournament-page-actions .button {
    width: 100%;
  }

  .access-code-entry {
    grid-template-columns: 1fr;
  }

  .access-code-entry .button {
    width: 100%;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    position: static;
  }

  .concept-flag {
    right: 10px;
    bottom: 10px;
  }
}

@media (max-width: 480px) {
  .button-small {
    min-height: 42px;
    padding-inline: 14px;
    font-size: 9px;
  }

  .page-hero-inner {
    gap: 30px;
  }

  .telemetry-row {
    min-height: 64px;
  }

  .tabs {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .tab {
    width: 100%;
  }

  .leaderboard-period-strip {
    align-items: stretch;
    width: 100%;
    border-radius: 0;
    padding: 4px;
  }

  .leaderboard-period-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .leaderboard-period-tabs .tab {
    width: 100%;
    padding-inline: 5px;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

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

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



/* Live service renderers */
.leaderboard-name {
  min-width: 0;
}

.leaderboard-name strong {
  display: block;
  overflow: hidden;
  color: #dfeaf4;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-name span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.leaderboard-rank {
  color: var(--muted);
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.leaderboard-value {
  color: var(--ice);
  font-family: inherit;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ranking li.is-podium {
  background: linear-gradient(90deg, rgba(79, 200, 255, 0.1), transparent 65%);
}

.ranking li.is-podium .leaderboard-rank {
  color: var(--cyan-hot);
}

.leaderboard-empty {
  display: block !important;
  padding-block: 28px !important;
  color: var(--muted);
  text-align: center;
}

.leaderboard-empty strong,
.leaderboard-empty span {
  display: block;
}

.leaderboard-empty strong {
  margin-bottom: 5px;
  color: var(--ice);
}

.toolbar-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.toolbar-status strong,
.toolbar-status span {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toolbar-status strong {
  color: var(--cyan-hot);
}

.toolbar-status span {
  color: var(--muted);
}

.button:disabled {
  opacity: 0.48;
  cursor: wait;
}

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

.tournament-grid:empty::before {
  display: block;
  padding: 34px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(6, 14, 27, 0.82);
  content: "Loading live tournament data...";
}

.tournament-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.tournament-card-header h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 55px);
}

.tournament-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tournament-chip,
.tournament-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  color: #b9cad9;
  background: rgba(5, 12, 23, 0.7);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tournament-status-pill {
  border-color: rgba(141, 233, 255, 0.5);
  color: var(--cyan-hot);
}

.tournament-card-body {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
  gap: 16px;
  padding-top: 26px;
}

.tournament-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(3, 9, 18, 0.56);
}

.tournament-card-body-bracket {
  display: block;
}

.tournament-card-body-bracket .bracket-table {
  margin-top: 0;
}

.tournament-panel h3 {
  margin-top: 26px;
  font-size: 22px;
}

.tournament-panel h3:first-child {
  margin-top: 0;
}

.standings-list,
.match-list {
  display: grid;
  gap: 7px;
}

.standing-row,
.match-row {
  display: grid;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(157, 215, 255, 0.1);
  color: #d4e0eb;
  background: rgba(7, 16, 29, 0.72);
  font-size: 12px;
}

.standing-row {
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.match-row {
  grid-template-columns: 72px minmax(0, 1fr) auto;
}

.standing-rank,
.match-time,
.match-state {
  color: var(--cyan-hot);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.standing-record {
  color: var(--ice);
  font-family: var(--display);
}

.bracket-table {
  margin-top: 10px;
}

.bracket-viewport {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  background: rgba(2, 7, 14, 0.8);
}

.bracket-stage {
  position: relative;
  min-height: 440px;
}

.bracket-lines {
  position: absolute;
  inset: 0;
}

.bracket-lines path {
  fill: none;
  stroke: rgba(79, 200, 255, 0.38);
  stroke-width: 1.5;
}

.bracket-tree .bracket-node {
  box-sizing: border-box;
  width: 236px;
  height: 64px;
}

.tournament-alert {
  padding: 16px;
  border: 1px solid rgba(255, 201, 118, 0.3);
  color: #e8cfa8;
  background: rgba(75, 51, 20, 0.18);
  font-size: 12px;
  line-height: 1.6;
}

.day-option-text,
.day-option-meta {
  display: block;
}

.day-option-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  color: var(--muted);
  font-size: 10px;
}

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

@media (max-width: 560px) {
  .tournament-card-header {
    flex-direction: column;
  }

  .standing-row,
  .match-row {
    grid-template-columns: 1fr;
  }
}
