@font-face {
  font-family: "Anton";
  src: url("fonts/anton-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07020f;
  --bg-alt: #0d0520;
  --line: #2a1750;
  --text: #ece6ff;
  --dim: #a99cc9;
  --pink: #ff3cd7;
  --cyan: #46f0ff;
  --gold: #ffe26e;
  --display: "Anton", Impact, "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --pulse: 0;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); font-size: 0.9em; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--gold); color: #000; padding: 0.5rem 0.9rem; font-weight: 600;
}
.skip:focus { top: 1rem; }

.wrap { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }

.eyebrow {
  font: 500 0.8rem/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

h2 {
  font: 400 clamp(2.4rem, 6vw, 4.5rem)/1 var(--display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
  text-wrap: balance;
}
h3 {
  font: 400 1.5rem/1.15 var(--display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
  color: var(--cyan);
}
.intro { font-size: 1.2rem; max-width: 46rem; color: var(--text); }
.note { color: var(--dim); font-size: 0.95rem; max-width: 46rem; }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  isolation: isolate;
  background: #000;
}
.hero-poster, #game, .hero-shade {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-poster { object-fit: cover; z-index: -3; }
#game { z-index: -2; opacity: 0; transition: opacity 1.2s ease; }
.hero.is-live #game { opacity: 1; }
.hero-shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 2, 15, 0.72) 0%, rgba(7, 2, 15, 0) 22%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 2, 15, 0.78) 26%, rgba(7, 2, 15, 0.1) 62%, rgba(7, 2, 15, 0) 100%);
  transition: opacity 0.6s ease;
}

.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  transition: opacity 0.4s ease;
}
.nav-mark {
  font: 400 1.5rem/1 var(--display); letter-spacing: 0.06em;
  color: var(--text); text-decoration: none; transform: skewX(-9deg);
}
.nav ul { display: flex; align-items: center; gap: clamp(0.9rem, 2.4vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav a:not(.nav-mark) {
  font: 500 0.78rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
}
.nav a:not(.nav-mark):hover { color: var(--cyan); }
.nav .nav-cta { border: 1px solid var(--pink); padding: 0.6rem 0.9rem; }
.nav .nav-cta:hover { background: var(--pink); color: #000; }

.hero-copy {
  align-self: end;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 1.5rem;
  max-width: 78rem;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.wordmark {
  --o: clamp(3px, 0.55vw, 9px);
  font: 400 clamp(3.8rem, 14.5vw, 13.5rem)/0.86 var(--display);
  letter-spacing: 0.01em;
  margin: 0 0 1.4rem;
  color: #fff;
  transform-origin: left bottom;
  transform: skewX(-9deg) scale(calc(1 + 0.022 * var(--pulse)));
  text-shadow:
    var(--o) var(--o) 0 var(--pink),
    calc(-1 * var(--o)) calc(-1 * var(--o)) 0 var(--cyan),
    0 0 calc(30px + 50px * var(--pulse)) rgba(255, 60, 215, 0.65);
  /* the skew pushes the last letters right; keep them inside the viewport */
  max-width: calc(100% - 0.12em);
}
.lede {
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  line-height: 1.45;
  max-width: 38rem;
  margin-bottom: 1.6rem;
  text-shadow: 0 1px 12px #000;
}
.cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.btn {
  font: 500 0.85rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  padding: 1rem 1.3rem;
  color: var(--text); background: rgba(7, 2, 15, 0.55);
  border: 1px solid var(--cyan);
  text-decoration: none; cursor: pointer;
  backdrop-filter: blur(6px);
}
.btn:hover { background: var(--cyan); color: #000; }
.btn-primary { background: var(--pink); border-color: var(--pink); color: #12001a; font-weight: 700; }
.btn-primary:hover { background: #fff; border-color: #fff; color: #000; }

.hero-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.5rem;
  padding: 0.9rem clamp(1.25rem, 4vw, 3rem) 1.3rem;
}
.live {
  margin: 0;
  font: 500 0.75rem/1.5 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dim);
}
.hero.is-live .live::before {
  content: ""; display: inline-block; width: 0.55em; height: 0.55em; margin-right: 0.7em;
  border-radius: 50%; background: var(--pink);
  box-shadow: 0 0 calc(4px + 10px * var(--pulse)) var(--pink);
}
.controls { display: flex; gap: 0.5rem; margin-left: auto; }
.controls button {
  font: 500 0.75rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.7rem 0.9rem;
  color: var(--text); background: rgba(7, 2, 15, 0.6);
  border: 1px solid var(--line); cursor: pointer;
}
.controls button:hover { border-color: var(--cyan); color: var(--cyan); }
.controls button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
[hidden] { display: none !important; }

/* "Watch it play": the page gets out of the way and the game shows its own HUD */
.hero.is-watching .hero-copy,
.hero.is-watching .nav { opacity: 0; pointer-events: none; visibility: hidden; }
.hero.is-watching .hero-shade { opacity: 0; }
.hero.is-watching .live { visibility: hidden; }

/* ---------------------------------------------------------------- sections */

.band { padding: clamp(4rem, 9vw, 7.5rem) 0; border-top: 1px solid var(--line); }
.band-alt { background: var(--bg-alt); }

.steps {
  list-style: none; margin: 3rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem;
}
.steps li { border: 1px solid var(--line); padding: 1.6rem 1.5rem 1rem; background: rgba(255, 255, 255, 0.015); }
.step-n { display: block; font: 400 3.2rem/1 var(--display); color: var(--pink); margin-bottom: 1rem; }
.steps p { color: var(--dim); }

.shot { margin: 0; border: 1px solid var(--line); background: #000; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; margin-top: 2.5rem; }
.split .shot { position: sticky; top: 1.5rem; }
.cards { display: grid; gap: 1.6rem; }
.cards p { color: var(--dim); margin: 0; }

.feature {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
.feature-flip .shot { order: 2; }
.feature p { color: var(--dim); }
.tag {
  display: inline-block; vertical-align: middle; margin-left: 0.5rem;
  font: 500 0.65rem/1 var(--mono); letter-spacing: 0.14em;
  color: var(--gold); border: 1px solid var(--gold); padding: 0.3rem 0.45rem;
}

.enemies {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
/* ten entries: 5, 2 or 1 columns always fill the grid exactly */
@media (max-width: 68rem) { .enemies { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .enemies { grid-template-columns: 1fr; } }
.enemies li { display: flex; flex-direction: column; gap: 0.9rem; padding: 1.3rem 1.25rem; background: var(--bg-alt); }
@media (max-width: 68rem) { .enemies li { flex-direction: row; align-items: center; } }
.enemies svg { flex: none; width: 2.9rem; height: 2.9rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 5px currentColor); }
.enemies h3 { font-size: 1.2rem; margin: 0 0 0.15rem; color: var(--text); }
.enemies p { margin: 0; color: var(--dim); font-size: 0.95rem; line-height: 1.45; }
.e-pink { color: #ff5fd0; } .e-cyan { color: var(--cyan); } .e-orange { color: #ff9d3c; }
.e-violet { color: #b07bff; } .e-green { color: #5dff8f; } .e-blue { color: #5b9bff; }
.e-red { color: #ff4a55; } .e-gold { color: var(--gold); }

.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.columns p { color: var(--dim); }
.columns .intro { color: var(--text); }

.formats { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0; padding: 0; }
.formats li { font: 500 0.85rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 0.55rem 0.75rem; border: 1px solid var(--cyan); color: var(--cyan); }

.mods { margin: 1.2rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.mods div { background: var(--bg); padding: 0.9rem 1rem; }
.mods dt { font: 400 1.1rem/1.2 var(--display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold); }
.mods dd { margin: 0.2rem 0 0; color: var(--dim); font-size: 0.95rem; }

table { width: 100%; border-collapse: collapse; }
caption { text-align: left; font: 400 1.5rem/1.15 var(--display); letter-spacing: 0.03em; text-transform: uppercase; color: var(--cyan); padding-bottom: 0.8rem; }
th, td { text-align: left; vertical-align: top; padding: 0.8rem 0; border-top: 1px solid var(--line); }
th { font-weight: 500; white-space: nowrap; padding-right: 1.25rem; color: var(--text); }
td { color: var(--dim); }
kbd { display: inline-block; padding: 0.15rem 0.45rem; border: 1px solid var(--dim); border-radius: 3px; color: var(--text); }
#controls .note { margin-top: 2rem; }

.band-get { text-align: center; background: radial-gradient(60rem 30rem at 50% 0%, rgba(255, 60, 215, 0.16), transparent 70%), var(--bg); }
.band-get .intro, .band-get .note { margin-inline: auto; }

.foot { border-top: 1px solid var(--line); padding: 3rem 0 4rem; color: var(--dim); font-size: 0.92rem; }
.foot p { max-width: 46rem; }
.warn { color: var(--text); }

@media (max-width: 52rem) {
  .nav ul li:not(:last-child) { display: none; }
  .split, .feature { grid-template-columns: 1fr; }
  .split .shot { position: static; }
  .feature-flip .shot { order: 0; }
  .controls { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #game, .hero-shade, .hero-copy, .nav { transition: none; }
}

/* ---------------------------------------------------------------- playtest sign-up */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.band-news {
  background: radial-gradient(50rem 24rem at 15% 0%, rgba(70, 240, 255, 0.10), transparent 70%), var(--bg-alt);
}
.news { display: flex; flex-wrap: wrap; gap: 0.8rem; max-width: 44rem; margin-top: 2rem; }
.news input[type="email"] {
  flex: 1 1 16rem;
  min-width: 0;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--cyan);
  border-radius: 0;
  background: rgba(7, 2, 15, 0.7);
  color: var(--text);
  font: inherit;
}
.news input[type="email"]::placeholder { color: var(--dim); }
.news input[type="email"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.news .btn { cursor: pointer; }
.band-news .note { max-width: 44rem; margin: 1.1rem 0 0; color: var(--dim); font-size: 0.92rem; }
@media (max-width: 30rem) {
  .news .btn { flex: 1 1 100%; }
}
