:root {
  color-scheme: dark;
  --ink: #06130f;
  --pine: #0b241e;
  --pine-raised: #11342c;
  --pine-bright: #1e5a49;
  --parchment: #fff1ce;
  --parchment-muted: #cfc8ad;
  --gold: #f3d38c;
  --gold-bright: #ffe3a3;
  --mint: #9cd6ae;
  --ember: #f1a669;
  --line: rgba(243, 211, 140, 0.22);
  --line-strong: rgba(243, 211, 140, 0.48);
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 79% 16%, rgba(30, 90, 73, 0.3), transparent 24rem),
    linear-gradient(rgba(243, 211, 140, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 211, 140, 0.025) 1px, transparent 1px),
    var(--ink);
  background-size: auto, 4rem 4rem, 4rem 4rem, auto;
  color: var(--parchment);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  border-radius: 0.35rem;
  background: var(--parchment);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.hero,
.fact-strip,
.match-flow,
.room-types,
.closing,
footer {
  width: min(100% - 3rem, 76rem);
  margin-inline: auto;
}

.site-header {
  min-height: 7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  width: clamp(12.5rem, 22vw, 18rem);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

nav > a:not(.button) {
  color: var(--parchment-muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

nav > a:not(.button):hover {
  color: var(--parchment);
}

.button {
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 1px solid var(--gold);
  border-radius: 0.3rem;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-small {
  min-height: 2.9rem;
  padding: 0 1.2rem;
  color: var(--gold);
}

.button-small:hover {
  background: rgba(243, 211, 140, 0.09);
}

.button-primary {
  min-height: 4rem;
  padding: 0 1.5rem;
  background: var(--gold);
  box-shadow: 0 12px 32px rgba(243, 211, 140, 0.13);
  color: var(--ink);
}

.button-primary:hover {
  background: var(--gold-bright);
}

.button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero {
  display: grid;
  min-height: calc(100vh - 7rem);
  min-height: calc(100svh - 7rem);
  grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  padding-block: clamp(4.5rem, 10vh, 8rem);
}

.eyebrow,
.micro-label {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow span {
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

h1 {
  max-width: 12ch;
  margin: 1.4rem 0 1.5rem;
  font-size: clamp(3.55rem, 7.4vw, 7rem);
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4.9rem);
}

.hero-lede {
  max-width: 39rem;
  margin: 0;
  color: var(--parchment-muted);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.25rem;
}

.text-link {
  color: var(--parchment-muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-underline-offset: 0.35rem;
}

.text-link:hover {
  color: var(--parchment);
}

.platform-note {
  margin: 1.15rem 0 0;
  color: rgba(207, 200, 173, 0.72);
  font-size: 0.85rem;
}

.war-table {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 0.65rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 45%),
    var(--pine);
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.war-table::before,
.war-table::after {
  position: absolute;
  width: 7rem;
  height: 7rem;
  border: 1px solid rgba(243, 211, 140, 0.16);
  border-radius: 50%;
  content: "";
}

.war-table::before {
  top: -4rem;
  right: -3rem;
}

.war-table::after {
  bottom: -4.5rem;
  left: -4rem;
}

.table-heading {
  display: flex;
  min-height: 4.25rem;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--parchment-muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.live-marker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--mint);
}

.live-marker i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0.3rem rgba(156, 214, 174, 0.11);
}

.room-layout {
  padding: 2rem 2rem 1.75rem;
}

.participant-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.65rem, 2vw, 1rem);
  margin-top: 1.2rem;
}

.participant {
  aspect-ratio: 1;
  border: 1px solid rgba(243, 211, 140, 0.2);
  border-radius: 50% 50% 42% 42%;
  background: rgba(255, 241, 206, 0.07);
  box-shadow: inset 0 -0.5rem 0 rgba(255, 255, 255, 0.025);
}

.participant.player {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 0 0.25rem rgba(243, 211, 140, 0.1);
}

.participant.bot {
  border-color: rgba(156, 214, 174, 0.55);
  background:
    linear-gradient(45deg, transparent 42%, rgba(156, 214, 174, 0.45) 43% 57%, transparent 58%),
    rgba(156, 214, 174, 0.08);
}

.room-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin-top: 1.2rem;
  color: rgba(207, 200, 173, 0.67);
  font-size: 0.72rem;
}

.room-key span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.room-key i {
  width: 0.48rem;
  height: 0.48rem;
  border: 1px solid rgba(243, 211, 140, 0.45);
  border-radius: 50%;
}

.room-key .key-player {
  border-color: var(--gold);
  background: var(--gold);
}

.room-key .key-bot {
  border-color: var(--mint);
}

.roster-panel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem 2rem 1.75rem;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.12);
}

.roster-title {
  margin: 0.25rem 0 0;
  font-family: var(--serif);
  font-size: 1.1rem;
}

.roster-slots {
  display: flex;
  gap: 0.35rem;
}

.roster-slots span {
  display: grid;
  width: 2.35rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 800;
}

.roster-slots .starter {
  border: 1px solid var(--gold);
  background: rgba(243, 211, 140, 0.1);
  color: var(--gold);
}

.roster-slots .captured {
  border: 1px dashed rgba(156, 214, 174, 0.65);
  color: var(--mint);
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}

.fact-strip > div {
  display: flex;
  min-height: 9.5rem;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem clamp(1.25rem, 3vw, 2.25rem);
}

.fact-strip > div + div {
  border-left: 1px solid var(--line);
}

.fact-strip strong {
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4vw, 3.6rem);
  line-height: 1;
}

.fact-strip span {
  max-width: 9rem;
  color: var(--parchment-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.match-flow {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(25rem, 1.15fr);
  gap: clamp(4rem, 9vw, 9rem);
  padding-block: clamp(7rem, 14vw, 12rem);
}

.section-intro h2 {
  max-width: 11ch;
  margin: 1.4rem 0 1.5rem;
}

.section-intro > p:last-child {
  max-width: 34rem;
  color: var(--parchment-muted);
  font-family: var(--serif);
  font-size: 1.12rem;
}

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

.flow-list li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.5rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
}

.flow-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.step-number {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.45rem;
}

.flow-list h3 {
  margin: 0 0 0.55rem;
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1.15;
}

.flow-list p {
  margin: 0;
  color: var(--parchment-muted);
}

.room-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.room-card {
  min-height: 26rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 5vw, 4rem);
  background:
    linear-gradient(to top, rgba(6, 19, 15, 0.2), transparent),
    var(--pine);
}

.room-card + .room-card {
  border-left: 1px solid var(--line-strong);
}

.room-public {
  background:
    linear-gradient(135deg, rgba(241, 166, 105, 0.13), transparent 60%),
    var(--pine);
}

.room-private {
  background:
    linear-gradient(225deg, rgba(156, 214, 174, 0.13), transparent 60%),
    var(--pine);
}

.room-card h2 {
  max-width: 9ch;
  margin: 1rem 0 1.3rem;
  font-size: clamp(2.5rem, 4vw, 4.2rem);
}

.room-card > p:last-child {
  max-width: 28rem;
  margin: 0;
  color: var(--parchment-muted);
  font-size: 1rem;
}

.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: clamp(8rem, 16vw, 13rem);
  text-align: center;
}

.closing > img {
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: 1.5rem;
}

.closing .eyebrow {
  display: block;
}

.closing h2 {
  max-width: 12ch;
  margin: 1.1rem auto 1.3rem;
}

.closing > p:not(.eyebrow) {
  margin: 0 0 2rem;
  color: var(--parchment-muted);
}

footer {
  display: grid;
  min-height: 8rem;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  color: rgba(207, 200, 173, 0.65);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-brand {
  display: inline-flex;
  width: 2.7rem;
}

.footer-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.copyright {
  justify-self: end;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 48rem;
  }

  .war-table {
    width: min(100%, 38rem);
    justify-self: center;
    transform: none;
  }

  .match-flow {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 680px) {
  .site-header,
  .hero,
  .fact-strip,
  .match-flow,
  .room-types,
  .closing,
  footer {
    width: min(100% - 2rem, 76rem);
  }

  .site-header {
    min-height: 5.5rem;
  }

  .brand {
    width: 10.5rem;
  }

  nav > a:not(.button) {
    display: none;
  }

  .button-small {
    min-height: 2.7rem;
    padding: 0 0.9rem;
    font-size: 0.76rem;
  }

  .hero {
    padding-block: 4rem 5rem;
  }

  h1 {
    margin-top: 1.1rem;
    font-size: clamp(3.2rem, 15vw, 4.6rem);
  }

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

  .button-primary {
    width: 100%;
  }

  .room-layout,
  .roster-panel {
    padding-inline: 1.25rem;
  }

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

  .fact-strip {
    grid-template-columns: 1fr;
  }

  .fact-strip > div {
    min-height: 7rem;
  }

  .fact-strip > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .match-flow {
    padding-block: 7rem;
  }

  .flow-list li {
    grid-template-columns: 3rem 1fr;
    gap: 1rem;
  }

  .room-types {
    grid-template-columns: 1fr;
  }

  .room-card {
    min-height: 22rem;
  }

  .room-card + .room-card {
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  footer {
    min-height: 11rem;
    grid-template-columns: 1fr;
    place-items: center;
    gap: 0.25rem;
    padding-block: 2rem;
    text-align: center;
  }

  footer p {
    margin: 0.25rem 0;
  }

  .copyright {
    justify-self: center;
  }
}

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

  .button {
    transition: none;
  }
}
