:root {
  --bg: #0b1020;
  --panel: #121a2f;
  --card: #151f38;
  --border: #24304d;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #7c3aed;
  --accent2: #22d3ee;
  --warn: #fbbf24;
  --success: #34d399;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
.container-page { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
.section { padding: 2.5rem 0; }
.card-surface { background: var(--card); border: 1px solid var(--border); border-radius: 0.75rem; }
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 0.5rem; padding: 0.75rem 1.25rem; font-weight: 600; border: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: var(--panel); color: var(--text); border: 1px solid var(--border); }
.btn-sm { padding: 0.45rem 0.75rem; font-size: 0.85rem; }
.w-full { width: 100%; }
.link-accent { color: var(--accent2); font-size: 0.9rem; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, monospace; }
.break { word-break: break-all; }
.accent { color: var(--accent2); }
.hidden { display: none !important; }
.warn { color: var(--warn); font-size: 0.85rem; }

.site-header { border-bottom: 1px solid var(--border); background: var(--panel); }
.header-inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; padding: 1rem 0; }
.logo { font-weight: 800; font-size: 1.25rem; color: #fff; text-decoration: none; }
.nav-main { display: flex; gap: 1rem; }
.nav-main a { color: var(--text); }
.search-form input {
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  border-radius: 0.5rem; padding: 0.5rem 0.75rem; min-width: 12rem;
}
.site-footer { border-top: 1px solid var(--border); margin-top: 3rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 2rem 0; font-size: 0.9rem; color: var(--muted); }
.footer-inner nav { display: flex; gap: 1rem; }

.hero { border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--panel), var(--bg)); }
.hero-inner { padding: 3rem 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.75rem; color: var(--accent2); }
.hero h1 { font-size: clamp(1.75rem, 4vw, 3rem); max-width: 48rem; margin: 0.5rem 0; }
.lead { color: var(--muted); max-width: 42rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 1.5rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.product-card { display: flex; flex-direction: column; overflow: hidden; }
.product-card-link { color: inherit; text-decoration: none; flex: 1; }
.product-card-image { position: relative; aspect-ratio: 460/215; background: #0f172a; overflow: hidden; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.badge-discount {
  position: absolute; top: 0.5rem; left: 0.5rem; background: #ea580c; color: #fff;
  font-size: 0.75rem; font-weight: 700; padding: 0.15rem 0.45rem; border-radius: 0.35rem;
}
.badge-discount.inline { position: static; display: inline-block; margin-left: 0.5rem; }
.product-card-body { padding: 0.75rem; }
.product-card-title { font-size: 0.95rem; margin: 0 0 0.35rem; }
.product-card-prices { display: flex; gap: 0.5rem; align-items: baseline; }
.price-sale { color: var(--accent2); font-weight: 700; }
.price-sale.xl { font-size: 2rem; }
.price-was { color: var(--muted); text-decoration: line-through; font-size: 0.9rem; }
.product-card-buy { margin: 0 0.75rem 0.75rem; text-align: center; }
.empty-state { padding: 1.5rem; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.game-layout { display: grid; gap: 2rem; }
@media (min-width: 1024px) {
  .game-layout { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
  .game-sidebar { position: sticky; top: 5rem; }
}
.game-cover { width: 100%; height: auto; display: block; }
.game-hero-body { padding: 1.25rem; }
.reviews, .about, .purchase-panel, .related { padding: 1.25rem; margin-top: 1rem; }
.demo-note { font-size: 0.85rem; color: var(--warn); }
.review-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.review-list li { border-top: 1px solid var(--border); padding: 0.75rem 0; }
.review-meta { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.85rem; }
.stars { color: #fbbf24; letter-spacing: 0.05em; }
.about-body p { color: var(--muted); }
.related ul { list-style: none; padding: 0; margin: 0.75rem 0 0; }
.related li { margin: 0.35rem 0; }
.price-block { margin-bottom: 1rem; }

.payment-modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; padding: 1rem; }
@media (min-width: 640px) { .payment-modal { align-items: center; } }
.payment-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.7); }
.payment-modal-panel { position: relative; width: 100%; max-width: 32rem; max-height: 90vh; overflow: auto; padding: 1.25rem; z-index: 1; }
.payment-modal-head { display: flex; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.modal-close { background: transparent; border: none; color: var(--muted); font-size: 1.25rem; cursor: pointer; }
.field { display: block; margin-bottom: 1rem; font-size: 0.9rem; }
.field span { display: block; margin-bottom: 0.35rem; color: var(--muted); }
.field input {
  width: 100%; padding: 0.6rem 0.75rem; border-radius: 0.5rem;
  border: 1px solid var(--border); background: var(--panel); color: var(--text);
}
.field-label { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.5rem; }
.crypto-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin-bottom: 1rem; }
@media (min-width: 640px) { .crypto-grid { grid-template-columns: repeat(4, 1fr); } }
.crypto-grid button {
  font-size: 0.7rem; padding: 0.5rem; border-radius: 0.5rem; border: 1px solid var(--border);
  background: var(--panel); color: var(--text); cursor: pointer;
}
.crypto-grid button.selected { border-color: var(--accent); background: rgba(124,58,237,0.2); }
.crypto-grid button:disabled { opacity: 0.45; cursor: not-allowed; }
.pay-row { display: flex; flex-direction: column; gap: 1rem; margin: 1rem 0; }
@media (min-width: 640px) { .pay-row { flex-direction: row; align-items: center; } }
#payment-qr { background: #fff; padding: 0.5rem; border-radius: 0.5rem; }
.spinner-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--muted); }
.spinner {
  width: 1rem; height: 1rem; border: 2px solid var(--accent); border-top-color: transparent;
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.success-text { color: var(--success); font-weight: 700; }
.key-box { margin-top: 0.75rem; padding: 1rem; border: 1px solid var(--border); border-radius: 0.5rem; background: var(--panel); }
.status-msg { font-size: 0.9rem; color: var(--muted); margin-top: 0.75rem; }
