:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1a1a2e;
  --muted: #6b7280;
  --accent: #e11d48;
  --accent-2: #0f766e;
  --line: #e5e7eb;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background: linear-gradient(180deg, #fff7ed 0%, var(--bg) 40%, #eef2ff 100%);
  color: var(--text);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
.app { max-width: 720px; margin: 0 auto; padding: 0 12px 40px; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.brand-logo { display: inline-flex; align-items: center; gap: 2px; font-weight: 800; font-size: 1.25rem; }
.brand-logo__mark { background: #111; color: #fff; transform: skewX(-12deg); padding: 2px 8px; border-radius: 4px; }
.brand-logo__mark-text { display: inline-block; transform: skewX(12deg); }
.brand-logo__rest { color: var(--accent); }
.site-header__actions { display: flex; align-items: center; gap: 10px; }
.games-icon-btn, .cart-btn { position: relative; border: 0; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; }
.games-icon-btn__badge, .cart-badge { position: absolute; top: -6px; right: -6px; background: var(--accent); color: #fff; font-size: 10px; border-radius: 999px; padding: 1px 5px; }
.coins { display: flex; align-items: center; gap: 4px; background: #111; color: #fff; border-radius: 999px; padding: 6px 10px; font-weight: 700; }

.spin-discount-banner {
  display: flex; align-items: center; gap: 10px; margin: 14px 0;
  padding: 12px 14px; border-radius: var(--radius);
  background: linear-gradient(90deg, #fff1f2, #ecfeff);
  border: 1px solid #fecdd3; box-shadow: var(--shadow);
}
.spin-discount-banner__text { display: flex; flex-direction: column; flex: 1; font-size: .92rem; }
.spin-discount-banner__cta { font-weight: 700; color: var(--accent); }

.shop-category-row { display: flex; gap: 10px; overflow-x: auto; padding: 6px 0 12px; }
.shop-category-chip {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 72px; font-size: 11px; color: var(--muted);
}
.shop-category-chip img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; border: 2px solid var(--line); }
.shop-category-chip.is-active { color: var(--text); font-weight: 700; }
.shop-category-chip.is-active img { border-color: var(--accent); }
.shop-meta { color: var(--muted); font-size: .85rem; }

.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.product-card { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.product-card__img { position: relative; aspect-ratio: 1; background: #f3f4f6; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card__badge { position: absolute; top: 8px; left: 8px; background: var(--accent); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 999px; }
.product-card__body { padding: 10px; }
.product-card__body h3 { font-size: .92rem; margin: 4px 0 8px; line-height: 1.3; max-height: 2.6em; overflow: hidden; }
.product-card__cat { font-size: 11px; color: var(--muted); }
.product-card__price { display: flex; gap: 8px; align-items: baseline; }
.product-card__price s { color: var(--muted); font-size: .85rem; }
.product-card__hint { display: block; margin-top: 6px; font-size: 11px; color: var(--accent-2); }

.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0; }
.pager a { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.pager a.is-active { background: #111; color: #fff; border-color: #111; }

.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 10px 16px; border: 1px solid transparent; font-weight: 700; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--text); }

.product-detail { background: #fff; border-radius: var(--radius); padding: 12px; border: 1px solid var(--line); margin-top: 12px; }
.product-detail__gallery img { width: 100%; border-radius: 12px; }
.product-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.product-thumb { border: 0; padding: 0; background: none; }
.product-thumb img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.product-sticky-actions {
  position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  background: rgba(255,255,255,.96); padding: 10px 0; margin-top: 12px; border-top: 1px solid var(--line);
}

.checkout-page, .orders-page, .tracking-page, .games-page, .play-page, .legal-page, .hero-card, .related-content {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 12px 0; box-shadow: var(--shadow);
}
.checkout-stepper { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.checkout-stepper span { font-size: 12px; padding: 4px 8px; border-radius: 999px; background: #f3f4f6; }
.checkout-stepper span.is-active { background: #111; color: #fff; }
.checkout-line { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.checkout-line img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.address-form { display: grid; gap: 8px; }
.address-form input, .address-form select { padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.qty-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-btn, .remove-btn { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 2px 8px; }

.order-card, .game-card { display: block; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; }
.games-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.game-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; }
.game-card__tag { font-size: 11px; color: var(--muted); }

.wheel-wrap { position: relative; width: 320px; max-width: 100%; margin: 16px auto; }
.wheel-frame canvas { width: 100%; height: auto; border-radius: 50%; box-shadow: var(--shadow); }
.pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 18px solid #111; z-index: 2; }
.hub { position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; font-size: 22px; }
.play-actions { display: grid; gap: 8px; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: grid; place-items: center; z-index: 50; }
.modal { background: #fff; border-radius: 16px; padding: 20px; width: min(90vw, 360px); text-align: center; }
.tracking-stages { padding-left: 18px; }
.tracking-stages li.is-done { color: var(--accent-2); font-weight: 700; }

.ad-slot, .ad-slot-wrap { margin: 12px 0; min-height: 40px; text-align: center; }
.ad-slot-label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.site-footer { text-align: center; margin-top: 24px; color: var(--muted); font-size: .85rem; }
.site-footer-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
