/* AT store website v2 — "Arena" design system.
   Dark violet-ink theme, elevation by luminance, Changa display + Rubik body.
   Tokens measured for WCAG AA on the dark base (see DESIGN.md). */

:root {
  color-scheme: dark;
  /* surfaces (ink scale, violet-tinted) */
  --bg: #0d0c13;
  --bg-2: #12111a;
  --surface: #1e1e27;
  --surface-2: #262633;
  --elevated: #32323c;
  /* text */
  --text: #f4f5f9;
  --text-2: #b6b6c0;
  --text-3: #9797a3;
  /* brand */
  --violet: #908be8;
  --violet-bright: #b0adfc;
  --violet-deep: #6b5fca;
  --violet-ink: #443198;
  --coral: #dc7a4c;
  --coral-bright: #f3a07a;
  --coral-text: #1c0600;
  --success: #3ecf8e;
  --error: #f27d72;
  --wa: #25d366;
  --wa-text: #04240f;
  /* borders */
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);
  --border-input: rgba(255, 255, 255, .30);
  /* type */
  --font-display: 'Changa', 'Rubik', sans-serif;
  --font-body: 'Rubik', 'Segoe UI', Tahoma, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --t-xs: .75rem; --t-sm: .875rem; --t-base: 1rem; --t-lg: 1.125rem;
  --t-xl: 1.25rem; --t-2xl: 1.5rem; --t-3xl: 1.875rem; --t-4xl: 2.25rem;
  /* spacing (4px base) */
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.25rem;
  --s6: 1.5rem; --s8: 2rem; --s10: 2.5rem; --s12: 3rem; --s16: 4rem; --s20: 5rem;
  /* radii + shadows */
  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 28px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-pop: 0 18px 44px rgba(0, 0, 0, .5);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --hdr-h: 68px;
  --bottomnav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--t-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom));
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-bright); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 var(--s4); text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 700; }
h3 { font-size: var(--t-xl); font-weight: 700; }
p { margin: 0 0 var(--s4); }
::selection { background: var(--violet-deep); color: #fff; }
:focus-visible { outline: 2px solid var(--violet-bright); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--s5); }
@media (min-width: 768px) { .wrap { padding-inline: var(--s8); } }
.page { padding-block: var(--s10) var(--s16); }
.section { padding-block: var(--s12); }
@media (min-width: 768px) { .section { padding-block: var(--s16); } }
.lead { font-size: var(--t-lg); color: var(--text-2); max-width: 62ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; top: -100px; inset-inline-start: var(--s4); z-index: 200; background: var(--violet-deep); color: #fff; padding: var(--s3) var(--s5); border-radius: 0 0 var(--r) var(--r); }
.skip:focus { top: 0; }
.num { font-variant-numeric: tabular-nums; }
.ic { width: 22px; height: 22px; flex: none; }
.ic-sm { width: 17px; height: 17px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: var(--s3) var(--s6); border-radius: var(--r);
  font-family: var(--font-body); font-size: var(--t-base); font-weight: 600;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .18s var(--ease-out), background-color .18s ease, border-color .18s ease;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--coral); color: var(--coral-text); box-shadow: 0 8px 24px rgba(220, 122, 76, .35); }
.btn-primary:hover { background: var(--coral-bright); }
.btn-violet { background: var(--violet-deep); color: #fff; }
.btn-violet:hover { background: #7a6dd6; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-wa { background: var(--wa); color: var(--wa-text); }
.btn-wa:hover { background: #3ee07c; }
.btn-lg { min-height: 56px; padding-inline: var(--s8); font-size: var(--t-lg); border-radius: 16px; }
.btn-block { width: 100%; }
.btn-small { min-height: 40px; padding: var(--s2) var(--s4); font-size: var(--t-sm); border-radius: var(--r-sm); background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); cursor: pointer;
}

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100; height: var(--hdr-h);
  background: rgba(13, 12, 19, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.hdr-in { display: flex; align-items: center; gap: var(--s5); height: 100%; }
.logo { display: inline-flex; align-items: center; gap: var(--s3); color: var(--text); flex: none; }
.logo:hover { text-decoration: none; }
.logo-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--violet-deep), var(--violet-ink));
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: #fff;
  box-shadow: 0 6px 18px rgba(107, 95, 202, .45);
}
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .01em; }
.logo-word span { color: var(--violet-bright); }
.nav { display: none; gap: var(--s2); margin-inline-start: var(--s4); }
.nav a { color: var(--text-2); font-weight: 500; padding: var(--s2) var(--s3); border-radius: var(--r-sm); }
.nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.nav a.on { color: var(--text); background: var(--surface-2); }
.hdr-search { display: none; position: relative; flex: 1; max-width: 380px; margin-inline-start: auto; }
.hdr-search-ic { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 19px; height: 19px; }
.hdr-search input {
  width: 100%; height: 44px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: inherit; font-size: var(--t-base);
  padding-inline: 44px var(--s4);
}
.hdr-search input::placeholder { color: var(--text-3); }
.hdr-search input:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 3px rgba(144, 139, 232, .25); }
.hdr-actions { display: flex; align-items: center; gap: var(--s3); margin-inline-start: auto; }
.hdr-wa span { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .hdr-search { display: block; }
  .hdr-actions { margin-inline-start: 0; }
  .hdr-track { display: none; }
  .hdr-wa span { display: inline; }
  .hdr-wa { min-height: 44px; }
}

/* ---------- bottom nav (mobile) ---------- */
.bottomnav {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 100;
  display: flex; background: rgba(18, 17, 26, .94); backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottomnav .tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-height: var(--bottomnav-h); color: var(--text-3); font-size: var(--t-xs); font-weight: 500;
}
.bottomnav .tab:hover { text-decoration: none; color: var(--text-2); }
.bottomnav .tab.on { color: var(--violet-bright); }
.bottomnav .tab-ic { width: 24px; height: 24px; }
@media (min-width: 900px) { .bottomnav { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(13, 12, 19, 0) 40%),
    linear-gradient(to left, rgba(13, 12, 19, .94) 0%, rgba(13, 12, 19, .72) 48%, rgba(13, 12, 19, .38) 100%);
}
.hero-in { padding-block: var(--s16) var(--s12); max-width: 680px; }
@media (min-width: 900px) { .hero-in { padding-block: 6rem 5rem; } }
.hero-live {
  display: inline-flex; align-items: center; gap: var(--s2); margin-bottom: var(--s5);
  background: rgba(62, 207, 142, .14); color: #7de8b4; border: 1px solid rgba(62, 207, 142, .35);
  padding: var(--s1) var(--s4); border-radius: 999px; font-size: var(--t-sm); font-weight: 600;
}
.hero-live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(62, 207, 142, .5); } 70% { box-shadow: 0 0 0 8px rgba(62, 207, 142, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 207, 142, 0); } }
.hero h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); font-weight: 800; line-height: 1.05; margin-bottom: var(--s4); }
.hero h1 .hl { color: var(--coral-bright); }
.hero-sub { font-size: var(--t-lg); color: var(--text-2); max-width: 52ch; margin-bottom: var(--s8); }
.hero-search {
  display: flex; align-items: center; gap: var(--s2); max-width: 560px;
  background: rgba(30, 30, 39, .92); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: var(--s2); margin-bottom: var(--s5);
  box-shadow: var(--shadow-pop);
}
.hero-search .ic { margin-inline-start: var(--s3); color: var(--text-3); }
.hero-search input {
  flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text);
  font: inherit; font-size: var(--t-base); height: 44px; padding-inline: var(--s2);
}
.hero-search input:focus { outline: none; }
.hero-search input::placeholder { color: var(--text-3); }
.hero-search:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(144, 139, 232, .25), var(--shadow-pop); }
.hero-search .btn { border-radius: 999px; flex: none; }
.hero-chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s8); }
.hero-chips a {
  color: var(--text); background: rgba(30, 30, 39, .8); border: 1px solid var(--border-strong);
  padding: var(--s2) var(--s4); border-radius: 999px; font-size: var(--t-sm); font-weight: 500;
}
.hero-chips a:hover { border-color: var(--violet); text-decoration: none; }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); list-style: none; margin: 0; padding: 0; color: var(--text-2); font-size: var(--t-sm); }
.hero-trust li { display: inline-flex; align-items: center; gap: var(--s2); }
.hero-trust .ic { color: var(--success); width: 18px; height: 18px; }
/* one orchestrated load reveal */
.rv { opacity: 0; transform: translateY(16px); animation: rv .65s var(--ease-out) forwards; animation-delay: calc(var(--d, 0) * 90ms); }
@keyframes rv { to { opacity: 1; transform: none; } }

/* ---------- section heads ---------- */
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s8); flex-wrap: wrap; }
.sec-head h2 { margin-bottom: var(--s1); }
.sec-sub { color: var(--text-2); margin-bottom: 0; }
.sec-link { display: inline-flex; align-items: center; gap: var(--s1); font-weight: 600; white-space: nowrap; }
.sec-link .ic { width: 18px; height: 18px; }
.band { background: var(--bg-2); border-block: 1px solid var(--border); }

/* ---------- game cards / bento ---------- */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; } }
.game-card {
  position: relative; display: block; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  aspect-ratio: 1 / 1; transition: transform .25s var(--ease-out), border-color .25s ease;
}
.bento .game-card { aspect-ratio: auto; min-height: 170px; }
@media (min-width: 900px) {
  .bento .game-card.big { grid-column: span 2; grid-row: span 2; }
  .bento .game-card { min-height: 0; }
}
.game-card:hover { transform: translateY(-4px); border-color: var(--violet); text-decoration: none; }
.game-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease-out); }
.game-card:hover img { transform: scale(1.06); }
.game-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13, 12, 19, .92) 0%, rgba(13, 12, 19, .35) 45%, rgba(13, 12, 19, 0) 70%);
}
.game-meta { position: absolute; inset-inline: 0; bottom: 0; z-index: 1; padding: var(--s4); display: flex; flex-direction: column; gap: 2px; }
.game-name { font-family: var(--font-display); font-weight: 700; font-size: var(--t-lg); line-height: 1.2; }
.game-card.big .game-name { font-size: var(--t-2xl); }
.game-from { color: var(--coral-bright); font-weight: 600; font-size: var(--t-sm); }
.game-badge {
  position: absolute; top: var(--s3); inset-inline-start: var(--s3); z-index: 1;
  display: inline-flex; align-items: center; gap: var(--s1);
  background: rgba(13, 12, 19, .72); color: var(--coral-bright); border: 1px solid rgba(243, 160, 122, .4);
  font-size: var(--t-xs); font-weight: 700; padding: 2px var(--s3); border-radius: 999px;
}
.game-badge .ic { width: 13px; height: 13px; }
.bento-cta {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: var(--s2);
  border-radius: var(--r-lg); padding: var(--s5); color: var(--text);
  background: linear-gradient(140deg, var(--violet-deep), var(--violet-ink)); border: 1px solid var(--violet);
  min-height: 170px; transition: transform .25s var(--ease-out);
}
.bento-cta:hover { transform: translateY(-4px); text-decoration: none; }
.bento-cta .n { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; line-height: 1; }
.bento-cta .t { font-weight: 600; }
.bento-cta .go { display: inline-flex; align-items: center; gap: var(--s1); font-size: var(--t-sm); color: var(--violet-bright); }
.grid-games { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
@media (min-width: 640px) { .grid-games { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid-games { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .grid-games { grid-template-columns: repeat(5, 1fr); } }
.img-fallback { background: linear-gradient(140deg, var(--surface-2), var(--violet-ink)); }

/* ---------- category trio ---------- */
.trio { display: grid; gap: var(--s4); }
@media (min-width: 768px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.trio-card {
  display: flex; gap: var(--s4); align-items: center; padding: var(--s5);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  color: var(--text); transition: transform .22s var(--ease-out), border-color .22s ease;
}
.trio-card:hover { transform: translateY(-3px); border-color: var(--violet); text-decoration: none; }
.trio-ic {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; flex: none;
  background: rgba(107, 95, 202, .18); color: var(--violet-bright); border: 1px solid rgba(144, 139, 232, .35);
}
.trio-ic .ic { width: 28px; height: 28px; }
.trio-card h3 { margin-bottom: 2px; font-size: var(--t-lg); }
.trio-card p { margin: 0; color: var(--text-2); font-size: var(--t-sm); }
.trio-card .chev { margin-inline-start: auto; color: var(--text-3); }

/* ---------- pack cards (quick packs / denoms) ---------- */
.pack-row { display: grid; grid-auto-flow: column; grid-auto-columns: 240px; gap: var(--s4); overflow-x: auto; padding-bottom: var(--s3); scroll-snap-type: x mandatory; scrollbar-width: thin; }
.pack-row > * { scroll-snap-align: start; }
@media (min-width: 900px) { .pack-row { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }
.pack-card {
  display: flex; flex-direction: column; gap: var(--s2); padding: var(--s5);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  color: var(--text); transition: transform .22s var(--ease-out), border-color .22s ease;
}
.pack-card:hover { transform: translateY(-3px); border-color: var(--coral); text-decoration: none; }
.pack-game { color: var(--text-3); font-size: var(--t-sm); font-weight: 500; }
.pack-name { font-family: var(--font-display); font-weight: 700; font-size: var(--t-xl); line-height: 1.25; }
.pack-price { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--coral-bright); line-height: 1.1; margin-top: auto; }
.pack-go { display: inline-flex; align-items: center; gap: var(--s1); color: var(--violet-bright); font-size: var(--t-sm); font-weight: 600; }
.pack-go .ic { width: 16px; height: 16px; }

.denoms { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--s4); }
@media (min-width: 640px) { .denoms { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.denom {
  position: relative; display: flex; flex-direction: column; gap: var(--s2); padding: var(--s5);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  color: var(--text); min-height: 132px; transition: transform .2s var(--ease-out), border-color .2s ease;
}
.denom:hover { transform: translateY(-3px); border-color: var(--coral); text-decoration: none; }
.denom-name { font-family: var(--font-display); font-weight: 700; font-size: var(--t-lg); line-height: 1.3; }
.denom-price { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; color: var(--coral-bright); margin-top: auto; }
.denom .pack-go { margin-top: var(--s1); }
.denom-badge {
  position: absolute; top: var(--s3); inset-inline-end: var(--s3);
  background: var(--coral); color: var(--coral-text); font-size: var(--t-xs); font-weight: 700;
  padding: 2px var(--s3); border-radius: 999px;
}
.denom-static { cursor: default; }
.denom-static:hover { transform: none; border-color: var(--border); }

/* ---------- steps / trust ---------- */
.steps { display: grid; gap: var(--s6); list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 767px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.steps li { display: flex; flex-direction: column; gap: var(--s2); }
.step-n {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 800; font-size: var(--t-xl);
  color: var(--violet-bright); border: 2px solid var(--violet-deep); background: rgba(107, 95, 202, .14);
  margin-bottom: var(--s2);
}
.steps strong { font-family: var(--font-display); font-size: var(--t-lg); }
.steps span { color: var(--text-2); font-size: var(--t-sm); }
.trust-grid { display: grid; gap: var(--s4); }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 767px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
.trust-item { padding: var(--s5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.trust-item .trio-ic { width: 48px; height: 48px; border-radius: 14px; margin-bottom: var(--s3); }
.trust-item .trio-ic .ic { width: 24px; height: 24px; }
.trust-item h3 { font-size: var(--t-base); margin-bottom: var(--s1); }
.trust-item p { margin: 0; color: var(--text-2); font-size: var(--t-sm); }

/* ---------- FAQ / CTA band ---------- */
.faqs { display: grid; gap: var(--s3); max-width: 820px; }
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: var(--s4) var(--s5); }
.faq summary { cursor: pointer; font-weight: 600; font-family: var(--font-display); font-size: var(--t-lg); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--violet-bright); font-size: 1.4rem; line-height: 1; }
.faq[open] summary::after { content: '–'; }
.faq p { margin: var(--s3) 0 0; color: var(--text-2); }
.cta-band {
  text-align: center; padding: var(--s12) var(--s6); border-radius: var(--r-xl);
  background: linear-gradient(150deg, rgba(107, 95, 202, .32), rgba(68, 49, 152, .18) 55%, rgba(220, 122, 76, .16));
  border: 1px solid var(--border-strong);
}
.cta-band p { color: var(--text-2); max-width: 52ch; margin-inline: auto; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center; margin-top: var(--s6); }

/* ---------- games page toolbar ---------- */
.toolbar { display: flex; flex-direction: column; gap: var(--s4); margin-bottom: var(--s8); }
.toolbar-search { position: relative; max-width: 560px; }
.toolbar-search .ic { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.toolbar-search input {
  width: 100%; height: 54px; border-radius: 999px; border: 1px solid var(--border-input);
  background: var(--surface); color: var(--text); font: inherit; font-size: var(--t-base);
  padding-inline: 48px var(--s5);
}
.toolbar-search input:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 3px rgba(144, 139, 232, .25); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.chip {
  min-height: 42px; padding: var(--s2) var(--s5); border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--text-2); border: 1px solid var(--border-strong);
  font: inherit; font-size: var(--t-sm); font-weight: 600;
}
.chip.on { background: var(--violet-deep); color: #fff; border-color: var(--violet-deep); }
.chips .count { color: var(--text-3); font-size: var(--t-sm); margin-inline-start: auto; }

/* ---------- breadcrumbs / page heads ---------- */
.crumbs { color: var(--text-3); font-size: var(--t-sm); margin-bottom: var(--s6); display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.crumbs a { color: var(--text-2); }
.crumbs .sep { color: var(--text-3); }
.game-head { display: flex; gap: var(--s5); align-items: center; margin-bottom: var(--s8); flex-wrap: wrap; }
.game-head-img { width: 110px; height: 110px; border-radius: var(--r-lg); object-fit: cover; border: 1px solid var(--border-strong); }
@media (min-width: 768px) { .game-head-img { width: 140px; height: 140px; } }
.game-head h1 { margin-bottom: var(--s2); }
.game-head .lead { margin-bottom: 0; }

/* ---------- product / checkout ---------- */
.product-layout { display: grid; gap: var(--s6); align-items: start; }
@media (min-width: 900px) { .product-layout { grid-template-columns: 1fr 440px; gap: var(--s10); } }
.product-info { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; }
.product-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.product-info-in { padding: var(--s6); }
.product-info h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.price-big { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; color: var(--coral-bright); line-height: 1.1; margin-bottom: var(--s5); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); color: var(--text-2); }
.ticks li { display: flex; gap: var(--s3); align-items: flex-start; }
.ticks .ic { color: var(--success); width: 20px; height: 20px; margin-top: 3px; }
.checkout {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: var(--s6); display: grid; gap: var(--s5); box-shadow: var(--shadow-card);
}
@media (min-width: 900px) { .checkout { position: sticky; top: calc(var(--hdr-h) + var(--s5)); } }
.checkout h2 { font-size: var(--t-xl); margin: 0; }
.field { display: grid; gap: var(--s2); }
.field > span { font-weight: 600; font-size: var(--t-sm); }
.field small { color: var(--text-3); font-size: var(--t-sm); }
.field input, .field select {
  width: 100%; min-height: 52px; border-radius: var(--r); border: 1px solid var(--border-input);
  background: var(--bg-2); color: var(--text); font: inherit; font-size: var(--t-base);
  padding-inline: var(--s4);
}
.field input:focus, .field select:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 3px rgba(144, 139, 232, .25); }
.field input::placeholder { color: var(--text-3); }
.qty-row { display: flex; align-items: center; gap: var(--s3); }
.qty-btn {
  width: 48px; height: 52px; border-radius: var(--r); flex: none; cursor: pointer;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong);
  font-size: 1.3rem; font-family: var(--font-display); font-weight: 700;
}
.qty-row select { text-align: center; }
.total-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4);
  padding-top: var(--s4); border-top: 1px dashed var(--border-strong);
}
.total-row span { color: var(--text-2); font-weight: 600; }
.total-row strong { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: var(--coral-bright); }
.fineprint { color: var(--text-3); font-size: var(--t-sm); margin: 0; }
.fineprint a { color: var(--violet-bright); }

/* ---------- alerts / empty ---------- */
.alert { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s4) var(--s5); border-radius: var(--r); margin-bottom: var(--s6); font-size: var(--t-sm); }
.alert .ic { margin-top: 2px; }
.alert-warn { background: rgba(243, 160, 122, .12); border: 1px solid rgba(243, 160, 122, .4); color: #ffd9c4; }
.alert-err { background: rgba(242, 125, 114, .12); border: 1px solid rgba(242, 125, 114, .45); color: #ffc9c3; }
.empty-note { color: var(--text-2); background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--r); padding: var(--s5); text-align: center; }
.empty-box { max-width: 560px; margin-inline: auto; text-align: center; padding-block: var(--s12); }

/* ---------- category cards (codes) ---------- */
.grid-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
@media (min-width: 768px) { .grid-cats { grid-template-columns: repeat(3, 1fr); } }
.cat-card {
  display: flex; flex-direction: column; gap: var(--s2); padding: var(--s5);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  color: var(--text); transition: transform .22s var(--ease-out), border-color .22s ease;
}
.cat-card:hover { transform: translateY(-3px); border-color: var(--violet); text-decoration: none; }
.cat-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); margin-bottom: var(--s2); }
.cat-title { font-family: var(--font-display); font-weight: 700; font-size: var(--t-lg); line-height: 1.3; }
.cat-count { color: var(--text-3); font-size: var(--t-sm); }

/* ---------- manual ---------- */
.manual-cat { margin-bottom: var(--s10); }
.manual-cat h2 { margin-bottom: var(--s5); }
.manual-form { display: flex; gap: var(--s2); margin-top: var(--s3); flex-wrap: wrap; }
.manual-form input {
  flex: 1; min-width: 170px; min-height: 48px; border-radius: var(--r-sm);
  border: 1px solid var(--border-input); background: var(--bg-2); color: var(--text);
  font: inherit; font-size: var(--t-base); padding-inline: var(--s4);
}
.manual-form select {
  min-height: 48px; border-radius: var(--r-sm); border: 1px solid var(--border-input);
  background: var(--bg-2); color: var(--text); font: inherit; padding-inline: var(--s3);
}
.manual-form .btn { min-height: 48px; }

/* ---------- order page ---------- */
.status-hero { text-align: center; padding: var(--s8) var(--s5); margin-bottom: var(--s6); }
.status-ic {
  display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto var(--s4);
  border-radius: 50%; background: rgba(107, 95, 202, .16); color: var(--violet-bright);
  border: 2px solid var(--violet-deep);
}
.status-ic .ic { width: 36px; height: 36px; }
.status-ic.ok { background: rgba(62, 207, 142, .14); color: var(--success); border-color: var(--success); }
.status-ic.warn { background: rgba(243, 160, 122, .14); color: var(--coral-bright); border-color: var(--coral); }
.status-hero h1 { margin-bottom: var(--s2); }
.status-hero .oid { color: var(--text-3); font-size: var(--t-sm); }
.progress { display: flex; align-items: flex-start; max-width: 520px; margin: var(--s6) auto 0; }
.progress .pstep { flex: 1; display: flex; flex-direction: column; align-items: center; gap: var(--s2); position: relative; color: var(--text-3); font-size: var(--t-xs); font-weight: 600; text-align: center; }
.progress .pstep::before { content: ''; position: absolute; top: 17px; inset-inline-start: calc(-50% + 20px); width: calc(100% - 40px); height: 2px; background: var(--border-strong); }
.progress .pstep:first-child::before { display: none; }
.progress .pdot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 2px solid var(--border-strong); z-index: 1; }
.progress .pdot .ic { width: 17px; height: 17px; }
.progress .pstep.done { color: var(--text-2); }
.progress .pstep.done .pdot { background: var(--violet-deep); border-color: var(--violet-deep); color: #fff; }
.progress .pstep.done::before { background: var(--violet-deep); }
.progress .pstep.now { color: var(--text); }
.progress .pstep.now .pdot { border-color: var(--coral); color: var(--coral-bright); animation: pulse 2s infinite; }
.order-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s2) var(--s6); margin-bottom: var(--s6); }
.order-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--border); }
.order-row:last-child { border-bottom: 0; }
.order-row span { color: var(--text-3); font-size: var(--t-sm); }
.order-row strong { text-align: end; }
.order-row .price { font-family: var(--font-display); font-size: var(--t-xl); color: var(--coral-bright); }
.pay-box { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-xl); padding: var(--s6); margin-bottom: var(--s6); }
.pay-box h2 { font-size: var(--t-2xl); }
.pay-amount { font-family: var(--font-display); font-weight: 800; font-size: 3rem; color: var(--coral-bright); line-height: 1.1; margin: var(--s3) 0; }
.pay-methods { display: grid; gap: var(--s4); margin: var(--s5) 0; }
@media (min-width: 640px) { .pay-methods { grid-template-columns: 1fr 1fr; } }
.pay-method { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s5); display: grid; gap: var(--s3); }
.pay-name { font-weight: 700; font-family: var(--font-display); font-size: var(--t-lg); display: flex; align-items: center; gap: var(--s2); }
.pay-name .ic { color: var(--violet-bright); }
.copyable { font-family: var(--font-mono); font-size: 1.25rem; letter-spacing: .04em; direction: ltr; text-align: start; color: var(--text); }
.code-line { display: flex; align-items: center; gap: var(--s3); background: var(--bg-2); border: 1px dashed var(--border-strong); border-radius: var(--r); padding: var(--s4); margin-bottom: var(--s3); }
.code-line code { font-family: var(--font-mono); font-size: 1.15rem; direction: ltr; flex: 1; word-break: break-all; }
.track-wrap { max-width: 560px; margin-inline: auto; }

/* ---------- footer ---------- */
.ftr { background: var(--bg-2); border-top: 1px solid var(--border); margin-top: var(--s16); }
.ftr-in { display: grid; gap: var(--s10); padding-block: var(--s12); }
@media (min-width: 900px) { .ftr-in { grid-template-columns: 1.6fr 1fr 1fr; } }
.ftr-txt { color: var(--text-2); max-width: 44ch; margin-top: var(--s4); }
.ftr-badges { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.ftr-badges span { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--t-sm); color: var(--text-2); background: var(--surface); border: 1px solid var(--border); padding: var(--s2) var(--s3); border-radius: 999px; }
.ftr-badges .ic { color: var(--success); }
.ftr-col { display: grid; gap: var(--s3); align-content: start; }
.ftr-col h3 { font-size: var(--t-base); margin-bottom: var(--s1); }
.ftr-col a { color: var(--text-2); }
.ftr-col a:hover { color: var(--text); }
.ftr-base { padding-block: var(--s5); border-top: 1px solid var(--border); color: var(--text-3); font-size: var(--t-sm); text-align: center; }

/* ---------- motion / a11y ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
}
