/* Lucky Glitch Studio — brand: Lucky Gold, Arcade Purple, Glitch Teal, Ivory, Deep Space. */
:root {
  --gold: #ffc857;
  --gold-d: #e8932b;
  --purple: #6a00ff;
  --purple-l: #9a5cff;
  --teal: #00e5c6;
  --ivory: #fff7e6;
  --space: #0b0814;
  --space-2: #140e24;
  --space-3: #1d1534;
  --line: rgba(255, 247, 230, .16);
  --mute: rgba(255, 247, 230, .7);
  --title: "Oxanium", "Orbitron", "Arial Black", sans-serif;
  --body: "Sora", "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4.2vw, 64px);
  --cut: clamp(26px, 4.4vw, 70px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--space); }
body { margin: 0; background: var(--space); color: var(--ivory); font: 400 clamp(15px, .5vw + 13px, 18px)/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--space); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; border-radius: 6px; }
main { overflow-x: clip; position: relative; z-index: 2; }
.wrap { width: min(1360px, 100% - var(--gutter) * 2); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--space); padding: 10px 14px; z-index: 400; font-weight: 700; }
.skip:focus { left: 8px; }
.t { font-family: var(--title); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; line-height: .92; }
.label { font: 600 .72rem/1 var(--title); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 14px; }
.label::before { content: ""; width: 34px; height: 3px; background: linear-gradient(90deg, var(--purple), var(--teal)); transform: skewX(-30deg); }
.gold { color: var(--gold); }

/* backdrop layers */
#bg, #fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#bg { z-index: 0; }
#fx { z-index: 300; }
.scan { position: fixed; inset: 0; z-index: 250; pointer-events: none; opacity: .5; mix-blend-mode: overlay; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .35) 0 1px, transparent 1px 3px); }
.progress { position: fixed; top: 0; left: 0; height: 4px; width: 100%; z-index: 260; background: linear-gradient(90deg, var(--purple), var(--gold), var(--teal)); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- glitch primitives ---------- */
.gl { position: relative; display: inline-block; }
.gl::before, .gl::after { content: attr(data-text); position: absolute; inset: 0; opacity: 0; pointer-events: none; white-space: inherit; }
.gl::before { color: var(--teal); mix-blend-mode: screen; }
.gl::after { color: var(--purple-l); mix-blend-mode: screen; }
.gl.hit::before, .gl:hover::before { opacity: 1; animation: slA .45s steps(1) infinite; }
.gl.hit::after, .gl:hover::after { opacity: 1; animation: slB .45s steps(1) infinite; }
@keyframes slA { 0% { transform: translate(-4px, 1px); clip-path: inset(8% 0 62% 0); } 25% { transform: translate(5px, -1px); clip-path: inset(52% 0 20% 0); } 50% { transform: translate(-3px, 0); clip-path: inset(30% 0 40% 0); } 75% { transform: translate(4px, 2px); clip-path: inset(70% 0 4% 0); } 100% { transform: translate(-5px, -1px); clip-path: inset(18% 0 55% 0); } }
@keyframes slB { 0% { transform: translate(4px, -1px); clip-path: inset(60% 0 10% 0); } 25% { transform: translate(-5px, 1px); clip-path: inset(10% 0 66% 0); } 50% { transform: translate(3px, 0); clip-path: inset(44% 0 30% 0); } 75% { transform: translate(-4px, -2px); clip-path: inset(2% 0 78% 0); } 100% { transform: translate(5px, 1px); clip-path: inset(62% 0 14% 0); } }

/* sprite chroma hit */
.chroma:hover, .chroma.hit { animation: chroma .4s steps(2) infinite; }
@keyframes chroma { 0% { filter: drop-shadow(-6px 0 0 rgba(0, 229, 198, .85)) drop-shadow(6px 0 0 rgba(106, 0, 255, .85)); translate: 2px 0; } 50% { filter: drop-shadow(5px 0 0 rgba(0, 229, 198, .85)) drop-shadow(-5px 0 0 rgba(106, 0, 255, .85)); translate: -3px 1px; } 100% { filter: drop-shadow(-3px 0 0 rgba(0, 229, 198, .85)) drop-shadow(3px 0 0 rgba(106, 0, 255, .85)); translate: 0 -1px; } }

/* layered logo mark */
.mark { position: relative; display: block; aspect-ratio: 1024 / 1017; }
.mark.lockup { aspect-ratio: 1024 / 431; }
.mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; max-width: none; }
.mark .g1, .mark .g2 { opacity: 0; }
.mark.hit .g1 { opacity: .95; animation: mk1 .5s steps(1) infinite; }
.mark.hit .g2 { opacity: .95; animation: mk2 .5s steps(1) infinite; }
.mark.hit .base { animation: mk0 .5s steps(1) infinite; }
@keyframes mk0 { 0% { clip-path: inset(0 0 0 0); } 20% { clip-path: inset(0 0 55% 0); translate: -8px 0; } 40% { clip-path: inset(48% 0 30% 0); translate: 10px 0; } 60% { clip-path: inset(0 0 0 0); translate: 0 0; } 80% { clip-path: inset(75% 0 0 0); translate: -6px 0; } 100% { clip-path: inset(0 0 0 0); translate: 0 0; } }
@keyframes mk1 { 0% { translate: -10px 2px; clip-path: inset(10% 0 60% 0); } 33% { translate: 12px -2px; clip-path: inset(55% 0 12% 0); } 66% { translate: -6px 0; clip-path: inset(28% 0 42% 0); } 100% { translate: 8px 3px; clip-path: inset(70% 0 5% 0); } }
@keyframes mk2 { 0% { translate: 10px -2px; clip-path: inset(58% 0 14% 0); } 33% { translate: -12px 2px; clip-path: inset(8% 0 70% 0); } 66% { translate: 7px 0; clip-path: inset(40% 0 30% 0); } 100% { translate: -9px -3px; clip-path: inset(5% 0 80% 0); } }

/* buttons */
.btn { --bg: var(--gold); --fg: var(--space); position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 12px; padding: 16px 30px 16px 28px; border: 0; cursor: pointer; text-decoration: none; background: var(--bg); color: var(--fg); font: 800 .88rem/1 var(--title); letter-spacing: .14em; text-transform: uppercase; font-style: italic; clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); transition: transform .3s var(--ease); will-change: transform; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%); transform: translateX(-120%); }
.btn:hover::after { transform: translateX(120%); transition: transform .7s var(--ease); }
.btn.ghost { --bg: transparent; --fg: var(--ivory); background: rgba(255, 247, 230, .06); clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); box-shadow: inset 0 0 0 2px var(--ivory); }
.btn.ghost:hover { background: var(--ivory); color: var(--space); }
.btn .arr { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }

/* ---------- boot ---------- */
#boot { position: fixed; inset: 0; z-index: 500; background: var(--space); display: grid; place-items: center; }
#boot .box { display: grid; justify-items: center; gap: 22px; width: min(86vw, 420px); }
#boot .mark { width: min(72vw, 420px); }
#boot .word { font: 800 clamp(1.3rem, 5vw, 2rem)/1 var(--title); font-style: italic; letter-spacing: .02em; min-height: 1em; text-align: center; }
#boot .meter { width: 100%; height: 6px; background: rgba(255, 247, 230, .12); transform: skewX(-30deg); overflow: hidden; }
#boot .meter i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--purple), var(--gold), var(--teal)); }
#boot .pct { font: 600 .75rem var(--title); letter-spacing: .3em; color: var(--mute); }
#boot .bars { position: absolute; inset: 0; display: none; overflow: hidden; }
#boot.done { background: transparent; pointer-events: none; }
#boot.done .box { opacity: 0; }
#boot.done .bars { display: block; }
#boot .bars i { position: absolute; left: -20%; width: 140%; background: var(--space); transform: skewX(-18deg); animation: wipe .9s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms); box-shadow: 8px 0 0 var(--teal), 16px 0 0 var(--purple); }
@keyframes wipe { to { transform: skewX(-18deg) translateX(125%); } }

/* ---------- header ---------- */
.site-head { position: fixed; inset: 0 0 auto 0; z-index: 200; padding: 18px 0; transition: transform .5s var(--ease), background .3s, padding .3s; }
.site-head.hide { transform: translateY(-110%); }
.site-head.solid { background: rgba(11, 8, 20, .82); backdrop-filter: blur(12px); padding: 10px 0; box-shadow: 0 1px 0 var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark { width: 150px; }
.brand b { display: block; font: 800 1.15rem/.9 var(--title); font-style: italic; letter-spacing: .01em; }
.brand small { display: block; font: 600 .56rem/1 var(--title); letter-spacing: .5em; color: var(--gold); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 38px); }
.nav a:not(.btn) { text-decoration: none; font: 700 .78rem/1 var(--title); letter-spacing: .2em; text-transform: uppercase; position: relative; padding: 6px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--purple), var(--teal)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav .btn { padding: 12px 22px; font-size: .74rem; }

/* cursor */
.cur { position: fixed; z-index: 450; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity .2s; }
.cur i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); transition: all .25s var(--ease); }
.cur.c1 i { background: var(--teal); mix-blend-mode: screen; opacity: .8; }
.cur.c2 i { background: var(--purple-l); mix-blend-mode: screen; opacity: .8; }
.cur.on { opacity: 1; }
.cur.big i { width: 36px; height: 36px; left: -18px; top: -18px; background: transparent; border: 2px solid var(--gold); }
.cur.c1.big i { border-color: var(--teal); }
.cur.c2.big i { border-color: var(--purple-l); }
@media (hover: none), (pointer: coarse) { .cur { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; padding: clamp(110px, 15vh, 160px) 0 clamp(70px, 9vh, 110px); display: grid; align-items: center; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 3vw, 60px); align-items: center; }
.hero .label { margin-bottom: 26px; }
.hero h1 { margin: 0 0 clamp(20px, 2.6vw, 34px); font: 800 clamp(2.5rem, 6.3vw, 6.2rem)/1.02 var(--body); letter-spacing: -.04em; }
.hero h1 .ln { display: block; overflow: hidden; padding: .04em 0 .1em; }
.hero h1 .ln > span, .hero h1 .ln > .reel { display: inline-block; transform: translateY(110%); }
body.ready .hero h1 .ln > span, body.ready .hero h1 .ln > .reel { animation: up 1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes up { to { transform: none; } }
.reel { position: relative; height: 1.02em; overflow: hidden; vertical-align: bottom; color: var(--gold); transition: width .6s var(--ease); font-style: italic; font-family: var(--title); text-transform: uppercase; letter-spacing: -.01em; }
.reel ul { list-style: none; margin: 0; padding: 0; will-change: transform; }
.reel li { height: 1.02em; line-height: 1.02; white-space: nowrap; }
.hero .lede { max-width: 31em; color: var(--mute); font-size: clamp(1rem, .6vw + .85rem, 1.25rem); margin: 0 0 clamp(24px, 3vw, 38px); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 18px; }
.fade { opacity: 0; transform: translateY(18px); }
body.ready .fade { animation: fadeUp .9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.stage { position: relative; width: min(100%, 600px); aspect-ratio: 1; justify-self: center; container-type: inline-size; --mx: 0; --my: 0; }
.stage .halo { position: absolute; inset: 4%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 87, .16), rgba(106, 0, 255, .22) 45%, transparent 68%); filter: blur(6px); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.1); opacity: .8; } }
.stage .big { background: none; border: 0; padding: 0; position: absolute; left: 14%; top: 14%; width: 72%; translate: calc(var(--mx) * -16px) calc(var(--my) * -12px); cursor: pointer; }
.stage .big .mark { animation: bob 6s ease-in-out infinite; transition: transform .5s var(--ease); }
.stage .big:hover .mark { transform: rotate(-4deg) scale(1.03); }
.stage .big.spin .mark { animation: spinpop 1s var(--ease); }
@keyframes bob { 50% { transform: translateY(-14px) rotate(1.5deg); } }
@keyframes spinpop { 0% { transform: rotate(0) scale(1); } 40% { transform: rotate(200deg) scale(1.15); } 100% { transform: rotate(360deg) scale(1); } }
.orbit { position: absolute; inset: 0; animation: spin 46s linear infinite; pointer-events: none; }
.orbit.rev { animation-direction: reverse; animation-duration: 62s; }
.orbit .sp { position: absolute; left: 50%; top: 50%; width: var(--s, 64px); margin: calc(var(--s, 64px) / -2) 0 0 calc(var(--s, 64px) / -2); transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(var(--a) * -1)); }
.orbit .sp img { animation: spin 46s linear infinite reverse; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)); }
.orbit.rev .sp img { animation-direction: normal; animation-duration: 62s; }
@keyframes spin { to { transform: rotate(360deg); } }
.stage .hint { position: absolute; right: 2%; bottom: 4%; display: inline-flex; gap: 10px; align-items: center; font: 700 .7rem var(--title); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); transform: skewX(-12deg); border: 2px solid var(--gold); padding: 9px 14px; background: rgba(11, 8, 20, .6); }
.stage .hint i { width: 8px; height: 8px; background: var(--teal); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { transform: scale(1.8); opacity: .3; } }
.pop { position: fixed; z-index: 320; pointer-events: none; font: 800 1.6rem/1 var(--title); font-style: italic; color: var(--gold); text-shadow: -3px 0 var(--teal), 3px 0 var(--purple); animation: popup 1.1s var(--ease) forwards; white-space: nowrap; }
@keyframes popup { 0% { transform: translate(-50%, -20%) scale(.6); opacity: 0; } 20% { opacity: 1; transform: translate(-50%, -80%) scale(1.15); } 100% { transform: translate(-50%, -260%) scale(1); opacity: 0; } }
.scrollcue { position: absolute; left: var(--gutter); bottom: 22px; font: 700 .66rem var(--title); letter-spacing: .4em; color: var(--mute); display: flex; gap: 14px; align-items: center; }
.scrollcue::before { content: ""; width: 3px; height: 40px; background: linear-gradient(var(--gold), transparent); transform-origin: top; animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- marquee ---------- */
.band { position: relative; z-index: 3; padding: 26px 0; transform: rotate(-2deg) scale(1.04); background: var(--gold); color: var(--space); overflow: hidden; box-shadow: 0 -6px 0 var(--purple), 0 6px 0 var(--teal); margin: 0 0 -20px; }
.band .row { display: flex; width: max-content; will-change: transform; }
.band .row + .row { margin-top: 6px; }
.band span { font: 800 clamp(1.8rem, 4.6vw, 3.8rem)/1 var(--title); font-style: italic; text-transform: uppercase; padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.band span.o { color: transparent; -webkit-text-stroke: 2px var(--space); }
.band span::after { content: ""; width: .5em; height: .5em; background: var(--space); transform: rotate(45deg); }
.band .row.r2 span { font-size: clamp(1.1rem, 2.4vw, 2rem); }

/* ---------- section scaffolding ---------- */
.cutter { clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%); padding-block: calc(var(--cut) + clamp(70px, 9vw, 130px)); margin-block: calc(var(--cut) * -.6); position: relative; }
h2.t { margin: 0; font-size: clamp(2.6rem, 8vw, 7.6rem); }
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- game tour ---------- */
.game { background: linear-gradient(160deg, #1a0f35, var(--space-2) 55%, #0e0a1d); padding-bottom: 0; clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); }
.game .intro { padding-bottom: clamp(30px, 5vw, 70px); }
.game .intro h2, .game .intro h1 { margin: 18px 0 22px; }
.game .intro h2 .k, .game .intro h1 .k { color: var(--gold); }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.badge { font: 700 .7rem var(--title); letter-spacing: .22em; text-transform: uppercase; padding: 9px 18px; border: 2px solid var(--line); transform: skewX(-14deg); }
.badge span { display: inline-block; transform: skewX(14deg); }
.badge.live { border-color: var(--gold); color: var(--gold); }
.game .intro p { max-width: 36em; color: var(--mute); font-size: clamp(1.05rem, .8vw + .9rem, 1.35rem); margin: 0; }

.tour { position: relative; height: 420vh; }
.tour .sticky { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 5vw, 90px); align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { padding: 22px 0 22px 28px; border-left: 3px solid var(--line); opacity: .38; transition: opacity .5s, padding .5s var(--ease); cursor: pointer; position: relative; }
.step::before { content: ""; position: absolute; left: -3px; top: 0; width: 3px; height: 100%; background: linear-gradient(var(--purple), var(--teal)); transform: scaleY(0); transform-origin: top; transition: transform .6s var(--ease); }
.step.on { opacity: 1; padding-left: 40px; }
.step.on::before { transform: scaleY(1); }
.step h3 { margin: 0 0 6px; font: 800 clamp(1.8rem, 3.6vw, 3rem)/1 var(--title); font-style: italic; text-transform: uppercase; }
.step.on h3 { color: var(--gold); }
.step p { margin: 0; color: var(--mute); max-width: 26em; max-height: 0; overflow: hidden; transition: max-height .6s var(--ease); }
.step.on p { max-height: 8em; }
.scene { position: relative; height: min(78svh, 700px); aspect-ratio: 1; justify-self: center; max-width: 100%; }
.phone { position: absolute; left: 50%; top: 50%; height: 88%; aspect-ratio: 9 / 19; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); border: 3px solid var(--ivory); border-radius: 34px; background: #000; padding: 9px; box-shadow: 0 0 0 6px rgba(255, 247, 230, .08), 14px 14px 0 var(--purple), -14px -14px 0 rgba(0, 229, 198, .5); z-index: 3; }
.phone::before { content: ""; position: absolute; top: 13px; left: 50%; width: 30%; height: 16px; border-radius: 10px; background: #000; transform: translateX(-50%); z-index: 3; }
.phone .scr { position: absolute; inset: 9px; border-radius: 26px; overflow: hidden; }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.tour[data-step="0"] .phone .s-a, .tour[data-step="1"] .phone .s-b, .tour[data-step="2"] .phone .s-c, .tour[data-step="3"] .phone .s-d { opacity: 1; }
.phone.hit { animation: phoneHit .5s steps(1); }
@keyframes phoneHit { 0% { transform: translate(-50%, -50%) translateX(-12px) skewX(-4deg); filter: hue-rotate(40deg); } 25% { transform: translate(-50%, -50%) translateX(10px); } 50% { transform: translate(-50%, -50%) translateX(-6px) skewX(3deg); filter: hue-rotate(-60deg); } 100% { transform: translate(-50%, -50%); } }
.grp > img { position: absolute; width: var(--w); left: var(--x); top: var(--y); z-index: var(--z, 4); opacity: 0; transform: scale(.4) rotate(-14deg); filter: blur(8px); transition: opacity .6s var(--ease), transform .8s var(--ease), filter .6s; transition-delay: calc(var(--k) * 70ms); animation: floaty calc(5s + var(--k) * .6s) ease-in-out infinite; animation-delay: calc(var(--k) * -.8s); }
.tour[data-step="0"] .g0 > img, .tour[data-step="1"] .g1 > img, .tour[data-step="2"] .g2 > img, .tour[data-step="3"] .g3 > img { opacity: 1; transform: none; filter: none; }
@keyframes floaty { 50% { translate: 0 -14px; } }
.scene .p2 { display: none; }

/* ---------- sites ---------- */
.sites { background: var(--space); overflow: hidden; clip-path: polygon(0 0, 100% var(--cut), 100% 100%, 0 calc(100% - var(--cut))); }
.sites .head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 60px; margin-bottom: clamp(30px, 5vw, 70px); position: relative; z-index: 1; }
.sites .head p { max-width: 26em; color: var(--mute); margin: 0; }
.sites .ghost-word { position: absolute; left: 0; top: 22%; font: 800 clamp(8rem, 28vw, 28rem)/.8 var(--title); font-style: italic; text-transform: uppercase; color: transparent; -webkit-text-stroke: 2px rgba(255, 247, 230, .08); white-space: nowrap; pointer-events: none; will-change: transform; }
.lane { --lg: clamp(20px, 3vw, 48px); position: relative; display: flex; width: max-content; gap: var(--lg); padding: 14px var(--lg) 14px 0; will-change: transform; }
.lane img { width: clamp(150px, 19vw, 280px); flex: none; cursor: crosshair; transition: transform .4s var(--ease); filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .55)); }
.lane img:hover { transform: translateY(-14px) scale(1.08) rotate(-2deg); }
.lane.l2 img { width: clamp(120px, 15vw, 220px); }

/* ---------- play ---------- */
.play { background: linear-gradient(200deg, #170d33, var(--space-2) 60%, #0c0818); clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); }
.play .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 100px); align-items: center; }
.play p.lead { color: var(--mute); max-width: 24em; margin: 22px 0 0; font-size: clamp(1.05rem, .8vw + .9rem, 1.3rem); }
.pad { position: relative; padding: clamp(22px, 3vw, 40px); background: rgba(255, 247, 230, .04); border: 2px solid var(--line); clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px); user-select: none; -webkit-user-select: none; }
.pad::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--purple), var(--gold), var(--teal)); }
.hud { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.hud .n { font: 800 clamp(2.4rem, 6vw, 4.4rem)/1 var(--title); font-style: italic; display: inline-flex; align-items: center; gap: 14px; font-variant-numeric: tabular-nums; }
.hud .n img { width: .8em; height: auto; }
.hud .rate { font: 700 .72rem var(--title); letter-spacing: .22em; color: var(--teal); text-transform: uppercase; }
.rock { position: relative; display: grid; place-items: center; height: clamp(200px, 30vw, 300px); margin: 6px 0 18px; }
.rock button { position: relative; z-index: 1; border: 0; background: none; padding: 0; cursor: pointer; width: clamp(130px, 18vw, 200px); transition: transform .12s; -webkit-tap-highlight-color: transparent; }
.rock button:active { transform: scale(.9) rotate(-4deg); }
.rock button img { filter: drop-shadow(0 0 30px rgba(154, 92, 255, .6)); pointer-events: none; }
.rock .ring { position: absolute; width: 74%; max-width: 280px; aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(255, 200, 87, .35); animation: spin 24s linear infinite; pointer-events: none; }
.plus { position: absolute; z-index: 2; pointer-events: none; font: 800 1.5rem var(--title); font-style: italic; color: var(--gold); text-shadow: -2px 0 var(--teal), 2px 0 var(--purple); animation: plus .9s var(--ease) forwards; }
@keyframes plus { from { transform: translate(-50%, 0); opacity: 1; } to { transform: translate(-50%, -120px) skewX(-10deg); opacity: 0; } }
.shop { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.buy { display: grid; gap: 4px; text-align: left; padding: 14px 18px; background: var(--space-3); border: 2px solid var(--line); cursor: pointer; transition: border-color .2s, transform .2s var(--ease); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.buy b { font: 800 1rem var(--title); font-style: italic; text-transform: uppercase; }
.buy span { font: 600 .78rem var(--body); color: var(--mute); }
.buy em { font: 800 .9rem var(--title); font-style: normal; color: var(--gold); display: inline-flex; align-items: center; gap: 6px; }
.buy em img { width: 16px; }
.buy:hover:not(:disabled) { border-color: var(--gold); transform: translateY(-3px); }
.buy:disabled { opacity: .42; cursor: not-allowed; }
.pad .note { margin: 14px 0 0; font-size: .78rem; color: var(--mute); }

/* ---------- studio ---------- */
.studio { background: var(--ivory); color: var(--space); clip-path: polygon(0 0, 100% var(--cut), 100% 100%, 0 calc(100% - var(--cut))); }
.studio .label { color: var(--purple); }
.scrub { font: 800 clamp(1.9rem, 4.6vw, 4.4rem)/1.1 var(--body); letter-spacing: -.035em; max-width: 19em; margin: 26px 0 clamp(50px, 7vw, 100px); }
.scrub .w { opacity: .16; transition: opacity .25s linear; }
.scrub .w.on { opacity: 1; }
.eq { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(14px, 3vw, 44px); margin-bottom: clamp(50px, 7vw, 100px); padding: clamp(20px, 3vw, 40px); background: var(--space); color: var(--ivory); clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px)); }
.eq .cell { display: grid; justify-items: center; gap: 12px; text-align: center; }
.eq .cell .mark { width: clamp(90px, 14vw, 170px); }
.eq .cell .mark.lockup { width: clamp(170px, 24vw, 320px); }
.eq .cell small { font: 700 .7rem var(--title); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.eq .cell small em { display: block; color: var(--mute); font-style: normal; letter-spacing: .08em; font-weight: 400; margin-top: 4px; text-transform: none; font-family: var(--body); }
.eq .op { font: 800 clamp(2rem, 5vw, 4rem) var(--title); color: var(--teal); }
.eq .shard { width: clamp(90px, 14vw, 170px); aspect-ratio: 1; position: relative; }
.eq .shard i { position: absolute; left: 8%; height: 11%; transform: skewX(-30deg); animation: shard 2.4s steps(1) infinite; }
.eq .shard i:nth-child(1) { top: 22%; width: 70%; background: var(--purple); }
.eq .shard i:nth-child(2) { top: 40%; width: 50%; left: 28%; background: var(--teal); animation-delay: -.6s; }
.eq .shard i:nth-child(3) { top: 58%; width: 62%; background: var(--purple-l); animation-delay: -1.2s; }
.eq .shard i:nth-child(4) { top: 74%; width: 34%; left: 40%; background: var(--ivory); animation-delay: -1.8s; }
@keyframes shard { 0% { translate: 0 0; } 20% { translate: -12px 0; } 40% { translate: 14px 0; } 60% { translate: -4px 0; } 80% { translate: 8px 0; } }
.tenets { display: grid; }
.tenet { display: grid; grid-template-columns: minmax(0, .5fr) minmax(0, 1fr); gap: 12px clamp(20px, 5vw, 80px); padding: clamp(20px, 3vw, 36px) 0; border-top: 3px solid var(--space); align-items: baseline; transition: background .3s; }
.tenet:nth-child(2) { padding-left: clamp(0px, 6vw, 90px); }
.tenet:nth-child(3) { padding-left: clamp(0px, 12vw, 180px); }
.tenet:hover { background: linear-gradient(90deg, rgba(255, 200, 87, .55), transparent); }
.tenet h3 { margin: 0; font: 800 clamp(2rem, 5vw, 4.6rem)/.95 var(--title); font-style: italic; text-transform: uppercase; }
.tenet p { margin: 0; max-width: 28em; font-size: clamp(1rem, .6vw + .9rem, 1.2rem); }

/* ---------- contact ---------- */
.contact { background: linear-gradient(150deg, var(--purple) -20%, #25104f 40%, var(--space) 95%); overflow: hidden; clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); padding-bottom: clamp(70px, 9vw, 130px); }
.contact h2 { margin: 18px 0 30px; font-size: clamp(3.2rem, 12vw, 12rem); }
.mail { display: inline-block; font: 800 clamp(1.3rem, 4.6vw, 4rem)/1.1 var(--title); font-style: italic; text-decoration: none; word-break: break-word; position: relative; color: var(--gold); }
.mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.1em; height: .08em; background: linear-gradient(90deg, var(--teal), var(--ivory)); transform-origin: 100% 50%; transition: transform .5s var(--ease); }
.mail:hover::after { transform: scaleX(0); transform-origin: 0 50%; }
.contact .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: clamp(40px, 6vw, 80px); position: relative; z-index: 1; }
.contact .cols div { border-top: 3px solid var(--gold); padding-top: 14px; }
.contact .cols b { font: 700 .74rem var(--title); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.contact .cols p { margin: 8px 0 0; color: var(--ivory); opacity: .88; max-width: 22em; }
.coin3d { position: absolute; right: clamp(-30px, 2vw, 40px); top: clamp(300px, 24vw, 330px); width: clamp(110px, 14vw, 200px); perspective: 900px; pointer-events: none; }
.coin3d img { animation: flip 3.6s linear infinite; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); }
@keyframes flip { from { transform: rotateY(0) rotateZ(-8deg); } to { transform: rotateY(360deg) rotateZ(-8deg); } }

/* ---------- footer ---------- */
.site-foot { position: relative; z-index: 2; background: var(--space); padding: clamp(40px, 6vw, 80px) 0 36px; overflow: hidden; }
.bigmark { font: 800 clamp(2.6rem, 10.5vw, 11rem)/.9 var(--title); font-style: italic; text-transform: uppercase; margin: 0 0 30px; white-space: nowrap; letter-spacing: -.01em; user-select: none; }
.bigmark span { display: inline-block; transition: transform .25s var(--ease), color .25s, text-shadow .25s; will-change: transform; }
.bigmark span.near { color: var(--gold); text-shadow: -4px 0 var(--teal), 4px 0 var(--purple); }
.site-foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; align-items: center; border-top: 1px solid var(--line); padding-top: 26px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-foot a { text-decoration: none; font: 600 .74rem var(--title); letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.site-foot a:hover { opacity: 1; color: var(--gold); }
.site-foot small { color: var(--mute); }

/* ---------- legal ---------- */
.legal { padding: clamp(130px, 17vh, 190px) 0 clamp(70px, 10vw, 140px); position: relative; z-index: 2; }
.legal .wrap { width: min(860px, 100% - var(--gutter) * 2); }
.legal h1 { margin: 16px 0 14px; font-size: clamp(2.6rem, 8vw, 5.6rem); }
.legal .meta { color: var(--mute); margin-bottom: 44px; font: 600 .72rem var(--title); letter-spacing: .24em; text-transform: uppercase; }
.legal h2 { margin: 52px 0 12px; font: 800 clamp(1.4rem, 2.6vw, 2rem)/1.1 var(--title); font-style: italic; text-transform: uppercase; padding-top: 22px; border-top: 3px solid var(--gold); }
.legal p, .legal li { max-width: 68ch; }
.legal ul, .legal ol { padding-left: 1.2em; }
.legal li { margin: 6px 0; }
.legal a { color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font: 700 .7rem var(--title); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.callout { background: rgba(255, 247, 230, .06); border-left: 5px solid var(--gold); padding: 20px 24px; margin: 24px 0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { min-height: auto; }
  .hero .wrap, .play .grid { grid-template-columns: 1fr; }
  .stage { width: min(88%, 460px); }
  .scrollcue { display: none; }
  .tour { height: auto; padding-bottom: 40px; }
  .tour .sticky { position: relative; height: auto; grid-template-columns: 1fr; padding-block: 20px; }
  .step { opacity: 1; padding-left: 28px; }
  .step p { max-height: 8em; }
  .step.on { padding-left: 28px; }
  .step h3 { color: var(--gold); }
  .scene { height: auto; width: min(100%, 520px); aspect-ratio: 1 / 1.05; margin-top: 30px; }
  .phone { height: 80%; }
  .tour .phone { left: 30%; --rot: -5deg; }
  .scene .p2 { display: block; left: 70%; top: 44%; --rot: 4deg; box-shadow: 0 0 0 5px rgba(255, 247, 230, .08), 12px 12px 0 var(--teal); }
  .tour .phone img { opacity: 0; }
  .tour .phone:not(.p2) .s-a, .tour .p2 .s-d { opacity: 1; }
  .tour .grp > img { opacity: 1; transform: none; filter: none; }
  .tour .g1, .tour .g2 { display: none; }
  .contact .cols { grid-template-columns: 1fr; }
  .tenet, .tenet:nth-child(2), .tenet:nth-child(3) { grid-template-columns: 1fr; padding-left: 0; }
  .coin3d { opacity: .5; }
}
@media (max-width: 560px) {
  .nav a:not(.btn) { display: none; }
  .shop { grid-template-columns: 1fr; }
  .brand b { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero h1 .ln > span, .hero h1 .ln > .reel { transform: none; }
  .fade, .reveal { opacity: 1; transform: none; }
  .scrub .w { opacity: 1; }
  #boot { display: none; }
}

/* ---------- home: latest game, games page, game page ---------- */
.latest { background: linear-gradient(160deg, #1a0f35, var(--space-2) 55%, #0e0a1d); clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); }
.latest .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 90px); align-items: center; }
.latest h2 { margin: 18px 0 22px; font-size: clamp(2.4rem, 5.2vw, 5rem); }
.latest .wrap > div:first-child { min-width: 0; }
.latest h2 .k, .gcard h2 .k { color: var(--gold); }
.latest p.lead { max-width: 30em; color: var(--mute); font-size: clamp(1.05rem, .8vw + .9rem, 1.3rem); margin: 0; }
.cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.feat-scene[data-step="0"] .phone .s-a, .feat-scene[data-step="1"] .phone .s-b, .feat-scene[data-step="2"] .phone .s-c, .feat-scene[data-step="3"] .phone .s-d { opacity: 1; }
.feat-scene[data-step="0"] .g0 > img, .feat-scene[data-step="1"] .g1 > img, .feat-scene[data-step="2"] .g2 > img, .feat-scene[data-step="3"] .g3 > img { opacity: 1; transform: none; filter: none; }
.feat-scene .phone { --rot: -3deg; }
.back { display: inline-block; margin-bottom: 26px; font: 700 .72rem var(--title); letter-spacing: .24em; text-transform: uppercase; color: var(--mute); text-decoration: none; }
.back:hover { color: var(--gold); }
.gpage { padding: clamp(130px, 17vh, 190px) 0 clamp(60px, 8vw, 120px); position: relative; z-index: 2; }
.gpage h1 { margin: 18px 0 18px; font-size: clamp(3rem, 9vw, 7rem); }
.gpage .sub { max-width: 34em; color: var(--mute); font-size: clamp(1.05rem, .8vw + .9rem, 1.3rem); margin: 0 0 clamp(36px, 5vw, 70px); }
.gcards { display: grid; gap: clamp(20px, 3vw, 36px); }
.gcard { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 60px); align-items: center; padding: clamp(24px, 3.4vw, 52px); color: inherit; text-decoration: none; background: linear-gradient(160deg, rgba(106, 0, 255, .26), rgba(20, 14, 36, .92) 60%); box-shadow: inset 0 0 0 2px var(--line); clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 40px 100%, 0 calc(100% - 40px)); transition: box-shadow .3s, transform .4s var(--ease); }
.gcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--purple), var(--gold), var(--teal)); }
a.gcard:hover { box-shadow: inset 0 0 0 2px var(--gold); transform: translateY(-4px); }
.gcard h2 { margin: 18px 0 16px; font-size: clamp(2.2rem, 4.6vw, 4.2rem); }
.gcard > * { min-width: 0; }
.gcard p { color: var(--mute); max-width: 28em; margin: 0 0 26px; }
.gart { position: relative; aspect-ratio: 1.15; }
.gart img { position: absolute; height: auto; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .5)); }
.gart .c { width: 54%; left: -2%; top: 6%; animation: floaty 6s ease-in-out infinite; }
.gart .d { width: 44%; right: 0; bottom: 0; animation: floaty 7s ease-in-out -2s infinite; }
.gart .s1 { width: 15%; right: 6%; top: 4%; animation: floaty 5s ease-in-out -1s infinite; }
.gart .s2 { width: 13%; left: 4%; bottom: 6%; animation: floaty 5.5s ease-in-out -3s infinite; }
.gcard.soon { grid-template-columns: auto minmax(0, 1fr); box-shadow: inset 0 0 0 2px var(--line); background: rgba(255, 247, 230, .03); }
.gcard.soon .q { font: 800 clamp(5rem, 12vw, 9rem)/.8 var(--title); font-style: italic; color: transparent; -webkit-text-stroke: 3px var(--purple-l); position: relative; }
.gcard.soon h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
.gcard.soon p { margin-bottom: 0; }
@media (max-width: 960px) {
  .latest .grid, .gcard { grid-template-columns: 1fr; }
  .feat-scene { width: min(100%, 440px); margin-inline: auto; }
  .feat-scene .phone { height: 84%; }
  .gcard.soon { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .gart img { animation: none; } }

.gtag { display: block; font: 700 clamp(.85rem, 1.5vw, 1.25rem) var(--title); letter-spacing: .42em; text-transform: uppercase; color: var(--teal); margin: 10px 0 4px; }
