/* ============================================================
   Line Tower Wars — landing page
   Gilded Ember design system, cinematic edition.
   The game's own OFL fonts. No external/CDN dependencies.
   ============================================================ */

/* ---- Fonts (the game's own, SIL OFL 1.1) ---- */
@font-face {
  font-family: "Cinzel";
  src: url("assets/fonts/Cinzel.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "MedievalSharp";
  src: url("assets/fonts/MedievalSharp.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

/* ---- Tokens ---- */
:root {
  --ink:        #090c0a;
  --ink-1:      #0b0f0c;
  --panel:      #0f1411;
  --panel-2:    #141a16;
  --card:       #131816;

  --ember:      #ff8a33;
  --ember-deep: #ff7a29;
  --ember-soft: #ffb061;
  --gold:       #d4ae61;
  --gold-soft:  #e6d9bb;

  --parchment:  #f5ecd2;
  --text:       #d7cdb8;
  --text-dim:   #97907f;

  --line:       rgba(212, 174, 97, 0.16);
  --line-soft:  rgba(212, 174, 97, 0.09);

  /* shadows tinted to the ink, never pure black */
  --shadow:     0 24px 60px -20px rgba(4, 7, 5, 0.85);
  --shadow-soft:0 14px 34px -14px rgba(4, 7, 5, 0.7);
  --glow-ember: 0 0 40px -6px rgba(255, 122, 41, 0.55);

  --container:  1200px;
  --radius:     14px;
  --radius-lg:  20px;

  --z-header:   50;
  --z-grain:    80;
  --z-skip:     100;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);

  --display: "Cinzel", Georgia, serif;
  --accent:  "MedievalSharp", "Cinzel", serif;
  --body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--parchment);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

p { margin: 0; }
dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--ember-soft); text-decoration: none; }
a:hover { color: var(--ember); }

img { display: block; max-width: 100%; }
figure { margin: 0; }

::selection { background: rgba(255, 122, 41, 0.32); color: var(--parchment); }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* skip link for keyboard users */
.skip-link {
  position: fixed;
  top: -48px;
  left: 16px;
  z-index: var(--z-skip);
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--parchment);
  font-size: 0.9rem;
  transition: top 0.2s ease;
}
.skip-link:focus-visible { top: 12px; }

/* film grain over everything (non-interactive) */
.grain {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

.eyebrow {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 18px;
}

.gold-text {
  background: linear-gradient(180deg, #fff3da 0%, var(--gold) 55%, #9c7a36 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section {
  position: relative;
  padding: clamp(76px, 11vw, 148px) 0;
}
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }

/* engraved ghost numeral: the floor number of the climb, sunk into the page */
.section-head[data-floor] { position: relative; }
.section-head[data-floor]::before {
  content: attr(data-floor);
  position: absolute;
  left: 50%;
  top: -0.42em;
  transform: translateX(-50%);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(9rem, 16vw, 14rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 174, 97, 0.10);
  z-index: -1;
  pointer-events: none;
}
@media (max-width: 900px) {
  .section-head[data-floor]::before { display: none; }
}
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.section-head p {
  margin-top: 18px;
  font-size: 1.075rem;
  color: var(--text-dim);
  text-wrap: pretty;
}

.hairline {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 0;
}

/* gold ornament divider: line, diamond, line */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 26px;
}
.ornament span {
  width: clamp(48px, 9vw, 96px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament span:last-child { background: linear-gradient(270deg, transparent, var(--gold)); }
.ornament i {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 12px 1px rgba(212, 174, 97, 0.7);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 15px 28px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.2s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-lg { padding: 17px 34px; font-size: 1.04rem; }

.btn-primary {
  color: #20120a;
  background: linear-gradient(180deg, var(--ember-soft), var(--ember-deep));
  box-shadow: var(--glow-ember), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover {
  color: #1a0e07;
  transform: translateY(-2px);
  box-shadow: 0 0 56px -6px rgba(255, 122, 41, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-primary:active { transform: translateY(1px) scale(0.98); }

.btn-ghost {
  color: var(--gold-soft);
  border-color: var(--line);
  background: rgba(212, 174, 97, 0.04);
}
.btn-ghost:hover {
  border-color: rgba(212, 174, 97, 0.5);
  color: var(--parchment);
  transform: translateY(-2px);
}
.btn-ghost:active { transform: translateY(1px) scale(0.98); }

.btn[aria-disabled="true"] {
  opacity: 0.55;
  filter: saturate(0.7);
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(9, 12, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { width: 34px; height: 34px; border-radius: 24%; border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 2px 8px rgba(4,7,5,0.6), inset 0 1px 0 rgba(255,255,255,0.18); }
.brand .wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.14em;
  color: var(--parchment);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a:not(.btn) {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  padding: 4px 0;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease-out);
}
.nav-links a:not(.btn):hover { color: var(--parchment); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold-soft); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-links .btn { padding: 10px 20px; font-size: 0.9rem; }

@media (max-width: 880px) {
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 520px) {
  .brand .wordmark { font-size: 0.8rem; letter-spacing: 0.1em; white-space: nowrap; }
  .nav-links .btn { padding: 9px 16px; font-size: 0.85rem; }
  .hero-chip { font-size: 0.68rem; letter-spacing: 0.1em; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  padding: clamp(104px, 14vh, 150px) 0 88px;
  isolation: isolate;
  overflow: hidden;
}

/* layered background: the maze screenshot, darkened, drifting */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}
.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 118%;
  object-fit: cover;
  object-position: 50% 58%;
  transform: scale(1.08);
  filter: brightness(0.42) saturate(0.88);
  will-change: transform;
}
.hero-bg video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease, ease-out);
}
.hero-bg video.playing { opacity: 1; }

/* honest-footage tag, lit only once the reel is actually rolling */
.hero-footage {
  position: absolute;
  right: clamp(16px, 3vw, 40px);
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(222, 208, 178, 0.55);
  opacity: 0;
  transition: opacity 1.2s ease 0.6s;
  pointer-events: none;
}
.hero.video-live .hero-footage { opacity: 1; }
.rec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember, #ff7a29);
  box-shadow: 0 0 8px rgba(255, 122, 41, 0.8);
  animation: recpulse 2.4s ease-in-out infinite;
}
@keyframes recpulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* atmosphere over the screenshot: ember bloom, vignette, rune grid */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 122, 41, 0.20), transparent 55%),
    radial-gradient(140% 90% at 50% 50%, transparent 30%, rgba(9, 12, 10, 0.72) 100%),
    linear-gradient(180deg, rgba(9, 12, 10, 0.85) 0%, rgba(9, 12, 10, 0.35) 42%, rgba(9, 12, 10, 0.88) 100%);
}
.hero-veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 75%);
  opacity: 0.45;
}

/* bottom fade into the stat band */
.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 140px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to top, var(--ink) 8%, transparent);
}

.hero-grid {
  display: grid;
  grid-template-rows: auto 1fr auto;
  /* minmax(0,1fr) keeps the column from growing to the tagline's max-content
     width (which overflowed and got clipped by the hero's overflow:hidden on
     mobile); content now wraps within the viewport instead. */
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: clamp(10px, 2.4vw, 26px);
  width: 100%;
}

.hero-inner { position: relative; z-index: 3; text-align: center; max-width: 900px; }

.hero-emblem {
  display: block;
  position: relative;
  width: clamp(76px, 9vw, 104px);
  height: auto;
  margin: 0 auto 20px;
  border-radius: 24%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 34px rgba(4, 7, 5, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  animation: floaty 7s ease-in-out infinite;
}
.hero-emblem img { display: block; width: 100%; height: auto; }
.hero-emblem::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.06) 38%, transparent 60%);
  pointer-events: none;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 22px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(9, 12, 10, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.chip-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 10px 2px rgba(255, 122, 41, 0.7);
  animation: chipPulse 2.4s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.9rem, 8.5vw, 6.2rem);
  letter-spacing: 0.04em;
  line-height: 0.98;
}

/* metallic gold title with a one-time shine sweep */
.title-metal {
  display: inline-block;
  background:
    linear-gradient(115deg, transparent 42%, rgba(255, 250, 235, 0.75) 50%, transparent 58%) no-repeat,
    linear-gradient(180deg, #fff8e7 0%, #f3dfae 32%, var(--gold) 56%, #8a6a2c 78%, #caa658 100%);
  background-size: 260% 100%, 100% 100%;
  background-position: 130% 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 34px rgba(255, 122, 41, 0.30));
  animation: shine 2.4s var(--ease-out) 0.9s 1 both;
}

.hero .tagline {
  font-family: var(--accent);
  font-size: clamp(1.05rem, 2.4vw, 1.55rem);
  color: var(--gold-soft);
  margin-top: 16px;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 18px rgba(9, 12, 10, 0.8);
}

/* stage that holds the cycling towers */
.hero-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1000px;
  min-height: clamp(260px, 38vw, 460px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 4vw, 56px);
}
.hero-tower {
  position: relative;
  width: clamp(120px, 19vw, 240px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.hero-tower img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: translateY(38px) scale(0.96);
  filter: drop-shadow(0 26px 44px rgba(4, 7, 5, 0.7)) drop-shadow(0 0 50px rgba(255, 138, 51, 0.18));
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.hero-tower.in  img { opacity: 1; transform: translateY(0) scale(1); }
.hero-tower.out img { opacity: 0; transform: translateY(-38px) scale(0.96); }
.tower-glow {
  position: absolute;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 138, 51, 0.22), rgba(212, 174, 97, 0.08) 50%, transparent 72%);
  filter: blur(16px);
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-tower.in .tower-glow { opacity: 1; }

/* glowing ground line the towers stand on */
.stage-ground {
  position: absolute;
  left: 50%;
  bottom: clamp(8px, 3vw, 26px);
  transform: translateX(-50%);
  width: min(760px, 82%);
  height: 46px;
  pointer-events: none;
  background: radial-gradient(50% 100% at 50% 100%, rgba(255, 138, 51, 0.22), rgba(212, 174, 97, 0.07) 55%, transparent 78%);
  filter: blur(6px);
}
.stage-ground::after {
  content: "";
  position: absolute;
  left: 10%; right: 10%; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 174, 97, 0.55), transparent);
}

.hero-foot { position: relative; z-index: 3; text-align: center; max-width: 680px; }
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
}
.hero-note b { color: var(--gold); font-style: normal; font-weight: 600; }

.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: opacity 0.5s ease;
}
body.page-scrolled .scroll-cue { opacity: 0; }
.scroll-cue span { animation: nudge 2.2s ease-in-out infinite; }

/* floating embers */
.embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ember {
  position: absolute;
  bottom: -10px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ember-soft);
  box-shadow: 0 0 8px 2px rgba(255, 138, 51, 0.6);
  opacity: 0;
  animation: rise linear infinite;
}

/* staggered entrance for hero children */
.rise-1, .rise-2, .rise-3, .rise-4, .rise-5, .rise-6 {
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) both;
}
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.16s; }
.rise-3 { animation-delay: 0.28s; }
.rise-4 { animation-delay: 0.42s; }
.rise-5 { animation-delay: 0.55s; }
.rise-6 { animation-delay: 0.68s; }

@media (max-width: 760px) {
  .hero-stage { min-height: 250px; gap: clamp(14px, 5vw, 40px); }
}

/* short laptop viewports: tighten the hero so the CTAs stay near the fold */
@media (min-width: 761px) and (max-height: 820px) {
  .hero { padding: 92px 0 64px; }
  .hero-grid { gap: 10px; }
  .hero-emblem { width: 64px; margin-bottom: 12px; }
  .hero-chip { margin-bottom: 14px; padding: 6px 14px; }
  .hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); }
  .hero .tagline { margin-top: 10px; }
  .hero-stage { min-height: clamp(180px, 26vh, 280px); }
  .hero-tower { width: clamp(110px, 15vw, 180px); }
  .scroll-cue { display: none; }
}

/* ============================================================
   Stat band
   ============================================================ */
/* the war ledger: an engraved double-rule tally, not a metrics row */
.statband {
  position: relative;
  background: linear-gradient(180deg, #0c100d, #0a0d0b);
  padding: clamp(34px, 5vw, 54px) 0;
}
.statband::before,
.statband::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 5px;
  border-block: 1px solid rgba(212, 174, 97, 0.28);
}
.statband::before { top: 0; }
.statband::after { bottom: 0; }
.stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.stat {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 3px;
  text-align: center;
}
.stat + .stat::before {
  content: "\2726"; /* four-pointed star, an engraver's separator */
  position: absolute;
  left: -7px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.6rem;
  color: rgba(212, 174, 97, 0.35);
}
.stat dt {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.stat dd .num {
  font-family: var(--display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.8rem, 3.8vw, 2.9rem);
  color: var(--gold-soft);
  text-shadow: 0 2px 22px rgba(212, 174, 97, 0.25);
}
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .stat + .stat::before { display: none; }
}

/* ============================================================
   Positioning strip
   ============================================================ */
.strip {
  background: linear-gradient(180deg, #0b0f0c, #0a0d0b);
  padding: clamp(64px, 9vw, 110px) 0 0;
}
.strip p {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  line-height: 1.35;
  color: var(--parchment);
  text-wrap: balance;
}
.strip p em { color: var(--ember); font-style: normal; }

/* ============================================================
   Screenshot showcase (ornate frame)
   ============================================================ */
.showcase { padding-top: clamp(44px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 100px); }
.shot-frame {
  position: relative;
  max-width: 1080px;
  margin-inline: auto;
}
.frame-corners {
  position: absolute;
  inset: -13px;
  pointer-events: none;
  z-index: 2;
  --ck: rgba(212, 174, 97, 0.75);
  background:
    linear-gradient(var(--ck), var(--ck)) left 0 top 0 / 30px 1px,
    linear-gradient(var(--ck), var(--ck)) left 0 top 0 / 1px 30px,
    linear-gradient(var(--ck), var(--ck)) right 0 top 0 / 30px 1px,
    linear-gradient(var(--ck), var(--ck)) right 0 top 0 / 1px 30px,
    linear-gradient(var(--ck), var(--ck)) left 0 bottom 0 / 30px 1px,
    linear-gradient(var(--ck), var(--ck)) left 0 bottom 0 / 1px 30px,
    linear-gradient(var(--ck), var(--ck)) right 0 bottom 0 / 30px 1px,
    linear-gradient(var(--ck), var(--ck)) right 0 bottom 0 / 1px 30px;
  background-repeat: no-repeat;
}

.shot-img {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.04);
  background: var(--panel);
  overflow: hidden;
}
.shot-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.shot-img:hover img { transform: scale(1.035); }
.shot-img[data-ratio="16:9"] { aspect-ratio: 16 / 9; }
.shot-img[data-ratio="4:3"]  { aspect-ratio: 4 / 3; }
.shot-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 18px 14px;
  background: linear-gradient(to top, rgba(7, 9, 8, 0.88) 10%, rgba(7, 9, 8, 0));
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--parchment);
  pointer-events: none;
}
.shot-plate {
  margin-top: 18px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.shot-plate span {
  display: inline-block;
  margin-right: 12px;
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.06em;
}

/* ============================================================
   The loop (how it plays)
   ============================================================ */
.loop { padding-top: 0; }
.loop-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 48px);
}
.loop-step {
  position: relative;
  padding-top: 18px;
}
.loop-step + .loop-step::before {
  content: "";
  position: absolute;
  left: calc(clamp(28px, 4vw, 48px) / -2);
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
}
.loop-num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 174, 97, 0.55);
  margin-bottom: 14px;
}
.loop-step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.loop-step p { color: var(--text-dim); font-size: 0.98rem; max-width: 38ch; text-wrap: pretty; }
@media (max-width: 760px) {
  .loop-steps { grid-template-columns: 1fr; gap: 34px; }
  .loop-step + .loop-step::before { display: none; }
  .loop-step { border-top: 1px solid var(--line-soft); }
  .loop-step:first-child { border-top: 0; padding-top: 0; }
  .loop-step p { max-width: 60ch; }
}

/* ============================================================
   Horde marquee (decorative)
   ============================================================ */
/* two ranks marching at different depths; the parallax IS the menace */
.horde {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #0a0e0b, #090c0a);
  padding: 26px 0 18px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.horde-track {
  display: flex;
  width: max-content;
  animation: horde 44s linear infinite;
}
.horde-back {
  position: absolute;
  left: 0;
  bottom: 26px;
  animation-duration: 85s;
}
.horde-row {
  display: flex;
  align-items: flex-end;
  gap: clamp(38px, 5.5vw, 72px);
  padding-right: clamp(38px, 5.5vw, 72px);
}
.horde-front .horde-row img {
  width: auto;
  height: clamp(78px, 9.5vw, 128px);
  opacity: 0.68;
  filter: brightness(0.9) saturate(0.9) drop-shadow(0 10px 16px rgba(4, 7, 5, 0.65));
  transition: opacity 0.3s ease;
}
.horde-back .horde-row img {
  width: auto;
  height: clamp(44px, 5vw, 66px);
  opacity: 0.26;
  filter: brightness(0.55) saturate(0.6) blur(1.2px);
}
.horde:hover .horde-front .horde-row img { opacity: 0.9; }
.horde-fog {
  position: absolute;
  inset: auto 0 0 0;
  height: 46px;
  background: linear-gradient(180deg, transparent, rgba(8, 11, 9, 0.9));
  pointer-events: none;
}

/* ============================================================
   Arsenal — five element cards
   ============================================================ */
.arsenal { position: relative; }
.elements-grid { display: grid; gap: 16px; }
.element-card {
  --c: 212,174,97;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(70% 130% at 0% 0%, rgba(var(--c), 0.10), transparent 55%),
    linear-gradient(180deg, #101512, #0c100e);
  transition: border-color .25s ease, box-shadow .3s ease, transform .25s ease;
}
.element-card:hover { border-color: rgba(var(--c), 0.35); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.element-card[open] { border-color: rgba(var(--c), 0.45); box-shadow: var(--shadow); transform: none; }
.element-card > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(22px, 3vw, 32px) clamp(22px, 4vw, 44px);
}
.element-card > summary::-webkit-details-marker { display: none; }

.el-lead {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.8vw, 32px);
  min-width: 0;
}
.el-champ-portrait {
  position: relative;
  flex: none;
  margin: 0;
  width: clamp(92px, 12vw, 136px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.el-champ-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--c), 0.32), rgba(var(--c), 0.05) 60%, transparent 74%);
  filter: blur(5px);
}
.el-champ-portrait::after {
  /* thin outer ring offset from the portrait */
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(var(--c), 0.25);
  transition: border-color .25s ease, transform .3s var(--ease-out);
}
.element-card:hover .el-champ-portrait::after,
.element-card[open] .el-champ-portrait::after { border-color: rgba(var(--c), 0.55); transform: scale(1.03); }
.el-champ-portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 50%;
  border: 1px solid rgba(var(--c), 0.5);
  background: linear-gradient(180deg, rgba(var(--c), 0.10), #0c100e);
  box-shadow: 0 12px 26px rgba(4, 7, 5, 0.55), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform .25s ease, box-shadow .3s ease, border-color .25s ease;
}
.element-card:hover .el-champ-portrait img,
.element-card[open] .el-champ-portrait img {
  transform: translateY(-2px);
  border-color: rgb(var(--c));
  box-shadow: 0 16px 30px rgba(4, 7, 5, 0.6), 0 0 24px -6px rgba(var(--c), 0.6);
}

.el-title-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.el-name {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  color: rgb(var(--c));
  letter-spacing: 0.04em;
}
.el-role {
  font-family: var(--body);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.el-rule {
  display: block;
  width: 72px;
  height: 1px;
  margin: 10px 0 12px;
  background: linear-gradient(90deg, rgb(var(--c)), transparent);
}
.el-champ-name {
  font-family: var(--display);
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--parchment);
  letter-spacing: 0.02em;
}
.el-champ-tag {
  display: inline-block;
  margin-right: 10px;
  font-family: var(--body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgb(var(--c));
  vertical-align: middle;
}
.el-champ-desc {
  margin-top: 6px;
  font-family: var(--accent);
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--gold-soft);
  max-width: 50ch;
}
.el-blurb { margin-top: 10px; color: var(--text-dim); font-size: 0.98rem; max-width: 52ch; }
.el-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgb(var(--c));
}
.el-more i { font-style: normal; transition: transform .25s var(--ease-out); }
.element-card > summary:hover .el-more i { transform: translateX(4px); }
.element-card[open] .el-more { opacity: 0.45; }
.el-apexes { display: flex; gap: clamp(10px, 2vw, 24px); flex: none; }
.el-apexes .form { width: clamp(96px, 12vw, 136px); }

/* expanded: the two progressions */
.el-lines {
  display: grid;
  gap: 16px;
  padding: 0 clamp(22px, 4vw, 44px) clamp(22px, 3vw, 32px);
}
.el-line { padding-top: 16px; border-top: 1px solid var(--line-soft); }
.line-chain { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.tier {
  margin: 0; width: 104px;
  display: grid; justify-items: center;
  background: linear-gradient(180deg, #161a18, #0e1210);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 6px 4px 7px;
  transition: border-color .2s ease, transform .2s ease;
}
.tier:hover { border-color: rgba(var(--c), 0.4); transform: translateY(-2px); }
.tier img { width: 62px; height: 62px; object-fit: contain; }
.tier figcaption { margin-top: 3px; font-family: var(--display); font-size: 0.68rem; color: var(--parchment); text-align: center; line-height: 1.15; }
.tier figcaption span { display: block; font-family: var(--body); font-size: 0.54rem; letter-spacing: 0.1em; color: var(--text-dim); }
.tier.is-missing { opacity: 0.55; }
.tier-todo {
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border: 1px dashed var(--line-soft); border-radius: 8px;
  font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim);
}
.tier-arrow { color: rgba(var(--c), 0.7); font-size: 0.9rem; flex: none; }
.line-note { margin-top: 10px; font-size: 0.86rem; color: var(--text-dim); line-height: 1.5; }
.line-cost { color: rgb(var(--c)); font-family: var(--display); font-size: 0.82rem; margin-right: 6px; }

/* shared base/final "forms" (elements + fusions) */
.fusion-forms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3.5vw, 44px);
}
.form {
  position: relative;
  margin: 0;
  display: grid;
  justify-items: center;
  width: clamp(116px, 17vw, 188px);
}
.form-glow {
  position: absolute;
  top: 2%;
  width: 88%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--c), 0.30), transparent 70%);
  filter: blur(9px);
}
.form img {
  position: relative;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 24px rgba(4, 7, 5, 0.6));
  transition: transform .35s var(--ease-out);
}
.form:hover img { transform: translateY(-4px); }
.form figcaption {
  margin-top: 8px;
  font-family: var(--display);
  font-size: 0.9rem;
  color: var(--parchment);
  text-align: center;
}
.form-tag {
  display: block;
  font-family: var(--body);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 3px;
}
.form-arrow { flex: none; font-size: 1.3rem; color: var(--text-dim); }

@media (max-width: 720px) {
  .element-card > summary { grid-template-columns: 1fr; justify-items: center; }
  .el-lead { flex-direction: column; align-items: center; text-align: center; width: 100%; }
  .el-text { width: 100%; }
  .el-title-row { justify-content: center; }
  .el-rule { margin-inline: auto; background: linear-gradient(90deg, transparent, rgb(var(--c)), transparent); }
  .el-champ-portrait { width: clamp(104px, 27vw, 140px); }
  .el-champ-tag { display: block; margin: 0 0 3px; }
  .el-champ-name { margin-top: 14px; }
  .el-champ-desc { max-width: 46ch; margin-inline: auto; }
  .el-blurb { max-width: 46ch; margin-inline: auto; }
  .el-apexes { justify-content: center; }
  .line-chain { justify-content: center; }
}

/* ============================================================
   The Forge — fusions
   ============================================================ */
.forge { position: relative; overflow: hidden; }
.forge-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 18% 12%, rgba(255,122,41,0.10), transparent 60%),
    radial-gradient(60% 50% at 82% 18%, rgba(124,140,255,0.10), transparent 60%),
    radial-gradient(70% 60% at 50% 110%, rgba(178,98,255,0.10), transparent 65%),
    linear-gradient(180deg, #0b0f0d, #0a0d0b);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.forge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.4vw, 26px);
}
.fusion {
  --ra: 255,122,41; --rb: 178,98,255;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: clamp(22px, 2.8vw, 32px);
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(110deg, rgba(var(--ra), 0.07), transparent 42%),
    linear-gradient(250deg, rgba(var(--rb), 0.07), transparent 42%),
    linear-gradient(180deg, #10141200, #0d110f);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .3s ease;
}
.fusion:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--ra), 0.35);
  box-shadow: var(--shadow);
}
.fusion-aura {
  position: absolute;
  top: 2%;
  left: 6%;
  width: 88%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--ra), 0.30), rgba(var(--rb), 0.18) 55%, transparent 75%);
  filter: blur(8px);
}
.fusion-recipe {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.fusion-recipe .rune { display: inline-flex; align-items: center; gap: 7px; }
.rune-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  box-shadow: 0 0 9px 1px currentColor;
}
.fusion-recipe .plus { color: var(--text-dim); }
.fusion h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.fusion .fusion-forms { margin-top: 8px; }
.fusion .form { width: clamp(108px, 15vw, 158px); }
.fusion .form figcaption { font-size: 0.84rem; }

@media (max-width: 820px) {
  .forge-grid { grid-template-columns: 1fr; }
}

/* spotlight border: radial highlight follows the pointer */
/* ============================================================
   The Gauntlet rail — fixed climb indicator, floor I at the bottom
   ============================================================ */
.gauntlet-rail {
  position: fixed;
  right: clamp(14px, 2vw, 30px);
  top: 50%;
  transform: translateY(-50%);
  height: min(52vh, 480px);
  width: 30px;
  z-index: 40;
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  align-items: center;
}
.rail-line,
.rail-fill {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  pointer-events: none;
}
.rail-line {
  top: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(212, 174, 97, 0.28) 12%, rgba(212, 174, 97, 0.28) 88%, transparent);
}
.rail-fill {
  bottom: 0;
  height: 0;
  background: linear-gradient(0deg, rgba(255, 122, 41, 0.9), rgba(212, 174, 97, 0.9));
  box-shadow: 0 0 10px rgba(255, 140, 60, 0.55);
  transition: height 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.rail-tick {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  line-height: 1;
  color: rgba(222, 208, 178, 0.30);
  background: #0b0e0c;
  padding: 4px 0;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}
.rail-tick.passed { color: rgba(212, 174, 97, 0.55); }
.rail-tick.lit {
  color: var(--gold-soft, #e8c987);
  text-shadow: 0 0 14px rgba(255, 150, 70, 0.8);
}
@media (max-width: 1199px) {
  .gauntlet-rail { display: none; }
}

.glow-card {
  position: relative;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.glow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--ra, 212, 174, 97), 0.6), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 3;
}
.glow-card:hover::before { opacity: 1; }

/* ============================================================
   The Rivals — escalating commander roster
   ============================================================ */
.rivals { position: relative; overflow: hidden; }
.rivals-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 12% 8%, rgba(178,98,255,0.09), transparent 60%),
    radial-gradient(60% 50% at 88% 12%, rgba(255,122,41,0.09), transparent 60%),
    linear-gradient(180deg, #0b0f0d, #0a0d0b);
}
.rivals-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2vw, 22px);
}
.rivals-grid .span-3 { grid-column: span 3; }
.rivals-grid .span-4 { grid-column: span 4; }
.rival-card {
  --ra: 212,174,97; --rb: 212,174,97;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #12100f, #0d110f);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .3s ease;
}
.rival-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--ra), 0.5);
  box-shadow: var(--shadow);
}
.rival-art {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.rival-aura {
  position: absolute; inset: 0;
  background:
    radial-gradient(75% 65% at 30% 12%, rgba(var(--ra), 0.30), transparent 62%),
    radial-gradient(75% 70% at 82% 30%, rgba(var(--rb), 0.24), transparent 64%);
}
.rival-art img {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  filter: drop-shadow(0 14px 22px rgba(4, 7, 5, 0.55));
  transition: transform .5s var(--ease-out);
}
.rival-card:hover .rival-art img { transform: scale(1.04); }
.rival-art::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  height: 46%;
  background: linear-gradient(to top, #0d110f 6%, rgba(13,17,15,0));
  pointer-events: none;
}
.rival-boss {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  font-family: var(--body);
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #1a0e07;
  padding: 5px 10px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--ember-soft), var(--ember-deep));
  box-shadow: 0 4px 14px -2px rgba(255,122,41,0.6);
}
.rival-copy { position: relative; z-index: 3; padding: 0 18px 22px; margin-top: -8px; }
.rival-els { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.rival-el {
  font-family: var(--body);
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-soft);
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: rgba(212,174,97,0.05);
}
.rival-el-plus { color: var(--text-dim); font-size: 0.7rem; }
.rival-power {
  font-family: var(--body);
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ember-soft);
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid rgba(255,122,41,0.32);
  background: rgba(255,122,41,0.08);
}
.rival-copy h4 {
  font-family: var(--display);
  font-size: 1.12rem;
  color: var(--parchment);
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}
.rival-copy p { font-size: 0.86rem; color: var(--text-dim); line-height: 1.55; }

.rival-card.is-boss { border-color: rgba(255,122,41,0.3); }
.rival-card.is-boss .rival-copy h4 { color: var(--ember-soft); }

/* the final boss: full-width banner */
.rival-final {
  --ra: 255,122,41; --rb: 178,98,255;
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 400px) 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(20px, 3vw, 30px);
  padding: clamp(24px, 3.6vw, 44px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 122, 41, 0.32);
  background:
    radial-gradient(70% 120% at 8% 0%, rgba(255, 122, 41, 0.14), transparent 55%),
    radial-gradient(70% 120% at 92% 100%, rgba(178, 98, 255, 0.13), transparent 55%),
    linear-gradient(180deg, #14100e, #0d100e);
  box-shadow: var(--shadow), 0 0 60px -24px rgba(255, 122, 41, 0.5);
  overflow: hidden;
}
.final-art {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.final-art .rival-aura {
  background:
    radial-gradient(80% 70% at 30% 10%, rgba(var(--ra), 0.38), transparent 62%),
    radial-gradient(80% 75% at 82% 40%, rgba(var(--rb), 0.30), transparent 64%);
}
.final-art img {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 14%;
  filter: drop-shadow(0 18px 30px rgba(4, 7, 5, 0.6));
}
.final-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 12px;
}
.final-copy h3 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  margin-bottom: 14px;
  background: linear-gradient(180deg, #ffe9c9 0%, var(--ember-soft) 55%, #b35c1e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.final-copy .rival-els { margin-bottom: 16px; }
.final-blurb { color: var(--text-dim); font-size: 1.02rem; max-width: 58ch; text-wrap: pretty; }

@media (max-width: 1080px) {
  .rivals-grid .span-3, .rivals-grid .span-4 { grid-column: span 6; }
}
@media (max-width: 760px) {
  .rival-final { grid-template-columns: 1fr; }
  .final-art { max-width: 380px; margin-inline: auto; width: 100%; }
  .final-copy { text-align: center; }
  .final-copy .rival-els { justify-content: center; }
  .final-blurb { margin-inline: auto; }
}
@media (max-width: 560px) {
  .rivals-grid .span-3, .rivals-grid .span-4 { grid-column: span 12; }
}

/* ============================================================
   Modes — cinematic panels
   ============================================================ */
.modes { padding-bottom: clamp(76px, 11vw, 148px); }
.mode-panel {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(400px, 46vw, 540px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow);
}
.mode-panel + .mode-panel { margin-top: clamp(28px, 4vw, 44px); }
.mode-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62) saturate(0.95);
  transition: transform 0.8s var(--ease-out);
}
.mode-panel:hover .mode-bg { transform: scale(1.03); }
.mode-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(9, 12, 10, 0.92) 0%, rgba(9, 12, 10, 0.62) 46%, rgba(9, 12, 10, 0.08) 78%);
}
.mode-panel.reverse { justify-content: flex-end; }
.mode-panel.reverse::before {
  background: linear-gradient(270deg, rgba(9, 12, 10, 0.92) 0%, rgba(9, 12, 10, 0.62) 46%, rgba(9, 12, 10, 0.08) 78%);
}
.mode-copy {
  max-width: 560px;
  padding: clamp(28px, 4.5vw, 56px);
}
.mode-copy .kicker {
  font-family: var(--accent);
  color: var(--ember);
  letter-spacing: 0.06em;
  font-size: 1rem;
  margin-bottom: 12px;
}
.mode-copy h3 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 18px; }
.mode-copy ul {
  list-style: none;
  display: grid;
  gap: 12px;
}
.mode-copy li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--text);
  text-shadow: 0 1px 8px rgba(9, 12, 10, 0.8);
}
.mode-copy li svg { width: 18px; height: 18px; color: var(--ember); flex: none; margin-top: 5px; }

@media (max-width: 700px) {
  .mode-panel, .mode-panel.reverse {
    align-items: flex-end;
    min-height: 480px;
  }
  .mode-panel::before, .mode-panel.reverse::before {
    background: linear-gradient(to top, rgba(9, 12, 10, 0.95) 30%, rgba(9, 12, 10, 0.5) 62%, rgba(9, 12, 10, 0.12) 100%);
  }
  .mode-bg { object-position: 50% 20%; }
}

/* ============================================================
   Biomes gallery
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.gallery-grid .shot-img[data-ratio="16:9"] { aspect-ratio: 16 / 10; }
@media (max-width: 620px) { .gallery-grid.biomes { grid-template-columns: 1fr; } }

.floor-tag {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 3;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--gold-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(9, 12, 10, 0.65);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.biome-info {
  position: absolute;
  bottom: 12px; right: 12px; z-index: 4;
  font-family: var(--body);
  font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--gold-soft);
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(9, 12, 10, 0.6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  cursor: pointer;
  transition: opacity 0.25s ease, border-color 0.2s ease, color 0.2s ease;
}
.biome-info:hover { color: var(--parchment); border-color: rgba(212, 174, 97, 0.5); }
.biome-popup {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; gap: 7px;
  padding: clamp(16px, 2.6vw, 24px);
  text-align: left;
  background: linear-gradient(180deg, rgba(7, 9, 8, 0.82), rgba(7, 9, 8, 0.93));
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}
.biome-card.open .biome-popup { opacity: 1; pointer-events: auto; }
.biome-card.open .biome-info { opacity: 0; pointer-events: none; }
@media (hover: hover) {
  .biome-card:hover .biome-popup { opacity: 1; pointer-events: auto; }
  .biome-card:hover .biome-info  { opacity: 0; }
}
.biome-desc { margin: 0; color: var(--text); font-size: 0.9rem; line-height: 1.5; }
.biome-label {
  font-family: var(--body);
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-top: 2px;
}
.biome-glyphs { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.biome-glyphs li { display: flex; gap: 8px; font-size: 0.8rem; color: var(--text-dim); line-height: 1.35; }
.biome-glyphs li b { color: var(--parchment); font-family: var(--display); font-weight: 600; flex: none; min-width: 92px; }
.biome-boss-row { display: flex; gap: 14px; margin-top: 4px; }
.biome-boss { margin: 0; text-align: center; width: 56px; }
.biome-boss img { width: 50px; height: 50px; object-fit: contain; }
.biome-boss figcaption { font-size: 0.58rem; color: var(--text-dim); margin-top: 2px; line-height: 1.1; }

/* ============================================================
   Download band
   ============================================================ */
.download {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.download-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  opacity: 0.35;
  filter: saturate(0.9);
}
.download::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(255, 122, 41, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(9, 12, 10, 0.88), rgba(9, 12, 10, 0.72) 50%, rgba(9, 12, 10, 0.92));
}
.download .inner {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}
.download h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.download-lede { margin-top: 18px; color: var(--text); font-size: 1.08rem; }
.download .hero-cta { margin-top: 38px; }
.platforms {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.88rem;
}
.plat-sep {
  width: 5px; height: 5px;
  background: var(--gold);
  opacity: 0.6;
  transform: rotate(45deg);
}
.download .hero-note { margin-top: 26px; }

/* ============================================================
   FAQ — editorial two-column rows
   ============================================================ */
.faq-sec .section-head { margin-bottom: clamp(18px, 3vw, 30px); }
.faq-list { max-width: 980px; }
.faq-row {
  display: grid;
  grid-template-columns: minmax(220px, 330px) 1fr;
  gap: clamp(18px, 4vw, 56px);
  padding: 28px 4px;
  border-top: 1px solid var(--line-soft);
}
.faq-row:first-child { border-top: 0; }
.faq-row dt {
  font-family: var(--display);
  font-size: 1.14rem;
  color: var(--parchment);
  letter-spacing: 0.02em;
}
.faq-row dd {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 62ch;
  text-wrap: pretty;
}
@media (max-width: 640px) {
  .faq-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line-soft);
  padding: 40px 0;
}
.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 28px;
}
.foot-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  font-size: 0.86rem; color: var(--parchment);
}
.foot-brand img { width: 26px; height: 26px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { font-size: 0.84rem; color: var(--text-dim); letter-spacing: 0.02em; }
.foot-links a:hover { color: var(--gold); }
.site-footer .copy {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}
.site-footer .copy a { color: var(--gold); font-weight: 600; }
.site-footer .copy a:hover { color: var(--ember); }
@media (max-width: 620px) {
  .foot-inner { flex-direction: column; text-align: center; }
}

/* ============================================================
   Legal pages (privacy / accessibility)
   ============================================================ */
.legal { padding: clamp(120px, 16vh, 180px) 0 clamp(72px, 10vw, 120px); }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: 8px; }
.legal-updated { color: var(--text-dim); font-size: 0.86rem; margin-bottom: 36px; }
.legal h2 {
  font-family: var(--display);
  color: var(--parchment);
  font-size: 1.3rem;
  margin: 40px 0 12px;
}
.legal p { color: var(--text-dim); margin-bottom: 14px; max-width: 70ch; }
.legal a { color: var(--gold); }
.legal a:hover { color: var(--ember); }
.legal-list { color: var(--text-dim); margin: 0 0 14px; padding-left: 1.2em; display: grid; gap: 8px; max-width: 70ch; }
.legal-list li { padding-left: 4px; }

/* ============================================================
   Reveal-on-scroll (staggered via --stagger)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease var(--stagger, 0ms), transform 0.7s var(--ease-out) var(--stagger, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Keyframes
   ============================================================ */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes nudge {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}
@keyframes rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.7; }
  100% { transform: translateY(-104vh) translateX(20px); opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shine {
  from { background-position: 130% 0, 0 0; }
  to   { background-position: -50% 0, 0 0; }
}
@keyframes chipPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}
@keyframes horde {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   Reduced motion: settle everything
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .rise-1, .rise-2, .rise-3, .rise-4, .rise-5, .rise-6 { opacity: 1; animation: none; }
  .title-metal { animation: none; }
  .hero-emblem, .ember, .scroll-cue span, .chip-dot { animation: none !important; }
  .horde-track { animation: none; }
  .horde-back { display: none; }
  .hero-tower img { transition: none !important; transform: none !important; }
  .hero-bg img { transform: none !important; }
  .hero-bg video { display: none; }
  .rec-dot { animation: none; }
  .rail-fill { transition: none; }
  .glow-card { transition: none; }
}

.foot-honest {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  text-align: center;
}
