:root {
  color-scheme: dark;
  --ink: #f4f6f6;
  --muted: #a9b1b5;
  --blue: #009ad3;
  --blue-bright: #32b7e7;
  --blue-deep: #1a2831;
  --gold: #ffd659;
  --green: #39d98a;
  --red: #ff5b6e;
  --bg: #111111;
  --panel: #141a1e;
  --panel-2: #1a2329;
  --line: rgba(244, 246, 246, 0.14);
  --blue-line: rgba(0, 154, 211, 0.34);
  --gold-line: rgba(255, 214, 89, 0.34);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(
      circle at 12% 28%,
      rgba(0, 154, 211, 0.1),
      transparent 30rem
    ),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
}
a {
  color: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
.button {
  font: inherit;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.is-hidden {
  display: none !important;
}
.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: var(--bg);
  font-weight: 900;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 4vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(17, 17, 17, 0.88);
  backdrop-filter: blur(18px);
}
.site-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0 50%, var(--blue) 50% 100%);
  content: "";
  opacity: 0.22;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  transform: skew(-5deg);
  border: 1px solid var(--blue);
  background: var(--blue-deep);
  box-shadow:
    -0.25rem 0 0.8rem rgba(255, 214, 89, 0.16),
    0.25rem 0 0.8rem rgba(0, 154, 211, 0.2);
  color: white;
  font-weight: 1000;
  letter-spacing: -0.08em;
}
.brand-copy {
  display: grid;
  line-height: 1;
}
.brand-copy strong {
  font-size: 0.95rem;
  letter-spacing: 0.16em;
}
.brand-copy small {
  margin-top: 0.35rem;
  color: var(--blue-bright);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.header-site-link {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.header-site-link:hover {
  color: var(--gold);
}
.connection {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.connection-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0.3rem rgba(255, 201, 40, 0.09);
}
.connection[data-state="live"] .connection-dot {
  background: var(--green);
  box-shadow:
    0 0 0 0.3rem rgba(57, 217, 138, 0.09),
    0 0 16px rgba(57, 217, 138, 0.65);
}
.connection[data-state="offline"] .connection-dot {
  background: var(--red);
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  border-left: 3px solid var(--gold);
  cursor: pointer;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}
.button:hover {
  transform: translateY(-1px);
}
.button-primary {
  background: var(--blue);
  color: #071116;
  box-shadow: 0 12px 32px rgba(0, 154, 211, 0.2);
}
.button-discord {
  border-left-color: var(--gold);
  background: #5865f2;
  color: white;
}
.button-quiet {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
}
.button-glass {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(3, 12, 22, 0.48);
  color: white;
  backdrop-filter: blur(8px);
}

.hero {
  position: relative;
  min-height: min(680px, calc(100svh - 78px));
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-image,
.hero-overlay,
.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-image {
  object-fit: cover;
  object-position: center;
  opacity: 0.38;
  filter: saturate(0.75);
}
.hero-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(17, 17, 17, 0.99) 0%,
      rgba(17, 17, 17, 0.88) 42%,
      rgba(17, 17, 17, 0.3) 75%
    ),
    linear-gradient(0deg, var(--bg) 0%, transparent 48%);
}
.hero-grid {
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(0, 154, 211, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 154, 211, 0.13) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to right, black, transparent 80%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 7vw, 8rem) 7rem;
}
.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--blue-bright);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 12vw, 9.5rem);
  font-stretch: condensed;
  font-weight: 1000;
  letter-spacing: -0.075em;
  line-height: 0.75;
  text-shadow: 0 8px 50px rgba(0, 0, 0, 0.45);
}
.hero h1 span {
  display: inline-block;
  margin-top: 1rem;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.58);
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  letter-spacing: 0.06em;
  line-height: 1;
}
.hero-summary {
  max-width: 620px;
  margin: 2rem 0;
  color: #c5d3df;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.event-pulse {
  position: absolute;
  z-index: 3;
  right: clamp(1rem, 4vw, 4rem);
  bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  overflow: hidden;
  border: 1px solid var(--blue-line);
  background: rgba(20, 26, 30, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.event-pulse div {
  display: grid;
  gap: 0.15rem;
  min-width: 112px;
  padding: 1rem 1.2rem;
  border-right: 1px solid var(--line);
}
.event-pulse div:last-child {
  border: 0;
}
.event-pulse strong {
  color: var(--blue-bright);
  font-size: 1.4rem;
}
.event-pulse span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shell {
  width: min(1440px, calc(100% - 2rem));
  margin: 0 auto;
}
.notice {
  margin: 1.25rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--gold-line);
  background: rgba(255, 214, 89, 0.08);
  color: #ffe78d;
}
section:not(.hero) {
  padding: clamp(3.5rem, 7vw, 7rem) 0;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
}
.section-note {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: right;
}

.player-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 1.2rem;
}
.spotlight-card,
.timeline-card,
.detail-card,
.metric-grid article {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.spotlight-card {
  min-height: 390px;
  padding: clamp(1.6rem, 4vw, 3.2rem);
}
.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--blue), transparent 70%);
}
.spotlight-signin h3,
.player-status-card h3 {
  position: relative;
  max-width: 720px;
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 4.5rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}
.spotlight-signin > p:not(.eyebrow) {
  position: relative;
  max-width: 620px;
  color: #aebfd0;
}
.spotlight-signin .button {
  position: relative;
  margin-top: 1.25rem;
}
.spotlight-signin small {
  position: relative;
  display: block;
  margin-top: 1rem;
  color: var(--muted);
}
.spotlight-number {
  position: absolute;
  right: -1rem;
  bottom: -4rem;
  color: rgba(31, 182, 255, 0.055);
  font-size: 18rem;
  font-weight: 1000;
  letter-spacing: -0.13em;
  line-height: 1;
}
.timeline-card {
  padding: 2rem;
}
.route-list {
  display: grid;
  gap: 0;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.route-list li {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  padding: 0.7rem 0 1.5rem;
}
.route-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 48px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.route-list li > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--blue-line);
  background: rgba(0, 154, 211, 0.07);
  color: var(--blue-bright);
  font-size: 0.72rem;
  font-weight: 900;
}
.route-list div {
  display: grid;
  gap: 0.2rem;
  padding-top: 0.25rem;
}
.route-list small {
  color: var(--muted);
}
.detail-stack {
  display: grid;
  gap: 1.2rem;
}
.detail-card {
  padding: 1.7rem;
}
.detail-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
}
.detail-card p:not(.eyebrow) {
  color: var(--muted);
}
.status-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.status-pill {
  align-self: start;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--blue-line);
  background: rgba(0, 154, 211, 0.08);
  color: var(--blue-bright);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}
.next-action {
  display: grid;
  gap: 0.35rem;
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--gold);
  background: rgba(255, 201, 40, 0.06);
}
.next-action span {
  color: var(--gold);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.next-action strong {
  font-size: 1.05rem;
}
.player-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.player-facts span {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  color: #c9d6e3;
  font-size: 0.78rem;
}
.discord-reminder {
  position: absolute;
  right: 2rem;
  bottom: 1.4rem;
  left: 2rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.roster {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.roster li {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: #cbd8e5;
}

.field-section {
  border-top: 1px solid var(--line);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.metric-grid article {
  min-height: 180px;
  padding: 1.5rem;
}
.metric-grid article::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -55px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(31, 182, 255, 0.1);
  transform: rotate(45deg);
}
.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}
.metric-grid strong {
  display: block;
  margin: 0.7rem 0;
  color: white;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.06em;
  line-height: 1;
}
.metric-grid small {
  color: var(--muted);
}

.bracket-section {
  border-top: 1px solid var(--line);
}
.bracket-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.bracket-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.bracket-legend i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--muted);
}
.bracket-legend i[data-colour="ready"] {
  background: var(--blue);
}
.bracket-legend i[data-colour="selection"] {
  background: var(--gold);
}
.bracket-legend i[data-colour="complete"] {
  background: var(--green);
}
.bracket-progress {
  display: grid;
  grid-template-columns: auto minmax(180px, 420px);
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.progress-track {
  height: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}
.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width 0.4s ease;
}
.bracket-empty {
  padding: 3rem 1rem;
  border: 1px dashed rgba(142, 161, 184, 0.25);
  color: var(--muted);
  text-align: center;
}
.bracket-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 340px);
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 1.4rem;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--blue-deep) transparent;
}
.stage-column {
  scroll-snap-align: start;
}
.stage-heading {
  position: sticky;
  top: 78px;
  z-index: 2;
  margin: 0 0 0.7rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  background: rgba(20, 26, 30, 0.96);
  color: var(--blue-bright);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.series-list {
  display: grid;
  gap: 0.75rem;
}
.series-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.series-card[data-status="ready"] {
  border-color: var(--blue);
}
.series-card[data-status="selection"] {
  border-color: var(--gold);
}
.series-card[data-status="complete"] {
  border-color: rgba(57, 217, 138, 0.28);
}
.series-meta {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.series-meta span:last-child {
  color: var(--blue-bright);
}
.side {
  display: grid;
  gap: 0.28rem;
  padding: 0.75rem;
}
.side + .side {
  border-top: 1px solid var(--line);
}
.side strong {
  font-size: 0.84rem;
}
.side small {
  color: var(--muted);
  font-size: 0.69rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side[data-winner="true"] {
  background: linear-gradient(90deg, rgba(57, 217, 138, 0.12), transparent);
}
.series-outcome {
  padding: 0.55rem 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}
.champion-card {
  margin-top: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--gold-line);
  background:
    radial-gradient(circle at 80% 0, rgba(255, 214, 89, 0.15), transparent 36%),
    var(--panel);
  text-align: center;
}
.champion-card span {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}
.champion-card strong {
  display: block;
  margin: 0.6rem 0;
  font-size: clamp(2rem, 6vw, 4.5rem);
  letter-spacing: -0.06em;
}
.champion-card p {
  margin: 0;
  color: var(--muted);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem clamp(1rem, 4vw, 4.5rem);
  border-top: 1px solid var(--blue);
  background: #0b0d0e;
  color: var(--muted);
  font-size: 0.8rem;
}
footer p {
  max-width: 520px;
  margin: 0;
  text-align: center;
}
.footer-links {
  display: flex;
  gap: 1rem;
}
.footer-links a {
  color: var(--blue-bright);
  font-weight: 800;
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--gold);
}

@media (max-width: 980px) {
  .event-pulse {
    position: relative;
    right: auto;
    bottom: auto;
    margin: -4.5rem 1rem 1rem;
  }
  .hero {
    display: block;
    min-height: auto;
    padding-bottom: 0;
  }
  .hero-content {
    min-height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 6rem 1rem 7rem;
  }
  .player-grid {
    grid-template-columns: 1fr;
  }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 64px;
    padding: 0.6rem 0.75rem;
  }
  .brand-copy {
    display: none;
  }
  .brand-mark {
    width: 40px;
    height: 40px;
  }
  .connection {
    display: none;
  }
  .header-site-link {
    display: none;
  }
  .header-actions {
    margin-left: auto;
  }
  .header-actions .button {
    min-height: 40px;
    padding: 0.58rem 0.7rem;
    font-size: 0.72rem;
  }
  .hero-content {
    min-height: 530px;
    padding-top: 5rem;
  }
  .hero h1 {
    font-size: clamp(3.6rem, 20vw, 6rem);
  }
  .event-pulse {
    grid-template-columns: repeat(3, 1fr);
  }
  .event-pulse div {
    min-width: 0;
    padding: 0.85rem 0.6rem;
    text-align: center;
  }
  .event-pulse strong {
    font-size: 1.1rem;
  }
  .event-pulse span {
    font-size: 0.55rem;
  }
  .shell {
    width: min(100% - 1.25rem, 1440px);
  }
  .section-heading {
    display: block;
  }
  .section-note {
    margin-top: 0.8rem;
    text-align: left;
  }
  .spotlight-card {
    min-height: 430px;
    padding: 1.4rem;
  }
  .spotlight-signin h3,
  .player-status-card h3 {
    font-size: 2.4rem;
  }
  .status-topline {
    display: block;
  }
  .status-pill {
    display: inline-block;
    margin-top: 0.75rem;
  }
  .discord-reminder {
    right: 1.4rem;
    left: 1.4rem;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }
  .metric-grid article {
    min-height: 155px;
    padding: 1rem;
  }
  .metric-grid strong {
    font-size: 2.5rem;
  }
  .metric-grid small {
    font-size: 0.7rem;
  }
  .bracket-heading {
    display: block;
  }
  .bracket-legend {
    margin-top: 1rem;
  }
  .bracket-progress {
    grid-template-columns: 1fr;
  }
  .bracket-board {
    grid-auto-columns: minmax(280px, calc(100vw - 2.25rem));
  }
  footer {
    display: grid;
    justify-items: center;
    text-align: center;
  }
  .footer-brand .brand-copy {
    display: grid;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
