/* Legends of Elumia: landing page
   Mobile-first and fluid (clamp/min/auto-fit). The only fixed breakpoint is
   the 900px header Emporium rule. Values mirror the design reference. */

/* ---------- Tokens ---------- */
:root {
  --bg: #080c1c;
  --bg-alt: #0b1226;
  --bg-footer: #060914;
  --card: #0d1430;
  --panel: #0e1631;

  --text: #eef1f8;
  --heading: #f5f1e6;
  --muted: #b9c2da;
  --secondary: #aab4cf;
  --footer-link: #c3cbe0;
  --card-text: #d5dbec;
  --soft: #d6dcef;
  --dim: #8792b0;

  --gold: #e2bf72;
  --gold-light: #f3e3b8;
  --gold-focus: #f3d48c;
  --gold-hover: #fff1c9;
  --cream: #fff6dc;
  --link: #e9c77b;
  --gem-border: #e8c57a;
  --accent: #5cc8ff;

  --hair-12: rgba(226, 191, 114, .12);
  --hair-18: rgba(226, 191, 114, .18);
  --hair-22: rgba(226, 191, 114, .22);
  --hair-45: rgba(226, 191, 114, .45);
  --hair-50: rgba(226, 191, 114, .5);

  --grad-cta: linear-gradient(180deg, #f8e2a6, #d3a24e 60%, #b5823a);
  --cta-ink: #1b1306;
  --shadow-cta: inset 0 0 0 1px rgba(255, 236, 190, .55), 0 6px 20px -6px rgba(226, 191, 114, .6);
  --grad-text: linear-gradient(180deg, #fff2c9 0%, #ebc97d 50%, #b98638 100%);
  --grad-store-frame: linear-gradient(180deg, #fbe8b0 0%, #d9ab55 38%, #8d5f22 52%, #c9973f 72%, #f3d48c 100%);
  --grad-store-inner: linear-gradient(180deg, #26304f 0%, #0e1429 55%, #090d1d 100%);
  --grad-gem: linear-gradient(135deg, #d8f6ff, #4fb4ff 45%, #1747b5);
  --grad-gem-50: linear-gradient(135deg, #d8f6ff, #4fb4ff 50%, #1747b5);

  --shadow-art-text: 0 1px 2px rgba(4, 8, 24, .95), 0 2px 12px rgba(4, 8, 24, .95);
  --glass: rgba(8, 12, 28, .55);

  --font-display: Cinzel, serif;
  --font-ui: Manrope, sans-serif;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-cls: cubic-bezier(.7, 0, .2, 1);

  --pad-x: clamp(20px, 5vw, 56px);
  --section-pad: clamp(48px, 6vw, 88px);
  --block-gap: clamp(32px, 4vw, 48px);
  --max: 1200px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
/* :where() keeps these at the specificity of a bare element so component
   classes always win, matching the reference where inline styles beat them. */
:where(a) { color: var(--link); text-decoration: none; }
:where(a):hover { color: var(--gold-hover); }
button { font-family: inherit; }
::selection { background: var(--gold); color: #0b1124; }
:focus-visible { outline: 2px solid var(--gold-focus); outline-offset: 3px; border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }
[hidden] { display: none !important; }
/* Controls that only work with JavaScript (menu, tabs, arrows, previews). */
html:not(.js) [data-js-only] { display: none !important; }
/* Invisible focus stop; see the lightbox in js/site.js. */
.focus-wrap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.page { background: var(--bg); color: var(--text); overflow-x: clip; }
.fill { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx { mix-blend-mode: screen; pointer-events: none; }

/* ---------- Shared pieces ---------- */
.container { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }
.container--narrow { max-width: 760px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.intro { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.section { position: relative; padding: var(--section-pad) 0; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font: 700 12px/1 var(--font-ui); letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
}
.eyebrow__gem { flex: none; width: 7px; height: 7px; transform: rotate(45deg); background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.h2 {
  margin: 0;
  font: 600 clamp(34px, 6.4vw, 62px)/1.06 var(--font-display);
  letter-spacing: .01em; color: var(--heading); text-wrap: balance;
}
.text-gold { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.lead { margin: 0; font: 400 17px/1.7 var(--font-ui); color: var(--muted); text-wrap: pretty; }
.lead--56 { max-width: 56ch; }
.lead--52 { max-width: 52ch; }
.lead--48 { max-width: 48ch; }

.label { font: 700 12px/1 var(--font-ui); letter-spacing: .18em; text-transform: uppercase; }
.label--gold { color: var(--gold); }
.label--dim { color: var(--dim); }

.gem {
  transform: rotate(45deg); background: var(--grad-gem);
  border: 2px solid var(--gem-border);
}

.btn-gold {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--grad-cta); color: var(--cta-ink);
  font: 800 12px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase;
  box-shadow: var(--shadow-cta);
}
.btn-gold:hover { filter: brightness(1.08); color: var(--cta-ink); }

/* Round icon buttons (44px tap target) */
.round-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hair-45); background: transparent;
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--gold-light); padding: 0;
}
.round-btn:hover { background: rgba(226, 191, 114, .14); border-color: var(--link); }
.round-btn--glass {
  border-color: rgba(226, 191, 114, .55); background: var(--glass);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .25s, border-color .25s;
}
.round-btn--glass:hover { background: rgba(226, 191, 114, .16); border-color: var(--link); }
.chev { width: 9px; height: 9px; }
.chev--l { border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateX(2px) rotate(45deg); }
.chev--r { border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: translateX(-2px) rotate(45deg); }

.close-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hair-50); background: transparent;
  position: relative; cursor: pointer; padding: 0;
}
.close-btn span { position: absolute; left: 13px; top: 21px; width: 18px; height: 1.5px; background: var(--gold-light); transform: rotate(45deg); }
.close-btn span + span { transform: rotate(-45deg); }

/* Ornamental divider: line · dot · gem · dot · line */
.divider { display: flex; align-items: center; gap: 6px; }
.divider__line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(226, 191, 114, 0), var(--gold)); }
.divider__line--r { background: linear-gradient(270deg, rgba(226, 191, 114, 0), var(--gold)); }
.divider__dot { width: 5px; height: 5px; transform: rotate(45deg); background: var(--gold); }
.divider__gem {
  transform: rotate(45deg); background: var(--grad-gem-50);
  border: 1.5px solid var(--link); box-shadow: 0 0 10px rgba(90, 190, 255, .85);
}
.divider--logo { width: min(300px, 72%); margin-top: 6px; }
.divider--logo .divider__gem { width: 10px; height: 10px; }
.divider--cta { width: min(280px, 70%); }
.divider--cta .divider__gem { width: 9px; height: 9px; }

/* Ornate store buttons */
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; width: 100%; }
.stores--hero { margin-top: 2px; }
.stores--download { margin-top: 8px; }
.store {
  position: relative; flex: 1 1 236px; max-width: 300px; height: 66px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: transform .25s ease, filter .25s ease;
}
.store:hover { transform: translateY(-2px); filter: brightness(1.12); color: #fff; }
.store__frame {
  position: absolute; inset: 0 10px; background: var(--grad-store-frame);
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 16px 100%, 0 50%);
}
.store__inner {
  position: absolute; inset: 3px 13px; background: var(--grad-store-inner);
  clip-path: polygon(15px 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 15px 100%, 0 50%);
}
.store__shine {
  position: absolute; top: 5px; left: 34px; right: 34px; height: 1px;
  background: linear-gradient(90deg, rgba(255, 236, 190, 0), rgba(255, 236, 190, .55), rgba(255, 236, 190, 0));
}
.store__gem {
  position: absolute; top: 50%; width: 19px; height: 19px; margin-top: -9.5px;
  transform: rotate(45deg); background: var(--grad-gem); border: 2px solid var(--gem-border);
  box-shadow: 0 0 12px rgba(90, 190, 255, .75), inset 0 0 4px rgba(255, 255, 255, .6);
}
.store__gem--l { left: 2px; }
.store__gem--r { right: 2px; }
.store__content { position: relative; display: flex; align-items: center; gap: 12px; }
.store__text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.store__small { font: 700 11px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: #dfe4f2; margin-bottom: 4px; }
.store__big { font: 700 21px/1 var(--font-ui); letter-spacing: -.01em; color: #fff; }

/* Windows launcher link: desktop devices only */
.win-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px;
  font: 600 13px/1 var(--font-ui); letter-spacing: .04em; color: var(--soft);
  text-decoration: underline; text-decoration-color: rgba(214, 220, 239, .4); text-underline-offset: 5px;
  text-shadow: 0 1px 8px rgba(6, 12, 34, .9);
}
.win-link:hover { color: var(--gold-focus); text-decoration-color: var(--gold-focus); }
.is-mobile .win-link { display: none; }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 64px; }
.site-header__bg {
  position: absolute; inset: 0; background: rgba(8, 12, 28, .8);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair-18); opacity: 0; transition: opacity .4s;
}
.site-header__bg.is-on { opacity: 1; }
.site-header__inner {
  position: relative; height: 100%; max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-header__logo { display: block; transition: opacity .4s; }
.site-header__logo img { width: 116px; height: auto; }
.site-header__right { display: flex; align-items: center; gap: 10px; }
.site-header__cta {
  display: flex; align-items: center; gap: 10px;
  transition: opacity .35s, transform .35s, visibility 0s .35s;
}
/* Logo and CTA start hidden and fade in on scroll, but only when JS runs to
   reveal them; without JS they simply stay visible. */
.js .site-header__logo { opacity: 0; }
.js .site-header__logo:not(.is-on) { visibility: hidden; }
.js .site-header__cta { opacity: 0; visibility: hidden; transform: translateY(-6px); }
.js .site-header__logo.is-on { opacity: 1; visibility: visible; }
.js .site-header__cta.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .35s, visibility 0s; }
.site-header__emporium {
  display: none; align-items: center; min-height: 44px; padding: 0 10px;
  font: 700 12px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light);
  text-shadow: 0 1px 8px rgba(6, 12, 34, .8);
}
.site-header__emporium:hover { color: var(--gold-hover); }
@media (min-width: 900px) {
  html:not(.is-mobile) .site-header__emporium { display: inline-flex; }
}
.menu-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hair-50); background: rgba(8, 12, 28, .45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; padding: 0;
}
.menu-btn:hover { border-color: var(--link); }
.menu-btn span { width: 16px; height: 1.5px; background: var(--gold-light); border-radius: 2px; }
.menu-btn span:nth-child(2) { width: 10px; }

/* ---------- 01 Hero ---------- */
.hero { position: relative; height: 150svh; background: var(--bg); }
.hero__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.hero__layer { position: absolute; inset: 0; }
.hero__bg { will-change: transform; transform-origin: 50% 40%; }
.hero__side { will-change: transform; transform-origin: 50% 80%; }
.hero__cover { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero__particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__shade-top { position: absolute; inset: 0 0 auto 0; height: 24%; background: linear-gradient(180deg, rgba(8, 12, 28, .5), rgba(8, 12, 28, 0)); }
.hero__chars-pos {
  position: absolute; top: 19svh;
  left: clamp(50%, calc(50% + (100vw - 900px) * 10), 72%);
  height: min(88svh, 150vw); aspect-ratio: 1080/1596; transform: translateX(-50%);
}
.hero__chars { will-change: transform; transform-origin: 50% 40%; }
.hero__shade-bottom {
  position: absolute; inset: auto 0 0 0; height: 46%; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 12, 28, 0), rgba(8, 12, 28, .5) 55%, rgba(8, 12, 28, .9));
}
.hero__dim { position: absolute; inset: 0; background: var(--bg); opacity: 0; pointer-events: none; }

/* The content column sits centred on narrow screens and moves to the left
   third past ~900px; the * 10 / * 20 / * 100 terms make those clamps snap. */
.hero__content {
  position: absolute; top: 50%;
  left: clamp(27%, calc(50% - (100vw - 900px) * 10), 50%);
  width: min(560px, clamp(46vw, calc(92vw - (100vw - 900px) * 20), 92vw));
  height: clamp(min(580px, calc(100% - 24px)), calc(100% - (100vw - 900px) * 20), 100%);
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: min(clamp(12px, calc(100svh - 640px), 320px), max(28px, calc((900px - 100vw) * 100)));
  padding: clamp(0px, calc(76px - (100vw - 900px) * 10), 76px) 0 max(24px, 3.5svh);
  box-sizing: border-box; text-align: center;
}
.hero__logo, .hero__cta { position: relative; width: 100%; }
.hero__logo-glow {
  position: absolute; left: 50%; top: 72%; width: 120%; height: 72%; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(6, 12, 34, .78), rgba(6, 12, 34, .45) 55%, rgba(6, 12, 34, 0));
}
.hero__logo-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero__title { margin: 0; width: 100%; display: flex; justify-content: center; }
.hero__title img { width: min(clamp(240px, 64vw, 480px), 52svh); height: auto; filter: drop-shadow(0 10px 24px rgba(4, 8, 24, .45)); }
.hero__tagline {
  margin: -6px 0 0; font: 600 clamp(22px, 6.2vw, 34px)/1.1 var(--font-display); letter-spacing: .05em; text-transform: uppercase; color: #fff;
  text-shadow: 0 1px 2px rgba(4, 8, 24, .9), 0 2px 14px rgba(4, 8, 24, .9), 0 0 26px rgba(4, 8, 24, .6);
}
.hero__verbs {
  margin: 0; display: flex; gap: clamp(14px, 4.4vw, 26px); justify-content: center;
  font: 700 clamp(12px, 3.4vw, 15px)/1 var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: #fff;
  text-shadow: var(--shadow-art-text), 0 0 22px rgba(4, 8, 24, .7);
}
.hero__cta-glow {
  position: absolute; left: 50%; top: 44%; width: 120%; height: 120%; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(8, 12, 30, .6), rgba(8, 12, 30, 0));
}
.hero__cta-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero__join {
  margin: 0; font: 600 clamp(16px, 4.6vw, 21px)/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: #fff;
  text-shadow: 0 2px 12px rgba(6, 12, 34, .9);
}
.hero__free {
  margin: 2px 0 0; font: 700 12px/1 var(--font-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--soft);
  text-shadow: 0 1px 8px rgba(6, 12, 34, .9);
}

/* ---------- 02 World ---------- */
.world { background: var(--bg); overflow: hidden; }
.world__glow {
  position: absolute; right: -25%; top: 5%; width: 80vw; height: 80vw; max-width: 960px; max-height: 960px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(47, 125, 255, .16), rgba(47, 125, 255, 0));
}
.world__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.tower {
  margin: 0; position: relative; width: 100%; max-width: 460px; justify-self: center; aspect-ratio: 4/5.6;
  padding: 10px; box-sizing: border-box; border: 1px solid var(--hair-50);
  border-radius: 50% 50% 22px 22px / 36% 36% 22px 22px;
}
.tower__gem {
  position: absolute; left: 50%; top: -11px; width: 20px; height: 20px; margin-left: -10px; z-index: 2;
  box-shadow: 0 0 16px rgba(90, 190, 255, .8);
}
.tower__window {
  position: relative; width: 100%; height: 100%; overflow: hidden; background: #13204a;
  border-radius: 50% 50% 14px 14px / 36% 36% 14px 14px;
}
.tower__img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; max-width: none; object-fit: cover; object-position: 50% 30%; will-change: transform; }
.tower__shade { position: absolute; inset: auto 0 0 0; height: 50%; background: linear-gradient(180deg, rgba(8, 12, 28, 0), rgba(8, 12, 28, .92)); }
.tower__caption { position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; display: flex; flex-direction: column; gap: 8px; }
.tower__name { font: 600 26px/1.1 var(--font-display); color: #fff; }

/* ---------- 03 Classes ---------- */
.classes { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); overflow: hidden; }
.classes__glow {
  position: absolute; left: -20%; top: 30%; width: 80vw; height: 80vw; max-width: 900px; max-height: 900px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(47, 125, 255, .14), rgba(47, 125, 255, 0));
}
.classes__grid {
  margin-top: var(--block-gap);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(32px, 6vw, 88px); align-items: center;
}
.stage-wrap { position: relative; width: 100%; max-width: 460px; justify-self: center; }
.stage {
  position: relative; width: 100%; aspect-ratio: 1080/1596; overflow: hidden;
  border-radius: 50% 50% 24px 24px / 34% 34% 24px 24px;
  background: radial-gradient(70% 50% at 50% 42%, #22438f 0%, #121e46 45%, #0a1028 80%);
  border: 1px solid var(--hair-45);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6), inset 0 0 0 6px rgba(8, 12, 28, .55), inset 0 0 0 7px var(--hair-22);
}
.stage__rune {
  position: absolute; left: 50%; top: 40%; width: 86%; aspect-ratio: 1; margin: -43% 0 0 -43%;
  border-radius: 50%; border: 1px dashed rgba(226, 191, 114, .28);
}
.stage__halo {
  position: absolute; left: 50%; top: 40%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px solid rgba(120, 200, 255, .22);
  box-shadow: 0 0 70px rgba(92, 200, 255, .25), inset 0 0 60px rgba(92, 200, 255, .14);
}
.stage__art { position: absolute; inset: 0; transition: transform 1.1s var(--ease-cls); }
.stage__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(closest-side at 50% 46%, rgba(8, 12, 28, 0) 62%, rgba(8, 12, 28, .72) 100%);
}
.stage__shade { position: absolute; inset: auto 0 0 0; height: 26%; pointer-events: none; background: linear-gradient(180deg, rgba(8, 12, 28, 0), rgba(8, 12, 28, .85)); }
.stage__controls { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.stage__count { font: 600 14px/1 var(--font-display); letter-spacing: .18em; color: var(--gold-light); }
.stage__count-total { color: #6f7a99; }

.class-info { display: flex; flex-direction: column; gap: 24px; min-width: 0; width: 100%; max-width: 560px; justify-self: center; }
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--hair-18); }
.tab {
  appearance: none; background: transparent; border: 0; border-bottom: 2px solid rgba(226, 191, 114, 0); margin-bottom: -1px;
  padding: 14px 4px 16px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 7px;
  color: var(--dim); transition: color .3s, border-color .3s, background .3s;
}
.tab[aria-selected="true"] {
  color: var(--cream); border-bottom-color: var(--gold);
  background: linear-gradient(180deg, rgba(226, 191, 114, 0), rgba(226, 191, 114, .1));
}
.tab__num { font: 600 12px/1 var(--font-display); color: var(--gold); }
.tab__name { font: 700 clamp(11px, 3.3vw, 14px)/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; }
.class-panel { display: flex; flex-direction: column; gap: 18px; }
.class-panel__role {
  align-self: flex-start; display: inline-flex; align-items: center; padding: 8px 13px; border-radius: 999px;
  border: 1px solid rgba(92, 200, 255, .35); background: rgba(92, 200, 255, .08);
  font: 700 12px/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: #a9e2ff;
}
.class-panel__name {
  margin: 0; font: 700 clamp(42px, 9vw, 78px)/.95 var(--font-display); letter-spacing: .01em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 04 Gameplay ---------- */
.gameplay { background: var(--bg-alt); }
.play-cards {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad-x);
  padding: var(--block-gap) var(--pad-x) 8px; max-width: var(--max); margin: 0 auto; box-sizing: border-box; scrollbar-width: none;
}
.play-cards::-webkit-scrollbar, .strip::-webkit-scrollbar { display: none; }
.play-card {
  position: relative; flex: 1 0 min(80vw, 340px); aspect-ratio: 3/4.2; border-radius: 22px; overflow: hidden;
  scroll-snap-align: start; background: var(--card); border: 1px solid var(--hair-22); cursor: pointer; isolation: isolate;
}
.play-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.play-card__shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 12, 28, .35) 0%, rgba(8, 12, 28, 0) 22%, rgba(8, 12, 28, .1) 40%, rgba(8, 12, 28, .88) 68%, var(--bg-alt) 100%);
}
.play-card__tag { position: absolute; top: 18px; left: 20px; font: 700 12px/1 var(--font-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); }
.preview-btn {
  appearance: none; cursor: pointer; position: absolute; top: 6px; right: 6px; min-height: 44px;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 13px; border-radius: 999px;
  background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .18);
  font: 700 12px/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: #fff; transition: opacity .3s;
}
.preview-btn__icon { width: 0; height: 0; border-left: 7px solid #fff; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.preview-btn[aria-pressed="true"] { opacity: .8; }
.preview-btn[aria-pressed="true"] .preview-btn__icon { width: 3px; height: 9px; border: 0; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.play-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.play-card__title { margin: 0; font: 600 clamp(26px, 3vw, 30px)/1.1 var(--font-display); color: #fff; }
.bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.bullets li { display: flex; gap: 12px; align-items: baseline; font: 500 15px/1.45 var(--font-ui); color: var(--card-text); }
.bullets__dot { flex: none; width: 6px; height: 6px; transform: translateY(-2px) rotate(45deg); background: var(--gold); }

/* ---------- 05 Media ---------- */
.media { background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%); }
.media__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
.media__trailer-wrap { margin-top: var(--block-gap); }
/* .trailer and .shot are links (they work without JS); box-sizing matches the
   <button> they replaced. */
.trailer {
  appearance: none; display: block; position: relative; box-sizing: border-box; width: 100%; aspect-ratio: 16/9; padding: 0; border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(226, 191, 114, .3); background: var(--card); cursor: pointer; text-align: left;
}
.trailer__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.trailer__img:hover { transform: scale(1.04); }
.trailer__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8, 12, 28, .05) 30%, rgba(8, 12, 28, .8) 100%); }
.trailer__play { position: absolute; left: 50%; top: 50%; width: clamp(64px, 9vw, 92px); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.trailer__ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(233, 199, 123, .8); }
.trailer__disc {
  position: absolute; inset: 0; border-radius: 50%; background: rgba(8, 12, 28, .5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid var(--link); box-shadow: 0 0 40px rgba(92, 200, 255, .35);
  display: flex; align-items: center; justify-content: center;
}
.trailer__tri { width: 0; height: 0; margin-left: 6px; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.trailer__caption {
  position: absolute; left: clamp(18px, 3vw, 32px); bottom: clamp(16px, 3vw, 30px);
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.trailer__title { font: 600 clamp(20px, 3.2vw, 34px)/1.1 var(--font-display); color: #fff; }
.media__strip-head { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.media__arrows { display: flex; gap: 10px; }
.strip {
  --strip-pad: max(var(--pad-x), calc((100vw - var(--max)) / 2 + 56px));
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--strip-pad);
  padding: 16px var(--strip-pad) 8px; scrollbar-width: none;
}
.shot {
  appearance: none; flex: 0 0 min(74vw, 420px); box-sizing: border-box; aspect-ratio: 16/9; padding: 0; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--hair-22); background: var(--card); cursor: zoom-in; scroll-snap-align: start;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.shot img:hover { transform: scale(1.05); }

/* ---------- 06 Community ---------- */
.community { background: var(--bg); overflow: hidden; }
.community__glow {
  position: absolute; left: 50%; top: 0; width: 90vw; height: 60vw; max-width: 1100px; max-height: 700px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(92, 200, 255, .1), rgba(92, 200, 255, 0));
}
.community__grid {
  margin-top: var(--block-gap);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px;
}
.social-card {
  position: relative; display: flex; flex-direction: column; gap: 20px; padding: 28px; border-radius: 20px;
  background: linear-gradient(180deg, #131c40, var(--bg-alt)); border: 1px solid var(--hair-22); color: var(--text);
  min-height: 220px; box-sizing: border-box; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
/* !important: beats the inline transform the scroll reveal leaves behind. */
.social-card:hover {
  transform: translateY(-4px) !important; border-color: rgba(226, 191, 114, .6);
  box-shadow: 0 24px 60px -24px rgba(92, 200, 255, .35); color: var(--text);
}
.social-card__icon {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--hair-50);
  display: flex; align-items: center; justify-content: center;
}
.social-card__icon--discord { background: rgba(88, 101, 242, .16); }
.social-card__icon--discord img { width: 26px; height: auto; }
.social-card__icon--x { background: rgba(255, 255, 255, .06); }
.social-card__icon--yt { background: rgba(255, 0, 0, .1); }
.social-card__text { display: flex; flex-direction: column; gap: 8px; }
.social-card__name { font: 600 26px/1.1 var(--font-display); color: #fff; }
.social-card__desc { font: 500 15px/1.55 var(--font-ui); color: var(--secondary); }
.social-card__cta {
  margin-top: auto; display: flex; align-items: center; gap: 10px;
  font: 800 12px/1 var(--font-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
}

/* ---------- 07 Download ---------- */
.download {
  position: relative; min-height: min(80svh, 760px); display: flex; justify-content: center; overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, #101d48 45%, #23408a 72%, #3a64b8 100%);
}
.download__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.download__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(8, 12, 28, .82) 32%, rgba(8, 12, 28, .6) 62%, rgba(8, 12, 28, .25) 88%, rgba(8, 12, 28, .4) 100%);
}
.download__glow {
  position: absolute; left: 50%; top: 46%; width: min(110vw, 1000px); height: min(90vw, 640px); transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(6, 10, 26, .78), rgba(6, 10, 26, .45) 55%, rgba(6, 10, 26, 0));
}
.download__inner {
  position: relative; width: 100%; max-width: 1160px; padding: clamp(56px, 7vw, 96px) var(--pad-x) 0; box-sizing: border-box;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 0 clamp(24px, 4vw, 72px);
}
.ava { position: relative; flex: 0 0 auto; width: min(420px, 70vw); aspect-ratio: 900/1355; }
.ava__shadow { position: absolute; left: 16%; right: 16%; bottom: -1.5%; height: 5%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); }
.ava__float { position: absolute; inset: 0; }
.ava__glow {
  position: absolute; left: 45.2%; top: 15.4%; width: 24%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(120, 210, 255, .75), rgba(92, 200, 255, 0)); mix-blend-mode: screen;
}
.ava__fox { position: absolute; left: 8.46%; top: 3.17%; width: 28.68%; height: auto; transform-origin: 60% 80%; }
.bubble {
  position: absolute; left: min(68%, calc(100% + 15vw - 10px - min(240px, 40vw))); top: -1%;
  width: max-content; max-width: min(240px, 40vw); padding: 12px 16px 13px; box-sizing: border-box;
  border-radius: 18px 18px 18px 4px; background: linear-gradient(180deg, rgba(24, 34, 72, .96), rgba(10, 16, 36, .96));
  border: 1px solid rgba(226, 191, 114, .65);
  box-shadow: 0 14px 40px -10px rgba(0, 0, 0, .65), 0 0 26px rgba(92, 200, 255, .18);
}
.bubble__tail {
  position: absolute; left: -7px; bottom: 14px; width: 12px; height: 12px; transform: rotate(45deg); background: var(--panel);
  border-left: 1px solid rgba(226, 191, 114, .65); border-bottom: 1px solid rgba(226, 191, 114, .65);
}
.bubble__title { display: block; font: 600 clamp(15px, 3.8vw, 19px)/1.2 var(--font-display); color: var(--cream); }
.bubble__text { display: block; margin-top: 4px; font: 500 clamp(13px, 3.3vw, 15px)/1.35 var(--font-ui); color: #c9d1e6; }
.download__copy {
  position: relative; flex: 1 1 380px; max-width: 560px; align-self: center; padding: 28px 0 56px;
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
}
.download__logo { width: clamp(200px, 52vw, 340px); height: auto; filter: drop-shadow(0 10px 30px rgba(4, 8, 24, .6)); }
.h2--download { font-size: clamp(32px, 6vw, 54px); line-height: 1.08; text-shadow: 0 4px 24px rgba(4, 8, 24, .7); }
.download__sub {
  margin: 0; font: 700 18px/1.6 var(--font-ui); color: #fff;
  text-shadow: var(--shadow-art-text), 0 0 22px rgba(4, 8, 24, .7);
}
.download__win { margin-top: 4px; }

/* ---------- 08 Footer ---------- */
.site-footer { background: var(--bg-footer); border-top: 1px solid rgba(226, 191, 114, .2); padding: 40px var(--pad-x) 32px; }
.site-footer__row { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.site-footer__logo { width: 120px; height: auto; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0 28px; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; font: 600 14px/1.4 var(--font-ui); color: var(--footer-link); }
.site-footer__links a:hover { color: var(--gold-hover); }
.site-footer__social { display: flex; gap: 10px; }
.social-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(226, 191, 114, .35);
  display: flex; align-items: center; justify-content: center;
}
.social-btn:hover { border-color: var(--link); background: rgba(226, 191, 114, .1); }
.social-btn img { width: 20px; height: auto; }
.site-footer__legal {
  max-width: var(--max); margin: 28px auto 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .06);
  font: 500 13px/1.5 var(--font-ui); color: #7f8aa8;
}

/* ---------- Menu dialog ---------- */
.menu {
  position: fixed; inset: 0; z-index: 90; background: rgba(6, 9, 20, .97);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; flex-direction: column; padding: 10px clamp(16px, 4vw, 40px) 32px; overflow: auto;
}
.menu__bar { height: 44px; display: flex; align-items: center; justify-content: space-between; }
.menu__bar img { width: 116px; height: auto; }
.menu__nav { margin: auto 0; padding: 40px 0; display: flex; flex-direction: column; gap: 6px; max-width: var(--max); width: 100%; align-self: center; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 18px; padding: 10px 0;
  font: 600 clamp(30px, 8vw, 56px)/1.1 var(--font-display); color: var(--heading); border-bottom: 1px solid var(--hair-12);
}
.menu__nav a:hover { color: var(--gold-focus); }
.menu__num { font: 700 12px/1 var(--font-ui); letter-spacing: .2em; color: var(--gold); }
.menu__ext { display: flex; flex-direction: column; gap: 8px; }
.menu__ext-sub { font: 600 13px/1.2 var(--font-ui); letter-spacing: .08em; color: var(--secondary); }
.menu__download {
  align-self: center; width: 100%; max-width: 420px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; height: 60px; padding: 0 28px; border-radius: 999px;
  background: var(--grad-cta); color: var(--cta-ink);
  font: 800 15px/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255, 236, 190, .55);
}
.menu__download:hover { filter: brightness(1.08); color: var(--cta-ink); }

/* ---------- Lightbox dialog ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(4, 6, 14, .94);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: clamp(12px, 4vw, 48px);
}
.close-btn--lb { position: absolute; top: 12px; right: 12px; background: rgba(8, 12, 28, .6); }
.lightbox__video {
  width: min(100%, 1200px); aspect-ratio: 16/9; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(226, 191, 114, .35); background: #000;
}
.lightbox__video iframe { width: 100%; height: 100%; border: 0; }
.lightbox__shot { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; width: min(100%, 1280px); }
.lightbox__img { max-width: 100%; max-height: 76svh; border-radius: 12px; border: 1px solid rgba(226, 191, 114, .3); }
.lightbox__bar { display: flex; align-items: center; gap: 18px; font: 700 12px/1 var(--font-ui); letter-spacing: .2em; color: var(--footer-link); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero { height: 100svh; }
}
