/* ==========================================================================
   Hoard Thieves · landing site styles
   Single deliberate dark theme pulled from the concept art:
   cave purple-black, ember red, hoard gold, portal blue, parchment text.
   ========================================================================== */

/* ---------- Fonts (self-hosted, subset to Latin) ---------- */
@font-face {
  font-family: "Pixelify Sans";
  src: url("/assets/fonts/pixelify-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* cave */
  --cave-950: #0d0710;
  --cave-900: #150b1a;
  --cave-850: #1c0f22;
  --cave-800: #24132b;
  --cave-700: #33193a;
  --cave-600: #4a2550;
  /* ember */
  --ember: #e0331c;
  --ember-hi: #f2553a;
  --ember-deep: #a31616;
  --ember-glow: rgba(224, 51, 28, 0.35);
  /* hoard gold */
  --gold: #ffc52e;
  --gold-hi: #fff09a;
  --gold-deep: #d98a12;
  --gold-shadow: #8a4a08;
  /* portal */
  --portal: #3ea8ff;
  --portal-hi: #9fd8ff;
  --portal-deep: #1b4f9c;
  --portal-glow: rgba(62, 168, 255, 0.45);
  /* text */
  --parchment: #f6ead0;
  --parchment-dim: #cdbda3;
  --parchment-mute: #a8977f;
  --outline: #2a0f0a;
  --ink: #140608;

  /* crew accents */
  --teal: #2fb7b0;
  --violet: #8b4fd6;
  --leaf: #4fbf4a;
  --silver: #d9dde6;

  --font-pixel: "Pixelify Sans", "Press Start 2P", "Silkscreen", ui-monospace, "Courier New", monospace;
  --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --px: 4px; /* one "pixel" for stepped borders */
  --header-h: 4.25rem;

  color-scheme: dark;
}

/* ---------- Reset-ish ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  background: var(--cave-950);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--parchment);
  background:
    radial-gradient(60rem 30rem at 50% -10rem, rgba(224, 51, 28, 0.16), transparent 70%),
    var(--cave-950);
}

[hidden] { display: none !important; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
picture { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-pixel);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--portal-hi); text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
a:hover { color: var(--gold-hi); }

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

::selection { background: var(--gold); color: var(--ink); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  font-family: var(--font-pixel);
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ==========================================================================
   Pixel primitives
   ========================================================================== */

/* Stepped pixel border: four flat shadows leave the corners open,
   which reads as a 1-pixel rounded corner at any size. */
.px-frame {
  box-shadow:
    0 calc(var(--px) * -1) 0 0 var(--frame, var(--outline)),
    0 var(--px) 0 0 var(--frame, var(--outline)),
    calc(var(--px) * -1) 0 0 0 var(--frame, var(--outline)),
    var(--px) 0 0 0 var(--frame, var(--outline));
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--ink);
  --btn-hi: var(--gold-hi);
  --btn-lo: var(--gold-deep);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3rem;
  padding: 0.7em 1.35em 0.8em;
  margin: var(--px);
  font-family: var(--font-pixel);
  font-size: 1.125rem;
  line-height: 1.1;
  text-decoration: none;
  text-align: center;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 0;
  cursor: pointer;
  box-shadow:
    inset 0 var(--px) 0 0 var(--btn-hi),
    inset 0 calc(var(--px) * -2) 0 0 var(--btn-lo),
    0 calc(var(--px) * -1) 0 0 var(--outline),
    0 var(--px) 0 0 var(--outline),
    calc(var(--px) * -1) 0 0 0 var(--outline),
    var(--px) 0 0 0 var(--outline),
    0 calc(var(--px) * 3) 0 0 rgba(0, 0, 0, 0.55);
  transition: transform 0.08s steps(2), filter 0.12s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); filter: brightness(1.06); }
.btn:active { transform: translateY(3px); box-shadow:
    inset 0 var(--px) 0 0 var(--btn-hi),
    inset 0 calc(var(--px) * -1) 0 0 var(--btn-lo),
    0 calc(var(--px) * -1) 0 0 var(--outline),
    0 var(--px) 0 0 var(--outline),
    calc(var(--px) * -1) 0 0 0 var(--outline),
    var(--px) 0 0 0 var(--outline); }
.btn:focus-visible { outline-offset: 8px; }

.btn--ghost {
  --btn-bg: var(--cave-700);
  --btn-fg: var(--parchment);
  --btn-hi: var(--cave-600);
  --btn-lo: var(--cave-800);
}
.btn--portal {
  --btn-bg: var(--portal);
  --btn-fg: var(--ink);
  --btn-hi: var(--portal-hi);
  --btn-lo: var(--portal-deep);
}
.btn--sm { min-height: 2.5rem; font-size: 1rem; padding: 0.5em 1em 0.6em; }
.btn svg { width: 1.25em; height: 1.25em; flex: none; image-rendering: pixelated; }
.btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }

/* ---------- Ribbon banner (signature element) ---------- */
.banner {
  --notch: 14px;
  display: inline-block;
  max-width: 100%;
  margin: 0 0 1.5rem;
  padding: 5px;
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.75rem);
  line-height: 1;
  background: var(--outline);
  transform: rotate(-1.5deg);
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.5));
  clip-path: polygon(
    0 0, 100% 0,
    100% 20%, calc(100% - var(--notch) / 2) 20%,
    calc(100% - var(--notch) / 2) 40%, calc(100% - var(--notch)) 40%,
    calc(100% - var(--notch)) 60%, calc(100% - var(--notch) / 2) 60%,
    calc(100% - var(--notch) / 2) 80%, 100% 80%,
    100% 100%, 0 100%,
    0 80%, calc(var(--notch) / 2) 80%,
    calc(var(--notch) / 2) 60%, var(--notch) 60%,
    var(--notch) 40%, calc(var(--notch) / 2) 40%,
    calc(var(--notch) / 2) 20%, 0 20%
  );
}
.banner > span {
  display: block;
  padding: 0.38em calc(var(--notch) + 0.6em) 0.48em;
  color: var(--gold);
  background:
    linear-gradient(var(--ember-hi) 0 4px, transparent 4px),
    linear-gradient(transparent calc(100% - 6px), var(--ember-deep) calc(100% - 6px)),
    var(--ember);
  clip-path: inherit;
  text-shadow:
    3px 0 0 var(--outline), -3px 0 0 var(--outline),
    0 3px 0 var(--outline), 0 -3px 0 var(--outline),
    3px 3px 0 var(--outline), -3px 3px 0 var(--outline),
    3px -3px 0 var(--outline), -3px -3px 0 var(--outline),
    0 6px 0 var(--outline), 3px 6px 0 var(--outline), -3px 6px 0 var(--outline);
  overflow-wrap: anywhere;
}
.banner--portal > span {
  background:
    linear-gradient(var(--portal-hi) 0 4px, transparent 4px),
    linear-gradient(transparent calc(100% - 6px), var(--portal-deep) calc(100% - 6px)),
    var(--portal);
}

/* Pixel coin glint, used sparingly */
.glint {
  position: relative;
  display: inline-block;
  width: 10px; height: 10px;
  margin-left: 0.15em;
  vertical-align: top;
  background:
    linear-gradient(var(--gold-hi), var(--gold-hi)) center / 2px 100% no-repeat,
    linear-gradient(var(--gold-hi), var(--gold-hi)) center / 100% 2px no-repeat;
  animation: glint 2.8s steps(4) infinite;
}
@keyframes glint {
  0%, 70%, 100% { opacity: 0; transform: scale(0.4); }
  80% { opacity: 1; transform: scale(1); }
  90% { opacity: 0.6; transform: scale(0.7); }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 7, 16, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: var(--px) solid var(--outline);
  box-shadow: 0 1px 0 rgba(255, 197, 46, 0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: auto;
  font-family: var(--font-pixel);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--gold);
  text-decoration: none;
  text-shadow: 2px 2px 0 var(--outline);
  white-space: nowrap;
}
.wordmark:hover { color: var(--gold-hi); }
.wordmark img { width: 32px; height: 32px; image-rendering: pixelated; }

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 0.5rem 0.7rem;
  font-family: var(--font-pixel);
  font-size: 1rem;
  color: var(--parchment);
  text-decoration: none;
}
.site-nav a:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  margin: 0;
  background: var(--cave-700);
  border: 0;
  color: var(--parchment);
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; margin: auto; }
.nav-toggle[aria-expanded="true"] .bar-mid { opacity: 0; }

@media (max-width: 60rem) {
  .header-cta { display: none; }
}
@media (max-width: 52rem) {
  .nav-toggle { display: grid; }
  .js .site-nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    display: none;
    background: var(--cave-900);
    border-bottom: var(--px) solid var(--outline);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
  }
  .js .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    padding: 0.5rem var(--gutter) 1rem;
  }
  .site-nav a { padding: 0.85rem 0.25rem; font-size: 1.15rem; border-bottom: 2px dashed var(--cave-700); }
  .site-nav .nav-cta { padding-top: 1rem; }
  .site-nav .nav-cta a { border: 0; color: var(--ink); }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; padding: 0; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 0.5rem; }
}
@media (min-width: 52.01rem) {
  .site-nav .nav-cta { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
}
.hero-art {
  position: relative;
  max-width: 1600px;
  margin-inline: auto;
}
.hero-art img {
  width: 100%;
  aspect-ratio: 1344 / 752;
  max-height: 82vh;
  object-fit: cover;
  object-position: 50% 20%;
  -webkit-mask-image: linear-gradient(#000 55%, transparent 98%);
  mask-image: linear-gradient(#000 55%, transparent 98%);
}
@media (min-width: 1600px) {
  .hero-art img {
    -webkit-mask-image:
      linear-gradient(#000 55%, transparent 98%),
      linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(#000 55%, transparent 98%),
      linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-composite: intersect;
  }
}
.art-label {
  position: absolute;
  right: var(--gutter);
  top: 0.75rem;
  margin: 0;
  padding: 0.2rem 0.5rem;
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  color: var(--parchment);
  background: rgba(13, 7, 16, 0.78);
  letter-spacing: 0.04em;
}
.hero-content {
  position: relative;
  margin-top: clamp(-17rem, -16vw, -2.5rem);
  padding-bottom: clamp(1rem, 3vw, 2rem);
}
.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.25rem 0.6rem 0.35rem;
  background: rgba(13, 7, 16, 0.82);
  box-shadow: 0 3px 0 0 var(--outline);
  font-family: var(--font-pixel);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--portal-hi);
  text-shadow: 2px 2px 0 var(--ink);
}
.game-title {
  margin: 0 0 0.75rem;
  font-size: clamp(3rem, 1.4rem + 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--gold);
  background: linear-gradient(180deg, var(--gold-hi) 0 18%, var(--gold) 18% 62%, var(--gold-deep) 62%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(4px 0 0 var(--outline))
    drop-shadow(-4px 0 0 var(--outline))
    drop-shadow(0 4px 0 var(--outline))
    drop-shadow(0 -4px 0 var(--outline))
    drop-shadow(0 7px 0 var(--ember-deep));
}
.tagline {
  max-width: 34rem;
  margin: 0 0 1.75rem;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 2px 0 var(--ink), 0 0 18px var(--cave-950);
}
.tagline strong { color: var(--gold); font-weight: 800; }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: center;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-pixel);
  font-size: 1.05rem;
  color: var(--parchment-dim);
}
/* Every item carries a leading dot; the list is shifted left and clipped so
   the dot at the start of each wrapped line is hidden. */
.facts {
  margin-left: -1.4rem;
  clip-path: inset(0 0 0 1.4rem);
}
.facts li::before {
  content: "·";
  display: inline-block;
  width: 1.4rem;
  text-align: center;
  color: var(--gold);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.section--alt {
  background:
    linear-gradient(var(--cave-950), transparent 6rem),
    linear-gradient(transparent calc(100% - 6rem), var(--cave-950)),
    var(--cave-900);
}
.section-head { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.section-head p {
  max-width: 40rem;
  font-size: 1.15rem;
  color: var(--parchment-dim);
}

/* ---------- Trailer ---------- */
.trailer {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--cave-800);
  --frame: var(--outline);
  overflow: hidden;
}
.trailer-frame {
  padding: 8px;
  background: var(--cave-700);
  box-shadow:
    0 -4px 0 0 var(--outline), 0 4px 0 0 var(--outline),
    -4px 0 0 0 var(--outline), 4px 0 0 0 var(--outline),
    0 12px 0 0 rgba(0, 0, 0, 0.45);
}
.trailer img,
.trailer iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.trailer picture { position: absolute; inset: 0; }
.trailer-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem;
  border: 0;
  background: linear-gradient(rgba(13, 7, 16, 0.15), rgba(13, 7, 16, 0.55));
  color: var(--parchment);
  font-family: var(--font-pixel);
  font-size: clamp(1rem, 0.8rem + 1vw, 1.4rem);
  text-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
}
.trailer-play .play-badge {
  display: grid;
  place-items: center;
  width: clamp(4rem, 10vw, 6rem);
  aspect-ratio: 1;
  background: var(--ember);
  box-shadow:
    inset 0 4px 0 0 var(--ember-hi), inset 0 -6px 0 0 var(--ember-deep),
    0 -4px 0 0 var(--outline), 0 4px 0 0 var(--outline),
    -4px 0 0 0 var(--outline), 4px 0 0 0 var(--outline);
  transition: transform 0.1s steps(2);
}
.trailer-play .play-badge svg { width: 45%; height: 45%; }
.trailer-play:hover .play-badge { transform: scale(1.08); }
.trailer-play:focus-visible { outline-offset: -8px; }
.trailer[data-state="soon"] .trailer-play { cursor: default; }
.trailer[data-state="soon"] .play-badge { background: var(--cave-600); box-shadow:
    inset 0 4px 0 0 #5d3264, inset 0 -6px 0 0 var(--cave-800),
    0 -4px 0 0 var(--outline), 0 4px 0 0 var(--outline),
    -4px 0 0 0 var(--outline), 4px 0 0 0 var(--outline); }
.trailer-note {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--parchment-mute);
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  position: relative;
  padding: 1.5rem 1.5rem 1.6rem;
  background: var(--cave-800);
  box-shadow:
    inset 0 4px 0 0 var(--cave-600),
    0 -4px 0 0 var(--outline), 0 4px 0 0 var(--outline),
    -4px 0 0 0 var(--outline), 4px 0 0 0 var(--outline),
    0 10px 0 0 rgba(0, 0, 0, 0.45);
}
.card h3 {
  font-size: 1.5rem;
  color: var(--gold);
  text-shadow: 2px 2px 0 var(--outline);
}
.card p { color: var(--parchment-dim); }
.px-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
  image-rendering: pixelated;
  shape-rendering: crispEdges;
}

.noise-meter {
  display: flex;
  gap: 3px;
  margin-top: 1rem;
}
.noise-meter i {
  display: block;
  flex: 1;
  height: 10px;
  max-width: 1.5rem;
  background: var(--c);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
  animation: noise 3.2s steps(1) infinite;
  animation-delay: calc(var(--i) * 0.12s);
}
@keyframes noise {
  0% { opacity: 1; }
  55% { opacity: 0.18; }
  100% { opacity: 1; }
}

.chaos-callout {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(224, 51, 28, 0.12);
  border-left: 8px solid var(--ember);
}
.chaos-callout p { margin: 0; font-size: 1.1rem; }
.chaos-callout strong { font-family: var(--font-pixel); font-size: 1.25rem; color: var(--gold); font-weight: 700; }

@media (min-width: 40rem) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 62rem) { .feature-grid--four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 70rem) { .feature-grid--four { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Threats ---------- */
.threat {
  box-shadow:
    inset 0 6px 0 0 var(--ember-deep),
    0 -4px 0 0 var(--outline), 0 4px 0 0 var(--outline),
    -4px 0 0 0 var(--outline), 4px 0 0 0 var(--outline),
    0 10px 0 0 rgba(0, 0, 0, 0.45);
}
.threat h3 { color: var(--ember-hi); }

/* ---------- Hoarders ---------- */
.hoarders {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 56rem) {
  .hoarders { grid-template-columns: 1.1fr 1fr; }
}
.hoarder-main {
  padding: clamp(1.4rem, 4vw, 2rem);
  background:
    radial-gradient(24rem 14rem at 100% 0%, rgba(224, 51, 28, 0.22), transparent 70%),
    var(--cave-800);
  box-shadow:
    inset 0 6px 0 0 var(--ember),
    0 -4px 0 0 var(--outline), 0 4px 0 0 var(--outline),
    -4px 0 0 0 var(--outline), 4px 0 0 0 var(--outline),
    0 10px 0 0 rgba(0, 0, 0, 0.45);
}
.hoarder-main .px-icon { width: 4rem; height: 4rem; margin: 0.25rem 0 0.9rem; }
.hoarder-main h3 {
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.4rem);
  color: var(--gold);
  text-shadow: 2px 2px 0 var(--outline);
}
.hoarder-main p:last-child { color: var(--parchment-dim); }
.hoarder-tag,
.hoarder-list span {
  display: inline-block;
  padding: 0.05rem 0.45rem 0.12rem;
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  line-height: 1.4;
}
.hoarder-tag {
  margin: 0 0 0.6rem;
  color: var(--ink);
  background: var(--gold);
}
.hoarder-next {
  padding: clamp(1.25rem, 4vw, 1.75rem);
  border: 4px dashed var(--cave-600);
}
.hoarder-next h3 { font-size: 1.5rem; color: var(--parchment); }
.hoarder-next > p { color: var(--parchment-dim); }
.hoarder-list {
  display: grid;
  gap: 0.6rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.hoarder-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0.9rem;
  font-family: var(--font-pixel);
  font-size: 1.15rem;
  color: var(--parchment);
  background: var(--cave-850);
  box-shadow: 0 3px 0 0 var(--outline);
}
.hoarder-list span {
  color: var(--parchment-dim);
  background: var(--cave-700);
}

/* ---------- Heist steps ---------- */
.heist-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
@media (min-width: 62rem) {
  .heist-layout { grid-template-columns: 1.15fr 1fr; }
  .heist-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.steps {
  counter-reset: step;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  counter-increment: step;
  position: relative;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0 1.1rem;
  padding-bottom: 1.6rem;
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  font-family: var(--font-pixel);
  font-size: 1.4rem;
  color: var(--ink);
  background: var(--gold);
  box-shadow:
    inset 0 4px 0 0 var(--gold-hi), inset 0 -5px 0 0 var(--gold-deep),
    0 -3px 0 0 var(--outline), 0 3px 0 0 var(--outline),
    -3px 0 0 0 var(--outline), 3px 0 0 0 var(--outline);
  position: relative;
  z-index: 1;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1.5rem - 2px);
  top: 3.25rem;
  bottom: 0.25rem;
  width: 4px;
  background: repeating-linear-gradient(var(--cave-600) 0 8px, transparent 8px 14px);
}
.steps h3 {
  margin: 0.55rem 0 0.35rem;
  font-size: 1.35rem;
  color: var(--parchment);
}
.steps p { color: var(--parchment-dim); margin: 0; }
.steps li.is-danger::before {
  background: var(--ember);
  color: var(--gold);
  text-shadow: 2px 2px 0 var(--outline);
  box-shadow:
    inset 0 4px 0 0 var(--ember-hi), inset 0 -5px 0 0 var(--ember-deep),
    0 -3px 0 0 var(--outline), 0 3px 0 0 var(--outline),
    -3px 0 0 0 var(--outline), 3px 0 0 0 var(--outline);
}
.steps li.is-danger h3 { color: var(--ember-hi); }

.quota-card {
  padding: 1.5rem;
  background: var(--cave-850);
  box-shadow:
    0 -4px 0 0 var(--gold-deep), 0 4px 0 0 var(--gold-deep),
    -4px 0 0 0 var(--gold-deep), 4px 0 0 0 var(--gold-deep),
    0 10px 0 0 rgba(0, 0, 0, 0.45);
}
.quota-card h3 { font-size: 1.4rem; color: var(--gold); }
.quota-card p { color: var(--parchment-dim); }
.quota-bars {
  display: grid;
  gap: 0.6rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-pixel);
  font-size: 0.95rem;
}
.quota-bars li {
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  align-items: center;
  gap: 0.75rem;
  color: var(--parchment-dim);
}
.quota-bars span.bar {
  display: block;
  height: 14px;
  background: var(--cave-700);
  box-shadow: inset 0 0 0 2px var(--outline);
  position: relative;
}
.quota-bars span.bar::after {
  content: "";
  position: absolute;
  inset: 2px auto 2px 2px;
  width: calc(var(--w) - 4px);
  background: linear-gradient(var(--gold-hi) 0 3px, var(--gold) 3px);
}
.quota-foot {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--parchment-mute);
}

.sleep-meter {
  margin-top: 1.75rem;
  font-family: var(--font-pixel);
}
.sleep-meter .label { display: flex; justify-content: space-between; color: var(--parchment); }
.sleep-meter .track {
  height: 18px;
  margin-top: 0.4rem;
  background: var(--cave-700);
  box-shadow: inset 0 0 0 3px var(--outline);
  position: relative;
  overflow: hidden;
}
.sleep-meter .fill {
  position: absolute;
  inset: 3px auto 3px 3px;
  width: 72%;
  background: linear-gradient(var(--ember-hi) 0 4px, var(--ember) 4px);
  animation: sleep 6s steps(12) infinite;
}
@keyframes sleep {
  0% { width: 18%; }
  85% { width: calc(100% - 6px); }
  100% { width: calc(100% - 6px); }
}

/* ---------- Crew ---------- */
.crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.crew-card {
  --accent: var(--gold);
  position: relative;
  padding: 1.4rem 1.4rem 1.5rem;
  background: var(--cave-800);
  box-shadow:
    inset 0 6px 0 0 var(--accent),
    0 -4px 0 0 var(--outline), 0 4px 0 0 var(--outline),
    -4px 0 0 0 var(--outline), 4px 0 0 0 var(--outline),
    0 10px 0 0 rgba(0, 0, 0, 0.45);
}
.crew-card--vex { --accent: var(--teal); }
.crew-card--lyra { --accent: var(--violet); }
.crew-card--sylva { --accent: var(--leaf); }
.crew-card--brynn { --accent: var(--silver); }
.crew-card .px-icon { width: 4rem; height: 4rem; margin: 0.5rem 0 0.9rem; }
.crew-card h3 {
  margin: 0;
  font-size: 1.75rem;
  color: var(--parchment);
  text-shadow: 2px 2px 0 var(--outline);
}
.crew-role {
  margin: 0.1rem 0 0.8rem;
  font-family: var(--font-pixel);
  font-size: 1rem;
  color: var(--accent);
}
.crew-card p:last-child { color: var(--parchment-dim); }

.builder {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: linear-gradient(135deg, rgba(62, 168, 255, 0.12), rgba(139, 79, 214, 0.12));
  box-shadow:
    0 -4px 0 0 var(--portal-deep), 0 4px 0 0 var(--portal-deep),
    -4px 0 0 0 var(--portal-deep), 4px 0 0 0 var(--portal-deep);
}
@media (min-width: 52rem) {
  .builder { grid-template-columns: 1fr 1.2fr; align-items: center; }
}
.builder h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); color: var(--portal-hi); margin-bottom: 0.4rem; }
.builder p { color: var(--parchment-dim); }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 0.35rem 0.75rem 0.45rem;
  font-family: var(--font-pixel);
  font-size: 0.95rem;
  color: var(--parchment);
  background: var(--cave-700);
  box-shadow: 0 3px 0 0 var(--outline);
}
.chips li.chip-label { background: transparent; box-shadow: none; padding-inline: 0; color: var(--portal-hi); }

.crew-sketches {
  margin: 3rem 0 0;
}
.crew-sketches ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 34rem) {
  .crew-sketches ul { grid-template-columns: repeat(2, 1fr); }
}
.crew-sketches img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: 0 0 0 4px var(--outline);
}
.crew-sketches figcaption,
.gallery figcaption {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--parchment-mute);
}
.tag {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0.05rem 0.4rem 0.12rem;
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  color: var(--ink);
  background: var(--gold);
  vertical-align: 0.1em;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  gap: 2rem;
}
@media (min-width: 56rem) {
  .gallery { grid-template-columns: 1fr 1fr; }
}
.gallery figure { margin: 0; }
.gallery a { display: block; }
.gallery img {
  width: 100%;
  box-shadow:
    0 -4px 0 0 var(--outline), 0 4px 0 0 var(--outline),
    -4px 0 0 0 var(--outline), 4px 0 0 0 var(--outline),
    0 10px 0 0 rgba(0, 0, 0, 0.45);
  transition: transform 0.12s steps(2);
}
.gallery a:hover img { transform: translateY(-3px); }

/* ---------- Newsletter ---------- */
.signup {
  position: relative;
  padding: clamp(1.75rem, 5vw, 3rem);
  background:
    radial-gradient(30rem 16rem at 100% 100%, rgba(62, 168, 255, 0.18), transparent 70%),
    radial-gradient(26rem 14rem at 0% 0%, rgba(224, 51, 28, 0.18), transparent 70%),
    var(--cave-800);
  box-shadow:
    0 -4px 0 0 var(--outline), 0 4px 0 0 var(--outline),
    -4px 0 0 0 var(--outline), 4px 0 0 0 var(--outline),
    0 12px 0 0 rgba(0, 0, 0, 0.45);
}
.signup p.lede { max-width: 38rem; font-size: 1.15rem; color: var(--parchment-dim); }
.signup-form {
  display: grid;
  gap: 0.5rem;
  max-width: 36rem;
  margin-top: 1.5rem;
}
.signup-form label {
  font-family: var(--font-pixel);
  font-size: 1.05rem;
}
.signup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch;
}
.signup-row input {
  flex: 1 1 15rem;
  min-width: 0;
  min-height: 3rem;
  margin: 4px;
  padding: 0.6rem 0.9rem;
  font: inherit;
  font-size: 1.05rem;
  color: var(--parchment);
  background: var(--cave-950);
  border: 0;
  box-shadow:
    inset 0 3px 0 0 rgba(0, 0, 0, 0.6),
    0 -4px 0 0 var(--outline), 0 4px 0 0 var(--outline),
    -4px 0 0 0 var(--outline), 4px 0 0 0 var(--outline);
}
.signup-row input::placeholder { color: var(--parchment-mute); }
.signup-row input:focus-visible { outline-offset: 6px; }
.signup-row input[aria-invalid="true"] {
  box-shadow:
    inset 0 3px 0 0 rgba(0, 0, 0, 0.6),
    0 -4px 0 0 var(--ember), 0 4px 0 0 var(--ember),
    -4px 0 0 0 var(--ember), 4px 0 0 0 var(--ember);
}
.form-hint { font-size: 0.9rem; color: var(--parchment-mute); margin: 0.35rem 0 0; }
.form-error { min-height: 1.5em; margin: 0; font-weight: 700; color: #ff8a73; }
.form-success {
  margin-top: 1.5rem;
  padding: 1.25rem 1.4rem;
  background: rgba(62, 168, 255, 0.12);
  border-left: 8px solid var(--portal);
}
.form-success strong { display: block; font-family: var(--font-pixel); font-size: 1.4rem; color: var(--portal-hi); font-weight: 700; margin-bottom: 0.25rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 1.1rem;
  max-width: 50rem;
}
.faq-list details {
  background: var(--cave-800);
  box-shadow:
    0 -4px 0 0 var(--outline), 0 4px 0 0 var(--outline),
    -4px 0 0 0 var(--outline), 4px 0 0 0 var(--outline);
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-family: var(--font-pixel);
  font-size: 1.2rem;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  font-size: 1.4rem;
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 3px 0 0 var(--gold-deep);
}
.faq-list details[open] summary::after { content: "-"; background: var(--portal); box-shadow: 0 3px 0 0 var(--portal-deep); }
.faq-list details[open] summary { color: var(--gold); }
.faq-list summary:focus-visible { outline-offset: 6px; }
.faq-list .answer { padding: 0 1.25rem 1.25rem; color: var(--parchment-dim); }

/* ---------- Press ---------- */
.press-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 56rem) {
  .press-grid { grid-template-columns: 1.4fr 1fr; }
}
.fact-sheet {
  margin: 0;
  padding: 1.5rem;
  background: var(--cave-800);
  box-shadow:
    0 -4px 0 0 var(--outline), 0 4px 0 0 var(--outline),
    -4px 0 0 0 var(--outline), 4px 0 0 0 var(--outline);
}
.fact-sheet div {
  display: grid;
  grid-template-columns: minmax(7.5rem, 11rem) 1fr;
  gap: 0.25rem 1rem;
  padding: 0.7rem 0;
  border-bottom: 2px dashed var(--cave-600);
}
.fact-sheet div:first-child { padding-top: 0; }
.fact-sheet div:last-child { border-bottom: 0; padding-bottom: 0; }
.fact-sheet dt { font-family: var(--font-pixel); color: var(--gold); }
.fact-sheet dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 26rem) {
  .fact-sheet div { grid-template-columns: 1fr; }
}
.selectable { user-select: all; -webkit-user-select: all; font-weight: 700; }
.press-aside p { color: var(--parchment-dim); }
.press-aside .btn { margin-top: 0.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(2rem, 6vw, 4rem);
  padding-block: 3rem 2.5rem;
  background: var(--cave-900);
  border-top: var(--px) solid var(--outline);
  box-shadow: 0 -1px 0 rgba(255, 197, 46, 0.12);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand p { margin-top: 0.75rem; color: var(--parchment-mute); max-width: 24rem; }
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.socials a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--parchment);
  background: var(--cave-700);
  box-shadow: 0 3px 0 0 var(--outline);
}
.socials a:hover { color: var(--ink); background: var(--gold); }
.socials svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 2rem 0 0;
  padding: 1.5rem 0 0;
  list-style: none;
  border-top: 2px dashed var(--cave-700);
  font-family: var(--font-pixel);
}
.footer-links a { color: var(--parchment); text-decoration: none; }
.footer-links a:hover { color: var(--gold); text-decoration: underline; }
.copyright { margin-top: 1.25rem; font-size: 0.9rem; color: var(--parchment-mute); }

/* ---------- Simple pages (privacy, 404) ---------- */
@media (max-width: 26rem) { .hide-xs { display: none; } .wordmark { font-size: 1.2rem; } }
.page-main { padding-block: clamp(3rem, 8vw, 5rem); }
.prose { max-width: 44rem; }
.prose h2 { margin-top: 2.25rem; font-size: 1.5rem; color: var(--gold); }
.prose p, .prose li { color: var(--parchment-dim); }
.prose ul { padding-left: 1.25rem; }
.lost {
  display: grid;
  justify-items: start;
  gap: 1rem;
  min-height: 60vh;
  align-content: center;
}
.lost .big {
  font-family: var(--font-pixel);
  font-size: clamp(5rem, 20vw, 10rem);
  line-height: 0.9;
  color: var(--ember);
  text-shadow: 6px 6px 0 var(--outline);
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .glint { display: none; }
  .noise-meter i { opacity: 1; }
  .sleep-meter .fill { width: 72%; }
}

@media print {
  .site-header, .trailer-frame, .signup, .socials { display: none; }
  body { background: #fff; color: #000; }
}
