/* BuyPin — site styles. No inline styles anywhere: the page runs under a strict CSP. */

/* ── Fonts (self-hosted) ── */
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/assets/fonts/unbounded-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/assets/fonts/unbounded-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/onest-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/onest-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* ── Tokens ── */
:root {
  --ink: #0c0a22;          /* page */
  --ink-2: #141034;        /* raised surface */
  --ink-3: #1d1848;        /* controls */
  --line: rgba(160, 150, 255, .16);
  --line-strong: rgba(160, 150, 255, .32);
  --violet: #6f5fff;       /* brand, from the game marks */
  --violet-soft: #a79dff;
  --coin: #ffd23f;         /* currency + primary action */
  --coin-deep: #f5a700;
  --mint: #3df0a8;         /* delivered */
  --text: #f3f1ff;
  --muted: #aaa5cf;
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--coin); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--violet); color: #fff; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--coin); color: #1a1400; padding: 10px 16px; border-radius: 10px; font-weight: 700; transition: top .2s; }
.skip:focus { top: 12px; }

/* ── Ambient background ── */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient::before, .ambient::after { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); }
.ambient::before { width: 60vw; height: 60vw; left: -18vw; top: -26vw; background: radial-gradient(circle, rgba(111, 95, 255, .42), transparent 65%); animation: drift-a 22s ease-in-out infinite alternate; }
.ambient::after { width: 46vw; height: 46vw; right: -16vw; top: 30vh; background: radial-gradient(circle, rgba(255, 210, 63, .13), transparent 65%); animation: drift-b 28s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate3d(9vw, 7vh, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-8vw, -10vh, 0) scale(.9); } }

/* ── Scroll progress ── */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 210; background: linear-gradient(90deg, var(--violet), var(--coin)); transform-origin: 0 50%; transform: scaleX(0); }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 200; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.site-header.is-stuck { background: rgba(12, 10, 34, .78); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; transition: height .3s var(--ease); }
.is-stuck .header-inner { height: 62px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a { position: relative; padding: 8px 14px; border-radius: 10px; font-size: .95rem; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: rgba(160, 150, 255, .1); }
.header-tools { display: flex; align-items: center; gap: 12px; flex: none; }

.lang { display: flex; padding: 3px; border-radius: 12px; background: rgba(160, 150, 255, .1); border: 1px solid var(--line); }
.lang button { min-width: 38px; padding: 5px 8px; border-radius: 9px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); transition: color .2s, background .25s, box-shadow .25s; }
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--violet); color: #fff; box-shadow: 0 4px 14px rgba(111, 95, 255, .5); }

.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
.menu-btn span:nth-child(1) { top: 14px; } .menu-btn span:nth-child(2) { top: 20px; } .menu-btn span:nth-child(3) { top: 26px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Buttons ── */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 24px; border-radius: 16px; font-weight: 700; font-size: 1rem; line-height: 1.2; overflow: hidden; isolation: isolate; transition: transform .25s var(--ease), box-shadow .25s, background .2s, border-color .2s; will-change: transform; }
.btn svg { flex: none; }
.btn-primary { background: linear-gradient(180deg, #ffe07a, var(--coin) 55%, #f7b500); color: #201700; box-shadow: 0 10px 30px -8px rgba(255, 200, 40, .55), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .7) 50%, transparent 65%); transform: translateX(-120%); }
.btn-primary:hover { box-shadow: 0 16px 40px -8px rgba(255, 200, 40, .7), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-primary:hover::after { transform: translateX(120%); transition: transform .7s var(--ease); }
.btn-ghost { border: 1px solid var(--line-strong); background: rgba(160, 150, 255, .08); color: var(--text); }
.btn-ghost:hover { background: rgba(160, 150, 255, .18); border-color: var(--violet-soft); }
.btn:active { transform: scale(.97); }
.btn-sm { padding: 10px 16px; border-radius: 12px; font-size: .9rem; }

/* ── Hero ── */
.hero { position: relative; padding: 56px 0 72px; }
.hero-grid-bg { position: absolute; inset: -76px 0 0 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 60% 35%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 75% 70% at 60% 35%, #000 10%, transparent 75%); }
#sparks { position: absolute; inset: -76px 0 0 0; width: 100%; height: calc(100% + 76px); z-index: -1; pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }

.live-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(61, 240, 168, .1); border: 1px solid rgba(61, 240, 168, .3); color: var(--mint); font-size: .86rem; font-weight: 600; margin-bottom: 26px; }
.live-pill i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.live-pill i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--mint); animation: ping 1.8s ease-out infinite; }
@keyframes ping { to { transform: scale(3.4); opacity: 0; } }

.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.1rem, 4.3vw, 3.5rem); line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.hero h1 .w > span { display: inline-block; }
.js .hero h1.is-in .w > span { animation: word-up .9s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes word-up { from { transform: translateY(110%) rotate(6deg); } to { transform: none; } }
.hero h1 .w.hl > span { background: linear-gradient(100deg, #fff1b8, var(--coin) 45%, #ff9d2e); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero-sub { margin-top: 24px; max-width: 54ch; font-size: 1.14rem; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; color: var(--muted); font-size: .95rem; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { color: var(--mint); flex: none; }
.js .hero .rise { opacity: 0; transform: translateY(18px); }
.js .hero.is-in .rise { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + 500ms); }

/* ── Order demo ── */
.demo-stage { position: relative; perspective: 1400px; }
.js .hero .demo-stage { opacity: 0; transform: translateY(40px) scale(.96); }
.js .hero.is-in .demo-stage { opacity: 1; transform: none; transition: opacity 1s var(--ease) .35s, transform 1.1s var(--ease) .35s; }
.orbit { position: absolute; z-index: 2; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(160deg, #251f5c, #171243); border: 1px solid var(--line-strong); box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .7); animation: bob 6s ease-in-out infinite; }
.orbit svg { width: 30px; height: 30px; }
.orbit-1 { left: -30px; top: -26px; }
.orbit-2 { right: -22px; top: 30%; animation-delay: -2s; animation-duration: 7s; }
.orbit-3 { left: -34px; bottom: 96px; animation-delay: -4s; animation-duration: 8s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-16px) rotate(6deg); } }

.demo { position: relative; border-radius: 30px; padding: 22px; background: linear-gradient(180deg, rgba(34, 28, 86, .92), rgba(18, 14, 50, .96)); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .85), 0 0 0 1px var(--line), 0 0 90px -20px rgba(111, 95, 255, .55); transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); }
.demo::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--spin, 0deg), transparent 0 62%, var(--violet-soft) 78%, var(--coin) 90%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; animation: spin 7s linear infinite; }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --spin: 360deg; } }

.demo-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: .8rem; color: var(--muted); }
.demo-top b { color: var(--text); font-weight: 600; }
.demo-tabs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.demo-tab { position: relative; height: 52px; border-radius: 14px; background: rgba(160, 150, 255, .08); border: 1px solid transparent; transition: background .25s, border-color .25s, transform .25s var(--spring); overflow: hidden; }
.demo-tab:hover { background: rgba(160, 150, 255, .18); transform: translateY(-2px); }
.demo-tab[aria-selected="true"] { background: rgba(111, 95, 255, .3); border-color: var(--violet-soft); }
.demo-tab .mark { position: absolute; inset: 10px 9px; background: var(--violet-soft); transition: background .25s; }
.demo-tab[aria-selected="true"] .mark { background: #fff; }
.demo-tab .timer { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--coin); transform-origin: 0 50%; transform: scaleX(0); }

.mark { -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.mark-mlbb { --src: url(/assets/img/mobilelegends.png); }
.mark-mcgg { --src: url(/assets/img/magicchess.png); }
.mark-ff { --src: url(/assets/img/freefire.png); }
.mark-stars { --src: url(/assets/img/tgstars.png); }
.mark-pubg { --src: url(/assets/img/pubgmobile.png); }
.mark-steam { --src: url(/assets/img/steam.png); }

.demo-game { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 18px 2px 12px; }
.demo-game strong { font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; }
.demo-game span { font-size: .82rem; color: var(--muted); }

.demo-row { position: relative; padding: 14px; border-radius: 18px; background: rgba(8, 6, 28, .5); border: 1px solid var(--line); margin-top: 10px; transition: border-color .3s, background .3s, opacity .3s; }
.demo-row.is-active { border-color: var(--violet-soft); background: rgba(111, 95, 255, .12); }
.demo-row.is-done { border-color: rgba(61, 240, 168, .35); }
.demo-row-head { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.demo-num { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; background: var(--ink-3); color: var(--violet-soft); transition: background .3s, color .3s, transform .4s var(--spring); }
.is-active .demo-num { background: var(--violet); color: #fff; }
.is-done .demo-num { background: var(--mint); color: #06281a; transform: scale(1.1); font-size: 0; }
.is-done .demo-num::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #06281a; border-bottom: 2px solid #06281a; transform: translateY(-1px) rotate(-45deg); }

.packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pack { padding: 10px 4px; border-radius: 12px; text-align: center; background: var(--ink-3); border: 1px solid transparent; font-weight: 700; font-size: .98rem; font-variant-numeric: tabular-nums; transition: transform .35s var(--spring), background .25s, border-color .25s, color .25s, box-shadow .25s; }
.pack small { display: block; font-weight: 500; font-size: .68rem; color: var(--muted); margin-top: 1px; transition: color .25s; }
.pack.is-picked { background: linear-gradient(180deg, #ffe07a, var(--coin)); color: #201700; transform: translateY(-3px) scale(1.04); box-shadow: 0 10px 22px -8px rgba(255, 200, 40, .7); }
.pack.is-picked small { color: #5a4300; }

.field { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; background: var(--ink-3); font-weight: 600; font-size: 1.02rem; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.field .caret { width: 2px; height: 20px; margin-left: 2px; background: var(--coin); opacity: 0; }
.is-active .field .caret { animation: blink .9s steps(1) infinite; }
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
.field .ok { margin-left: auto; color: var(--mint); font-size: .8rem; font-weight: 600; opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s; letter-spacing: 0; }
.is-done .field .ok { opacity: 1; transform: none; }

.pay { display: flex; align-items: center; gap: 12px; }
.pay-card { width: 46px; height: 30px; flex: none; border-radius: 7px; background: linear-gradient(135deg, var(--violet), #3a2fc0); position: relative; overflow: hidden; }
.pay-card::after { content: ""; position: absolute; left: 6px; top: 8px; width: 11px; height: 8px; border-radius: 2px; background: var(--coin); }
.pay-qr { width: 40px; height: 40px; flex: none; padding: 8px; border-radius: 11px; background: linear-gradient(135deg, var(--violet), #3a2fc0); color: #fff; }
.pay b { font-weight: 600; font-size: .98rem; }
.pay span { display: block; font-size: .78rem; color: var(--muted); }

.demo-status { position: relative; margin-top: 12px; height: 56px; border-radius: 16px; overflow: hidden; background: var(--ink-3); display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 1rem; }
.demo-status .bar { position: absolute; inset: 0; background: linear-gradient(90deg, var(--violet), #9b8cff); transform-origin: 0 50%; transform: scaleX(0); }
.demo-status .label { position: relative; display: flex; align-items: center; gap: 10px; }
.demo-status .tick { width: 24px; height: 24px; display: none; }
.demo-status .tick path { stroke-dasharray: 26; stroke-dashoffset: 26; }
.demo-status.is-done { background: var(--mint); color: #06281a; animation: pop .5s var(--spring); }
.demo-status.is-done .bar { opacity: 0; }
.demo-status.is-done .tick { display: block; }
.demo-status.is-done .tick path { animation: draw .45s .1s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { transform: scale(.96); } 60% { transform: scale(1.03); } 100% { transform: none; } }
.demo-note { margin-top: 12px; text-align: center; font-size: .76rem; color: var(--muted); }
.burst { position: absolute; left: 50%; bottom: 60px; width: 0; height: 0; z-index: 5; pointer-events: none; }
.burst i { position: absolute; width: 10px; height: 10px; border-radius: 3px; background: var(--coin); opacity: 0; }

/* ── Marquee ── */
.marquee { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: slide 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 64px; padding-right: 64px; }
.marquee-group .mark { height: 38px; width: 120px; background: var(--muted); opacity: .75; }
.marquee-group .mark-ff { width: 170px; height: 26px; }
.marquee-group .mark-stars, .marquee-group .mark-steam { width: 42px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── Sections ── */
.section { padding: 104px 0; }
.section-stats { padding: 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2, .cta h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.1rem; max-width: 58ch; }

.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ── Steps ── */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.steps-line { position: absolute; left: 32px; right: 32px; top: 32px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.steps-line i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--coin), var(--mint)); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.8s var(--ease) .2s; }
.steps.is-in .steps-line i { transform: scaleX(1); }
.step { position: relative; counter-increment: step; }
.step-dot { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; background: var(--ink-2); border: 1px solid var(--line-strong); font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--violet-soft); box-shadow: 0 0 0 10px var(--ink); transition: background .5s, color .5s, border-color .5s, transform .6s var(--spring); transition-delay: var(--sd, 0ms); }
.step-dot::before { content: counter(step); }
.steps.is-in .step-dot { background: var(--violet); color: #fff; border-color: transparent; transform: rotate(-6deg); }
.steps.is-in .step:nth-child(2) .step-dot { --sd: 300ms; }
.steps.is-in .step:nth-child(3) .step-dot { --sd: 900ms; background: var(--coin); color: #201700; transform: rotate(4deg); }
.steps.is-in .step:nth-child(4) .step-dot { --sd: 1500ms; background: var(--mint); color: #06281a; transform: rotate(-3deg); }
.step h3 { margin-top: 26px; font-family: var(--display); font-weight: 600; font-size: 1.16rem; letter-spacing: -.02em; line-height: 1.3; }
.step p { margin-top: 10px; color: var(--muted); max-width: 34ch; }

/* ── Games ── */
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.game { position: relative; display: flex; flex-direction: column; min-height: 230px; padding: 24px; border-radius: 26px; background: var(--ink-2); border: 1px solid var(--line); overflow: hidden; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s var(--ease), border-color .3s; }
.game::before, .tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(140, 125, 255, .28), transparent 60%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.game:hover::before, .tile:hover::before { opacity: 1; }
.game:hover { border-color: var(--line-strong); }
.game-logo { position: relative; flex: 1; display: grid; place-items: center; min-height: 104px; }
.game-logo .mark { width: 100%; max-width: 190px; height: 92px; background: linear-gradient(140deg, #cfc8ff, var(--violet)); transition: transform .5s var(--spring); }
.game:hover .game-logo .mark { transform: scale(1.1) rotate(-2deg); }
.game-meta { position: relative; display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-top: 18px; }
.game-meta h3 { font-weight: 700; font-size: 1.08rem; line-height: 1.3; }
.game-meta p { font-size: .9rem; color: var(--muted); }
.game-go { width: 40px; height: 40px; flex: none; border-radius: 13px; display: grid; place-items: center; background: var(--ink-3); color: var(--violet-soft); transition: background .25s, color .25s, transform .35s var(--spring); }
.game:hover .game-go { background: var(--coin); color: #201700; transform: translate(3px, -3px); }
.games-more { margin-top: 22px; color: var(--muted); }
.games-more a { color: var(--coin); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ── Catalogue (covers come from the storefront, synced by /root/buypin-tools/sync_catalog.py) ── */
.catalog { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 18px; }
.cat { display: block; text-align: center; }
.cat-cover { position: relative; display: block; aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: var(--ink-2); box-shadow: 0 0 0 1px var(--line); transition: transform .45s var(--spring), box-shadow .3s; }
.cat-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .28) 50%, transparent 60%); transform: translateX(-110%); pointer-events: none; }
.cat:hover .cat-cover { transform: translateY(-8px) rotate(-1.5deg); box-shadow: 0 0 0 2px var(--violet-soft), 0 26px 44px -18px rgba(111, 95, 255, .85); }
.cat:hover .cat-cover img { transform: scale(1.09); }
.cat:hover .cat-cover::after { transform: translateX(110%); transition: transform .8s var(--ease); }
.cat-badge { position: absolute; top: 0; right: 0; padding: 4px 11px 5px 12px; border-bottom-left-radius: 14px; background: var(--violet); color: #fff; font-size: .7rem; font-weight: 700; line-height: 1.3; }
.cat-badge.is-promo { background: #12a86b; }
.cat-name { display: block; margin-top: 12px; font-weight: 600; font-size: .95rem; line-height: 1.3; color: var(--text); transition: color .2s; }
.cat:hover .cat-name { color: var(--coin); }
.games-more { margin-top: 34px; }
@media (max-width: 1020px) { .catalog { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; } .cat-cover { border-radius: 18px; } .cat-name { font-size: .82rem; margin-top: 8px; } .cat-badge { font-size: .6rem; padding: 3px 8px 4px 9px; } }

/* ── Features (bento) ── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile { position: relative; padding: 28px; border-radius: 26px; background: var(--ink-2); border: 1px solid var(--line); overflow: hidden; grid-column: span 2; display: flex; flex-direction: column; }
.tile-wide { grid-column: span 4; }
.tile-half { grid-column: span 3; }
.tile h3 { position: relative; font-family: var(--display); font-weight: 600; font-size: 1.12rem; letter-spacing: -.02em; line-height: 1.3; }
.tile > p { position: relative; margin-top: 10px; color: var(--muted); font-size: .98rem; max-width: 52ch; }
.tile-art { position: relative; margin-top: auto; padding-top: 26px; }

.art-speed { display: flex; align-items: center; gap: 14px; }
.art-speed .track { flex: 1; height: 12px; border-radius: 999px; background: var(--ink-3); overflow: hidden; }
.art-speed .track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--mint)); transform-origin: 0 50%; animation: fill 3.2s var(--ease) infinite; }
@keyframes fill { 0% { transform: scaleX(0); } 55%, 90% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.art-speed b { font-family: var(--display); font-size: 1.5rem; color: var(--mint); font-variant-numeric: tabular-nums; min-width: 4.2ch; text-align: right; }

.art-pay { display: flex; flex-wrap: wrap; gap: 8px; }
.art-pay li { padding: 8px 14px; border-radius: 12px; background: var(--ink-3); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; transition: transform .3s var(--spring), border-color .25s, color .25s; }
.art-pay li:hover { transform: translateY(-3px); border-color: var(--coin); color: var(--coin); }

.art-stars { display: flex; align-items: center; gap: 8px; }
.art-stars svg { width: 30px; height: 30px; color: var(--ink-3); animation: star 3s ease-in-out infinite; animation-delay: calc(var(--i) * .22s); }
@keyframes star { 0%, 12% { color: var(--ink-3); transform: scale(.85); } 28%, 80% { color: var(--coin); transform: scale(1); } 100% { color: var(--ink-3); transform: scale(.85); } }

.art-history li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.art-history li:first-child { border-top: 0; }
.art-history .mark { width: 34px; height: 22px; flex: none; background: var(--violet-soft); }
.art-history span { flex: 1; }
.art-history em { font-style: normal; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(61, 240, 168, .12); color: var(--mint); }
.art-history em.wait { background: rgba(255, 210, 63, .12); color: var(--coin); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

.art-wallet { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(120deg, rgba(111, 95, 255, .45), rgba(111, 95, 255, .1)); border: 1px solid var(--line-strong); }
.art-wallet span { font-size: .84rem; color: var(--muted); }
.art-wallet b { display: block; font-family: var(--display); font-size: 1.1rem; }
.art-wallet i { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--coin); color: #201700; font-style: normal; font-weight: 800; font-size: 1.3rem; animation: bob 4s ease-in-out infinite; }

.art-chat { display: grid; gap: 8px; }
.art-chat p { width: fit-content; max-width: 85%; padding: 9px 14px; border-radius: 16px 16px 16px 4px; background: var(--ink-3); font-size: .9rem; }
.art-chat p.me { justify-self: end; border-radius: 16px 16px 4px 16px; background: var(--violet); color: #fff; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--violet-soft); animation: dots 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ── Stats ── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 30px; background: linear-gradient(120deg, #4a3df0, var(--violet) 55%, #8f7dff); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(111, 95, 255, .9); }
.stat { padding: 40px 28px; border-left: 1px solid rgba(255, 255, 255, .16); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 3rem); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 12px; color: rgba(255, 255, 255, .82); font-size: .98rem; line-height: 1.4; }

/* ── Privacy ── */
.privacy { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 56px; align-items: start; }
.privacy .section-head { position: sticky; top: 104px; margin-bottom: 0; }
.privacy .section-head h2 { font-size: clamp(1.5rem, 2.5vw, 2.05rem); overflow-wrap: anywhere; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--coin); font-weight: 600; }
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }
.sub-h { font-weight: 700; font-size: 1.02rem; margin-bottom: 14px; }
.auth { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 36px; }
.auth-card { padding: 18px; border-radius: 20px; background: var(--ink-2); border: 1px solid var(--line); }
.auth-card h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: .96rem; font-weight: 700; line-height: 1.3; }
.auth-card h4 svg { flex: none; color: var(--violet-soft); }
.auth-card li { position: relative; padding-left: 16px; font-size: .88rem; color: var(--muted); line-height: 1.5; margin-top: 6px; }
.auth-card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 2px; background: var(--violet); transform: rotate(45deg); }
.table-scroll { overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); background: var(--ink-2); }
.data-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .9rem; }
.data-table th { text-align: left; padding: 14px 18px; font-weight: 600; color: var(--violet-soft); background: rgba(111, 95, 255, .12); }
.data-table td { padding: 14px 18px; border-top: 1px solid var(--line); color: var(--muted); vertical-align: top; line-height: 1.5; }
.data-table td:first-child { color: var(--text); font-weight: 500; }
.data-table tbody tr { transition: background .2s; }
.data-table tbody tr:hover { background: rgba(160, 150, 255, .07); }
.note { display: flex; gap: 14px; margin-top: 20px; padding: 18px 20px; border-radius: 20px; background: rgba(61, 240, 168, .07); border: 1px solid rgba(61, 240, 168, .22); font-size: .92rem; color: var(--muted); }
.note svg { flex: none; color: var(--mint); margin-top: 2px; }

/* ── CTA ── */
.cta { position: relative; text-align: center; padding: 80px 28px; border-radius: 36px; overflow: hidden; background: radial-gradient(120% 140% at 50% 0%, #3a2fc0 0%, #1b1550 55%, var(--ink-2) 100%); border: 1px solid var(--line-strong); }
.cta::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.4px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%); animation: dots-move 16s linear infinite; }
@keyframes dots-move { to { background-position: 26px 52px; } }
.cta > * { position: relative; }
.cta p { margin: 18px auto 0; max-width: 48ch; color: #cfcaf2; font-size: 1.1rem; }
.cta .hero-cta { justify-content: center; }

/* ── Footer ── */
.site-footer { margin-top: 104px; border-top: 1px solid var(--line); padding: 56px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-brand img { height: 30px; width: auto; }
.footer-brand p { margin-top: 16px; color: var(--muted); font-size: .94rem; max-width: 38ch; }
.footer-col h4 { margin: 0 0 14px; font-size: .9rem; font-weight: 600; color: var(--violet-soft); }
.footer-col a { display: block; width: fit-content; padding: 4px 0; color: var(--muted); font-size: .96rem; transition: color .2s, transform .25s var(--ease); }
.footer-col a:hover { color: var(--text); transform: translateX(4px); }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .88rem; }

/* ── Legal pages ── */
.legal-hero { position: relative; padding: 64px 0 48px; }
.legal-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -.035em; max-width: 18ch; }
.legal-hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.legal-hero h1 .w > span { display: inline-block; }
.js .legal-hero h1.is-in .w > span { animation: word-up .9s var(--ease) both; animation-delay: calc(var(--i) * 80ms + 100ms); }
.legal-sub { margin-top: 18px; color: var(--muted); font-size: 1.1rem; }
.js .legal-hero .rise { opacity: 0; transform: translateY(18px); }
.js .legal-hero.is-in .rise { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + 350ms); }
.legal-tabs { display: inline-flex; gap: 4px; margin-top: 30px; padding: 5px; border-radius: 16px; background: rgba(160, 150, 255, .1); border: 1px solid var(--line); }
.legal-tabs > * { padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: .95rem; color: var(--muted); transition: color .2s, background .2s; }
.legal-tabs a:hover { color: var(--text); background: rgba(160, 150, 255, .14); }
.legal-tabs .is-on { background: var(--violet); color: #fff; box-shadow: 0 6px 18px rgba(111, 95, 255, .5); }

.legal-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 96px; }
.toc { position: sticky; top: 92px; max-height: calc(100vh - 120px); overflow-y: auto; padding: 22px 14px 22px 22px; border-radius: 24px; background: var(--ink-2); border: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent; }
.toc-title { font-family: var(--display); font-weight: 600; font-size: .95rem; margin-bottom: 12px; }
.toc ol { border-left: 2px solid var(--line); }
.toc a { position: relative; display: block; margin-left: -2px; padding: 7px 0 7px 16px; border-left: 2px solid transparent; font-size: .88rem; line-height: 1.4; color: var(--muted); transition: color .25s, border-color .25s, transform .3s var(--ease); }
.toc a:hover { color: var(--text); }
.toc a.is-on { color: var(--coin); border-left-color: var(--coin); transform: translateX(4px); font-weight: 600; }

.legal-content { min-width: 0; padding: 44px 48px; border-radius: 30px; background: linear-gradient(180deg, rgba(29, 24, 72, .7), rgba(20, 16, 52, .7)); border: 1px solid var(--line); color: #c9c5e6; line-height: 1.75; overflow-wrap: break-word; }
.legal-content .legal-sec + .legal-sec { margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--line); }
.legal-content h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.35; letter-spacing: -.015em; color: var(--text); margin-bottom: 16px; scroll-margin-top: 96px; }
.legal-content h3 { font-family: var(--display); font-weight: 600; font-size: 1.02rem; line-height: 1.4; color: var(--text); margin: 22px 0 12px; scroll-margin-top: 96px; }
.legal-content .legal-sec > h3:first-child { margin-top: 0; font-size: 1.12rem; }
.legal-content p { margin-bottom: 14px; max-width: 74ch; }
.legal-content ul { margin: 6px 0 16px; display: grid; gap: 8px; }
.legal-content li { position: relative; padding-left: 20px; max-width: 72ch; }
.legal-content li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 7px; height: 7px; border-radius: 2px; background: var(--violet); transform: rotate(45deg); }
.legal-content strong { color: var(--text); font-weight: 600; }
.legal-content a { color: var(--coin); text-decoration: underline; text-decoration-color: rgba(255, 210, 63, .4); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.legal-content a:hover { text-decoration-color: var(--coin); }
.legal-date { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(160, 150, 255, .12); color: var(--violet-soft); font-size: .84rem; font-weight: 600; }
.legal-foot { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.legal-content .inline-toc { display: none; }
.legal-cta { margin-bottom: 0; padding: 56px 28px; }
.legal-cta h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }

.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 150; width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--coin); color: #201700; box-shadow: 0 14px 30px -10px rgba(255, 200, 40, .7); opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9); transition: opacity .3s, visibility .3s, transform .4s var(--spring); }
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-4px); }

@media (max-width: 1020px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 72px; }
  .toc { display: none; }
  .legal-content .inline-toc { display: block; }
  .legal-content ul.inline-toc { display: grid; }
}
@media (max-width: 560px) {
  .legal-hero { padding: 36px 0 32px; }
  .legal-hero h1 { font-size: clamp(1.15rem, 5.4vw, 1.9rem); }
  .legal-content { padding: 26px 20px; border-radius: 22px; }
  .legal-tabs > * { padding: 9px 13px; font-size: .88rem; }
}

/* ── Error pages ── */
.error-page { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.error-page img { height: 34px; width: auto; margin: 0 auto 48px; }
.error-code { font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 22vw, 12rem); line-height: .9; letter-spacing: -.05em; background: linear-gradient(120deg, #cfc8ff, var(--violet) 50%, var(--coin)); -webkit-background-clip: text; background-clip: text; color: transparent; animation: bob 6s ease-in-out infinite; }
.error-page h1 { margin-top: 28px; font-family: var(--display); font-weight: 700; font-size: clamp(1.2rem, 3vw, 1.7rem); letter-spacing: -.02em; }
.error-page p { margin: 14px auto 32px; color: var(--muted); max-width: 44ch; }

/* ── Responsive ── */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .demo-stage { max-width: 520px; width: 100%; margin-inline: auto; }
  .privacy { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .privacy .section-head { position: static; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile-wide, .tile-half { grid-column: span 1; }
  .games { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 0; z-index: -1; margin: 0; padding: 110px 28px 40px; flex-direction: column; gap: 6px; background: rgba(12, 10, 34, .97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .nav a { font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--text); padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; opacity: 0; transform: translateY(14px); transition: opacity .4s var(--ease), transform .4s var(--ease); transition-delay: calc(var(--i, 0) * 60ms + 80ms); }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav.is-open a { opacity: 1; transform: none; }
  .header-tools { margin-left: auto; }
  .header-tools .btn { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .16); }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps-line { left: 31px; right: auto; top: 32px; bottom: 60px; width: 2px; height: auto; }
  .steps-line i { height: 100%; transform-origin: 50% 0; transform: scaleY(0); }
  .steps.is-in .steps-line i { transform: scaleY(1); }
  .step { display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; }
  .step-dot { grid-row: span 2; }
  .step h3 { margin-top: 6px; }
  .section { padding: 76px 0; }
  .auth { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 28px 0 56px; }
  .hero-sub { font-size: 1.04rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .orbit { width: 46px; height: 46px; border-radius: 14px; }
  .orbit svg { width: 24px; height: 24px; }
  .orbit-1 { left: -10px; top: -22px; } .orbit-2 { right: -8px; } .orbit-3 { left: -10px; bottom: 84px; }
  .hero-facts { display: none; }
  .hero-sub { margin-top: 18px; }
  .hero-cta { margin-top: 24px; }
  .hero-inner { gap: 48px; }
  .demo { padding: 16px; border-radius: 24px; }
  .demo-tabs { gap: 6px; }
  .demo-tab { height: 44px; border-radius: 12px; }
  .demo-tab .mark { inset: 9px 6px; }
  .games, .bento { grid-template-columns: 1fr; }
  .game { min-height: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .cta { padding: 56px 20px; border-radius: 28px; }
  .stat { padding: 28px 20px; }
  .brand img { height: 26px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  .marquee-track { animation: none !important; }
  .js [data-reveal], .js .hero .rise, .js .hero .demo-stage, .js .legal-hero .rise { opacity: 1; transform: none; }
}
