:root {
  --deep: #050816; --ink: #eef8ff; --dim: rgba(238, 248, 255, .7);
  --lime: #b6ff5c; --pink: #ff7ab6; --glass: rgba(10, 16, 36, .55);
  --bh: 9vh; --title: 'Titan One', system-ui, sans-serif; --mono: 'Space Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--deep); color: var(--ink); font-family: var(--mono); overflow: hidden; -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; outline: none; touch-action: none; }
body.grab #gl { cursor: pointer; }
body.drag #gl { cursor: grab; }
body.dragging #gl { cursor: grabbing; }

/* cinema bars */
.bars i { position: fixed; left: 0; right: 0; height: var(--bh); background: #000; z-index: 4; pointer-events: none; transition: height 1.1s cubic-bezier(.7, 0, .2, 1); }
.bars i:first-child { top: 0; } .bars i:last-child { bottom: 0; }

/* chrome */
.top, .bottom { position: fixed; left: 0; right: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; height: max(var(--bh), 48px); transition: opacity .8s; }
.top { top: 0; } .bottom { bottom: 0; }
body.cine .top, body.cine .bottom, body.cine .dots, body.pre .dots, body.pre .bottom .flies { opacity: 0; pointer-events: none; }
.brand { display: flex; align-items: baseline; gap: 14px; }
.logo { font-family: var(--title); font-size: 22px; text-decoration: none; color: var(--lime); text-shadow: 0 0 18px rgba(182, 255, 92, .35); }
#loc { font-size: 10px; letter-spacing: .22em; opacity: .55; text-transform: uppercase; transition: opacity .6s; }
#loc.swap { opacity: 0; }
.top nav { display: flex; align-items: center; gap: 18px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.top nav a { text-decoration: none; opacity: .8; } .top nav a:hover { opacity: 1; color: var(--lime); }
.top nav a.off { opacity: .35; }
.chip { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: 6px 14px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: background .2s, border-color .2s, transform .15s; backdrop-filter: blur(6px); }
.chip:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); }
.chip:active { transform: scale(.96); }
.chip.buy { background: var(--lime); color: #0b1a05; border-color: var(--lime); font-weight: 700; opacity: 1 !important; }
.chip.buy:hover { background: #d4ff9a; color: #0b1a05 !important; }
.chip.on { background: var(--lime); color: #0b1a05; border-color: var(--lime); font-weight: 700; }
.ca { text-transform: none; letter-spacing: .02em; } .ca span { color: var(--lime); }
.hint { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .75; }
.hint i { width: 1px; height: 22px; background: linear-gradient(var(--ink), transparent); animation: drip 1.8s infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.flies { font-size: 12px; letter-spacing: .06em; opacity: .85; transition: opacity .6s; }
.flies b { color: var(--lime); font-size: 14px; display: inline-block; }
.flies.pop b { animation: pop .5s; }
@keyframes pop { 40% { transform: scale(1.8); } }
.dots { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 6; display: flex; flex-direction: column; gap: 14px; transition: opacity .8s; }
.dots button { display: flex; align-items: center; justify-content: flex-end; gap: 10px; background: none; border: 0; padding: 2px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.dots span { opacity: 0; transform: translateX(6px); transition: .3s; white-space: nowrap; }
.dots i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); transition: .3s; }
.dots button:hover span, .dots button.on span { opacity: .9; transform: none; }
.dots button.on i { background: var(--lime); border-color: var(--lime); box-shadow: 0 0 12px var(--lime); transform: scale(1.25); }
#toast { position: fixed; left: 50%; bottom: calc(max(var(--bh), 48px) + 18px); transform: translate(-50%, 20px); background: var(--lime); color: #0b1a05; padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; z-index: 30; transition: .35s; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* layers (one per station) */
.layer { position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .7s, visibility 0s .7s; padding: calc(max(var(--bh), 48px) + 28px) 7vw calc(max(var(--bh), 48px) + 28px); display: flex; }
.ui, .ui * { pointer-events: auto; }
body.pre #lPre, body.st0 #l0, body.st1 #l1, body.st2 #l2, body.st3 #l3, body.st4 #l4 { opacity: 1; visibility: visible; transition: opacity .9s .25s, visibility 0s; }
body.moving .layer { opacity: 0 !important; transition: opacity .35s !important; }
.kicker { display: inline-block; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--lime); margin-bottom: 12px; }
h2 { font-family: var(--title); font-weight: 400; font-size: clamp(42px, 6vw, 100px); line-height: .95; margin: 0 0 14px; text-shadow: 0 6px 40px rgba(0, 0, 0, .55); }
.st { align-self: flex-end; max-width: 520px; }
.st p { font-size: 14px; line-height: 1.7; color: var(--dim); margin: 0 0 18px; text-shadow: 0 2px 16px rgba(0, 0, 0, .8); }

/* giant title */
#lPre, #l0 { flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; }
#lPre { justify-content: flex-start; }
#lPre .enter { margin-top: auto; }
.giant { font-family: var(--title); font-weight: 400; margin: 0; line-height: .82; font-size: clamp(88px, 19vw, 320px);
  background: linear-gradient(180deg, #f6ffe9 10%, #b6ff5c 55%, #4fae3c 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 50px rgba(120, 255, 90, .25)) drop-shadow(0 4px 0 rgba(0, 0, 0, .25)); }
.tag { font-size: 14px; letter-spacing: .38em; text-transform: uppercase; margin: 16px 0 0; opacity: .85; }
.enter { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 26px; }
#lPre .giant { font-size: clamp(80px, 15vw, 250px); }

/* cinematic */
#subs { position: fixed; left: 50%; bottom: calc(var(--bh) + 26px); transform: translateX(-50%); z-index: 7; width: min(860px, 90vw); text-align: center; font-size: clamp(15px, 1.8vw, 22px); letter-spacing: .04em; color: #fff; text-shadow: 0 2px 12px #000, 0 0 2px #000; pointer-events: none; min-height: 1.4em; }
#subs i { font-style: normal; opacity: 0; transition: opacity .25s; }
#subs i.v { opacity: 1; }
#skip { position: fixed; right: 22px; bottom: calc(var(--bh) + 18px); z-index: 8; display: none; }
body.cine #skip { display: block; }
#titleSlam { position: fixed; inset: 0; z-index: 7; display: flex; align-items: center; justify-content: center; pointer-events: none; font-family: var(--title); font-size: clamp(90px, 22vw, 360px); color: #fff; opacity: 0; transform: scale(1.6); letter-spacing: .02em; text-shadow: 0 0 60px rgba(182, 255, 92, .8); }
#titleSlam.go { animation: slam 2.2s cubic-bezier(.2, .9, .2, 1) forwards; }
@keyframes slam { 0% { opacity: 0; transform: scale(1.8); filter: blur(12px); } 18% { opacity: 1; transform: scale(1); filter: blur(0); } 70% { opacity: 1; transform: scale(.96); } 100% { opacity: 0; transform: scale(.9); } }

/* station 1 */
.poses { display: flex; gap: 6px; flex-wrap: wrap; }
/* station 2 */
.mrow { display: flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: .1em; }
.mbar { position: absolute; left: 7vw; right: 7vw; bottom: calc(max(var(--bh), 48px) + 12px); height: 2px; background: rgba(255, 255, 255, .12); }
.mbar i { display: block; height: 100%; width: 0; background: var(--lime); box-shadow: 0 0 10px var(--lime); }

/* station 3 · lab */
#l3 { align-items: center; }
.lab { width: min(700px, 100%); background: var(--glass); border: 1px solid rgba(255, 255, 255, .12); border-radius: 26px; padding: 24px; backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.lab h2 { font-size: clamp(32px, 3.6vw, 52px); margin-bottom: 12px; }
.lab-body { display: grid; grid-template-columns: 270px 1fr; gap: 20px; }
.lab-preview canvas { width: 100%; aspect-ratio: 1; border-radius: 18px; display: block; background: #0b1230; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
.lab-ctrl { display: flex; flex-direction: column; gap: 12px; }
.row b { display: block; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; opacity: .6; margin-bottom: 6px; font-weight: 400; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; padding: 6px 10px; font-size: 12px; text-transform: capitalize; transition: .15s; }
.opt:hover { border-color: rgba(255, 255, 255, .4); }
.opt.on { background: var(--lime); color: #0b1a05; border-color: var(--lime); font-weight: 700; }
.opt.sw { width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); }
.opt.sw.on { border-color: #fff; box-shadow: 0 0 0 3px var(--lime); }
.lab-actions { display: flex; gap: 10px; margin-top: 18px; justify-content: flex-end; }

/* station 4 · cta */
#l4 { justify-content: center; align-items: stretch; text-align: center; }
.cta { display: flex; flex-direction: column; align-items: center; width: 100%; }
.cta-title { font-size: clamp(50px, 7.5vw, 120px); margin-bottom: 0; }
.cta .ca-big { margin-top: auto; }
.ca-big { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0 auto 18px; background: rgba(5, 10, 26, .6); border: 1px dashed rgba(182, 255, 92, .6); border-radius: 18px; padding: 14px 26px; backdrop-filter: blur(10px); max-width: 100%; transition: .2s; }
.ca-big:hover { border-style: solid; background: rgba(20, 40, 20, .6); }
.ca-big small { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; opacity: .6; }
.ca-big span { font-size: clamp(13px, 1.9vw, 20px); color: var(--lime); word-break: break-all; }
.ca-big em { font-style: normal; font-size: 11px; opacity: .5; }
.join-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.fine { font-size: 11px; line-height: 1.6; opacity: .45; max-width: 520px; margin: 18px auto 0; }

.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--lime); color: #0b1a05; border: 0; border-radius: 14px; padding: 13px 22px; font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; transition: transform .15s, background .2s, box-shadow .2s; box-shadow: 0 8px 30px rgba(182, 255, 92, .25); }
.btn:hover { background: #d4ff9a; transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: rgba(255, 255, 255, .08); color: var(--ink); border: 1px solid rgba(255, 255, 255, .2); box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, .16); }
.btn.off { opacity: .6; filter: saturate(.4); cursor: default; }
.btn.big { font-size: 18px; padding: 16px 38px; }
.btn.small { padding: 8px 14px; font-size: 12px; }
.link { background: none; border: 0; font-size: 12px; opacity: .55; text-decoration: underline; letter-spacing: .1em; }
.link:hover { opacity: .9; }

/* loader */
#loader { position: fixed; inset: 0; z-index: 50; background: radial-gradient(ellipse at 50% 60%, #0d1838, #03050d 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; transition: opacity 1.2s, visibility 1.2s; }
#loader.gone { opacity: 0; visibility: hidden; }
.ld-title { font-family: var(--title); font-size: clamp(64px, 14vw, 180px); color: transparent; -webkit-text-stroke: 2px rgba(182, 255, 92, .8); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.03); -webkit-text-stroke-color: var(--lime); } }
.ld-bar { width: min(320px, 70vw); height: 3px; background: rgba(255, 255, 255, .12); border-radius: 3px; overflow: hidden; }
.ld-bar i { display: block; height: 100%; width: 0; background: var(--lime); box-shadow: 0 0 12px var(--lime); transition: width .3s; }
.ld-msg { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .6; min-height: 1em; }

/* lightbox */
#lightbox { position: fixed; inset: 0; z-index: 40; background: rgba(2, 4, 12, .82); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; padding: 16px; }
#lightbox[hidden] { display: none; }
.lb-card { width: min(520px, 100%, 78vh); background: #0b1230; border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; overflow: hidden; box-shadow: 0 40px 120px rgba(0, 0, 0, .6); animation: rise .35s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes rise { from { transform: translateY(30px) scale(.95); opacity: 0; } }
.lb-card img { display: block; width: 100%; aspect-ratio: 1; }
.lb-bar { display: flex; align-items: center; gap: 8px; padding: 12px; font-size: 13px; }
.lb-bar .sp { flex: 1; }

@media (max-width: 820px) {
  .top { padding: 0 14px; height: 56px; background: linear-gradient(rgba(3, 5, 13, .8), transparent); }
  .top nav { gap: 10px; } .top nav a:not(.buy) { display: none; }
  #loc { display: none; }
  .bottom { height: auto; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(3, 5, 13, .85)); }
  .hint, .flies span, .dots { display: none; }
  .layer { padding: 74px 16px 84px; }
  .tag { letter-spacing: .2em; font-size: 12px; }
  .st p { font-size: 13px; }
  #l3 { align-items: flex-start; overflow-y: auto; pointer-events: auto; }
  .lab { padding: 16px; border-radius: 20px; }
  .lab-body { grid-template-columns: 110px 1fr; gap: 12px; }
  .lab-actions .btn { flex: 1; justify-content: center; }
  .opt { padding: 5px 8px; font-size: 11px; } .opt.sw { width: 24px; height: 24px; }
  #skip { right: 14px; }
  .lb-bar { flex-wrap: wrap; }
}
#l2 .st { align-self: flex-start; }
.mnav { display: none; gap: 6px; }
@media (max-width: 820px) { body.main .mnav { display: flex; } }
#l2 h2 { font-size: clamp(30px, 3.4vw, 54px); margin-bottom: 8px; }
#l2 .st { max-width: 380px; }
#l2 .st p { font-size: 12px; margin-bottom: 12px; }
