/* TaserCraft — cinematic site styles */
:root {
  --bg: #07060d;
  --bg-2: #0e0b1c;
  --ink: #f4f1ff;
  --muted: #a39fbf;
  --dim: #716b93;
  --volt: #ffe14d;
  --volt-2: #ffb300;
  --cyan: #38f3ff;
  --pink: #ff4fd8;
  --green: #5dff8a;
  --red: #ff5a6a;
  --glass: rgba(15, 11, 32, .52);
  --glass-2: rgba(22, 17, 46, .7);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .17);
  --rainbow: linear-gradient(90deg, #ff5555, #ffaa00, #ffff55, #55ff55, #55ffff, #5555ff, #ff55ff, #ff5555);
  --fire: linear-gradient(90deg, #ffe14d, #ff8a1f, #ff3b6b, #b24bff);
  --font-display: "Segoe UI Black", -apple-system, BlinkMacSystemFont, system-ui, "Arial Black", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
  --r: 22px;
  --gutter: clamp(16px, 5vw, 64px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--volt); color: #120d00; }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- stage layers ---------- */
#scene { position: fixed; inset: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; display: block; opacity: 0; transition: opacity 1.4s ease; }
#scene.live { opacity: 1; }
.scrim {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 120%, rgba(7, 6, 13, .85), transparent 60%),
    radial-gradient(140% 100% at 50% 50%, transparent 55%, rgba(4, 3, 9, .7));
}
.no3d #scene { display: none; }
.no3d body, body.no3d {
  background:
    radial-gradient(1200px 700px at 70% -10%, rgba(120, 70, 255, .25), transparent 60%),
    radial-gradient(900px 600px at 10% 30%, rgba(56, 243, 255, .12), transparent 60%),
    var(--bg);
}
.cursor {
  position: fixed; left: 0; top: 0; z-index: 60; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .6s;
  background: radial-gradient(circle, rgba(255, 225, 77, .09), rgba(56, 243, 255, .04) 35%, transparent 65%);
  mix-blend-mode: screen; will-change: transform;
}
.cursor.on { opacity: 1; }
main, .footer { position: relative; z-index: 2; }
.progress { position: fixed; left: 0; top: 0; right: 0; height: 2px; z-index: 55; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--rainbow); }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; }
h2 {
  font: 900 clamp(2.2rem, min(6vw, 9.5vh), 5.2rem)/.94 var(--font-display);
  text-transform: uppercase; letter-spacing: -.015em; margin: .25em 0 .4em;
  text-wrap: balance;
}
h3 { font: 900 1.35rem/1.15 var(--font-display); letter-spacing: .005em; text-transform: uppercase; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 640px; }
.kicker, .chapter {
  display: inline-flex; align-items: center; gap: 12px;
  font: 700 .78rem/1 var(--font-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--volt);
}
.chapter::before { content: ""; width: 34px; height: 1px; background: currentColor; box-shadow: 0 0 12px currentColor; }
.grad, .grad .si {
  background-image: var(--rainbow); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hueflow 9s linear infinite;
}
.grad-fire, .grad-fire .si {
  background-image: var(--fire); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hueflow 7s linear infinite;
}
.grad.is-split, .grad-fire.is-split { background: none; color: inherit; animation: none; }
@keyframes hueflow { to { background-position: 200% 0; } }
.volt { color: var(--volt); }
kbd, code {
  font: 600 .88em/1 var(--font-mono); padding: .25em .5em; border-radius: 7px;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink);
}

/* ---------- reveal + split ---------- */
.reveal { opacity: 0; translate: 0 36px; filter: blur(8px); transition: opacity 1s var(--ease-out), translate 1.1s var(--ease-out), filter 1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; translate: none; filter: none; }
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.si { display: inline-block; transform: translateY(108%) rotate(4deg); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms + var(--d, 0s)); }
.in .si, .si.in { transform: none; }
html.js-off .reveal, html.js-off .si { opacity: 1; translate: none; transform: none; filter: none; }

/* ---------- buttons ---------- */
.btn {
  --h: 52px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: var(--h); padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  font: 800 .9rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }
.btn-volt { background: var(--volt); color: #140f00; box-shadow: 0 0 0 1px rgba(255, 225, 77, .5), 0 12px 44px -12px rgba(255, 225, 77, .75); }
.btn-volt:hover { box-shadow: 0 0 0 1px rgba(255, 225, 77, .8), 0 18px 64px -12px rgba(255, 225, 77, .95); }
.btn-ghost { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-ghost::after { background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .14) 50%, transparent 70%); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.btn-sm { --h: 40px; padding: 0 18px; font-size: .78rem; }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px; padding: 18px var(--gutter);
  transition: background .5s, padding .5s, box-shadow .5s, -webkit-backdrop-filter .5s, backdrop-filter .5s;
}
.nav.scrolled { background: rgba(7, 6, 13, .62); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); padding-block: 11px; box-shadow: 0 1px 0 var(--line); }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.nav-logo img { width: 38px; height: 38px; image-rendering: pixelated; border-radius: 9px; box-shadow: 0 0 24px -4px rgba(255, 225, 77, .6); }
.nav-logo span { font: 900 1.12rem/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  position: relative; padding: 10px 14px; border-radius: 999px; text-decoration: none;
  font: 700 .8rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  transition: color .3s, background .3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: rgba(255, 255, 255, .06); }
.nav-links a.store-link { color: var(--volt); }
.nav-burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; position: relative; }
.nav-burger i { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .45s var(--ease-out), opacity .3s; }
.nav-burger i:nth-child(1) { top: 16px; } .nav-burger i:nth-child(2) { top: 22px; } .nav-burger i:nth-child(3) { top: 28px; }
.menu-open .nav-burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .nav-burger i:nth-child(2) { opacity: 0; }
.menu-open .nav-burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 49; display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 90px var(--gutter) 40px; background: rgba(7, 6, 13, .97);
  clip-path: circle(0 at calc(100% - 44px) 40px); transition: clip-path .8s var(--ease-io), visibility 0s .8s; visibility: hidden; will-change: clip-path; transform: translateZ(0);
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 44px) 40px); visibility: visible; transition: clip-path .8s var(--ease-io), visibility 0s; }
.menu a { font: 900 clamp(2rem, 9vw, 3.2rem)/1.15 var(--font-display); text-transform: uppercase; text-decoration: none; opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .8s var(--ease-out); }
.menu-open .menu a { opacity: 1; transform: none; }
.menu-open .menu a:nth-child(2) { transition-delay: .06s; } .menu-open .menu a:nth-child(3) { transition-delay: .12s; }
.menu-open .menu a:nth-child(4) { transition-delay: .18s; } .menu-open .menu a:nth-child(5) { transition-delay: .24s; }
.menu-open .menu a:nth-child(6) { transition-delay: .3s; }
.menu a.store-link { color: var(--volt); }
.chapters { position: fixed; right: 22px; top: 50%; z-index: 40; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; }
.chapters a { position: relative; display: block; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .22); transition: background .4s, transform .4s var(--ease-out), box-shadow .4s; }
.chapters a.active { background: var(--volt); transform: scale(1.35); box-shadow: 0 0 14px var(--volt); }
.chapters a span { position: absolute; right: 22px; top: 50%; transform: translate(8px, -50%); white-space: nowrap; opacity: 0; pointer-events: none; font: 700 .7rem/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); transition: opacity .3s, transform .4s var(--ease-out); }
.chapters a:hover span { opacity: 1; transform: translate(0, -50%); }

/* ---------- loader ---------- */
#loader { position: fixed; inset: 0; z-index: 110; pointer-events: none; }
.ld-door { position: absolute; left: 0; right: 0; height: 50.5%; background: #050409; transition: transform 1.2s var(--ease-io); }
.ld-top { top: 0; } .ld-bottom { bottom: 0; }
.ld-core { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; transition: opacity .5s, transform .9s var(--ease-out); }
.ld-bolt { width: 64px; height: 96px; overflow: visible; filter: drop-shadow(0 0 18px rgba(255, 225, 77, .45)); }
.ld-bolt .outline { fill: none; stroke: rgba(255, 225, 77, .5); stroke-width: 2; stroke-linejoin: round; }
.ld-bolt .fill { fill: var(--volt); transition: y .25s linear; }
.ld-text { font: 700 .76rem/1 var(--font-mono); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.ld-text b { color: var(--volt); font-weight: 700; min-width: 3ch; display: inline-block; text-align: right; }
#loader.flash .ld-bolt { animation: boltflash .5s ease-out forwards; }
@keyframes boltflash { 0% { transform: scale(1); filter: drop-shadow(0 0 18px rgba(255, 225, 77, .45)); } 40% { transform: scale(1.25); filter: drop-shadow(0 0 60px #fff) brightness(2); } 100% { transform: scale(2.4); opacity: 0; } }
#loader.open .ld-core { opacity: 0; }
#loader.open .ld-top { transform: translateY(calc(-100% + 8vh)); }
#loader.open .ld-bottom { transform: translateY(calc(100% - 8vh)); }
#loader.gone .ld-top { transform: translateY(-101%); transition-duration: 1.6s; }
#loader.gone .ld-bottom { transform: translateY(101%); transition-duration: 1.6s; }
.seen #loader, .arriving #loader { display: none; }

/* ---------- page wipe ---------- */
#wipe { position: fixed; inset: 0; z-index: 100; pointer-events: none; overflow: hidden; }
#wipe > div { position: absolute; top: 0; bottom: 0; left: 0; right: -10%; transform: translateX(110%); }
.wipe-volt { background: var(--volt); clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%, 4% 64%, 1% 62%, 6% 33%, 3% 31%); }
.wipe-dark { background: #07060d; display: flex; align-items: center; justify-content: center; clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%, 4% 64%, 1% 62%, 6% 33%, 3% 31%); }
.wipe-dark svg { width: 54px; height: 80px; fill: var(--volt); filter: drop-shadow(0 0 22px rgba(255, 225, 77, .7)); }
.leaving #wipe > div { transition: transform .5s var(--ease-io); transform: translateX(-4%); }
.leaving #wipe .wipe-dark { transition-delay: .07s; }
.arriving #wipe > div { transform: translateX(-4%); transition: none; }
.revealing #wipe > div { transition: transform .8s var(--ease-io); transform: translateX(-112%) scaleX(1.05); }
.revealing #wipe .wipe-volt { transition-delay: .1s; }

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, 140%); opacity: 0;
  display: flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px;
  background: rgba(16, 12, 34, .92); box-shadow: inset 0 0 0 1px rgba(255, 225, 77, .35), 0 20px 60px -20px rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-weight: 650; font-size: .95rem; white-space: nowrap;
  transition: transform .6s var(--ease-out), opacity .4s;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; }
#toast b { color: var(--volt); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center;
  padding: 120px var(--gutter) max(11vh, 84px);
}
.hero-fallback { display: none; height: auto; width: min(620px, 80vw); margin: 0 auto auto; padding-top: 4vh; filter: drop-shadow(0 20px 60px rgba(255, 170, 30, .28)); }
.no3d .hero-fallback, .wait3d .hero-fallback, .film .hero-fallback { display: block; }
/* the logo lands like a title card: out of focus and a touch too close, then it settles */
.hero-fallback.reveal {
  translate: none; scale: 1.1;
  filter: blur(16px) drop-shadow(0 18px 46px rgba(0, 0, 0, .5)) drop-shadow(0 0 70px rgba(255, 170, 30, .22));
  transition: opacity 1.3s var(--ease-out), scale 2.6s var(--ease-out), filter 1.6s var(--ease-out); transition-delay: .2s;
}
.hero-fallback.reveal.in { scale: 1; filter: blur(0) drop-shadow(0 18px 46px rgba(0, 0, 0, .5)) drop-shadow(0 0 70px rgba(255, 170, 30, .22)); }
.film .hero-fallback { width: min(560px, 78vw, 62vh); }
/* the footage is bright daylight: darken the strip behind the nav */
.film .scrim {
  background:
    linear-gradient(180deg, rgba(6, 5, 12, .5), transparent 130px),
    radial-gradient(120% 70% at 50% 125%, rgba(7, 6, 13, .55), transparent 55%),
    radial-gradient(150% 110% at 50% 50%, transparent 65%, rgba(4, 3, 9, .38));
}
.credits { font-size: .72rem; opacity: .75; }
/* text straight on the footage needs a soft shadow to stay readable over bright sky */
.film .lead, .film .section-head p, .film .chapter, .film .fine { text-shadow: 0 1px 14px rgba(5, 4, 10, .9), 0 0 3px rgba(5, 4, 10, .7); }
.film .lead { color: #d9d5f0; }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hero-inner::before { content: ""; position: absolute; inset: -60px -12vw -40px; z-index: -1; background: radial-gradient(closest-side, rgba(7, 6, 13, .7), transparent); pointer-events: none; }
.hero-tag { font: 900 clamp(1.7rem, 4.2vw, 3.4rem)/1.02 var(--font-display); text-transform: uppercase; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.hero-tag em { font-style: normal; color: var(--volt); text-shadow: 0 0 34px rgba(255, 225, 77, .55); }
.ip-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.ip-pill {
  --ang: 0deg;
  position: relative; display: inline-flex; align-items: center; gap: 14px; height: 58px; padding: 0 8px 0 22px;
  border: 0; border-radius: 999px; cursor: pointer; background: rgba(12, 9, 26, .78); color: var(--ink);
  box-shadow: 0 18px 50px -20px rgba(255, 225, 77, .5); transition: transform .4s var(--ease-out);
}
.ip-pill::before {
  content: ""; position: absolute; inset: -1.5px; z-index: -1; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--ang), rgba(255, 225, 77, .2), var(--volt), var(--cyan), rgba(255, 225, 77, .2) 40%, rgba(255, 225, 77, .2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spinang 4s linear infinite;
}
@keyframes spinang { to { --ang: 360deg; } }
.ip-pill:hover { transform: translateY(-2px) scale(1.02); }
.ip-label { font: 700 .66rem/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ip-value { font: 700 1.25rem/1 var(--font-mono); letter-spacing: .02em; }
.ip-copy { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 999px; background: var(--volt); color: #140f00; font: 800 .74rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
.status { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; border-radius: 999px; background: rgba(12, 9, 26, .6); box-shadow: inset 0 0 0 1px var(--line); font: 600 .86rem/1 var(--font-body); color: var(--muted); }
.status i { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); }
.status.online i { background: var(--green); box-shadow: 0 0 0 0 rgba(93, 255, 138, .7); animation: pulse 2s infinite; }
.status.online b { color: var(--ink); }
.status.offline i { background: var(--red); }
.status b { font-weight: 700; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(93, 255, 138, .6); } 70% { box-shadow: 0 0 0 10px rgba(93, 255, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(93, 255, 138, 0); } }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; font: 700 .64rem/1 var(--font-mono); letter-spacing: .32em; text-transform: uppercase; color: var(--dim); }
.scroll-hint i { position: relative; width: 1px; height: 46px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--volt); box-shadow: 0 0 8px var(--volt); animation: drip 1.8s var(--ease-io) infinite; }
@keyframes drip { to { top: 110%; } }

/* ---------- panels (text over the 3D scene) ---------- */
.panel { position: relative; min-height: 135vh; display: flex; align-items: center; padding: 16vh var(--gutter); }
.panel-left { justify-content: flex-start; }
.panel-right { justify-content: flex-end; }
.panel-center { justify-content: center; text-align: center; }
.card {
  position: relative; max-width: 580px; padding: clamp(26px, 3.4vw, 44px); border-radius: var(--r);
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--line), 0 40px 100px -40px rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(14px) saturate(1.25); backdrop-filter: blur(14px) saturate(1.25);
}
.card::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 225, 77, .7), transparent); }
.card p { color: var(--muted); }
.card p b, .card p strong { color: var(--ink); }
.stats { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stats li { padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
.stats b { display: block; font: 900 2rem/1 var(--font-display); color: var(--volt); text-shadow: 0 0 24px rgba(255, 225, 77, .45); }
.stats span { font: 600 .78rem/1.3 var(--font-body); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- marquee band ---------- */
.band { position: relative; z-index: 3; margin: 0 -6vw; padding: 15px 0; overflow: hidden; background: var(--volt); color: #140f00; transform: rotate(-2.2deg); box-shadow: 0 24px 80px -20px rgba(255, 225, 77, .55); }
.band.band-alt { background: #0d0a1c; color: var(--ink); transform: rotate(1.6deg); margin-top: -26px; box-shadow: inset 0 0 0 1px var(--line); }
.band-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.band-alt .band-track { animation-direction: reverse; animation-duration: 42s; }
.band-track span { display: flex; align-items: center; gap: 34px; padding-right: 34px; font: 900 clamp(1.3rem, 2.8vw, 2.3rem)/1 var(--font-display); text-transform: uppercase; white-space: nowrap; letter-spacing: .01em; }
.band-track span i { width: 14px; height: 22px; flex: none; background: currentColor; clip-path: polygon(62% 0, 8% 56%, 44% 56%, 34% 100%, 92% 40%, 56% 40%); }
.band-alt .band-track span i { background: var(--volt); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- generic section ---------- */
.section { position: relative; padding: 18vh var(--gutter); }
.section-head { max-width: 1240px; margin: 0 auto 48px; }
.section-head.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head .lead { margin-top: -6px; }

/* features */
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 1fr)); gap: 16px; max-width: 1240px; margin: 0 auto; }
.fcard {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; padding: 28px 26px 26px; border-radius: 20px;
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease-out), box-shadow .4s;
}
.fcard::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(380px circle at var(--mx) var(--my), rgba(255, 225, 77, .16), transparent 45%); }
.fcard:hover { box-shadow: inset 0 0 0 1px rgba(255, 225, 77, .35), 0 30px 80px -30px rgba(255, 225, 77, .35); }
.fcard:hover::before { opacity: 1; }
.fcard h3 { margin: 18px 0 10px; }
.fcard p { color: var(--muted); font-size: .97rem; margin: 0; }
.ficon { width: 54px; height: 54px; padding: 9px; border-radius: 15px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.ficon svg { width: 100%; height: 100%; shape-rendering: crispEdges; }
.fcard .num { position: absolute; top: 22px; right: 24px; font: 700 .7rem/1 var(--font-mono); color: var(--dim); letter-spacing: .2em; }

/* dungeons */
.dungeons { min-height: 150vh; flex-direction: column; justify-content: center; align-items: stretch; gap: 40px; }
.dungeons .card { align-self: flex-start; }
.drail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; max-width: 1320px; width: 100%; margin: 0 auto; }
.dcard {
  position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 300px; padding: 22px 20px; border-radius: 20px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c1) 16%, transparent), rgba(10, 8, 22, .72) 60%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c1) 30%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .6s var(--ease-out), box-shadow .4s; cursor: default;
}
.dcard::after { content: ""; position: absolute; inset: auto -30% -40% -30%; height: 70%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c1) 45%, transparent), transparent); opacity: .35; transition: opacity .5s, transform .8s var(--ease-out); pointer-events: none; }
.dcard:hover, .dcard:focus-within { transform: translateY(-8px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c1) 70%, transparent), 0 30px 80px -30px var(--c1); }
.dcard:hover::after { opacity: .8; transform: translateY(-14%); }
.dcard-tier { font: 700 .66rem/1 var(--font-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--c1); }
.dcard h3 { font-size: 1.32rem; margin: 12px 0 16px; }
.boss { margin: 0 0 4px; color: var(--muted); font-size: .9rem; }
.boss b { display: block; font: 900 1.05rem/1.2 var(--font-display); color: var(--ink); text-transform: uppercase; }
.mini { color: var(--dim); font-size: .84rem; margin: 0; }
.diff { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 18px; }
.diff li { padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); font: 700 .7rem/1 var(--font-mono); letter-spacing: .04em; color: var(--muted); }
.dcard.extreme { background: linear-gradient(180deg, rgba(178, 75, 255, .28), rgba(10, 8, 22, .75) 65%); }
.dcard.extreme .diff li { color: #e9c8ff; box-shadow: inset 0 0 0 1px rgba(178, 75, 255, .5); }
.dnote { max-width: 1320px; width: 100%; margin: 0 auto; color: var(--dim); font-size: .88rem; text-align: center; }

/* ranks */
.ranks { min-height: 140vh; flex-direction: column; justify-content: center; align-items: center; }
.stairs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: 12px; width: min(1180px, 100%); margin: 36px auto 0; text-align: left; }
.step { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.step-info { padding: 0 6px 14px; opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i) * .12s + .5s); }
.stairs.in .step-info { opacity: 1; transform: none; }
.step-info h3 { font-size: 1.15rem; color: var(--m1); text-shadow: 0 0 24px color-mix(in srgb, var(--m1) 45%, transparent); }
.price { display: block; margin: 6px 0 10px; font: 700 .8rem/1 var(--font-mono); color: var(--muted); letter-spacing: .04em; }
.step-info ul { list-style: none; margin: 0; padding: 0; font-size: .84rem; color: var(--muted); line-height: 1.5; }
.step-info li::before { content: "› "; color: var(--m1); }
.step-bar {
  height: 0; border-radius: 14px 14px 4px 4px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--m1), var(--m2)); box-shadow: 0 0 40px -10px var(--m1), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: height 1.3s var(--ease-out); transition-delay: calc(var(--i) * .12s);
}
.step-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-120%); animation: sheen 5s var(--ease-io) infinite; animation-delay: calc(var(--i) * .4s + 1.5s); }
@keyframes sheen { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.stairs.in .step-bar { height: var(--h); }
.ranks-note { margin-top: 26px; color: var(--muted); font-size: .92rem; }

/* game modes */
.modes { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; max-width: 1080px; margin: 0 auto; }
.mode { position: relative; overflow: hidden; min-height: 300px; padding: 34px; border-radius: 26px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.mode h3 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin: 14px 0 10px; }
.mode p { color: var(--muted); margin: 0; max-width: 440px; }
.mode.live { box-shadow: inset 0 0 0 1px rgba(93, 255, 138, .3), 0 40px 100px -40px rgba(93, 255, 138, .35); }
.mode.live::before { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; background: radial-gradient(closest-side, rgba(93, 255, 138, .25), transparent); }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; font: 700 .7rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line-2); }
.mode.live .badge { color: var(--green); box-shadow: inset 0 0 0 1px rgba(93, 255, 138, .4); }
.mode.live .badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
.mode-players { position: absolute; top: 30px; right: 32px; font: 700 .8rem/1 var(--font-mono); color: var(--muted); letter-spacing: .06em; }
.mode.locked { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 14px, transparent 14px 28px), var(--glass); }
.mode.locked .badge { color: var(--pink); box-shadow: inset 0 0 0 1px rgba(255, 79, 216, .45); }
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; overflow: hidden; }
.glitch::before { color: var(--cyan); transform: translate(-2px, 0); clip-path: inset(0 0 60% 0); animation: glitch 2.6s steps(2) infinite; mix-blend-mode: screen; }
.glitch::after { color: var(--pink); transform: translate(2px, 0); clip-path: inset(55% 0 0 0); animation: glitch 3.1s steps(2) infinite reverse; mix-blend-mode: screen; }
@keyframes glitch { 0%, 86% { transform: translate(0, 0); } 88% { transform: translate(-4px, 1px); } 90% { transform: translate(4px, -2px); } 92% { transform: translate(-2px, 0); } 94%, 100% { transform: translate(0, 0); } }
.lock { position: absolute; top: 30px; right: 32px; width: 26px; height: 26px; opacity: .55; }

/* owner */
.sig { margin-top: 18px; font: 700 .8rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--volt) !important; }

/* join */
.join-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 1080px; margin: 0 auto; }
.join-card { padding: clamp(24px, 3vw, 38px); border-radius: 24px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); display: flex; flex-direction: column; }
.join-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.join-card .tagline { font: 700 .68rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.steps-list li { counter-increment: s; display: flex; align-items: center; gap: 14px; color: var(--muted); }
.steps-list li::before { content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font: 800 .82rem/1 var(--font-mono); background: rgba(255, 225, 77, .12); color: var(--volt); box-shadow: inset 0 0 0 1px rgba(255, 225, 77, .3); }
.steps-list b { color: var(--ink); }
.copy-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.copy-big {
  flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 60px; padding: 0 10px 0 20px;
  border: 0; border-radius: 16px; cursor: pointer; text-align: left;
  background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .3s, transform .4s var(--ease-out);
}
.copy-big:hover { box-shadow: inset 0 0 0 1px rgba(255, 225, 77, .6), 0 0 40px -12px rgba(255, 225, 77, .6); transform: translateY(-2px); }
.copy-big span { font: 700 1.12rem/1.1 var(--font-mono); }
.copy-big small { display: block; font: 700 .62rem/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.copy-big em { font-style: normal; height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 12px; background: var(--volt); color: #140f00; font: 800 .72rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
.hint { margin: 14px 0 0; color: var(--dim); font-size: .86rem; }

/* cta + footer */
.cta { text-align: center; padding: 16vh var(--gutter) 12vh; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta h2 { margin-bottom: .1em; }
.footer { padding: 70px var(--gutter) 40px; display: grid; gap: 26px; justify-items: center; text-align: center; background: linear-gradient(180deg, transparent, rgba(5, 4, 9, .92) 30%); }
.footer img { width: 64px; height: 64px; image-rendering: pixelated; border-radius: 14px; box-shadow: 0 0 40px -8px rgba(255, 225, 77, .6); }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.footer nav a { text-decoration: none; font: 700 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.footer nav a:hover { color: var(--volt); }
.fine { max-width: 640px; color: var(--dim); font-size: .8rem; margin: 0; }

/* ============ STORE ============ */
.store-hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 30px; padding: 130px var(--gutter) 90px; }
.store-hero h1 { font: 900 clamp(3rem, 8.4vw, 7.4rem)/.88 var(--font-display); text-transform: uppercase; letter-spacing: -.02em; margin: 18px 0 22px; }
.store-hero .lead { margin-bottom: 26px; }
.coin-spot { aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; position: relative; cursor: grab; touch-action: pan-y; }
.coin-spot:active { cursor: grabbing; }
.coin-spot .drag-hint { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); font: 700 .64rem/1 var(--font-mono); letter-spacing: .26em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.coin-spot canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.coin-spot.live canvas { opacity: 1; }
.coin-spot::after { content: ""; position: absolute; inset: 14%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 200, 60, .32), rgba(255, 170, 30, .1) 55%, transparent 75%); filter: blur(10px); }
.coin-spot.flat { background: radial-gradient(closest-side, rgba(255, 225, 77, .25), transparent 70%); }
.coin-spot.flat::before { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3a8, #ffcc33 40%, #b8860b 80%); box-shadow: 0 0 80px rgba(255, 225, 77, .5); }
.coin-spot.flat .drag-hint { display: none; }
.rate { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; border-radius: 999px; background: rgba(255, 225, 77, .1); box-shadow: inset 0 0 0 1px rgba(255, 225, 77, .35); font: 700 .95rem/1 var(--font-mono); }
.rate i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--volt); color: #140f00; font-style: normal; font-size: .85rem; }
.store-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.fair { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 1240px; margin: 0 auto; }
.fair > div { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 18px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.fair b { display: block; font: 900 1rem/1.2 var(--font-display); text-transform: uppercase; margin-bottom: 4px; }
.fair p { margin: 0; color: var(--muted); font-size: .9rem; }
.fair > div > span { flex: none; }
.fair svg { flex: none; width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: rgba(255, 225, 77, .1); shape-rendering: crispEdges; }

.packs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; max-width: 1320px; margin: 0 auto; perspective: 1200px; }
.pack {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 26px 18px 20px; border-radius: 24px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease-out), box-shadow .4s;
}
.pack::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(300px circle at var(--mx) var(--my), rgba(255, 225, 77, .2), transparent 50%); }
.pack:hover { box-shadow: inset 0 0 0 1px rgba(255, 225, 77, .45), 0 30px 80px -30px rgba(255, 225, 77, .5); }
.pack:hover::before { opacity: 1; }
.pack.popular { box-shadow: inset 0 0 0 1.5px var(--volt), 0 30px 90px -30px rgba(255, 225, 77, .7); background: linear-gradient(180deg, rgba(255, 225, 77, .14), var(--glass) 55%); }
.pack .ribbon { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: var(--volt); color: #140f00; font: 800 .62rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.pack h3 { font-size: 1.05rem; letter-spacing: .14em; color: var(--muted); margin-top: 6px; }
.pack.popular h3 { margin-top: 22px; }
.stack { position: relative; width: 96px; height: 96px; margin: 14px 0 8px; }
.stack .coin {
  position: absolute; left: 50%; width: 70px; height: 24px; margin-left: -35px; border-radius: 50%;
  bottom: calc(var(--k) * 9px + 8px);
  background: radial-gradient(ellipse at 50% 35%, #fff4b0 0 18%, #ffd23d 42%, #c78c09 78%);
  box-shadow: 0 4px 0 #8a5c00, 0 6px 14px rgba(0, 0, 0, .5), inset 0 -2px 4px rgba(120, 70, 0, .6);
  transition: transform .6s var(--ease-out); transition-delay: calc(var(--k) * 40ms);
}
.stack .coin::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 15px; transform: translate(-50%, -50%) scaleY(.5); background: #8a5c00; clip-path: polygon(62% 0, 8% 56%, 44% 56%, 34% 100%, 92% 40%, 56% 40%); }
.pack:hover .stack .coin { transform: translateY(calc(var(--k) * -7px)) rotate(calc(var(--k) * 4deg - 6deg)); }
.pack-tokens { font: 900 clamp(1.7rem, 2.6vw, 2.3rem)/1 var(--font-display); color: var(--volt); text-shadow: 0 0 28px rgba(255, 225, 77, .5); }
.pack-tokens small { font-size: .55em; margin-left: 4px; }
.pack-sub { font: 600 .78rem/1.3 var(--font-body); color: var(--dim); min-height: 2.6em; }
.pack-price { font: 800 1.35rem/1 var(--font-body); margin: 8px 0 14px; }
.pack .btn { width: 100%; }

.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: center; max-width: 1080px; margin: 0 auto; padding: clamp(24px, 4vw, 48px); border-radius: 28px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.calc-big { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 6px 0 18px; }
.calc-big b { font: 900 clamp(2.6rem, 6vw, 4.6rem)/1 var(--font-display); color: var(--volt); text-shadow: 0 0 40px rgba(255, 225, 77, .45); font-variant-numeric: tabular-nums; }
.calc-big span { font: 700 1.2rem/1 var(--font-mono); color: var(--muted); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; cursor: pointer; --v: 10%; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--volt) var(--v), rgba(255, 255, 255, .1) var(--v)); box-shadow: 0 0 20px -4px rgba(255, 225, 77, .5); }
.range::-moz-range-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--volt) var(--v), rgba(255, 255, 255, .1) var(--v)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: #fff; border: 4px solid var(--volt); box-shadow: 0 0 0 6px rgba(255, 225, 77, .2), 0 0 24px rgba(255, 225, 77, .8); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--volt); box-shadow: 0 0 0 6px rgba(255, 225, 77, .2), 0 0 24px rgba(255, 225, 77, .8); }
.range-scale { display: flex; justify-content: space-between; font: 700 .7rem/1 var(--font-mono); color: var(--dim); margin-top: 6px; }
.calc-out h3 { font-size: .95rem; letter-spacing: .14em; color: var(--muted); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 92px; align-content: flex-start; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); font: 700 .86rem/1 var(--font-body); animation: chipin .5s var(--ease-out) backwards; animation-delay: calc(var(--i) * 50ms); }
.chip em { font-style: normal; font: 700 .72rem/1 var(--font-mono); color: var(--volt); }
@keyframes chipin { from { opacity: 0; transform: translateY(10px) scale(.95); } }
.calc-left .btn { margin-top: 22px; }

.tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); margin: 0 auto 32px; position: relative; }
.tab { position: relative; z-index: 1; border: 0; background: none; cursor: pointer; height: 44px; padding: 0 22px; border-radius: 999px; font: 800 .8rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.tab[aria-selected="true"] { color: #140f00; }
.tab-ink { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px; background: var(--volt); box-shadow: 0 0 30px -6px rgba(255, 225, 77, .8); transition: transform .6s var(--ease-out), width .6s var(--ease-out); }
.tab small { font: 700 .7rem/1 var(--font-mono); opacity: .7; margin-left: 4px; }
.tabs-wrap { text-align: center; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; max-width: 1240px; margin: 0 auto; }
.ccard { position: relative; overflow: hidden; display: flex; flex-direction: column; border-radius: 20px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: cardin .7s var(--ease-out) backwards; animation-delay: calc(var(--i) * 45ms); transition: transform .5s var(--ease-out), box-shadow .4s; }
.ccard:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(255, 225, 77, .4), 0 26px 70px -30px rgba(255, 225, 77, .45); }
@keyframes cardin { from { opacity: 0; transform: translateY(26px) scale(.97); filter: blur(6px); } }
.cprev { position: relative; height: 150px; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 100%, rgba(255, 255, 255, .06), transparent 70%), rgba(0, 0, 0, .25); border-bottom: 1px solid var(--line); overflow: hidden; }
.cinfo { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; }
.cname { font: 800 .98rem/1.2 var(--font-body); }
.cprice { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; background: rgba(255, 225, 77, .12); color: var(--volt); font: 800 .8rem/1 var(--font-mono); }
.chat { width: calc(100% - 28px); padding: 12px 14px; font-size: .84rem; border-radius: 10px; background: rgba(0, 0, 0, .55); font: 600 .9rem/1.3 var(--font-mono); text-align: left; text-shadow: 2px 2px 0 rgba(0, 0, 0, .55); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chat .sep { color: #aaa; }
.chat .msg { color: #fff; }
.trail-cv { width: 100%; height: 100%; image-rendering: pixelated; }
.hat-stage { perspective: 600px; width: 120px; height: 140px; position: relative; }
.cube { position: absolute; left: 50%; transform-style: preserve-3d; }
.cube .face { position: absolute; inset: 0; background-size: 100% 100%; image-rendering: pixelated; backface-visibility: hidden; }
.spin { position: absolute; inset: 0; transform-style: preserve-3d; animation: turn 9s linear infinite; }
@keyframes turn { from { transform: rotateX(-18deg) rotateY(0deg); } to { transform: rotateX(-18deg) rotateY(360deg); } }
.ccard:hover .spin { animation-duration: 3s; }
.cgrid { transition: opacity .26s ease, translate .26s ease; }
.cgrid.out { opacity: 0; translate: 0 14px; }
.hat-glow { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; background: radial-gradient(closest-side, var(--g), transparent); opacity: .5; filter: blur(10px); }
.spin .face:nth-child(3), .spin .face:nth-child(4) { filter: brightness(.8); }
.spin .face:nth-child(2) { filter: brightness(.7); }
.cube .face.glass { opacity: .9; }
.cprev .trail-cv { position: absolute; inset: 0; }

.how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 1240px; margin: 0 auto; counter-reset: h; }
.how-step { position: relative; padding: 26px 22px; border-radius: 20px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); counter-increment: h; }
.how-step::before { content: "0" counter(h); display: block; font: 900 2.6rem/1 var(--font-display); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 225, 77, .6); margin-bottom: 14px; }
.how-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.how-step p { margin: 0; color: var(--muted); font-size: .92rem; }

.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font: 800 1.02rem/1.3 var(--font-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--volt); border-bottom: 2px solid var(--volt); transform: rotate(45deg) translate(-2px, -2px); transition: transform .5s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq .ans { padding: 0 22px 20px; color: var(--muted); }
.faq .ans p { margin: 0; }

dialog.soon { width: min(460px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 26px; color: var(--ink); background: #0e0b1c; box-shadow: inset 0 0 0 1px rgba(255, 225, 77, .35), 0 50px 120px -30px rgba(0, 0, 0, .9); overflow: hidden; }
dialog.soon[open] { animation: dlgin .6s var(--ease-out); }
dialog.soon::backdrop { background: rgba(4, 3, 9, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes dlgin { from { opacity: 0; transform: translateY(30px) scale(.96); } }
.soon-in { padding: 34px 30px 28px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.soon-in svg { width: 46px; height: 68px; fill: var(--volt); filter: drop-shadow(0 0 22px rgba(255, 225, 77, .7)); }
.soon-in h3 { font-size: 1.6rem; }
.soon-in p { color: var(--muted); margin: 0; }
.soon-in .btn { margin-top: 8px; }

/* legal */
.legal { max-width: 860px; margin: 0 auto; padding: 140px var(--gutter) 80px; }
.legal h1 { font: 900 clamp(2.4rem, 6vw, 4.4rem)/.95 var(--font-display); text-transform: uppercase; margin: 14px 0 34px; }
.legal section { margin-bottom: 26px; padding: 26px 28px; border-radius: 20px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.legal h2 { font-size: 1.3rem; margin: 0 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal .todo { color: var(--volt); font-family: var(--font-mono); font-size: .9em; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .drail { grid-template-columns: repeat(5, minmax(240px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .drail::-webkit-scrollbar { display: none; }
  .dcard { scroll-snap-align: center; }
  .packs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav-links, .nav .nav-cta { display: none; }
  .nav-burger { display: block; }
  .chapters { display: none; }
  .panel { min-height: 120vh; align-items: flex-end; padding-bottom: 10vh; }
  .panel-left, .panel-right { justify-content: center; }
  .card { max-width: 100%; }
  .stairs { grid-template-columns: 1fr; gap: 10px; }
  .step { flex-direction: row; align-items: stretch; gap: 14px; }
  .step-info { flex: 1; padding: 14px 0; order: 2; }
  .step-bar { order: 1; height: auto !important; width: 0; flex: none; border-radius: 12px; transition-property: width; }
  .stairs.in .step-bar { width: calc(var(--h) * .55 + 18px); }
  .modes, .join-grid, .calc { grid-template-columns: 1fr; }
  .store-hero { grid-template-columns: 1fr; text-align: center; padding-top: 110px; gap: 0; }
  .store-hero .coin-spot { order: -1; max-width: 340px; margin-bottom: 22px; }
  .store-hero .rate, .store-cta { justify-content: center; }
  .store-hero > div:first-child { display: flex; flex-direction: column; align-items: center; }
  .fair { grid-template-columns: 1fr; }
  .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pack.popular { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .ip-pill { height: 54px; padding-left: 18px; gap: 10px; }
  .ip-label { display: none; }
  .ip-value { font-size: 1.08rem; }
  .packs { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pack { padding: 22px 12px 16px; }
  .how { grid-template-columns: 1fr; }
  .stats b { font-size: 1.6rem; }
  .hero { padding-bottom: 92px; }
}

@media (max-height: 760px) {
  .scroll-hint { display: none; }
  .hero { padding-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .reveal { filter: none; }
}
