:root {
  --bg: #05030a;
  --ink: #f5f2fc;
  --muted: #a9a1bf;
  --dim: #6f6788;
  --violet: #8a2bf6;
  --violet-hi: #b47bff;
  --violet-lo: #5a14d0;
  --glow: rgba(138, 43, 246, .55);
  --line: rgba(255, 255, 255, .08);
  --line-hi: rgba(180, 123, 255, .38);
  --ok: #c9a8ff;
  --err: #ff8fa3;
  --display: 'Chakra Petch', ui-sans-serif, system-ui, sans-serif;
  --body: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 4vw, 48px);
  --wrap: 1200px;
  --section-y: clamp(96px, 11vw, 168px);
}

/* Crown mode (easter egg) swaps the violet accents for gold. */
html.crown-mode {
  --violet: #f2b53a;
  --violet-hi: #ffd978;
  --violet-lo: #b8740f;
  --glow: rgba(242, 181, 58, .55);
  --line-hi: rgba(255, 217, 120, .4);
  --ok: #ffd978;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* The body stays transparent so the fixed background layers show through. */
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--ink);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ── Background layers ─────────────────────────────────────────── */

.bg-canvas, .bg-fallback, .bg-grid, .bg-grain {
  position: fixed; inset: 0; pointer-events: none;
}

.bg-canvas { z-index: -2; width: 100%; height: 100%; display: block; }

.bg-fallback {
  z-index: -3;
  background:
    radial-gradient(60% 50% at 50% 38%, rgba(138, 43, 246, .28), transparent 70%),
    radial-gradient(45% 40% at 0% 0%, rgba(109, 40, 217, .25), transparent 70%),
    radial-gradient(45% 40% at 100% 100%, rgba(147, 51, 234, .22), transparent 70%),
    var(--bg);
}

.bg-grid {
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 42%, #000 15%, transparent 75%);
          mask-image: radial-gradient(70% 60% at 50% 42%, #000 15%, transparent 75%);
}

.bg-grain {
  z-index: 60;
  opacity: .06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(2%, 2%); }
}

/* ── Intro ─────────────────────────────────────────────────────── */

.intro { display: none; }

.js .intro {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-content: center; justify-items: center; gap: 22px;
  background: var(--bg);
  transition: opacity .9s var(--ease-out), visibility .9s;
  /* Failsafe: never leave the intro up if the script does not run. */
  animation: intro-failsafe 0s 2.5s forwards;
}

.intro.is-done { opacity: 0; visibility: hidden; }
.intro.is-done .intro-mark { transform: scale(1.35); filter: blur(8px); }

.intro-mark { width: 112px; transition: transform .9s var(--ease-out), filter .9s var(--ease-out); }

.intro-mark img {
  animation: intro-rise 1.1s var(--ease-out) both;
  filter: drop-shadow(0 0 24px var(--glow));
}

.intro-bar { width: 168px; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .08); }

.intro-bar span {
  display: block; height: 100%; width: 100%;
  transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--violet-lo), var(--violet-hi));
  box-shadow: 0 0 12px var(--glow);
}

.intro-label {
  font: 500 11px/1 var(--display);
  letter-spacing: .3em; text-transform: uppercase; color: var(--dim);
  font-variant-numeric: tabular-nums;
}

@keyframes intro-rise {
  from { clip-path: inset(100% 0 0 0); transform: translateY(14px); }
  to { clip-path: inset(0 0 0 0); transform: none; }
}

@keyframes intro-failsafe { to { opacity: 0; visibility: hidden; } }

/* ── Entrance & scroll reveals ─────────────────────────────────── */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  animation: reveal-failsafe 0s 2.7s forwards;
}

.js body.is-ready .reveal {
  opacity: 1; transform: none; filter: none;
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}

@keyframes reveal-failsafe { to { opacity: 1; transform: none; filter: none; } }

/* Only hidden once the observer is running, so nothing stays invisible without JS. */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.reveal-ready [data-reveal].in { opacity: 1; transform: none; }

/* ── Header ────────────────────────────────────────────────────── */

.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 18px var(--gutter);
  padding-top: max(18px, env(safe-area-inset-top));
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, padding .4s var(--ease-out), -webkit-backdrop-filter .4s, backdrop-filter .4s;
}

.top.is-scrolled {
  padding-top: max(12px, env(safe-area-inset-top));
  padding-bottom: 12px;
  background: rgba(6, 4, 12, .72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
          backdrop-filter: blur(18px) saturate(140%);
}

.brand { justify-self: start; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { height: 32px; width: auto; filter: drop-shadow(0 0 12px rgba(138, 43, 246, .4)); }
.brand-word { height: 14px; width: auto; }

.nav { display: flex; gap: clamp(20px, 3vw, 40px); }

.nav a {
  position: relative;
  font: 600 12px/1 var(--display); letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  padding: 8px 0;
  transition: color .25s;
}

.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--violet-hi);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}

.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.top-right { justify-self: end; display: flex; align-items: center; gap: 12px; }

.age {
  display: grid; place-items: center;
  height: 30px; padding: 0 10px; border-radius: 8px;
  font: 700 12px/1 var(--display); letter-spacing: .06em;
  color: var(--muted);
  border: 1px solid var(--line);
}

/* ── Buttons ───────────────────────────────────────────────────── */

.btn {
  position: relative;
  flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 0; border-radius: 12px;
  color: #fff;
  font: 700 13px/1 var(--display);
  letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(180deg, var(--violet-hi) -40%, var(--violet) 45%, var(--violet-lo) 120%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -2px 0 rgba(0, 0, 0, .2), 0 12px 32px -10px var(--glow);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transform: translate(var(--tx, 0), var(--ty, 0));
  transition: transform .35s var(--ease-out), filter .25s, box-shadow .25s, background .25s, border-color .25s;
}

.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: sheen 4.5s ease-in-out infinite 2s;
}

.btn:hover { filter: brightness(1.12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 16px 40px -10px var(--glow); }
.btn:active { filter: brightness(.95); }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 13.5px; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 12px; border-radius: 10px; }

.btn--ghost {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn--ghost::after { display: none; }
.btn--ghost:hover { filter: none; border-color: var(--line-hi); background: rgba(138, 43, 246, .14); box-shadow: 0 10px 30px -14px var(--glow); }

.i-discord { width: 18px; height: 18px; flex: none; }

@keyframes sheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

.btn.is-loading .btn-label { opacity: 0; }
.btn.is-loading::before {
  content: ''; position: absolute; width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}

.btn.is-done { pointer-events: none; }

.icon-btn {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .25s, background .25s, transform .35s var(--ease-out);
}

.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { border-color: var(--line-hi); background: rgba(138, 43, 246, .14); }
.icon-btn:active { transform: scale(.94); }

/* ── Hero ──────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(96px, 12vh, 128px) var(--gutter) clamp(104px, 13vh, 136px);
}

.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-hi);
  background: linear-gradient(180deg, rgba(138, 43, 246, .14), rgba(138, 43, 246, .04));
  font: 600 11px/1 var(--display);
  letter-spacing: .26em; text-transform: uppercase; color: var(--ink);
  box-shadow: 0 0 30px -8px var(--glow);
}

.pulse {
  position: relative; flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--violet-hi);
  box-shadow: 0 0 10px var(--violet-hi);
}

.pulse::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid var(--violet-hi);
  animation: ping 2s var(--ease-out) infinite;
}

@keyframes ping {
  from { transform: scale(.4); opacity: 1; }
  to { transform: scale(1.6); opacity: 0; }
}

/* Emblem: the crown + R mark with halo, reticle ring and a light sweep. */

.emblem {
  --size: clamp(132px, 18vh, 220px);
  position: relative;
  width: var(--size); height: var(--size);
  /* Leave room for the reticle ring, which reaches 28% past the mark. */
  margin: calc(var(--size) * .4) 0 calc(var(--size) * .16);
  perspective: 900px;
}

.emblem-halo {
  position: absolute; inset: -55%;
  background: radial-gradient(closest-side, rgba(138, 43, 246, .5), rgba(138, 43, 246, .12) 55%, transparent 75%);
  animation: breathe 6s ease-in-out infinite;
}

html.crown-mode .emblem-halo { background: radial-gradient(closest-side, rgba(242, 181, 58, .5), rgba(242, 181, 58, .12) 55%, transparent 75%); }

.emblem-ring { position: absolute; border-radius: 50%; }

.emblem-ring--comet {
  inset: -16%;
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(180, 123, 255, 0) 64%, var(--violet-hi) 92%, #fff 94%, transparent 94.5%);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px), #000 100%, transparent 100%);
          mask: radial-gradient(closest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px), #000 100%, transparent 100%);
  filter: drop-shadow(0 0 6px var(--violet-hi));
  animation: spin 7s linear infinite;
}

.emblem-ring--ticks {
  inset: -28%;
  background: repeating-conic-gradient(rgba(255, 255, 255, .28) 0 .6deg, transparent .6deg 6deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 7px), #000 calc(100% - 7px), #000 100%, transparent 100%);
          mask: radial-gradient(closest-side, transparent calc(100% - 7px), #000 calc(100% - 7px), #000 100%, transparent 100%);
  opacity: .5;
  animation: spin 60s linear infinite reverse;
}

.emblem-ring--ticks::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--violet-hi) 0 1.4deg, transparent 1.4deg 88.6deg, var(--violet-hi) 88.6deg 91.4deg, transparent 91.4deg 178.6deg, var(--violet-hi) 178.6deg 181.4deg, transparent 181.4deg 268.6deg, var(--violet-hi) 268.6deg 271.4deg, transparent 271.4deg);
}

.emblem-tilt {
  position: relative; width: 100%; height: 100%;
  display: grid; place-items: center;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  will-change: transform;
}

.emblem-mark {
  width: 100%; height: auto;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .55)) drop-shadow(0 0 26px rgba(138, 43, 246, .45));
  animation: float 6s ease-in-out infinite;
}

html.crown-mode .emblem-mark { filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .55)) drop-shadow(0 0 26px rgba(138, 43, 246, .45)) hue-rotate(150deg) saturate(1.15) brightness(1.12); }
html.crown-mode .title img,
html.crown-mode .brand img { filter: hue-rotate(150deg) saturate(1.15) brightness(1.12); }

.emblem-glint {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .95) 48%, rgba(220, 190, 255, .7) 52%, transparent 62%);
  background-size: 300% 100%;
  background-repeat: no-repeat;
  -webkit-mask: url('/assets/img/raiku-mark.png') center / contain no-repeat;
          mask: url('/assets/img/raiku-mark.png') center / contain no-repeat;
  mix-blend-mode: overlay;
  animation: glint 5.5s ease-in-out infinite, float 6s ease-in-out infinite;
}

.emblem-floor {
  position: absolute; left: 50%; bottom: -16%;
  width: 78%; height: 14%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(138, 43, 246, .55), transparent);
  filter: blur(6px);
  animation: floor 6s ease-in-out infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { opacity: .75; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes float { 0%, 100% { transform: translateY(-5px); } 50% { transform: translateY(6px); } }
@keyframes floor { 0%, 100% { opacity: .65; transform: translateX(-50%) scale(.92); } 50% { opacity: 1; transform: translateX(-50%) scale(1); } }
@keyframes glint { 0%, 55% { background-position: 130% 0; } 85%, 100% { background-position: -30% 0; } }

.title { line-height: 0; }

.title img {
  width: clamp(230px, 31vw, 420px); height: auto;
  filter: drop-shadow(0 8px 30px rgba(138, 43, 246, .35));
}

.tagline {
  margin-top: 20px;
  font: 600 clamp(10px, 1.05vw, 12px)/1.5 var(--display);
  letter-spacing: .34em; text-transform: uppercase; color: var(--muted);
}

.tagline i { font-style: normal; color: var(--violet-hi); margin: 0 .6em; }

/* Countdown */

.countdown { margin-top: clamp(40px, 6vh, 64px); }

.cd-grid { display: flex; align-items: flex-start; justify-content: center; gap: clamp(8px, 1.4vw, 18px); }

.cd-unit {
  --mx: 50%; --my: 0%;
  position: relative;
  width: clamp(72px, 10vw, 120px);
  padding: clamp(14px, 1.8vh, 18px) 0 clamp(12px, 1.4vh, 14px);
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120px 90px at var(--mx) var(--my), rgba(180, 123, 255, .16), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .01));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 24px 50px -24px var(--glow);
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  transition: border-color .3s, transform .4s var(--ease-out);
}

.cd-unit::before {
  content: ''; position: absolute; left: 14%; right: 14%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet-hi), transparent);
  opacity: .8;
}

.cd-unit:hover { border-color: var(--line-hi); transform: translateY(-3px); }

.cd-digits {
  display: flex; justify-content: center;
  height: 1em;
  font: 700 clamp(34px, min(5.4vw, 6.6vh), 62px)/1 var(--display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.digit { position: relative; height: 1em; width: .6em; overflow: hidden; }

.digit-strip {
  display: flex; flex-direction: column;
  transition: transform .75s var(--ease-out);
  will-change: transform;
}

.digit-strip.no-anim { transition: none; }

.digit-strip span {
  height: 1em; display: block;
  background: linear-gradient(180deg, #ffffff 35%, #cdb0ff 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

html.crown-mode .digit-strip span { background-image: linear-gradient(180deg, #fffaf0 35%, #ffd978 100%); }

.cd-label {
  display: block; margin-top: 12px;
  font: 600 10px/1 var(--display);
  letter-spacing: .3em; text-transform: uppercase; color: var(--dim);
  padding-left: .3em;
}

.cd-bar {
  position: absolute; left: 18%; right: 18%; bottom: 0; height: 2px;
  background: rgba(255, 255, 255, .06);
  border-radius: 2px; overflow: hidden;
}

.cd-bar span {
  display: block; height: 100%; width: 100%;
  transform-origin: left; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--violet-lo), var(--violet-hi));
  box-shadow: 0 0 10px var(--violet-hi);
  transition: transform .75s var(--ease-out);
}

.cd-sep {
  align-self: center;
  margin-top: -20px;
  font: 600 clamp(22px, 3vw, 34px)/1 var(--display);
  color: var(--violet-hi);
  opacity: .6;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: .15; } }

.cd-date { margin-top: 18px; font-size: 13px; color: var(--dim); }
.cd-date time { color: var(--muted); font-weight: 600; }

.live { margin-top: 48px; display: grid; justify-items: center; gap: 22px; }
.live-title { font: 600 clamp(28px, 3.4vw, 44px)/1.1 var(--display); letter-spacing: -.01em; }

/* Hero call to action */

.hero-cta { margin-top: clamp(36px, 5vh, 52px); display: grid; justify-items: center; gap: 16px; }
.hero-note { font-size: 13px; color: var(--dim); }

.scroll-cue {
  position: absolute; left: 0; right: 0; bottom: clamp(20px, 3.5vh, 36px);
  width: max-content; margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font: 600 10px/1 var(--display); letter-spacing: .34em; text-transform: uppercase;
  color: var(--dim); text-decoration: none;
  padding-left: .34em;
}

.scroll-cue i {
  position: relative; display: block; width: 1px; height: 44px; overflow: hidden;
  background: rgba(255, 255, 255, .1);
}

.scroll-cue i::after {
  content: ''; position: absolute; left: 0; top: -50%; width: 1px; height: 50%;
  background: linear-gradient(180deg, transparent, var(--violet-hi));
  animation: drop 2.2s var(--ease-out) infinite;
}

.scroll-cue:hover { color: var(--ink); }

@keyframes drop { to { top: 110%; } }

/* ── Sections ──────────────────────────────────────────────────── */

.section { position: relative; padding: var(--section-y) 0; }

.section::before {
  content: ''; position: absolute; top: 0; left: 50%;
  width: min(100% - 2 * var(--gutter), var(--wrap)); height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
  font: 600 11px/1 var(--display);
  letter-spacing: .32em; text-transform: uppercase; color: var(--violet-hi);
}

.eyebrow span {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--dim); letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
}

.eyebrow span::after { content: ''; width: 40px; height: 1px; background: var(--line-hi); }

.h2 {
  font: 600 clamp(40px, 5.4vw, 76px)/1.02 var(--display);
  letter-spacing: -.025em;
  text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 30%, #d7c6f5 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.h2 .muted {
  background: linear-gradient(180deg, #8d84a6, #5d5577);
  -webkit-background-clip: text; background-clip: text;
}

.body {
  max-width: 31rem;
  margin-top: 28px;
  font-size: clamp(16px, 1.25vw, 18px); line-height: 1.75;
  color: var(--muted);
}

/* ── Vault ─────────────────────────────────────────────────────── */

.vault { --rc: #eb4b4b; }

.vault-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.spot-meta {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  min-height: 150px;
}

.spot-meta > * { transition: opacity .45s var(--ease-out), transform .6s var(--ease-out); }
.spot-meta.is-swapping > * { opacity: 0; transform: translateY(8px); }
.spot-meta > :nth-child(2) { transition-delay: 40ms; }
.spot-meta > :nth-child(3) { transition-delay: 80ms; }

.spot-rarity {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 11px/1 var(--display); letter-spacing: .26em; text-transform: uppercase;
  color: var(--rc);
}

.spot-rarity::before {
  content: ''; width: 8px; height: 8px; transform: rotate(45deg);
  background: var(--rc); box-shadow: 0 0 12px var(--rc);
}

.spot-weapon {
  margin-top: 18px;
  font: 600 14px/1.2 var(--display); letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}

.spot-skin {
  margin-top: 8px;
  font: 600 clamp(30px, 3.2vw, 44px)/1.05 var(--display);
  letter-spacing: -.015em;
}

.spot-controls { display: flex; align-items: center; gap: 12px; margin-top: 36px; }

.spot-count {
  margin-left: 8px;
  font: 600 13px/1 var(--display); letter-spacing: .12em; color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.spot-count b { color: var(--ink); font-weight: 600; }

.spot-progress {
  position: relative; flex: 1; max-width: 160px; height: 1px; margin-left: 8px;
  background: var(--line); overflow: hidden;
}

.spot-progress span {
  position: absolute; inset: 0;
  background: var(--rc);
  box-shadow: 0 0 8px var(--rc);
  transform-origin: left; transform: scaleX(0);
}


.spot { position: relative; aspect-ratio: 4 / 3; perspective: 1000px; }

.spot-glow {
  position: absolute; inset: 4% 8% 14%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--rc) 42%, transparent), color-mix(in srgb, var(--rc) 10%, transparent) 60%, transparent 78%);
  filter: blur(24px);
  animation: breathe 7s ease-in-out infinite;
}

.spot-rings {
  position: absolute; left: 50%; bottom: 4%;
  width: 78%; aspect-ratio: 1;
  transform: translateX(-50%) rotateX(76deg);
  transform-style: preserve-3d;
}

.spot-rings i {
  position: absolute; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--rc) 45%, transparent);
}

.spot-rings i:nth-child(1) { inset: 0; border-style: dashed; opacity: .5; animation: spin 40s linear infinite; }
.spot-rings i:nth-child(2) { inset: 14%; opacity: .7; }
.spot-rings i:nth-child(3) {
  inset: 30%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--rc) 30%, transparent), transparent);
  border-color: color-mix(in srgb, var(--rc) 70%, transparent);
}

.spot-stage {
  position: absolute; inset: 0;
  transform: rotateX(var(--srx, 0deg)) rotateY(var(--sry, 0deg));
  transform-style: preserve-3d;
  transition: transform .2s linear;
}

.spot-item {
  position: absolute; inset: 0 0 12%;
  display: grid; place-items: center;
  opacity: 0;
  transform: translateX(60px) scale(.94) rotate(-5deg);
  transition: opacity .7s var(--ease-out), transform 1.1s var(--ease-out);
}

.spot-item.is-active { opacity: 1; transform: none; }
.spot-item.is-leaving { opacity: 0; transform: translateX(-60px) scale(.94) rotate(4deg); transition-duration: .5s, .8s; }

.spot-item > img,
.spot-item > svg {
  width: 92%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 34px 34px rgba(0, 0, 0, .65));
  animation: float 6s ease-in-out infinite;
}

.spot-item > svg { width: 80%; }

.spot-floor {
  position: absolute; left: 50%; bottom: 9%;
  width: 56%; height: 8%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent);
  filter: blur(8px);
}

/* Thumbnail rail */

.rail { margin-top: clamp(72px, 9vw, 128px); }

.rail-track {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.rail-row { display: flex; width: max-content; animation: marquee 80s linear infinite; }
.rail-track:hover .rail-row,
.rail-track:focus-within .rail-row { animation-play-state: paused; }

@keyframes marquee { to { transform: translateX(-50%); } }

.rail-item {
  --r: #eb4b4b;
  position: relative;
  flex: none;
  width: 176px;
  margin-right: 10px;
  padding: 14px 14px 18px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit; font: inherit; text-align: left;
  cursor: pointer;
  transition: background .35s, border-color .35s;
}

.rail-item:hover,
.rail-item.is-current {
  border-color: color-mix(in srgb, var(--r) 40%, transparent);
  background:
    radial-gradient(100% 80% at 50% 100%, color-mix(in srgb, var(--r) 22%, transparent), transparent 70%),
    rgba(255, 255, 255, .02);
}

.rail-art { display: grid; place-items: center; height: 92px; }

.rail-art img,
.rail-art svg {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .6));
  transition: transform .5s var(--ease-out);
}

.rail-item:hover .rail-art img,
.rail-item:hover .rail-art svg { transform: scale(1.06) rotate(-3deg); }

.rail-weapon {
  display: block; margin-top: 12px;
  font: 600 10px/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase;
  color: var(--r);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.rail-skin {
  display: block; margin-top: 4px;
  font: 600 14px/1.25 var(--body); color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Features ──────────────────────────────────────────────────── */

.section-head { max-width: 1000px; margin-bottom: clamp(64px, 7vw, 104px); }

.feature-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.feature { position: relative; padding: 44px 32px 8px 0; }
.feature + .feature { padding-left: 32px; border-left: 1px solid var(--line); }

.feature::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--violet-hi), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .8s var(--ease-out);
}

.feature:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 32px; height: 32px;
  color: var(--violet-hi);
  filter: drop-shadow(0 0 10px rgba(180, 123, 255, .35));
  transition: transform .6s var(--ease-out);
}

.feature:hover .feature-icon { transform: translateY(-3px); }

.feature h3 { margin-top: 32px; font: 600 21px/1.2 var(--display); letter-spacing: -.005em; }
.feature p { margin-top: 14px; font-size: 15px; line-height: 1.75; color: var(--muted); }

/* ── Community band ────────────────────────────────────────────── */

.band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(48px, 7vw, 112px);
  border-radius: clamp(24px, 3vw, 36px);
  background:
    radial-gradient(70% 110% at 100% 0%, rgba(138, 43, 246, .3), transparent 60%),
    radial-gradient(60% 90% at 0% 100%, rgba(88, 101, 242, .14), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01));
  box-shadow: 0 40px 120px -60px var(--glow);
}

/* Gradient hairline border. */
.band::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(180, 123, 255, .55), rgba(255, 255, 255, .06) 40%, rgba(255, 255, 255, .04) 70%, rgba(180, 123, 255, .3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.band-mark {
  position: absolute; right: -3%; top: 50%; z-index: -1;
  width: clamp(240px, 36vw, 500px); height: auto;
  transform: translateY(-50%) rotate(-8deg);
  opacity: .12;
  filter: drop-shadow(0 0 40px rgba(138, 43, 246, .8));
  -webkit-mask-image: linear-gradient(100deg, transparent 10%, #000 60%);
          mask-image: linear-gradient(100deg, transparent 10%, #000 60%);
}

.band-copy { position: relative; max-width: 560px; }

.band-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 44px; }

/* ── Footer ────────────────────────────────────────────────────── */

.foot { position: relative; padding-top: clamp(40px, 6vw, 80px); overflow: hidden; }

.foot-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px;
  padding-bottom: 56px;
}

.foot-brand img { height: 44px; width: auto; filter: drop-shadow(0 0 16px rgba(138, 43, 246, .4)); }
.foot-brand p { margin-top: 20px; max-width: 18rem; font-size: 14px; color: var(--dim); line-height: 1.7; }

.foot-h { font: 600 11px/1 var(--display); letter-spacing: .26em; text-transform: uppercase; color: var(--ink); }

.foot-col p:not(.foot-h) { margin-top: 16px; font-size: 14px; line-height: 1.7; color: var(--dim); max-width: 22rem; }

.foot-base {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--dim);
}

.foot-base a { color: var(--muted); text-decoration: none; transition: color .25s; }
.foot-base a:hover { color: var(--ink); }

.foot-word {
  display: flex; justify-content: center;
  margin-top: clamp(8px, 2vw, 24px);
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
          mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
}

.foot-word img { width: min(1200px, 100% - 2 * var(--gutter)); height: auto; opacity: .07; }

/* ── Toast ─────────────────────────────────────────────────────── */

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 80;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--line-hi);
  background: rgba(14, 9, 28, .9);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  font: 600 13px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink);
  box-shadow: 0 20px 60px -20px var(--glow);
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  transition: transform .5s var(--ease-out), opacity .4s;
}

.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ── Responsive ────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .feature + .feature { padding: 40px 28px 40px 0; border-left: 0; }
  .feature:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
  .feature:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .top { grid-template-columns: 1fr auto; }
  .nav { display: none; }

  /* Stack the vault: heading, spotlight, then the details and controls. */
  .vault-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .vault-copy { display: contents; }
  .vault-copy .eyebrow { order: 1; }
  .vault-copy .h2 { order: 2; }
  .vault-copy .body { order: 3; }
  .spot { order: 4; margin-top: 40px; }
  .spot-meta { order: 5; margin-top: 8px; min-height: 0; }
  .spot-controls { order: 6; }
}

@media (max-width: 600px) {
  .brand-word { display: none; }
  .top-right .age { display: none; }
  .tagline { letter-spacing: .22em; max-width: 22em; }
  .tagline i { margin: 0 .35em; }
  .cd-unit { border-radius: 14px; }
  .cd-sep { display: none; }
  .cd-label { letter-spacing: .2em; font-size: 9px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature, .feature + .feature, .feature:nth-child(even) { padding: 36px 0; border-left: 0; }
  .feature + .feature { border-top: 1px solid var(--line); }
  .rail-item { width: 150px; }
  .rail-art { height: 76px; }
  .band-mark { top: auto; bottom: -8%; right: -18%; transform: rotate(-8deg); opacity: .1; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .foot-base { flex-direction: column-reverse; }
}

@media (max-height: 720px) and (min-width: 601px) {
  .emblem { --size: clamp(110px, 16vh, 150px); }
  .countdown { margin-top: 32px; }
  .hero-cta { margin-top: 28px; }
  .scroll-cue { display: none; }
}

/* ── Reduced motion ────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .bg-grain { animation: none; }
  .rail-track { overflow-x: auto; }
  .rail-row { animation: none; }
}
