@font-face {
  font-family: "Thaleah";
  src: url("/assets/fonts/ThaleahFat.ttf") format("truetype");
  font-display: swap;
}
:root {
  --night: #140d26;
  --night-2: #1e1438;
  --panel: #241a42;
  --panel-edge: #3b2d66;
  --ink: #ece8ff;
  --muted: #a99fd0;
  --title: #ffffff;
  --title-edge: #7aaaff;
  --gold: #ffd65c;
  --cyan: #4fe3ff;
  --danger: #ff7a8a;
  --ok: #7cf2a0;
  --px: 4px;
  --nav-h: 60px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  /* Layer 1: the game's main-menu silhouettes drifting left + down at 10 px/s
     (tile 816x560 = 4x4 cells). Layer 2: the purple glow. */
  background:
    url("/assets/img/menu-bg.png") repeat,
    radial-gradient(1200px 700px at 50% -10%, #3a2766 0%, var(--night) 55%),
    var(--night);
  background-attachment: fixed, fixed;
  image-rendering: pixelated;
  color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  body { animation: drift-x 81.6s linear infinite, drift-y 56s linear infinite; }
  @keyframes drift-x { from { background-position-x: 0, 0; } to { background-position-x: -816px, 0; } }
  @keyframes drift-y { from { background-position-y: 0, 0; } to { background-position-y: 560px, 0; } }
  .brand-mark img { animation: bob 3.2s ease-in-out infinite; }
  @keyframes bob { 50% { transform: translateY(-6px); } }
}
img, video, .frame, .btn, .store { image-rendering: auto; }
img.pixel { image-rendering: pixelated; }
img { max-width: 100%; display: block; }
a { color: var(--cyan); }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.px-font { font-family: "Thaleah", ui-monospace, monospace; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(16, 10, 32, 0.86);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-bottom: 3px solid #0b0716;
}
.nav .wrap { display: flex; align-items: center; gap: 16px; min-height: var(--nav-h); }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--title); }
.nav-brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav-brand span { font-family: "Thaleah", monospace; font-size: 26px; letter-spacing: 0.04em; text-shadow: 2px 2px 0 #2a4aa0; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  font-family: "Thaleah", monospace; text-transform: uppercase; letter-spacing: 0.05em; font-size: 19px;
  color: var(--ink); text-decoration: none; padding: 6px 10px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold); }
.nav .socials { margin-left: 6px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--ink); font-size: 28px; cursor: pointer; padding: 4px 8px; }
@media (max-width: 819px) {
  .nav-toggle { display: block; }
  .nav-links, .nav .socials { display: none; }
  body.nav-open .nav .wrap { flex-wrap: wrap; }
  body.nav-open .nav-links { display: flex; flex-direction: column; width: 100%; margin: 0 0 8px; }
  body.nav-open .nav .socials { display: flex; width: 100%; margin: 0 0 12px; }
}

/* ---------- socials ---------- */
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.social {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: #0b0716; border: 3px solid var(--panel-edge);
}
.social img { width: 18px; height: 18px; filter: invert(1); }
.social:hover { border-color: var(--cyan); }
.social.soon { opacity: 0.45; cursor: default; }
.social.soon:hover { border-color: var(--panel-edge); }

/* ---------- type ---------- */
.title {
  font-family: "Thaleah", ui-monospace, monospace;
  color: var(--title);
  font-size: clamp(56px, 11vw, 112px);
  line-height: 0.9;
  margin: 0;
  text-shadow:
    4px 0 var(--title-edge), -4px 0 var(--title-edge), 0 4px var(--title-edge), 0 -4px var(--title-edge),
    4px 4px var(--title-edge), -4px 4px var(--title-edge), 4px -4px var(--title-edge), -4px -4px var(--title-edge),
    0 10px 0 #1a1033;
}
h2.section {
  font-family: "Thaleah", monospace; font-weight: normal; text-transform: uppercase; letter-spacing: 0.04em;
  font-size: clamp(30px, 5vw, 44px); margin: 0 0 18px; color: var(--title); text-shadow: 3px 3px 0 #0b0716;
}

/* Pixel "stepped" frame like the in-game UI panels */
.frame {
  background: var(--panel);
  box-shadow:
    0 calc(var(--px) * -1) 0 0 var(--panel-edge), 0 var(--px) 0 0 var(--panel-edge),
    calc(var(--px) * -1) 0 0 0 var(--panel-edge), var(--px) 0 0 0 var(--panel-edge),
    0 0 0 calc(var(--px) * 2) #0b0716;
  margin: calc(var(--px) * 2);
}

/* ---------- hero ---------- */
.hero { padding: 48px 0 36px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.brand-mark { display: flex; align-items: center; gap: 20px; }
.brand-mark img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 10px 40px #6b45c855; }
.tagline { font-size: clamp(26px, 4.6vw, 38px); line-height: 1.15; margin: 22px 0 10px; }
.tagline .gold { color: var(--gold); }
.lede { color: var(--muted); max-width: 34em; margin: 0 0 22px; }

.waitlist { padding: 20px; }
.waitlist h2 { font-size: 26px; margin: 0 0 4px; color: var(--gold); font-weight: normal; }
.waitlist p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.proof { margin: 0 0 12px; color: var(--ink); font-size: 15px; }
.proof b { color: var(--gold); font-family: "Thaleah", monospace; font-size: 22px; font-weight: normal; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.form-row input[type=email] {
  flex: 1 1 220px; min-width: 0; font: inherit; color: var(--ink);
  background: #0f0a1f; border: 3px solid var(--panel-edge); padding: 12px 14px; border-radius: 0; outline: none;
}
.form-row input[type=email]:focus { border-color: var(--cyan); }
.btn {
  display: inline-block; text-decoration: none;
  font-family: "Thaleah", ui-monospace, monospace; text-transform: uppercase; letter-spacing: 0.05em;
  font-size: 24px; line-height: 1; color: #10213a; background: var(--cyan);
  border: 0; padding: 14px 22px; cursor: pointer; box-shadow: inset 0 -5px 0 #1f9ab8, 0 0 0 3px #0b0716;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 #1f9ab8, 0 0 0 3px #0b0716; }
.btn[disabled] { filter: grayscale(0.6); cursor: wait; }
.btn.alt { background: #8b7bff; color: #120a2a; box-shadow: inset 0 -5px 0 #5a48c8, 0 0 0 3px #0b0716; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.5em; margin-top: 10px; font-size: 15px; }
.status.ok { color: var(--ok); }
.status.err { color: var(--danger); }

.stores { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center; min-width: 170px; padding: 9px 16px;
  background: #0b0716; color: var(--ink); text-decoration: none; border: 3px solid #4a3a7a; opacity: 0.85; cursor: default;
}
.store small { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.store span { font-size: 19px; font-weight: 600; }
.store em { font-style: normal; font-family: "Thaleah", monospace; color: var(--gold); font-size: 16px; text-transform: uppercase; letter-spacing: 0.05em; }

.hero-video { position: relative; }
.hero-video video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #000; }
.hero-video .badge { position: absolute; left: 14px; bottom: 14px; background: #0b0716cc; padding: 6px 10px; font-size: 18px; color: var(--gold); }
.hero-video .live { position: absolute; right: 14px; top: 14px; background: #0b0716cc; padding: 4px 9px; font-size: 15px; color: var(--ink); }
.hero-video .live::before { content: ""; display: inline-block; width: 8px; height: 8px; background: #ff4d5e; margin-right: 6px; vertical-align: 1px; }

/* ---------- sections ---------- */
section { padding: 34px 0; }
.features { display: grid; grid-template-columns: 1fr; gap: 18px; }
.feature { padding: 0; overflow: hidden; }
.feature img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.feature .txt { padding: 16px 18px 20px; }
.feature h3, .card h3 {
  font-family: "Thaleah", monospace; font-weight: normal; text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 28px; margin: 0 0 6px; color: var(--gold);
}
.feature p, .card p { margin: 0; color: var(--muted); }

.legion { padding: 22px; display: grid; gap: 18px; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 10px; background: var(--cyan); box-shadow: 0 0 0 2px #0b0716; }
.boss { display: grid; gap: 8px; }
.bar { height: 22px; background: #0b0716; border: 3px solid var(--panel-edge); position: relative; }
.bar i { position: absolute; inset: 0 38% 0 0; background: linear-gradient(#ff8a5c, #e0473c); }
.bar b { position: absolute; inset: 0; display: grid; place-items: center; font-family: "Thaleah", monospace; font-weight: normal; font-size: 17px; text-shadow: 2px 2px 0 #0b0716; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { padding: 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 18px; position: relative; padding-right: 48px;
  font-family: "Thaleah", monospace; text-transform: uppercase; letter-spacing: 0.04em; font-size: 22px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font-size: 30px; color: var(--gold); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 18px 18px; color: var(--muted); }

/* About + community */
.split { display: grid; gap: 18px; }
.card { padding: 22px; }
.card .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.discord-cta {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; text-decoration: none;
  background: #5865f2; color: #fff; box-shadow: inset 0 -5px 0 #3b45b8, 0 0 0 3px #0b0716;
}
.discord-cta img { width: 26px; height: 26px; filter: invert(1); }
.discord-cta span { font-family: "Thaleah", monospace; font-size: 22px; text-transform: uppercase; letter-spacing: 0.05em; line-height: 1; }
.discord-cta small { display: block; font-size: 12px; opacity: 0.85; letter-spacing: 0.04em; margin-top: 3px; }
.discord-cta.soon { background: #3a3f73; box-shadow: inset 0 -5px 0 #2a2e57, 0 0 0 3px #0b0716; cursor: default; }

.cta-final { text-align: center; padding: 40px 0 56px; }
.cta-final .waitlist { max-width: 560px; margin: 18px auto 0; text-align: left; }

/* ---------- document pages (support / terms / privacy / press) ---------- */
.doc { padding: 40px 0 56px; }
.doc .frame { padding: 26px; }
.doc .faq details.frame { padding: 0; }
.doc h1 { font-family: "Thaleah", monospace; font-weight: normal; text-transform: uppercase; color: var(--title);
  font-size: clamp(38px, 7vw, 56px); margin: 0 0 6px; text-shadow: 3px 3px 0 #2a4aa0; }
.doc h2 { font-family: "Thaleah", monospace; font-weight: normal; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--gold); font-size: 26px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.facts dt { color: var(--gold); font-family: "Thaleah", monospace; text-transform: uppercase; letter-spacing: 0.04em; font-size: 18px; }
.facts dd { margin: 0; color: var(--ink); }
.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.press-grid a { display: block; text-decoration: none; color: var(--muted); font-size: 13px; }
.press-grid img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 3px solid var(--panel-edge); margin-bottom: 6px; }
.press-grid a:hover img { border-color: var(--cyan); }
.asset-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.asset-row .logo-swatch { background: #0b0716; padding: 18px; border: 3px solid var(--panel-edge); }

/* ---------- footer ---------- */
footer { border-top: 3px solid #241a42; padding: 26px 0 40px; color: var(--muted); font-size: 14px; background: rgba(11, 7, 22, 0.55); }
footer .wrap { display: grid; gap: 16px; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }
footer .bottom { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; align-items: center; }

@media (min-width: 820px) {
  .hero { padding: 64px 0 48px; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 44px; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .legion { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .split { grid-template-columns: 1fr 1fr; }
  footer .wrap { grid-template-columns: 1fr auto; align-items: start; }
}
