:root {
  --bg: #07080d;
  --bg-2: #0e1018;
  --panel: #151826;
  --line: rgba(255,255,255,.08);
  --text: #f4f6fb;
  --muted: #9aa3b8;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --ok: #34d399;
  --err: #fb7185;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0,0,0,.45);
  --font: "Outfit", system-ui, sans-serif;
  --display: "Space Grotesk", "Outfit", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(124,92,255,.22), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(34,211,238,.12), transparent 50%),
    var(--bg);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.bg-glow { position: fixed; inset: 0; pointer-events: none; z-index: -1; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(7,8,13,.78);
  border-bottom: 1px solid var(--line);
}
.delivery-bar {
  background: linear-gradient(90deg, rgba(245,166,35,.18), rgba(34,211,238,.12));
  border-bottom: 1px solid var(--line);
}
.delivery-bar-inner {
  display: flex; flex-wrap: wrap; gap: .45rem .85rem;
  align-items: center; padding: .65rem 0;
  font-size: .9rem; color: var(--text);
}
.delivery-bar-inner strong { color: #f5c76a; }
.delivery-bar-inner span { color: var(--muted); flex: 1 1 220px; }
.delivery-bar-inner a {
  color: var(--accent-2); font-weight: 700; white-space: nowrap;
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 0;
}
.brand-logo { height: 42px; width: auto; }
.nav-desktop { display: none; gap: 1.25rem; }
.nav-desktop a { color: var(--muted); font-weight: 500; }
.nav-desktop a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.nav-toggle {
  display: inline-flex; border: 1px solid var(--line); background: transparent;
  color: var(--text); border-radius: 10px; padding: .45rem .7rem; cursor: pointer;
}
.nav-mobile {
  display: grid; gap: .35rem; padding: .85rem 1rem 1.15rem;
  border-top: 1px solid var(--line);
}
.nav-mobile a {
  display: block;
  padding: .85rem 1rem;
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
}
.nav-mobile a:hover { background: rgba(255,255,255,.06); }
.nav-mobile[hidden] { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid transparent;
  padding: .7rem 1.15rem; font-weight: 600; cursor: pointer;
  transition: .2s ease; font: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5b8cff);
  color: white; box-shadow: 0 10px 30px rgba(124,92,255,.35);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,.04);
  border-color: var(--line); color: var(--text);
}
.btn-lg { padding: .9rem 1.4rem; }

.hero { padding: 3.5rem 0 2rem; overflow-x: clip; }
.hero-grid {
  display: grid; gap: 2rem;
  min-width: 0;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .16em;
  font-size: .78rem; color: var(--accent-2); margin: 0 0 .8rem;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); max-width: 14ch; }
.lede { color: var(--muted); font-size: 1.1rem; max-width: 38ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1rem; }
.hero-pills { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; margin: 0; }
.hero-pills li {
  border: 1px solid var(--line); border-radius: 999px;
  padding: .4rem .8rem; color: var(--muted); font-size: .9rem;
}
.hero-panel { display: grid; gap: .8rem; align-content: end; min-width: 0; }
.hero-card {
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; box-shadow: var(--shadow);
}
.hero-card.alt { transform: none; }
.hero-card span { color: var(--muted); font-size: .85rem; }
.hero-card strong { display: block; margin: .35rem 0; font-size: 1.2rem; }
.hero-card em { color: var(--accent-2); font-style: normal; font-weight: 700; }

.section { padding: 3rem 0; }
.section-muted { background: rgba(255,255,255,.02); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 1.5rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .4rem; }
.section-head p { color: var(--muted); margin: 0; }

.game-grid, .product-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
.game-card, .product-card, .checkout-card, .order-box, .detail-aside {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}
.game-card {
  display: grid; gap: 0; padding: 0; overflow: hidden;
  transition: .2s ease;
}
.game-card:hover { border-color: color-mix(in srgb, var(--accent) 55%, white); transform: translateY(-2px); }
.game-card-media {
  position: relative; min-height: 140px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 35%, #0b0d14), #0b0d14);
}
.game-banner { width: 100%; height: 140px; object-fit: cover; display: block; }
.game-logo {
  position: absolute; left: 1rem; bottom: -24px;
  width: 72px; height: 72px; border-radius: 16px;
  border: 2px solid rgba(255,255,255,.2); background: #0b0d14;
  object-fit: contain; padding: 4px;
}
.game-card-body { padding: 2rem 1.2rem 1.2rem; }
.game-card h3 { margin-bottom: .35rem; }
.game-card p { color: var(--muted); margin: 0 0 .5rem; }
.game-card .servers { color: color-mix(in srgb, var(--accent) 80%, white); font-size: .9rem; font-weight: 600; }
.linkish { color: var(--accent-2); font-weight: 600; }

.game-banner-hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  min-height: 220px;
}
.game-banner-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .85;
}
.game-banner-content {
  position: relative; z-index: 1;
  display: flex; gap: 1.1rem; align-items: center;
  padding: 2.5rem 1rem;
}
.game-banner-logo {
  width: 88px; height: 88px; border-radius: 22px;
  border: 2px solid rgba(255,255,255,.18); background: rgba(0,0,0,.45);
  box-shadow: var(--shadow);
  object-fit: contain; padding: 6px;
}
.game-banner-content .lede { color: rgba(255,255,255,.82); }

.product-top { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .7rem; }
.product-hero {
  display: flex; gap: .85rem; align-items: center; margin-bottom: .4rem;
}
.product-hero img {
  width: 48px; height: 48px; border-radius: 14px;
  background: #0b0d14; border: 1px solid var(--line);
  object-fit: contain;
}
.amount-label { color: var(--muted); margin: .2rem 0 0; font-size: .9rem; }
.badge {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: #fff;
  border-radius: 999px; padding: .25rem .65rem; font-size: .8rem;
}
.stock { color: var(--muted); font-size: .85rem; }
.stock.ok { color: var(--ok); }
.stock.wait { color: #fbbf24; }
.product-card.is-unavailable { opacity: .78; }
.product-card.is-unavailable .price { color: var(--muted); }
.btn:disabled, .btn[disabled] {
  opacity: .55; cursor: not-allowed; transform: none !important;
}
.product-detail-banner {
  border-radius: 16px; overflow: hidden; margin-bottom: 1rem;
  border: 1px solid var(--line);
}
.product-detail-banner img { width: 100%; height: 160px; object-fit: cover; }
.cart-item-main { display: flex; gap: .75rem; align-items: center; }
.cart-item-main img {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
}
.price { font-size: 1.45rem; font-weight: 700; margin: .4rem 0; }
.price.big { font-size: 2rem; color: var(--accent-2); }
.meta, .desc, .tiny { color: var(--muted); }
.product-actions, .buy-form {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; margin-top: 1rem;
}
select {
  width: 100%; border-radius: 12px; border: 1px solid var(--line);
  background: #0b0d14; color: var(--text); padding: .7rem .8rem; font: inherit;
}
.qty, .buy-form label, .checkout-form label, .cart-qty {
  display: grid; gap: .35rem; color: var(--muted); font-size: .9rem;
}
input, textarea {
  width: 100%; border-radius: 12px; border: 1px solid var(--line);
  background: #0b0d14; color: var(--text); padding: .7rem .8rem; font: inherit;
}
.qty input, .cart-qty input, .buy-form input[type=number] { width: 5rem; }

.steps {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
.steps article {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem;
  background: rgba(255,255,255,.02);
}
.steps span { color: var(--accent); font-weight: 700; }
.steps h3 { margin: .5rem 0; }
.steps p { color: var(--muted); margin: 0; }

.cta-band { padding-bottom: 4rem; }
.cta-row {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  border: 1px solid var(--line); border-radius: 24px; padding: 1.5rem;
  background: linear-gradient(120deg, rgba(124,92,255,.18), rgba(34,211,238,.08));
}

.page-hero {
  padding: 2.5rem 0 1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent);
}
.product-detail {
  display: grid; gap: 1.5rem;
}
.detail-list { color: var(--muted); }
.cart-layout {
  display: grid; gap: 1.2rem;
}
.cart-row {
  display: grid; gap: .8rem; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem;
  background: var(--panel);
}
.checkout-form { display: grid; gap: .75rem; }
.alert {
  border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem;
}
.alert.ok { background: rgba(52,211,153,.12); color: var(--ok); }
.alert.err { background: rgba(251,113,133,.12); color: var(--err); }
.empty { color: var(--muted); }
.order-done { max-width: 720px; }
.order-box { margin: 1.5rem 0; }
.order-box ol { color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 5rem;
  background: #06070b;
  text-align: center;
}
.footer-grid {
  display: grid; gap: 1.5rem;
  justify-items: center;
}
.footer-grid > div {
  display: grid;
  justify-items: center;
  text-align: center;
}
.footer-grid h3 { margin: 0 0 .6rem; font-size: 1rem; }
.footer-grid a, .footer-grid p { color: var(--muted); display: block; margin: .3rem 0; }
.footer-logo { height: 40px; width: auto; margin: 0 auto .6rem; }
.footer-note {
  margin-top: 1.5rem; color: #6b7388; font-size: .85rem;
  text-align: center;
}
.footer-note p { max-width: 52ch; margin-inline: auto; }

.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 50;
  background: #19c37d; color: #04140c; font-weight: 700;
  border-radius: 999px; padding: .85rem 1.1rem;
  box-shadow: 0 12px 30px rgba(25,195,125,.35);
}

@media (min-width: 760px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile,
  .nav-mobile:not([hidden]) { display: none !important; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; }
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
  .product-detail, .cart-layout { grid-template-columns: 1.3fr .9fr; }
  .cart-row { grid-template-columns: 1.4fr auto auto; }
}

@media (min-width: 1100px) {
  .hero-card.alt { transform: translateX(8%); }
}

@media (min-width: 980px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
