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

:root {
  --ink: #000814;
  --navy-deep: #011730;
  --navy: #02284f;
  --blue: #03418c;
  --blue-bright: #1f7bff;
  --cyan: #22c8ff;
  --red: #ff2b2b;
  --lime: #7fe000;
  --yellow: #ffd21a;
  --orange: #ff7a00;
  --purple: #8f52ff;
  --text: #ffffff;
  --muted: #a9c1e6;
  --display: "PressStart", ui-monospace, monospace;
  --body: "Pixeloid", ui-monospace, monospace;
  --px: 4px;
  --stroke: 3px 3px 0 #000, -3px 3px 0 #000, 3px -3px 0 #000, -3px -3px 0 #000, 0 6px 0 #000;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ink);
  background-image: radial-gradient(ellipse at 50% -10%, #0a4aa0 0%, var(--navy) 35%, var(--ink) 75%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: none;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 2px, transparent 2px 5px);
  mix-blend-mode: multiply;
  z-index: 50;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); }
em { font-style: normal; color: var(--cyan); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--yellow); color: #000; padding: 8px 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
  padding: 16px 20px;
  color: #000;
  background: var(--lime);
  border: 0;
  cursor: pointer;
  box-shadow: 0 0 0 4px #000, 6px 8px 0 4px #000;
  transition: transform 0.08s steps(2), box-shadow 0.08s steps(2);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 0 0 0 4px #000, 8px 10px 0 4px #000, 0 0 30px rgba(127, 224, 0, 0.5); }
.btn:active { transform: translate(3px, 4px); box-shadow: 0 0 0 4px #000, 2px 3px 0 4px #000; }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 6px; }
.btn-ghost { background: var(--navy-deep); color: #fff; box-shadow: 0 0 0 4px var(--cyan), 6px 8px 0 4px #000; }
.btn-ghost:hover { box-shadow: 0 0 0 4px var(--cyan), 8px 10px 0 4px #000, 0 0 30px rgba(34, 200, 255, 0.4); }
.btn-small { font-size: 10px; padding: 12px 14px; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(1, 23, 48, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 4px solid var(--blue);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-size: 16px; color: #fff; }
.brand img { border-radius: 8px; image-rendering: auto; }
.brand b { font-weight: 400; color: #fff; }
.brand i { font-style: normal; color: var(--cyan); }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { font-family: var(--display); font-size: 10px; color: var(--muted); text-decoration: none; text-transform: uppercase; }
.nav nav a:hover { color: #fff; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(48px, 8vw, 110px) clamp(16px, 5vw, 72px) clamp(64px, 9vw, 130px);
  max-width: 1360px;
  margin: 0 auto;
}
.grid-floor {
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: -40px;
  height: 340px;
  background-image: linear-gradient(rgba(34, 200, 255, 0.5) 2px, transparent 2px), linear-gradient(90deg, rgba(34, 200, 255, 0.5) 2px, transparent 2px);
  background-size: 80px 80px;
  transform: perspective(420px) rotateX(70deg);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, black 10%, transparent 90%);
  animation: floor 2.5s linear infinite;
  z-index: -1;
  opacity: 0.5;
}
@keyframes floor { to { background-position: 0 80px; } }
.dust { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.dust i { position: absolute; width: 6px; height: 6px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); opacity: 0.6; animation: rise linear infinite; }
@keyframes rise { from { transform: translateY(0); } to { transform: translateY(-420px); opacity: 0; } }

.eyebrow { font-family: var(--display); font-size: 12px; color: var(--yellow); margin: 0 0 22px; letter-spacing: 1px; }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero h1 {
  font-size: clamp(30px, 4.6vw, 64px);
  line-height: 1.25;
  text-shadow: var(--stroke), 0 0 40px rgba(34, 200, 255, 0.35);
}
.hero h1 em { color: var(--cyan); }
.lede { font-size: clamp(18px, 1.6vw, 22px); color: #d8e6ff; max-width: 34ch; margin: 28px 0 36px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 22px 26px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 26px; }

.scene-frame {
  position: relative;
  border: 6px solid var(--blue-bright);
  box-shadow: 0 0 0 6px #000, 14px 16px 0 6px #000, 0 0 80px rgba(31, 123, 255, 0.45);
  background: #000;
  transform: rotate(1.5deg);
}
.scene-frame img { width: 100%; height: auto; image-rendering: auto; }
.hud { position: absolute; left: 6%; right: 6%; bottom: -44px; box-shadow: 6px 6px 0 #000; background: rgba(1, 23, 48, 0.88); border: 4px solid var(--blue-bright); padding: 12px 16px 14px; }
.hud-row { display: flex; justify-content: space-between; font-family: var(--display); font-size: clamp(9px, 1vw, 13px); margin-bottom: 10px; }
.hud-row span { display: flex; align-items: center; gap: 8px; }
.hud-row img { width: 18px; }
.xp { color: var(--lime); }
.xpbar, .bar { height: 16px; background: #071425; border: 3px solid #000; border-radius: 10px; overflow: hidden; }
.xpbar span, .bar span { display: block; height: 100%; width: var(--p); background: linear-gradient(#9cf03a, #4fb800); border-radius: 6px; animation: fill 1.6s cubic-bezier(.16,1,.3,1) both; }
@keyframes fill { from { width: 4%; } }

/* ---------- trailer ---------- */
.trailer { padding: 0 clamp(16px, 5vw, 72px); max-width: 1200px; margin: 0 auto; }
.crt {
  position: relative;
  border: 10px solid #111827;
  border-radius: 18px;
  box-shadow: 0 0 0 4px #000, 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 120px rgba(255, 43, 43, 0.25);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}
.crt video { width: 100%; height: 100%; display: block; object-fit: cover; }
.sound { position: absolute; right: 16px; bottom: 16px; font-family: var(--display); font-size: 10px; color: #fff; background: rgba(0, 0, 0, 0.7); border: 3px solid #fff; padding: 10px 12px; cursor: pointer; }
.sound[aria-pressed="true"] { border-color: var(--lime); color: var(--lime); }

/* ---------- sections ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: clamp(80px, 11vw, 150px) clamp(16px, 5vw, 72px) 0; }
.section.narrow { max-width: 860px; }
.section-title { font-size: clamp(22px, 3.4vw, 42px); line-height: 1.45; text-align: center; text-shadow: var(--stroke); }
.section-title.left { text-align: left; }
.section-lede { text-align: center; color: #d8e6ff; max-width: 52ch; margin: 22px auto 0; }

.card {
  position: relative;
  background: linear-gradient(180deg, #06305f, #031c3b);
  border: 5px solid var(--blue-bright);
  box-shadow: 0 0 0 4px #000, 10px 12px 0 4px #000;
  padding: 30px 26px;
}
.steps { list-style: none; padding: 0; margin: 60px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step-num { position: absolute; top: -22px; left: 20px; font-family: var(--display); font-size: 14px; background: var(--yellow); color: #000; padding: 8px 10px; box-shadow: 4px 4px 0 #000; }
.steps h3 { font-size: 15px; margin: 8px 0 14px; line-height: 1.5; }
.steps p { color: #cfe0ff; margin: 0 0 22px; font-size: 16px; }
.icon-row { display: flex; flex-wrap: wrap; gap: 10px; }
.icon-row img { width: 36px; height: 36px; object-fit: contain; image-rendering: pixelated; }
.quest { display: grid; gap: 10px; }
.quest-row { display: grid; grid-template-columns: 26px 64px 1fr auto; align-items: center; gap: 10px; font-family: var(--display); font-size: 10px; }
.quest-row img { width: 24px; image-rendering: pixelated; }
.quest-row b { color: var(--lime); font-weight: 400; font-size: 9px; }
.bar { height: 14px; }
.bar span { background: linear-gradient(#ffe56b, #e3a900); }
.levelup { font-family: var(--display); font-size: clamp(20px, 2.4vw, 30px); color: var(--yellow); text-shadow: var(--stroke), 0 0 30px var(--orange); text-align: center; padding: 10px 0; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }

.evo { display: flex; justify-content: center; align-items: flex-end; gap: clamp(8px, 3vw, 40px); margin-top: 60px; }
.evo figure { margin: 0; text-align: center; }
.evo img { height: clamp(220px, 34vw, 420px); width: auto; image-rendering: pixelated; filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.5)); margin: 0 auto; }
.evo figure:nth-child(3) img { height: clamp(232px, 35.5vw, 440px); }
.evo figure:nth-child(5) img { height: clamp(244px, 37vw, 460px); }
.evo figcaption { font-family: var(--display); font-size: 10px; color: var(--muted); margin-top: 16px; }
.evo figcaption b { display: block; font-weight: 400; font-size: 18px; color: var(--yellow); margin-bottom: 8px; text-shadow: 3px 3px 0 #000; }
.evo-arrow { font-size: 26px; color: var(--cyan); align-self: center; text-shadow: 0 0 20px var(--cyan); }
.unlocks { list-style: none; padding: 0; margin: 50px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.unlocks li { font-family: var(--display); font-size: 11px; background: rgba(1, 23, 48, 0.9); border: 4px solid var(--blue-bright); padding: 12px 14px; box-shadow: 5px 5px 0 #000; }
.unlocks b { font-weight: 400; color: var(--yellow); margin-right: 8px; }

.roster { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; margin-top: 60px; }
.roster img { height: clamp(150px, 22vw, 300px); width: auto; image-rendering: pixelated; margin: 0 -1.2%; filter: drop-shadow(0 16px 14px rgba(0, 0, 0, 0.5)); transition: transform 0.15s steps(3); }
.roster img:hover { transform: translateY(-14px); }
.arenas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; }
.arenas img { border: 4px solid #000; box-shadow: 6px 6px 0 #000; aspect-ratio: 1484 / 1060; object-fit: cover; }

.split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 28px; }
.feature-list li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.feature-list img { width: 52px; height: 52px; object-fit: contain; image-rendering: pixelated; }
.feature-list h3 { font-size: 13px; line-height: 1.5; margin-bottom: 8px; }
.feature-list p { margin: 0; color: #cfe0ff; font-size: 16px; }
.phone { justify-self: center; width: min(340px, 80vw); aspect-ratio: 9 / 19.5; border-radius: 48px; padding: 12px; background: linear-gradient(135deg, #3a4558, #05080d 40%, #2b3445); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 80px rgba(34, 200, 255, 0.25); }
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; background: var(--navy); }

.clips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 50px; }
.clip { position: relative; padding: 0; border: 4px solid #000; background: #000; cursor: pointer; box-shadow: 6px 8px 0 #000; aspect-ratio: 9 / 16; overflow: hidden; }
.clip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.clip:hover img { transform: scale(1.05); }
.clip span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 10px; font-family: var(--display); font-size: 10px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, 0.9)); }
.clip::after { content: "▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; display: grid; place-items: center; font-size: 22px; color: #000; background: var(--lime); box-shadow: 0 0 0 4px #000, 4px 6px 0 4px #000; }
.clip:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

details { background: rgba(1, 23, 48, 0.9); border: 4px solid var(--blue); margin-top: 18px; box-shadow: 6px 6px 0 #000; }
details:first-of-type { margin-top: 50px; }
summary { cursor: pointer; font-family: var(--display); font-size: 12px; line-height: 1.6; padding: 20px 22px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; color: var(--lime); margin-right: 14px; }
details[open] summary::before { content: "−"; }
details p { margin: 0; padding: 0 22px 22px 50px; color: #cfe0ff; font-size: 16px; }

.waitlist { padding-bottom: 120px; }
.waitlist-box { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; background: linear-gradient(160deg, #0a3f86, #031c3b); border: 6px solid var(--lime); box-shadow: 0 0 0 4px #000, 14px 16px 0 4px #000, 0 0 70px rgba(127, 224, 0, 0.25); padding: clamp(28px, 4vw, 54px); }
.waitlist-pixel { height: 300px; width: auto; image-rendering: pixelated; }
.waitlist p { color: #d8e6ff; }
form { display: grid; grid-template-columns: 1fr auto; gap: 18px; margin-top: 24px; }
input[type="email"] { font-family: var(--body); font-size: 18px; color: #fff; background: var(--navy-deep); border: 4px solid var(--blue-bright); padding: 14px 16px; min-width: 0; }
input[type="email"]:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 20px rgba(34, 200, 255, 0.4); }
fieldset { grid-column: 1 / -1; grid-row: 2; border: 0; padding: 0; margin: 0; display: flex; gap: 26px; font-family: var(--display); font-size: 11px; }
fieldset label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
fieldset input { accent-color: var(--lime); width: 18px; height: 18px; }
form .btn { grid-row: 1; grid-column: 2; }
.form-msg { grid-column: 1 / -1; margin: 0; min-height: 1.7em; font-size: 16px; }
.form-msg.ok { color: var(--lime); }
.form-msg.err { color: #ff8a8a; }

.footer { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; padding: 40px clamp(16px, 5vw, 72px); border-top: 4px solid var(--blue); background: rgba(1, 15, 32, 0.9); }
.footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer nav a:hover { color: #fff; }
.footer .fine { margin: 0; flex-basis: 100%; font-size: 13px; }

.clip-modal { padding: 0; border: 4px solid var(--lime); background: #000; max-width: min(420px, 92vw); box-shadow: 0 0 0 4px #000, 0 0 80px rgba(127, 224, 0, 0.35); }
.clip-modal::backdrop { background: rgba(0, 4, 12, 0.85); }
.clip-modal video { display: block; width: 100%; max-height: 86vh; }
.clip-modal .close { position: absolute; top: 8px; right: 8px; z-index: 2; font-size: 18px; width: 40px; height: 40px; background: #000; color: #fff; border: 3px solid #fff; cursor: pointer; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.6s, transform 0.6s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .nav nav { display: none; }
  .nav .btn-small { margin-left: auto; }
  .hero { grid-template-columns: 1fr; text-align: left; }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .split { grid-template-columns: 1fr; }
  .clips { grid-template-columns: repeat(2, 1fr); }
  .arenas { grid-template-columns: repeat(2, 1fr); }
  .waitlist-box { grid-template-columns: 1fr; }
  .waitlist-pixel { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand span { display: none; }
  .evo-arrow { display: none; }
  .roster img { height: 100px; margin: 0 -1px; }
  .evo img, .evo figure:nth-child(3) img, .evo figure:nth-child(5) img { height: 170px; }
  form { grid-template-columns: 1fr; }
  form .btn { grid-column: 1; grid-row: auto; }
  fieldset { grid-row: auto; }
  .cta-row .btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
