/* ==========================================================================
   Extraction Raider — marketing site
   ========================================================================== */

/* Saira, self-hosted (OFL) so the site makes no third-party requests */
@font-face {
  font-family: "Saira"; font-style: normal; font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
  src: url("../assets/fonts/saira-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Saira"; font-style: normal; font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
  src: url("../assets/fonts/saira-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* page ground: cool white so the violet/cyan brand colours sit on it cleanly (2026-10-09) */
  --ground-rgb: 238, 244, 250;
  --ground-hi-rgb: 248, 251, 254;
  --cream: rgb(var(--ground-rgb));
  --cream-hi: rgb(var(--ground-hi-rgb));
  --sky-pale: var(--violet-pale);
  /* brand colours = the logo's colours (2026-10-09): violet leads, cyan glows on dark, orange is a rare accent */
  --violet: #7d0ce5;      /* logo 电紫: primary buttons, active marks */
  --violet-hi: #9a3cf5;   /* hover */
  --violet-ink: #5b08b0;  /* violet text / thin lines on cream */
  --cyan: #03f2fb;        /* logo 裂缝青: only on dark surfaces (hero, footer) */
  --cyan-ink: #00727c;    /* cyan family on cream, where #03f2fb is too light */
  --magenta: #e806f8;     /* logo 字边品红 */
  --orange: #fc6520;      /* logo 碎片橙: accent only, never a main colour */
  --violet-pale: #efe8fb;

  --ink: #1c1440;         /* deep indigo, from the logo's ground */
  --muted: #4f4868;
  --faint: #827c98;
  --line: rgba(28, 20, 64, 0.12);
  --line-strong: rgba(28, 20, 64, 0.24);
  --beacon: var(--violet);
  --beacon-hi: var(--violet-hi);
  --on-beacon: #ffffff;
  --sky: var(--cyan-ink);
  --sky-ink: var(--violet-ink);
  --teal: var(--cyan-ink);
  --teal-ink: var(--cyan-ink);
  --error: #b0124f;
  --cream-a0: rgba(var(--ground-rgb), 0);

  --font-display: "Saira", "Arial Narrow", Impact, sans-serif;
  --font-body: "Saira", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 5vw, 96px);
  --nav-h: 72px;
  --radius: 5px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--beacon); color: var(--on-beacon); }
:focus-visible { outline: 2px solid var(--sky-ink); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; background: var(--beacon); color: var(--on-beacon); font-weight: 600;
  border-radius: var(--radius);
}
.skip-link:focus { top: 16px; }

/* ---------- Type ---------- */

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sky-ink);
  margin-bottom: 24px;
}
.eyebrow .idx { color: var(--ink); }

.display {
  font-family: var(--font-display); font-stretch: 75%;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.01em;
  font-size: clamp(48px, 7vw, 120px);
  max-width: 11ch;
  color: var(--ink);
}
.display--xl { font-size: clamp(56px, 9vw, 168px); max-width: 12ch; }

.lede {
  margin-top: 28px;
  max-width: 34ch;
  font-size: clamp(16px, 1.25vw, 19px);
  color: var(--muted);
}

.wordmark {
  font-family: var(--font-display); font-stretch: 75%;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
}
.wordmark--lg { font-size: clamp(36px, 6vw, 72px); letter-spacing: 0.02em; }
/* logo image (v1, 2026-10-09): glow version everywhere; the violet glow keeps it readable on the cream nav bar */
.wordmark { display: inline-flex; align-items: center; }
.wordmark__img { display: block; height: 66px; width: auto; margin: -6px 0 -6px -10px; }
/* glow logo while the bar is transparent over the light hero art, plain logo once it turns solid */
.wordmark__img--glow { height: 74px; margin: -10px 0 -10px -14px; }
.wordmark__img--glow, .nav.is-solid .wordmark__img--plain, .nav.is-menu-open .wordmark__img--plain { display: block; }
.wordmark__img--plain, .nav.is-solid .wordmark__img--glow, .nav.is-menu-open .wordmark__img--glow { display: none; }
.wordmark--lg .wordmark__img { height: clamp(140px, 16vw, 220px); margin: -24px 0 -24px -18px; }
/* glow cut (light backgrounds): canvas is ~12% wider than the letters, so size it up to match */
.hero__logo { display: block; width: clamp(290px, 33.6vw, 515px); height: auto; margin: -2% 0 4px -7%; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 28px;
  font-family: var(--font-display); font-stretch: 75%; font-weight: 700; font-size: 20px;
  letter-spacing: 0.06em; text-transform: uppercase; line-height: 1;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease),
              transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn--primary { background: var(--beacon); color: var(--on-beacon); }
.btn--primary:hover {
  background: var(--beacon-hi);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -10px rgba(28, 20, 64, 0.45);
}
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--sm { min-height: 40px; padding: 0 20px; font-size: 17px; }
.btn:active { transform: translateY(0); box-shadow: none; }

.btn--store { padding: 0 26px 0 20px; min-width: 228px; justify-content: flex-start; }
.btn__stack { display: flex; flex-direction: column; align-items: flex-start; font-size: 22px; }
.btn__stack small {
  font-family: var(--font-body); font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; margin-bottom: 4px; opacity: 0.8;
}
/* one orange button per group: the second store button is the secondary style */
.store-row .btn--store + .btn--store { background: transparent; color: var(--ink); border-color: var(--ink); }
.store-row .btn--store + .btn--store:hover {
  background: var(--ink); color: var(--cream); border-color: var(--ink);
  transform: none; box-shadow: none;
}

.glyph { width: 24px; height: 24px; flex: none; }
.glyph--sm { width: 16px; height: 16px; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  transition: color .2s, border-color .2s;
}
.text-link:hover { color: var(--sky-ink); border-color: var(--sky); }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.store-row--center { justify-content: center; }
.link-row { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 24px; }

/* ---------- Image slots (graceful when file is missing) ---------- */

.media {
  position: absolute; inset: 0; overflow: hidden; display: block;
  background-color: var(--sky-pale);
}
.media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.media img.is-loaded { opacity: 1; }
.media img.is-missing { display: none; }

/* bright fallbacks — each slot reads as a deliberate daylight plate */
.media--hero {
  background:
    radial-gradient(22% 30% at 62% 26%, rgba(120, 200, 170, 0.55), transparent 70%),
    radial-gradient(55% 35% at 30% 82%, rgba(255, 236, 246, 0.45), transparent 70%),
    linear-gradient(170deg, #4f4fd6 0%, #7a63e0 38%, #c97ad6 66%, #f2a7c4 100%);
}
.media--hero img { object-position: 85% 50%; }
.media--raid {
  background:
    radial-gradient(50% 45% at 28% 40%, rgba(255, 255, 255, 0.7), transparent 70%),
    radial-gradient(60% 40% at 20% 100%, rgba(140, 206, 128, 0.55), transparent 70%),
    linear-gradient(190deg, #8fcdf4 0%, #d6eefa 40%, var(--cream-hi) 70%, var(--cream) 100%);
}
/* raid art: the hero already stands left, no mirroring */
.media--raid img { object-position: 50% 50%; }
.media--alliance {
  background:
    radial-gradient(55% 50% at 28% 45%, rgba(255, 255, 255, 0.55), transparent 70%),
    radial-gradient(70% 55% at 20% 100%, rgba(98, 186, 122, 0.55), transparent 70%),
    linear-gradient(200deg, #f7f2e6 0%, #e8f5e3 45%, #b2e2b8 100%);
}
.media--alliance img { object-position: 100% 50%; }
.media--base img { object-position: 0% 50%; }
.media--base {
  background:
    radial-gradient(22% 30% at 74% 32%, rgba(255, 246, 226, 0.95), rgba(255, 246, 226, 0) 70%),
    radial-gradient(60% 45% at 70% 70%, rgba(255, 255, 255, 0.6), transparent 70%),
    linear-gradient(180deg, #74bcf0 0%, #cbe8f8 45%, #fdf7ec 75%, #f9ead2 100%);
}
.media--jungle {
  background:
    radial-gradient(45% 40% at 62% 32%, rgba(255, 255, 255, 0.6), transparent 70%),
    radial-gradient(80% 60% at 50% 100%, rgba(84, 176, 110, 0.6), transparent 70%),
    linear-gradient(175deg, #93d0f3 0%, #def2f4 45%, #d9f0d4 70%, #a9dcaa 100%);
}
.media--trailer {
  background:
    radial-gradient(45% 50% at 50% 40%, rgba(255, 255, 255, 0.7), transparent 70%),
    radial-gradient(70% 45% at 30% 100%, rgba(120, 200, 140, 0.45), transparent 70%),
    linear-gradient(165deg, #6fb9ec 0%, #c2e3f7 45%, #f4f9fb 75%, #f8f1e2 100%);
}

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
/* solid bar is deep indigo so the logo (white letters + violet glow) reads at full contrast (2026-10-09) */
.nav.is-solid {
  background: var(--ink);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.nav.is-solid .nav__menu a:not(.btn) { color: var(--cream-hi); }
.nav.is-solid .nav__menu a:not(.btn):hover { border-color: var(--cyan); }
.nav.is-solid .nav__toggle span { background: var(--cream-hi); }
.nav.is-solid :focus-visible { outline-color: var(--cyan); }
/* the base violet sinks into the indigo bar (about 1.8:1), so the button steps up one shade there */
.nav.is-solid .btn--primary { background: var(--violet-hi); }
.nav.is-solid .btn--primary:hover { background: #ad5cff; }
.nav__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
}
.nav__menu { display: flex; align-items: center; gap: 36px; }
.nav__menu a:not(.btn) {
  font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1.5px solid transparent;
  padding: 4px 0;
  transition: border-color .2s;
}
.nav__menu a:not(.btn):hover { border-color: var(--beacon); }
.nav__cta { margin-left: 12px; }
/* transparent over the hero art: cream-white ink until the bar turns solid */
.nav:not(.is-solid):not(.is-menu-open) .wordmark,
.nav:not(.is-solid):not(.is-menu-open) .nav__menu a:not(.btn) {
  color: var(--cream-hi);
  text-shadow: 0 0 10px rgba(24, 20, 70, 0.7), 0 1px 2px rgba(24, 20, 70, 0.6);
}
.nav:not(.is-solid):not(.is-menu-open) .nav__toggle span { background: var(--cream-hi); box-shadow: 0 0 6px rgba(24, 20, 70, 0.6); }
.nav:not(.is-solid):not(.is-menu-open) :focus-visible { outline-color: var(--cream-hi); }

.nav__toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav__toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 640px;
  overflow: hidden;
  display: flex; align-items: flex-start;
}
.hero__media {
  position: absolute; inset: -6% 0 -6% 0;
  will-change: transform;
}
/* violet-navy scrim from the left edge only: just enough for cream text */
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(30, 26, 84, 0.5) 0%, rgba(30, 26, 84, 0) 15%),
    linear-gradient(90deg, rgba(30, 26, 84, 0.62) 0%, rgba(30, 26, 84, 0.5) 34%, rgba(30, 26, 84, 0) 56%);
}
.hero__fog { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fog {
  position: absolute; left: -50%; width: 200%; height: 55%; bottom: 4%;
  opacity: 0.7;
  background:
    radial-gradient(22% 38% at 18% 70%, rgba(255, 255, 255, 0.55), transparent 70%),
    radial-gradient(20% 34% at 48% 78%, rgba(255, 255, 255, 0.45), transparent 70%),
    radial-gradient(26% 40% at 78% 66%, rgba(255, 255, 255, 0.4), transparent 70%);
  filter: blur(18px);
  animation: fog-drift 80s linear infinite alternate;
}
@keyframes fog-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(20%, -2%, 0); }
}

/* copy sits left in the clean upper-middle sky, clear of the crew on the right */
.hero__content {
  position: relative; z-index: 2;
  padding: 22vh var(--gutter) 64px; padding-top: 22svh;
  max-width: max(42vw, 560px);
}
.hero .eyebrow { color: var(--cream-hi); margin-bottom: 20px; }
.hero__title {
  font-family: var(--font-display); font-stretch: 75%;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(52px, 6.4vw, 120px);
  line-height: 0.86;
  letter-spacing: -0.015em;
  color: var(--cream-hi);
}
.hero__lede {
  margin-top: 24px; max-width: 34ch;
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 500;
  color: var(--cream-hi);
}
.hero .store-row { margin-top: 32px; }
.hero .store-row .btn--store + .btn--store { color: var(--cream-hi); border-color: var(--cream-hi); }
.hero .store-row .btn--store + .btn--store:hover { background: var(--cream-hi); color: var(--ink); border-color: var(--cream-hi); }
.hero .text-link { color: var(--cream-hi); }
.hero .text-link:hover { color: var(--cream-hi); border-color: var(--cyan); }
.hero :focus-visible { outline-color: var(--cream-hi); }

.scroll-cue {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--cream-hi);
}
.scroll-cue span { writing-mode: vertical-rl; }
.scroll-cue i {
  display: block; width: 1.5px; height: 56px; position: relative; overflow: hidden;
  background: rgba(var(--ground-hi-rgb), 0.4);
}
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
  background: var(--cyan);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { to { top: 100%; } }

/* ---------- Story panels (Raid / Base / Alliance) ---------- */

.panel {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
.panel__scrim { position: absolute; inset: 0; pointer-events: none; }
.panel--left .panel__scrim {
  background:
    linear-gradient(90deg, rgba(var(--ground-hi-rgb), 0.9) 0%, rgba(var(--ground-hi-rgb), 0.55) 34%, var(--cream-a0) 62%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-a0) 14%, var(--cream-a0) 86%, var(--cream) 100%);
}
.panel--right .panel__scrim {
  background:
    linear-gradient(270deg, rgba(var(--ground-hi-rgb), 0.9) 0%, rgba(var(--ground-hi-rgb), 0.55) 34%, var(--cream-a0) 62%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-a0) 14%, var(--cream-a0) 86%, var(--cream) 100%);
}
.panel__content {
  position: relative; z-index: 2;
  width: 100%;
  padding: 120px var(--gutter);
}
.panel__body { max-width: min(480px, 38vw); }
.panel--right .panel__body { margin-left: auto; }
.panel .display { font-size: clamp(44px, 5.6vw, 96px); max-width: 12ch; }
.panel .lede { color: var(--ink); }

/* per-art scrims: warm white on the copy side, only as strong as each plate needs */
.media--raid + .panel__scrim {
  background:
    linear-gradient(270deg, rgba(var(--ground-hi-rgb), 0.84) 0%, rgba(var(--ground-hi-rgb), 0.8) 40%, var(--cream-a0) 56%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-a0) 14%, var(--cream-a0) 86%, var(--cream) 100%);
}
.media--base + .panel__scrim {
  background:
    linear-gradient(90deg, rgba(var(--ground-hi-rgb), 0.88) 0%, rgba(var(--ground-hi-rgb), 0.8) 32%, rgba(var(--ground-hi-rgb), 0.4) 44%, var(--cream-a0) 56%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-a0) 14%, var(--cream-a0) 86%, var(--cream) 100%);
}
.media--alliance + .panel__scrim {
  background:
    linear-gradient(270deg, rgba(var(--ground-hi-rgb), 0.88) 0%, rgba(var(--ground-hi-rgb), 0.82) 40%, rgba(var(--ground-hi-rgb), 0.5) 46%, var(--cream-a0) 57%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-a0) 14%, var(--cream-a0) 86%, var(--cream) 100%);
}

/* three compact steps: label + one line, split by hairlines */
.steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 40px;
  border-top: 1px solid var(--line-strong);
}
.steps li { padding: 18px 18px 0; border-left: 1px solid var(--line-strong); }
.steps li:first-child { padding-left: 0; border-left: 0; }
.steps li:last-child { padding-right: 0; }
.steps h3 {
  font-family: var(--font-display); font-stretch: 75%; font-weight: 700; text-transform: uppercase;
  font-size: 22px; letter-spacing: 0.04em; line-height: 1; margin-bottom: 8px;
  color: var(--ink);
}
.steps p { font-size: 14px; line-height: 1.45; color: var(--ink); }

/* ---------- Generic section ---------- */

.section { position: relative; padding: clamp(120px, 16vh, 200px) var(--gutter); }
.section__head { margin-bottom: clamp(48px, 7vw, 96px); }

/* ---------- World ---------- */

.world__panel {
  position: relative;
  aspect-ratio: 21 / 9;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--sky-pale);
}
.world__view { position: absolute; inset: 0; }
.world__view[hidden] { display: none; }
.world__view.is-active { animation: view-in .7s var(--ease); }
@keyframes view-in { from { opacity: 0; } to { opacity: 1; } }

.world__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(var(--ground-hi-rgb), 0.92) 0%, rgba(var(--ground-hi-rgb), 0.5) 26%, rgba(var(--ground-hi-rgb), 0) 55%);
}
.world__caption {
  position: absolute; left: clamp(20px, 4vw, 56px); right: clamp(20px, 4vw, 56px); bottom: clamp(24px, 4vw, 56px);
}
.world__name {
  font-family: var(--font-display); font-stretch: 75%; font-weight: 700; text-transform: uppercase;
  font-size: clamp(44px, 6vw, 104px); line-height: 0.9;
  color: var(--ink);
}
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  margin-bottom: 16px;
}
.tag::before { content: ""; width: 6px; height: 6px; background: currentColor; }
.tag--live { color: var(--teal-ink); }
.tag--live::before { background: var(--teal); }
.tag--locked { color: var(--muted); }

/* locked biome: pale survey plate, mid-tone navy ridge silhouette and lock */
.world__view--locked .world__name { color: #5d6c7a; }
.locked__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, #c6d6e3 0%, #c6d6e3 100%) bottom / 100% 22% no-repeat,
    repeating-linear-gradient(135deg, rgba(28, 20, 64, 0.04) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, #f1f7fb 0%, #e3eef6 100%);
}
.locked__bg::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 22%; height: 34%;
  background: #c6d6e3;
  clip-path: polygon(0 100%, 0 62%, 9% 40%, 17% 58%, 28% 18%, 37% 46%, 46% 30%, 55% 62%, 64% 22%, 74% 50%, 83% 34%, 92% 60%, 100% 44%, 100% 100%);
}
.locked__bg::after {
  content: ""; position: absolute; right: clamp(20px, 4vw, 56px); top: clamp(20px, 4vw, 56px);
  width: clamp(40px, 4vw, 56px); height: clamp(40px, 4vw, 56px);
  background: #6b7a88;
  -webkit-mask: var(--lock-icon) center / contain no-repeat;
  mask: var(--lock-icon) center / contain no-repeat;
}
.locked__note { margin-top: 16px; max-width: 40ch; color: var(--muted); font-size: 15px; }

:root {
  --lock-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1.5c.8 0 1.5.7 1.5 1.5v9c0 .8-.7 1.5-1.5 1.5h-13C4.7 22 4 21.3 4 20.5v-9C4 10.7 4.7 10 5.5 10H7zm2 0h6V7a3 3 0 0 0-6 0v3zm3 4a1.6 1.6 0 0 0-1 2.9V19h2v-2.1a1.6 1.6 0 0 0-1-2.9z' fill='%23000'/%3E%3C/svg%3E");
}

.world__tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
  margin-top: 2px;
}
.tile {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  text-align: left;
  padding: 16px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: #eef4f8;
  isolation: isolate;
}
.tile__bg { position: absolute; inset: 0; z-index: -1; }
.tile__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity .4s, transform .8s var(--ease); }
.tile__bg img.is-missing { display: none; }
.tile__bg--jungle {
  background:
    radial-gradient(70% 60% at 50% 100%, rgba(84, 176, 110, 0.55), transparent 70%),
    linear-gradient(175deg, #a7d8f3 0%, #e2f3f2 55%, #cdebc8 100%);
}
.tile__bg--jungle::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(var(--ground-rgb), 0.85) 0%, var(--cream-a0) 60%);
}
.tile--locked .tile__bg {
  background:
    repeating-linear-gradient(135deg, rgba(28, 20, 64, 0.035) 0 1px, transparent 1px 10px),
    linear-gradient(180deg, #f3f8fb 0%, #e7f0f6 100%);
}
.tile--locked .tile__bg::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: #cddbe6;
  clip-path: polygon(0 100%, 0 55%, 14% 30%, 26% 52%, 42% 12%, 58% 46%, 72% 24%, 86% 50%, 100% 34%, 100% 100%);
}
.tile--locked .tile__bg::after {
  content: ""; position: absolute; right: 14px; top: 14px; width: 18px; height: 18px;
  background: #6b7a88;
  -webkit-mask: var(--lock-icon) center / contain no-repeat;
  mask: var(--lock-icon) center / contain no-repeat;
}
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 0 0 transparent;
  transition: box-shadow .3s var(--ease);
}
.tile.is-active::after { box-shadow: inset 0 0 0 1.5px var(--beacon), inset 0 -3px 0 var(--beacon); }
.tile:hover .tile__bg img { opacity: 1; transform: scale(1.04); }
.tile__tag {
  font-size: 10px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.tile:not(.tile--locked) .tile__tag { color: var(--teal-ink); }
.tile__name {
  font-family: var(--font-display); font-stretch: 75%; font-weight: 700; text-transform: uppercase;
  font-size: clamp(18px, 1.8vw, 28px); line-height: 1;
  color: var(--ink);
}
.tile--locked .tile__name { color: #5d6c7a; }
.tile--locked:hover .tile__name, .tile--locked.is-active .tile__name { color: var(--ink); }

/* ---------- Media ---------- */

.media-section { background: var(--sky-pale); }
.trailer-cover {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
}
.trailer-cover .media img { transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.trailer-cover:hover .media img.is-loaded { transform: scale(1.03); }
.trailer-cover__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(var(--ground-hi-rgb), 0.85) 0%, rgba(var(--ground-hi-rgb), 0.25) 26%, rgba(var(--ground-hi-rgb), 0) 50%);
}
.play {
  position: absolute; left: 50%; top: 50%;
  width: clamp(72px, 9vw, 120px); height: clamp(72px, 9vw, 120px);
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--cream-hi);
  color: var(--ink);
  box-shadow: 0 10px 30px -12px rgba(28, 20, 64, 0.35);
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.play svg { width: 34%; height: 34%; margin-left: 6%; }
.trailer-cover:hover .play, .trailer-cover:focus-visible .play {
  background: var(--beacon); color: var(--on-beacon);
  transform: translate(-50%, -50%) scale(1.04);
}
.trailer-cover__label {
  position: absolute; left: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 36px);
  font-size: 12px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink);
}

/* ---------- Pre-register ---------- */

.prereg { text-align: center; overflow: hidden; padding-top: clamp(140px, 20vh, 240px); padding-bottom: clamp(140px, 20vh, 240px); }
.prereg__glow {
  position: absolute; left: 50%; bottom: -30%; width: 120%; height: 90%;
  transform: translateX(-50%);
  background:
    radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, 0.7), transparent 70%);
  pointer-events: none;
}
.prereg__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.prereg .display { margin: 0 auto; }

.notify { width: 100%; max-width: 520px; margin-top: 64px; text-align: left; }
.notify__label {
  display: block; margin-bottom: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.notify__row { display: flex; gap: 8px; }
.notify__input {
  flex: 1; min-width: 0; min-height: 56px; padding: 0 18px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--cream-hi);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color .2s;
}
.notify__input::placeholder { color: var(--faint); }
.notify__input:focus { outline: none; border-color: var(--sky); }
.notify__input[aria-invalid="true"] { border-color: var(--error); }
.notify__msg { min-height: 24px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.notify__msg.is-error { color: var(--error); font-weight: 500; }
.notify.is-done .notify__row { display: none; }
.notify.is-done { text-align: center; }
.notify.is-done .notify__msg {
  display: inline-flex; flex-direction: column; align-items: center; gap: 14px;
  width: 100%;
  font-family: var(--font-display); font-stretch: 75%; font-weight: 700; text-transform: uppercase;
  font-size: 32px; letter-spacing: 0.02em; color: var(--ink);
}
.notify.is-done .notify__msg::before {
  content: ""; width: 40px; height: 2px; background: var(--teal);
}
.text-link--center { margin-top: 32px; }

/* ---------- Footer (the one dark block) ---------- */

.footer {
  background: var(--ink); color: var(--cream);
  padding: 72px var(--gutter) 40px;
}
.footer .wordmark { color: var(--cream); }
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "mark social"
    "links links"
    "legal legal";
  row-gap: 40px; column-gap: 24px; align-items: center;
}
.footer .wordmark { grid-area: mark; }
.footer__social { grid-area: social; display: flex; gap: 8px; }
.footer__social a {
  display: grid; place-items: center; width: 44px; height: 44px;
  color: rgba(var(--ground-rgb), 0.8); border: 1px solid rgba(var(--ground-rgb), 0.2);
  border-radius: var(--radius);
  transition: color .2s, border-color .2s;
}
.footer__social a:hover { color: var(--cream); border-color: var(--cyan); }
.footer__social svg { width: 18px; height: 18px; }
.footer__links { grid-area: links; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.footer__links a {
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(var(--ground-rgb), 0.8);
}
.footer__links a:hover { color: var(--cream); }
.footer__legal { grid-area: legal; font-size: 13px; color: rgba(var(--ground-rgb), 0.62); }
.footer :focus-visible { outline-color: var(--cyan); }

/* ---------- Modal ---------- */

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(28, 20, 64, 0.7); animation: fade-in .3s var(--ease); }
.modal__dialog {
  position: relative; width: min(1200px, 100%);
  padding: 16px;
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -24px rgba(28, 20, 64, 0.5);
  animation: dialog-in .45s var(--ease);
}
.modal__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.modal__title { font-size: 12px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink); }
.modal__close {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1.5px solid var(--line-strong); color: var(--ink);
  border-radius: var(--radius);
  transition: border-color .2s, background-color .2s, color .2s;
}
.modal__close:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.modal__close svg { width: 18px; height: 18px; }
.modal__frame { position: relative; aspect-ratio: 16 / 9; background: var(--sky-pale); overflow: hidden; border-radius: 3px; }
.modal__video { width: 100%; height: 100%; display: block; background: var(--ink); }
.modal__placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background:
    radial-gradient(45% 40% at 50% 40%, rgba(255, 255, 255, 0.7), transparent 70%),
    linear-gradient(175deg, #a9d6f2 0%, #def0f9 50%, var(--cream-hi) 80%, var(--cream) 100%);
}
.modal__placeholder .eyebrow { margin-bottom: 12px; color: var(--sky-ink); }
.modal__soon {
  font-family: var(--font-display); font-stretch: 75%; font-weight: 700; text-transform: uppercase;
  font-size: clamp(32px, 5vw, 72px); line-height: 0.95;
  color: var(--ink);
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(0.985); } }

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .world__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .world__panel { aspect-ratio: 16 / 10; }
}

@media (max-width: 820px) {
  :root { --nav-h: 64px; }

  .nav__toggle { display: block; z-index: 2; }
  .nav__menu {
    position: fixed; inset: 0;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px;
    padding: var(--nav-h) var(--gutter) 48px;
    background: var(--ink);
    opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), visibility 0s linear .35s;
  }
  .nav__menu.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
  .nav__menu a:not(.btn) {
    font-family: var(--font-display); font-stretch: 75%; font-weight: 700; font-size: 48px; letter-spacing: 0.01em; line-height: 1;
    color: var(--cream-hi);
  }
  .nav__cta { margin: 16px 0 0; min-height: 56px; font-size: 20px; }
  .nav.is-menu-open { background: var(--ink); border-bottom-color: rgba(255, 255, 255, 0.08); }
  .nav.is-menu-open .nav__toggle span { background: var(--cream-hi); }
  .nav.is-menu-open .nav__menu a:not(.btn):hover { border-color: var(--cyan); }
  .nav.is-menu-open .btn--primary { background: var(--violet-hi); }
  .nav .wordmark { position: relative; z-index: 2; }

  .hero { align-items: flex-end; }
  .hero__content { padding: 0 var(--gutter) 56px; max-width: 100%; }
  .hero .eyebrow { margin-bottom: 14px; }
  .hero__lede { margin-top: 16px; }
  .hero .store-row { margin-top: 22px; }
  .hero .link-row { margin-top: 14px; gap: 20px; }
  .media--hero img { object-position: 79% 50%; }
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(30, 26, 84, 0.42) 0%, rgba(30, 26, 84, 0) 12%),
      linear-gradient(0deg, rgba(30, 26, 84, 0.9) 0%, rgba(30, 26, 84, 0.78) 48%, rgba(30, 26, 84, 0) 74%);
  }
  .scroll-cue { display: none; }

  /* stacked: art on top, copy below on cream, so text never sits on the characters */
  .panel { display: block; min-height: 0; --panel-media-h: min(112vw, 64svh); }
  .panel .media { bottom: auto; height: var(--panel-media-h); }
  .panel .media + .panel__scrim {
    bottom: auto; height: var(--panel-media-h);
    background:
      linear-gradient(0deg, var(--cream) 0%, var(--cream-a0) 26%),
      linear-gradient(180deg, var(--cream) 0%, var(--cream-a0) 14%);
  }
  .panel__content { padding: calc(var(--panel-media-h) - 12px) var(--gutter) 80px; }
  .panel__body, .panel--right .panel__body { max-width: none; margin-left: 0; }
  .media--raid img { object-position: 22% 50%; }
  .media--base img { object-position: 70% 50%; }
  .media--alliance img { object-position: 18% 50%; }
  .steps { grid-template-columns: 1fr; margin-top: 32px; }
  .steps li, .steps li:first-child { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line-strong); }
  .steps h3 { margin-bottom: 4px; }

  .world__panel { aspect-ratio: 4 / 5; min-height: 0; }
}

@media (max-width: 560px) {
  .nav .wordmark { font-size: 19px; }
  .nav .wordmark__img { height: 52px; }
  .nav .wordmark__img--glow { height: 58px; margin: -8px 0 -8px -12px; }
  .hero__logo { width: min(80vw, 336px); }
  .store-row { flex-direction: column; }
  .btn--store { width: 100%; }
  .world__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notify__row { flex-direction: column; }
  .footer__inner {
    grid-template-columns: 1fr;
    grid-template-areas: "mark" "social" "links" "legal";
  }
}

@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;
  }
  .fog { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__media { transform: none !important; }
  .btn--primary:hover { transform: none; }
}

/* ===== hero widgets: top-right follow row, bottom-center download dock ===== */
.hero__side {
  position: absolute; z-index: 3; top: 96px; right: var(--gutter);
  display: flex; flex-direction: column; gap: 14px; align-items: flex-end;
}
.follow-row { display: flex; align-items: center; gap: 10px; }
.follow-row__label {
  font-family: var(--font-display); font-stretch: 75%; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 15px; color: var(--cream-hi); margin-right: 2px;
}
.follow-ico {
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  color: var(--cream-hi); background: rgba(20, 18, 60, 0.35); transition: background .15s, transform .15s;
}
.follow-ico svg { width: 19px; height: 19px; }
.follow-ico:hover { background: rgba(20, 18, 60, 0.6); transform: translateY(-1px); }
.hero__dock {
  position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  background: rgba(20, 18, 60, 0.45); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18); border-radius: 16px; padding: 12px 16px;
}
.dock-qr { border-radius: 8px; display: block; background: #fff; padding: 3px; }
.btn--dock { white-space: nowrap; color: var(--cream-hi); }
@media (max-width: 900px) {
  .hero__side { top: 84px; right: 14px; }
  /* dock drops into flow: stack it under the copy instead of beside it */
  .hero { flex-direction: column; justify-content: flex-end; align-items: stretch; }
  .hero__content { padding-bottom: 0; }
  .hero__dock { position: relative; left: auto; bottom: auto; transform: none; margin: 20px var(--gutter) 24px; flex-wrap: wrap; justify-content: center; }
  .dock-qr { display: none; }
}
@media (max-width: 560px) {
  /* one compact row on phones: icon + store name only */
  .hero__dock { flex-wrap: nowrap; gap: 6px; padding: 8px; }
  .hero__dock .btn--dock { width: auto; min-width: 0; flex: 1 1 0; padding: 0 8px; justify-content: center; gap: 6px; }
  .hero__dock .btn__stack { font-size: 13px; }
  .hero__dock .btn__stack small { display: none; }
  .hero__dock .glyph { width: 16px; height: 16px; }
}

/* ===== standalone pre-register page (preregister.html) — kept separate so it can be hidden later ===== */
.page-prereg .prereg { min-height: calc(100vh - 160px); display: flex; align-items: center; justify-content: center; }
.prereg__lede { max-width: 520px; margin: 24px auto 0; }
.prereg__discord { margin-top: 40px; }
.store-row--soon { margin-top: 28px; }
.btn--soon,
.store-row .btn--store.btn--soon + .btn--store.btn--soon {
  background: transparent; color: var(--muted); border-color: rgba(28, 20, 64, 0.22); cursor: default;
}
.btn--soon:hover,
.store-row .btn--store.btn--soon + .btn--store.btn--soon:hover { background: transparent; color: var(--muted); transform: none; box-shadow: none; }

/* ===== legal pages (privacy.html) ===== */
.page-legal .legal { max-width: 760px; margin: 0 auto; padding-top: clamp(120px, 16vh, 180px); }
.legal .display { font-size: clamp(40px, 6vw, 64px); }
.legal__date { margin-top: 12px; font-size: 14px; color: var(--muted); }
.legal h2 {
  margin: 40px 0 8px;
  font-family: var(--font-display); font-stretch: 75%; font-weight: 700; font-size: 24px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.legal p { margin-top: 12px; line-height: 1.65; }
.legal p a { text-decoration: underline; text-underline-offset: 3px; }
