/* Doomfalls — site styles. Dark stone, the game's hub gold (#f1bd3f), ember light, chamfered frames. */
@font-face { font-family: "Cinzel"; src: url("../assets/fonts/Cinzel-Variable.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --bg: #07060a;
  --bg-2: #0d0b10;
  --panel: rgba(17, 14, 19, .93);
  --line: rgba(236, 222, 196, .14);
  --line-2: rgba(236, 222, 196, .26);
  --text: #f2ece0;
  --muted: #a8a093;
  --dim: #746d62;
  --gold: #f1bd3f;
  --gold-2: #ffd86a;
  --ember: #ff7a1f;
  --cut: 16px;
  --radius-shell: 28px;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.7 var(--mono); letter-spacing: .01em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image:
    radial-gradient(1200px 700px at 80% -10%, rgba(255, 122, 31, .07), transparent 60%),
    radial-gradient(900px 600px at 0% 40%, rgba(141, 107, 255, .05), transparent 60%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--gold); color: #120d05; text-decoration: none; font-weight: 600; }
.skip:focus { top: 16px; }

/* ---------- shared pieces ---------- */
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.section { position: relative; padding: clamp(80px, 11vw, 150px) 24px; max-width: var(--max); margin: 0 auto; }
.section__head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 72px); display: grid; gap: 18px; justify-items: center; }
.section__title { font: 700 clamp(30px, 4.6vw, 56px)/1.08 var(--display); letter-spacing: .04em; text-transform: uppercase; text-wrap: balance;
  background: linear-gradient(180deg, #fff6e2 0%, #f1d9a6 55%, #c8954c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section__lead { color: var(--muted); max-width: 640px; text-wrap: pretty; }

/* Chamfered frame: a clipped panel whose hairline border is a second clipped layer. */
.frame { position: relative; isolation: isolate; --c: var(--cut);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.frame::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--line-2); }
.frame::after { content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--panel);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.frame--glow::before { background: conic-gradient(from var(--spin), #ffcf75, #ff7a1f 18%, #6b2a10 30%, #ffd88a 45%, #b3262c 62%, #ff9a3c 78%, #ffcf75); animation: spin 7s linear infinite; }
.frame--glow::after { inset: 3px; background: linear-gradient(160deg, rgba(34, 20, 13, .9), rgba(9, 8, 11, .94) 60%); }
.hero:not(.in-view) .frame--glow::before { animation-play-state: paused; }
@keyframes spin { to { --spin: 360deg; } }

/* Buttons: hexagonal outline with an ember glow (the reference's LEARN MORE / SEND). */
.btn { --h: 52px; position: relative; display: inline-grid; place-items: center; height: var(--h); padding: 0 34px; text-decoration: none; cursor: pointer; border: 0; background: none;
  font: 600 12px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; isolation: isolate; transition: transform .25s var(--ease), filter .25s; }
.btn::before, .btn::after { content: ""; position: absolute; inset: 0; clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 16px 100%, 0 50%); }
.btn::before { z-index: -2; }
.btn::after { inset: 1.5px; z-index: -1; }
.btn--gold { color: var(--gold-2); filter: drop-shadow(0 0 18px rgba(255, 150, 40, .28)); }
.btn--gold::before { background: linear-gradient(90deg, #a86a1a, #ffd27a 50%, #a86a1a); }
.btn--gold::after { background: radial-gradient(120% 140% at 50% 120%, rgba(255, 140, 40, .42), rgba(40, 22, 8, .96) 60%); }
.btn--ghost { color: var(--text); }
.btn--ghost::before { background: var(--line-2); }
.btn--ghost::after { background: rgba(10, 9, 12, .7); }
.btn:hover { transform: translateY(-2px); filter: drop-shadow(0 0 26px rgba(255, 150, 40, .45)); }
.btn--ghost:hover::before { background: var(--gold); }

.hexbtn { width: 46px; height: 52px; display: grid; place-items: center; border: 0; cursor: pointer; background: none; position: relative; isolation: isolate; transition: transform .2s var(--ease); }
.hexbtn::before, .hexbtn::after { content: ""; position: absolute; inset: 0; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.hexbtn::before { background: var(--line-2); z-index: -2; transition: background .2s; }
.hexbtn::after { inset: 1.5px; background: var(--bg-2); z-index: -1; }
.hexbtn svg { width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hexbtn:hover::before { background: var(--gold); }
.hexbtn:hover { transform: scale(1.06); }
.hexbtn:active { transform: scale(.96); }

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

/* Scroll rail: the thin vertical line with an ember dot from the reference. */
.rail { position: fixed; left: clamp(14px, 2.4vw, 36px); top: 50%; height: 180px; width: 1px; transform: translateY(-50%); z-index: 40;
  background: linear-gradient(180deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent); pointer-events: none; }
.rail__dot { position: absolute; left: -4px; top: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ember);
  box-shadow: 0 0 0 3px rgba(255, 122, 31, .18), 0 0 14px 2px rgba(255, 122, 31, .8); will-change: transform; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50; width: min(calc(100% - 28px), var(--max));
  display: grid; grid-template-columns: auto 1fr auto; align-items: stretch; height: 62px;
  background: rgba(12, 10, 14, .72); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .3s, border-color .3s, top .3s; }
.nav.is-scrolled { background: rgba(9, 8, 11, .86); border-color: var(--line-2); top: 8px; }
.nav__logo { display: flex; align-items: center; gap: 12px; padding: 0 22px 0 14px; text-decoration: none; border-right: 1px solid var(--line);
  font: 800 19px/1 var(--display); letter-spacing: .12em; text-transform: uppercase;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), transparent); }
.nav__logo img { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line-2); }
.nav__logo span { background: linear-gradient(180deg, #fff3d6, #d9a85a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav__links { display: flex; justify-content: center; align-items: center; gap: clamp(16px, 3vw, 44px); }
.nav__links a { font-size: 13px; text-decoration: none; color: var(--muted); position: relative; padding: 6px 0; transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav__links a:hover, .nav__links a.is-current { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); }
.nav__side { display: flex; align-items: stretch; border-left: 1px solid var(--line); }
.nav__store { display: flex; align-items: center; gap: 10px; padding: 0 22px; text-decoration: none; font-size: 13px; color: var(--gold-2); transition: background .2s; }
.nav__store svg { width: 18px; height: 18px; fill: currentColor; }
.nav__store:hover { background: rgba(255, 200, 120, .06); }
.nav__menu { display: none; width: 62px; border: 0; border-left: 1px solid var(--line); background: none; cursor: pointer; position: relative; }
.nav__menu span { position: absolute; left: 21px; right: 21px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease); }
.nav__menu span:first-child { top: 25px; } .nav__menu span:last-child { top: 33px; }
.nav__menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav__mobile { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(720px, 100svh); display: grid; align-items: center; overflow: hidden; padding: 110px 24px 60px; isolation: isolate; }
.hero__bg { position: absolute; inset: -4% -4% 0; z-index: -3; display: block; }
/* a long, soft fade from the painting into the page's black */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; z-index: -2; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 6, 10, 0) 0%, rgba(7, 6, 10, .55) 45%, rgba(7, 6, 10, .9) 75%, var(--bg) 100%); }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; filter: saturate(.9) contrast(1.05) brightness(.62); transform: scale(1.04); will-change: transform; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 6, 10, .92) 0%, rgba(7, 6, 10, .55) 42%, rgba(7, 6, 10, .1) 70%, rgba(7, 6, 10, .4) 100%),
    linear-gradient(180deg, rgba(7, 6, 10, .35) 0%, transparent 30%, transparent 62%, var(--bg) 100%); }
.hero__fog { position: absolute; inset: auto -20% -10% -20%; height: 45%; z-index: -1; pointer-events: none; opacity: .55;
  background: radial-gradient(50% 60% at 30% 80%, rgba(255, 120, 40, .22), transparent 70%), radial-gradient(40% 50% at 75% 90%, rgba(150, 120, 255, .12), transparent 70%);
}
.hero__stage { position: absolute; right: max(-40px, calc((100vw - var(--max)) / 2 - 60px)); bottom: 0; width: min(52vw, 760px); height: min(96%, 980px); z-index: 0; }
.hero__panel { position: relative; z-index: 2; max-width: 620px; margin-left: max(0px, calc((100vw - var(--max)) / 2 - 24px)); padding: clamp(28px, 4vw, 52px); --c: 26px; display: grid; gap: 22px; }
.hero__title { font: 800 clamp(38px, 5.4vw, 74px)/1.02 var(--display); letter-spacing: .02em; text-transform: uppercase; text-wrap: balance;
  color: #fbf1dc; text-shadow: 0 2px 30px rgba(0, 0, 0, .5); }
.hero__kicker { display: flex; margin-bottom: 22px; font-size: 12px; line-height: 1.4; text-shadow: none; }
.hero__accent { background: linear-gradient(180deg, #ffe3a6 10%, #f3a43a 60%, #c25a18); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { color: #cbc3b4; max-width: 520px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.chips li { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.chips b { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 7px; border-radius: 30px; background: radial-gradient(circle at 35% 30%, #ffe29a, #f0a531 60%, #b26a12); color: #241505; font-size: 12px; letter-spacing: 0; box-shadow: 0 0 16px rgba(255, 170, 60, .45); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; width: 22px; height: 36px; border: 1px solid var(--line-2); border-radius: 12px; transform: translateX(-50%); z-index: 3; }
.hero__scroll span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 2px; background: var(--gold); transform: translateX(-50%); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 50% { transform: translate(-50%, 9px); opacity: .3; } }

/* 3D stages and their posters (the posters stay until a stage draws its first frame). */
.stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s var(--ease); }
.stage__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; transition: opacity .8s var(--ease); pointer-events: none; }
[data-stage].is-live .stage__canvas { opacity: 1; }
[data-stage].is-live .stage__poster { opacity: 0; }
.hero__stage { pointer-events: none; }
/* feathered on every side, so the rune circle and embers never end on a hard line */
.hero__stage .stage__canvas { -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%); }
.hero__stage .stage__poster { filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .7)); padding: 10% 8% 4%; }

/* ---------- statement ---------- */
.statement { position: relative; min-height: 74vh; display: grid; place-items: center; overflow: hidden; padding: 120px 24px; margin: 0 clamp(0px, 2vw, 28px);
  border: 1px solid var(--line); border-radius: var(--radius-shell); isolation: isolate; }
.statement__bg { position: absolute; inset: -8%; z-index: -1; }
/* Gameplay from all ten chapters, recorded in the game and blurred when the video was made (tools/make_loop.swift). */
.statement__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.statement::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 60% at 50% 50%, rgba(7, 6, 10, .18), rgba(7, 6, 10, .72)), linear-gradient(180deg, rgba(20, 10, 6, .22), rgba(7, 6, 10, .32)); }
.statement__title { font: 800 clamp(30px, 5.4vw, 72px)/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; text-align: center; text-wrap: balance;
  color: #fff4dc; text-shadow: 0 0 40px rgba(255, 140, 40, .35), 0 4px 30px rgba(0, 0, 0, .6); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { padding: 30px 26px 32px; display: grid; gap: 14px; align-content: start; }
.js .step.reveal:nth-child(2) { transition-delay: .08s; } .js .step.reveal:nth-child(3) { transition-delay: .16s; } .js .step.reveal:nth-child(4) { transition-delay: .24s; }
.step__n { font: 700 34px/1 var(--display); color: var(--gold); text-shadow: 0 0 24px rgba(255, 160, 50, .45); }
.step h3 { font: 700 19px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- gameplay player ---------- */
.player { max-width: 1100px; margin: 0 auto; padding: 10px; --c: 24px; }
.player::after { background: rgba(10, 8, 12, .95); }
.player__screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); }
.player__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.player__screen::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(7, 6, 10, .55)), linear-gradient(0deg, rgba(7, 6, 10, .7), transparent 30%); }
.player__label { position: absolute; left: 26px; bottom: 26px; z-index: 1; display: grid; gap: 4px; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.player__n { font: 600 11px/1 var(--mono); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.player__name { font: 700 clamp(20px, 2.6vw, 30px)/1.1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: #fff4de; }
.player__name.swap { animation: labelIn .6s var(--ease); }
@keyframes labelIn { from { opacity: 0; transform: translateY(8px); } }
.player__bar { position: absolute; left: 26px; right: 26px; bottom: 14px; height: 2px; background: rgba(255, 255, 255, .14); z-index: 1; }
.player__bar span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
@media (max-width: 600px) { .player { padding: 6px; --c: 16px; } .player__label { left: 16px; bottom: 20px; } .player__bar { left: 16px; right: 16px; bottom: 10px; } }

/* ---------- heroes showcase (the reference's "Winner's Helmet" panel) ---------- */
.heroes { max-width: 1320px; }
.showcase { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.showcase__view { position: relative; width: 100%; min-width: 0; display: grid; justify-items: center; }
.showcase__stage { position: relative; width: min(100%, 720px); height: clamp(520px, 62vw, 740px); touch-action: pan-y; cursor: grab; }
.showcase__stage:active { cursor: grabbing; }
.showcase__halo { position: absolute; left: 50%; bottom: 6%; width: 78%; height: 70%; transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 60%, rgba(255, 130, 40, .24), rgba(255, 90, 20, .06) 55%, transparent 74%); }
.showcase__stage .stage__canvas, .showcase__stage .stage__poster { -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 74%, transparent 98%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 74%, transparent 98%); mask-composite: intersect; }
.showcase__stage .stage__poster { padding: 6% 16% 9%; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6)); }
.showcase__arc { position: absolute; left: 50%; bottom: 5%; width: 62%; height: 70px; transform: translateX(-50%); border-bottom: 1px solid rgba(255, 255, 255, .5); border-radius: 0 0 50% 50% / 0 0 100% 100%; pointer-events: none; }
.showcase__dots { position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); display: flex; gap: 6px; }
.showcase__dots::before, .showcase__dots::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .8); }
.showcase__slides { position: absolute; inset: 0; pointer-events: none; }
.hero-card { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s; }
.hero-card.is-active { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }
.hero-card__name { position: absolute; left: 50%; top: 0; transform: translateX(-50%); white-space: nowrap; z-index: 2;
  font: 800 clamp(26px, 3.4vw, 44px)/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: #fff7e6; text-shadow: 0 0 30px rgba(255, 150, 60, .3), 0 2px 10px rgba(0, 0, 0, .8); }
.hero-card__poster { display: none; }
.callout { position: absolute; width: min(330px, 29%); padding: 22px 24px; font-size: 13.5px; color: #d6cfc2; display: grid; gap: 10px; --c: 18px; pointer-events: auto;
  transform: translateY(12px); opacity: 0; transition: transform .7s var(--ease) .15s, opacity .7s var(--ease) .15s; }
.hero-card.is-active .callout { transform: none; opacity: 1; }
.callout--left { left: 0; bottom: 16%; }
.callout--right { right: 0; top: 20%; }
.callout__tag { font: 600 11px/1.3 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.callout b { color: var(--gold-2); font-weight: 600; }
.callout--left .callout__line, .callout--right .callout__line { display: none; }
.stats { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 4px 0 0; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stats dt { display: flex; align-items: center; gap: 8px; }
.stats dt img { width: 18px; height: 18px; }
.stats dd { margin: 0; align-self: center; height: 6px; background: rgba(255, 255, 255, .07); position: relative; clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }
.stats dd i { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 20%); background: linear-gradient(90deg, #a2561a, var(--gold) 70%, var(--gold-2)); box-shadow: 0 0 10px rgba(255, 170, 60, .5); }
.showcase__controls { display: flex; align-items: center; gap: 22px; margin-top: 18px; }
.showcase__tabs { display: flex; gap: 10px; }
.showcase__tabs button { width: 44px; height: 44px; border: 0; padding: 0; cursor: pointer; border-radius: 50%; overflow: hidden; background: #15121a;
  box-shadow: 0 0 0 1px var(--line-2); transition: box-shadow .25s, transform .25s var(--ease); }
.showcase__tabs button img { width: 100%; height: 160%; object-fit: cover; object-position: 50% 0; filter: grayscale(.7) brightness(.7); transition: filter .25s; }
.showcase__tabs button[aria-selected="true"] { box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(255, 170, 60, .55); transform: translateY(-3px); }
.showcase__tabs button[aria-selected="true"] img, .showcase__tabs button:hover img { filter: none; }
.showcase__hint { margin-top: 14px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); }

/* ---------- arsenal (the reference's "Extra Equipment" carousel) ---------- */
.arsenal::before { content: ""; position: absolute; inset: 20% 10% 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 45% at 50% 55%, rgba(255, 255, 255, .05), transparent 72%); }
.relics { position: relative; display: grid; justify-items: center; }
.relics__track { position: relative; width: 100vw; margin-left: calc(50% - 50vw); height: 470px; overflow: hidden; touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.relic { position: absolute; left: 50%; top: 50%; width: 240px; padding: 12px 12px 18px; --c: 18px; cursor: pointer; display: grid; gap: 12px;
  transform: translate(-50%, -50%) translateX(calc(var(--o, 0) * 290px)) scale(var(--s, .82)); opacity: var(--a, 0); z-index: var(--z, 0);
  transition: transform .7s var(--ease), opacity .7s var(--ease); }
.relic.is-active { --s: 1.12; --a: 1; --z: 3; cursor: default; }
.relic.is-active::before { background: linear-gradient(180deg, var(--gold), rgba(241, 189, 63, .25)); }
.relic.is-near { --a: .8; --z: 2; }
.relic.is-far { --a: .45; --z: 1; }
.relic.is-edge { --a: .2; --z: 0; }
.relic__art { aspect-ratio: 1 / .86; position: relative; overflow: hidden; clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  background: radial-gradient(70% 70% at 50% 45%, rgba(255, 140, 50, .28), rgba(30, 14, 10, .8) 60%, #0a080b); }
.relic:nth-child(2n) .relic__art { background: radial-gradient(70% 70% at 50% 45%, rgba(170, 70, 255, .26), rgba(22, 10, 30, .8) 60%, #0a080b); }
.relic:nth-child(3n) .relic__art { background: radial-gradient(70% 70% at 50% 45%, rgba(80, 160, 90, .22), rgba(10, 22, 14, .8) 60%, #0a080b); }
.relic__art img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transform: rotate(-24deg) scale(1.15); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .7)); transition: opacity .5s; -webkit-user-drag: none; }
.relic.is-active.has-3d .relic__art img { opacity: 0; }
.relic__name { font: 700 14px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 0 6px; }
.relic.is-active .relic__name { color: var(--gold-2); }
.relic__meta { font-size: 11px; color: var(--muted); padding: 0 6px; letter-spacing: .04em; }
.relics__stage { position: absolute; left: 50%; top: 235px; width: 320px; height: 460px; transform: translate(-50%, calc(-50% - 92px)); z-index: 4; pointer-events: none; }
.relics__controls { display: flex; gap: 26px; margin-top: 10px; }

/* ---------- chapters ---------- */
.chapters { max-width: none; width: 100%; padding-left: 0; padding-right: 0; }
.chapters .section__head { padding: 0 24px; }
.road__track { display: grid; grid-auto-flow: column; grid-auto-columns: min(380px, 82vw); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 10px max(24px, calc((100vw - var(--max)) / 2)) 24px; scroll-padding-inline: max(24px, calc((100vw - var(--max)) / 2)); scrollbar-width: none; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.road__track::-webkit-scrollbar { display: none; }
.road__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.road__track.is-dragging * { pointer-events: none; }
.chapter { scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr; --c: 20px; }
.chapter__art { aspect-ratio: 16 / 9.4; width: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; filter: saturate(.95) brightness(.88); transition: filter .4s; }
.chapter:hover .chapter__art { filter: saturate(1.1) brightness(1); }
.chapter__body { padding: 20px 22px 24px; display: grid; gap: 10px; align-content: start; font-size: 13.5px; color: var(--muted); }
.chapter__n { font: 600 11px/1 var(--mono); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.chapter h3 { font: 700 22px/1.15 var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--text); }
.chapter__boss { display: flex; align-items: center; gap: 12px; margin-top: 4px; padding: 10px 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); color: var(--text); font-weight: 500; }
.chapter__boss img, .chapter__sigil { width: 44px; height: 44px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px var(--line-2), 0 0 16px rgba(255, 120, 40, .25); }
.chapter__sigil { background: radial-gradient(circle at 50% 45%, #c9a7ff 0 12%, #5b2fd0 30%, #1a0e2e 66%); }
.chapter__boss small { display: block; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.chapter__champs { font-size: 12px; color: var(--dim); }
.chapter--final::before { background: linear-gradient(180deg, var(--ember), rgba(255, 122, 31, .2)); }
.road__controls { display: flex; align-items: center; gap: 22px; justify-content: center; margin-top: 18px; padding: 0 24px; }
.road__bar { width: min(320px, 46vw); height: 2px; background: var(--line); position: relative; }
.road__bar span { position: absolute; inset: 0 auto 0 0; width: 20%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* ---------- tiles ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { padding: 28px 26px 30px; display: grid; gap: 12px; align-content: start; }
.tile img { width: 40px; height: 40px; filter: drop-shadow(0 0 12px rgba(255, 170, 60, .35)); }
.tile h3 { font: 700 18px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.tile p { color: var(--muted); font-size: 14px; }

/* ---------- faq ---------- */
.faq__list { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item { --c: 14px; }
.faq__item summary { list-style: none; cursor: pointer; padding: 22px 60px 22px 26px; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; position: absolute; right: 26px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__item h3 { font: 600 15px/1.4 var(--mono); letter-spacing: .02em; }
.faq__item p { padding: 0 26px 24px; color: var(--muted); font-size: 14px; max-width: 70ch; }

/* ---------- play (the reference's "Get in touch") ---------- */
.play { display: grid; gap: 50px; justify-items: center; }
.play .section__title { text-align: center; }
.play__box { width: min(100%, 980px); display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 30px; padding: 54px 0 54px 54px; --c: 40px; }
.play__box::after { background: rgba(9, 8, 11, .72); }
.play__copy { display: grid; gap: 22px; align-content: center; position: relative; z-index: 1; }
.play__lead { font-size: 15px; color: #d7cfc1; }
.play__list { display: grid; gap: 10px; font-size: 13px; color: var(--muted); }
.play__list li { display: flex; gap: 12px; align-items: center; }
.play__list li::before { content: ""; width: 7px; height: 7px; flex: none; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.badges { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 10px; }
.badge { position: relative; display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 18px; background: #000; border: 1px solid rgba(255, 255, 255, .28); border-radius: 12px; text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.badge:hover { border-color: var(--gold); transform: translateY(-2px); }
.badge svg { width: 26px; height: 26px; fill: #fff; }
.badge span { font: 600 19px/1.05 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -.01em; }
.badge small { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .02em; }
.badge.is-soon { cursor: default; }
.badge.is-soon:hover { transform: none; border-color: rgba(255, 255, 255, .28); }
.badge.is-soon::after { content: attr(data-soon); position: absolute; right: -10px; top: -10px; padding: 5px 9px; font: 600 9.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #241505; background: var(--gold); box-shadow: 0 0 14px rgba(255, 170, 60, .5); }
.signup { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.signup[hidden] { display: none; }
.signup p:first-child { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.signup input { height: 52px; padding: 0 16px; border: 0; background: #1b191e; color: var(--text); font: inherit; font-size: 14px; outline: 1px solid transparent; transition: outline-color .2s; }
.signup input:focus { outline-color: var(--gold); }
.signup__status { grid-column: 1 / -1; font-size: 13px; color: var(--gold-2); min-height: 1em; }
.play__art { position: relative; height: 380px; }
.play__glow { position: absolute; inset: 8% 0 8% 6%; border: 1px solid rgba(255, 140, 50, .55);
  background: linear-gradient(160deg, rgba(120, 50, 14, .55), rgba(40, 16, 6, .4) 60%, rgba(255, 110, 30, .18)); box-shadow: inset 0 0 80px rgba(255, 120, 30, .22), 0 0 60px rgba(255, 110, 30, .12); }
.play__stage { position: absolute; inset: -12% 0 -12% 0; pointer-events: none; }
.play__stage .stage__poster { object-position: 50% 50%; transform: rotate(-18deg) scale(.95); filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .7)); }

/* ---------- footer ---------- */
.footer { max-width: var(--max); margin: 0 auto; padding: 0 24px 34px; }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.footer__social { display: flex; align-items: center; gap: 12px; }
.footer__social:not(.has-links) { display: none; }
.footer__follow { margin-right: 10px; }
.footer__social a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #1b191e; transition: background .2s, transform .2s; }
.footer__social a:hover { background: var(--gold); transform: translateY(-2px); }
.footer__social a:hover svg { fill: #1a1006; }
.footer__social svg { width: 16px; height: 16px; fill: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .callout { width: 33%; }
}
@media (max-width: 900px) {
  .nav { height: 58px; }
  .nav__links { display: none; }
  .nav__menu { display: block; width: 58px; }
  .nav__store span { display: none; }
  .nav__store { padding: 0 18px; }
  .nav__mobile { position: absolute; top: calc(100% + 8px); left: -1px; right: -1px; display: grid; background: rgba(9, 8, 11, .96); border: 1px solid var(--line-2); padding: 8px 0;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .35s var(--ease), visibility 0s .35s; }
  .nav__mobile a { padding: 14px 22px; text-decoration: none; font-size: 14px; border-bottom: 1px solid var(--line); }
  .nav__mobile a:last-child { border-bottom: 0; color: var(--gold-2); }
  .nav.is-open .nav__mobile { clip-path: inset(0); visibility: visible; transition: clip-path .35s var(--ease); }
  .hero { align-items: end; padding-top: 90px; }
  .hero::before { background: linear-gradient(180deg, rgba(7, 6, 10, .3) 0%, rgba(7, 6, 10, .1) 30%, rgba(7, 6, 10, .85) 60%, var(--bg) 100%); }
  .hero__stage { left: 50%; right: auto; top: 64px; bottom: auto; width: min(100%, 520px); height: 54svh; transform: translateX(-50%); }
  .hero__panel { margin: 42svh auto 0; }
  .hero__scroll { display: none; }
  .rail { display: none; }
  .showcase__stage { height: 470px; }
  .showcase__slides { position: relative; inset: auto; margin-top: -40px; }
  .hero-card { position: absolute; inset: 0 0 auto; display: grid; gap: 12px; }
  .hero-card.is-active { position: relative; }
  .hero-card__name { position: relative; left: auto; top: auto; transform: none; text-align: center; white-space: normal; margin-bottom: 6px; }
  .showcase__view { display: flex; flex-direction: column; }
  .callout { position: relative; inset: auto; width: 100%; }
  .relics__track { height: 430px; }
  .showcase__controls { gap: 12px; }
  .showcase__tabs { gap: 6px; }
  .showcase__tabs button { width: 36px; height: 36px; }
  .showcase__controls .hexbtn { width: 40px; height: 46px; }
  .relic { width: 210px; transform: translate(-50%, -50%) translateX(calc(var(--o, 0) * 236px)) scale(var(--s, .82)); }
  .relics__stage { top: 215px; width: 260px; height: 340px; transform: translate(-50%, calc(-50% - 80px)); }
  .play__box { grid-template-columns: 1fr; padding: 40px 28px 30px; }
  .play__art { height: 300px; }
}
@media (max-width: 600px) {
  body { font-size: 14px; }
  .steps, .grid { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1; padding: 0 18px; }
  .chips { gap: 10px 16px; }
  .relic { width: 190px; transform: translate(-50%, -50%) translateX(calc(var(--o, 0) * 214px)) scale(var(--s, .82)); }
  .relics__stage { top: 215px; width: 230px; height: 300px; transform: translate(-50%, calc(-50% - 72px)); }
  .footer__row { justify-content: center; text-align: center; }
}

/* ---------- phone fixes ---------- */
@media (max-width: 900px) {
  .showcase__arc { display: none; }
  .deco img { opacity: .3 !important; }
  .deco .d-rune { opacity: .05 !important; }
  .deco .d-glow { filter: none; }
}
@media (max-width: 600px) {
  .hero__kicker { font-size: 11px; letter-spacing: .2em; margin-bottom: 16px; }
  .hero__kicker::before { display: none; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; flex: none; letter-spacing: .16em; }
  .hero__panel { gap: 18px; }
}
@media (max-width: 380px) {
  .nav__logo { gap: 8px; padding: 0 12px 0 10px; font-size: 15px; letter-spacing: .08em; }
  .nav__logo img { width: 28px; height: 28px; }
  .nav__store { padding: 0 12px; }
  .nav__menu { width: 48px; }
  .nav__menu span { left: 15px; right: 15px; }
  .showcase__controls .hexbtn { display: none; }
  .showcase__tabs button { width: 34px; height: 34px; }
  .section { padding-left: 18px; padding-right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* ---------- drifting game art (moved by scroll in js/site.js) ---------- */
.section > *:not(.deco) { position: relative; z-index: 1; }
.deco { position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); width: 100vw; z-index: 0; pointer-events: none; overflow-x: clip; }
.deco img { position: absolute; height: auto; will-change: transform; user-select: none; -webkit-user-drag: none; }
.deco .d-rock { filter: brightness(.42) saturate(.8); }
.deco .d-far { opacity: .35; }
.deco .d-mid { opacity: .7; }
.deco .d-rune { opacity: .07; }
.deco .d-glow { filter: drop-shadow(0 0 24px rgba(160, 110, 255, .45)); }
.deco .d-gold { filter: drop-shadow(0 0 22px rgba(255, 170, 60, .35)); }
.deco .d-tree { filter: brightness(.3); opacity: .55; }
@media (max-width: 900px) { .deco .d-hide-sm { display: none; } .deco img { max-width: 34vw; } }
@media (prefers-reduced-motion: reduce) { .deco img { transform: none !important; } }
