/* ============================================================
   SsAccounts · Neon marketplace · v2
   Palette pulled from the SsAccounts logo (violet → cyan)
   ============================================================ */
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --bg: #07061a;
  --bg-2: #0d0b26;
  --bg-3: #131036;
  --panel: rgb(19 16 52 / 0.66);
  --line: rgb(150 140 255 / 0.18);
  --line-2: rgb(140 130 255 / 0.28);
  --text: #eeeaff;
  --muted: #b9b3de;
  --cyan: #22d8ff;
  --pink: #c447ff;
  --violet: #7b5cff;
  --lime: #8bff6a;
  --gold: #ffcf5c;
  --danger: #ff5c8a;
  --grad: linear-gradient(100deg, var(--pink), var(--violet) 45%, var(--cyan));
  --radius: 16px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font-display: "Lexend", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1360px;
  --gut: clamp(16px, 3vw, 40px);
  color-scheme: dark;
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; scrollbar-color: var(--violet) var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--pink); color: #fff; }
a { color: inherit; }
img, svg, canvas { display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.01em; text-wrap: balance; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.center { text-align: center; }
.mono { font-family: var(--font-mono); }
.ok { color: var(--lime); }
.link { background: none; border: 0; color: var(--cyan); padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.link-plain { background: none; border: 0; padding: 0; text-align: left; }
.grad-text { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; padding: 8px 14px; background: var(--cyan); color: #000; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--wrap), 100%); margin: 0 auto; padding-inline: var(--gut); }

/* ---------- ambient ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 100; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .scroll-progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}
.cursor-glow { position: fixed; left: 0; top: 0; width: 560px; height: 560px; z-index: 0; pointer-events: none; border-radius: 50%; translate: -50% -50%; background: radial-gradient(circle, rgb(123 92 255 / .14), transparent 60%); mix-blend-mode: screen; }
@media (hover: none) { .cursor-glow { display: none; } }
.noise { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- utility strip ---------- */
.utility { position: relative; z-index: 51; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 7px var(--gut); font-size: .78rem; color: var(--muted); background: linear-gradient(90deg, rgb(196 71 255 / .12), rgb(34 216 255 / .1)); border-bottom: 1px solid var(--line); }
.utility p { margin: 0; }
.utility b { color: var(--text); }
.utility-r { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.online-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .4; } }
.currency { margin-left: 10px; height: 26px; padding: 0 8px; background: rgb(0 0 0 / .3); border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: 600 .74rem var(--font-mono); }
.currency option { background: var(--bg-2); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 18px; padding: 12px var(--gut); background: rgb(7 6 26 / .82); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark { height: 38px; width: auto; filter: drop-shadow(0 0 10px rgb(123 92 255 / .55)); transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.05); }
.brand-word { font: 800 1.35rem/1 var(--font-display); letter-spacing: -.02em; background: linear-gradient(90deg, var(--pink), var(--cyan) 55%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 12px rgb(34 216 255 / .3)); }
.brand-word b { font-weight: 800; }
.games-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgb(123 92 255 / .12); font: 600 .9rem var(--font-display); }
.games-btn:hover { border-color: var(--pink); }
.global-search { position: relative; flex: 1; max-width: 620px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px 0 14px; border-radius: 12px; background: rgb(0 0 0 / .35); border: 1px solid var(--line-2); color: var(--muted); }
.global-search:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 4px rgb(34 216 255 / .12); }
.global-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; }
kbd { font: 600 .74rem var(--font-mono); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; padding: 8px; border-radius: 14px; background: rgb(13 11 38 / .97); border: 1px solid var(--line-2); box-shadow: 0 30px 80px -20px rgb(0 0 0 / .8); backdrop-filter: blur(16px); }
.suggest h5 { margin: 6px 8px; font: 600 .74rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--text); }
.suggest a:hover, .suggest a.sel { background: rgb(123 92 255 / .18); }
.suggest a small { margin-left: auto; color: var(--cyan); font-family: var(--font-mono); }
.suggest .thumb { width: 30px; height: 30px; border-radius: 6px; overflow: hidden; flex: none; }
.suggest .thumb svg { width: 100%; height: 100%; }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-link { padding: 8px 10px; text-decoration: none; font: 600 .9rem var(--font-display); color: var(--muted); }
.nav-link:hover { color: var(--text); }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgb(255 255 255 / .04); border: 1px solid var(--line); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.icon-btn:hover { border-color: var(--cyan); box-shadow: 0 0 0 3px rgb(34 216 255 / .1); }
#soundToggle .wave { opacity: .25; }
#soundToggle[aria-pressed="true"] { color: var(--lime); }
#soundToggle[aria-pressed="true"] .wave { opacity: 1; }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 10px; background: var(--pink); color: #fff; font: 700 .74rem var(--font-mono); box-shadow: 0 0 12px var(--pink); }
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.5); } }
.dot-badge { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 8px var(--danger); }
.dot-badge[hidden] { display: none; }

/* category bar */
.catbar { position: sticky; top: 67px; z-index: 49; display: flex; gap: 4px; overflow-x: auto; padding: 0 var(--gut); background: rgb(7 6 26 / .72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.catbar a { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; text-decoration: none; font: 500 .88rem var(--font-display); color: var(--muted); white-space: nowrap; }
.catbar a:hover { color: var(--text); }
.catbar a.active { color: var(--text); }
.catbar a.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--grad); box-shadow: 0 0 10px var(--cyan); }
.catbar .soon { font: 600 .74rem var(--font-mono); padding: 2px 5px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--muted); }
.catbar .sep { width: 1px; margin: 10px 6px; background: var(--line-2); }

/* popovers */
[popover] { color: var(--text); }
.games-menu, .notif-menu { position: fixed; margin: 0; inset: auto; padding: 14px; border-radius: 18px; border: 1px solid var(--line-2); background: rgb(13 11 38 / .97); backdrop-filter: blur(20px); box-shadow: 0 40px 100px -20px rgb(0 0 0 / .85), 0 0 0 1px rgb(196 71 255 / .1); }
.games-menu:popover-open, .notif-menu:popover-open { animation: drop .3s var(--ease); }
@keyframes drop { from { opacity: 0; translate: 0 -8px; } }
.games-menu { top: 120px; left: var(--gut); width: min(640px, calc(100vw - 32px)); }
.notif-menu { top: 120px; right: var(--gut); width: min(360px, calc(100vw - 32px)); }
@supports (anchor-name: --a) {
  #gamesBtn { anchor-name: --games; }
  #notifBtn { anchor-name: --notif; }
  .games-menu { position-anchor: --games; top: anchor(bottom); left: anchor(left); margin-top: 10px; position-try-fallbacks: flip-inline; }
  .notif-menu { position-anchor: --notif; top: anchor(bottom); right: anchor(right); left: auto; margin-top: 10px; }
}
.games-menu input { width: 100%; height: 42px; padding: 0 14px; margin-bottom: 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgb(0 0 0 / .35); color: var(--text); font: inherit; outline: 0; }
.games-menu input:focus { border-color: var(--cyan); }
.games-menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.gm-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; text-decoration: none; transition: background .2s; }
.gm-item:hover { background: rgb(123 92 255 / .16); }
.gm-item .gm-art { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; flex: none; }
.gm-item .gm-art svg { width: 100%; height: 100%; }
.gm-item b { display: block; font: 600 .92rem var(--font-display); }
.gm-item small { color: var(--muted); font-size: .76rem; }
.gm-item.soon { opacity: .55; }
.notif-menu header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.notif-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.notif-menu li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 10px; border-radius: 12px; font-size: .86rem; }
.notif-menu li.unread { background: rgb(123 92 255 / .12); }
.notif-menu li .n-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgb(255 255 255 / .06); }
.notif-menu li small { display: block; color: var(--muted); font-size: .74rem; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; border: 0; border-radius: 13px; isolation: isolate; font: 700 .92rem var(--font-display); text-decoration: none; color: var(--text); overflow: hidden; transition: transform .2s var(--ease), box-shadow .3s, filter .2s; white-space: nowrap; }
.btn span { position: relative; z-index: 2; }
.btn-sm { height: 42px; padding: 0 18px; font-size: .86rem; border-radius: 12px; }
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 10px 30px -10px var(--pink), inset 0 0 0 1px rgb(255 255 255 / .25); }
.btn-primary::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .45) 50%, transparent 70%); translate: -120% 0; transition: translate .7s var(--ease); }
.btn-primary:hover::before { translate: 120% 0; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px var(--pink); }
.btn-ghost { background: rgb(255 255 255 / .04); }
.btn-ghost::before { content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; z-index: 1; background: conic-gradient(from var(--angle), var(--cyan), var(--pink), var(--violet), var(--cyan)); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: spin 4s linear infinite; }
.btn-ghost:hover { background: rgb(255 255 255 / .08); transform: translateY(-2px); }
.btn-success { background: linear-gradient(100deg, #2ee59d, var(--cyan)); color: #04121a; }
.btn.wide { width: 100%; }
@keyframes spin { to { --angle: 360deg; } }

/* ---------- layout primitives ---------- */
main { position: relative; z-index: 2; min-height: 60vh; outline: 0; }
.section { padding: 70px 0 10px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; font: 700 clamp(1.5rem, 3vw, 2.3rem)/1.1 var(--font-display); }
.kicker { margin: 0 0 6px; font: 600 .74rem var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.see-all { font: 600 .86rem var(--font-display); color: var(--cyan); text-decoration: none; }
.see-all:hover { text-decoration: underline; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); backdrop-filter: blur(10px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0 0; font-size: .82rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden] { opacity: .5; }

/* reveal */
.reveal { animation: rise .8s var(--ease) both; }
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
}
@keyframes rise { from { opacity: 0; translate: 0 30px; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
#heroGL { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 160px; background: linear-gradient(transparent, var(--bg)); z-index: 1; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-block: 70px 110px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgb(10 8 30 / .6); font: 600 .74rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); backdrop-filter: blur(8px); }
.eyebrow b { color: var(--cyan); }
.hero h1 { margin: 0; font: 800 clamp(2.4rem, 5.6vw, 4.8rem)/1 var(--font-display); letter-spacing: -.03em; }
.hero h1 .glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; }
.glitch::before { color: var(--cyan); mix-blend-mode: screen; animation: glitch-a 3.4s infinite steps(1); clip-path: inset(0 0 60% 0); }
.glitch::after { color: var(--pink); mix-blend-mode: screen; animation: glitch-b 2.9s infinite steps(1); clip-path: inset(55% 0 0 0); }
@keyframes glitch-a { 0%, 86%, 100% { transform: none; opacity: 0; } 88% { transform: translate(-4px, -2px); opacity: 1; } 92% { transform: translate(3px, 1px); opacity: 1; } 95% { opacity: 0; } }
@keyframes glitch-b { 0%, 90%, 100% { transform: none; opacity: 0; } 91% { transform: translate(5px, 2px); opacity: 1; } 94% { transform: translate(-3px, 0); opacity: 1; } 96% { opacity: 0; } }
.lede { max-width: 54ch; margin: 20px 0 26px; color: #c8c2ee; font-size: 1.08rem; text-shadow: 0 1px 12px var(--bg); }
.hero-search { display: flex; gap: 8px; padding: 8px; border-radius: 16px; background: rgb(10 8 30 / .75); border: 1px solid var(--line-2); backdrop-filter: blur(12px); max-width: 600px; box-shadow: 0 20px 60px -20px rgb(123 92 255 / .5); }
.hero-search select, .hero-search input { height: 48px; border-radius: 11px; border: 1px solid var(--line); background: rgb(0 0 0 / .35); color: var(--text); font: inherit; padding: 0 14px; outline: 0; }
.hero-search input { flex: 1; min-width: 0; }
.hero-search input:focus { border-color: var(--cyan); }
.hero-search select option { background: var(--bg-2); }
.popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: .82rem; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgb(255 255 255 / .03); font: 500 .8rem var(--font-body); color: var(--text); text-decoration: none; transition: border-color .2s, background .2s; }
.chip:hover { border-color: var(--cyan); background: rgb(34 216 255 / .08); }
.chip button { background: none; border: 0; padding: 0 0 0 4px; color: var(--muted); }
.chip button:hover { color: var(--danger); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 34px 0 0; }
.hero-stats div { border-left: 2px solid var(--violet); padding-left: 12px; }
.hero-stats dt { font: 600 .74rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-stats dd { margin: 2px 0 0; font: 700 1.7rem var(--font-display); }
.hero-logo { position: relative; display: grid; place-items: center; }
.hero-logo img { width: min(440px, 100%); height: auto; filter: drop-shadow(0 0 40px rgb(123 92 255 / .55)); animation: float 6s ease-in-out infinite; }
.hero-logo .ring { position: absolute; width: 86%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgb(34 216 255 / .25); animation: rot 40s linear infinite; }
.hero-logo .ring.r2 { width: 104%; border-color: rgb(196 71 255 / .18); animation-duration: 60s; animation-direction: reverse; }
@keyframes rot { to { rotate: 360deg; } }
@keyframes float { 50% { translate: 0 -12px; } }

/* trust strip */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -50px; position: relative; z-index: 3; }
.trust div { display: flex; gap: 12px; align-items: center; padding: 16px 18px; }
.trust .t-ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgb(123 92 255 / .18); font-size: 1.2rem; }
.trust b { display: block; font: 600 .95rem var(--font-display); }
.trust small { color: var(--muted); font-size: .78rem; }

/* game tiles */
.game-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.game-tile { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; isolation: isolate; transition: transform .35s var(--ease), border-color .3s, box-shadow .3s; }
.game-tile .art { position: absolute; inset: 0; z-index: -1; }
.game-tile .art svg { width: 100%; height: 100%; transition: transform .6s var(--ease); }
.game-tile:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 20px 40px -20px var(--pink); }
.game-tile:hover .art svg { transform: scale(1.06); }
.game-tile h3 { margin: 0; font: 700 1.15rem var(--font-display); }
.game-tile small { color: var(--muted); }
.game-tile .badge { position: absolute; top: 12px; left: 12px; }
.game-tile.big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.game-tile.big h3 { font-size: 2rem; }
.game-tile.soon { filter: saturate(.5); }

/* carousel */
.carousel { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 23%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.rail-btns { display: flex; gap: 8px; }

/* ticker */
.ticker { position: relative; z-index: 2; overflow: hidden; border-block: 1px solid var(--line); background: linear-gradient(90deg, rgb(196 71 255 / .07), rgb(34 216 255 / .07)); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); margin-top: 60px; }
.ticker-track { display: flex; gap: 44px; width: max-content; padding: 12px 0; animation: marquee 50s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tick { display: flex; align-items: center; gap: 8px; font: 500 .82rem var(--font-mono); color: var(--muted); white-space: nowrap; }
.tick b { color: var(--text); }
.tick .amt { color: var(--lime); }
.tick::before { content: "◆"; color: var(--pink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- offer cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.grid.list { grid-template-columns: 1fr; }
.card-shell { perspective: 1000px; min-width: 0; }
.card { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; position: relative; display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); background: linear-gradient(180deg, #161339, #0c0a22); border: 1px solid var(--line); overflow: hidden; text-decoration: none; transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .25s var(--ease), box-shadow .3s; }
.card::before { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; z-index: 3; pointer-events: none; background: conic-gradient(from var(--angle), transparent 60%, var(--cyan), var(--pink), transparent 90%); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: 0; transition: opacity .3s; animation: spin 3s linear infinite; }
.card::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(380px circle at var(--mx) var(--my), rgb(255 255 255 / .1), transparent 45%); }
.card:hover { box-shadow: 0 26px 50px -20px rgb(196 71 255 / .4); }
.card:hover::before, .card:hover::after, .card.featured::before { opacity: 1; }
.cover { position: relative; aspect-ratio: 16 / 8.5; overflow: hidden; flex: none; }
.cover svg { width: 100%; height: 100%; transition: transform .6s var(--ease); }
.card:hover .cover svg { transform: scale(1.06); }
.badges { position: absolute; top: 10px; left: 10px; right: 50px; display: flex; gap: 5px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 7px; font: 700 .74rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; background: rgb(0 0 0 / .55); border: 1px solid rgb(255 255 255 / .14); backdrop-filter: blur(6px); color: var(--text); }
.badge.hot { background: var(--grad); border-color: transparent; box-shadow: 0 0 12px rgb(196 71 255 / .6); }
.badge.live { color: var(--lime); }
.badge.t3, .badge.t4 { color: var(--gold); border-color: rgb(255 207 92 / .4); }
.badge.off { background: var(--danger); border-color: var(--danger); color: #fff; }
.fav { position: absolute; top: 8px; right: 8px; z-index: 4; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 1px solid rgb(255 255 255 / .14); background: rgb(0 0 0 / .5); backdrop-filter: blur(6px); color: var(--muted); }
.fav:hover { color: var(--pink); }
.fav[aria-pressed="true"] { color: var(--pink); border-color: var(--pink); }
.fav[aria-pressed="true"] svg { fill: currentColor; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 14px 14px; }
.card-meta { display: flex; justify-content: space-between; font: 600 .74rem var(--font-mono); color: var(--muted); letter-spacing: .04em; }
.card h3 { margin: 6px 0 10px; font: 600 1rem/1.3 var(--font-display); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 0 0 12px; }
.stats div { padding: 6px 9px; border-radius: 9px; background: rgb(255 255 255 / .03); border: 1px solid rgb(255 255 255 / .05); }
.stats dt { font: 600 .74rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 1px 0 0; font: 600 .92rem var(--font-display); }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; }
.price { font: 700 1.45rem/1 var(--font-display); color: var(--cyan); text-shadow: 0 0 16px rgb(34 216 255 / .35); }
.price s { display: block; font: 500 .76rem var(--font-mono); color: var(--muted); text-shadow: none; margin-bottom: 3px; }
.add { height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--pink); background: rgb(196 71 255 / .12); font: 600 .78rem var(--font-display); transition: background .2s, box-shadow .2s; }
.add:hover { background: var(--pink); color: #fff; box-shadow: 0 0 18px var(--pink); }
.add.in-cart { border-color: var(--lime); color: var(--lime); background: rgb(139 255 106 / .08); }
.seller-line { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .8rem; color: var(--muted); }
.seller-line .stars { margin-left: auto; color: var(--gold); font-family: var(--font-mono); font-size: .76rem; }
.avatar { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.avatar-wrap { position: relative; display: inline-block; }
.avatar-wrap .on { position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); border: 2px solid var(--bg-2); }
.verified { color: var(--cyan); }
.lvl { font: 700 .74rem var(--font-mono); padding: 1px 5px; border-radius: 5px; background: rgb(123 92 255 / .25); color: #cfc4ff; }

/* list layout cards */
.grid.list .card { flex-direction: row; }
.grid.list .cover { width: 240px; aspect-ratio: auto; }
.grid.list .card-body { display: grid; grid-template-columns: 1fr auto; gap: 0 20px; align-items: center; }
.grid.list .card-meta, .grid.list h3, .grid.list .stats, .grid.list .seller-line { grid-column: 1; }
.grid.list .stats { grid-template-columns: repeat(4, 1fr); margin: 0; }
.grid.list .card-foot { grid-column: 2; grid-row: 1 / span 4; flex-direction: column; align-items: flex-end; gap: 12px; }

/* ---------- game / browse page ---------- */
.game-banner { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.game-banner .art { position: absolute; inset: 0; opacity: .55; }
.game-banner .art svg { width: 100%; height: 100%; }
.game-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 25%, transparent), linear-gradient(transparent 50%, var(--bg)); }
.game-banner .wrap { position: relative; z-index: 1; padding-block: 10px 30px; }
.game-banner h1 { margin: 14px 0 6px; font: 800 clamp(2rem, 4.4vw, 3.4rem)/1 var(--font-display); }
.cat-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 20px; }
.cat-tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 11px; border: 1px solid var(--line-2); background: rgb(0 0 0 / .3); font: 600 .86rem var(--font-display); text-decoration: none; }
.cat-tab.active { background: var(--grad); border-color: transparent; box-shadow: 0 8px 24px -8px var(--pink); }
.cat-tab .n { font: 600 .74rem var(--font-mono); padding: 1px 6px; border-radius: 6px; background: rgb(0 0 0 / .3); }
.cat-tab[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.browse { display: grid; grid-template-columns: 272px 1fr; gap: 24px; padding-top: 26px; }
.filters { position: sticky; top: 130px; align-self: start; max-height: calc(100svh - 150px); overflow: auto; padding: 6px 16px 16px; scrollbar-width: thin; }
.filters .f-head { display: none; }
.f-group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.f-group:last-child { border-bottom: 0; }
.f-group h4 { margin: 0 0 10px; font: 600 .74rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: .9rem; cursor: pointer; }
.check input { appearance: none; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line-2); background: rgb(0 0 0 / .3); display: grid; place-items: center; margin: 0; transition: all .2s; cursor: pointer; }
.check input:checked { background: var(--grad); border-color: transparent; }
.check input:checked::after { content: "✓"; color: #fff; font-size: .74rem; font-weight: 700; }
.check .n { margin-left: auto; font: 500 .74rem var(--font-mono); color: var(--muted); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: .9rem; cursor: pointer; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 11px; background: rgb(255 255 255 / .1); position: relative; margin: 0; cursor: pointer; transition: background .25s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: translate .25s var(--ease); }
.switch input:checked { background: var(--grad); }
.switch input:checked::after { translate: 16px 0; }
.price-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.price-row input, .filters select { width: 100%; height: 38px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line-2); background: rgb(0 0 0 / .3); color: var(--text); font: 500 .88rem var(--font-body); }
.filters select option { background: var(--bg-2); }
input[type="range"] { width: 100%; accent-color: var(--pink); }
.range-val { display: flex; justify-content: space-between; font: 500 .76rem var(--font-mono); color: var(--muted); }
.results-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.results-bar .count { font: 500 .88rem var(--font-body); color: var(--muted); }
.results-bar .count b { color: var(--text); }
.results-r { display: flex; gap: 8px; align-items: center; }
.results-r select { height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgb(0 0 0 / .3); color: var(--text); font: 500 .88rem var(--font-body); }
.results-r select option { background: var(--bg-2); }
.seg { display: flex; padding: 3px; border-radius: 10px; border: 1px solid var(--line-2); background: rgb(0 0 0 / .3); }
.seg button { width: 34px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--muted); display: grid; place-items: center; }
.seg button[aria-pressed="true"] { background: rgb(123 92 255 / .35); color: var(--text); }
.active-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.active-chips:empty { display: none; }
.filter-toggle { display: none; }
.pager { display: flex; justify-content: center; gap: 6px; margin: 28px 0 0; }
.pager button { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: rgb(0 0 0 / .3); font: 600 .86rem var(--font-mono); }
.pager button[aria-current="page"] { background: var(--grad); border-color: transparent; }
.pager button:disabled { opacity: .4; cursor: default; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.coming { text-align: center; padding: 80px 20px; }
.coming h2 { font: 700 1.8rem var(--font-display); margin: 10px 0; }

/* ---------- offer page ---------- */
.offer { display: grid; grid-template-columns: 1fr 380px; gap: 28px; padding-top: 18px; align-items: start; }
.gallery { overflow: hidden; }
.gallery .main { aspect-ratio: 16 / 9; position: relative; }
.gallery .main svg { width: 100%; height: 100%; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 8px; }
.gallery .thumbs button { aspect-ratio: 16 / 9; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: none; opacity: .6; transition: opacity .2s, border-color .2s; }
.gallery .thumbs button[aria-current="true"] { border-color: var(--cyan); opacity: 1; }
.gallery .thumbs svg { width: 100%; height: 100%; }
.offer h1 { margin: 22px 0 10px; font: 700 clamp(1.5rem, 3vw, 2.2rem)/1.15 var(--font-display); }
.offer-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.attr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 24px; }
.attr div { padding: 14px 16px; background: var(--bg-2); }
.attr dt { font: 600 .74rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.attr dd { margin: 3px 0 0; font: 600 1.05rem var(--font-display); }
.tabs-row { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs-row button { position: relative; padding: 12px 14px; border: 0; background: none; font: 600 .9rem var(--font-display); color: var(--muted); }
.tabs-row button[aria-selected="true"] { color: var(--text); }
.tabs-row button[aria-selected="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; background: var(--grad); }
.desc p { color: #cfc9f2; }
.desc ul { padding-left: 18px; color: #cfc9f2; }
.desc li { margin: 4px 0; }
.desc li::marker { color: var(--cyan); }
.buybox { position: sticky; top: 130px; padding: 20px; display: grid; gap: 14px; }
.buybox .price { font-size: 2.2rem; }
.buybox .save { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 7px; background: rgb(255 92 138 / .15); color: var(--danger); font: 700 .74rem var(--font-mono); vertical-align: middle; }
.bb-rows { display: grid; gap: 8px; font-size: .86rem; }
.bb-rows div { display: flex; justify-content: space-between; color: var(--muted); }
.bb-rows b { color: var(--text); font-weight: 600; }
.shield-box { display: flex; gap: 12px; padding: 12px; border-radius: 12px; background: linear-gradient(100deg, rgb(139 255 106 / .08), rgb(34 216 255 / .06)); border: 1px solid rgb(139 255 106 / .25); font-size: .82rem; }
.shield-box b { display: block; color: var(--lime); font-family: var(--font-display); }
.seller-card { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgb(0 0 0 / .2); text-decoration: none; }
.seller-card .avatar { width: 48px; height: 48px; }
.seller-card b { font: 600 1rem var(--font-display); }
.seller-card small { display: block; color: var(--muted); font-size: .78rem; }
.seller-card .s-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.seller-card .s-stats div { padding: 8px 4px; border-radius: 10px; background: rgb(255 255 255 / .03); }
.seller-card .s-stats b { display: block; font-size: .95rem; }
.seller-card .s-stats small { font-size: .74rem; }
.countdown { font: 600 .78rem var(--font-mono); color: var(--gold); text-align: center; }
.reviews { display: grid; gap: 10px; }
.review { padding: 14px 16px; }
.review header { display: flex; align-items: center; gap: 10px; font-size: .84rem; }
.review header .stars { color: var(--gold); letter-spacing: 1px; }
.review header time { margin-left: auto; color: var(--muted); font-size: .76rem; }
.review p { margin: 8px 0 0; color: #cfc9f2; font-size: .9rem; }
.rating-sum { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 18px; margin-bottom: 12px; }
.rating-sum .big { font: 800 3rem/1 var(--font-display); }
.bars { display: grid; gap: 5px; }
.bars div { display: grid; grid-template-columns: 22px 1fr 36px; gap: 8px; align-items: center; font: 500 .74rem var(--font-mono); color: var(--muted); }
.bars i { height: 6px; border-radius: 3px; background: rgb(255 255 255 / .08); overflow: hidden; }
.bars i::before { content: ""; display: block; height: 100%; width: var(--w); background: var(--grad); }

/* ---------- seller page ---------- */
.profile { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 24px; margin-top: 18px; }
.profile .avatar { width: 88px; height: 88px; }
.profile h1 { margin: 0; font: 800 2rem var(--font-display); display: flex; align-items: center; gap: 10px; }
.profile-stats { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 8px; font-size: .86rem; color: var(--muted); }
.profile-stats b { color: var(--text); font-family: var(--font-display); }

/* ---------- how / shield / faq / sell ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { position: relative; padding: 22px; }
.step-n { font: 800 2.4rem var(--font-display); color: transparent; -webkit-text-stroke: 1px var(--cyan); }
.step h3 { margin: 4px 0 6px; font: 700 1.15rem var(--font-display); }
.step p { margin: 0; color: var(--muted); font-size: .9rem; }
.shield-band { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; padding: clamp(24px, 4vw, 48px); overflow: hidden; position: relative; background: radial-gradient(circle at 90% 50%, rgb(139 255 106 / .12), transparent 50%), radial-gradient(circle at 0% 0%, rgb(123 92 255 / .25), transparent 50%), var(--bg-2); }
.shield-band h2 { margin: 0 0 12px; font: 800 clamp(1.8rem, 3.6vw, 2.8rem)/1.05 var(--font-display); }
.shield-band ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.shield-band li { display: flex; gap: 10px; color: #d2ccf5; }
.shield-band li::before { content: "✓"; color: var(--lime); font-weight: 700; }
.shield-art { position: relative; justify-self: center; width: 220px; height: 250px; clip-path: polygon(50% 0, 100% 15%, 100% 55%, 50% 100%, 0 55%, 0 15%); background: conic-gradient(from var(--angle), var(--cyan), var(--violet), var(--pink), var(--lime), var(--cyan)); animation: spin 6s linear infinite; }
.shield-art::after { content: ""; position: absolute; inset: 6px; clip-path: inherit; background: var(--bg-2) url("assets/logo-mark.png") center / 62% no-repeat; }
.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details { overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font: 600 1rem var(--font-display); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem var(--font-mono); color: var(--cyan); transition: rotate .3s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; color: var(--pink); }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--muted); }
.faq details::details-content { height: 0; overflow: clip; transition: height .4s var(--ease), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.sell-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(24px, 4vw, 48px); position: relative; overflow: hidden; background: radial-gradient(circle at 0% 0%, rgb(34 216 255 / .18), transparent 50%), radial-gradient(circle at 100% 100%, rgb(196 71 255 / .25), transparent 50%), var(--bg-2); }
.sell-cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; mask: radial-gradient(circle at 70% 50%, #000, transparent 70%); pointer-events: none; }
.sell-cta > * { position: relative; }
.sell-cta h2 { margin: 0 0 6px; font: 800 clamp(1.6rem, 3vw, 2.4rem) var(--font-display); }

/* sell wizard */
.wizard { max-width: 760px; margin: 30px auto 0; padding: 28px; }
.wiz-steps { display: flex; gap: 8px; margin-bottom: 24px; }
.wiz-steps span { flex: 1; height: 4px; border-radius: 2px; background: rgb(255 255 255 / .08); }
.wiz-steps span.on { background: var(--grad); }
.wizard h2 { margin: 0 0 4px; font: 700 1.6rem var(--font-display); }
.wizard .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.fld { display: grid; gap: 6px; font: 600 .74rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fld input, .fld select, .fld textarea { height: 46px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line-2); background: rgb(0 0 0 / .35); color: var(--text); font: 500 .95rem var(--font-body); text-transform: none; letter-spacing: 0; }
.fld textarea { height: auto; padding: 12px 14px; resize: vertical; }
.fld select option { background: var(--bg-2); }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 0; border-color: var(--cyan); }
.fld input:user-invalid { border-color: var(--danger); }
.estimate { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-radius: 12px; border: 1px dashed var(--cyan); font-family: var(--font-mono); margin-bottom: 18px; }
.estimate b { color: var(--lime); font-size: 1.4rem; }
.wiz-nav { display: flex; justify-content: space-between; gap: 10px; }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 2; margin-top: 90px; border-top: 1px solid var(--line); background: linear-gradient(transparent, rgb(123 92 255 / .06)); }
.footer-grid { width: min(var(--wrap), 100%); margin: 0 auto; padding: 48px var(--gut) 24px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand img { height: auto; margin-bottom: 10px; }
.footer h4 { margin: 6px 0 12px; font: 600 .8rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.footer-grid a, .footer-grid .link-plain { display: block; padding: 4px 0; color: #cfc9f2; text-decoration: none; font-size: .9rem; }
.footer-grid a:hover, .footer-grid .link-plain:hover { color: var(--cyan); }
.footer-bottom { width: min(var(--wrap), 100%); margin: 0 auto; padding: 20px var(--gut) 30px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.pay-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.pay-badges span { padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line-2); font: 700 .74rem var(--font-mono); color: var(--muted); }

/* ---------- dialogs ---------- */
dialog { color: var(--text); padding: 0; border: 0; }
dialog::backdrop { background: rgb(4 3 16 / .72); backdrop-filter: blur(8px); }
.modal { width: min(980px, calc(100% - 32px)); max-height: calc(100svh - 40px); border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 40px 120px -20px rgb(196 71 255 / .35); overflow: auto; }
.small-modal { width: min(440px, calc(100% - 32px)); }
.modal[open], .palette[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.96); } }
.auth { display: grid; gap: 12px; padding: 30px; }
.auth-mark { margin: 0 auto; filter: drop-shadow(0 0 16px rgb(123 92 255 / .6)); }
.auth h3 { margin: 4px 0 0; font: 700 1.5rem var(--font-display); text-align: center; }
.auth > p { margin: 0; text-align: center; }
.oauth { display: grid; gap: 8px; margin-top: 8px; }
.oauth-btn { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line-2); background: rgb(255 255 255 / .03); font: 600 .9rem var(--font-display); }
.oauth-btn:hover { border-color: var(--cyan); background: rgb(34 216 255 / .06); }
.o-ic { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; font: 800 .8rem var(--font-display); color: #fff; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .8rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.drawer { margin: 0 0 0 auto; height: 100svh; max-height: 100svh; width: min(440px, 100%); background: var(--bg-2); border-left: 1px solid var(--line-2); display: flex; flex-direction: column; }
.drawer:not([open]) { display: none; }
.drawer[open] { animation: slide .4s var(--ease); }
@keyframes slide { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font: 700 1.25rem var(--font-display); }
.drawer-list { flex: 1; overflow: auto; padding: 14px 20px; display: grid; align-content: start; gap: 10px; }
.cart-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: rgb(255 255 255 / .02); }
.cart-item .thumb { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; }
.cart-item .thumb svg { width: 100%; height: 100%; }
.cart-item h4 { margin: 0; font: 600 .88rem/1.25 var(--font-display); }
.cart-item small { color: var(--muted); font-family: var(--font-mono); font-size: .74rem; }
.cart-item .rm { background: none; border: 0; color: var(--muted); }
.cart-item .rm:hover { color: var(--danger); }
.drawer-foot { padding: 18px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer-foot .row { display: flex; justify-content: space-between; font: 700 1.15rem var(--font-display); }
.drawer-foot .row.small { font: 500 .84rem var(--font-body); }
.cart-empty { text-align: center; color: var(--muted); padding: 50px 0; }
.palette { width: min(640px, calc(100% - 32px)); margin-top: 12vh; border-radius: 18px; background: rgb(13 11 38 / .94); border: 1px solid var(--line-2); backdrop-filter: blur(20px); box-shadow: 0 30px 100px -10px rgb(34 216 255 / .25); }
.palette input { width: 100%; padding: 20px 22px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); font: 500 1.05rem var(--font-body); outline: 0; }
.palette ul { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow: auto; }
.palette li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; cursor: pointer; }
.palette li small { margin-left: auto; color: var(--muted); font: 500 .74rem var(--font-mono); }
.palette li[aria-selected="true"] { background: linear-gradient(90deg, rgb(34 216 255 / .14), rgb(196 71 255 / .08)); box-shadow: inset 2px 0 0 var(--cyan); }
.palette li .ic { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: rgb(255 255 255 / .06); font-size: .8rem; }
.palette-hint { margin: 0; padding: 10px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .74rem; }

/* ---------- live chat ---------- */
.chat-fab { position: fixed; z-index: 70; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 18px; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 40px -10px var(--pink); transition: transform .3s var(--ease); }
.chat-fab:hover { transform: translateY(-3px) rotate(-4deg); }
.chat-ping { position: absolute; top: -3px; right: -3px; width: 14px; height: 14px; border-radius: 50%; background: var(--lime); border: 3px solid var(--bg); }
.chat { position: fixed; z-index: 71; right: 20px; bottom: 20px; width: min(370px, calc(100vw - 32px)); height: min(540px, calc(100svh - 120px)); display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: rgb(13 11 38 / .97); border: 1px solid var(--line-2); box-shadow: 0 40px 100px -20px rgb(0 0 0 / .9), 0 0 0 1px rgb(196 71 255 / .15); backdrop-filter: blur(20px); transform-origin: bottom right; animation: pop .35s var(--ease); }
.chat[hidden] { display: none; }
.chat header { display: flex; align-items: center; gap: 10px; padding: 14px; background: linear-gradient(100deg, rgb(196 71 255 / .25), rgb(34 216 255 / .15)); border-bottom: 1px solid var(--line); }
.chat header small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .74rem; }
.chat header .icon-btn { margin-left: auto; width: 34px; height: 34px; }
.chat-log { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: .88rem; line-height: 1.45; animation: rise .3s var(--ease); }
.msg.them { align-self: flex-start; background: rgb(255 255 255 / .06); border-bottom-left-radius: 4px; }
.msg.me { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 4px; }
.msg.typing { display: flex; gap: 4px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { translate: 0 -4px; opacity: .4; } }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick button { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: none; font-size: .78rem; }
.quick button:hover { border-color: var(--cyan); }
.chat-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; height: 42px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line-2); background: rgb(0 0 0 / .3); color: var(--text); font: inherit; outline: 0; }
.chat-input input:focus { border-color: var(--cyan); }
.chat-input button { width: 42px; border: 0; border-radius: 11px; background: var(--grad); color: #fff; }

/* toasts */
.toasts { position: fixed; z-index: 200; bottom: 20px; left: 50%; translate: -50% 0; display: grid; gap: 10px; justify-items: center; pointer-events: none; }
.toast { padding: 11px 18px; border-radius: 12px; background: rgb(13 11 38 / .95); border: 1px solid var(--cyan); box-shadow: 0 0 30px rgb(34 216 255 / .25); font: 500 .88rem var(--font-body); animation: toast-in .4s var(--ease); }
.toast.out { animation: toast-out .3s forwards; }
@keyframes toast-in { from { opacity: 0; translate: 0 20px; } }
@keyframes toast-out { to { opacity: 0; translate: 0 10px; } }

/* view transitions */
::view-transition-old(root) { animation: vt-out .25s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .35s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; translate: 0 -10px; } }
@keyframes vt-in { from { opacity: 0; translate: 0 14px; } }
::view-transition-group(*) { animation-duration: .4s; animation-timing-function: var(--ease); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hide-md { display: none; }
  .game-tiles { grid-template-columns: repeat(3, 1fr); }
  .rail { grid-auto-columns: minmax(260px, 31%); }
}
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-logo { display: none; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .browse { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; z-index: 80; top: 0; width: min(340px, 88vw); max-height: none; height: 100svh; border-radius: 0 18px 18px 0; translate: -105% 0; transition: translate .4s var(--ease); background: var(--bg-2); }
  .filters.open { translate: 0 0; box-shadow: 40px 0 100px rgb(0 0 0 / .7); }
  .filters .f-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; }
  .filter-toggle { display: inline-flex; }
  .offer { grid-template-columns: 1fr; }
  .buybox { position: static; }
  .shield-band { grid-template-columns: 1fr; }
  .shield-art { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .catbar { top: 67px; }
}
@media (max-width: 760px) {
  .utility p { display: none; }
  .utility { justify-content: flex-end; }
  .global-search { display: none; }
  .games-btn { padding: 0 10px; font-size: 0; gap: 0; }
  .games-btn svg:first-child { width: 20px; height: 20px; }
  .games-btn svg:last-child { display: none; }
  #soundToggle, #notifBtn { display: none; }
  .brand-word { font-size: 1.15rem; }
  .brand-mark { height: 32px; }
  #signInBtn { padding: 0 12px; }
  .game-tiles { grid-template-columns: repeat(2, 1fr); }
  .game-tile.big { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
  .trust, .steps { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: 82%; }
  .attr { grid-template-columns: repeat(2, 1fr); }
  .grid.list .card { flex-direction: column; }
  .grid.list .cover { width: 100%; aspect-ratio: 16 / 8.5; }
  .grid.list .card-body { display: flex; }
  .grid.list .stats { grid-template-columns: repeat(2, 1fr); margin-bottom: 12px; }
  .grid.list .card-foot { flex-direction: row; align-items: flex-end; }
  .hero-search { flex-wrap: wrap; }
  .hero-search select { flex: 1; }
  .hero-search .btn { width: 100%; }
  .profile { grid-template-columns: auto 1fr; }
  .profile > :last-child { grid-column: 1 / -1; }
  .wizard .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .games-menu-grid { grid-template-columns: 1fr; }
  .rating-sum { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { animation: none !important; }
}

/* ============================================================
   v3: calmer cards, tier art, legibility
   ============================================================ */
.card { background: #110e2c; border-color: rgb(150 140 255 / .14); }
.card::before { display: none; }
.card.featured { box-shadow: 0 0 0 1px rgb(255 209 102 / .35); }
.card:hover { box-shadow: 0 24px 50px -24px rgb(0 0 0 / .9), 0 0 0 1px rgb(34 216 255 / .35); }
.cover { aspect-ratio: 16 / 9; }
.tier-pill { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; font: 700 .74rem var(--font-display); letter-spacing: .02em; background: rgb(7 6 26 / .7); backdrop-filter: blur(6px); border: 1px solid currentColor; }
.tier-pill.t0 { color: #2ee6a6; } .tier-pill.t1 { color: #ffb547; } .tier-pill.t2 { color: #6fb4ff; } .tier-pill.t3 { color: #d48bff; } .tier-pill.t4 { color: #ffd166; }
.corner { position: absolute; right: 52px; top: 12px; padding: 4px 10px; border-radius: 999px; font: 700 .74rem var(--font-display); }
.corner.off { background: var(--danger); color: #fff; }
.corner.hot { background: #ffd166; color: #1d0820; }
.card-body { padding: 16px 18px 16px; gap: 0; }
.card h3 { margin: 0 0 8px; font: 600 1.06rem/1.35 var(--font-display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card h3 a { color: var(--text); text-decoration: none; }
.card-facts { display: flex; gap: 14px; flex-wrap: wrap; margin: 0 0 4px; font-size: .9rem; color: var(--muted); }
.card-facts b { color: var(--text); font-weight: 600; }
.card .card-meta { display: block; margin: 0 0 14px; font: 500 .86rem var(--font-body); letter-spacing: 0; color: var(--muted); }
.instant { color: var(--lime); }
.card-foot { align-items: center; }
.price { display: flex; align-items: baseline; gap: 8px; font-size: 1.5rem; text-shadow: none; color: #fff; }
.price s { display: inline; margin: 0; font: 500 .86rem var(--font-body); color: var(--muted); }
.add { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); background: rgb(255 255 255 / .04); color: var(--text); font-size: 1rem; }
.add:hover { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -8px var(--pink); }
.add.in-cart { border-color: var(--lime); color: var(--lime); background: rgb(139 255 106 / .1); }
.seller-line { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .86rem; }
.seller-line .stars { font: 600 .86rem var(--font-body); }
.grid.list .card-body { display: grid; grid-template-columns: 1fr auto; }
.grid.list .card-facts, .grid.list .card-meta { grid-column: 1; }
.grid.list .card-foot { flex-direction: row; align-items: center; grid-row: 1 / span 3; }
.grid.list .cover { width: 220px; }
.grid.list h3 { min-height: 0; }

/* top picks spotlight */
.spotlight:empty { display: none; }
.spot-h { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.spot-h h2, .all-h { margin: 0; font: 700 1.4rem var(--font-display); }
.all-h { margin: 34px 0 6px; }
.spot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.spot { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; text-decoration: none; background: #120f30; border: 1px solid rgb(255 209 102 / .3); transition: transform .3s var(--ease), box-shadow .3s; }
.spot:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -20px rgb(255 209 102 / .35); }
.spot-art { position: relative; aspect-ratio: 16 / 8; }
.spot-art svg { width: 100%; height: 100%; }
.spot-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.spot-kicker { font: 700 .78rem var(--font-display); color: #ffd166; text-transform: uppercase; letter-spacing: .08em; }
.spot h3 { margin: 0; font: 700 1.15rem/1.3 var(--font-display); color: var(--text); }
.spot-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; }
.spot-seller { font-size: .86rem; color: var(--muted); }

/* reviews + seller bio */
.review .vp { font: 600 .74rem var(--font-body); color: var(--lime); }
.review .reply { margin-top: 10px; padding: 10px 12px; border-left: 2px solid var(--cyan); background: rgb(34 216 255 / .06); border-radius: 0 10px 10px 0; font-size: .88rem; }
.bio { grid-column: 1 / -1; }
.bio p { margin: 0 0 10px; color: #d6d1f5; max-width: 70ch; }
.bio-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.desc h4 { margin: 18px 0 6px; font: 600 1rem var(--font-display); }
.desc p, .desc ul { color: #ddd8f7; }

/* calmer surroundings */
.stats dt, .attr dt, .f-group h4, .kicker { letter-spacing: .08em; }
.hero-stats dt { letter-spacing: .08em; }
.check, .switch { font-size: .95rem; }
@media (max-width: 1020px) { .spot-row { grid-template-columns: 1fr; } .spot { flex-direction: row; } .spot-art { width: 42%; aspect-ratio: auto; } }
@media (max-width: 560px) { .spot { flex-direction: column; } .spot-art { width: 100%; aspect-ratio: 16 / 8; } body { font-size: 16px; } .card h3 { font-size: 1.1rem; } }
@media (max-width: 1020px) { .spot-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78%, 420px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; } .spot { scroll-snap-align: start; flex-direction: column; } .spot-art { width: 100%; aspect-ratio: 16 / 8; } }

.game-tile.request { border: 1.5px dashed var(--line-2); background: rgb(255 255 255 / .02); color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.game-tile.request:hover { border-color: var(--cyan); }
.req-plus { position: absolute; top: 14px; right: 18px; font-size: 2.4rem; color: var(--cyan); line-height: 1; }

/* ============================================================
   v4 · items, coins and boosting
   ============================================================ */
.price .per { font: 500 .78rem var(--font-body); color: var(--muted); }
.card .price { flex-wrap: wrap; row-gap: 2px; }
.card.k-items .cover, .card.k-currency .cover, .card.k-boosting .cover { background: #090722; }
a.add { display: grid; place-items: center; text-decoration: none; font-size: 1.2rem; }

/* home: shop by category */
.cat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-tile { --acc: var(--violet); position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; text-decoration: none; overflow: hidden; transition: transform .25s var(--ease), border-color .25s; }
.cat-tile::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(var(--acc), transparent 70%); opacity: .25; transition: opacity .3s; }
.cat-tile:hover { transform: translateY(-4px); border-color: var(--acc); }
.cat-tile:hover::after { opacity: .45; }
.cat-tile.k-items { --acc: #d48bff; } .cat-tile.k-currency { --acc: var(--gold); } .cat-tile.k-boosting { --acc: var(--cyan); }
.ct-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgb(255 255 255 / .06); font-size: 1.5rem; }
.cat-tile h3 { margin: 6px 0 0; font: 700 1.25rem var(--font-display); }
.cat-tile p { margin: 0; color: var(--muted); font-size: .92rem; }
.ct-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 14px; font-size: .86rem; color: var(--muted); }
.ct-foot b { color: var(--text); font-family: var(--font-display); }

/* browse: coin amount + level calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 28px; align-items: center; padding: 22px 24px; margin-top: 24px; }
.calc h2 { margin: 2px 0 0; font: 700 1.3rem var(--font-display); }
.calc > p { grid-column: 1 / -1; margin: 0; }
.calc-in { display: grid; gap: 10px; justify-items: end; }
.amount { display: flex; align-items: center; height: 52px; border-radius: 12px; border: 1px solid var(--line-2); background: rgb(0 0 0 / .35); overflow: hidden; }
.amount:focus-within { border-color: var(--gold); }
.amount input { width: 120px; height: 100%; padding: 0 14px; border: 0; background: none; color: #fff; font: 700 1.4rem var(--font-display); outline: 0; }
.amount span { padding: 0 14px; color: var(--gold); font: 600 .9rem var(--font-mono); }
.presets { display: flex; gap: 6px; flex-wrap: wrap; }
.presets .chip { padding: 5px 11px; }
.lv-pick { display: grid; grid-template-columns: 110px auto 110px; gap: 10px; align-items: end; }
.lv-pick .fld input { font: 700 1.2rem var(--font-display); text-align: center; }
.lv-arrow { padding-bottom: 12px; color: var(--cyan); font-size: 1.3rem; }
.lv-bar { grid-column: 1 / -1; position: relative; height: 6px; border-radius: 3px; background: rgb(255 255 255 / .08); }
.lv-bar i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--grad); box-shadow: 0 0 12px var(--cyan); transition: left .25s var(--ease), width .25s var(--ease); }
.lv-pick.small { grid-template-columns: 1fr auto 1fr; }

/* browse: coin seller table */
.coin-table { display: grid; gap: 8px; }
.coin-head, .coin-row { display: grid; grid-template-columns: minmax(170px, 1.6fr) repeat(4, minmax(0, .8fr)) minmax(0, .8fr) minmax(170px, 1.2fr); gap: 12px; align-items: center; }
.coin-head { padding: 0 16px; font: 600 .74rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.coin-head span:last-child { text-align: right; }
.coin-row { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, #161339, #0c0a22); cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
.coin-row:hover { border-color: var(--gold); transform: translateY(-2px); }
.coin-row.dim { opacity: .55; }
.cr-seller { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.cr-seller b { display: block; font: 600 .95rem var(--font-display); }
.cr-seller small, .cr-cell small { display: block; color: var(--muted); font-size: .78rem; }
.cr-cell small { display: none; }
.cr-cell b { font: 600 .92rem var(--font-body); }
.cr-unit b { color: var(--gold); font: 700 1.05rem var(--font-display); }
.cr-buy { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.cr-total { font: 700 1.1rem var(--font-display); white-space: nowrap; }
.coin-row.dim .cr-total { font: 500 .82rem var(--font-mono); color: var(--muted); }

/* offer: configurator in the buy box */
.cfg { display: grid; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgb(0 0 0 / .25); }
.cfg-l { font: 600 .74rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stepper { display: grid; grid-template-columns: 46px 1fr 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); overflow: hidden; }
.stepper button { border: 0; background: rgb(255 255 255 / .05); color: var(--text); font-size: 1.3rem; }
.stepper button:hover { background: rgb(123 92 255 / .3); }
.stepper input { min-width: 0; border: 0; background: rgb(0 0 0 / .3); color: #fff; text-align: center; font: 700 1.15rem var(--font-display); outline: 0; }
.cfg .amount input { flex: 1; width: auto; }
.seg.wide button { flex: 1; width: auto; padding: 0 10px; font: 600 .86rem var(--font-body); color: var(--text); }
.seg.wide small { color: var(--muted); font-size: .74rem; }
.check.opt span:first-of-type small { display: block; color: var(--muted); font-size: .78rem; }
.ci-price { display: block; margin-top: 2px; font: 700 .95rem var(--font-display); color: var(--cyan); }
#bbSub:empty { display: none; }

/* sell: choose a listing type, preview */
.kind-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.kind { position: relative; display: grid; gap: 4px; padding: 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgb(0 0 0 / .25); cursor: pointer; transition: border-color .2s, background .2s; }
.kind input { position: absolute; opacity: 0; }
.kind:has(input:checked) { border-color: var(--pink); background: rgb(196 71 255 / .12); box-shadow: 0 0 0 1px var(--pink) inset; }
.kind:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }
.kind .k-ic { font-size: 1.4rem; }
.kind b { font: 600 .98rem var(--font-display); }
.kind small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.fld.modes { border: 0; padding: 0; margin: 0; }
.fld.modes legend { padding: 0; margin-bottom: 6px; }
.fld.modes .check { text-transform: none; letter-spacing: 0; font: 500 .95rem var(--font-body); color: var(--text); }
.estimate small { font: 500 .8rem var(--font-body); color: var(--muted); }
.preview-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 24px; margin: 18px 0; align-items: start; }
.preview { pointer-events: none; }
.preview .card { transform: none; }
.preview-wrap .estimate { margin: 16px 0 8px; }

@media (max-width: 1020px) {
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .calc-in { justify-items: start; }
  .coin-head { display: none; }
  .coin-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; }
  .cr-seller, .cr-buy { grid-column: 1 / -1; }
  .cr-cell small { display: block; }
  .cr-buy { justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--line); }
  .kind-pick { grid-template-columns: repeat(2, 1fr); }
  .preview-wrap { grid-template-columns: 1fr; }
  .preview { max-width: 300px; }
}
@media (max-width: 560px) {
  .cat-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-tile { padding: 16px; }
  .cat-tile p { font-size: .84rem; }
  .ct-foot { flex-direction: column; gap: 2px; }
  .lv-pick { grid-template-columns: 1fr auto 1fr; }
  .amount input { width: 100px; }
}
.gallery.compact .main { aspect-ratio: 16 / 7; }
.btn:disabled { opacity: .4; filter: saturate(.3); cursor: not-allowed; box-shadow: none; }

/* ============================================================
   v5 · checkout, orders, phone buy bar
   ============================================================ */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; padding-top: 18px; }
.co-main { display: grid; gap: 16px; }
.co-step { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 22px; }
.co-step h2 { margin: 4px 0 2px; font: 700 1.25rem var(--font-display); }
.co-step .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0 6px; }
.co-n { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--grad); font: 700 1rem var(--font-display); }
.pay-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 8px; }
.agree { align-items: flex-start; margin: 10px 0 16px; }
.agree input { flex: none; margin-top: 3px; }
.co-pay { height: 54px; font-size: 1.05rem; }
.co-lock { text-align: center; margin: 10px 0 0; }
.co-sum { position: sticky; top: 130px; padding: 20px; display: grid; gap: 14px; }
.co-sum h3 { margin: 0; font: 700 1.1rem var(--font-display); }
.sum-lines { display: grid; gap: 10px; max-height: 320px; overflow: auto; }
.sum-line { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; font-size: .9rem; }
.sum-line .thumb, .order-line .thumb, .order-row .thumb { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; }
.sum-line .thumb svg, .order-line .thumb svg, .order-row .thumb svg { width: 100%; height: 100%; }
.sum-line b { display: block; font: 600 .88rem/1.25 var(--font-display); }
.sum-line small { color: var(--muted); font-size: .78rem; }
.sum-line > span:last-child { font-weight: 600; }
.promo { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.promo input { height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgb(0 0 0 / .3); color: var(--text); font: 500 .9rem var(--font-mono); text-transform: uppercase; }
.sum-rows { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .92rem; }
.sum-rows div { display: flex; justify-content: space-between; }
.sum-rows small { color: var(--muted); }
.sum-rows .ok b, .sum-rows b.ok { color: var(--lime); }
.sum-total { padding-top: 10px; border-top: 1px solid var(--line); font: 700 1.2rem var(--font-display); }
.sum-total b { color: #fff; }

/* order page */
.order-head { display: grid; gap: 22px; padding: 26px; margin-top: 18px; }
.order-head h1 { margin: 4px 0; font: 700 clamp(1.5rem, 3vw, 2.1rem) var(--font-display); }
.track { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; counter-reset: s; }
.track li { position: relative; padding-top: 26px; font-size: .86rem; color: var(--muted); }
.track li span { position: absolute; top: 4px; left: 0; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--bg); z-index: 1; }
.track li::before { content: ""; position: absolute; top: 10px; left: 0; right: 0; height: 2px; background: var(--line-2); }
.track li.done::before, .track li.now::before { background: var(--grad); }
.track li.done span { background: var(--cyan); border-color: var(--cyan); }
.track li.now span { border-color: var(--pink); box-shadow: 0 0 0 5px rgb(196 71 255 / .25); animation: pulse 1.6s infinite; }
.track li.done, .track li.now { color: var(--text); font-weight: 600; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgb(196 71 255 / 0); } }
.order-line { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 16px; }
.order-line a { text-decoration: none; }
.order-line small { display: block; }
.order-line p { margin: 6px 0 0; }
.order-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.orders { display: grid; gap: 10px; }
.order-row { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 14px; align-items: center; padding: 14px 16px; text-decoration: none; }
.order-row small { display: block; }
.o-status { padding: 3px 10px; border-radius: 999px; font: 600 .78rem var(--font-mono); border: 1px solid var(--line-2); }
.o-status.s3 { color: var(--lime); border-color: currentColor; }
.o-status.s2 { color: var(--gold); border-color: currentColor; }

/* phone buy bar */
.buybar { display: none; }
@media (max-width: 1020px) {
  .checkout { grid-template-columns: 1fr; }
  .co-sum { position: static; order: -1; }
  .pay-pick { grid-template-columns: 1fr 1fr; }
  .buybar { display: flex; position: fixed; z-index: 65; left: 0; right: 0; bottom: 0; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgb(13 11 38 / .92); backdrop-filter: blur(14px); border-top: 1px solid var(--line-2);
    translate: 0 110%; transition: translate .35s var(--ease); }
  .buybar.on { translate: 0 0; }
  .buybar div { min-width: 0; }
  .buybar small { display: block; color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar b { font: 700 1.3rem var(--font-display); }
  .buybar .btn { flex: none; }
  body.has-buybar .chat-fab { translate: 0 -76px; }
  .chat-fab { transition: transform .3s var(--ease), translate .35s var(--ease); }
}
@media (max-width: 560px) {
  .co-step { grid-template-columns: 1fr; padding: 18px; }
  .co-step .grid-2 { grid-template-columns: 1fr; }
  .track { font-size: .78rem; }
  .track li { font-size: .74rem; padding-right: 6px; }
  .order-line { grid-template-columns: 44px 1fr; }
  .order-line .btn { grid-column: 1 / -1; }
  .order-row { grid-template-columns: 44px 1fr auto; }
  .order-row .o-status { display: none; }
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.grid-2.tight { margin: 0 0 6px; }
.fld textarea { font: 500 .95rem var(--font-body); }
.preview-wrap { grid-template-columns: 280px minmax(0, 1fr); }
.pv-side { min-width: 0; }
.pv-side .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.fld input, .fld select, .fld textarea { min-width: 0; width: 100%; }
@media (max-width: 1020px) { .preview-wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pv-side .grid-2 { grid-template-columns: 1fr; } }
