/* =========================================================
   PLAYERZONE — Games & Gift Cards
   Light-first esports storefront. Original UI, no third-party art.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --canvas: #F8FAFC;
  --canvas-2: #F1F5F9;
  --surface: #FFFFFF;
  --surface-2: #F8FAFC;
  --surface-3: #F1F5F9;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  --ink: #0F172A;
  --ink-2: #475569;
  --ink-3: #64748B;

  --primary: #0284C7;
  --primary-hi: #0EA5E9;
  --primary-soft: #E0F2FE;
  --primary-ink: #075985;
  /* text-safe blue for small copy and filled buttons (AA on white) */
  --primary-deep: #0369A1;
  --btn-blue-a: #0369A1;
  --btn-blue-b: #075985;
  --on-accent: #3B1206;

  --accent: #F97316;
  --accent-hi: #FB923C;
  --accent-soft: #FFEDD5;
  --accent-ink: #C2410C;

  --wa: #25D366;
  --wa-deep: #128C7E;

  --ok: #059669;
  --ok-soft: #D1FAE5;

  --hero-a: #EFF6FF;
  --hero-b: #FFF7ED;

  --ring: 0 0 0 4px rgb(14 165 233 / .22);
  --shadow-sm: 0 1px 2px rgb(15 23 42 / .06), 0 1px 3px rgb(15 23 42 / .05);
  --shadow-md: 0 4px 10px -2px rgb(15 23 42 / .08), 0 2px 6px -2px rgb(15 23 42 / .05);
  --shadow-lg: 0 18px 40px -18px rgb(15 23 42 / .22), 0 8px 18px -12px rgb(15 23 42 / .12);
  --shadow-xl: 0 40px 80px -32px rgb(15 23 42 / .35);

  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 32px;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --head-h: 68px;

  --font-display: 'Chakra Petch', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --ease: cubic-bezier(.22, .8, .3, 1);
}

[data-theme="dark"] {
  --canvas: #090D16;
  --canvas-2: #0B1220;
  --surface: #111827;
  --surface-2: #0F172A;
  --surface-3: #16213A;
  --border: #1E293B;
  --border-strong: #334155;

  --ink: #F8FAFC;
  --ink-2: #CBD5E1;
  --ink-3: #94A3B8;

  --primary: #0EA5E9;
  --primary-hi: #38BDF8;
  --primary-soft: #0B2942;
  --primary-ink: #7DD3FC;
  --primary-deep: #7DD3FC;
  --btn-blue-a: #0A76AC;
  --btn-blue-b: #0369A1;
  --on-accent: #3B1206;

  --accent: #F97316;
  --accent-hi: #FB923C;
  --accent-soft: #3A1D0B;
  --accent-ink: #FDBA74;

  --ok: #34D399;
  --ok-soft: #0B2E24;

  --hero-a: #0B1626;
  --hero-b: #1A1020;

  --ring: 0 0 0 4px rgb(56 189 248 / .28);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .5);
  --shadow-md: 0 6px 16px -6px rgb(0 0 0 / .6);
  --shadow-lg: 0 20px 44px -20px rgb(0 0 0 / .75);
  --shadow-xl: 0 40px 90px -30px rgb(0 0 0 / .9);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keeps focused elements clear of the sticky header (WCAG 2.4.11). */
  scroll-padding-top: calc(var(--head-h) + 24px);
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection { background: var(--primary); color: #fff; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--ink); color: var(--canvas);
  font-weight: 600; transform: translateY(-200%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.ico {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
/* Merchant name: display face, single clean word space (mono spaces read as double gaps). */
.merchant {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .005em;
  word-spacing: 0;
  white-space: nowrap;
}
.muted { color: var(--ink-3); font-size: .85rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: 0 1.15rem;
  border-radius: 12px; border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: .94rem;
  letter-spacing: -.01em; white-space: nowrap;
  transition: transform .16s var(--ease), box-shadow .2s var(--ease),
              background-color .2s var(--ease), border-color .2s var(--ease), color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--btn-blue-a), var(--btn-blue-b));
  color: #fff;
  box-shadow: 0 8px 20px -10px rgb(2 132 199 / .75), inset 0 1px 0 rgb(255 255 255 / .22);
}
.btn-primary:hover { box-shadow: 0 12px 26px -10px rgb(2 132 199 / .85), inset 0 1px 0 rgb(255 255 255 / .3); }
.btn-accent {
  background: linear-gradient(180deg, #FB923C, #F97316);
  color: var(--on-accent);
  box-shadow: 0 10px 24px -12px rgb(249 115 22 / .9), inset 0 1px 0 rgb(255 255 255 / .35);
}
.btn-accent:hover { box-shadow: 0 14px 30px -12px rgb(249 115 22 / .95), inset 0 1px 0 rgb(255 255 255 / .3); }
.btn-wa {
  background: linear-gradient(180deg, #2ee06f, #1eb955);
  color: #04301a;
  box-shadow: 0 10px 24px -12px rgb(37 211 102 / .9), inset 0 1px 0 rgb(255 255 255 / .35);
}
[data-theme="dark"] .btn-wa { color: #052e16; }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--border-strong); background: var(--surface-2); }
.btn-block { width: 100%; }
.btn.is-disabled {
  background: var(--surface-3);
  color: var(--ink-3);
  box-shadow: none;
  border-color: var(--border);
  cursor: not-allowed;
  background-image: none;
}
.btn-sm { min-height: 38px; padding: 0 .8rem; font-size: .84rem; border-radius: 10px; }
.btn-lg { min-height: 54px; padding: 0 1.5rem; font-size: 1rem; border-radius: 14px; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-2);
  transition: background-color .2s, color .2s, border-color .2s, transform .16s var(--ease);
}
.icon-btn:hover { color: var(--ink); border-color: var(--border-strong); background: var(--surface-2); }
.icon-btn:active { transform: scale(.96); }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  height: var(--head-h);
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.head-inner {
  height: 100%; display: flex; align-items: center; gap: 1.25rem;
}
.brand { flex: none; display: flex; align-items: center; }
.brand-logo {
  height: 40px; width: auto;
  filter: drop-shadow(0 3px 8px rgb(15 23 42 / .16));
}
.head-nav {
  display: none; align-items: center; gap: 1.6rem;
  margin-inline-start: .5rem;
}
.head-nav a {
  font-size: .9rem; font-weight: 600; color: var(--ink-2);
  padding-block: 6px; position: relative;
  transition: color .18s;
}
.head-nav a::after {
  content: ""; position: absolute; inset: auto 0 0;
  height: 2px; border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s var(--ease);
}
.head-nav a:hover { color: var(--ink); }
.head-nav a:hover::after { transform: scaleX(1); }
.head-actions { margin-inline-start: auto; display: flex; align-items: center; gap: .55rem; }
.head-wa span { display: none; }
.head-wa { min-height: 42px; padding: 0 .9rem; }

/* theme toggle icons */
.theme-toggle .i-moon { display: none; }
.theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: block; fill: currentColor; stroke: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle { color: #E2E8F0; border-color: #334155; background: #16213A; }
[data-theme="dark"] .theme-toggle:hover { color: #FFFFFF; border-color: #64748B; background: #1E293B; }

@media (min-width: 900px) {
  :root { --head-h: 80px; }
  .brand-logo { height: 56px; }
  .head-nav { display: flex; }
  .head-wa span { display: inline; }
  .head-wa { min-height: 44px; padding: 0 1.1rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 82% 8%, rgb(14 165 233 / .13), transparent 62%),
    radial-gradient(760px 380px at 8% 92%, rgb(249 115 22 / .12), transparent 60%),
    linear-gradient(160deg, var(--hero-a) 0%, var(--canvas) 46%, var(--hero-b) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--primary) 9%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--primary) 9%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 78%);
  opacity: .8;
}
.hero-inner {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  padding-block: clamp(2.2rem, 6vw, 4.5rem) clamp(2.4rem, 6vw, 5rem);
}
.eyebrow {
  display: block;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3);
  line-height: 1.5;
}
.eyebrow .dot {
  display: inline-block; vertical-align: middle;
  width: 7px; height: 7px; border-radius: 50%;
  margin-inline-end: .5rem; margin-block-start: -2px;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.hero h1 {
  margin-block: .9rem 1rem;
  font-size: clamp(1.95rem, 4.9vw, 2.95rem);
  letter-spacing: -.025em;
  line-height: 1.03;
  color: var(--ink);
}
.hl {
  /* Stops chosen so even the lightest end clears 3:1 on the hero wash. */
  background: linear-gradient(180deg, #0A8CCB, #0277B5);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hl-warm {
  background: linear-gradient(180deg, #EA580C, #DC5308);
  -webkit-background-clip: text; background-clip: text;
}
.br-lg { display: none; }
.hero-sub {
  max-width: 34rem; font-size: 1.02rem; color: var(--ink-2);
}
.trust-pills {
  list-style: none; padding: 0; margin-block: 1.35rem 1.6rem;
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.trust-pills li {
  display: inline-flex; align-items: center; gap: .42rem;
  padding: .4rem .7rem .4rem .6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border: 1px solid var(--border);
  font-size: .78rem; font-weight: 700; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.trust-pills .ico { color: var(--primary); }

.hero-search { position: relative; max-width: 34rem; }
/* Higher specificity than the generic input rule further down the sheet,
   so the search field keeps its taller height, radius and icon insets. */
.hero-search input,
.hero-search input[type="text"],
.hero-search input[type="search"] {
  width: 100%; min-height: 54px;
  padding: 0 3rem 0 3.1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.hero-search input::placeholder { color: var(--ink-3); }
.hero-search input:focus { outline: none; border-color: var(--primary-hi); box-shadow: var(--ring), var(--shadow-md); }
/* Belt-and-braces: even if a UA renders a native search cancel control, hide it. */
.hero-search input[type="search"]::-webkit-search-cancel-button,
.hero-search input[type="search"]::-webkit-search-decoration,
.hero-search input::-ms-clear,
.hero-search input::-ms-reveal {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.hero-search .search-ico {
  position: absolute; left: 1.05rem; top: 50%; translate: 0 -50%;
  width: 20px; height: 20px; color: var(--ink-3); pointer-events: none;
}
.search-clear {
  position: absolute; right: .55rem; top: 50%; translate: 0 -50%;
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  color: var(--ink-3);
}
.search-clear:hover { background: var(--surface-3); color: var(--ink); }
.search-clear .ico { width: 16px; height: 16px; }

.hero-quick { margin-top: 1.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.quick-label { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.quick-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.quick-chip {
  padding: .34rem .7rem; border-radius: 999px;
  border: 1px dashed var(--border-strong);
  font-size: .78rem; font-weight: 600; color: var(--ink-2);
  transition: all .18s;
}
.quick-chip:hover { border-style: solid; border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* hero art */
.hero-art { position: relative; display: grid; place-items: center; padding-block: 14px; }
.art-card {
  position: relative; width: 100%; max-width: 480px;
  padding: 1.35rem 1.35rem 1.1rem;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 90% at 50% -10%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
}
.art-card::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--primary) 55%, transparent), transparent 40%, color-mix(in srgb, var(--accent) 45%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.hero-logo {
  width: 100%; max-width: 470px; height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 14px 26px rgb(15 23 42 / .22));
}
.art-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
  margin-top: 1.1rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.art-stat strong {
  display: block; font-family: var(--font-display); font-size: 1.3rem;
  letter-spacing: -.02em; color: var(--ink);
}
.art-stat span { font-size: .76rem; color: var(--ink-3); font-weight: 600; }
.art-note {
  margin-top: .9rem; display: flex; align-items: center; gap: .55rem;
  padding: .6rem .7rem; border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  font-size: .78rem; color: var(--accent-ink);
}
.art-note .ico { color: var(--accent); }
.art-note p { line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
.art-note .mono { font-weight: 700; letter-spacing: -.03em; }

.float-badge {
  position: absolute; z-index: 2;
  display: none; align-items: center; gap: .4rem;
  padding: .5rem .75rem; border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: .78rem; font-weight: 700; color: var(--ink);
  animation: floaty 6s ease-in-out infinite;
}
.float-a { top: -12px; left: -10px; }
.float-b { bottom: -26px; right: -6px; animation-delay: -3s; }
.float-a .ico { color: var(--primary); }
.float-b .ico { color: var(--accent); }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@media (min-width: 700px) { .float-badge { display: inline-flex; } }
/* Between the single-column and two-column hero there is no gutter for the badges. */
@media (min-width: 700px) and (max-width: 959px) {
  .float-badge { display: none; }
  .art-card { max-width: 560px; }
  .hero-logo { max-width: 520px; }
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; }
  .br-lg { display: block; }
  .hero-art { padding-inline: .5rem; }
}

/* ---------- Store ---------- */
.store { padding-block: clamp(1.6rem, 4vw, 2.6rem) clamp(2.5rem, 6vw, 4rem); }
.cat-bar {
  position: sticky; top: var(--head-h); z-index: 40;
  padding-block: .75rem;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  background: color-mix(in srgb, var(--canvas) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.cat-bar.is-stuck { border-bottom-color: var(--border); }
.chips {
  display: flex; gap: .45rem;
  overflow-x: auto; scrollbar-width: none;
  padding-block: 2px;
  scroll-snap-type: inline proximity;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start;
  min-height: 44px; padding: 0 .95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: .85rem; font-weight: 700; color: var(--ink-2);
  transition: all .18s var(--ease);
  box-shadow: var(--shadow-sm);
}
.chip:hover { border-color: var(--primary-hi); color: var(--primary); }
.chip[aria-pressed="true"] {
  background: linear-gradient(180deg, var(--btn-blue-a), var(--btn-blue-b));
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 18px -10px rgb(2 132 199 / .8);
}
.cat-note { margin-top: .6rem; font-size: .8rem; color: var(--ink-3); font-weight: 600; }
.cat-note:empty { display: none; }

/* ---------- Store sections ---------- */
.store-section { margin-top: clamp(2rem, 5vw, 3.2rem); }

/* Anchor targets land below the sticky header instead of being clipped. */
#catalog,
#games,
#gift-cards,
#subscriptions,
#services,
#how,
#why {
  scroll-margin-top: 112px;
}
.store-section { scroll-margin-top: calc(var(--head-h) + 64px); }
.store-section:first-of-type { margin-top: 1.4rem; }
.store-section[hidden] { display: none; }

.section-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding-bottom: .85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.section-row h2 {
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  letter-spacing: -.02em;
  display: flex; align-items: center; gap: .55rem;
  flex-wrap: wrap;
}
.section-tag {
  font-family: var(--font-mono); font-size: .6em; font-weight: 700;
  letter-spacing: .04em;
  padding: .18em .5em;
  border-radius: 6px;
  color: var(--primary-ink);
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
}
.section-row p { margin-top: .35rem; font-size: .88rem; color: var(--ink-3); }
.section-meta {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.catalog-grid {
  display: grid; gap: .7rem;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

/* ---------- Item card ---------- */
.item-card {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: .3rem;
  padding: .85rem .85rem .75rem;
  text-align: left;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s, border-color .18s;
  min-height: 158px;
  overflow: hidden;
}
.item-card::after {
  content: ""; position: absolute; inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-hi));
  opacity: 0;
  transition: opacity .18s;
}
.item-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--primary) 42%, var(--border));
}
.item-card:hover::after { opacity: 1; }
.item-card:focus-visible { outline-offset: 3px; }

.item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .4rem; width: 100%; margin-bottom: .45rem; }
.item-ico {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--primary);
  flex: none;
}
.item-ico .ico { width: 20px; height: 20px; }
.item-card[data-tone="warm"] .item-ico {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
}
.item-card[data-tone="cool"] .item-ico {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: color-mix(in srgb, var(--primary) 20%, transparent);
}
.item-badge {
  font-size: .56rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: .16rem .35rem; border-radius: 5px;
  background: var(--accent-soft); color: var(--accent-ink);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  white-space: nowrap;
}

.item-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: .95rem; line-height: 1.18; letter-spacing: -.01em;
  color: var(--ink);
}
.item-sub {
  font-size: .72rem; color: var(--ink-3); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-req {
  display: inline-flex; align-items: center; gap: .25rem;
  margin-top: .1rem;
  font-size: .64rem; font-weight: 700; letter-spacing: .01em;
  color: var(--ink-3);
}
.item-req .ico { width: 11px; height: 11px; color: var(--ink-3); }
.item-card[data-tone="warm"] .item-req .ico { color: var(--accent); }
.item-card[data-tone="cool"] .item-req .ico { color: var(--primary); }

.item-foot {
  margin-top: auto; padding-top: .55rem;
  width: 100%;
  display: flex; align-items: baseline; gap: .3rem;
  border-top: 1px dashed var(--border);
}
.item-price {
  font-family: var(--font-mono); font-size: .76rem; font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.item-price .from {
  font-family: var(--font-body); font-size: .62rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3);
  margin-inline-end: .15rem;
}
.item-price.is-quote {
  font-family: var(--font-body); font-size: .7rem; font-weight: 700;
  color: var(--primary-ink);
  white-space: normal;
}
.item-count {
  font-size: .6rem; color: var(--ink-3);
  margin-inline-start: auto;
  white-space: nowrap;
}
.item-arrow {
  display: grid; place-items: center;
  width: 18px; height: 18px; border-radius: 5px;
  margin-inline-start: auto;
  color: var(--primary);
  background: var(--primary-soft);
  flex: none;
}
.item-count + .item-arrow { margin-inline-start: .3rem; }
.item-arrow .ico { width: 11px; height: 11px; transition: transform .18s; }
.item-card:hover .item-arrow .ico { transform: translateX(2px); }

.grid-sub {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  margin-top: .5rem; padding-top: .9rem;
  border-top: 1px dashed var(--border-strong);
}
.grid-sub span {
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  color: var(--ink);
}
.grid-sub em {
  font-style: normal; font-size: .72rem; font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  padding: .15rem .45rem; border-radius: 5px;
}

/* ---------- "Don't see your game?" grid CTA ---------- */
.grid-cta {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 1.1rem 1.15rem;
  border-radius: var(--r-md);
  border: 1px dashed color-mix(in srgb, var(--primary) 48%, var(--border));
  background:
    radial-gradient(420px 170px at 100% 0%, color-mix(in srgb, var(--primary) 13%, transparent), transparent 72%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}
.grid-cta-copy { display: grid; gap: .3rem; min-width: 0; }
.grid-cta-ico {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent);
  color: var(--primary);
  margin-bottom: .1rem;
}
.grid-cta h3 { font-size: clamp(1rem, 2.2vw, 1.18rem); }
.grid-cta p { font-size: .84rem; color: var(--ink-3); max-width: 32rem; line-height: 1.5; }
.grid-cta .btn { flex: none; }

@media (min-width: 1200px) {
  .grid-cta {
    grid-column: span 3;
    min-height: 168px;
    align-content: center;
  }
}

.empty-state {
  text-align: center; padding: 3rem 1rem;
  margin-top: 2rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--surface-2);
}
.empty-state .ico { width: 34px; height: 34px; margin-inline: auto; color: var(--ink-3); }
.empty-state h3 { margin-block: .8rem .4rem; font-size: 1.2rem; }
.empty-state p { color: var(--ink-3); font-size: .9rem; margin-bottom: 1.2rem; }

@media (min-width: 560px) {
  .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); }
}
@media (min-width: 900px) {
  .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: .85rem; }
}
@media (min-width: 1200px) {
  .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .item-card { min-height: 168px; }
}

/* ---------- Section heads ---------- */
.section-head { max-width: 44rem; margin-bottom: clamp(1.6rem, 4vw, 2.4rem); }
.section-head h2 { font-size: clamp(1.65rem, 4.2vw, 2.5rem); margin-block: .7rem .6rem; }
.section-head h3 { font-size: clamp(1.15rem, 2.6vw, 1.5rem); }
.section-sub { color: var(--ink-3); font-size: .98rem; }
.section-head--tight { margin-bottom: 1.2rem; }

/* ---------- How ---------- */
.how {
  padding-block: clamp(2.8rem, 7vw, 5rem);
  background: var(--surface-2);
  border-block: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.how::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--primary) 16%, transparent) 1px, transparent 0);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
  opacity: .5; pointer-events: none;
}
.steps {
  list-style: none; padding: 0;
  display: grid; gap: 1rem;
  counter-reset: step;
  position: relative;
}
.step {
  position: relative;
  padding: 1.4rem 1.2rem 1.2rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;
}
.step-index {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(160deg, var(--btn-blue-a), var(--btn-blue-b));
  box-shadow: 0 8px 18px -10px rgb(2 132 199 / .9);
  margin-bottom: .85rem;
}
.step:nth-child(2) .step-index { background: linear-gradient(160deg, var(--accent-hi), var(--accent)); color: var(--on-accent); box-shadow: 0 8px 18px -10px rgb(249 115 22 / .9); }
.step:nth-child(3) .step-index { background: linear-gradient(160deg, #04835E, #047857); box-shadow: 0 8px 18px -10px rgb(16 185 129 / .9); }
.step h3 { font-size: 1.1rem; margin-bottom: .45rem; }
.step h3 .mono { font-size: .92em; color: var(--primary-ink); }
.step p { font-size: .89rem; color: var(--ink-3); }
.step-meta {
  margin-top: auto; padding-top: .9rem;
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .76rem; font-weight: 700; color: var(--ink-2);
}
.step-meta .ico { color: var(--primary); }

.mmg-inline {
  position: relative;
  margin-top: 1rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  padding: .8rem;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
}
.mmg-inline > div { display: flex; flex-direction: column; gap: .1rem; margin-inline-end: auto; }
.mmg-label { font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.mmg-inline strong { font-family: var(--font-display); font-size: .95rem; letter-spacing: .01em; }
.mmg-inline .copy-btn {
  /* Fixed width wider than either label, so "Copy number" -> "Copied" cannot shift the row. */
  inline-size: 9.5rem;
  justify-content: center;
  flex: none;
}
.mmg-inline .copy-btn span { text-align: center; }
.mmg-num { font-size: .95rem; font-weight: 700; color: var(--primary-deep); }
.copy-tip {
  position: absolute; right: .6rem; bottom: calc(100% - 2px);
  padding: .2rem .5rem; border-radius: 6px;
  background: var(--ink); color: var(--canvas);
  font-size: .7rem; font-weight: 700;
  opacity: 0; translate: 0 4px; pointer-events: none;
  transition: opacity .18s, translate .18s;
}
.copy-tip:not(:empty) { opacity: 1; translate: 0 0; }

.how-cta {
  margin-top: 1.4rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem;
  padding: 1.3rem;
  border-radius: var(--r-lg);
  background:
    radial-gradient(600px 200px at 0% 0%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.how-cta > div:first-child { flex: 1 1 16rem; }
.how-cta h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.how-cta p { font-size: .88rem; color: var(--ink-3); }
.how-cta-actions { display: flex; flex-wrap: wrap; gap: .55rem; }

@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
  .steps::before {
    content: ""; position: absolute; top: 34px; left: 12%; right: 12%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--border-strong) 0 8px, transparent 8px 16px);
    z-index: 0;
  }
  .step { z-index: 1; }
}

/* ---------- Trust ---------- */
.trust { padding-block: clamp(2.8rem, 7vw, 5rem); }
.why-grid { display: grid; gap: .85rem; grid-template-columns: 1fr; }
.why-card {
  padding: 1.2rem;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.why-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.why-ico {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: .8rem;
}
.why-card:nth-child(2) .why-ico { background: var(--accent-soft); color: var(--accent-ink); }
.why-card:nth-child(3) .why-ico { background: var(--ok-soft); color: var(--ok); }
.why-card:nth-child(4) .why-ico { background: var(--primary-soft); color: var(--primary); }
.why-card h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.why-card p { font-size: .86rem; color: var(--ink-3); }

/* ---------- Trust strip (3-step fast order process) ---------- */
.trust-strip {
  margin-top: clamp(2rem, 5vw, 3rem);
  border-radius: var(--r-lg);
  background:
    radial-gradient(700px 220px at 0% 0%, color-mix(in srgb, var(--primary) 9%, transparent), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.trust-strip-head {
  padding: 1.15rem 1.2rem .9rem;
  border-bottom: 1px solid var(--border);
}
.trust-strip-head h3 { font-size: clamp(1.1rem, 2.4vw, 1.35rem); }
.trust-strip-head p { margin-top: .3rem; font-size: .86rem; color: var(--ink-3); }

.fast-steps {
  list-style: none; margin: 0; padding: 1.1rem 1.2rem;
  display: grid; gap: .9rem;
  counter-reset: fs;
}
.fast-steps li {
  display: flex; gap: .8rem; align-items: flex-start;
}
.fs-num {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: .88rem;
  color: #fff;
  background: linear-gradient(160deg, var(--btn-blue-a), var(--btn-blue-b));
  box-shadow: 0 6px 14px -8px rgb(2 132 199 / .9);
}
.fast-steps li:nth-child(2) .fs-num {
  background: linear-gradient(160deg, var(--accent-hi), var(--accent));
  color: var(--on-accent);
  box-shadow: 0 6px 14px -8px rgb(249 115 22 / .9);
}
.fast-steps li:nth-child(3) .fs-num {
  background: linear-gradient(160deg, #04835E, #047857);
  box-shadow: 0 6px 14px -8px rgb(16 185 129 / .9);
}
.fast-steps h4 { font-size: .95rem; margin-bottom: .15rem; }
.fast-steps p { font-size: .82rem; color: var(--ink-3); line-height: 1.5; }
.fast-steps .mono { color: var(--ink); font-weight: 700; font-size: .92em; }

.trust-strip-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: .9rem; flex-wrap: wrap;
  padding: .9rem 1.2rem 1.1rem;
  border-top: 1px dashed var(--border);
  background: var(--surface-2);
}
.trust-badges {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .45rem .8rem;
}
.trust-badges li {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .76rem; font-weight: 700; color: var(--ink-2);
}
.trust-badges .ico { width: 14px; height: 14px; color: var(--primary); }

@media (min-width: 760px) {
  .fast-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; padding-block: 1.25rem; }
  .fast-steps li { flex-direction: column; gap: .55rem; }
}

@media (min-width: 640px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) { .why-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- FAQ ---------- */
.faq {
  padding-block: clamp(2.4rem, 6vw, 4.2rem);
  background: var(--surface-2);
  border-block: 1px solid var(--border);
}
.faq-wrap { display: grid; gap: 1.6rem; }
.faq-copy .btn { margin-top: 1rem; }
.faq-list { display: grid; gap: .55rem; align-content: start; }
.faq-list details {
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-list summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: .95rem 2.6rem .95rem 1rem;
  font-weight: 700; font-size: .93rem;
  transition: background-color .18s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { background: var(--surface-2); }
.faq-list summary::after {
  content: ""; position: absolute; right: 1rem; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  rotate: 45deg; translate: 0 -70%;
  transition: rotate .22s var(--ease);
}
.faq-list details[open] summary::after { rotate: -135deg; translate: 0 -30%; }
.faq-list details[open] summary { color: var(--primary-ink); }
.faq-list p { padding: 0 1rem 1rem; font-size: .88rem; color: var(--ink-3); }
.faq-list p .mono { color: var(--ink); font-weight: 700; }

@media (min-width: 900px) { .faq-wrap { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 3rem; } }

/* ---------- CTA band ---------- */
.cta-band {
  padding-block: clamp(2.4rem, 6vw, 3.8rem);
  background:
    radial-gradient(700px 300px at 88% 0%, rgb(249 115 22 / .18), transparent 65%),
    radial-gradient(700px 300px at 5% 100%, rgb(14 165 233 / .2), transparent 65%),
    linear-gradient(135deg, #0B1B33, #123B63 55%, #0B1B33);
  color: #F8FAFC;
  border-bottom: 1px solid var(--border);
}
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; }
.cta-inner h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin-bottom: .4rem; }
.cta-inner p { color: #CBD5E1; font-size: .95rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cta-band .btn-primary { background: linear-gradient(180deg, #0369A1, #075985); }

/* ---------- Footer ---------- */
.site-foot { background: var(--surface); border-top: 1px solid var(--border); }
.foot-main {
  display: grid; gap: 1.8rem;
  padding-block: clamp(2.2rem, 5vw, 3.4rem);
  grid-template-columns: 1fr;
}
.foot-logo { height: 46px; width: auto; margin-bottom: .9rem; }
.foot-brand p { font-size: .86rem; color: var(--ink-3); max-width: 30rem; }
.foot-facts { list-style: none; padding: 0; margin-top: .9rem; display: grid; gap: .35rem; }
.foot-facts li { display: flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--ink-2); font-weight: 600; }
.foot-facts .ico { color: var(--primary); width: 15px; height: 15px; }
.foot-col { display: flex; flex-direction: column; gap: .45rem; }
.foot-col h3 {
  font-size: .72rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
  margin-bottom: .35rem;
}
.foot-col a, .linkish {
  font-size: .86rem; color: var(--ink-2); text-align: left;
  padding-block: 2px; transition: color .16s;
  width: fit-content;
}
.foot-col a:hover, .linkish:hover { color: var(--primary); }
.foot-wa {
  display: flex; align-items: center; gap: .6rem;
  padding: .65rem .75rem; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  margin-bottom: .55rem;
  width: 100%;
}
.foot-wa:hover { border-color: var(--wa); background: color-mix(in srgb, var(--wa) 8%, var(--surface)); }
.wa-ico {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: #25D366; color: #04301a; flex: none;
}
.foot-wa-label { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.foot-wa strong { font-size: .9rem; color: var(--ink); }
.foot-mmg { display: flex; flex-direction: column; gap: .1rem; padding-block: .3rem; }
.foot-mmg strong { font-family: var(--font-display); font-size: .92rem; }
.foot-hours { font-size: .78rem; color: var(--ink-3); margin-top: .4rem; max-width: 22rem; line-height: 1.55; }
.foot-hours strong { color: var(--ink); }
.foot-email {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .5rem;
  font-size: .82rem; font-weight: 700;
  color: var(--primary-ink);
  overflow-wrap: anywhere;
}
.foot-email .ico { width: 15px; height: 15px; }
.foot-bottom a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.foot-bottom a:hover { color: var(--primary); }

.foot-bottom {
  display: grid; gap: .6rem;
  padding-block: 1.2rem;
  border-top: 1px solid var(--border);
  font-size: .76rem; color: var(--ink-3);
}
.foot-legal { max-width: 46rem; line-height: 1.5; }

.credit-bar { background: var(--surface-2); border-top: 1px solid var(--border); }
.credit-inner {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding-block: .85rem;
  font-size: .76rem; color: var(--ink-3); letter-spacing: .01em;
}
.credit-inner strong { color: var(--ink-2); font-weight: 800; }
.credit-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

@media (min-width: 700px) {
  .foot-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .foot-main { grid-template-columns: 1.6fr .8fr .8fr 1.1fr; }
  .foot-brand { grid-column: auto; }
}

.game-ico {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(160deg, var(--primary-soft), var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent);
  color: var(--primary);
  flex: none;
}
.game-ico .ico { width: 24px; height: 24px; }

/* ---------- Dialog / sheet ---------- */
dialog.sheet {
  width: min(880px, calc(100vw - 1.5rem));
  max-width: none;
  max-height: min(92dvh, 900px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  margin: auto;
  overscroll-behavior: contain;
}
dialog.sheet::backdrop {
  background: rgb(2 6 23 / .72);
  backdrop-filter: blur(8px) saturate(.9);
  -webkit-backdrop-filter: blur(8px) saturate(.9);
  overflow: hidden;
  overscroll-behavior: contain;
}
dialog.sheet--small { width: min(520px, calc(100vw - 1.5rem)); }
dialog.sheet[open] { animation: sheet-in .15s var(--ease) both; }
dialog.sheet[open]::backdrop { animation: fade-in .15s ease both; }
@keyframes sheet-in {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.sheet-inner {
  display: flex; flex-direction: column;
  max-height: inherit;
  min-height: 0;
  /* Fully opaque card: nothing from the page behind can bleed through. */
  background: var(--surface);
  isolation: isolate;
}
.sheet-head {
  display: flex; align-items: center; gap: .8rem;
  padding: .9rem 1rem;
  /* Reserve a lane on the right so the absolutely-positioned close button
     can never overlap the title, however long the game name is. */
  padding-inline-end: 4.4rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  z-index: 2;
}
.sheet-game { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.sheet-game > div { min-width: 0; }
/* Close button pinned to the true top-right corner of the modal card. */
.sheet-head > form {
  position: absolute;
  top: 16px;
  right: 16px;
  margin: 0;
  z-index: 10;
  display: flex;
}
.sheet-head .icon-btn { margin-inline-start: 0; }
.kicker {
  font-size: .66rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--primary-deep);
}
.sheet-head h2 { font-size: 1.2rem; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sheet-body {
  display: grid; gap: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 1rem;
  gap: 1.4rem;
}
.sheet-body--single { padding: 1.1rem 1rem 1.3rem; gap: 1rem; }
.sheet-body--single { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) {
  .sheet-body.sheet-body--single { grid-template-columns: minmax(0, 1fr); padding: 1.2rem 1.4rem 1.4rem; }
}

.step-head { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: .8rem; }
.step-head--spaced { margin-top: 1.6rem; }
.step-num {
  display: grid; place-items: center; flex: none;
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--primary-soft); color: var(--primary);
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  margin-top: 1px;
}
.step-head h3 { font-size: 1.02rem; }
.step-head p { font-size: .79rem; color: var(--ink-3); margin-top: .1rem; }

.seg {
  display: inline-flex; gap: .2rem; padding: .22rem;
  border-radius: 10px; background: var(--surface-3);
  border: 1px solid var(--border);
  margin-bottom: .8rem;
}
.seg-btn {
  min-height: 34px; padding: 0 .8rem; border-radius: 8px;
  font-size: .8rem; font-weight: 700; color: var(--ink-2);
  transition: all .16s;
}
.seg-btn[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg-btn { min-height: 40px; }

.pack-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.pack-grid {
  display: grid; gap: .5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pack {
  position: relative;
  display: flex; flex-direction: column; gap: .1rem;
  padding: .7rem .75rem;
  text-align: left;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all .16s var(--ease);
  min-height: 64px;
  cursor: pointer;
}
/* Hover is deliberately neutral so blue is reserved for the one selected pack —
   otherwise a hovered card reads as a second "active" highlight. */
.pack:hover { border-color: var(--border-strong); background: var(--surface-2); }
.pack:has(input:checked),
.pack.is-active {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 7%, var(--surface));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 28%, transparent);
}
.pack:has(input:focus-visible) {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.pack:has(input:checked)::after,
.pack.is-active::after {
  content: ""; position: absolute; top: .45rem; right: .45rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent);
}
.pack-qty { font-family: var(--font-display); font-weight: 700; font-size: .95rem; line-height: 1.15; }
.pack-price { font-family: var(--font-mono); font-size: .82rem; font-weight: 700; color: var(--primary-deep); }
.pack-note { font-size: .68rem; color: var(--ink-3); }
.pack-badge {
  position: absolute; top: -.4rem; left: .55rem;
  font-size: .58rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: .1rem .35rem; border-radius: 4px;
  background: var(--accent); color: var(--on-accent);
}
.req-note {
  display: block;
  margin-bottom: .9rem;
  padding: .6rem .7rem;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  color: var(--accent-ink);
  font-size: .76rem; font-weight: 600; line-height: 1.45;
}
.req-note[hidden] { display: none; }
.sheet-req {
  margin-top: .2rem;
  font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-ink);
}
.sheet-req[hidden] { display: none; }

.pack-footnote {
  display: flex; align-items: center; gap: .4rem;
  margin-top: .8rem; font-size: .74rem; color: var(--ink-3);
}
.pack-footnote .ico { color: var(--ok); }

/* fields */
.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .85rem; }
.field label { font-size: .82rem; font-weight: 700; color: var(--ink); }
.field .req { color: var(--accent); }
.hint { font-size: .73rem; color: var(--ink-3); }
.hint-inline { font-weight: 500; color: var(--ink-3); }
.error { font-size: .74rem; color: #DC2626; font-weight: 600; }
[data-theme="dark"] .error { color: #FCA5A5; }
input[type="text"], input[type="search"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: .65rem .8rem;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: max(16px, 1rem);
  transition: border-color .18s, box-shadow .18s;
}
textarea { min-height: 68px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: .9; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary-hi); box-shadow: var(--ring);
}
input[aria-invalid="true"] { border-color: #DC2626; box-shadow: 0 0 0 3px rgb(220 38 38 / .15); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-right: 2.4rem; cursor: pointer; }
.select-wrap .ico {
  position: absolute; right: .8rem; top: 50%; translate: 0 -50%;
  width: 15px; height: 15px; rotate: 90deg;
  color: var(--ink-3); pointer-events: none;
}

/* payment options */
.pay-list { display: grid; gap: .5rem; }
.pay-opt {
  display: flex; gap: .65rem; align-items: flex-start;
  padding: .8rem; text-align: left;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all .16s var(--ease);
  cursor: pointer;
}
.pay-opt-wrap {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .16s, box-shadow .16s, background-color .16s;
}
.pay-opt-wrap .pay-opt {
  border: 0; border-radius: 0;
  background: transparent;
  padding-bottom: .55rem;
}
.pay-opt-wrap.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent);
}
.pay-mmg-row {
  position: relative;
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  margin: 0 .8rem .8rem;
  padding: .6rem .65rem;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--border-strong));
}
.pay-mmg-id { display: flex; flex-direction: column; gap: .05rem; min-width: 0; margin-inline-end: auto; }
.pay-mmg-id .merchant { font-size: .88rem; }
.pay-mmg-id { flex: 1 1 8rem; }
.pay-mmg-num { font-size: .92rem; font-weight: 700; color: var(--primary-deep); }
.pay-mmg-row .copy-btn {
  /* Fixed width so the label swap never shifts the row. */
  inline-size: 9.9rem;
  min-height: 44px;
  justify-content: center;
  flex: none;
  font-size: .76rem;
  padding-inline: .5rem;
  gap: .35rem;
}
.pay-mmg-row .copy-btn span { text-align: center; }
.pay-mmg-row .copy-tip { right: .65rem; }
.pay-opt:hover { border-color: var(--border-strong); background: var(--surface-2); }
.pay-opt.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent);
}
.pay-radio {
  flex: none; margin-top: 3px;
  width: 17px; height: 17px; border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: grid; place-items: center;
  transition: border-color .16s;
}
.pay-opt.is-active .pay-radio { border-color: var(--accent); }
.pay-opt.is-active .pay-radio::after {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
}
.pay-body { display: flex; flex-direction: column; gap: .18rem; min-width: 0; }
.pay-title {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem;
  font-size: .86rem; font-weight: 700; color: var(--ink);
}
.pay-title .ico { color: var(--accent); width: 15px; height: 15px; }
.pay-desc { font-size: .76rem; color: var(--ink-3); line-height: 1.45; }
.pay-desc .mono { color: var(--ink-2); font-weight: 600; }
.pay-opt.is-soon { opacity: .78; }
.pay-opt.is-soon:hover { border-color: var(--border); background: var(--surface); }
.badge {
  font-size: .6rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: .16rem .4rem; border-radius: 5px; white-space: nowrap;
}
.badge-live { background: var(--ok-soft); color: #047857; }
[data-theme="dark"] .badge-live { color: #6EE7B7; }
.badge-soon { background: var(--surface-3); color: var(--ink-2); border: 1px solid var(--border); }

/* summary */
.summary {
  margin-top: 1rem;
  padding: .9rem;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.summary h4 { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .5rem; }
.summary-rows { display: grid; gap: .3rem; }
.summary-rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; font-size: .8rem; }
.summary-rows dt { color: var(--ink-3); }
.summary-rows dd { text-align: right; font-weight: 600; color: var(--ink); word-break: break-word; }
.summary-total { margin-top: .45rem; padding-top: .5rem; border-top: 1px dashed var(--border-strong); }
.summary-total dt { font-weight: 700; color: var(--ink) !important; }
.summary-total dd { font-size: 1.1rem; font-weight: 700; color: var(--primary-deep) !important; }
.summary-note {
  display: flex; align-items: flex-start; gap: .35rem;
  margin-top: .7rem; font-size: .7rem; color: var(--ink-3); line-height: 1.45;
}
.summary-note .ico { width: 13px; height: 13px; margin-top: 1px; flex: none; }

.sheet-foot {
  display: flex; align-items: center; gap: .8rem;
  padding: .8rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  position: relative; z-index: 2;
  padding-bottom: max(.8rem, env(safe-area-inset-bottom));
}
.foot-total { display: none; flex-direction: column; }
.foot-total span { font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.foot-total strong { font-size: 1.15rem; color: var(--ink); }
.foot-cta { flex: 1; }
.foot-cta span { white-space: normal; text-align: center; line-height: 1.2; }

@media (min-width: 560px) {
  .foot-total { display: flex; }
}
@media (min-width: 820px) {
  .sheet-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.6rem; padding: 1.3rem 1.4rem; }
  .sheet-head { padding: 1rem 1.4rem; padding-inline-end: 4.8rem; }
  .sheet-foot { padding: .9rem 1.4rem; }
  .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-pack { position: sticky; top: 0; align-self: start; }
  .panel-details { border-left: 1px solid var(--border); padding-left: 1.4rem; }
}
@media (max-width: 819px) {
  .panel-details { border-top: 1px solid var(--border); padding-top: 1.2rem; }
  .panel-pack { padding-bottom: .2rem; }
}
@media (max-width: 560px) {
  dialog.sheet {
    width: 100vw; max-width: 100vw;
    max-height: 94dvh;
    margin: auto 0 0;
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
  }
  dialog.sheet[open] { animation: sheet-up .15s var(--ease) both; }
  @keyframes sheet-up {
    from { transform: translateY(40px); opacity: .4; }
    to { transform: none; opacity: 1; }
  }
}

/* ask dialog bits */
.ask-note { font-size: .88rem; color: var(--ink-2); }
.ask-cta { margin-top: .4rem; display: grid; gap: .5rem; }
.policy-copy { display: grid; gap: .7rem; font-size: .88rem; color: var(--ink-2); }
.policy-copy h3 { font-size: .95rem; color: var(--ink); margin-top: .3rem; }
.policy-copy ul { padding-left: 1.1rem; display: grid; gap: .3rem; }

/* toast */
.toast-region {
  position: fixed; inset: auto auto 22px 50%;
  z-index: 300;
  translate: -50% 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  overflow: visible;
  display: grid; gap: .4rem; justify-items: center;
  width: min(440px, calc(100vw - 2rem));
  max-width: none;
  pointer-events: none;
  transition: inset-block-end .2s var(--ease);
}
/* Lift toasts clear of the sticky order CTA while the sheet is open on small screens. */
@media (max-width: 560px) {
  body:has(dialog[open]) .toast-region { inset-block-end: 96px; }
}
/* The region is a manual popover so toasts paint above modal dialogs. */
@supports selector(:popover-open) {
  .toast-region[popover] { display: none; }
  .toast-region[popover]:popover-open { display: grid; }
}
.toast {
  display: flex; align-items: center; gap: .5rem;
  padding: .65rem .9rem;
  border-radius: 11px;
  background: var(--ink);
  color: var(--canvas);
  font-size: .84rem; font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toast-in .26s var(--ease) both;
  max-width: 100%;
}
.toast .ico { color: var(--accent-hi); }
.toast.is-out { animation: toast-out .22s ease both; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }

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

/* ---------- 375px polish ---------- */
@media (max-width: 400px) {
  :root { --gutter: 16px; }
  .brand-logo { height: 38px; }
  .head-actions { gap: .4rem; }
  .icon-btn { width: 44px; height: 44px; }
  .head-wa { min-height: 44px; padding: 0 .7rem; }
  .copy-btn { min-height: 44px; }
  .hero h1 { font-size: 1.95rem; }
  .hero-sub { font-size: .95rem; }
  .trust-pills li { font-size: .72rem; padding: .35rem .6rem; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .item-card { min-height: 150px; padding: .75rem .7rem .65rem; }
  .item-name { font-size: .88rem; }
  .item-sub { font-size: .68rem; }
  .item-price { font-size: .71rem; }
  .item-count { display: none; }
  .section-row { gap: .4rem; }
  .section-meta { display: none; }
  .pack-grid { gap: .4rem; }
  .pack { padding: .6rem; min-height: 60px; }
  .pack-qty { font-size: .88rem; }
  .sheet-head h2 { font-size: 1.05rem; }
  .game-ico { width: 40px; height: 40px; }
  .game-ico .ico { width: 21px; height: 21px; }
  .foot-cta { font-size: .86rem; padding-inline: .7rem; }
}

/* ---------- Touch targets ---------- */
@media (max-width: 560px) {
  .brand { min-height: 44px; }
  .quick-chip { display: inline-flex; align-items: center; min-height: 44px; }
  .foot-col { gap: 0; }
  .foot-col a { display: inline-flex; align-items: center; min-height: 44px; }
  .foot-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
  .icon-btn { width: 44px; height: 44px; }
  .head-wa, .copy-btn, .btn-sm { min-height: 44px; }
}
@media (pointer: coarse) {
  .btn-sm { min-height: 44px; }
  .copy-btn { min-height: 44px; }
  .icon-btn { width: 44px; height: 44px; }
  .head-wa { min-height: 44px; }
  .seg-btn { min-height: 44px; }
  .search-clear { width: 40px; height: 40px; }
}
