/* Rifters game landing.
   Plain CSS, no build step. Colours come from the game's logo (aether violet,
   rift magenta) and its gold call-to-action buttons. */

:root {
  --bg: #0a0614;
  --bg-2: #120a24;
  --bg-3: #1a1033;
  --ink: #f5f1ff;
  --ink-2: #c9c0e6;
  --muted: #9087b0;
  --line: rgba(220, 205, 255, 0.12);
  --violet: #a78bfa;
  --violet-2: #7c3aed;
  --rift: #e879f9;
  --gold: #f6c453;
  --gold-2: #e9a12b;
  --type-color: #a78bfa;

  --display: "Chakra Petch", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --story: "Cormorant Garamond", Georgia, serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --header-h: 72px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--rift); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--violet-2); color: #fff; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg);
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ------------------------------------------------------------------ type */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 12px/1 var(--display); letter-spacing: .32em; text-transform: uppercase;
  color: var(--rift);
}
.kicker::before {
  content: ""; width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--rift));
}
.section-title {
  margin-top: 14px;
  font: 700 clamp(2rem, 1.2rem + 3.2vw, 3.6rem)/1.05 var(--display);
  letter-spacing: -.01em;
  text-wrap: balance;
}
.section-title--sm { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); }
.section-lead {
  margin-top: 16px; max-width: 60ch;
  color: var(--ink-2); font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  text-wrap: pretty;
}
.section-head { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section-head--sub { padding: 0; margin: 0 0 32px; }

/* --------------------------------------------------------------- buttons */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--display); letter-spacing: .04em; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), background .3s, border-color .3s, box-shadow .35s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 13px; }
.btn--gold {
  color: #2a1700;
  background: linear-gradient(180deg, #ffe08a, var(--gold) 45%, var(--gold-2));
  box-shadow: 0 0 0 1px rgba(255, 224, 138, .5) inset, 0 10px 30px -8px rgba(246, 196, 83, .55);
}
.btn--gold:hover { box-shadow: 0 0 0 1px rgba(255, 236, 170, .8) inset, 0 16px 40px -8px rgba(246, 196, 83, .8); }
.btn--glass {
  color: var(--ink); background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn--glass:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); }
.btn--ghost { color: var(--ink); border-color: var(--line); background: transparent; }
.btn--ghost:hover { border-color: var(--violet); background: rgba(167, 139, 250, .1); }

.play-badge {
  display: inline-flex; align-items: center; gap: 12px;
  height: 58px; padding: 0 24px 0 18px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 14px 40px -12px rgba(124, 58, 237, .7);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .3s;
}
.play-badge:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .6); box-shadow: 0 20px 50px -12px rgba(232, 121, 249, .7); }
.play-badge svg { width: 28px; height: 28px; }
.play-badge span { display: flex; flex-direction: column; font: 600 20px/1.05 var(--body); letter-spacing: -.01em; }
.play-badge small { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.play-badge--lg { height: 66px; padding: 0 30px 0 22px; }
.play-badge--lg span { font-size: 23px; }

.arrow {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(10, 6, 20, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  cursor: pointer; transition: background .3s, border-color .3s, transform .35s var(--ease);
}
.arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.arrow:hover { background: rgba(167, 139, 250, .3); border-color: var(--violet); transform: scale(1.06); }

/* ---------------------------------------------------------------- loader */
.loader {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center; align-content: center; gap: 22px;
  background: radial-gradient(circle at 50% 45%, #2a1250, var(--bg) 60%);
  transition: opacity .8s var(--ease) .25s, visibility 0s linear 1.1s;
}
.loader__portal { position: relative; width: 140px; aspect-ratio: 1; transition: transform 1s var(--ease-in); }
.loader__portal img { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader__core { animation: spin 3s linear infinite; clip-path: circle(31% at 50% 50%); }
.loader__label { font: 600 13px/1 var(--display); letter-spacing: .3em; color: var(--ink-2); }
body.is-ready .loader { opacity: 0; visibility: hidden; }
body.is-ready .loader__portal { transform: scale(9) rotate(25deg); }
body.is-ready .loader__label { opacity: 0; transition: opacity .2s; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
  transition: background .4s, transform .5s var(--ease), border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 6, 20, .72); border-bottom-color: var(--line);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
.site-header.is-hidden { transform: translateY(-100%); }
.brand img { width: auto; height: 40px; }
.nav { display: flex; gap: 4px; margin: 0 auto; }
.nav__link {
  position: relative; padding: 10px 14px;
  font: 600 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-2); transition: color .25s;
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), var(--rift));
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after, .nav__link:hover::after { transform: scaleX(1); }
.header-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav + .header-tools { margin-left: 0; }

.sound-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .05); cursor: pointer;
  transition: border-color .3s, background .3s;
}
.sound-btn:hover { border-color: var(--violet); }
.sound-btn__bars { display: flex; align-items: flex-end; gap: 3px; height: 14px; }
.sound-btn__bars i { width: 3px; height: 5px; border-radius: 2px; background: var(--ink-2); transition: height .3s; }
.sound-btn__bars i:nth-child(2) { height: 10px; }
.sound-btn__bars i:nth-child(3) { height: 7px; }
.sound-btn__bars i:nth-child(4) { height: 12px; }
.sound-btn[aria-pressed="true"] { border-color: var(--rift); background: rgba(232, 121, 249, .12); }
.sound-btn[aria-pressed="true"] i { background: var(--rift); animation: eq 1s ease-in-out infinite; }
.sound-btn[aria-pressed="true"] i:nth-child(2) { animation-delay: -.4s; }
.sound-btn[aria-pressed="true"] i:nth-child(3) { animation-delay: -.2s; }
.sound-btn[aria-pressed="true"] i:nth-child(4) { animation-delay: -.7s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

.menu-btn { display: none; }

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav + .header-tools { margin-left: auto; }
  .brand img { height: 34px; }
  .menu-btn {
    display: grid; place-content: center; gap: 6px; width: 44px; height: 44px;
    border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); cursor: pointer;
  }
  .menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .4s var(--ease); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; z-index: -1; margin: 0;
    flex-direction: column; justify-content: center; gap: 6px; padding: 0 var(--gutter);
    background: rgba(10, 6, 20, .96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    clip-path: circle(0% at calc(100% - 40px) 32px); visibility: hidden;
    transition: clip-path .7s var(--ease), visibility 0s linear .7s;
  }
  .nav.is-open { clip-path: circle(150% at calc(100% - 40px) 32px); visibility: visible; transition: clip-path .7s var(--ease); }
  .nav__link { font-size: clamp(1.6rem, 7vw, 2.4rem); letter-spacing: .04em; padding: 10px 0; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease); }
  .nav__link::after { left: 0; right: auto; width: 40px; }
  .nav.is-open .nav__link { opacity: 1; transform: none; }
  .nav.is-open .nav__link:nth-child(2) { transition-delay: .05s; }
  .nav.is-open .nav__link:nth-child(3) { transition-delay: .1s; }
  .nav.is-open .nav__link:nth-child(4) { transition-delay: .15s; }
  .nav.is-open .nav__link:nth-child(5) { transition-delay: .2s; }
  .nav.is-open .nav__link:nth-child(6) { transition-delay: .25s; }
}
@media (max-width: 420px) {
  .header-tools .btn--gold { display: none; }
}

/* ------------------------------------------------------------------ rail */
.rail {
  position: fixed; right: 22px; top: 50%; z-index: 90; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 14px;
  transition: opacity .4s;
}
.rail a {
  position: relative; display: block; width: 8px; height: 8px; border-radius: 4px;
  background: rgba(255, 255, 255, .3); transition: height .45s var(--ease), background .3s;
}
.rail a.is-active { height: 28px; background: linear-gradient(var(--violet), var(--rift)); }
.rail a::before {
  content: attr(data-label); position: absolute; right: 20px; top: 50%; transform: translate(6px, -50%);
  font: 600 11px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  color: var(--ink); opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease);
}
.rail a:hover::before, .rail a:focus-visible::before { opacity: 1; transform: translate(0, -50%); }
.rail.is-hidden { opacity: 0; pointer-events: none; }
@media (max-width: 1180px) { .rail { display: none; } }

/* ---------------------------------------------------------------- reveal */
.reveal {
  opacity: 0; transform: translateY(40px); filter: blur(6px);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* ------------------------------------------------------------------ hero */
/* The hero is taller than the screen: its sticky inner stays put while you
   scroll, and --p (0-1, set by script.js) dives the camera into the rift. */
.hero { --p: 0; position: relative; height: 165svh; }
.hero__sticky { position: sticky; top: 0; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: -4%; z-index: -3; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%;
  transform: scale(calc(1.06 + var(--p) * .35)); filter: saturate(calc(1 + var(--p) * .4)) blur(calc(var(--p) * 6px));
  animation: kenburns 30s ease-in-out infinite alternate;
}
@keyframes kenburns { from { object-position: 46% 62%; } to { object-position: 54% 58%; } }
.hero__shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 60% 50% at 50% 42%, rgba(124, 58, 237, calc(.15 + var(--p) * .6)), transparent 70%),
    linear-gradient(180deg, rgba(10, 6, 20, .55) 0%, rgba(10, 6, 20, .1) 30%, rgba(10, 6, 20, .35) 62%, var(--bg) 100%);
}
.hero__shade::after { /* the dive's final flash, handing over to the dark World section */
  content: ""; position: absolute; inset: 0; background: var(--bg);
  opacity: clamp(0, (var(--p) - .62) * 2.8, 1);
}
.hero__motes { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero__dimons { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-dimon {
  position: absolute; width: var(--s); aspect-ratio: 1;
  translate: calc(var(--mx, 0) * var(--d) * 1px) calc(var(--my, 0) * var(--d) * 1px + var(--p) * var(--d) * -14vh);
  opacity: calc(1 - var(--p) * 1.8);
  filter: drop-shadow(0 18px 24px rgba(10, 6, 20, .45));
}
.hero-dimon > * { width: 100%; height: 100%; animation: float var(--dur, 7s) ease-in-out infinite alternate; }
body:not(.is-ready) .hero-dimon { opacity: 0; }
.hero-dimon { transition: opacity 1.2s var(--ease) var(--delay, 0s); }
@keyframes float { from { transform: translateY(-8px); } to { transform: translateY(10px); } }

.hero__center {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--header-h) + 12px) var(--gutter) 90px; text-align: center;
}
.hero__sticky > .emblem {
  position: absolute; left: 50%; top: var(--emblem-y, 40%); width: min(90vmin, 820px); aspect-ratio: 1;
  translate: -50% -50%; z-index: -1; pointer-events: none;
  transform: scale(calc(1 + var(--p) * var(--p) * 5));
  opacity: calc(1 - clamp(0, (var(--p) - .6) * 2.6, 1));
}
.emblem img, .emblem__core { position: absolute; inset: 0; width: 100%; height: 100%; }
.emblem__halo { opacity: .5; animation: pulse 4.5s ease-in-out infinite; mix-blend-mode: screen; }
.emblem__core {
  opacity: calc(.42 + var(--p) * .58); mix-blend-mode: screen;
  -webkit-mask: radial-gradient(circle, #000 8%, transparent 31%);
  mask: radial-gradient(circle, #000 8%, transparent 31%);
}
.emblem__core img { animation: spin 22s linear infinite; }
@keyframes pulse { 0%, 100% { transform: scale(.94); opacity: .4; } 50% { transform: scale(1.05); opacity: .7; } }

.hero__logo { width: min(78vw, 460px); margin-top: min(16vmin, 150px); }
.hero__logo img { width: 100%; height: auto; filter: drop-shadow(0 10px 40px rgba(124, 58, 237, .65)); }
.hero__tag {
  margin-top: 6px;
  font: 700 clamp(1.3rem, 1rem + 1.5vw, 2.1rem)/1.15 var(--display); letter-spacing: .02em;
  text-shadow: 0 2px 24px rgba(10, 6, 20, .7);
}
.hero__tag .w { display: inline-block; opacity: 0; transform: translateY(.6em); filter: blur(8px); transition: opacity .8s var(--ease), transform 1s var(--ease), filter .8s; transition-delay: calc(.5s + var(--i) * 70ms); }
.hero__tag .w.accent { background: linear-gradient(90deg, #d8ccff, #f5b8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.is-ready .hero__tag .w { opacity: 1; transform: none; filter: none; }
.hero__sub { margin-top: 12px; max-width: 46ch; color: var(--ink); opacity: .88; text-shadow: 0 2px 18px rgba(10, 6, 20, .9); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
.hero__logo, .hero__sub, .hero__cta { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.hero__logo { transform: scale(.9); transition-delay: .2s; }
.hero__sub { transition-delay: 1s; }
.hero__cta { transition-delay: 1.15s; }
body.is-ready .hero__logo, body.is-ready .hero__sub, body.is-ready .hero__cta { opacity: 1; transform: none; }
.hero__center > * { translate: 0 calc(var(--p) * -30vh); }
.hero__center { opacity: calc(1 - var(--p) * 2.2); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font: 600 10px/1 var(--display); letter-spacing: .35em; text-transform: uppercase; text-decoration: none; color: var(--ink-2);
  opacity: calc(1 - var(--p) * 5);
}
.scroll-cue i { position: relative; width: 1px; height: 46px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--ink); animation: drip 2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* ----------------------------------------------------------------- world */
.world { position: relative; height: 100svh; min-height: 640px; overflow: hidden; isolation: isolate; background: var(--bg); }
.world__bgs { position: absolute; inset: 0; z-index: -2; }
.world__bgs figure { position: absolute; inset: 0; margin: 0; clip-path: circle(0% at 72% 50%); transition: clip-path 1.4s var(--ease); }
.world__bgs figure.is-active { clip-path: circle(150% at 72% 50%); z-index: 1; }
.world__bgs figure.is-leaving { clip-path: circle(150% at 72% 50%); z-index: 0; }
.world__bgs img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.15); transition: transform 8s linear; }
.world__bgs figure.is-active img { transform: scale(1.02); }
.world::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 6, 20, .92) 0%, rgba(10, 6, 20, .7) 38%, rgba(10, 6, 20, .1) 75%),
    linear-gradient(0deg, rgba(10, 6, 20, .9), transparent 35%),
    linear-gradient(180deg, var(--bg), transparent 18%);
}
.world__slides { position: relative; height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.world-slide {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 50%; translate: 0 -55%;
  max-width: 600px; pointer-events: none;
}
.world-slide > * { opacity: 0; transform: translateX(-30px); filter: blur(6px); transition: opacity .6s, transform .8s var(--ease), filter .6s; }
.world-slide.is-active { pointer-events: auto; }
.world-slide.is-active > * { opacity: 1; transform: none; filter: none; transition-duration: .9s, 1.2s, .9s; }
.world-slide.is-active > :nth-child(2) { transition-delay: .12s; }
.world-slide.is-active > :nth-child(3) { transition-delay: .24s; }
.world-slide.is-active > :nth-child(4) { transition-delay: .36s; }
.world-slide__title { margin-top: 16px; font: 700 clamp(2.6rem, 1.4rem + 5vw, 5.4rem)/.98 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.world-slide__quote { margin-top: 22px; font: italic 500 clamp(1.3rem, 1rem + 1vw, 1.75rem)/1.35 var(--story); color: #e9ddff; }
.world-slide__text { margin-top: 18px; max-width: 52ch; color: var(--ink-2); font-size: 1.05rem; }

.world__ui {
  position: absolute; left: 0; right: 0; bottom: clamp(24px, 5vh, 56px);
  display: flex; align-items: flex-end; gap: 24px;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
}
.world__tabs { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.world__tabs button {
  width: 100%; padding: 14px 0 0; border: 0; background: none; cursor: pointer; text-align: left;
  color: var(--muted); transition: color .3s;
}
.world__tabs button b { display: block; font: 600 11px/1 var(--display); letter-spacing: .25em; color: var(--rift); opacity: .7; }
.world__tabs button span { display: block; margin-top: 6px; font: 600 14px/1.2 var(--display); letter-spacing: .04em; }
.world__tabs button i { position: relative; display: block; height: 2px; margin-bottom: 4px; background: rgba(255, 255, 255, .18); overflow: hidden; order: -1; }
.world__tabs button i::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--violet), var(--rift)); }
.world__tabs button[aria-selected="true"] { color: var(--ink); }
.world__tabs button[aria-selected="true"] i::after { transform: scaleX(var(--progress, 0)); }
.world__tabs button:hover { color: var(--ink); }
.world__tabs button { display: flex; flex-direction: column; }
.world__arrows { display: flex; gap: 10px; }
@media (max-width: 760px) {
  .world-slide { top: auto; bottom: 150px; translate: 0 0; }
  .world::before { background: linear-gradient(0deg, rgba(10, 6, 20, .96) 0%, rgba(10, 6, 20, .8) 55%, rgba(10, 6, 20, .1) 85%), linear-gradient(180deg, var(--bg), transparent 18%); }
  .world__tabs { gap: 6px; }
  .world__tabs button span { display: none; }
  .world__arrows .arrow { width: 42px; height: 42px; }
  .world-slide__text { font-size: .98rem; }
}

/* ---------------------------------------------------------------- dimons */
.dimons {
  position: relative; padding: clamp(80px, 12vh, 140px) 0 clamp(60px, 10vh, 120px); isolation: isolate; overflow: hidden;
  background: var(--bg);
}
.dimons__bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 60% at 38% 55%, color-mix(in srgb, var(--type-color) 26%, transparent), transparent 70%),
    radial-gradient(ellipse 40% 40% at 90% 10%, rgba(124, 58, 237, .18), transparent 70%);
  transition: background .8s;
}
.dex {
  --type-color: var(--violet);
  display: grid; gap: 24px 48px; align-items: center;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-areas: "filters filters" "stage info" "rail rail";
  max-width: var(--max); margin: 40px auto 0; padding: 0 var(--gutter);
}
.dex__filters { grid-area: filters; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 8px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
  font: 600 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
  cursor: pointer; transition: background .3s, border-color .3s, color .3s;
}
.chip img { width: 22px; height: 22px; object-fit: contain; }
.chip--all { padding-left: 14px; }
.chip:hover { color: var(--ink); border-color: rgba(255, 255, 255, .3); }
.chip[aria-selected="true"] { color: var(--ink); border-color: var(--c, var(--violet)); background: color-mix(in srgb, var(--c, var(--violet)) 22%, transparent); }

.dex__stage {
  grid-area: stage; position: relative; aspect-ratio: 1 / .92; container-type: inline-size; border-radius: 28px; overflow: hidden; isolation: isolate;
  background: var(--bg-2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 40px 80px -40px color-mix(in srgb, var(--type-color) 60%, transparent);
}
.dex__stage::before { /* field art for the Dimon's main type */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--field) center 70% / cover no-repeat;
  transition: opacity .6s;
}
.dex__stage::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 6, 20, .1), rgba(10, 6, 20, .25) 55%, rgba(10, 6, 20, .75));
}
.dex__watermark {
  position: absolute; left: 50%; top: 14%; translate: -50% 0; z-index: -1;
  font: 700 min(8rem, calc(150cqi / var(--len, 8)))/1 var(--display); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .45);
  transition: opacity .4s, letter-spacing 1s var(--ease);
}
.dex__pad { position: absolute; left: 50%; bottom: 7%; width: 64%; translate: -50% 0; filter: drop-shadow(0 20px 18px rgba(0, 0, 0, .4)); }
.dex__sprite { position: absolute; left: 50%; bottom: 11%; width: 66%; aspect-ratio: 1; translate: -50% 0; }
.dex__sprite > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.dex__sprite .is-in { animation: dimonIn .9s var(--ease) both; }
.dex__sprite .is-out { animation: dimonOut .35s var(--ease-in) both; }
@keyframes dimonIn { from { opacity: 0; transform: translateY(18px) scale(.82); filter: blur(10px) brightness(2.2); } to { opacity: 1; transform: none; filter: none; } }
@keyframes dimonOut { to { opacity: 0; transform: scale(.9); filter: blur(8px) brightness(2); } }
.dex__stage.is-vari .dex__sprite { filter: drop-shadow(0 0 22px rgba(255, 236, 170, .55)); }
.dex__prev, .dex__next { position: absolute; top: 50%; translate: 0 -50%; }
.dex__prev { left: 16px; }
.dex__next { right: 16px; }

.dex__info { grid-area: info; }
.dex__info > * { transition: opacity .35s, transform .5s var(--ease); }
.dex__info.is-swapping > * { opacity: 0; transform: translateY(10px); }
.dex__no { font: 600 13px/1 var(--display); letter-spacing: .3em; color: var(--type-color); }
.dex__name { margin-top: 10px; font: 700 clamp(2.4rem, 1.6rem + 3vw, 4rem)/1 var(--display); letter-spacing: -.01em; }
.dex__types { display: flex; gap: 8px; margin-top: 16px; }
.type-badge {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 6px; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 20%, transparent); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  font: 600 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase;
}
.type-badge img { width: 22px; height: 22px; object-fit: contain; }
.dex__text { margin-top: 18px; color: var(--ink-2); min-height: 4.95em; text-wrap: pretty; }
.dex__stats { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 14px; align-items: center; margin: 22px 0 0; }
.dex__stats dt { font: 600 11px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.dex__stats dd { margin: 0; }
.dex__stats .bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.dex__stats .bar i { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--type-color) 60%, #fff 0%), var(--type-color)); transition: width .9s var(--ease); }
.dex__stats .num { font: 600 13px/1 var(--display); color: var(--ink); min-width: 2.5ch; text-align: right; }
.dex__line { margin-top: 24px; }
.dex__label { font: 600 11px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.dex__line ol { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; flex-wrap: wrap; }
.dex__line li { display: flex; align-items: center; gap: 6px; }
.dex__line li + li::before { content: attr(data-lv); font: 600 10px/1 var(--display); letter-spacing: .1em; color: var(--muted); padding: 0 4px; }
.dex__line button {
  width: 64px; height: 64px; padding: 4px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); cursor: pointer;
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.dex__line button img { width: 100%; height: 100%; object-fit: contain; }
.dex__line button:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .35); }
.dex__line button[aria-current="true"] { border-color: var(--type-color); background: color-mix(in srgb, var(--type-color) 20%, transparent); }

.vari-toggle {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; padding: 10px 18px 10px 12px;
  border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); cursor: pointer; text-align: left;
  transition: border-color .3s, background .3s;
}
.vari-toggle img { width: 32px; height: 32px; }
.vari-toggle span { display: flex; flex-direction: column; gap: 2px; }
.vari-toggle b { font: 600 14px/1.2 var(--display); letter-spacing: .04em; }
.vari-toggle small { color: var(--muted); font-size: 12px; }
.vari-toggle[aria-pressed="true"] { border-color: var(--gold); background: linear-gradient(90deg, rgba(246, 196, 83, .18), rgba(232, 121, 249, .14)); }
.vari-toggle:hover { border-color: rgba(255, 255, 255, .35); }

.dex__rail {
  grid-area: rail; display: flex; gap: 10px; overflow-x: auto; padding: 8px 2px 14px; margin-top: 8px;
  scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(167, 139, 250, .5) transparent;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  cursor: grab;
}
.dex__rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.dex__rail button {
  position: relative; flex: none; width: 84px; height: 84px; padding: 6px; scroll-snap-align: center;
  border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .035); cursor: pointer;
  transition: border-color .3s, background .3s, transform .35s var(--ease);
}
.dex__rail button img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.dex__rail button span { position: absolute; left: 7px; top: 6px; font: 600 9px/1 var(--display); letter-spacing: .08em; color: var(--muted); }
.dex__rail button:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .3); }
.dex__rail button[aria-selected="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 22%, transparent); box-shadow: 0 10px 30px -12px var(--c); }
.dex__rail button[hidden] { display: none; }

@media (max-width: 900px) {
  .dex { grid-template-columns: 1fr; grid-template-areas: "filters" "stage" "rail" "info"; }
  .dex__filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .dex__filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .dex__stage { aspect-ratio: 1 / 1; border-radius: 22px; }
  .dex__prev, .dex__next { width: 40px; height: 40px; }
  .dex__rail button { width: 68px; height: 68px; border-radius: 14px; }
  .dex__text { min-height: 0; }
}

/* ---------------------------------------------------------------- aether */
.aether {
  position: relative; padding: clamp(80px, 12vh, 140px) 0;
  background:
    radial-gradient(ellipse 50% 40% at 25% 40%, rgba(249, 115, 22, .08), transparent 70%),
    radial-gradient(ellipse 50% 40% at 75% 40%, rgba(168, 85, 247, .12), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 50%, var(--bg));
}
.cycles { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); max-width: 1080px; margin: 56px auto 0; padding: 0 var(--gutter); }
.cycle { margin: 0; text-align: center; }
.cycle__ring { position: relative; width: min(100%, 400px); aspect-ratio: 1; margin: 0 auto; }
.cycle__ring svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring__track { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 1; }
.ring__arc { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 2; stroke-dasharray: 6 8; animation: flow 1.6s linear infinite; transition: stroke .3s, stroke-width .3s, opacity .3s; }
.ring__head { fill: rgba(255, 255, 255, .5); transition: fill .3s, opacity .3s; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.cycle.is-focus .ring__arc, .cycle.is-focus .ring__head { opacity: .25; }
.cycle .ring__arc.is-win { opacity: 1; stroke: #4ade80; stroke-width: 3; }
.cycle .ring__head.is-win { opacity: 1; fill: #4ade80; }
.cycle .ring__arc.is-lose { opacity: 1; stroke: #f87171; stroke-width: 3; }
.cycle .ring__head.is-lose { opacity: 1; fill: #f87171; }
.ring__core {
  position: absolute; inset: 30%; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle, rgba(255, 255, 255, .06), transparent 70%);
  font: 600 11px/1.4 var(--display); letter-spacing: .25em; text-transform: uppercase; color: var(--muted);
}
.crystal-btn {
  position: absolute; width: 27%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c) 35%, transparent), rgba(10, 6, 20, .7) 70%);
  display: grid; place-items: center; cursor: pointer; padding: 0;
  box-shadow: 0 0 40px -10px var(--c);
  transition: transform .45s var(--ease), box-shadow .4s, border-color .3s;
}
.crystal-btn img { width: 58%; height: 58%; object-fit: contain; animation: bob 3.6s ease-in-out infinite alternate; animation-delay: var(--bd, 0s); }
.crystal-btn span { position: absolute; bottom: -26px; padding: 3px 6px; border-radius: 6px; background: var(--bg-2); font: 600 11px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.crystal-btn:hover, .crystal-btn:focus-visible, .crystal-btn.is-on { transform: scale(1.12); border-color: var(--c); box-shadow: 0 0 60px -6px var(--c); }
@keyframes bob { from { transform: translateY(-4px); } to { transform: translateY(4px); } }
.cycle figcaption { margin-top: 44px; }
.cycle h3 { font: 700 1.5rem/1.1 var(--display); }
.cycle__caption { margin: 10px auto 0; max-width: 40ch; color: var(--ink-2); min-height: 3.3em; }
.aether__basic { max-width: 60ch; margin: 36px auto 0; padding: 0 var(--gutter); text-align: center; color: var(--muted); font-size: .95rem; }

.reactions { max-width: var(--max); margin: clamp(72px, 10vh, 120px) auto 0; padding: 0 var(--gutter); }
.reactions__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.status-card {
  position: relative; padding: 22px 18px 18px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .3s;
}
.status-card:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, .25); }
.status-card__head { display: flex; align-items: center; gap: 10px; }
.status-card__head img { width: 40px; height: 40px; }
.status-card h4 { margin: 0; font: 700 1.15rem/1 var(--display); }
.status-card > p { margin-top: 8px; font-size: .85rem; color: var(--muted); min-height: 2.6em; }
.status-card ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.status-card li {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px;
  background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  font: 600 13px/1.1 var(--display); letter-spacing: .03em;
}
.status-card li img { width: 22px; height: 22px; }
.status-card li small { display: block; font: 500 10px/1.2 var(--body); letter-spacing: .04em; color: var(--ink-2); text-transform: uppercase; }
@media (max-width: 1100px) { .reactions__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .cycles { grid-template-columns: 1fr; gap: 56px; }
  .reactions__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 10px; scrollbar-width: none; }
  .status-card { scroll-snap-align: center; }
}

/* ---------------------------------------------------------------- fields */
.fields { position: relative; padding: clamp(80px, 12vh, 140px) 0 clamp(60px, 10vh, 100px); overflow: hidden; isolation: isolate; }
.fields__bg { position: absolute; inset: -40px; z-index: -1; }
.fields__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(40px) saturate(1.2) brightness(.45); opacity: 0; transform: scale(1.1); transition: opacity 1s var(--ease); }
.fields__bg img.is-active { opacity: 1; }
.fields::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg), transparent 22%, transparent 78%, var(--bg)); pointer-events: none; }
.coverflow { margin-top: 48px; }
.coverflow__track {
  --card-w: clamp(200px, 22vw, 320px);
  position: relative; height: calc(var(--card-w) * 1.6); perspective: 1600px; touch-action: pan-y; user-select: none;
}
.field-card {
  --o: 0;
  position: absolute; left: 50%; top: 0; width: var(--card-w); aspect-ratio: 10 / 16; margin-left: calc(var(--card-w) / -2);
  border-radius: 24px; overflow: hidden; cursor: pointer; border: 0; padding: 0; background: var(--bg-2);
  transform: translateX(calc(var(--o) * var(--card-w) * .72)) translateZ(calc(var(--abs) * -180px)) rotateY(calc(var(--o) * -24deg));
  z-index: calc(20 - var(--abs));
  opacity: calc(1.6 - var(--abs) * .38);
  transition: transform .9s var(--ease), opacity .6s, filter .6s, box-shadow .6s;
  filter: brightness(calc(1 - var(--abs) * .22)) saturate(calc(1 - var(--abs) * .15));
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.field-card[data-far] { visibility: hidden; }
.field-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.field-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 6, 20, .85)); }
.field-card span {
  position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; text-align: left;
  font: 700 1.4rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: #fff;
}
.field-card.is-active { box-shadow: 0 0 0 2px rgba(255, 255, 255, .55), 0 40px 80px -20px rgba(124, 58, 237, .7); }
.coverflow__ui { display: flex; align-items: center; justify-content: center; gap: 24px; max-width: 760px; margin: 32px auto 0; padding: 0 var(--gutter); }
.coverflow__meta { flex: 1; text-align: center; min-height: 92px; }
.coverflow__meta h3 { font: 700 1.6rem/1 var(--display); }
.coverflow__meta p { margin-top: 8px; color: var(--ink-2); }
.coverflow__meta .crystals { display: inline-flex; gap: 8px; margin-top: 10px; align-items: center; font: 600 11px/1 var(--display); letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.coverflow__meta .crystals img { width: 26px; height: 26px; }
.coverflow__meta > * { animation: metaIn .6s var(--ease) both; }
.coverflow__meta > :nth-child(2) { animation-delay: .06s; }
.coverflow__meta > :nth-child(3) { animation-delay: .12s; }
@keyframes metaIn { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 760px) {
  .coverflow__track { --card-w: 58vw; }
  .coverflow__ui { gap: 12px; }
}

/* --------------------------------------------------------------- journey */
/* Desktop: the section pins and its steps scroll sideways (script.js sets the
   section height and --x). Narrow screens get a swipeable snap carousel. */
.journey { position: relative; background: linear-gradient(180deg, var(--bg), var(--bg-3) 50%, var(--bg)); }
.journey__sticky { padding: clamp(80px, 12vh, 140px) 0 clamp(60px, 8vh, 100px); }
.journey__head { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 32px; width: 100%; }
.journey__head .kicker { grid-column: 1; }
.journey__head .section-title { grid-column: 1; }
.journey__progress { grid-column: 2; grid-row: 1 / span 2; width: 200px; height: 2px; margin-bottom: 14px; background: rgba(255, 255, 255, .12); overflow: hidden; border-radius: 2px; }
.journey__progress i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--jp, 0)); background: linear-gradient(90deg, var(--violet), var(--rift)); }
.journey__track {
  display: flex; gap: 24px; margin-top: 48px; padding: 0 var(--gutter);
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.journey__track::after { content: ""; flex: none; width: 1px; margin-left: calc(var(--gutter) - 25px); }
.step {
  position: relative; flex: none; width: clamp(280px, 30vw, 400px); min-height: 480px;
  display: flex; flex-direction: column; padding: 28px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, rgba(167, 139, 250, .14), rgba(255, 255, 255, .02) 60%);
  border: 1px solid var(--line);
  transition: border-color .4s, transform .6s var(--ease);
}
.step:hover { border-color: rgba(232, 121, 249, .5); transform: translateY(-6px); }
.step__no { position: absolute; right: 22px; top: 14px; font: 700 4.5rem/1 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .16); }
.step__icon { width: 46px; height: 46px; }
.step h3 { margin-top: 18px; font: 700 1.45rem/1.15 var(--display); }
.step p { margin-top: 10px; color: var(--ink-2); font-size: .95rem; }
.step__art { position: relative; margin-top: auto; height: 200px; display: flex; align-items: flex-end; justify-content: center; }
.step__art::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(167, 139, 250, .35), transparent); }
.step__art > img, .step__art > canvas { position: relative; height: 210px; width: 210px; object-fit: contain; }
.step__art--evo > img, .step__art--evo > canvas { width: 150px; height: 150px; }
.step__art--evo > :last-child { width: 200px; height: 200px; }
.step__art--icon > img { width: 120px; height: 120px; margin-bottom: 30px; animation: bob 3s ease-in-out infinite alternate; }
.step__art--portal > img { position: absolute; bottom: -10px; width: 220px; height: 220px; }
.step__art--portal > img:last-child { clip-path: circle(31% at 50% 50%); animation: spin 16s linear infinite; }
.journey.is-pinned .journey__sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: var(--header-h) 0 0; }
.journey.is-pinned .journey__track { transform: translateX(calc(var(--x, 0) * -1px)); will-change: transform; }
@media (max-width: 899px) {
  .journey__head { grid-template-columns: 1fr; }
  .journey__progress { display: none; }
  .journey__track { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 10px; }
  .journey__track::-webkit-scrollbar { display: none; }
  .step { width: 82vw; min-height: 440px; scroll-snap-align: center; }
}

/* ----------------------------------------------------------------- guide */
.guide { position: relative; padding: clamp(80px, 12vh, 140px) 0; overflow: hidden; }
.guide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 40% 50% at 28% 40%, rgba(232, 121, 249, .14), transparent 70%); }
.guide__inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 96px); align-items: center; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.guide__art { position: relative; display: grid; place-items: center; }
.guide__art img { position: relative; width: min(100%, 320px); height: auto; filter: drop-shadow(0 30px 40px rgba(10, 6, 20, .6)); animation: float 5s ease-in-out infinite alternate; }
.guide__ring {
  position: absolute; width: 110%; max-width: 480px; aspect-ratio: 1; top: 8%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(167, 139, 250, .5), transparent 30%, rgba(232, 121, 249, .45), transparent 60%);
  -webkit-mask: radial-gradient(closest-side, transparent 92%, #000 93%, #000 99%, transparent);
  mask: radial-gradient(closest-side, transparent 92%, #000 93%, #000 99%, transparent);
  animation: spin 14s linear infinite;
}
.guide__text .section-head { padding: 0; margin: 0; }
.bubble {
  position: relative; margin: 36px 0 0; padding: 28px 30px 22px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.bubble::before { content: "“"; position: absolute; left: 20px; top: -34px; font: 600 6rem/1 var(--story); color: var(--rift); opacity: .55; }
.bubble blockquote { margin: 0; min-height: 5.2em; font: italic 500 clamp(1.2rem, 1rem + .7vw, 1.5rem)/1.45 var(--story); color: #f1e9ff; }
.bubble blockquote .caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.12em; background: var(--rift); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.bubble figcaption { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; font: 600 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bubble figcaption b { color: var(--ink-2); }

.rivals { max-width: var(--max); margin: clamp(80px, 12vh, 140px) auto 0; padding: 0 var(--gutter); }
.rivals__row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.rival {
  position: relative; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(167, 139, 250, .14));
  border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .3s;
}
.rival::before { content: ""; position: absolute; left: 15%; right: 15%; bottom: 6%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(10, 6, 20, .7), transparent); }
.rival > img, .rival > canvas { position: absolute; left: 50%; bottom: 4%; width: 120%; max-width: none; aspect-ratio: 1; height: auto; translate: -50% 0; object-fit: contain; }
.rival:hover { transform: translateY(-8px); border-color: rgba(232, 121, 249, .45); }
@media (max-width: 900px) {
  .guide__inner { grid-template-columns: 1fr; }
  .guide__art img { width: min(60vw, 240px); }
  .rivals__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* -------------------------------------------------------------- download */
.download { position: relative; display: grid; place-items: center; min-height: 92svh; padding: 120px var(--gutter); text-align: center; overflow: hidden; isolation: isolate; }
.download::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, .45), transparent 55%), var(--bg); }
.download__portal { position: absolute; left: 50%; top: 50%; width: min(120vmin, 1000px); aspect-ratio: 1; translate: -50% -50%; z-index: -1; opacity: .28; }
.download__portal img, .download__core { position: absolute; inset: 0; width: 100%; height: 100%; }
.download__core { clip-path: circle(31% at 50% 50%); }
.download__core img { animation: spin 40s linear infinite; }
.download__inner { display: flex; flex-direction: column; align-items: center; }
.download__logo { width: min(70vw, 380px); height: auto; margin-bottom: 8px; filter: drop-shadow(0 10px 40px rgba(124, 58, 237, .7)); }
.download .section-lead { margin-left: auto; margin-right: auto; }
.download .play-badge { margin-top: 32px; }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); background: #07040f; }
.site-footer__inner { display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: center; max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) calc(40px + env(safe-area-inset-bottom)); }
.site-footer__logo { width: 120px; height: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
.site-footer nav a { font: 600 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); }
.site-footer p { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.site-footer p a { color: var(--ink-2); }
@media (max-width: 700px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; }
}

/* ------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero { height: 100svh; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
