/* ZRMarkt – black and white gaming store. Dark by default, a white theme on request (theme.js).
   Game art is shown in black and white and turns to color on hover.
   --accent is the fill (buttons, active states), --accent-ink the same tone for text and outlines. */
:root {
  --bg: #f7f7f8;
  --bg-2: #efeff1;
  --card: #ffffff;
  --card-2: #f3f3f5;
  --line: #e4e4e7;
  --line-2: #d4d4d8;
  --text: #0a0a0b;
  --text-2: #3f3f46;
  --muted: #66666e;
  --muted-2: #a1a1aa;
  --accent: #0a0a0b;
  --accent-hover: #27272a;
  --accent-ink: #0a0a0b;
  --accent-soft: #ececef;
  --accent-2: #52525b;
  --on-accent: #ffffff;
  --glow: 10 10 11;
  --green: #15803d;
  --green-soft: #e6f4ea;
  --green-ink: #14532d;
  --amber: #a16207;
  --amber-soft: #fbf3dc;
  --amber-ink: #713f12;
  --amber-line: #efd9a0;
  --grey-soft: #f0f0f2;
  --orange: #c2410c;
  --orange-soft: #fcebe1;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --danger-line: #f3c7c2;
  --sale: #0a0a0b;
  --on-sale: #ffffff;
  --ink: #0a0a0b;
  --on-ink: #ffffff;
  --shimmer: rgb(255 255 255 / 0.7);
  --edge: inset 0 0 0 1px rgb(10 10 11 / 0.07);
  --shadow: 0 1px 2px rgb(10 10 11 / 0.05), 0 8px 24px -14px rgb(10 10 11 / 0.2);
  --shadow-lg: 0 2px 4px rgb(10 10 11 / 0.05), 0 28px 56px -22px rgb(10 10 11 / 0.3);
  --glass: rgb(255 255 255 / 0.8);
  --grain: 0.02;
  --radius: 14px;
  --display: "Geist", "Helvetica Neue", Arial, sans-serif;
  --body: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --grad: linear-gradient(180deg, #0a0a0b 20%, #7a7a84);
  --art: grayscale(1) contrast(1.05);
  --stripe: rgb(10 10 11 / 0.07);
  color-scheme: light;
}

/* Dark theme: the default (theme.js), unless the visitor picked the white one */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0b;
    --bg-2: #0e0e10;
    --card: #131315;
    --card-2: #1a1a1d;
    --line: #242427;
    --line-2: #333337;
    --text: #f4f4f5;
    --text-2: #d4d4d8;
    --muted: #9d9da6;
    --muted-2: #6b6b73;
    --accent: #f4f4f5;
    --accent-hover: #ffffff;
    --accent-ink: #ffffff;
    --accent-soft: #232326;
    --accent-2: #a1a1aa;
    --on-accent: #0a0a0b;
    --glow: 255 255 255;
    --green: #4ade80;
    --green-soft: #0f2418;
    --green-ink: #86efac;
    --amber: #fbbf24;
    --amber-soft: #2a210c;
    --amber-ink: #fcd34d;
    --amber-line: #574313;
    --grey-soft: #1e1e21;
    --orange: #fb923c;
    --orange-soft: #2e1d0f;
    --danger: #f87171;
    --danger-soft: #2e1313;
    --danger-line: #672525;
    --sale: #f4f4f5;
    --on-sale: #0a0a0b;
    --ink: #f4f4f5;
    --on-ink: #0a0a0b;
    --shimmer: rgb(255 255 255 / 0.05);
    --edge: inset 0 0 0 1px rgb(255 255 255 / 0.06);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 10px 28px -14px rgb(0 0 0 / 0.8);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.5), 0 32px 64px -24px rgb(0 0 0 / 0.9);
    --glass: rgb(19 19 21 / 0.76);
    --grain: 0.04;
    --grad: linear-gradient(180deg, #ffffff 20%, #7c7c86);
    --art: grayscale(1) contrast(1.1) brightness(0.85);
    --stripe: rgb(255 255 255 / 0.07);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0b;
  --bg-2: #0e0e10;
  --card: #131315;
  --card-2: #1a1a1d;
  --line: #242427;
  --line-2: #333337;
  --text: #f4f4f5;
  --text-2: #d4d4d8;
  --muted: #9d9da6;
  --muted-2: #6b6b73;
  --accent: #f4f4f5;
  --accent-hover: #ffffff;
  --accent-ink: #ffffff;
  --accent-soft: #232326;
  --accent-2: #a1a1aa;
  --on-accent: #0a0a0b;
  --glow: 255 255 255;
  --green: #4ade80;
  --green-soft: #0f2418;
  --green-ink: #86efac;
  --amber: #fbbf24;
  --amber-soft: #2a210c;
  --amber-ink: #fcd34d;
  --amber-line: #574313;
  --grey-soft: #1e1e21;
  --orange: #fb923c;
  --orange-soft: #2e1d0f;
  --danger: #f87171;
  --danger-soft: #2e1313;
  --danger-line: #672525;
  --sale: #f4f4f5;
  --on-sale: #0a0a0b;
  --ink: #f4f4f5;
  --on-ink: #0a0a0b;
  --shimmer: rgb(255 255 255 / 0.05);
  --edge: inset 0 0 0 1px rgb(255 255 255 / 0.06);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 10px 28px -14px rgb(0 0 0 / 0.8);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.5), 0 32px 64px -24px rgb(0 0 0 / 0.9);
  --glass: rgb(19 19 21 / 0.76);
  --grain: 0.04;
  --grad: linear-gradient(180deg, #ffffff 20%, #7c7c86);
  --art: grayscale(1) contrast(1.1) brightness(0.85);
  --stripe: rgb(255 255 255 / 0.07);
  color-scheme: dark;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Soft light from the top left corner, like a lamp over the counter */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  z-index: -1;
  height: 720px;
  pointer-events: none;
  background: radial-gradient(60% 70% at 0% 0%, rgb(var(--glow) / 0.06), transparent 70%);
}

/* Fine film grain over the page so large dark surfaces don't look flat */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 32px); }

h1, h2, h3 { font-family: var(--display); text-wrap: balance; letter-spacing: -0.025em; }
h3 { letter-spacing: -0.01em; }
p { text-wrap: pretty; }

/* The highlighted part of a headline: a white-to-grey sheen in the hero, grey in section titles */
.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-head .hl, .how-card .hl, .faq-intro .hl { background: none; color: var(--muted); }
.kicker { color: var(--muted); font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Header: one floating box with the brand row and the navigation row ---------- */

.topbar { position: sticky; top: 0; z-index: 50; padding-top: 12px; }
.topbar .bar {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--glass);
  backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: var(--shadow);
}
.bar-top { display: flex; align-items: center; gap: 8px; min-height: 44px; padding-left: 6px; }
.topbar .spacer { flex: 1; }

/* The ZR monogram (an inline SVG in the brand color) and the lowercase wordmark */
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--text); font-family: var(--display); font-size: 21px; font-weight: 800; letter-spacing: -0.045em; }
.logo-mark { flex-shrink: 0; width: auto; height: 24px; fill: currentColor; overflow: visible; transition: transform 0.35s var(--ease); }
.logo:hover .logo-mark { transform: skewX(-8deg); }
.logo-text { line-height: 1; }

.bar-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
}
.nav { display: flex; align-items: center; color: var(--muted); font-size: 14px; font-weight: 600; }
.nav a { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 9px; transition: color 0.2s, background 0.2s; }
.nav a + a::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 18px; background: var(--line-2); transform: translateY(-50%); }
.nav a svg { flex-shrink: 0; opacity: 0.85; }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); }
/* The current page gets a short bar on top, like a tab */
.nav a.active::after { content: ""; position: absolute; top: -7px; left: 50%; width: 26px; height: 2px; border-radius: 2px; background: var(--accent); transform: translateX(-50%); box-shadow: 0 0 12px rgb(var(--glow) / 0.6); }

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 380px;
  margin-left: auto;
  padding: 0 6px 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search:focus-within { border-color: var(--line-2); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-icon { flex-shrink: 0; color: var(--muted); }
.search input { flex: 1; min-width: 0; padding: 10px 0; border: 0; outline: none; background: none; color: var(--text); font: inherit; font-size: 14px; }
.search input::placeholder { color: var(--muted-2); }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }

.topbar .menu-toggle { display: none; }

/* Minimal header (checkout, order page) */
.topbar.slim .bar { padding: 10px 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.25s var(--ease), transform 0.2s var(--ease), color 0.2s;
}
.btn:not(.ghost):not(.danger):not(.danger-solid) { background-image: linear-gradient(180deg, rgb(255 255 255 / 0.1), transparent 60%); box-shadow: 0 10px 28px -14px rgb(var(--glow) / 0.55); }
.btn:not(:disabled):hover { background-color: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); }
.btn:not(.ghost):not(.danger):not(.danger-solid):not(:disabled):hover { box-shadow: 0 14px 34px -12px rgb(var(--glow) / 0.65); }
.btn:not(:disabled):active { transform: translateY(0) scale(0.98); }
.btn svg { flex-shrink: 0; transition: transform 0.25s var(--ease); }
.btn:not(:disabled):hover .arrow { transform: translateX(3px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.ghost { border-color: var(--line-2); background: var(--card-2); color: var(--text); box-shadow: none; }
.btn.ghost:not(:disabled):hover { border-color: var(--muted-2); background: var(--card-2); }
.btn.danger { background: var(--card); color: var(--danger); border-color: var(--danger-line); }
.btn.danger:not(:disabled):hover { background: var(--danger-soft); border-color: var(--danger); }
.btn.small { padding: 8px 13px; font-size: 13px; border-radius: 9px; }
.btn.big { padding: 14px 22px; font-size: 15px; border-radius: 11px; }
.btn.block { width: 100%; }

.discord-btn svg { width: 18px; height: 18px; }

.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-size: 15px; font-weight: 600; transition: color 0.2s; }
.text-link::after { content: "→"; transition: transform 0.25s var(--ease); }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- Hero ---------- */

.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: min(560px, 76vh); padding: 56px 0 72px; overflow: hidden; }
.hero-copy { position: relative; z-index: 1; max-width: 600px; }
.hero h1 { margin: 0 0 20px; font-size: clamp(38px, 5.4vw, 68px); font-weight: 900; line-height: 1.02; letter-spacing: -0.045em; }
.hero h1 .hl { display: block; }
.hero p { max-width: 50ch; margin: 0 0 28px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Numbers under the buttons: one big figure, a divider, then the second figure or the rating */
.hero-proof { display: flex; align-items: center; gap: 24px; margin-top: 36px; }
.hero-proof:empty { display: none; }
.proof b { display: block; font-size: clamp(26px, 3vw, 36px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.proof span { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.proof-sep { align-self: stretch; width: 1px; background: var(--line-2); }
.proof-rating { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.proof-rating b { color: var(--text); }
.proof-rating .stars { font-size: 15px; }

/* Black and white game art with bold diagonal bands on the right */
.hero-art { position: absolute; inset: 0 0 0 38%; z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 32%), linear-gradient(to bottom, #000 72%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 32%), linear-gradient(to bottom, #000 72%, transparent); mask-composite: intersect; }
.hero-art::before,
.hero-art::after { content: ""; position: absolute; top: -20%; bottom: -20%; background: linear-gradient(180deg, var(--stripe), transparent 85%); transform: skewX(-32deg); }
.hero-art::before { left: 16%; width: 22%; }
.hero-art::after { left: 44%; width: 11%; opacity: 0.7; }
.hero-cover {
  position: absolute;
  width: clamp(170px, 19vw, 280px);
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  background: var(--card-2) center / cover no-repeat;
  filter: var(--art);
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.6), inset 0 0 0 1px rgb(255 255 255 / 0.08);
}
.hero-cover:nth-child(1) { right: 34%; top: 20%; transform: rotate(-7deg); opacity: 0.55; }
.hero-cover:nth-child(2) { right: 14%; top: 7%; z-index: 1; transform: rotate(2deg); }
.hero-cover:nth-child(3) { right: -3%; top: 24%; transform: rotate(9deg); opacity: 0.6; }

/* ---------- Sections ---------- */

section.block { padding: 48px 0; }
section[id], footer[id] { scroll-margin-top: 150px; }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.sec-head h2 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; line-height: 1.1; letter-spacing: -0.035em; }
.sec-head p { max-width: 60ch; margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
.sec-head .count {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: middle;
}
.sec-head .count:empty { display: none; }

/* ---------- Game categories: wide banners with art on the left and the name as a logo ---------- */

.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cat {
  position: relative;
  isolation: isolate;
  display: block;
  aspect-ratio: 2.2 / 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cat::before { content: ""; position: absolute; top: -30%; bottom: -30%; left: 30%; z-index: -1; width: 26%; background: linear-gradient(180deg, var(--stripe), transparent); transform: skewX(-32deg); }
.cat:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.cat-art {
  position: absolute;
  inset: 0 50% 0 0;
  z-index: -1;
  background: center 18% / cover no-repeat;
  filter: var(--art);
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent);
  mask-image: linear-gradient(90deg, #000 45%, transparent);
  transition: filter 0.45s, transform 0.6s var(--ease);
}
.cat:hover .cat-art, .cat:focus-visible .cat-art { filter: none; transform: scale(1.05); }
.cat-art.placeholder { display: grid; place-items: center; color: var(--line-2); font-size: 28px; font-weight: 900; }
.cat-title {
  position: absolute;
  top: 50%;
  right: 16px;
  max-width: 58%;
  font-size: clamp(15px, 1.55vw, 22px);
  font-style: italic;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-align: right;
  text-transform: uppercase;
  transform: translateY(-62%);
  overflow-wrap: anywhere;
}
.cat-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 7px;
  background: rgb(10 10 11 / 0.72);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.cat-from {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.cat:hover .cat-from, .cat:focus-visible .cat-from { opacity: 1; transform: none; }
.cat.soon { opacity: 0.55; }
.cat.soon:hover { opacity: 0.85; }
.cat.skeleton { cursor: default; }
@media (hover: none) {
  .cat-from { opacity: 1; transform: none; }
}

/* ---------- Product cards ---------- */

.products, .best-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  transition: border-color 0.25s, transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.product:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product .thumb { position: relative; isolation: isolate; aspect-ratio: 4 / 3; overflow: hidden; background: var(--card-2); }
.product .thumb::before { content: ""; position: absolute; top: -30%; bottom: -30%; left: 58%; z-index: 1; width: 22%; background: linear-gradient(180deg, var(--stripe), transparent); transform: skewX(-32deg); pointer-events: none; }
.product .thumb::after { content: ""; position: absolute; inset: 55% 0 0 0; z-index: 1; background: linear-gradient(transparent, rgb(0 0 0 / 0.35)); pointer-events: none; }
.product .img { position: absolute; inset: 0; background: center 22% / cover no-repeat; filter: var(--art); transition: transform 0.6s var(--ease), filter 0.45s; }
.product:hover .img, .product:focus-within .img { filter: none; transform: scale(1.05); }
.product .img.placeholder { display: grid; place-items: center; padding: 0 16px; color: var(--line-2); font-size: 22px; font-weight: 900; text-align: center; filter: none; }
.product .thumb .badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: rgb(10 10 11 / 0.72); backdrop-filter: blur(6px); }
.product .thumb .badge.available { color: #4ade80; }
.product .thumb .badge.updating { color: #fbbf24; }
.product .thumb .badge.limited { color: #fb923c; }
.product .thumb .badge.maintenance { color: #d4d4d8; }

/* Diagonal ribbon for sales and best sellers */
.ribbon {
  position: absolute;
  top: 18px;
  right: -38px;
  z-index: 2;
  width: 150px;
  padding: 5px 0;
  background: var(--sale);
  color: var(--on-sale);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(45deg);
  box-shadow: 0 6px 18px -6px rgb(0 0 0 / 0.6);
}

.product .body { display: flex; flex-direction: column; gap: 5px; flex: 1; padding: 16px 18px 18px; }
.product .game-name { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.product h3 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.2; }
/* The name link covers the whole card, so a click anywhere opens the product */
.product .card-link::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.product .card-link:focus-visible { outline: none; }
.product:has(.card-link:focus-visible) { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.product .rating { font-size: 12.5px; }
.perks { display: grid; gap: 5px; margin: 6px 0 4px; padding: 0; list-style: none; color: var(--text-2); font-size: 13px; }
.perks li { display: flex; align-items: center; gap: 8px; }
.perks li::before { content: ""; width: 5px; height: 5px; flex-shrink: 0; border-radius: 1px; background: var(--accent); }
.product .foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.product .price small { display: block; color: var(--muted); font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.product .price b { font-size: 21px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.product .price s { display: block; margin: 0; font-size: 12px; }
.buy-cta { pointer-events: none; }
.buy-cta svg { width: 16px; height: 16px; }
.product:hover .buy-cta:not(:disabled) { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.product:hover .buy-cta svg { transform: translateX(2px); }
.product.skeleton { min-height: 340px; border-color: transparent; }

/* The first best-seller tile: a big poster for the featured product */
.promo {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  min-height: 340px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0a0a0b;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.promo:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.promo-art { position: absolute; inset: 0; z-index: -2; background: center 20% / cover no-repeat; filter: grayscale(1) contrast(1.1) brightness(0.8); transition: transform 0.7s var(--ease), filter 0.45s; }
.promo:hover .promo-art { filter: grayscale(0.2) brightness(0.85); transform: scale(1.05); }
.promo::before { content: ""; position: absolute; top: -30%; bottom: -30%; left: 46%; z-index: -1; width: 30%; background: linear-gradient(180deg, rgb(255 255 255 / 0.1), transparent 80%); transform: skewX(-32deg); }
.promo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 25%, rgb(10 10 11 / 0.92) 78%); }
.promo-tag { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 5px 10px; border-radius: 7px; background: #fff; color: #0a0a0b; font-size: 11px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.promo h3 { margin: 0; font-size: 26px; font-weight: 900; line-height: 1.05; letter-spacing: -0.03em; }
.promo p { margin: -4px 0 4px; color: rgb(255 255 255 / 0.7); font-size: 14px; }
.promo p b { color: #fff; }
.promo .btn { width: 100%; border-color: #fff; background: #fff; color: #0a0a0b; }
.promo:hover .btn svg { transform: translateX(3px); }

/* ---------- Shop toolbar ---------- */

.shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; padding: 8px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--card-2); color: var(--text-2); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.chip:hover { border-color: var(--line-2); color: var(--text); }
.chip.active { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.chip-x { display: inline-flex; align-items: center; gap: 8px; }
.chip-x::after { content: "✕"; font-size: 10px; }
.product-tools { display: flex; align-items: center; gap: 8px; }
.sort select.input { width: auto; padding: 8px 32px 8px 12px; border-color: var(--line); background-color: var(--card-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.result-count { color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--grey-soft);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge.available { background: var(--green-soft); color: var(--green); }
.badge.updating { background: var(--amber-soft); color: var(--amber); }
.badge.limited { background: var(--orange-soft); color: var(--orange); }

.empty { grid-column: 1 / -1; padding: 48px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); text-align: center; }

/* ---------- Status ---------- */

.live-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text-2); font-size: 13px; font-weight: 600; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; display: inline-block; box-shadow: 0 0 0 3px rgb(34 197 94 / 0.22); animation: pulse 2.4s infinite; }
.live-pill.partial .pulse { background: #f5a524; box-shadow: 0 0 0 3px rgb(245 165 36 / 0.22); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgb(34 197 94 / 0); } }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.status-table { width: 100%; border-collapse: collapse; }
.status-table th, .status-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.status-table tr:last-child td { border-bottom: 0; }
.status-table th { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.status-table td:last-child, .status-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.status-table tbody tr { cursor: pointer; transition: background 0.15s; }
.status-table tbody tr:hover td { background: var(--card-2); }
.st-product { display: flex; align-items: center; gap: 12px; }
.st-thumb { flex-shrink: 0; width: 38px; height: 38px; border-radius: 9px; background: var(--card-2) center 25% / cover no-repeat; filter: var(--art); }
tr:hover .st-thumb { filter: none; }

/* ---------- How it works ---------- */

.how-card { padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.how-card > h2 { margin: 0 0 26px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; letter-spacing: -0.035em; text-align: center; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 0; padding: 0; list-style: none; }
.step { position: relative; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--card-2); transition: border-color 0.25s, transform 0.3s var(--ease); }
.step:hover { border-color: var(--line-2); transform: translateY(-3px); }
.step + .step::before { content: "›"; position: absolute; top: 50%; left: -27px; color: var(--muted-2); font-size: 22px; line-height: 1; transform: translateY(-50%); }
.step-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -10px rgb(var(--glow) / 0.6); }
.step-num { position: absolute; top: 16px; right: 20px; color: var(--line-2); font-size: 30px; font-style: italic; font-weight: 900; letter-spacing: -0.04em; }
.step h3 { margin: 18px 0 4px; font-size: 16px; font-weight: 800; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- FAQ: title on the left, questions on the right ---------- */

.faq-card { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 28px 40px; padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.faq-intro { display: grid; align-content: start; justify-items: start; gap: 12px; }
.faq-intro h2 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; line-height: 1.1; letter-spacing: -0.035em; }
.faq-intro p { max-width: 34ch; margin: 0; color: var(--muted); font-size: 14.5px; }
.faq { display: grid; gap: 10px; }
.faq details { padding: 0 18px; border: 1px solid var(--line); border-radius: 11px; background: var(--card-2); transition: border-color 0.2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 0; cursor: pointer; list-style: none; font-size: 14.5px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-right: 4px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: transform 0.25s var(--ease), border-color 0.2s; }
.faq details[open] summary::after { border-color: var(--text); transform: rotate(-135deg) translateY(-2px); }
.faq details p { max-width: 70ch; margin: 0; padding: 0 0 16px; color: var(--muted); font-size: 14px; }

/* ---------- Footer ---------- */

.site-footer { position: relative; margin-top: 48px; padding: 52px 0 26px; border-top: 1px solid var(--line); background: var(--bg-2); }
.site-footer::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgb(var(--glow) / 0.45), transparent); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, 0.8fr); gap: 40px; }
.site-footer h4 { margin: 4px 0 18px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.site-footer ul a { display: inline-flex; align-items: center; gap: 10px; transition: color 0.2s; }
.site-footer ul a::before { content: ""; width: 5px; height: 5px; flex-shrink: 0; border-radius: 1px; background: var(--muted-2); transition: background 0.2s; }
.site-footer ul a:hover { color: var(--text); }
.site-footer ul a:hover::before { background: var(--text); }
.footer-games { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; }
.footer-brand { display: grid; justify-items: start; align-content: start; gap: 16px; }
.footer-brand .about { max-width: 36ch; margin: 0; color: var(--muted); font-size: 14px; }
.contact-box { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: min(290px, 100%); padding: 9px 9px 9px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); transition: border-color 0.2s; }
.contact-box:hover { border-color: var(--line-2); }
.contact-box small { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.contact-box b { display: block; overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.contact-box > span:first-child { min-width: 0; }
.contact-go { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 9px; background: var(--accent); color: var(--on-accent); transition: transform 0.25s var(--ease); }
.contact-box:hover .contact-go { transform: translateX(2px) rotate(-8deg); }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--muted); transition: color 0.2s, border-color 0.2s; }
.socials a:hover { border-color: var(--line-2); color: var(--text); }
.copyright { display: flex; justify-content: space-between; align-items: center; gap: 10px 24px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.pay-marks { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.pay-marks li { padding: 4px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--text-2); font-size: 11px; font-weight: 800; letter-spacing: 0.04em; }

/* ---------- Product page ---------- */

.product-page { padding: 24px 0 8px; }
.crumbs { display: flex; align-items: center; overflow-x: auto; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 13px; font-weight: 600; white-space: nowrap; scrollbar-width: none; }
.crumbs::-webkit-scrollbar { display: none; }
.crumbs a, .crumbs span { padding: 8px 12px; border-radius: 8px; color: var(--muted); }
.crumbs a:hover { color: var(--text); background: var(--card-2); }
.crumbs > * + *::before { content: "›"; margin-right: 12px; color: var(--muted-2); }
.crumbs [aria-current] { color: var(--text); }
.crumbs button { padding: 8px 12px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 13px; font-weight: 600; }
.crumbs button:hover { color: var(--text); background: var(--card-2); }

.pp-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 18px; }
.pp-media { position: sticky; top: 168px; display: grid; gap: 10px; }
.media-main { position: relative; isolation: isolate; aspect-ratio: 16 / 11; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--card-2) center 22% / cover no-repeat; }
/* Pictures stay black and white like the rest of the shop and show their colors on hover */
.media-main:not(.video):not(.placeholder) { filter: var(--art); transition: filter 0.45s; }
.media-main:not(.video):hover { filter: none; }
.media-thumb:not(.video) { filter: grayscale(1); }
.media-thumb.active, .media-thumb:hover { filter: none; }
.cart-thumb, .summary-thumb, .order-thumb { filter: grayscale(1); }
.media-main::before { content: ""; position: absolute; top: -30%; bottom: -30%; left: 55%; width: 20%; background: linear-gradient(180deg, var(--stripe), transparent); transform: skewX(-32deg); }
.media-main.placeholder { display: grid; place-items: center; padding: 20px; color: var(--line-2); font-size: 30px; font-weight: 900; text-align: center; }
.media-main.video { display: grid; place-items: center; background: #000; }
.media-main.video::before { display: none; }
.media-main.video iframe { width: 100%; height: 100%; border: 0; }
.media-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.media-thumb {
  position: relative;
  flex: 0 0 76px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card) center / cover no-repeat;
  opacity: 0.6;
  transition: opacity 0.15s, border-color 0.15s;
}
.media-thumb:hover { opacity: 1; }
.media-thumb.active { border-color: var(--accent); opacity: 1; box-shadow: 0 0 0 1px var(--accent); }
.media-thumb.video { display: grid; place-items: center; color: #fff; }
.media-thumb.video svg { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6)); }

.pp-info { display: grid; gap: 14px; min-width: 0; }
.pp-head { display: grid; gap: 8px; }
.pp-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pp-game { color: var(--muted); font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
#ppTitle:focus { outline: none; }
.pp-info h1 { margin: 0; font-size: clamp(30px, 3.4vw, 42px); font-weight: 900; line-height: 1.04; letter-spacing: -0.04em; }
.sale-note { margin: 0; color: var(--text); font-size: 14px; font-weight: 700; }
.sale-note::before { content: "−"; display: none; }
.pp-card { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); }
.pp-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pp-card-head b { font-size: 15px; font-weight: 800; }
.pp-card-head span { color: var(--muted); font-size: 12.5px; }
.plans { display: grid; gap: 8px; }
.plan {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card-2);
  color: var(--text);
  text-align: left;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.plan:hover { border-color: var(--line-2); }
.plan.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.plan-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--card); color: var(--muted); }
.plan.active .plan-icon { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.plan-name { display: grid; gap: 1px; min-width: 0; }
.plan-name b { font-size: 14.5px; font-weight: 800; }
.plan-name small { color: var(--green); font-size: 12px; font-weight: 600; }
.plan-name small.low { color: var(--orange); }
.plan-name small.out { color: var(--muted); }
.plan-price { display: grid; justify-items: end; }
.plan-price b { font-size: 16px; font-weight: 900; font-variant-numeric: tabular-nums; }
.plan-price s { color: var(--muted); font-size: 12px; }
.qty-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; gap: 8px; }
.qty-row button { height: 46px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card-2); color: var(--text); font-size: 18px; transition: border-color 0.15s, background 0.15s; }
.qty-row button:not(:disabled):hover { border-color: var(--muted-2); }
.qty-row button:disabled { opacity: 0.35; cursor: not-allowed; }
.qty-row output { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pp-hint { margin: 0; color: var(--muted); font-size: 12px; }
.pp-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-top: 4px; }
.pp-total span { color: var(--muted); font-size: 14px; font-weight: 600; }
.pp-total b { font-size: 30px; font-weight: 900; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.pp-total s { margin-right: 6px; font-size: 16px; font-weight: 600; }
.pp-buy { display: grid; gap: 12px; }
.pp-buttons { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.pp-buttons .btn { padding: 15px 18px; font-size: 15px; }
.pp-buttons .btn.block { grid-column: 1 / -1; }
.pp-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.pp-instant { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-weight: 700; }
.pp-links { display: flex; gap: 14px; }
.pp-notice { margin: 0; padding: 11px 13px; border: 1px solid var(--amber-line); border-radius: 10px; background: var(--amber-soft); color: var(--amber-ink); font-size: 14px; }

.pp-section { margin-top: 20px; padding: 26px 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.pp-section h2 { margin: 0 0 12px; font-size: 20px; font-weight: 900; letter-spacing: -0.03em; }
.pp-section .desc { max-width: 80ch; margin: 0; color: var(--text-2); white-space: pre-line; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 20px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; }
.features li { display: flex; align-items: center; gap: 10px; }
.features li::before { content: "✓"; display: grid; place-items: center; flex-shrink: 0; width: 20px; height: 20px; border-radius: 6px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 900; }
.pp-empty { margin: 0; color: var(--muted); }

/* ---------- Modal (sign in and dashboard dialogs) ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgb(5 5 6 / 0.6);
  backdrop-filter: blur(6px);
}
.modal-backdrop.open { display: flex; }
.modal {
  position: relative;
  width: min(880px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
}
.modal .close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card-2);
  color: var(--text);
  font-size: 14px;
}
.modal .close:hover { border-color: var(--line-2); }

/* ---------- Forms ---------- */

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > span, .field .panel-head > span { font-size: 13px; font-weight: 700; }
.field small { color: var(--muted); font-weight: 400; }

.input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.input:disabled { background: var(--card-2); color: var(--muted); }
textarea.input { resize: vertical; }
.input.color { height: 44px; padding: 4px; cursor: pointer; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.rows { display: grid; gap: 8px; }
.row { display: flex; align-items: flex-start; gap: 8px; }
.row .input { flex: 1; }
.row .input.narrow { flex: 0 0 130px; }
.row .btn { flex-shrink: 0; }

.check { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent-ink); }

.image-picker { display: flex; align-items: center; gap: 14px; }
.image-preview {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 160px;
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  background: var(--card-2) center / cover no-repeat;
  color: var(--muted);
  font-size: 12px;
}
.image-preview.tall { width: 96px; aspect-ratio: 2 / 3; }
.image-preview.has-image { border-style: solid; color: transparent; }
.image-actions { display: grid; flex: 1; gap: 8px; }
.image-actions label.btn { justify-self: start; }

.form-modal { padding: 28px; }
.form-modal.narrow { width: min(560px, 100%); }
.form-modal h2 { margin: 0 0 22px; font-size: 24px; font-weight: 900; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.form-error { padding: 10px 12px; border-radius: 10px; background: var(--danger-soft); color: var(--danger); font-size: 14px; }
.form-error:empty { display: none; }
.form-ok { padding: 10px 12px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 14px; }
.form-ok:empty { display: none; }

/* ---------- Account / sign in ---------- */

.account-nav { display: flex; align-items: center; gap: 8px; }
.account-nav .btn svg { width: 16px; height: 16px; }

/* Sign in: a black and white picture on the left, the form on the right */
.auth-modal { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); width: min(900px, 100%); padding: 0; }
.auth-art { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 560px; padding: 30px; overflow: hidden; border-right: 1px solid var(--line); background: #0a0a0b url("/assets/games/call-of-duty-warzone.jpg") center 78% / cover no-repeat; color: #fff; }
.auth-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(10 10 11 / 0.1), rgb(10 10 11 / 0.92) 80%), linear-gradient(118deg, transparent 38%, rgb(255 255 255 / 0.1) 38%, rgb(255 255 255 / 0.1) 56%, transparent 56%); }
.auth-art { filter: grayscale(1) contrast(1.08); }
.auth-art-copy { display: grid; gap: 8px; }
.auth-art-copy .logo-mark { height: 30px; margin-bottom: 10px; fill: #fff; }
.auth-art-copy b { font-size: 24px; font-weight: 900; line-height: 1.1; letter-spacing: -0.035em; }
.auth-art-copy span { max-width: 32ch; color: rgb(255 255 255 / 0.72); font-size: 14px; }
.auth-form { position: relative; display: grid; align-content: center; padding: 40px 36px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 24px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.auth-tabs button { padding: 9px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-size: 14px; font-weight: 700; }
.auth-tabs button.active { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.auth-modal h2 { margin: 0 0 6px; font-size: 26px; font-weight: 900; }
.auth-modal p.lead { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.auth-modal .btn.block { margin-top: 4px; padding: 13px; }
.auth-modal .field { margin-bottom: 14px; }

.account-page { padding-block: 40px 80px; }
.account-page h1 { margin: 0 0 6px; font-size: clamp(32px, 5vw, 48px); font-weight: 900; line-height: 1.05; letter-spacing: -0.04em; }
.account-page .lead { margin: 0 0 32px; color: var(--muted); }
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.account-head .btn { margin-top: 12px; flex-shrink: 0; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.account-grid section { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); scroll-margin-top: 180px; }
.account-grid h2 { margin: 0 0 18px; font-size: 18px; font-weight: 800; }
.account-grid .full { grid-column: 1 / -1; }

/* ---------- Ratings & reviews ---------- */

.stars { color: var(--text); letter-spacing: 1px; }
.stars .off { color: var(--line-2); }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.reviews { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.review { padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.review:last-child { padding-bottom: 0; border-bottom: 0; }
.review-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.review p { margin: 6px 0 0; color: var(--text-2); }
.verified { padding: 1px 7px; border-radius: 6px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 700; }

/* ---------- Discount code ---------- */

.code summary { color: var(--text); font-size: 13.5px; font-weight: 700; cursor: pointer; list-style: none; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.code summary::-webkit-details-marker { display: none; }
.code-form { display: flex; gap: 8px; margin-top: 8px; }
.code-form .input { flex: 1; text-transform: uppercase; }
.code-form .input::placeholder { text-transform: none; }
.code-msg { margin-top: 6px; font-size: 13px; }
.code-msg:empty { display: none; }
.code-msg.ok { color: var(--green); font-weight: 600; }
.code-msg.error { color: var(--danger); }

/* ---------- Account: orders ---------- */

.section-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.section-row h2 { margin: 0 !important; }
.order-list { display: grid; gap: 12px; }
.order { display: flex; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; transition: box-shadow 0.3s, border-color 0.3s; }
.order.highlight { border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.order-thumb { flex-shrink: 0; width: 64px; aspect-ratio: 2 / 3; border-radius: 8px; background: var(--card-2) center / cover no-repeat; }
.order-main { display: grid; flex: 1; gap: 10px; min-width: 0; }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.order-meta { font-size: 13px; }
.order-meta b { color: var(--text); font-family: var(--mono); }
.saved { color: var(--green); }
.small { font-size: 13px; margin: 0; }
.key-box { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-2); }
.key-box code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--text); }
.pay-box { display: grid; gap: 10px; padding: 12px; border-radius: 10px; background: var(--amber-soft); }
.pay-box p { margin: 0; color: var(--amber-ink); font-size: 14px; }
.review-form { display: grid; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.review-form .label { font-size: 13px; font-weight: 600; }
.review-form .btn { justify-self: start; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { color: var(--line-2); font-size: 24px; line-height: 1; cursor: pointer; transition: color 0.1s; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--text); }
.star-input input:focus-visible + label { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: 4px; }

/* ---------- Sign in extras & reset page ---------- */

.field-row { display: flex; align-items: baseline; gap: 6px; }
.field-row .link-btn { margin-left: auto; }
.field-row label { font-size: 13px; font-weight: 700; }
.back-to-login { justify-self: center; margin-top: 12px; display: block; width: 100%; text-align: center; }
.reset-page { display: grid; place-items: center; padding-block: 64px 96px; }
.reset-card { width: min(440px, 100%); padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow-lg); }
.reset-card h1 { margin: 0 0 8px; font-size: 28px; font-weight: 900; }
.reset-card .lead { margin: 0 0 20px; color: var(--muted); }

.auth-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 24px;
}
.auth-modal .lead b { color: var(--text); overflow-wrap: anywhere; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 64px; }
.pw-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  padding: 5px 9px;
  border: 0;
  border-radius: 7px;
  background: var(--card-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  transform: translateY(-50%);
}
.pw-toggle:hover { color: var(--text); }
.hint { margin-top: 2px; color: var(--muted); font-size: 12px; }

.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 4px 0 16px; }
.otp input {
  width: 100%;
  min-width: 0;
  height: 56px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
  outline: none;
  caret-color: var(--accent-ink);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.otp input:focus { border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.otp input.filled { background: var(--card-2); border-color: var(--text); }
.otp:nth-child(n) input:nth-child(3) { margin-right: 6px; }
.otp.shake { animation: shake 0.35s; }
.otp.shake input { border-color: var(--danger); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.dev-code { margin: -6px 0 14px; padding: 8px 12px; border: 1px dashed var(--line-2); border-radius: 10px; color: var(--muted); font-size: 13px; text-align: center; }
.dev-code b { color: var(--text); letter-spacing: 3px; font-variant-numeric: tabular-nums; }
.auth-modal .form-error, .auth-modal .form-ok { margin-bottom: 12px; }
.auth-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; }
.auth-foot.center { justify-content: center; }
.auth-foot .link-btn { font-size: 13px; }
.auth-note { margin: 14px 0 0; font-size: 12px; text-align: center; }

.account-chip { display: inline-flex; align-items: center; gap: 6px; }
.dot-warn { width: 8px; height: 8px; border-radius: 50%; background: #f5a524; box-shadow: 0 0 0 3px var(--amber-soft); }

.verify-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: -12px 0 24px;
  padding: 16px 18px;
  border: 1px solid var(--amber-line);
  border-radius: var(--radius);
  background: var(--amber-soft);
}
.verify-banner > div:nth-child(2) { flex: 1; min-width: 0; }
.verify-banner p { margin: 2px 0 0; color: var(--amber-ink); font-size: 14px; }
.verify-icon { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--card); color: var(--amber); font-size: 20px; }

/* ---------- Header tools, cart, announcement ---------- */

.header-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card-2);
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.icon-btn:hover { border-color: var(--line-2); color: var(--text); }
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border: 2px solid var(--card);
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 15px;
  text-align: center;
}
.cart-btn.bump { animation: bump 0.4s; }
@keyframes bump { 40% { transform: scale(1.15); } }

.announce { position: relative; z-index: 60; padding: 9px 16px; background: var(--ink); color: var(--on-ink); font-size: 13.5px; font-weight: 700; text-align: center; }
.announce a { color: inherit; }
.announce-timer { margin-left: 12px; padding: 2px 8px; border-radius: 6px; background: color-mix(in srgb, var(--on-ink) 14%, transparent); font-size: 12px; font-weight: 700; white-space: nowrap; }

/* ---------- Cart drawer ---------- */

.drawer-backdrop { position: fixed; inset: 0; z-index: 120; background: rgb(5 5 6 / 0.6); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  border-left: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}
.drawer-backdrop.open .drawer { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 20px 16px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; }
.drawer-sub { color: var(--muted); font-size: 13px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-foot { display: grid; gap: 14px; padding: 18px 24px 22px; border-top: 1px solid var(--line); background: var(--bg-2); }
.drawer-note { margin: -2px 0 0; font-size: 12px; text-align: center; }

.cart-lines { display: grid; margin: 0; padding: 0; list-style: none; }
.cart-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line.skeleton { height: 108px; margin-top: 12px; border: 0; border-radius: 14px; }
.cart-thumb { width: 72px; height: 72px; border: 1px solid var(--line); border-radius: 11px; background: var(--card-2) center 25% / cover no-repeat; }
.cart-info { display: grid; gap: 3px; align-content: start; min-width: 0; }
.cart-game { color: var(--muted); font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.cart-name { overflow: hidden; color: var(--text); font-size: 15px; font-weight: 800; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.cart-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cart-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.cart-tag { padding: 2px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--text-2); font-size: 11.5px; font-weight: 600; }
.cart-tag.saved { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.cart-controls { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.cart-price { display: grid; justify-items: end; align-content: start; gap: 2px; font-size: 12px; }
.cart-price b { font-size: 17px; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.qty { display: inline-flex; align-items: center; padding: 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--card-2); }
.qty button { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 7px; background: none; color: var(--text); font-size: 16px; transition: background 0.15s; }
.qty button:not(:disabled):hover { background: var(--card); }
.qty button:disabled { opacity: 0.3; cursor: not-allowed; }
.qty span { min-width: 24px; font-size: 14px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.cart-remove { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 9px; background: none; color: var(--muted-2); transition: background 0.15s, color 0.15s; }
.cart-remove:hover { background: var(--danger-soft); color: var(--danger); }

.cart-empty { display: grid; justify-items: center; gap: 8px; padding: 56px 12px; text-align: center; }
.cart-empty p { max-width: 30ch; margin: 0 0 10px; }
.cart-empty-icon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 16px; background: var(--card-2); color: var(--muted); }

.cart-code summary { color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; }
.cart-code summary::-webkit-details-marker { display: none; }
.cart-code summary::after { content: " +"; }
.cart-code[open] summary::after { content: " −"; }

.sum-rows { display: grid; gap: 6px; font-size: 14px; }
.sum-rows > div { display: flex; justify-content: space-between; color: var(--text-2); }
.sum-rows .saved { color: var(--green); }
.sum-total { align-items: baseline; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--text) !important; font-size: 15px; font-weight: 700; }
.sum-total b { font-size: 28px; font-weight: 900; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.pay-btn { gap: 10px; }
.pay-btn svg { width: 17px; height: 17px; }

.waiver { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--text-2); cursor: pointer; }
.waiver.needs { color: var(--danger); animation: nudge 0.4s; }
.waiver.needs input { outline: 2px solid var(--danger); outline-offset: 2px; }
@keyframes nudge { 25%, 75% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
.waiver input { flex-shrink: 0; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent-ink); }

/* ---------- Checkout page (Stripe's embedded card form) ---------- */

.secure-note { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.secure-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgb(34 197 94 / 0.2); }
.checkout-page { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px 56px; align-items: start; padding-block: 40px 96px; }
.checkout-summary { position: sticky; top: 110px; display: grid; gap: 18px; }
.checkout-summary h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); font-weight: 900; line-height: 1; letter-spacing: -0.045em; }
.back-link { justify-self: start; color: var(--muted); font-size: 14px; font-weight: 600; transition: color 0.2s; }
.back-link::before { content: "← "; }
.back-link:hover { color: var(--text); }
.summary-lines { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.summary-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.summary-line.skeleton { height: 92px; border: 0; border-radius: 14px; }
.summary-thumb { width: 64px; height: 64px; border: 1px solid var(--line); border-radius: 11px; background: var(--card-2) center 25% / cover no-repeat; }
.summary-info { display: grid; justify-items: start; gap: 3px; min-width: 0; }
.summary-info b { overflow: hidden; max-width: 100%; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.summary-price { display: grid; justify-items: end; gap: 2px; }
.summary-price small { color: var(--muted); font-size: 12px; }
.summary-price b { font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
.checkout-summary .sum-total { margin-top: 0; padding-top: 0; border-top: 0; }
.checkout-summary .sum-total b { font-size: 32px; }
.summary-promises { display: grid; gap: 8px; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); list-style: none; color: var(--text-2); font-size: 13px; }
.summary-promises li { display: flex; gap: 10px; }
.summary-promises li::before { content: "✓"; color: var(--text); font-weight: 900; }
#cancelOrder { justify-self: start; color: var(--muted); }
.checkout-pay { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.checkout-pay h2 { margin: 0 0 20px; font-size: 22px; font-weight: 900; letter-spacing: -0.03em; }
.checkout-pay .form-error { margin-top: 16px; }
/* Placeholder bars while Stripe's form loads */
.pay-loading { display: grid; gap: 12px; }
.pay-loading span { position: relative; height: 48px; overflow: hidden; border-radius: 12px; background: var(--bg-2); }
.pay-loading span:last-child { height: 52px; margin-top: 8px; }
.pay-loading span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--shimmer), transparent); transform: translateX(-100%); animation: shimmer 1.4s infinite; }

/* Guest checkout: the email the key goes to */
.guest-email { margin: 0; }
.guest-email small { font-size: 12px; }
.guest-email.needs .input { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }

/* Guest order page (/order) */
.order-page { display: grid; gap: 14px; max-width: 760px; padding-block: 48px 96px; }
.order-page h1 { margin: 0; font-size: clamp(26px, 4vw, 40px); font-weight: 900; line-height: 1.1; letter-spacing: -0.04em; }
.order-page .lead { margin: 0 0 10px; color: var(--muted); }
.order-page .order { background: var(--card); }
.order-page .order-thumb { display: block; }
.order-save { margin: 8px 0 0; font-size: 13px; }

/* Payment method choice (only shown when both Stripe and PayPal are set up) */
.pay-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-option {
  position: relative;
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 11px 12px 11px 38px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.pay-option input { position: absolute; top: 13px; left: 12px; width: 16px; height: 16px; margin: 0; accent-color: var(--accent-ink); }
.pay-option b { font-size: 14px; }
.pay-option small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.pay-option:hover { border-color: var(--muted-2); }
.pay-option.active { border-color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-ink); }
.pay-option:has(input:focus-visible) { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.price s { margin-left: 4px; font-size: 13px; font-weight: 500; }

/* ---------- Help button & support panel ---------- */

.help-fab {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 15px;
  font-weight: 800;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform 0.15s;
}
.help-fab:hover { transform: translateY(-2px); }
.fab-dot { position: absolute; top: 4px; right: 6px; width: 11px; height: 11px; border: 2px solid var(--ink); border-radius: 50%; background: #d92d20; }
.support-backdrop { position: fixed; inset: 0; z-index: 95; background: rgb(5 5 6 / 0.35); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.support-backdrop.open { opacity: 1; pointer-events: auto; }
.support-panel {
  position: fixed;
  right: 20px;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  display: flex;
  width: min(400px, calc(100% - 40px));
  height: min(640px, calc(100vh - 120px));
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: rise 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.support-panel[hidden] { display: none; }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
.support-body { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.support-body.inline { min-height: 560px; }
.sp-head { display: flex; align-items: center; gap: 8px; padding: 16px 16px 12px 18px; border-bottom: 1px solid var(--line); }
.sp-title { flex: 1; min-width: 0; }
.sp-title h2 { margin: 0; overflow: hidden; font-size: 17px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.sp-title .muted { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12px; }
.sp-title .badge { padding: 1px 8px; font-size: 11px; }
.sp-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 18px; }
.sp-search .input { padding: 12px 14px; border-radius: 12px; }
.sp-faq { display: grid; gap: 6px; margin-top: 12px; }
.sp-faq details { border: 1px solid var(--line); border-radius: 10px; }
.sp-faq summary { padding: 10px 12px; cursor: pointer; font-size: 14px; font-weight: 700; list-style: none; }
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq p { margin: 0; padding: 0 12px 12px; color: var(--muted); font-size: 14px; }
.sp-noresult { display: grid; justify-items: start; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--card-2); font-size: 14px; }
.sp-noresult p { margin: 0; }
.sp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.sp-action { display: grid; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); font-size: 14px; text-align: left; cursor: pointer; }
.sp-action span { font-size: 12px; }
.sp-action:hover { border-color: var(--line-2); }
.sp-action.primary { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.sp-action.primary span { color: var(--on-accent); opacity: 0.72; }
.sp-section { margin-top: 18px; }
.sp-section h3 { margin: 0 0 8px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.sp-empty { margin: 0; font-size: 14px; }
.sp-tickets { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sp-ticket { display: grid; gap: 2px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); font-size: 13px; text-align: left; cursor: pointer; }
.sp-ticket:hover { border-color: var(--line-2); }
.sp-ticket.unread { border-color: var(--accent-ink); box-shadow: inset 3px 0 0 var(--accent-ink); }
.sp-ticket-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sp-ticket-top b { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.sp-ticket > .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-ticket-meta { font-size: 11px; }
.sp-ticket .badge { flex-shrink: 0; padding: 1px 8px; font-size: 11px; }
.sp-links { display: flex; gap: 8px; flex-wrap: wrap; }
.sp-links a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-weight: 700; }
.sp-form .field { margin-bottom: 12px; }
.sp-who { margin: 0 0 12px; font-size: 13px; }
.sp-hint { margin: 10px 0 0; }
.sp-attach-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.sp-attach-row .btn svg { width: 16px; height: 16px; }
.sp-attachment { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.sp-attach-thumb { width: 36px; height: 36px; border-radius: 8px; background: center / cover no-repeat; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.sp-thread { display: flex; flex-direction: column; gap: 12px; background: var(--card-2); }
.sp-context { margin: 0; font-size: 12px; text-align: center; }
.msg { display: grid; gap: 3px; max-width: 85%; }
.msg.mine { align-self: flex-end; justify-items: end; }
.msg.staff { align-self: flex-start; }
.msg-author { color: var(--muted); font-size: 11px; font-weight: 700; }
.bubble { padding: 10px 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.msg.mine .bubble { border-color: var(--accent); border-bottom-right-radius: 4px; background: var(--accent); color: var(--on-accent); }
.msg.staff .bubble { border-bottom-left-radius: 4px; }
.msg-image { display: block; width: 180px; max-width: 100%; aspect-ratio: 4 / 3; margin-top: 8px; border-radius: 10px; background: center / cover no-repeat; }
.msg-time { font-size: 11px; }
.sp-composer { display: grid; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--card); }
.sp-composer-row { display: flex; align-items: flex-end; gap: 6px; }
.sp-composer textarea { flex: 1; min-height: 42px; max-height: 140px; padding: 10px 12px; resize: none; }
.sp-composer .icon-btn { cursor: pointer; }
.sp-composer .send { width: 42px; height: 42px; padding: 0; border-radius: 12px; }
.sp-solve { justify-self: center; font-size: 12px; }
.sp-guestlink { display: grid; gap: 8px; margin: 0; padding: 12px 16px; background: var(--amber-soft); font-size: 13px; }
.sp-guestlink p { margin: 0; color: var(--amber-ink); }
.sp-guestlink .row-actions { flex-wrap: nowrap; }
.sp-guestlink .input { padding: 7px 10px; font-size: 12px; }
body.support-open { overflow: hidden; }

.support-page { padding-block: 40px 80px; }
.support-intro { max-width: 640px; margin-bottom: 24px; }
.support-intro h1 { margin: 0 0 6px; font-size: clamp(32px, 5vw, 48px); font-weight: 900; letter-spacing: -0.04em; }
.support-intro .lead { margin: 0; color: var(--muted); }
.support-card { max-width: 720px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); overflow: hidden; }
.support-card .sp-thread { max-height: 60vh; }

/* ---------- Footer newsletter ---------- */

.newsletter { display: grid; grid-template-columns: 1fr minmax(0, 1.1fr); align-items: center; gap: 12px 32px; margin-top: 36px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.newsletter h4 { margin: 0 0 2px; font-size: 14px; letter-spacing: 0; text-transform: none; }
.newsletter p { margin: 0; font-size: 13.5px; }
.newsletter-row { display: flex; gap: 8px; }
.newsletter-msg { grid-column: 1 / -1; font-size: 13px; }
.newsletter-msg:empty { display: none; }
.newsletter-msg.ok { color: var(--green); }
.newsletter-msg.error { color: var(--danger); }

/* ---------- Account extras ---------- */

.account-tabs { position: sticky; top: 104px; z-index: 5; display: flex; gap: 4px; margin: -8px 0 20px; padding: 6px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(8px); }
.account-tabs a { position: relative; flex-shrink: 0; padding: 8px 14px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 700; }
.account-tabs a:hover { background: var(--card-2); color: var(--text); }
.nav-dot { position: absolute; top: 6px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: #d92d20; }
.order-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.order-links .link-btn { font-size: 13px; }
.order-group { display: grid; gap: 8px; padding: 10px; border: 1px dashed var(--line-2); border-radius: 14px; }
.order-group-head { padding: 0 6px; font-size: 13px; }
.ticket-rows { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ticket-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); text-align: left; cursor: pointer; }
.ticket-row > span:first-child { display: grid; gap: 2px; min-width: 0; }
.ticket-row .muted { font-size: 12px; }
.ticket-row.unread { border-color: var(--accent-ink); box-shadow: inset 3px 0 0 var(--accent-ink); }
.ticket-row:hover { border-color: var(--line-2); }
.twofa-state { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-weight: 700; }
.twofa-state .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.twofa-state.on .dot { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.twofa-steps { margin: 0 0 12px; padding-left: 20px; font-size: 14px; }
.twofa-qr { width: 180px; padding: 8px; border-radius: 12px; background: #fff; }
.twofa-qr svg { display: block; width: 100%; height: auto; }
.twofa-key { margin: 10px 0 14px; font-size: 13px; }
.twofa-key code, .code-grid code { font-family: var(--mono); font-weight: 600; }
.code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 12px 0; padding: 12px; border-radius: 10px; background: var(--card-2); list-style: none; }
.twofa-codes p { margin: 0; font-size: 14px; }
#twofaBox > .btn { margin-top: 14px; }
.totp-input { font-size: 20px; letter-spacing: 3px; font-variant-numeric: tabular-nums; }
.privacy-actions { margin-top: 12px; }
.danger-zone { display: grid; gap: 4px; margin-top: 16px; padding: 16px; border: 1px solid var(--danger-line); border-radius: 12px; background: var(--danger-soft); }
.danger-zone p { margin: 0 0 8px; font-size: 14px; }
.btn.danger-solid { background: #d92d20; border-color: #d92d20; color: #fff; }
.btn.danger-solid:hover { background: #b42318; border-color: #b42318; box-shadow: none; }
.small-check { font-size: 13px; }
.message-logo { justify-content: center; margin-bottom: 24px; }

/* ---------- Extras ---------- */

.muted { color: var(--muted); }
.link { color: var(--accent-ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
.link:hover { text-decoration-color: currentColor; }
.link-btn { padding: 0; border: 0; background: none; color: var(--accent-ink); font-size: 13px; font-weight: 700; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 300; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--on-ink); font-weight: 700; }
.skip-link:focus { top: 12px; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.kbd {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  color: var(--muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
}

/* Loading placeholders */
.skeleton { position: relative; overflow: hidden; background: var(--card); box-shadow: none; pointer-events: none; }
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--shimmer), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

.stock { font-size: 12px; font-weight: 700; }
.stock.low { color: var(--orange); }
.stock.out { color: var(--muted); }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 200;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: 0.2s;
  overflow-wrap: anywhere;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); color: #fff; }

/* Empty states, 404, legal */
.empty-state { display: grid; gap: 16px; padding: 24px; border: 1px dashed var(--line-2); border-radius: 12px; text-align: center; justify-items: center; }
.empty-state p { margin: 0; color: var(--muted); }
.empty-state b { color: var(--text); }

.notfound { padding-block: 96px; text-align: center; }
.notfound .code { margin: 0; font-size: 110px; font-weight: 900; font-style: italic; letter-spacing: -0.06em; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--line-2); }
.notfound h1 { margin: 12px 0 8px; font-size: clamp(30px, 4vw, 44px); font-weight: 900; letter-spacing: -0.04em; }
.notfound .lead { margin: 0 auto 28px; max-width: 44ch; color: var(--muted); }
.notfound .row-actions { justify-content: center; }

.legal { max-width: 800px; padding-block: 48px 80px; }
.legal h1 { margin: 0 0 8px; font-size: clamp(34px, 5vw, 48px); font-weight: 900; letter-spacing: -0.04em; }
.legal .lead { margin: 0 0 24px; padding: 12px 14px; border: 1px solid var(--amber-line); border-radius: 10px; background: var(--amber-soft); color: var(--amber-ink); }
.legal-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.legal-nav a { padding: 7px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); font-size: 14px; font-weight: 700; }
.legal-nav a:hover { border-color: var(--line-2); }
.legal section { margin-bottom: 16px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); scroll-margin-top: 160px; }
.legal h2 { margin: 0 0 12px; font-size: 22px; font-weight: 900; }
.legal h3 { margin: 18px 0 4px; font-size: 16px; }
.legal p { margin: 0 0 10px; color: var(--text-2); }
[data-shop-address] { white-space: pre-line; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise-in 0.7s var(--ease) backwards; }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero-cover { animation: cover-in 0.9s var(--ease) backwards; animation-delay: calc(0.1s + var(--i, 0) * 0.1s); }
  .cat:not(.skeleton), .product:not(.skeleton), .promo { animation: rise-in 0.6s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 50ms); }
  .reveal-on .reveal { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
  .reveal-on .reveal:not(.in) { opacity: 0; transform: translateY(24px); }
  .product-page:not([hidden]) { animation: rise-in 0.45s var(--ease); }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes cover-in { from { opacity: 0; translate: 0 40px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cat, .cat-art, .product, .product .img, .promo, .promo-art, .step, .btn, .drawer { transition: none; animation: none; }
  .pulse, .skeleton::after, .pay-loading span::after { animation: none; }
  .otp.shake, .waiver.needs { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .products, .best-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .best-grid > :nth-child(n + 4) { display: none; }
  .hero-art { left: 32%; }
}

@media (max-width: 960px) {
  .nav a { padding: 9px 12px; }
  .nav a svg { display: none; }
  .hero { min-height: 0; padding: 44px 0 56px; }
  .hero-art { left: 20%; opacity: 0.5; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step + .step::before { display: none; }
  .faq-card { grid-template-columns: 1fr; padding: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-games-col { grid-column: 1 / -1; grid-row: 2; }
  .pp-grid { grid-template-columns: 1fr; }
  .pp-media { position: static; }
  .checkout-page { grid-template-columns: 1fr; padding-top: 24px; }
  .checkout-summary { position: static; }
  .checkout-pay { padding: 20px; }
}

@media (max-width: 760px) {
  .topbar { padding-top: 8px; }
  .topbar .bar { gap: 0; padding: 8px; border-radius: 15px; }
  .bar-top { min-height: 40px; padding-left: 2px; }
  .topbar .menu-toggle { display: inline-grid; }
  /* The navigation row folds into the menu button */
  .bar-nav { display: none; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 8px; padding: 8px; }
  .topbar.menu-open .bar-nav { display: flex; }
  .nav { flex-direction: column; align-items: stretch; }
  .nav a { padding: 12px; }
  .nav a svg { display: block; }
  .nav a + a::before { display: none; }
  .nav a.active::after { top: 50%; left: 0; width: 2px; height: 18px; transform: translateY(-50%); }
  .search { max-width: none; margin: 0; }
  .kbd { display: none; }
  .hide-sm { display: none; }
  .discord-btn span { display: none; }
  .discord-btn { width: 40px; height: 40px; padding: 0; }
  .account-nav .btn span { display: none; }
  .account-nav .account-chip span { display: inline; }
  section[id], footer[id] { scroll-margin-top: 90px; }

  .hero { padding: 36px 0 44px; }
  .hero-art { inset: 0 -30% 20% 30%; opacity: 0.35; }
  .hero p { font-size: 16px; }
  .hero .actions .btn { flex: 1 1 200px; }
  section.block { padding: 36px 0; }
  .sec-head .btn { order: 2; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-title { right: 10px; font-size: 14px; }
  .cat-label { left: 8px; bottom: 8px; padding: 4px 7px; font-size: 9.5px; }
  .cat-from { top: 8px; right: 8px; font-size: 9.5px; }
  .products, .best-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .best-grid > :nth-child(n + 4) { display: none; }
  .promo { grid-column: 1 / -1; min-height: 260px; }
  .product .body { padding: 12px 12px 14px; }
  .product h3 { font-size: 15.5px; }
  .product .foot { flex-direction: column; align-items: stretch; }
  .product .buy-cta { width: 100%; }
  .perks { display: none; }
  .shop-bar { flex-direction: column; align-items: stretch; }
  .filters { display: grid; grid-template-columns: repeat(3, auto); }
  .product-tools { justify-content: space-between; }
  .status-table th:nth-child(2), .status-table td:nth-child(2) { display: none; }
  .status-table th, .status-table td { padding: 12px; }
  .how-card { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-games-col { grid-row: auto; }
  .footer-games { grid-template-columns: 1fr 1fr; }
  .newsletter { grid-template-columns: 1fr; }
  .pp-section { padding: 20px; }
  /* On a product page "Questions?" opens the help, so the round button would only cover the buy buttons */
  body.pp-open .help-fab { display: none; }
  .pp-buttons { position: sticky; bottom: 10px; z-index: 5; padding: 8px; margin: 0 -8px; border-radius: 14px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); }
  .grid-2 { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .account-tabs { top: 70px; }
  .auth-modal { grid-template-columns: 1fr; width: min(460px, 100%); }
  .auth-art { display: none; }
  .auth-form { padding: 32px 22px 24px; }
  .support-panel { right: 0; bottom: 0; width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .help-fab { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); padding: 12px; }
  .help-fab span { display: none; }
  body.support-open .help-fab { display: none; }
  .announce-timer { display: inline-block; margin: 4px 0 0 6px; }
}

@media (max-width: 480px) {
  .header-tools .icon-btn, .menu-toggle, .discord-btn { width: 36px; height: 36px; }
  .bar-top { gap: 6px; }
  .logo { font-size: 17px; }
  .logo-mark { height: 21px; }
  .hero h1 { font-size: clamp(32px, 10vw, 40px); }
  .hero-proof { gap: 16px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .cat { aspect-ratio: 1.6 / 1; }
  .cat-title { max-width: 62%; font-size: 13px; }
  .pay-picker { grid-template-columns: 1fr; }
  .newsletter-row { flex-direction: column; }
  .sp-actions { grid-template-columns: 1fr; }
  .otp { gap: 6px; }
  .otp input { height: 50px; font-size: 20px; }
  .otp:nth-child(n) input:nth-child(3) { margin-right: 0; }
  .verify-banner { flex-wrap: wrap; }
  .verify-banner .btn { width: 100%; }
  .order { flex-direction: column; }
  .order-thumb { width: 100%; aspect-ratio: 16 / 7; }
  .key-box { flex-direction: column; align-items: stretch; }
  .image-picker { flex-direction: column; align-items: stretch; }
  .image-preview { width: 100%; }
}

@media (max-width: 400px) {
  /* Discord is still in the hero and the footer */
  .discord-btn { display: none; }
}
