/* ============ GameX store — design tokens ============ */
:root {
  --bg: #060807;
  --bg-2: #0a0d0b;
  --surface: #0f1311;
  --surface-2: #161b18;
  --border: #212923;
  --border-strong: #2f3a32;
  --text: #f1f5f0;
  --muted: #9ba79e;
  --faint: #7c877e;
  --accent: #9cff1e;
  --accent-2: #c3ff63;
  --accent-ink: #081200;
  --accent-soft: rgba(156, 255, 30, .12);
  --glow: 0 0 28px rgba(156, 255, 30, .38);
  --danger: #ff6b6b;

  --r-common: #bcc5be;
  --r-uncommon: #66d966;
  --r-rare: #46a9ff;
  --r-epic: #b46dff;
  --r-legendary: #ffa63a;

  --rad-sm: 8px;
  --rad: 14px;
  --rad-lg: 20px;
  --pill: 999px;

  --font-display: "Russo One", "Cairo", system-ui, sans-serif;
  --font-body: "Chakra Petch", "Cairo", system-ui, sans-serif;
  --font-ar: "Cairo", system-ui, sans-serif;
  --font-pixel: "Press Start 2P", ui-monospace, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --max: 1200px;
  --header-h: 68px;
  color-scheme: dark;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(156, 255, 30, .11), transparent 60%),
    radial-gradient(700px 520px at -12% 34%, rgba(156, 255, 30, .05), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='42' viewBox='0 0 24 42'%3E%3Cpath d='M12 0L24 7V21L12 28L0 21V7ZM12 28V42' fill='none' stroke='%239cff1e' stroke-opacity='.055'/%3E%3C/svg%3E");
  background-size: 24px 42px;
  -webkit-mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, .35) 70%, transparent);
  mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, .35) 70%, transparent);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }
.ar { font-family: var(--font-ar); letter-spacing: 0 !important; text-transform: none !important; }
bdi, .ltr { direction: ltr; unicode-bidi: isolate; }

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

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 8, 7, .8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-row { position: relative; display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-inline-end: auto; min-width: 0; }
.brand img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; mix-blend-mode: screen; flex: none; }
.brand strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 1; letter-spacing: .04em; }
.brand strong span { color: var(--accent); }
.brand small { display: block; margin-top: 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--rad-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.main-nav a.nav-cta { color: var(--accent-ink); background: var(--accent); margin-inline-start: 8px; }
.main-nav a.nav-cta:hover { background: var(--accent-2); box-shadow: var(--glow); }
.main-nav a.nav-cta[aria-current="page"] { border-radius: var(--rad-sm); box-shadow: var(--glow); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.cur-toggle { display: inline-flex; padding: 3px; border: 1px solid var(--border-strong); border-radius: var(--pill); background: var(--surface); }
.cur-toggle button {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--pill);
  background: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.cur-toggle button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.menu-btn { display: none; }

@media (max-width: 919px) {
  .menu-btn {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    inset-inline: -16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 20px;
    background: rgba(6, 8, 7, .97);
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open { display: flex; }
  .main-nav a { min-height: 48px; }
  .main-nav a.nav-cta { margin: 8px 0 0; justify-content: center; }
  .main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
}
@media (max-width: 767px) { .main-nav { inset-inline: -16px; } }
@media (min-width: 768px) and (max-width: 919px) { .main-nav { inset-inline: -32px; padding-inline: 32px; } }
@media (max-width: 400px) { .brand small { display: none; } .brand img { width: 40px; height: 40px; } }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--rad-sm);
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s var(--ease), background .2s, box-shadow .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); box-shadow: var(--glow); }
.btn-outline { border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { min-height: 44px; padding: 0 12px; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 13px; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg, .menu-btn svg { width: 20px; height: 20px; }

/* ============ Shared bits ============ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding-inline-start: 12px;
  border-inline-start: 3px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.live-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); animation: pulse 1.8s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(156, 255, 30, .6); }
  70% { box-shadow: 0 0 0 10px rgba(156, 255, 30, 0); }
  100% { box-shadow: 0 0 0 0 rgba(156, 255, 30, 0); }
}
.kicker { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.meta { margin: 0; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

.price { display: inline-flex; align-items: center; gap: 8px; }
.price-badge {
  padding: 5px 7px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
}
.price-val { font-family: var(--font-display); font-size: 26px; line-height: 1; direction: ltr; unicode-bidi: isolate; }

/* ============ Sections ============ */
.section { padding-block: 56px; }
.section-line { border-top: 1px solid var(--border); }
@media (min-width: 768px) { .section { padding-block: 80px; } }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.05;
  text-transform: uppercase;
}
.title-mark { width: 12px; height: .72em; flex: none; border-radius: 2px; background: var(--accent); box-shadow: var(--glow); }
.title-diamond { width: .5em; height: .5em; flex: none; background: var(--accent); transform: rotate(45deg); box-shadow: var(--glow); }

/* ============ Hero ============ */
.hero { padding-block: 32px 56px; }
.hero-grid { display: grid; gap: 24px; align-items: center; }
.hero-title {
  margin: 20px 0 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(46px, 9vw, 92px);
  line-height: .95;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.hero-title .hl { color: var(--accent); text-shadow: 0 0 32px rgba(156, 255, 30, .35); }
.hero-ar { margin: 0 0 8px; font-size: 21px; font-weight: 700; line-height: 1.7; }
.hero-sub { max-width: 46ch; margin: 0 0 28px; color: var(--muted); font-size: 17px; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: stretch; gap: 16px; }
.shop-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 250px;
  padding: 12px 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--rad);
  background: var(--surface);
  text-decoration: none;
  transition: border-color .2s, transform .2s var(--ease);
}
.shop-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.shop-card .l { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.shop-card .l .live-dot { width: 6px; height: 6px; }
.shop-card .t { font-family: var(--font-display); font-size: 20px; line-height: 1.1; text-transform: uppercase; }
.shop-card .s { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.trust { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 32px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

.hero-art { position: relative; justify-self: center; order: -1; width: min(72vw, 300px); aspect-ratio: 1; }
.hero-art::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(156, 255, 30, .26), transparent 66%);
  filter: blur(24px);
}
.hero-art .orbit { position: absolute; inset: 1%; border: 1px dashed rgba(156, 255, 30, .28); border-radius: 50%; animation: spin 50s linear infinite; }
.hero-art .orbit::after { content: ""; position: absolute; top: -4px; inset-inline-start: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: var(--glow); }
.hero-art img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 57%, transparent 71%);
  mask-image: radial-gradient(circle at 50% 50%, #000 57%, transparent 71%);
  animation: float 6s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (min-width: 960px) {
  .hero { padding-block: 56px 88px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 48px; }
  .hero-art { order: 0; width: min(100%, 500px); }
}

/* ============ Top buyers ============ */
.podium { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.podium-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--rad);
  background: var(--surface);
}
.podium-card.rank-1 {
  border-color: rgba(156, 255, 30, .55);
  background: linear-gradient(180deg, rgba(156, 255, 30, .09), var(--surface) 55%);
  box-shadow: 0 24px 60px -24px rgba(156, 255, 30, .4);
}
.podium-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.medal {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  color: #1a1300;
  font-family: var(--font-display);
  font-size: 17px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25);
}
.m1 { background: linear-gradient(145deg, #ffe991, #dba526); }
.m2 { background: linear-gradient(145deg, #f3f6f8, #98a5b1); }
.m3 { background: linear-gradient(145deg, #f3bb90, #a5602c); }
.podium-name { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }
.podium-meta { margin: 4px 0 0; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.podium-gift {
  padding: 20px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: radial-gradient(120% 140% at 50% 125%, rgba(156, 255, 30, .24), rgba(156, 255, 30, .02) 62%), var(--bg-2);
  text-align: center;
}
.podium-gift .label { color: var(--accent); }
.podium-gift strong { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.2; }
.rank-1 .podium-gift strong { font-size: 26px; }
@media (min-width: 860px) {
  .podium { grid-template-columns: 1fr 1.1fr 1fr; align-items: end; }
  .podium .rank-2 { order: -1; }
  .podium-card.rank-1 { padding-block: 28px; }
}

/* ============ Arcade ============ */
.arcade {
  display: grid;
  gap: 28px;
  padding: 24px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(156, 255, 30, .07), transparent 45%), #070a08;
  box-shadow: 10px 10px 0 rgba(156, 255, 30, .16);
}
@media (min-width: 760px) {
  .arcade { grid-template-columns: 250px 1fr; align-items: center; gap: 44px; padding: 32px 40px; }
}
.crt {
  position: relative;
  justify-self: center;
  width: min(100%, 260px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 3px solid #1c251e;
  border-radius: 10px;
  background: #020302;
  box-shadow: 0 0 0 1px rgba(156, 255, 30, .22), 0 0 40px rgba(156, 255, 30, .08);
}
.crt canvas { width: 100%; height: 100%; }
.crt::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55));
}
.crt-label {
  position: absolute;
  inset-inline: 0;
  bottom: 14px;
  z-index: 1;
  color: var(--accent);
  font-family: var(--font-pixel);
  font-size: 9px;
  text-align: center;
  animation: blink 1.2s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }
.pixel-sm { margin: 0 0 14px; color: var(--muted); font-family: var(--font-pixel); font-size: 10px; letter-spacing: .1em; }
.arcade-title {
  margin: 0 0 16px;
  color: var(--accent);
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.1;
  text-shadow: 4px 4px 0 rgba(156, 255, 30, .22), 0 0 26px rgba(156, 255, 30, .4);
}
.arcade-sub { margin: 0 0 22px; font-family: var(--font-pixel); font-size: 10px; line-height: 1.9; }
.game-picks { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.game-pick {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-pixel);
  font-size: 10px;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.game-pick:hover { color: var(--text); }
.game-pick[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.game-pick .ico { font-size: 14px; }
.btn-coin {
  min-height: 52px;
  padding: 0 24px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-pixel);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .04em;
  box-shadow: 4px 4px 0 #3c690a;
}
.btn-coin:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 #3c690a, var(--glow); }
.btn-coin:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #3c690a; }

.xp { max-width: 440px; margin-top: 26px; }
.xp-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.xp-row strong { color: var(--text); }
.xp-track { height: 10px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--pill); background: var(--surface-2); }
.xp-fill { width: 0; height: 100%; background: linear-gradient(90deg, #5aa80a, var(--accent)); transition: width .6s var(--ease); }
.codes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.code-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px dashed var(--accent);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 700 13px/1 ui-monospace, "Cascadia Mono", monospace;
  cursor: pointer;
}
.code-chip span { color: var(--text); font-family: var(--font-body); font-weight: 600; }
.code-chip svg { width: 14px; height: 14px; }

/* ============ Week's offer ============ */
.offer-card {
  position: relative;
  display: grid;
  gap: 28px;
  overflow: hidden;
  padding: 28px 24px;
  border: 1px solid rgba(156, 255, 30, .35);
  border-radius: var(--rad-lg);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px),
    linear-gradient(110deg, rgba(156, 255, 30, .15), rgba(156, 255, 30, .02) 58%),
    var(--surface);
}
.offer-card::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--accent); box-shadow: var(--glow); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag { padding: 7px 11px; border: 1px solid var(--border-strong); border-radius: var(--pill); font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: .14em; text-transform: uppercase; }
.tag-accent { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.offer-title { max-width: 18ch; margin: 0 0 12px; font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 4.6vw, 48px); line-height: 1.04; text-transform: uppercase; }
.offer-desc { max-width: 52ch; margin: 0; color: var(--muted); }
.offer-price { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.offer-amount { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.offer-amount s { color: var(--faint); font-family: var(--font-display); font-size: 26px; }
.offer-amount .price-val { font-size: clamp(48px, 8vw, 64px); }
@media (min-width: 860px) {
  .offer-card { grid-template-columns: 1fr auto; align-items: center; padding: 44px 52px; }
  .offer-price { align-items: flex-end; }
}

/* ============ Loot / shop ============ */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--rad-sm);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { color: var(--text); border-color: var(--faint); }
.chip[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: var(--bg); }
.chip .n { margin-inline-start: 6px; opacity: .6; }
.loot-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); }
.loot-card {
  --rc: var(--r-common);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--rad);
  background: var(--surface);
  transition: transform .2s var(--ease), border-color .2s;
}
.loot-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; z-index: 1; height: 3px; background: var(--rc); }
.loot-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--rc) 55%, transparent); }
.r-common { --rc: var(--r-common); }
.r-uncommon { --rc: var(--r-uncommon); }
.r-rare { --rc: var(--r-rare); }
.r-epic { --rc: var(--r-epic); }
.r-legendary { --rc: var(--r-legendary); }
.loot-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(70% 90% at 50% 105%, color-mix(in srgb, var(--rc) 38%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg-2), color-mix(in srgb, var(--rc) 10%, var(--bg-2)));
}
.loot-art::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='42' viewBox='0 0 24 42'%3E%3Cpath d='M12 0L24 7V21L12 28L0 21V7ZM12 28V42' fill='none' stroke='%23ffffff' stroke-opacity='.05'/%3E%3C/svg%3E");
}
.loot-art svg { position: relative; z-index: 1; width: 44%; height: auto; filter: drop-shadow(0 10px 18px color-mix(in srgb, var(--rc) 45%, transparent)); }
.loot-art .c-top { fill: color-mix(in srgb, var(--rc) 62%, #fff); stroke: rgba(0, 0, 0, .35); stroke-width: 1; }
.loot-art .c-side { fill: color-mix(in srgb, var(--rc) 55%, #000); }
.loot-art .c-mark { fill: none; stroke: color-mix(in srgb, var(--rc) 45%, #000); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.loot-art .b-body { fill: color-mix(in srgb, var(--rc) 45%, #0a0d0b); stroke: var(--rc); stroke-width: 2; }
.loot-art .b-lid { fill: color-mix(in srgb, var(--rc) 65%, #0a0d0b); stroke: var(--rc); stroke-width: 2; }
.loot-art .b-rib { fill: color-mix(in srgb, var(--rc) 50%, #fff); }
.loot-art .b-bow { fill: none; stroke: color-mix(in srgb, var(--rc) 50%, #fff); stroke-width: 4; stroke-linejoin: round; }
.loot-art .spark { fill: color-mix(in srgb, var(--rc) 40%, #fff); }
.loot-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 18px 20px 20px; }
.loot-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rarity-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--rc); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.rarity-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.loot-no { color: var(--faint); font-family: var(--font-pixel); font-size: 9px; }
.loot-name { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 21px; line-height: 1.15; text-transform: uppercase; }
.loot-badge { margin: -4px 0 0; color: var(--rc); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.loot-desc { margin: 0; color: var(--muted); font-size: 14px; }
.loot-details ul { display: grid; gap: 6px; margin: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2); list-style: none; font-size: 14px; }
.loot-details li { display: flex; gap: 8px; }
.loot-details li::before { content: "▸"; color: var(--rc); }
.loot-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--border); }
.loot-actions { display: flex; align-items: center; gap: 4px; }
.details-btn .chev { display: inline-block; transition: transform .2s; }
.details-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.empty { padding: 40px 20px; border: 1px dashed var(--border-strong); border-radius: var(--rad); color: var(--muted); text-align: center; }

/* ============ How to order ============ */
.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.step { padding: 24px; border: 1px solid var(--border); border-radius: var(--rad); background: var(--surface); }
.step-no { color: var(--accent); font-family: var(--font-pixel); font-size: 12px; }
.step h3 { margin: 14px 0 6px; font-family: var(--font-display); font-weight: 400; font-size: 20px; text-transform: uppercase; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.pay-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ============ Contact ============ */
.contact {
  padding: 48px 20px;
  border: 1px solid var(--border);
  border-radius: var(--rad-lg);
  background: radial-gradient(60% 100% at 50% 0%, rgba(156, 255, 30, .15), transparent 70%), var(--surface);
  text-align: center;
}
.contact .section-title { justify-content: center; }
.contact-ar { margin: 8px 0 0; color: var(--muted); font-size: 18px; font-weight: 600; }
.phone {
  display: inline-block;
  margin: 14px 0 26px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: clamp(34px, 8vw, 64px);
  letter-spacing: .04em;
  text-decoration: none;
  text-shadow: 0 0 32px rgba(156, 255, 30, .35);
  direction: ltr;
  unicode-bidi: isolate;
}
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ============ Footer ============ */
.site-footer { padding-block: 28px 36px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer-row strong { color: var(--text); font-family: var(--font-display); font-weight: 400; letter-spacing: .06em; }
.footer-row strong span { color: var(--accent); }

/* ============ Dialogs ============ */
dialog {
  width: 100%;
  max-width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--rad-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
dialog::backdrop { background: rgba(0, 0, 0, .74); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog[open] { animation: pop .22s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--border); }
.dlg-head h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 20px; text-transform: uppercase; }
.lb-list { max-height: 62vh; margin: 0; padding: 6px 12px 14px; overflow: auto; list-style: none; }
.lb-row { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 12px 8px; border-bottom: 1px solid var(--border); }
.lb-row:last-child { border-bottom: 0; }
.lb-rank { color: var(--faint); font-family: var(--font-pixel); font-size: 11px; text-align: center; }
.lb-row .medal { width: 34px; height: 34px; font-size: 14px; margin-inline: auto; }
.lb-name { font-weight: 700; overflow-wrap: anywhere; }
.lb-gift { display: block; color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.lb-spent { color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.dlg-note { margin: 0; padding: 0 20px 18px; color: var(--muted); font-size: 13px; }

/* Game dialog */
.game-dialog { max-width: min(460px, calc(100vw - 16px)); }
.game-dialog .dlg-head { padding-inline-start: 12px; }
.game-tabs { display: flex; gap: 6px; }
.game-tabs .game-pick { min-height: 40px; padding: 0 12px; font-size: 9px; }
.game-stage { padding: 12px; }
.game-screen {
  position: relative;
  width: min(100%, calc((100dvh - 190px) * .75));
  aspect-ratio: 3 / 4;
  margin-inline: auto;
  overflow: hidden;
  border: 2px solid #1c251e;
  border-radius: 10px;
  background: #020302;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}
.game-dialog.is-snake .game-screen { width: min(100%, calc((100dvh - 305px) * .75)); }
.game-screen:focus-visible { outline: none; border-color: rgba(156, 255, 30, .6); }
.game-screen canvas { width: 100%; height: 100%; }
.game-over {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background: rgba(2, 4, 2, .88);
  text-align: center;
  cursor: default;
}
.game-over h3 { margin: 0; color: var(--accent); font-family: var(--font-pixel); font-weight: 400; font-size: 18px; line-height: 1.4; }
.go-stats { margin: 0; font-family: var(--font-pixel); font-size: 10px; line-height: 2; }
.go-xp { margin: 0; color: var(--accent); font-family: var(--font-pixel); font-size: 12px; }
.go-unlock { margin: 4px 0 0; color: var(--text); font-size: 14px; font-weight: 600; }
.game-over .xp { width: 100%; margin: 6px 0 4px; }
.game-over .codes { justify-content: center; }
.dpad { display: none; grid-template-columns: repeat(3, 56px); grid-template-rows: repeat(2, 52px); gap: 6px; justify-content: center; margin-top: 12px; }
.dpad.show { display: grid; }
.dpad button { border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-2); color: var(--accent); font-size: 18px; cursor: pointer; touch-action: manipulation; }
.dpad button:active { background: var(--accent-soft); }
.dpad [data-dir="up"] { grid-column: 2; grid-row: 1; }
.dpad [data-dir="left"] { grid-column: 1; grid-row: 2; }
.dpad [data-dir="down"] { grid-column: 2; grid-row: 2; }
.dpad [data-dir="right"] { grid-column: 3; grid-row: 2; }
.game-foot { padding: 12px 20px 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; text-align: center; }

/* ============ Toast ============ */
.toast {
  position: fixed;
  inset-inline: 0;
  bottom: 24px;
  z-index: 100;
  width: max-content;
  max-width: calc(100vw - 32px);
  margin-inline: auto;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .25s, transform .25s var(--ease);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }

/* ============ Item shop page ============ */
.is-hero { padding-block: 40px 24px; }
.is-hero .hero-title { font-size: clamp(40px, 8vw, 76px); margin-block: 18px 12px; }
.is-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.stat { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: var(--rad-sm); background: var(--surface); font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.stat .k { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.stat .v { font-family: var(--font-display); font-weight: 400; font-size: 16px; letter-spacing: .04em; direction: ltr; unicode-bidi: isolate; }
.is-note { max-width: 60ch; margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.is-toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
  padding-block: 12px;
  background: linear-gradient(var(--bg) 82%, transparent);
}
.search { position: relative; }
.search svg { position: absolute; top: 50%; inset-inline-start: 14px; width: 18px; height: 18px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.search input {
  width: 100%;
  min-height: 48px;
  padding-inline: 44px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--rad-sm);
  background: var(--surface);
  color: var(--text);
  font: 500 16px var(--font-body);
}
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chips-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
.chips-scroll::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
  .is-toolbar { flex-direction: row; align-items: center; }
  .search { flex: 0 1 340px; }
  .chips-scroll { margin: 0; padding: 0; flex: 1; }
}
.is-section { margin-top: 28px; }
.is-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.is-sec-head h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(20px, 3vw, 26px); text-transform: uppercase; }
.is-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 180px), 1fr)); }
@media (min-width: 768px) { .is-grid { gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.is-tile {
  --rc: var(--r-common);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  transition: transform .2s var(--ease), border-color .2s;
}
.is-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--rc) 60%, transparent); }
.is-img {
  position: relative;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 75%, color-mix(in srgb, var(--rc) 50%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--rc) 28%, var(--bg-2)), var(--bg-2));
}
.is-img img { width: 100%; height: 100%; object-fit: contain; }
.is-img .sale { position: absolute; top: 8px; inset-inline-start: 8px; padding: 5px 8px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.is-info { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 10px 12px 12px; border-top: 2px solid var(--rc); }
.is-type { color: var(--rc); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.is-name { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 15px; line-height: 1.2; text-transform: uppercase; overflow-wrap: anywhere; }
.is-prices { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 6px; }
.is-prices .price-val { font-size: 20px; }
.vb { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; font-weight: 600; direction: ltr; unicode-bidi: isolate; }
.vb s { color: var(--faint); }
.is-tile .btn { min-height: 44px; margin-top: 8px; font-size: 12px; padding: 0 10px; }
.skel { border-radius: 12px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
.skel-tile { aspect-ratio: 3 / 4.3; }
@keyframes shimmer { to { background-position: -200% 0; } }
.state-box { display: grid; justify-items: center; gap: 14px; padding: 48px 20px; border: 1px dashed var(--border-strong); border-radius: var(--rad); color: var(--muted); text-align: center; }
.state-box h2 { margin: 0; color: var(--text); font-family: var(--font-display); font-weight: 400; font-size: 22px; text-transform: uppercase; }
.state-box p { max-width: 46ch; margin: 0; }

/* ============ Checkout ============ */
.checkout { max-width: min(560px, calc(100vw - 16px)); overflow: auto; overscroll-behavior: contain; }
.co-head { position: sticky; top: 0; z-index: 2; background: var(--surface); }
.co-body { display: grid; gap: 24px; padding: 20px; }
@media (min-width: 560px) { .co-body { padding: 24px; } }
.co-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.co-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--rad-sm);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: border-color .2s, color .2s;
}
.co-steps .n { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border: 1px solid currentColor; border-radius: 50%; font-size: 11px; letter-spacing: 0; transition: background .2s; }
.co-steps li.is-current { border-color: var(--accent); color: var(--accent); }
.co-steps li.is-done { border-color: rgba(156, 255, 30, .35); color: var(--text); }
.co-steps li.is-done .n { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.co-card { display: grid; gap: 16px; padding: 16px; border: 1px solid var(--border); border-radius: var(--rad); background: var(--bg-2); }
.co-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.co-row .label { margin: 0; }
.co-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.co-dot { --rc: var(--accent); width: 10px; height: 10px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 10px var(--rc); }
.co-item-name { margin: 0; font-family: var(--font-display); font-size: 18px; line-height: 1.2; text-transform: uppercase; overflow-wrap: anywhere; }
.co-item-sub { margin: 4px 0 0; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.co-item-price { font-family: var(--font-display); font-weight: 400; font-size: 18px; white-space: nowrap; }
.field-label { display: block; margin-bottom: 8px; color: var(--text); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--rad-sm);
  background: var(--surface);
  color: var(--text);
  font: 500 16px var(--font-body);
}
textarea.input { min-height: 88px; padding: 12px 14px; resize: vertical; }
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.co-promo-row { display: flex; gap: 8px; }
.co-promo-row .input { text-transform: uppercase; }
.co-promo-row .btn { flex: none; min-height: 48px; }
.co-help { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.co-help.ok { color: var(--accent); font-weight: 600; }
.co-help.err, .co-err { color: var(--danger); font-weight: 600; }
.co-err { margin: 8px 0 0; font-size: 13px; }
.co-center { text-align: center; }
.co-sum { display: grid; gap: 10px; margin: 0; padding-top: 14px; border-top: 1px dashed var(--border-strong); }
.co-sum > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.co-sum dt { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.co-sum dd { margin: 0; font-weight: 700; }
.co-total dt { color: var(--text); }
.co-total dd { color: var(--accent); font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1; }
.co-sec { display: grid; gap: 16px; }
.co-sec h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 18px; text-transform: uppercase; }
.co-sec h3 span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 13px; }
.co-gift { padding: 16px; border: 1px solid rgba(255, 166, 58, .4); border-radius: var(--rad); background: rgba(255, 166, 58, .06); }
.co-accounts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.co-warn { margin: 8px 0 0; font-size: 14px; }
.co-warn strong { color: var(--r-legendary); }
.co-methods { display: grid; gap: 10px; }
.co-method {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--rad);
  background: var(--surface-2);
  transition: border-color .2s, background .2s;
}
.co-method:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.co-method input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.co-method label { display: grid; gap: 2px; min-height: 44px; align-content: center; cursor: pointer; }
.co-method .nm { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.co-method .val { font-family: var(--font-display); font-size: 18px; direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
.co-info { margin: 0; padding: 14px 16px; border: 1px solid var(--border-strong); border-radius: var(--rad); background: var(--surface-2); font-size: 14px; }
.co-drop {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 24px 16px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--rad);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.co-drop:hover, .co-drop:focus-within, .co-drop.drag { border-color: var(--accent); color: var(--text); }
.co-drop:focus-within { box-shadow: 0 0 0 3px var(--accent-soft); }
.co-drop svg { width: 28px; height: 28px; color: var(--accent); }
.co-drop strong { color: var(--text); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.co-preview { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--accent); border-radius: var(--rad); background: var(--accent-soft); }
.co-preview img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.co-preview span { font-size: 14px; overflow-wrap: anywhere; }
.co-send { min-height: 56px; font-size: 15px; }
.co-done { display: grid; justify-items: center; gap: 12px; padding: 40px 24px 32px; text-align: center; }
.co-done-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: var(--glow); }
.co-done-ic svg { width: 32px; height: 32px; }
.co-done h3 { margin: 4px 0 0; font-family: var(--font-display); font-weight: 400; font-size: 28px; text-transform: uppercase; }
.co-done p { max-width: 40ch; margin: 0; color: var(--muted); }
.co-done p strong { color: var(--text); }
.co-id strong { color: var(--accent); font-family: ui-monospace, "Cascadia Mono", monospace; letter-spacing: .06em; }
.co-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
@media (max-width: 479px) {
  .co-method .btn { grid-column: 1 / -1; width: 100%; }
}
.co-promo-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.co-promo-toggle:hover, .co-promo-toggle[aria-expanded="true"] { color: var(--accent); }
.co-promo-toggle svg { width: 16px; height: 16px; }
#co-promo-box { padding: 14px; border: 1px solid var(--border); border-radius: var(--rad); background: var(--bg-2); }

/* ============ Order tracking ============ */
.track { padding-bottom: 64px; }
.track-card { display: grid; gap: 20px; max-width: 640px; padding: 24px; border: 1px solid var(--border); border-radius: var(--rad-lg); background: var(--surface); }
.track-status { display: flex; align-items: flex-start; gap: 16px; }
.track-ic { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--accent); font-family: var(--font-display); font-size: 24px; }
.st-confirmed .track-ic, .st-delivered .track-ic { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: var(--glow); }
.st-rejected .track-ic { border-color: var(--danger); color: var(--danger); }
.track-status h2 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 400; font-size: clamp(20px, 4vw, 26px); line-height: 1.2; text-transform: uppercase; }
.st-confirmed .track-status h2, .st-delivered .track-status h2 { color: var(--accent); }
.track-status p { margin: 0; color: var(--muted); }
.track-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.track-steps li { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: var(--rad-sm); color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.track-steps .n { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border: 1px solid currentColor; border-radius: 50%; font-size: 11px; letter-spacing: 0; }
.track-steps li.done { color: var(--text); border-color: rgba(156, 255, 30, .35); }
.track-steps li.done .n, .track-steps li.now .n { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.track-steps li.now { border-color: var(--accent); color: var(--accent); }
.track-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.track-live { display: flex; align-items: center; gap: 8px; }
.track-mine ul { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.track-mine a { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; min-height: 48px; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--rad-sm); background: var(--surface-2); text-decoration: none; }
.track-mine a:hover { border-color: var(--accent); }
.track-mine a span:not(.meta) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
@media (max-width: 479px) { .track-steps li { font-size: 10px; padding: 0 6px; gap: 6px; } .track-mine a { grid-template-columns: 1fr auto; } .track-mine a span:not(.meta) { grid-column: 1 / -1; grid-row: 2; } }

/* Payment choice */
.co-paypick { margin: 0; padding: 0; border: 0; min-width: 0; }
.co-paypick legend { padding: 0; }
.co-paytiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.co-paytile {
  --pc: var(--accent);
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  min-height: 96px;
  padding: 14px 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--rad);
  background: var(--surface-2);
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, transform .15s var(--ease);
}
.co-paytile.pay-instapay { --pc: #a77bff; }
.co-paytile.pay-vodafone { --pc: #ff5a5a; }
.co-paytile.pay-telda { --pc: #5ad1ff; }
.co-paytile:hover { color: var(--text); border-color: color-mix(in srgb, var(--pc) 60%, transparent); }
.co-paytile:active { transform: scale(.98); }
.co-paytile:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.co-paytile:has(input:checked) { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 14%, var(--surface-2)); color: var(--text); }
.co-paytile:has(input:checked)::after {
  content: "✓";
  position: absolute;
  top: 6px;
  inset-inline-end: 8px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pc);
  color: #0b0b0b;
  font-size: 12px;
  font-weight: 700;
}
.pt-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--pc) 18%, transparent); color: var(--pc); }
.pt-ic svg { width: 22px; height: 22px; }
.pt-name { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; }
.co-paydetail { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--border-strong); border-radius: var(--rad); background: var(--bg-2); }
.pd-amount { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--border-strong); }
.pd-amount .label { width: 100%; margin: 0; }
.pd-amount strong { color: var(--accent); font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1; }
.pd-row .label { margin-bottom: 4px; }
.pd-val { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pd-val strong, .pd-row > strong { font-family: var(--font-display); font-weight: 400; font-size: 18px; overflow-wrap: anywhere; }
.pd-later { margin: 0; font-size: 14px; }
.co-paydetail .co-help { margin: 0; }
