/* Perpball v2 "WHITE DESK": the brand's own white (the pfp on white), ink type, one green, and each venue's look kept inside
 * small screens. Host Grotesk + IBM Plex Mono. */
:root {
  --bg: #ffffff; --bg2: #f6f7f9; --bg3: #eef0f3;
  --line: #e8eaee; --line2: #dcdfe5; --line3: #c9ced6;
  --ink: #0b0c0e; --ink2: #22252a; --dim: #5d6470; --faint: #8b929d; --ghost: #b8bec7;
  --long: #10c66d; --longT: #0a9b54; --longBg: #e8f9f0; --short: #ef3b4f; --shortT: #d42739; --shortBg: #fdecee;
  --line-g: #19d27a;
  --sans: 'Host Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --top: 68px;
  --sh1: 0 1px 2px rgba(16, 24, 40, .05);
  --sh2: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -14px rgba(16, 24, 40, .16);
  --sh3: 0 2px 4px rgba(16, 24, 40, .04), 0 30px 70px -28px rgba(16, 24, 40, .28);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: light; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 10px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.mono, .num { font-family: var(--mono); font-feature-settings: 'tnum' 1, 'zero' 1; }
.g { color: var(--longT); }
.r { color: var(--shortT); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; font: 600 15px/1 var(--sans); letter-spacing: -.01em; white-space: nowrap; transition: transform .15s ease, background .15s ease, box-shadow .2s ease, color .15s; }
.btn:active { transform: scale(.98); }
.btn.go { background: var(--ink); color: #fff; }
.btn.go:hover { background: #24272d; }
.btn.green { background: var(--long); color: #fff; }
.btn.green:hover { background: #0eb663; }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--line3); background: var(--bg2); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn.xl { height: 54px; width: 100%; font-size: 16px; border-radius: 16px; }
.btn[disabled] { opacity: .4; pointer-events: none; }

/* ---------------------------------------------------------------- top bar */
.top { position: fixed; inset: 0 0 auto 0; height: var(--top); z-index: 50; display: flex; align-items: center; gap: 30px; padding: 0 28px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 800 22px/1 var(--sans); letter-spacing: -.04em; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 8px 13px; border-radius: 999px; color: var(--dim); font-weight: 500; font-size: 15px; transition: color .15s, background .15s; }
.nav a:hover, .nav a.on { color: var(--ink); background: var(--bg2); }
.top-r { margin-left: auto; display: flex; gap: 8px; align-items: center; }
#walletBtn.on { font-family: var(--mono); font-size: 13px; }

/* ---------------------------------------------------------------- HERO: the ball rolls on the live line */
.hero { position: relative; padding-top: var(--top); display: flex; flex-direction: column; overflow: hidden; }
.hero-copy { position: relative; z-index: 2; padding: clamp(34px, 6vh, 80px) clamp(20px, 5vw, 72px) 0; max-width: 1320px; }
.kick { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; font: 500 13px/1 var(--mono); color: var(--dim); letter-spacing: .01em; }
.kick .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--long); box-shadow: 0 0 0 4px rgba(16, 198, 109, .16); animation: beat 1.8s ease-in-out infinite; }
@keyframes beat { 50% { box-shadow: 0 0 0 7px rgba(16, 198, 109, .05); } }
h1 { margin: 0; font: 800 clamp(46px, 6.3vw, 112px)/.93 var(--sans); letter-spacing: -.055em; }
.hero-card { position: absolute; z-index: 3; right: clamp(20px, 4vw, 64px); top: calc(var(--top) + clamp(30px, 6vh, 70px)); width: 380px; padding: 18px; border-radius: 24px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); box-shadow: var(--sh3), inset 0 0 0 1px var(--line); }
.hc-head { display: flex; justify-content: space-between; align-items: baseline; margin: 2px 4px 12px; }
.hc-head b { font: 750 17px/1 var(--sans); letter-spacing: -.02em; }
.hc-head span { font: 500 11px/1 var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.hero-card .btn { margin-top: 12px; height: 50px; }
@media (max-width: 1379px) { .hero-card { display: none; } }
@media (min-width: 1380px) { h1 { font-size: clamp(46px, 5.5vw, 104px); } .hero-copy { max-width: calc(100% - 470px); } }
h1 span { display: block; }
h1 .l2 { color: var(--long); }
.sub { margin: 26px 0 0; max-width: 610px; color: var(--dim); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; }
.cta { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.vrow { display: flex; align-items: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.vrow span { font: 500 12.5px/1 var(--mono); color: var(--faint); }
.vrow .tiles { display: flex; gap: 6px; }
.vrow img { width: 30px; height: 30px; border-radius: 9px; box-shadow: var(--sh1); transition: transform .2s; }
.vrow img:hover { transform: translateY(-2px); }
.hero-stage { position: relative; height: clamp(250px, 34vh, 380px); margin-top: 4px; z-index: 1; pointer-events: none; }
#heroLine { width: 100%; height: 100%; display: block; }

/* ---------------------------------------------------------------- TERMINAL (a white trading desk card) */
.term-wrap { padding: 40px clamp(14px, 3vw, 40px) 0; max-width: 1560px; margin: 0 auto; }
.term-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 6px 22px; }
.term-head h2 { margin: 0; font: 800 clamp(32px, 3.6vw, 56px)/.98 var(--sans); letter-spacing: -.045em; }
.term-head p { margin: 0; color: var(--dim); max-width: 420px; }
.term { border-radius: 26px; background: #fff; box-shadow: var(--sh3), inset 0 0 0 1px var(--line); overflow: hidden; display: flex; flex-direction: column; height: min(820px, 88svh); min-height: 660px; }
.strip { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); min-height: 60px; }
.mk-tabs { display: flex; align-items: center; gap: 2px; padding: 0 10px; border-right: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.mk-tabs::-webkit-scrollbar { display: none; }
.mk { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 8px; border-radius: 12px; color: var(--dim); font: 600 14px/1 var(--sans); white-space: nowrap; transition: background .15s, color .15s; }
.mk img { width: 22px; height: 22px; border-radius: 50%; }
.mk .mpx { font: 500 12.5px/1 var(--mono); color: var(--faint); }
.mk:hover { background: var(--bg2); color: var(--ink); }
.mk.on { background: var(--bg3); color: var(--ink); }
.mk.on .mpx { color: var(--ink2); }
.mk-stats { display: flex; align-items: center; flex: 1; overflow: hidden; }
.st { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 16px; height: 100%; border-right: 1px solid var(--line); white-space: nowrap; }
.st span { font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.st b { font: 500 14px/1 var(--mono); color: var(--ink); display: flex; align-items: center; gap: 6px; }
.st b img { width: 16px; height: 16px; border-radius: 5px; }
.term-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 96px minmax(0, 1fr) 410px; }
.rail { border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 8px 0; overflow-y: auto; scrollbar-width: none; background: #fcfcfd; }
.rail::-webkit-scrollbar { display: none; }
.vn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 9px 4px; transition: background .15s; }
.vn img { width: 38px; height: 38px; border-radius: 11px; box-shadow: var(--sh1); transition: transform .2s; }
.vn .vname { font: 600 10.5px/1 var(--sans); color: var(--dim); }
.vn .vpx { font: 500 10px/1 var(--mono); color: var(--faint); }
.vn:hover { background: var(--bg2); }
.vn.on { background: var(--bg3); }
.vn.on::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ink); }
.vn.on .vname, .vn.on .vpx { color: var(--ink); }
.vn.off { opacity: .38; }
.stage { position: relative; min-width: 0; overflow: hidden; }
#chart { position: absolute; inset: 0; width: 100%; height: 100%; }
.ladder { display: none; }

/* ticket */
.ticket { border-left: 1px solid var(--line); display: flex; flex-direction: column; padding: 20px; min-height: 0; background: #fcfcfd; }
.tk-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.tk-head h2 { margin: 0; font: 750 19px/1 var(--sans); letter-spacing: -.025em; }
.tk-count { font: 500 12px/1 var(--mono); color: var(--faint); }
.legs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 0; flex: 0 1 auto; scrollbar-width: thin; }
.leg { position: relative; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 11px 12px 11px 14px; border-radius: 16px; background: #fff; box-shadow: var(--sh1), inset 0 0 0 1px var(--line); overflow: hidden; animation: legIn .45s cubic-bezier(.2, .9, .2, 1.1) both; }
.leg::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--vc, var(--ink)); }
@keyframes legIn { from { opacity: 0; transform: translateY(8px); } }
.leg .vl { width: 38px; height: 38px; border-radius: 11px; }
.leg .lt { display: flex; align-items: center; gap: 8px; font: 700 16px/1 var(--sans); letter-spacing: -.015em; }
.leg .lt .cico { width: 18px; height: 18px; border-radius: 50%; }
.leg .lv { margin-top: 6px; font: 500 11.5px/1 var(--mono); color: var(--faint); }
.leg .lr { text-align: right; }
.leg .lpx { font: 500 13.5px/1 var(--mono); color: var(--ink2); }
.leg .lrm { margin-top: 7px; font: 500 11px/1 var(--mono); color: var(--faint); transition: color .15s; }
.leg .lrm:hover { color: var(--shortT); }
.side { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font: 600 10.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.side.long { background: var(--longBg); color: var(--longT); }
.side.short { background: var(--shortBg); color: var(--shortT); }
.lev { font: 600 12px/1 var(--mono); color: var(--ink2); }
.sk-hyperliquid { --vc: #50d2c1; } .sk-lighter { --vc: #0b0c0e; } .sk-aster { --vc: #e7b77f; } .sk-edgex { --vc: #23fd73; }
.sk-paradex { --vc: #08d1e3; } .sk-dydx { --vc: #6966ff; } .sk-gmx { --vc: #2a8cff; } .sk-jupiter { --vc: #9be15d; }
.add { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 16px; background: #fff; color: var(--ink2); font-weight: 600; font-size: 14.5px; box-shadow: inset 0 0 0 1px var(--line2); transition: background .15s, box-shadow .15s; }
.add span { font: 500 20px/1 var(--mono); color: var(--long); }
.add:hover { background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line3); }
.tk-sum { margin: auto 0 12px; padding-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tk-sum div { display: flex; flex-direction: column; gap: 5px; padding: 11px 12px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.tk-sum span { font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.tk-sum b { font: 600 15px/1.1 var(--mono); }
.tk-sum .vstack { display: flex; margin-top: 1px; }
.tk-sum .vstack img { width: 20px; height: 20px; border-radius: 6px; margin-right: -5px; box-shadow: 0 0 0 2px #fff; }
.tk-note { margin: 10px 2px 0; font-size: 12.5px; color: var(--faint); text-align: center; }

/* ---------------------------------------------------------------- sections */
.sec { padding: 140px clamp(20px, 5vw, 72px) 20px; max-width: 1560px; margin: 0 auto; }
.sec-head { max-width: 900px; margin-bottom: 46px; }
.sec-head.row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.sec .kick { margin-bottom: 18px; }
.sec h2 { margin: 0; font: 800 clamp(38px, 5vw, 84px)/.95 var(--sans); letter-spacing: -.05em; }
.lede { margin: 20px 0 0; max-width: 640px; color: var(--dim); font-size: 18px; }

/* venue wall: a white card per venue, the venue's own look kept inside its screen */
.vwall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.vc { display: flex; flex-direction: column; border-radius: 24px; background: #fff; box-shadow: var(--sh2), inset 0 0 0 1px var(--line); overflow: hidden; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.vc:hover { transform: translateY(-4px); box-shadow: var(--sh3), inset 0 0 0 1px var(--line); }
.vc-screen { position: relative; margin: 8px 8px 0; padding: 18px 18px 20px; border-radius: 18px; background: var(--vbg); color: var(--vink); overflow: hidden; isolation: isolate; min-height: 170px; display: flex; flex-direction: column; }
.vc-screen::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--vtex, none); }
.vc-top { display: flex; align-items: center; gap: 11px; }
.vc-top img { width: 40px; height: 40px; border-radius: 12px; }
.vc-top h3 { margin: 0; font: 750 18px/1.1 var(--sans); letter-spacing: -.02em; }
.vc-top small { display: block; margin-top: 3px; font: 500 11px/1 var(--mono); opacity: .62; }
.vc-big { margin-top: auto; padding-top: 22px; }
.vc-big span { font: 500 10.5px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; opacity: .62; }
.vc-big b { display: block; margin-top: 7px; font: 500 30px/1 var(--mono); letter-spacing: -.03em; color: var(--vfg); }
.vc-rows { padding: 10px 18px 0; display: grid; }
.vc-rows div { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); font: 500 13px/1 var(--mono); }
.vc-rows div:first-child { border-top: 0; }
.vc-rows span { color: var(--faint); }
.vc .vadd { margin: 12px 14px 14px; height: 44px; border-radius: 999px; font: 600 14px/1 var(--sans); background: var(--bg2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: background .15s, color .15s; }
.vc .vadd:hover { background: var(--ink); color: #fff; }
.vc.dead .vc-big b { opacity: .5; }
.sk-hyperliquid { --vbg: #03241f; --vink: #e9fff9; --vfg: #96fce4; --vtex: radial-gradient(circle at 1.5px 1.5px, rgba(150, 252, 228, .14) 1.2px, transparent 1.6px) 0 0/9px 9px; }
.sk-lighter { --vbg: #070707; --vink: #f4f4f4; --vfg: #ffffff; --vtex: linear-gradient(100deg, transparent 62%, rgba(255, 255, 255, .08) 62.4%, rgba(255, 255, 255, .02) 70%, transparent 70.4%), radial-gradient(80% 60% at 85% 10%, rgba(255, 255, 255, .1), transparent 65%); }
.sk-aster { --vbg: #161412; --vink: #fff3e4; --vfg: #f7d4aa; --vtex: radial-gradient(60% 55% at 90% 6%, rgba(247, 212, 170, .22), transparent 70%); }
.sk-edgex { --vbg: #23fd73; --vink: #04120a; --vfg: #04120a; --vtex: linear-gradient(135deg, transparent 58%, rgba(0, 0, 0, .09) 58.2%, rgba(0, 0, 0, .09) 74%, transparent 74.2%); }
.sk-paradex { --vbg: #08d1e3; --vink: #031416; --vfg: #031416; --vtex: repeating-linear-gradient(90deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 22px); }
.sk-dydx { --vbg: #08080d; --vink: #f4f4ff; --vfg: #aeacff; --vtex: linear-gradient(118deg, transparent 62%, rgba(105, 102, 255, .26) 62.3%, rgba(105, 102, 255, .05) 76%, transparent 76.3%); }
.sk-gmx { --vbg: #05070f; --vink: #eef4ff; --vfg: #7db4ff; --vtex: conic-gradient(from 200deg at 92% 6%, rgba(58, 61, 245, 0), rgba(58, 61, 245, .38), rgba(42, 140, 255, .3), rgba(58, 61, 245, 0) 40%); }
.sk-jupiter { --vbg: #101626; --vink: #effff6; --vfg: #c7f284; --vtex: repeating-linear-gradient(150deg, rgba(199, 242, 132, .07) 0 7px, transparent 7px 18px), radial-gradient(70% 60% at 100% 0%, rgba(0, 190, 240, .24), transparent 70%); }

/* ---------------------------------------------------------------- how it rolls */
.track { position: relative; height: 190px; margin: 0 0 18px; }
.track-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.track-line path { fill: none; stroke: var(--line-g); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.rollball { position: absolute; left: 0; top: 0; width: 116px; height: 116px; margin: -112px 0 0 -58px; background: url(/assets/brand/rollw.webp) 0 0/900% 800% no-repeat; will-change: transform, background-position; }
.rollball::after { content: ''; position: absolute; left: 18%; right: 18%; bottom: -3px; height: 12px; border-radius: 50%; background: radial-gradient(closest-side, rgba(16, 24, 40, .22), transparent); z-index: -1; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { display: flex; flex-direction: column; padding: 24px; border-radius: 24px; background: var(--bg2); min-height: 380px; }
.step .n { font: 500 12.5px/1 var(--mono); color: var(--longT); }
.step h3 { margin: 16px 0 8px; font: 750 24px/1.08 var(--sans); letter-spacing: -.03em; }
.step p { margin: 0; color: var(--dim); font-size: 15px; }
.vig { margin-top: auto; padding-top: 22px; }
.vig-stack .legs { gap: 6px; }
.vig-stack .leg { padding: 8px 10px 8px 12px; grid-template-columns: 28px 1fr auto; gap: 10px; border-radius: 12px; animation: none; }
.vig-stack .leg .vl { width: 28px; height: 28px; border-radius: 8px; }
.vig-stack .leg .lt { font-size: 13.5px; }
.vig-pump { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: #fff; box-shadow: var(--sh1), inset 0 0 0 1px var(--line); }
.vig-pump img { width: 42px; height: 42px; border-radius: 12px; }
.vig-pump b { display: block; font-weight: 700; }
.vig-pump span { font: 500 12px/1 var(--mono); color: var(--faint); }
.pill { margin-left: auto; padding: 5px 9px; border-radius: 999px; font: 600 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; font-style: normal; }
.pill.live { background: var(--longBg); color: var(--longT); }
.vig-fees { position: relative; height: 124px; }
.vig-fees .fee-src { position: absolute; left: 0; top: 50%; transform: translateY(-50%); padding: 9px 12px; border-radius: 12px; background: #fff; font: 600 12px/1 var(--mono); box-shadow: var(--sh1), inset 0 0 0 1px var(--line); }
.vig-fees svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vig-fees svg path { fill: none; stroke: var(--line3); stroke-width: 1.5; }
.vig-fees svg circle { fill: var(--long); }
.vig-fees .fee-dst { position: absolute; right: 0; display: flex; flex-direction: column; top: 0; bottom: 0; justify-content: space-between; }
.vig-fees .fee-dst img { width: 26px; height: 26px; border-radius: 8px; }
.vig-win { display: flex; flex-direction: column; gap: 10px; }
.pnl { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: var(--sh1), inset 0 0 0 1px var(--line); }
.pnl span { font: 500 12px/1 var(--mono); color: var(--dim); }
.pnl b { grid-row: span 2; font: 600 28px/1 var(--mono); color: var(--longT); letter-spacing: -.03em; }
.pnl em { font: 500 11px/1 var(--mono); font-style: normal; color: var(--faint); margin-top: 6px; }
.drops { display: flex; flex-wrap: wrap; gap: 5px; }
.drops i { font: 500 10.5px/1 var(--mono); font-style: normal; padding: 6px 8px; border-radius: 8px; background: #fff; color: var(--dim); box-shadow: inset 0 0 0 1px var(--line); }
.drops i.new { color: var(--longT); background: var(--longBg); box-shadow: none; }

/* ---------------------------------------------------------------- coins */
.cgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cc { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 22px; background: #fff; box-shadow: var(--sh2), inset 0 0 0 1px var(--line); min-height: 220px; transition: transform .25s; }
.cc:hover { transform: translateY(-3px); }
.cc-top { display: flex; align-items: center; gap: 12px; }
.cc-top img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; background: var(--bg2); }
.cc-top b { display: block; font: 700 17px/1.1 var(--sans); }
.cc-top span { font: 500 12px/1 var(--mono); color: var(--faint); }
.cc-legs { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-legs i { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px 4px 4px; border-radius: 8px; background: var(--bg2); font: 500 11px/1 var(--mono); font-style: normal; color: var(--dim); }
.cc-legs i img { width: 16px; height: 16px; border-radius: 5px; }
.cc.slot { align-items: center; justify-content: center; text-align: center; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); }
.cc.slot b { color: var(--ink2); font-weight: 650; }
.cc.slot small { font: 500 12px/1.4 var(--mono); color: var(--faint); }

/* ---------------------------------------------------------------- faq */
.qa { max-width: 920px; display: grid; gap: 10px; }
.qa details { border-radius: 18px; background: var(--bg2); }
.qa summary { cursor: pointer; list-style: none; padding: 22px 24px; font: 650 18px/1.3 var(--sans); letter-spacing: -.015em; display: flex; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; font: 400 22px/1 var(--mono); color: var(--longT); transition: transform .2s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa p { margin: 0; padding: 0 24px 22px; color: var(--dim); max-width: 740px; }

/* ---------------------------------------------------------------- footer */
.foot { margin-top: 140px; padding: 0 clamp(20px, 5vw, 72px) 40px; overflow: hidden; }
.foot-mark { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); padding-top: 50px; border-top: 1px solid var(--line); }
.foot-mark img { width: clamp(70px, 10vw, 160px); height: auto; }
.foot-mark span { font: 800 clamp(64px, 15vw, 260px)/.8 var(--sans); letter-spacing: -.065em; }
.foot-row { margin-top: 36px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--dim); }
.foot-row p { margin: 0; }
.foot-links { display: flex; gap: 20px; }
.foot-links a:hover { color: var(--ink); }
.fine { margin: 26px 0 0; font: 500 12px/1.5 var(--mono); color: var(--faint); }

/* ---------------------------------------------------------------- popover + modals */
.pop, .modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(11, 12, 14, .32); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fadeIn .18s ease both; }
@keyframes fadeIn { from { opacity: 0; } }
.pop-card, .lm { position: relative; width: min(520px, 100%); max-height: calc(100svh - 40px); overflow-y: auto; padding: 24px; border-radius: 26px; background: #fff; box-shadow: 0 40px 120px -30px rgba(16, 24, 40, .45), inset 0 0 0 1px var(--line); animation: popIn .28s cubic-bezier(.2, .9, .2, 1.05) both; }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.pop-head, .lm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pop-head h3, .lm-head h3 { margin: 0; font: 750 22px/1.1 var(--sans); letter-spacing: -.03em; }
.x { width: 38px; height: 38px; border-radius: 999px; font: 400 22px/1 var(--sans); color: var(--dim); background: var(--bg2); }
.x:hover { color: var(--ink); background: var(--bg3); }
.lbl { margin: 18px 0 9px; font: 500 11px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--faint); display: flex; justify-content: space-between; }
.lbl b { color: var(--ink); font-weight: 600; }
.vpick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.vpick button { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 11px 6px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: 600 12px/1 var(--sans); color: var(--dim); transition: background .15s, box-shadow .15s, color .15s; }
.vpick button img { width: 34px; height: 34px; border-radius: 10px; }
.vpick button.on { color: var(--ink); background: var(--bg2); box-shadow: inset 0 0 0 2px var(--ink); }
.mpick { display: flex; flex-wrap: wrap; gap: 6px; }
.mpick button { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 13px 0 8px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: 600 13.5px/1 var(--sans); color: var(--dim); }
.mpick button img { width: 22px; height: 22px; border-radius: 50%; }
.mpick button.on { color: var(--ink); background: var(--bg2); box-shadow: inset 0 0 0 2px var(--ink); }
.mpick button[disabled] { opacity: .3; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 16px; background: var(--bg2); }
.seg button { height: 42px; border-radius: 12px; font: 650 14.5px/1 var(--sans); color: var(--dim); }
.seg button[data-s="long"].on { background: var(--long); color: #fff; }
.seg button[data-s="short"].on { background: var(--short); color: #fff; }
input.lev { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; margin: 0; }
input.lev::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--ink) var(--p, 10%), var(--bg3) var(--p, 10%)); }
input.lev::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--ink) var(--p, 10%), var(--bg3) var(--p, 10%)); }
input.lev::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line2), 0 4px 12px rgba(16, 24, 40, .22); }
input.lev::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line2), 0 4px 12px rgba(16, 24, 40, .22); }
.lev-ticks { display: flex; justify-content: space-between; font: 500 11px/1 var(--mono); color: var(--faint); margin: 2px 0 20px; }
.err { min-height: 18px; margin: 10px 0 0; font-size: 13px; color: var(--shortT); }
.lm { width: min(960px, 100%); padding: 26px; }
.lm.small { width: min(440px, 100%); }
.lm-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; }
.lm-form { display: flex; flex-direction: column; gap: 12px; }
.img-drop { position: relative; display: grid; place-items: center; height: 150px; border-radius: 18px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; overflow: hidden; }
.img-drop:hover { box-shadow: inset 0 0 0 1px var(--line3); }
.img-ph { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 650; color: var(--ink2); }
.img-ph small { font: 500 12px/1 var(--mono); color: var(--faint); }
.img-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fld { display: flex; flex-direction: column; gap: 7px; }
.fld span { font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.fld span i { text-transform: none; font-style: normal; color: var(--ghost); letter-spacing: 0; }
.fld input, .fld textarea { width: 100%; padding: 13px 14px; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line2); outline: none; font-size: 15px; resize: vertical; transition: box-shadow .15s; }
.fld input:focus, .fld textarea:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.up { text-transform: uppercase; }
.lm-side { display: flex; flex-direction: column; }
.mini-legs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mini-legs .leg { padding: 8px 10px 8px 12px; grid-template-columns: 30px 1fr auto; gap: 10px; border-radius: 12px; animation: none; }
.mini-legs .leg .vl { width: 30px; height: 30px; border-radius: 9px; }
.mini-legs .leg .lt { font-size: 14px; }
.link { align-self: flex-start; margin: 10px 0 0; font: 600 13px/1 var(--sans); color: var(--longT); }
.lm-sum { margin: 16px 0 12px; padding: 14px; border-radius: 16px; background: var(--bg2); font-size: 13.5px; color: var(--dim); }
.lm-sum b { color: var(--ink); font-weight: 600; }
.lm-steps { margin-top: 18px; padding: 18px; border-radius: 18px; background: var(--bg2); }
.lm-steps h4 { margin: 0 0 12px; font: 750 18px/1.1 var(--sans); }
.lm-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lm-steps li { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 14px; }
.lm-steps li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--line3); }
.lm-steps li.on { color: var(--ink); }
.lm-steps li.on::before { background: var(--long); box-shadow: 0 0 0 4px rgba(16, 198, 109, .2); }
.lm-steps li.ok { color: var(--dim); }
.lm-steps li.ok::before { background: var(--long); }
.wlist { display: grid; gap: 8px; }
.wlist button { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 650; }
.wlist button img { width: 34px; height: 34px; border-radius: 10px; }
.wlist button:hover { background: var(--bg2); }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); z-index: 99; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* coin page */
.coinview { padding: calc(var(--top) + 40px) clamp(20px, 5vw, 72px) 40px; max-width: 1200px; margin: 0 auto; min-height: 80svh; }
.cv-head { display: flex; align-items: center; gap: 18px; }
.cv-head img { width: 84px; height: 84px; border-radius: 22px; object-fit: cover; }
.cv-head h1 { font-size: clamp(36px, 4.6vw, 64px); }
.cv-grid { margin-top: 30px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.cv-card { padding: 20px; border-radius: 22px; background: var(--bg2); }
.cv-card h3 { margin: 0 0 12px; font: 700 18px/1 var(--sans); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1240px) {
  .term-body { grid-template-columns: 86px minmax(0, 1fr) 360px; }
  .vwall, .steps, .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hide-s { display: none; }
}
@media (max-width: 920px) {
  :root { --top: 60px; }
  .nav { display: none; }
  .top { padding: 0 16px; }
  .hero { min-height: auto; }
  .hero-copy { padding-bottom: 0; }
  .term { height: auto; }
  .term-body { display: flex; flex-direction: column; }
  .rail { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 6px; overflow-x: auto; }
  .vn { padding: 10px 8px; min-width: 74px; }
  .vn.on::before { left: 14px; right: 14px; top: auto; bottom: 0; width: auto; height: 3px; border-radius: 3px 3px 0 0; }
  .stage { height: 420px; }
  .ticket { border-left: 0; border-top: 1px solid var(--line); }
  .term-head { flex-direction: column; align-items: flex-start; }
  .sec { padding: 100px 18px 20px; }
  .lm-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .top { gap: 10px; padding: 0 12px; }
  #walletBtn { display: none; }
  .vwall, .steps, .cgrid { grid-template-columns: 1fr; }
  .strip { flex-direction: column; }
  .mk-tabs { border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .mk-stats { min-height: 56px; overflow-x: auto; }
  h1 { font-size: clamp(44px, 13vw, 60px); }
  .cta .btn { flex: 1; }
  .f2 { grid-template-columns: 1fr; }
  .hero-stage { height: 300px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* v2.1: the film section + several positions at once (the showcase's "Add 8 to stack") */
.add-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.add-row .add { margin-top: 0; }
.add.all span { font: 600 13px/1 var(--mono); color: var(--longT); }
.lbl-btn { font: 600 11.5px/1 var(--mono); letter-spacing: .01em; text-transform: none; color: var(--longT); }
.lbl-btn:hover { color: var(--ink); }
.lbl i { font-style: normal; color: var(--ink2); text-transform: none; letter-spacing: 0; }
.film .sec-head { margin-bottom: 30px; }
.filmbox { position: relative; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: var(--sh3), inset 0 0 0 1px var(--line); }
.filmbox video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #fff; }
.film-sound { position: absolute; right: 16px; bottom: 16px; padding: 11px 16px; border-radius: 999px; background: rgba(11, 12, 14, .82); color: #fff; font: 600 13px/1 var(--sans); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (max-width: 600px) { .add-row { grid-template-columns: 1fr; } }

/* the house coin's CA row (hero) */
.ca-row { display: flex; align-items: center; gap: 8px; margin-top: 22px; flex-wrap: wrap; max-width: 760px; }
.ca { display: inline-flex; align-items: center; gap: 10px; height: 40px; max-width: 100%; min-width: 0; padding: 0 5px 0 14px; border-radius: 999px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); font: 500 13px/1 var(--mono); color: var(--ink2); }
.ca-l { font-weight: 600; color: var(--faint); }
.ca-v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca-c { flex: none; padding: 8px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: 600 12.5px/1 var(--sans); color: var(--ink); }
.ca:hover .ca-c { background: var(--ink); color: #fff; }
@media (max-width: 600px) { .ca { width: 100%; } .ca-row .btn { flex: 1; } }
