/* =============================================================
   ROACH KINGDOM WARS — Cinematic Marketing Site
   Design system: underground biolume / AAA game-launch grade
   Zero external assets. Pure CSS + SVG + canvas.
   ============================================================= */

/* ---------- TOKENS ---------- */
:root {
  /* base underworld */
  --bg-0: #07080b;
  --bg-1: #0a0c11;
  --bg-2: #0f131b;
  --bg-glass: rgba(16, 20, 28, 0.62);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* text */
  --ink: #eef2f8;
  --ink-soft: #aab4c4;
  --ink-dim: #6b7587;

  /* brand biolume */
  --ember: #ff8a3d;
  --ember-2: #ff5a2c;
  --teal: #2de2c6;
  --gold: #f5c451;
  --acid: #8bff5a;
  --iron: #5a9bff;
  --crystal: #b15aff;

  /* faction (set by JS) */
  --fac: var(--iron);
  --fac-glow: rgba(90, 155, 255, 0.45);

  /* type */
  --display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --shadow-deep: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
  --radius: 16px;
  --maxw: 1240px;
}

/* ---------- RESET ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--bg-0);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv01";
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ember); color: #1a0b00; }

/* fonts (system fallback if offline — Oswald/Inter optional) */
@font-face { font-family: "Inter"; src: local("Inter"); font-display: swap; }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.02;
  text-transform: uppercase;
}

/* ---------- LAYOUT ---------- */
.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
section { position: relative; padding: clamp(80px, 12vw, 160px) 0; }
.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.78rem;
  color: var(--fac);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--fac); opacity: 0.7; }
.section-title { font-size: clamp(2rem, 5vw, 3.6rem); margin: 18px 0 14px; }
.section-lead { color: var(--ink-soft); max-width: 60ch; font-size: 1.06rem; }

/* ---------- ATMOSPHERE / GRAIN ---------- */
#fx-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.9;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/></svg>");
  mix-blend-mode: overlay; opacity: 0.5;
}
main, header, footer { position: relative; z-index: 2; }

/* ---------- NAV ---------- */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
header.scrolled {
  background: rgba(7, 8, 11, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; letter-spacing: 0.04em; }
.brand .mark {
  width: 34px; height: 34px; flex: none;
  filter: drop-shadow(0 0 10px var(--fac-glow));
  transition: filter 0.4s;
}
.brand b { font-size: 1.05rem; }
.brand span { color: var(--fac); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); transition: color 0.25s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.menu-btn { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; }

/* ---------- BUTTONS ---------- */
.btn {
  --b: var(--fac);
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.82rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line-strong); color: var(--ink);
  background: rgba(255,255,255,0.03);
  transition: transform 0.2s, box-shadow 0.3s, background 0.3s, border-color 0.3s;
  position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn .ico { width: 16px; height: 16px; }
.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--ember), var(--ember-2));
  color: #1a0b00; box-shadow: 0 10px 30px -8px rgba(255, 110, 50, 0.55);
}
.btn-primary:hover { box-shadow: 0 16px 44px -8px rgba(255, 110, 50, 0.7); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { border-color: var(--fac); box-shadow: 0 0 0 1px var(--fac), 0 0 30px -6px var(--fac-glow); }
.btn-fac {
  border-color: transparent;
  background: color-mix(in srgb, var(--fac) 18%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fac) 50%, transparent);
  color: var(--ink);
}
.btn-fac:hover { box-shadow: inset 0 0 0 1px var(--fac), 0 0 36px -8px var(--fac-glow); }

/* ---------- HERO ---------- */
.hero { min-height: 100vh; display: grid; place-items: center; text-align: center; padding-top: 120px; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255,138,61,0.18), transparent 55%),
    radial-gradient(90% 70% at 80% 110%, rgba(45,226,198,0.16), transparent 60%),
    radial-gradient(80% 70% at 15% 100%, rgba(177,90,255,0.14), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 60%, var(--bg-0));
}
.hero-vignette { position: absolute; inset: 0; z-index: -1; box-shadow: inset 0 -160px 200px -60px var(--bg-0), inset 0 120px 180px -80px var(--bg-0); pointer-events: none; }
.hero-inner { max-width: 980px; }
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 16px; border-radius: 100px; margin-bottom: 28px;
  border: 1px solid var(--line-strong); background: var(--bg-glass);
  font-family: var(--display); letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.72rem;
  color: var(--ink-soft); backdrop-filter: blur(8px);
}
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 12px var(--acid); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.hero h1 {
  font-size: clamp(2.8rem, 9vw, 7.5rem);
  line-height: 0.92; margin-bottom: 8px;
  background: linear-gradient(180deg, #fff 20%, #cdd6e6 55%, #8b95a8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 60px rgba(255,138,61,0.12);
}
.hero h1 .glow {
  background: linear-gradient(120deg, var(--ember), var(--gold), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 24px rgba(255,138,61,0.35));
}
.hero .tagline {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.42em;
  font-size: clamp(0.7rem, 2vw, 1rem); color: var(--ink-soft); margin: 22px 0 14px;
}
.hero p.sub { color: var(--ink-soft); font-size: 1.12rem; max-width: 60ch; margin: 0 auto 38px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-dim);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint .bar { width: 1px; height: 40px; background: linear-gradient(var(--fac), transparent); animation: drop 1.8s infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* stat ribbon */
.stat-ribbon { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(24px, 6vw, 70px); margin-top: 64px; }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--ink); }
.stat b .u { color: var(--fac); }
.stat span { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-dim); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; } .reveal.d4 { transition-delay: 0.32s; }

/* ---------- WORLD SECTION ---------- */
.world { padding-top: clamp(60px, 10vw, 120px); }
.world-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.world-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-2), var(--bg-1));
  padding: 30px; box-shadow: var(--shadow-deep);
}
.world-card h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--ink); }
.world-card p { color: var(--ink-soft); font-size: 0.96rem; }
.depth-meter { display: grid; gap: 14px; }
.depth-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.depth-row:last-child { border-bottom: 0; }
.depth-row .nm { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.9rem; }
.depth-row .track { height: 6px; border-radius: 100px; background: rgba(255,255,255,0.06); overflow: hidden; }
.depth-row .fill { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--teal), var(--ember)); }
.depth-row .v { font-size: 0.78rem; color: var(--ink-dim); }

/* ---------- FACTIONS ---------- */
.fac-shell { border-top: 1px solid var(--line); }
.fac-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 44px; }
.fac-tab {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.82rem;
  padding: 12px 20px; border-radius: 100px; cursor: pointer; color: var(--ink-soft);
  border: 1px solid var(--line); background: rgba(255,255,255,0.02); transition: all 0.3s;
  display: inline-flex; align-items: center; gap: 10px;
}
.fac-tab .swatch { width: 12px; height: 12px; border-radius: 3px; }
.fac-tab[aria-selected="true"] { color: var(--ink); border-color: transparent; box-shadow: inset 0 0 0 1px var(--fac), 0 0 30px -10px var(--fac-glow); background: color-mix(in srgb, var(--fac) 12%, transparent); }
.fac-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; min-height: 420px; }
.fac-emblem-wrap { position: relative; display: grid; place-items: center; min-height: 360px; }
.fac-emblem-glow { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, var(--fac-glow), transparent 65%); filter: blur(20px); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: 0.7; } }
.fac-emblem { width: min(320px, 70vw); height: auto; position: relative; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
.fac-body h3 { font-size: clamp(2rem, 5vw, 3rem); color: var(--ink); }
.fac-body .fac-sub { font-family: var(--display); letter-spacing: 0.3em; text-transform: uppercase; font-size: 0.78rem; color: var(--fac); margin-bottom: 18px; }
.fac-body p { color: var(--ink-soft); margin-bottom: 22px; max-width: 46ch; }
.fac-traits { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.fac-traits span { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 13px; border-radius: 100px; border: 1px solid color-mix(in srgb, var(--fac) 40%, transparent); color: var(--ink-soft); }
.fac-meters { display: grid; gap: 12px; max-width: 360px; }
.fac-meter { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: center; }
.fac-meter .lbl { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); }
.fac-meter .track { height: 5px; border-radius: 100px; background: rgba(255,255,255,0.07); overflow: hidden; }
.fac-meter .fill { height: 100%; background: var(--fac); border-radius: 100px; box-shadow: 0 0 12px var(--fac-glow); transition: width 0.7s; }

/* ---------- COMMANDERS ---------- */
.cmd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.cmd-card {
  position: relative; border-radius: var(--radius); padding: 26px; overflow: hidden;
  border: 1px solid var(--line); background: linear-gradient(165deg, var(--bg-2), var(--bg-0));
  min-height: 280px; display: flex; flex-direction: column; justify-content: flex-start;
  transition: transform 0.35s, border-color 0.35s; cursor: default;
}
.cmd-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 80% -10%, var(--cg, var(--iron)), transparent 60%); opacity: 0.16; transition: opacity 0.35s; }
.cmd-card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.cmd-card:hover::before { opacity: 0.3; }
/* tiny character thumbnail card beside each commander's name */
.cmd-head { position: relative; display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cmd-thumb {
  flex: none; width: 72px; height: 72px; border-radius: 14px; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 30%, color-mix(in srgb, var(--cg) 22%, #0a0c11), #06070b);
  border: 1px solid color-mix(in srgb, var(--cg) 55%, transparent);
  box-shadow: 0 8px 22px -10px rgba(0,0,0,0.7), 0 0 26px -10px var(--cg);
  transition: transform 0.35s, box-shadow 0.35s;
}
.cmd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmd-card:hover .cmd-thumb { transform: scale(1.05) rotate(-1deg); box-shadow: 0 10px 28px -10px rgba(0,0,0,0.8), 0 0 34px -8px var(--cg); }
.cmd-headtext { display: flex; flex-direction: column; min-width: 0; }
.cmd-card .role { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cg, var(--iron)); margin-bottom: 6px; position: relative; }
.cmd-card h4 { font-family: var(--display); font-size: 1.4rem; text-transform: uppercase; color: var(--ink); position: relative; line-height: 1.05; }
.cmd-card .cmd-tags { margin-top: auto; }
.cmd-card .ult { font-size: 0.9rem; color: var(--ink-soft); margin-top: 10px; position: relative; }
.cmd-card .ult b { color: var(--ink); }
.cmd-tags { display: flex; gap: 8px; margin-top: 16px; position: relative; }
.cmd-tags span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-dim); padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; }

/* ---------- BIOMES ---------- */
.biome-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 48px; }
.biome {
  position: relative; border-radius: 14px; overflow: hidden; min-height: 200px;
  border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px; transition: transform 0.35s, box-shadow 0.35s; cursor: default;
}
.biome:hover { transform: translateY(-5px) scale(1.01); box-shadow: var(--shadow-deep); }
.biome .scene { position: absolute; inset: 0; z-index: -1; }
.biome .scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.85)); }
.biome h4 { font-family: var(--display); text-transform: uppercase; font-size: 1.02rem; letter-spacing: 0.03em; position: relative; }
.biome p { font-size: 0.78rem; color: var(--ink-soft); position: relative; margin-top: 4px; }
.biome .haz { position: absolute; top: 14px; left: 14px; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 10px; border-radius: 100px; background: rgba(0,0,0,0.5); border: 1px solid var(--line-strong); backdrop-filter: blur(4px); }

/* ---------- FEATURES / LOOP ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.feat {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  background: linear-gradient(165deg, var(--bg-2), var(--bg-1)); transition: border-color 0.3s, transform 0.3s;
}
.feat:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.feat .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: color-mix(in srgb, var(--fac) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fac) 40%, transparent); }
.feat .ic svg { width: 24px; height: 24px; stroke: var(--fac); }
.feat h4 { font-family: var(--display); text-transform: uppercase; font-size: 1.1rem; margin-bottom: 8px; }
.feat p { color: var(--ink-soft); font-size: 0.92rem; }

/* loop band */
.loop { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-top: 48px; }
.loop .node { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.86rem; padding: 12px 20px; border-radius: 100px; border: 1px solid var(--line); background: var(--bg-glass); }
.loop .arr { color: var(--fac); font-size: 1.2rem; }

/* events marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; margin-top: 60px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scrollx 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 1.1rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 14px; }
.marquee-track span::before { content: "◆"; color: var(--fac); font-size: 0.7rem; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- ROADMAP ---------- */
.road { display: grid; gap: 0; margin-top: 50px; }
.phase { display: grid; grid-template-columns: 130px 1fr; gap: 30px; padding: 26px 0; border-top: 1px solid var(--line); }
.phase:last-child { border-bottom: 1px solid var(--line); }
.phase .ph { font-family: var(--display); text-transform: uppercase; }
.phase .ph b { display: block; font-size: 1.6rem; color: var(--fac); }
.phase .ph span { font-size: 0.7rem; letter-spacing: 0.18em; color: var(--ink-dim); }
.phase .body h4 { font-family: var(--display); text-transform: uppercase; font-size: 1.15rem; margin-bottom: 6px; }
.phase .body p { color: var(--ink-soft); font-size: 0.94rem; max-width: 60ch; }
.phase .tag { display: inline-block; margin-top: 10px; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; }
.tag.now { background: color-mix(in srgb, var(--acid) 18%, transparent); color: var(--acid); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acid) 45%, transparent); }
.tag.next { background: color-mix(in srgb, var(--ember) 16%, transparent); color: var(--ember); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ember) 40%, transparent); }
.tag.later { background: rgba(255,255,255,0.05); color: var(--ink-dim); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- CHAIN ---------- */
.chain-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.chain-points { display: grid; gap: 16px; margin-top: 24px; }
.chain-pt { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; }
.chain-pt .ck { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: color-mix(in srgb, var(--teal) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal) 45%, transparent); margin-top: 3px; }
.chain-pt .ck svg { width: 13px; height: 13px; stroke: var(--teal); }
.chain-pt b { color: var(--ink); }
.chain-pt p { color: var(--ink-soft); font-size: 0.92rem; }
.chain-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: linear-gradient(165deg, var(--bg-2), var(--bg-0)); }
.chain-card .rule { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: 0.92rem; }
.chain-card .rule:last-child { border-bottom: 0; }
.chain-card .rule .y { color: var(--acid); } .chain-card .rule .n { color: var(--ember-2); }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta-box {
  border: 1px solid var(--line-strong); border-radius: 24px; padding: clamp(40px, 7vw, 80px);
  background:
    radial-gradient(100% 120% at 50% -20%, rgba(255,138,61,0.18), transparent 60%),
    linear-gradient(165deg, var(--bg-2), var(--bg-0));
  box-shadow: var(--shadow-deep); position: relative; overflow: hidden;
}
.cta-box h2 { font-size: clamp(2rem, 6vw, 4rem); }
.cta-box p { color: var(--ink-soft); max-width: 52ch; margin: 16px auto 32px; font-size: 1.06rem; }
.wishlist { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.wishlist input {
  flex: 1; min-width: 200px; padding: 15px 18px; border-radius: 10px; font-size: 0.95rem;
  background: rgba(0,0,0,0.4); border: 1px solid var(--line-strong); color: var(--ink); font-family: var(--body);
}
.wishlist input:focus { outline: none; border-color: var(--fac); box-shadow: 0 0 0 3px var(--fac-glow); }
.wishlist-note { font-size: 0.78rem; color: var(--ink-dim); margin-top: 16px; }

/* ---------- FOOTER ---------- */
footer { border-top: 1px solid var(--line); padding: 60px 0 40px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; }
.foot .brand { margin-bottom: 14px; }
.foot p { color: var(--ink-dim); font-size: 0.86rem; max-width: 38ch; }
.foot-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.foot-col h5 { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--ink-dim); font-size: 0.88rem; padding: 4px 0; transition: color 0.2s; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 0.8rem; color: var(--ink-dim); }

/* ---------- MODAL (trailer) ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 24px; background: rgba(3,4,6,0.8); backdrop-filter: blur(8px); }
.modal.open { display: grid; }
.modal-inner { width: min(900px, 100%); border: 1px solid var(--line-strong); border-radius: 18px; overflow: hidden; background: var(--bg-1); box-shadow: var(--shadow-deep); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head b { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.1em; }
.modal-close { background: none; border: 1px solid var(--line-strong); color: var(--ink); width: 34px; height: 34px; border-radius: 8px; cursor: pointer; }
.modal-body { aspect-ratio: 16/9; display: grid; place-items: center; position: relative; background: radial-gradient(circle at 50% 40%, rgba(255,138,61,0.12), var(--bg-0)); }
.modal-body .play-fake { text-align: center; color: var(--ink-soft); }
.modal-body .play-fake .ring { width: 86px; height: 86px; border-radius: 50%; border: 2px solid var(--fac); display: grid; place-items: center; margin: 0 auto 18px; box-shadow: 0 0 50px -8px var(--fac-glow); }
.modal-body .play-fake .ring svg { width: 30px; height: 30px; fill: var(--fac); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .world-grid, .fac-stage, .chain-wrap { grid-template-columns: 1fr; gap: 40px; }
  .cmd-grid, .feat-grid { grid-template-columns: 1fr 1fr; }
  .fac-emblem-wrap { min-height: 280px; }
}
@media (max-width: 600px) {
  .cmd-grid, .feat-grid { grid-template-columns: 1fr; }
  .phase { grid-template-columns: 1fr; gap: 10px; }
  .depth-row { grid-template-columns: 100px 1fr; }
  .depth-row .v { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
