/* storefront.css — the "Galaxy" storefront design for rxapp.live (/ and /tikspark).
   Ported from the 2026-09-10 design preview (website-design-preview/) onto the live
   pages. Plain CSS, no Tailwind: everything the pages and their JS-built markup use
   is defined here.

   Contracts shared with the rest of the site:
   - Theme: html[data-theme="dark"] + localStorage 'shop_theme' (same as shop-theme.js).
   - Language: html.lang-th shows [data-lang="th"], hides [data-lang="en"].
   Cloudflare caches /static/* at the edge — bump ?v= in shop.html + sales.html after
   every change to this file. */

@font-face{font-family:'IBM Plex Sans Thai';src:url('../fonts/ibm-plex-sans-thai/IBMPlexSansThai-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:'IBM Plex Sans Thai';src:url('../fonts/ibm-plex-sans-thai/IBMPlexSansThai-SemiBold.ttf') format('truetype');font-weight:500 600;font-display:swap}
@font-face{font-family:'IBM Plex Sans Thai';src:url('../fonts/ibm-plex-sans-thai/IBMPlexSansThai-Bold.ttf') format('truetype');font-weight:700 900;font-display:swap}

:root{
  --bg:#f5f6f9; --paper:#fff; --ink:#191925; --muted:#646777; --line:#e3e5ed;
  --pink:#d5247a; --pink-hover:#b71766; --tint:#fff0f7; --soft:#eceef4;
  --shadow:0 10px 35px #1e18310a;
  --ok:#0f8a5f; --ok-tint:#e7f7f0; --gold:#b7791f; --gold-tint:#fdf5e4;
  --danger:#d92d20; --violet:#6d4ae0; --violet-tint:#f1edff;
  color-scheme:light;
}
html[data-theme="dark"]{
  --bg:#11111b; --paper:#1c1c29; --ink:#f9f7ff; --muted:#b4b3c6; --line:#343446;
  --pink:#ff74b6; --pink-hover:#ff9aca; --tint:#332032; --soft:#282838;
  --shadow:0 10px 35px #0000002e;
  --ok:#4fd39a; --ok-tint:#16362a; --gold:#f5c25b; --gold-tint:#3a2f17;
  --danger:#ff7a70; --violet:#b3a0ff; --violet-tint:#29224a;
  color-scheme:dark;
}

/* ---------- language switch ----------
   Same html.lang-th contract as the other shop pages. !important because any
   component rule like `.x span{display:flex}` would otherwise tie on specificity and
   un-hide the other language. The visible language keeps its natural display. */
html:not(.lang-th) [data-lang="th"]{display:none!important}
html.lang-th [data-lang="en"]{display:none!important}

/* ---------- base ---------- */
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:20px;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.65 'IBM Plex Sans Thai','Segoe UI',Tahoma,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
button,input,a{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
a{color:inherit;text-decoration:none}
button{cursor:pointer;border:0;color:inherit;background:none}
input{color:inherit}
img{max-width:100%;display:block}
h1,h2,h3,p{margin:0}
h1,h2,h3{line-height:1.35}
h1{font-size:clamp(34px,4vw,54px);font-weight:800;letter-spacing:-1.5px}
h2{font-size:30px;font-weight:800;letter-spacing:-.65px}
h3{font-size:19px;font-weight:700}
p{color:var(--muted)}
small{font-size:13px}
code{font-size:.9em;background:var(--tint);color:var(--pink);padding:1px 6px;border-radius:5px}
.container{width:min(1200px,calc(100% - 64px));margin-inline:auto}
.icon{width:20px;height:20px;display:inline-block;vertical-align:middle;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.muted{color:var(--muted)}
.pink{color:var(--pink)}
.hidden,[hidden]{display:none!important}
:focus-visible{outline:3px solid #7c70ee;outline-offset:4px}
.skip{position:fixed;top:-80px;left:20px;z-index:999;background:var(--paper);padding:12px;border-radius:8px}
.skip:focus{top:12px}
.eyebrow{font-size:12px;font-weight:800;letter-spacing:2px;text-transform:uppercase;display:flex;align-items:center;gap:9px}
.eyebrow:before{content:'';width:22px;height:3px;background:currentColor;display:block}
.eyebrow.center{justify-content:center}

/* ---------- buttons / links / badges ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:11px 19px;border-radius:10px;font-size:14px;font-weight:700;border:1px solid var(--line);background:var(--paper);white-space:nowrap;transition:background .15s,transform .15s,border-color .15s}
.btn:hover{background:var(--soft)}
.btn:disabled{opacity:.55;cursor:not-allowed}
.btn.primary{background:var(--pink);color:#fff;border-color:transparent}
.btn.primary:hover{background:var(--pink-hover)}
html[data-theme="dark"] .btn.primary{color:#211323}
.btn.ink{background:#242334;color:#fff;border-color:#242334}
.btn.ink:hover{background:#34324a}
html[data-theme="dark"] .btn.ink{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.btn.ghost{background:transparent}
.btn.large{min-height:54px;font-size:16px;padding-inline:23px}
.btn.block{width:100%}
.btn .icon{width:18px;height:18px}
.text-link{display:inline-flex;align-items:center;gap:7px;color:var(--pink);font-size:14px;font-weight:700}
.text-link:hover{text-decoration:underline}
.text-link .icon{width:18px;height:18px}
.actions{display:flex;gap:12px;flex-wrap:wrap}
.badge{display:inline-flex;align-items:center;gap:5px;border-radius:5px;padding:4px 8px;font-size:12px;font-weight:700;line-height:1.4;background:var(--soft);color:var(--muted);white-space:nowrap}
.badge:empty{display:none}
.badge.pink{background:var(--tint);color:var(--pink)}
.badge.ok{background:var(--ok-tint);color:var(--ok)}
.badge.gold{background:var(--gold-tint);color:var(--gold)}
.badge.violet{background:var(--violet-tint);color:var(--violet)}
.badge .icon{width:13px;height:13px}

/* ---------- header ---------- */
.site-header{background:var(--paper);border-bottom:1px solid var(--line);position:relative;z-index:30}
.header-inner{min-height:84px;display:flex;align-items:center;gap:34px}
.brand{display:flex;align-items:center;gap:10px;flex-shrink:0}
.brand img{width:42px;height:42px;border-radius:12px;object-fit:cover}
.brand span{font-size:19px;font-weight:800;letter-spacing:-.6px;line-height:1.1}
.brand small{display:block;font-size:10px;letter-spacing:2.3px;margin-top:4px;color:var(--muted)}
.brand.spark span{font-size:26px;letter-spacing:-1px}
.brand.spark em{font-style:normal;color:var(--pink)}
.main-nav{display:flex;align-items:center;gap:26px;font-size:14px;font-weight:600;flex:1;min-width:0}
.main-nav a{color:var(--muted);padding-block:28px;position:relative;white-space:nowrap}
.main-nav a:hover,.main-nav a[aria-current=page]{color:var(--pink)}
.main-nav a[aria-current=page]:after{content:'';height:3px;background:var(--pink);position:absolute;bottom:0;left:0;right:0;border-radius:3px}
.header-tools{margin-left:auto;display:flex;align-items:center;gap:8px}
.icon-btn{display:grid;place-items:center;width:38px;height:38px;background:transparent;color:var(--muted);border-radius:8px}
.icon-btn:hover{background:var(--soft);color:var(--ink)}
.lang-group{display:flex;align-items:center;gap:1px}
.lang-group span{color:var(--line)}
.lang-button{background:transparent;padding:7px;font-size:12px;font-weight:700;color:var(--muted)}
.lang-button[aria-pressed=true]{color:var(--pink)}
/* theme toggle: moon while light (click → dark), sun while dark */
.theme-sun{display:none}
html[data-theme="dark"] .theme-sun{display:inline-block}
html[data-theme="dark"] .theme-moon{display:none}

/* account dropdown (JS toggles .hidden on the menu) */
.account-wrap{position:relative}
.account-trigger{display:inline-flex;align-items:center;gap:6px;padding:4px 6px;border-radius:10px}
.account-trigger:hover{background:var(--soft)}
.account-trigger .chev{width:14px;height:14px;color:var(--muted)}
.avatar{position:relative;display:inline-block}
.avatar img,.avatar .avatar-fallback{width:34px;height:34px;border-radius:50%;border:1px solid var(--line);object-fit:cover}
.avatar .avatar-fallback{display:grid;place-items:center;background:var(--soft);color:var(--muted)}
.avatar .avatar-fallback .icon{width:18px;height:18px}
.pro-pill{position:absolute;right:-6px;bottom:-4px;background:var(--pink);color:#fff;font-size:9px;font-weight:800;letter-spacing:.4px;line-height:1.3;padding:1px 5px;border-radius:5px}
html[data-theme="dark"] .pro-pill{color:#211323}
.account-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:236px;background:var(--paper);border:1px solid var(--line);border-radius:12px;box-shadow:0 18px 45px #1e183126;padding:6px;z-index:50}
.account-menu a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;font-size:14px;font-weight:600;color:var(--ink)}
.account-menu a:hover{background:var(--tint);color:var(--pink)}
.account-menu a .icon{width:17px;height:17px;color:var(--muted)}
.account-menu a:hover .icon{color:var(--pink)}
.account-menu .sep{height:1px;background:var(--line);margin:5px 4px}
.account-menu .small{font-size:12px}
.nav-pro-badge{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:8px 13px;border-radius:10px;font-size:13px;font-weight:800;color:var(--pink);background:var(--tint);border:1px solid var(--line)}
.nav-pro-badge .icon{width:16px;height:16px}

/* Homepage wallet stays visible alongside account controls; amounts are always USD. */
.shop-header .header-inner{column-gap:20px}
.shop-header .header-tools{margin-left:0;flex-shrink:0}
.nav-wallet{display:flex;align-items:center;gap:9px;max-width:210px;min-width:126px;padding:8px 11px;border:1px solid var(--line);border-radius:10px;background:var(--tint);color:var(--pink);flex-shrink:0}
.nav-wallet:hover{border-color:var(--pink)}
.nav-wallet .icon{width:19px;height:19px}
.nav-wallet-copy{display:flex;flex-direction:column;min-width:0;line-height:1.4}
.nav-wallet-label{font-size:10px;font-weight:600;color:var(--muted)}
.nav-wallet strong{font-size:13px;font-weight:800;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
@media(max-width:1250px){.shop-header .main-nav .optional{display:none}}
@media(min-width:581px) and (max-width:850px){
  .shop-header .header-inner{flex-wrap:wrap;min-height:0;gap:0 12px;padding-top:12px}
  .shop-header .nav-wallet{margin-left:auto;max-width:190px}
  .shop-header .header-tools{margin-left:auto}
  .shop-header .main-nav{order:3;flex:0 0 100%;gap:20px;overflow-x:auto;scrollbar-width:none;margin-top:6px}
  .shop-header .main-nav a{padding-block:10px 12px}
}

/* ---------- store hero ---------- */
.shop-hero{margin-top:32px;display:grid;grid-template-columns:1.13fr 1fr;min-height:300px;border-radius:20px;overflow:hidden;background:#1a182b;color:#fff;position:relative}
html[data-theme="dark"] .shop-hero{box-shadow:0 0 0 1px var(--line)}
.shop-hero-copy{padding:34px 38px;position:relative;z-index:2}
.shop-hero .eyebrow{color:#ff88bd;margin-bottom:15px}
.shop-hero h1{font-size:42px;letter-spacing:-.8px;line-height:1.4}
.shop-hero h1 .l1{color:#ff7db7}
.shop-hero h1 .l2{color:#fff}
.shop-hero p{color:#c7c4d8;font-size:15px;margin-top:13px;max-width:470px}
.shop-hero .text-link{color:#ffc0dd;margin-top:18px}
.hero-covers{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;align-items:center;padding:25px 27px 25px 0;position:relative}
.hero-covers:before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at center,#ab398b54,transparent 70%)}
.hero-cover{position:relative;height:233px;overflow:hidden;border:1px solid #ffffff33;border-radius:13px;background:#272338;box-shadow:0 12px 26px #0005}
.hero-cover:first-child{transform:rotate(-6deg) translateY(8px)}
.hero-cover:nth-child(2){height:264px;z-index:1;transform:translateY(-1px)}
.hero-cover:last-child{transform:rotate(6deg) translateY(8px)}
.hero-cover img{width:100%;height:100%;object-fit:cover}
.hero-cover:after{content:'';position:absolute;inset:50% 0 0;background:linear-gradient(transparent,#080813e8)}
.hero-cover span{position:absolute;bottom:12px;left:12px;right:7px;color:#fff;z-index:1;font-size:14px;font-weight:800;line-height:1.3}
.quick-paths{display:grid;grid-template-columns:repeat(3,1fr);padding:22px 0 25px;border-bottom:1px solid var(--line);gap:30px}
.quick-path{display:flex;align-items:center;gap:13px;font-size:14px}
.quick-path .icon{width:24px;height:24px;color:var(--pink)}
.quick-path strong{display:block;font-size:14px}
.quick-path small{color:var(--muted);display:block}
.quick-path:hover strong{color:var(--pink)}

/* ---------- sections ---------- */
.section{padding:58px 0}
.section.compact{padding:34px 0 50px}
.section-title{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:23px}
.section-title h2{font-size:28px}
.section-title p{font-size:14px;margin-top:5px}
.section-title .eyebrow{color:var(--pink);margin-bottom:12px}

/* ---------- catalog ---------- */
.catalog-bar{display:flex;gap:18px;justify-content:space-between;align-items:center;margin-bottom:24px}
.filters{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.filter{font-size:14px;font-weight:600;padding:9px 15px;background:transparent;color:var(--muted);border-radius:8px;border:1px solid var(--line);display:inline-flex;align-items:center;gap:6px}
.filter .count{font-size:12px;opacity:.65;font-weight:700}
.filter[aria-pressed=true]{background:#282436;color:#fff;border-color:#282436}
html[data-theme="dark"] .filter[aria-pressed=true]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.filter:hover{border-color:var(--pink)}
.search{display:flex;align-items:center;gap:10px;min-width:280px;padding:10px 14px;border:1px solid var(--line);border-radius:9px;background:var(--paper);color:var(--muted)}
.search input{border:0;outline:0;width:100%;min-width:0;background:none;font-size:14px}
.search input::-webkit-search-cancel-button{cursor:pointer}
.search:focus-within{outline:2px solid #7c70ee;outline-offset:2px}
.catalog-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.game-card{min-width:0;background:var(--paper);border:1px solid var(--line);border-radius:15px;overflow:hidden;box-shadow:var(--shadow);transition:transform .15s,box-shadow .15s,border-color .15s;display:flex;flex-direction:column}
.game-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px #1e183115}
.game-card.own{border-color:#d9cdf5}
html[data-theme="dark"] .game-card.own{border-color:#43386b}
.cover-link{display:block;position:relative;aspect-ratio:1.2;overflow:hidden;background:var(--soft)}
.cover-link img{width:100%;height:100%;object-fit:cover;transition:transform .25s}
.cover-link:hover img{transform:scale(1.035)}
.cover-media{position:relative}
.cover-slides{display:flex;width:100%;height:100%;transition:transform .4s ease}
.cover-slides img{display:block;flex:0 0 100%;min-width:100%;width:100%;height:100%;object-fit:cover}
.cover-media.has-gallery .cover-link:hover img{transform:none}
.cover-controls{position:absolute;inset:0;pointer-events:none}
.cover-controls[hidden]{display:none}
.cover-controls button{position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #ffffff80;border-radius:50%;background:#201b30b8;color:white;box-shadow:0 2px 9px #0003;pointer-events:auto;opacity:0;transition:opacity .15s,background .15s;font-size:29px;line-height:1}
.cover-controls .cover-prev{left:8px}.cover-controls .cover-next{right:8px}
.game-card:hover .cover-controls button,.game-card:focus-within .cover-controls button{opacity:1}
.cover-controls button:hover{background:#201b30ed}
.cover-controls button:focus-visible{opacity:1;outline:3px solid #fff;outline-offset:2px}
.game-card .cover-controls button:disabled{opacity:.35;pointer-events:none}
.cover-image-count{position:absolute;bottom:11px;right:11px;border-radius:6px;background:#201b30c9;color:#fff;padding:5px 7px;font-size:11px;font-weight:700;line-height:18px}
.cover-announcement{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(hover:none),(pointer:coarse){.cover-controls button{opacity:1;width:44px;height:44px}.cover-media.has-gallery .cover-hint{display:none}}
@media(max-width:600px){.cover-media.has-gallery .cover-hint{display:none}.cover-image-count{bottom:7px;right:7px;font-size:10px;padding:3px 6px}}
@media(prefers-reduced-motion:reduce){.cover-controls button{opacity:1}}
.cover-fallback{position:absolute;inset:0;display:none;align-items:center;justify-content:center;font-size:64px;font-weight:800;color:#fff;background:linear-gradient(135deg,#6d4ae0,#d5247a)}
.cover-link.no-image .cover-fallback{display:flex}
.cover-badges{position:absolute;top:9px;left:9px;display:flex;flex-direction:column;align-items:flex-start;gap:5px;z-index:1}
.cover-badge{font-size:10px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;padding:3px 7px;border-radius:5px;color:#fff;background:#e0472b;box-shadow:0 2px 6px #0003}
.cover-badge.sale{background:var(--danger)}
html[data-theme="dark"] .cover-badge.sale{background:#d92d20}
.cover-badge.partner{background:#c98a14}
.cover-options{position:absolute;top:9px;right:9px;z-index:1;font-size:10px;font-weight:700;padding:3px 7px;border-radius:5px;background:#fffefaf0;color:#3b3548;box-shadow:0 2px 6px #0002}
.cover-hint{position:absolute;bottom:11px;left:11px;display:inline-flex;gap:6px;align-items:center;background:#fffefaf2;color:#272131;box-shadow:0 2px 8px #0002;border-radius:6px;padding:5px 8px;font-size:12px;font-weight:700;z-index:1}
.cover-hint .icon{width:14px;height:14px}
.game-body{padding:17px;display:flex;flex-direction:column;flex:1}
.game-meta{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:9px;min-width:0}
.game-meta .term{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.game-card h3{font-size:18px;letter-spacing:-.25px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.game-description{font-size:13px;margin-top:5px;min-height:42px;line-height:1.65;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.game-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:-6px}
.game-chips .badge{font-size:10px;padding:3px 7px;text-transform:uppercase;letter-spacing:.4px}
/* margin-top:auto pins price + buttons to the card bottom, so rows line up even when
   descriptions differ in length (cards in a grid row share one height). */
.game-description,.game-chips{margin-bottom:15px}
.game-price{margin:auto 0 12px;padding-top:13px;border-top:1px solid var(--line);display:flex;align-items:baseline;justify-content:space-between;gap:6px;flex-wrap:wrap}
.game-price small{color:var(--muted)}
.game-price strong{font-size:20px;letter-spacing:-.5px;white-space:nowrap}
.game-price strong.sale{color:var(--danger)}
.game-price .was{font-size:12px;color:var(--muted);text-decoration:line-through;font-weight:500;margin-right:4px}
.game-price .hi,.game-price .cur{font-size:12px;color:var(--muted);font-weight:600;letter-spacing:0}
.card-actions{display:grid;gap:7px}
.card-actions .btn{min-height:40px;padding:8px 9px;font-size:13px;width:100%}
.guide-btn{border-color:#ddcfe0;color:var(--pink);background:var(--tint)}
html[data-theme="dark"] .guide-btn{border-color:var(--line)}
.guide-btn:hover{background:var(--tint);border-color:var(--pink)}
.skeleton{min-height:390px;background:linear-gradient(100deg,var(--paper) 30%,var(--soft) 50%,var(--paper) 70%);background-size:300% 100%;animation:shimmer 1.4s ease-in-out infinite}
@keyframes shimmer{from{background-position:100% 0}to{background-position:0 0}}
.external-note{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:7px;margin-top:18px}
.external-note+.external-note{margin-top:6px}
.external-note .icon{width:16px;height:16px}
.catalog-empty{padding:50px;text-align:center;background:var(--paper);border:1px dashed var(--line);border-radius:14px}
.catalog-empty p{margin:10px 0 20px}
.catalog-empty.error{border-color:#f3b8b2}
.catalog-empty.error h3{color:var(--danger)}
.partner-pill{display:inline-flex;align-items:center;gap:7px;margin-bottom:16px;padding:7px 13px;border-radius:999px;background:var(--gold-tint);color:var(--gold);border:1px solid #efd9a8;font-size:12px;font-weight:800}
html[data-theme="dark"] .partner-pill{border-color:#5d4a22}
.partner-pill .icon{width:15px;height:15px}
.own-band{display:flex;align-items:center;gap:20px;margin-bottom:22px;padding:20px 24px;border-radius:15px;background:var(--violet-tint);border:1px solid #d9cdf5}
html[data-theme="dark"] .own-band{border-color:#43386b}
.own-band .band-icon{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;background:var(--violet);color:#fff;flex-shrink:0}
html[data-theme="dark"] .own-band .band-icon{color:#17122e}
.own-band .band-icon .icon{width:24px;height:24px}
.own-band h3{font-size:17px}
.own-band p{font-size:14px;margin-top:4px}
.own-band .checks{display:flex;flex-wrap:wrap;gap:4px 18px;margin-top:8px;font-size:12px;font-weight:600;color:var(--muted)}
.own-band .checks span{display:inline-flex;align-items:center;gap:6px}
.own-band .checks .icon{width:14px;height:14px;color:var(--ok)}
.own-band .band-copy{flex:1;min-width:0}
.start-strip{display:grid;grid-template-columns:1fr auto;gap:25px;align-items:center;background:var(--tint);border:1px solid var(--line);padding:29px 32px;border-radius:16px;margin-top:28px}
.start-strip h3{margin-bottom:5px}
.start-strip p{font-size:14px}

/* ---------- help / steps ---------- */
.help-layout{display:grid;grid-template-columns:1.05fr 1fr;gap:50px}
.help-copy .eyebrow{color:var(--pink);margin-bottom:14px}
.help-copy h2{max-width:410px;margin-bottom:14px}
.help-copy p{font-size:15px;max-width:425px}
.help-steps{display:grid;gap:17px}
.help-step{display:flex;gap:18px;align-items:start}
.step-number{font-size:13px;font-weight:800;color:var(--pink);background:var(--tint);border:1px solid var(--line);border-radius:9px;display:grid;place-items:center;min-width:35px;height:35px}
.help-step strong{font-size:16px}
.help-step p{font-size:14px;margin-top:3px}

/* ---------- reseller + partner (store page) ---------- */
.reseller-head{display:flex;align-items:end;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:23px}
.reseller-head h2{font-size:28px}
.reseller-head p{font-size:14px;margin-top:5px}
.reseller-head .eyebrow{color:var(--pink);margin-bottom:12px}
.pkg-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.pkg-grid .skeleton{min-height:300px;border-radius:16px;border:1px solid var(--line)}
.plan-card .plan-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.plan-card .plan-top small{color:var(--muted);font-weight:600}
.plan-flag{position:absolute;top:-12px;left:50%;transform:translateX(-50%);background:var(--pink);color:#fff;font-size:11px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;padding:4px 12px;border-radius:999px;white-space:nowrap}
html[data-theme="dark"] .plan-flag{color:#211323}
.fine-print{font-size:12px;color:var(--muted);text-align:center;margin-top:16px}
.partner-banner{margin-top:28px;display:flex;align-items:center;gap:34px;padding:30px 34px;border-radius:18px;background:linear-gradient(120deg,var(--gold-tint),var(--paper) 70%);border:1px solid #efd9a8}
html[data-theme="dark"] .partner-banner{border-color:#5d4a22}
.partner-banner .pb-copy{flex:1;min-width:0}
.partner-banner .pb-tags{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.partner-banner h3{font-size:24px;letter-spacing:-.4px}
.partner-banner p{font-size:14px;margin-top:8px;max-width:640px}
.partner-banner .pb-cta{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:18px}
.partner-banner .pb-price{font-size:22px;font-weight:800;color:var(--gold)}
.partner-banner .pb-price small{font-size:13px;color:var(--muted);font-weight:600}
.partner-banner .pb-note{font-size:12px;color:var(--muted);margin-top:10px}
.partner-banner .pb-active{display:inline-flex;align-items:center;gap:8px;padding:11px 16px;border-radius:10px;background:var(--ok-tint);color:var(--ok);font-size:14px;font-weight:700}
.btn.gold{background:#c98a14;color:#fff;border-color:transparent}
.btn.gold:hover{background:#ad7409}
.pb-art{position:relative;width:150px;height:150px;flex-shrink:0;display:grid;place-items:center}
.pb-medal{width:132px;height:132px;border-radius:50%;display:grid;place-items:center;color:#fff;background:radial-gradient(circle at 35% 30%,#ffd978,#c98a14 70%);box-shadow:0 18px 40px #c98a1440}
.pb-medal .icon{width:58px;height:58px;stroke-width:1.6}
.pb-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}

/* ---------- footer ---------- */
.site-footer{border-top:1px solid var(--line);padding:30px 0;background:var(--paper)}
.footer-top{display:flex;justify-content:space-between;gap:30px;align-items:center}
.footer-links{display:flex;gap:24px;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.footer-links a:hover{color:var(--pink)}
.footer-bottom{font-size:12px;color:var(--muted);margin-top:23px;padding-top:17px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap}

/* ---------- modals (JS toggles .hidden; the old .flex class is harmless) ---------- */
.modal{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:18px;background:#11111b99;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.modal-card{width:100%;max-width:440px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:17px;box-shadow:0 30px 90px #0005;padding:30px;text-align:center}
.modal-card .modal-icon{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;margin:0 auto 16px;background:var(--tint);color:var(--pink)}
.modal-card .modal-icon .icon{width:26px;height:26px}
.modal-card h3{font-size:22px;margin-bottom:8px}
.modal-card p{font-size:14px;margin-bottom:22px}
.modal-card .modal-actions{display:grid;gap:9px}
.modal-card .modal-actions.split{grid-template-columns:1fr 1fr}
.google-mark{width:18px;height:18px}

/* ---------- TikSpark product page ---------- */
.product-hero{background:#171524;color:#fff;overflow:hidden}
.product-hero .container{display:grid;grid-template-columns:.8fr 1.2fr;gap:35px;align-items:center;min-height:585px;position:relative}
.product-copy{padding:52px 0}
.product-copy .eyebrow{color:#ff83be;margin-bottom:22px}
.product-copy h1{font-size:clamp(34px,3.1vw,46px);line-height:1.4;letter-spacing:-1.1px}
.product-copy h1 em{font-style:normal;color:#ff82bb}
.product-copy p{max-width:435px;color:#c8c4db;font-size:15px;line-height:1.85;margin:20px 0 25px}
.product-copy .btn.primary{background:#ed418f;color:#fff}
.product-copy .btn.primary:hover{background:#ce2878}
.product-copy .btn.ghost{color:#f5f0fc;border-color:#5d526c}
.product-copy .btn.ghost:hover{background:#2a243a}
.product-meta{display:flex;align-items:center;gap:18px;color:#bfb9d0;font-size:12px;margin-top:18px;flex-wrap:wrap}
.product-meta span{display:flex;align-items:center;gap:5px}
.product-meta .icon{width:14px;height:14px}
.product-visual{position:relative;padding-top:16px}
.product-visual:before{content:'';position:absolute;inset:-60px -160px;background:radial-gradient(ellipse,#ae318844,transparent 65%);pointer-events:none}
.product-film{min-width:0;padding:28px 0;isolation:isolate}
.product-film:before{background:radial-gradient(ellipse at 55% 47%,#c13b9536,transparent 65%)}
.film-heading{position:relative;display:flex;justify-content:space-between;gap:12px;align-items:center;margin:0 4px 15px;color:#f6e6f5}
.film-heading strong{font-size:12px;letter-spacing:1.8px;font-weight:600}
.film-duration{display:flex;align-items:center;gap:7px;color:#bfb0cf;font-size:12px;font-feature-settings:'tnum'}
.film-duration .icon{width:15px;height:15px}
.film-frame{position:relative;padding:7px;border:1px solid #a16d9f;border-radius:19px;background:linear-gradient(140deg,#5c365c,#211b30 53%,#324951);box-shadow:0 28px 60px #0005,0 0 0 6px #ffe3ff04;overflow:hidden}
.film-video{display:block;width:100%;aspect-ratio:16/9;border-radius:12px;background:#0a0d1b;object-fit:contain}
.film-video:fullscreen{border-radius:0;width:100vw;height:100vh;object-fit:contain;background:#080b17}
.film-caption{position:relative;display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:20px}
.film-caption h2{font-size:17px;line-height:1.55;letter-spacing:0;color:#fff1fa}
.film-caption p{font-size:12px;line-height:1.7;color:#c2b3cf;margin-top:5px}
.film-fullscreen{display:inline-flex;gap:7px;align-items:center;justify-content:center;padding:11px 13px;min-height:44px;font-size:12px;font-weight:600;white-space:nowrap;border:1px solid #795678;border-radius:9px;color:#ffdfef;background:#e88ab410;flex-shrink:0}
.film-fullscreen:hover{background:#ee7eb52a;border-color:#d8a1c1}
.film-fullscreen .icon{width:16px;height:16px}
.film-transcript{position:relative;background:transparent;border:0;border-top:1px solid #634c694f;border-radius:0;margin-top:17px;color:#c9b8d1}
.film-transcript summary{padding:13px 0 0;font-size:12px;font-weight:400;color:#baa9c4}
.film-transcript summary:after{color:#d59abc;font-size:17px}
.film-transcript p{padding:11px 0 0;font-size:12px;line-height:1.8;color:#c9b8d1}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.flow-strip{display:flex;justify-content:space-between;gap:20px;padding:23px 0;border-bottom:1px solid var(--line)}
.flow-item{display:flex;align-items:center;gap:12px;font-size:14px;font-weight:700}
.flow-item .icon{color:var(--pink);width:24px;height:24px}
.flow-arrow{align-self:center;color:#aaa1b4}
.new-games{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}
.library-card{border:1px solid var(--line);background:var(--paper);border-radius:12px;overflow:hidden;min-width:0;display:flex;flex-direction:column}
.library-art{aspect-ratio:1.55;overflow:hidden;background:var(--soft)}
.library-art img{width:100%;height:100%;object-fit:cover}
.library-copy{padding:16px;flex:1;display:flex;flex-direction:column}
.library-copy h3{font-size:17px}
.library-copy p{font-size:13px;margin:6px 0 13px;min-height:43px}
.library-copy .badge{align-self:start;margin-top:auto;white-space:normal}
.library-note{margin-top:19px;font-size:14px;padding:15px 18px;border-left:3px solid var(--pink);background:var(--tint);border-radius:0 8px 8px 0}
.feature-section{background:var(--paper);border-block:1px solid var(--line)}
.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:25px;margin-top:28px}
.feature-icon{width:48px;height:48px;display:grid;place-items:center;background:var(--tint);border-radius:12px;color:var(--pink);margin-bottom:17px}
.feature-icon .icon{width:24px;height:24px}
.feature-grid h3{font-size:18px;margin-bottom:9px}
.feature-grid p{font-size:14px;line-height:1.8}
.pricing-heading{text-align:center}
.pricing-heading p{margin-top:12px;font-size:15px}
.price-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:30px;align-items:stretch}
.plan-card{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:28px;position:relative;display:flex;flex-direction:column}
.plan-card.featured{border:2px solid var(--pink);padding:27px}
.plan-label{font-size:12px;font-weight:700;color:var(--pink);margin-bottom:10px;letter-spacing:.3px}
.plan-card h3{font-size:22px}
.plan-card>p{font-size:14px;margin-top:6px}
.plan-price{display:flex;align-items:baseline;gap:8px;margin:23px 0 19px;flex-wrap:wrap}
.plan-price strong{font-size:42px;letter-spacing:-1.6px;line-height:1.2}
.plan-price span{font-size:14px;color:var(--muted)}
.plan-card .btn{margin-bottom:18px;white-space:normal}
.plan-list{list-style:none;padding:17px 0 0;margin:0;border-top:1px solid var(--line);display:grid;gap:12px}
.plan-list li{font-size:14px;display:flex;gap:9px}
.plan-list .icon{width:17px;height:17px;color:var(--pink);margin-top:3px}
.price-note{font-size:13px;text-align:center;max-width:700px;margin:20px auto 0}
.faq-grid{display:grid;grid-template-columns:.65fr 1fr;gap:60px}
.faq-grid>div>p{margin-top:12px;font-size:15px}
.faq-grid .eyebrow{color:var(--pink);margin-bottom:12px}
.faq-list{display:grid;gap:10px}
details{background:var(--paper);border:1px solid var(--line);border-radius:11px}
summary{font-size:15px;font-weight:700;list-style:none;cursor:pointer;padding:18px 22px;display:flex;justify-content:space-between;gap:15px}
summary:after{content:'+';color:var(--pink);font-size:21px;line-height:1}
details[open]>summary:after{content:'\2212'}
summary::-webkit-details-marker{display:none}
details p{font-size:14px;padding:0 22px 20px;line-height:1.85}
details p a{color:var(--pink);font-weight:700}
details p a:hover{text-decoration:underline}
.download-band{padding:34px 39px;border-radius:18px;background:#242036;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:30px}
html[data-theme="dark"] .download-band{box-shadow:0 0 0 1px var(--line)}
.download-band h2{font-size:28px}
.download-band p{color:#c5bdd6;font-size:14px;margin-top:7px}
.download-band .btn{background:#ed418f;color:#fff;border-color:transparent}
.download-band .btn:hover{background:#ce2878}
.download-band small{display:block;color:#bcb1d0;font-size:12px;margin-top:10px;text-align:center}

/* ---------- responsive ---------- */
@media(min-width:1500px){.container{width:1260px}.shop-hero{min-height:325px}.shop-hero-copy{padding:38px 43px}}
@media(max-width:1100px){
  .container{width:calc(100% - 44px)}
  .header-inner{gap:22px}.main-nav{gap:17px}.main-nav .optional{display:none}
  .header-tools .btn{padding-inline:12px}
  .shop-hero h1{font-size:35px}.hero-covers{gap:8px;padding-right:20px}.hero-cover{height:211px}.hero-cover:nth-child(2){height:244px}.shop-hero-copy{padding:31px}
  .catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.game-body{padding:14px}.game-card h3{font-size:17px}
  .product-hero .container{gap:25px;min-height:530px}.product-copy h1{font-size:36px}.product-copy .actions{gap:8px}.product-copy .btn{padding-inline:15px}
  .film-caption{align-items:start}.film-caption h2{font-size:15px}.film-fullscreen{padding-inline:10px}
  .feature-grid{gap:18px}.plan-card{padding:23px}.plan-card.featured{padding:22px}.brand span{font-size:17px}
  .partner-banner{gap:24px}.pb-art{width:120px;height:120px}.pb-medal{width:108px;height:108px}
}
@media(max-width:850px){
  .main-nav{gap:19px}.main-nav .secondary{display:none}.header-inner{min-height:76px}.brand small{display:none}
  .header-tools>.btn{font-size:13px}.nav-getpro{display:none!important}
  .hero-covers{padding-left:0;gap:7px}.hero-cover{height:183px}.hero-cover:nth-child(2){height:218px}
  .shop-hero{grid-template-columns:1.15fr 1fr;min-height:280px}.shop-hero h1{font-size:31px}.shop-hero p{font-size:14px}.shop-hero-copy{padding:28px}.hero-cover span{font-size:11px}
  .catalog-bar{align-items:stretch;flex-direction:column;gap:13px}.search{min-width:0;max-width:100%}
  .quick-paths{gap:17px}.quick-path{gap:9px}.quick-path strong{font-size:13px}.quick-path small{font-size:12px}
  .product-hero .container{grid-template-columns:1fr;gap:0;max-width:650px}.product-copy{text-align:center;padding:42px 0 25px}
  .product-copy .eyebrow,.product-copy .actions,.product-meta{justify-content:center}.product-copy p{margin-inline:auto;max-width:540px}.product-copy h1{font-size:40px}
  .product-film{padding:4px 0 30px;width:100%}.film-caption h2{font-size:17px}.film-frame{padding:6px;border-radius:16px}
  .new-games{grid-template-columns:repeat(2,1fr)}.feature-grid{grid-template-columns:repeat(2,1fr);gap:30px}
  .flow-strip{gap:12px}.flow-item{font-size:12px;gap:8px}.flow-item .icon{width:21px;height:21px}
  .price-grid{grid-template-columns:1fr;max-width:590px;margin-inline:auto}.plan-card{padding:27px}.plan-card.featured{padding:26px}.plan-price{margin:17px 0}.plan-list{grid-template-columns:repeat(2,1fr)}
  .help-layout,.faq-grid{gap:28px;grid-template-columns:1fr 1fr}.section{padding-block:45px}
  .footer-top{align-items:start}.footer-links{gap:15px}
  .pkg-grid{grid-template-columns:1fr;max-width:590px;margin-inline:auto}
  .partner-banner{flex-direction:column-reverse;align-items:flex-start;text-align:left}.pb-art{width:96px;height:96px}.pb-medal{width:88px;height:88px}.pb-medal .icon{width:40px;height:40px}
}
@media(max-width:580px){
  .container{width:calc(100% - 32px)}
  /* header: brand + tools on row one, nav scrolls on row two */
  .header-inner{flex-wrap:wrap;min-height:0;gap:0 10px;padding-top:12px}
  .brand{gap:7px}.brand img{width:34px;height:34px;border-radius:9px}.brand span{font-size:15px}.brand.spark span{font-size:22px}
  .main-nav{order:3;flex:0 0 100%;gap:20px;font-size:13px;overflow-x:auto;scrollbar-width:none;margin-top:6px}
  .main-nav::-webkit-scrollbar{display:none}
  .main-nav a{padding-block:10px 12px}.main-nav .secondary{display:inline}.main-nav .optional{display:inline}
  .header-tools{gap:2px}.icon-btn{width:34px;height:34px}.lang-button{padding:6px 5px}
  .header-tools>.btn{min-height:38px;padding:7px 10px}.header-tools>.btn .label{display:none}
  .nav-pro-badge{display:none!important}
  .shop-header .header-tools{margin-left:auto}
  .shop-header .nav-wallet{order:2;flex:0 0 100%;max-width:none;min-width:0;margin-top:10px;padding:8px 11px}
  .shop-header .nav-wallet-copy{flex:1;flex-direction:row;align-items:center;justify-content:space-between;gap:12px}
  .shop-header .nav-wallet-label{font-size:12px;flex-shrink:0}
  .shop-header .nav-wallet strong{text-align:right}
  .shop-header .main-nav .optional{display:inline}
  .shop-hero{margin-top:19px;display:flex;flex-direction:column;min-height:0;border-radius:16px}
  .shop-hero-copy{padding:25px 25px 10px}.shop-hero h1{font-size:30px}.shop-hero p{margin-top:11px}.shop-hero .eyebrow{font-size:10px;margin-bottom:11px}.shop-hero .text-link{margin-top:13px;font-size:13px}
  .hero-covers{height:176px;padding:15px 32px 0;overflow:hidden;gap:12px;align-items:start}.hero-cover{height:191px;border-radius:10px}.hero-cover:nth-child(2){height:210px}.hero-cover span{display:none}
  .quick-paths{padding:16px 0;gap:12px;grid-template-columns:1fr 1fr}.quick-path:last-child{display:none}.quick-path .icon{width:19px;height:19px}.quick-path strong{font-size:12px}.quick-path small{font-size:11px}
  .section.compact{padding:26px 0 35px}.section-title{gap:13px;margin-bottom:17px;align-items:start}.section-title h2,.reseller-head h2{font-size:23px}.section-title p{font-size:13px}.section-title>.text-link{font-size:12px;white-space:nowrap}
  .filter{font-size:12px;padding:8px 11px}
  .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cover-link{aspect-ratio:1}
  .cover-hint{bottom:7px;left:7px;font-size:10px;padding:4px 6px}.cover-hint .icon{width:12px;height:12px}
  .cover-badges{top:6px;left:6px}.cover-options{top:6px;right:6px}.cover-badge,.cover-options{font-size:9px;padding:2px 5px}
  .game-body{padding:11px}.game-card h3{font-size:15px;line-height:1.4}.game-meta{margin-bottom:8px;flex-wrap:wrap}.badge{font-size:10px;padding:4px 6px}
  .game-description{font-size:12px;min-height:59px}.game-description,.game-chips{margin-bottom:12px}.game-price{margin:auto 0 10px;gap:0;padding-top:10px}.game-price small{font-size:11px}.game-price strong{font-size:18px}.game-price .hi{display:none}
  .card-actions .btn{font-size:11px;min-height:39px;padding-inline:4px;gap:5px}.card-actions .icon{width:14px;height:14px}
  .external-note{align-items:start;font-size:11px}
  .own-band{flex-direction:column;align-items:flex-start;padding:18px}
  .start-strip{padding:22px;grid-template-columns:1fr;gap:15px}.start-strip h3{font-size:17px}.start-strip p{font-size:13px}.start-strip .btn{justify-self:start}
  .help-layout,.faq-grid{grid-template-columns:1fr;gap:26px}.help-copy h2{font-size:26px}.help-copy p{font-size:14px}.help-step p{font-size:13px}
  .section{padding-block:36px}
  .footer-top{flex-direction:column;gap:20px}.footer-bottom{flex-direction:column;gap:5px}.footer-links{font-size:12px;gap:13px}
  .product-copy{padding-top:33px}.product-copy h1{font-size:32px}.product-copy .eyebrow{font-size:11px;margin-bottom:18px}.product-copy p{font-size:15px;margin:17px 0 22px}.product-copy .btn{font-size:13px;min-height:47px;padding:10px 13px}.product-meta{font-size:11px}
  .product-visual{padding-inline:0}
  .film-heading{margin-bottom:11px}.film-heading strong{letter-spacing:1px}.film-caption{gap:10px;margin-top:15px}.film-caption h2{font-size:15px}.film-fullscreen{padding:10px}.film-fullscreen .icon{display:none}.film-frame{padding:4px;border-radius:13px}.film-video{border-radius:9px}
  .flow-strip{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:21px 0}.flow-arrow{display:none}
  .new-games{gap:12px}.library-copy{padding:12px}.library-copy h3{font-size:15px}.library-copy p{font-size:12px;min-height:59px}.library-art{aspect-ratio:1.25}.library-note{font-size:12px;padding:13px}
  .feature-grid{gap:27px 20px}.feature-icon{width:41px;height:41px;margin-bottom:13px}.feature-grid h3{font-size:16px}.feature-grid p{font-size:13px}
  .pricing-heading h2{font-size:26px}.pricing-heading p{font-size:14px}.plan-list{grid-template-columns:1fr}.plan-card{padding:23px}.plan-card.featured{padding:22px}.price-note{font-size:12px}
  .download-band{padding:27px;display:block}.download-band h2{font-size:24px}.download-band p{font-size:13px;margin:11px 0 21px}.download-band .btn{width:100%;font-size:14px}.download-band small{text-align:left;font-size:11px}
  .faq-grid h2{font-size:25px}.faq-grid summary{padding:16px;font-size:14px}.faq-grid details p{font-size:13px;padding:0 16px 17px}
  .partner-banner{padding:24px}.partner-banner h3{font-size:20px}
  .modal-card{padding:24px}.modal-card .modal-actions.split{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
