﻿:root {
  --bg: #090506;
  --bg2: #140a08;
  --panel: rgba(255, 220, 200, 0.04);
  --panel-strong: rgba(255, 220, 200, 0.075);
  --line: rgba(255, 190, 150, 0.11);
  --text: #fbf1e6;
  --muted: #b9a596;
  --accent: #ff6a1a;
  --accent2: #ffb547;
  --hot: #e8281c;
  --gold: #ffd27a;
  --radius: 18px;
  --holo: linear-gradient(110deg, #e8281c, #ff6a1a 25%, #ffb547 45%, #fff0c8 58%, #ffb547 70%, #ff6a1a 85%, #e8281c);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- ambient background ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-orbs::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
}
.bg-orbs span { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.55; animation: drift 22s ease-in-out infinite alternate; }
.bg-orbs span:nth-child(1) { width: 560px; height: 560px; background: #8a1c06; top: -180px; left: -120px; }
.bg-orbs span:nth-child(2) { width: 460px; height: 460px; background: #b84a00; top: 20%; right: -160px; animation-delay: -6s; }
.bg-orbs span:nth-child(3) { width: 380px; height: 380px; background: #5c0a06; bottom: -160px; left: 30%; animation-delay: -12s; opacity: 0.35; }
@keyframes drift { to { transform: translate(80px, 60px) scale(1.15); } }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 20px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(9, 5, 6, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(255, 150, 80, 0.5);
  box-shadow: 0 0 18px rgba(255, 106, 26, 0.55);
  animation: ember-pulse 4s ease-in-out infinite;
}
@keyframes ember-pulse { 50% { box-shadow: 0 0 30px rgba(255, 106, 26, 0.85); } }
.brand-text { font-family: "Cinzel", serif; font-weight: 700; letter-spacing: 1px; font-size: 18px; text-transform: uppercase; }
.brand-text em { font-style: normal; color: var(--accent2); margin-left: 6px; }
@keyframes holo-shift { to { background-position: 300% 0; } }

.search {
  flex: 1; max-width: 560px; margin-left: auto;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 106, 26, 0.18); }
.search svg { width: 18px; height: 18px; fill: var(--muted); flex-shrink: 0; }
.search input { flex: 1; background: none; border: 0; outline: none; min-width: 0; }
.search input::placeholder { color: var(--muted); }

.cart-btn {
  position: relative; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line);
  transition: transform .15s, border-color .2s;
}
.cart-btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.cart-btn svg { width: 22px; height: 22px; fill: var(--text); }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--hot); color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 0 14px rgba(232, 40, 28, 0.7);
}
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.45); } }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  padding: clamp(40px, 7vw, 96px) clamp(16px, 4vw, 48px) 40px;
  max-width: 1360px; margin: 0 auto;
}
.eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: 12px; color: var(--accent2); font-weight: 600; margin: 0 0 18px; }
.hero h1 { font-family: "Cinzel", serif; font-weight: 900; font-size: clamp(42px, 6.4vw, 88px); line-height: 1; margin: 0 0 22px; }
.holo-text {
  background: var(--holo); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: holo-shift 5s linear infinite;
  filter: drop-shadow(0 0 22px rgba(255, 106, 26, 0.45));
}
.lede { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; max-width: 560px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 14px; font-weight: 600; cursor: pointer; border: 0;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--hot));
  color: #fff; box-shadow: 0 10px 30px -8px rgba(255, 106, 26, 0.7);
}
.btn-primary:hover { box-shadow: 0 14px 40px -8px rgba(232, 40, 28, 0.75); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-ghost { background: var(--panel); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent2); }
.btn-block { width: 100%; }

.socials { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.social {
  --c: #ff0033;
  display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; border-radius: 16px;
  background: rgba(14, 7, 6, 0.6); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  backdrop-filter: blur(8px); transition: transform .2s, box-shadow .3s, border-color .3s;
}
.social:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 14px 34px -12px var(--c); }
.social svg { width: 30px; height: 30px; fill: var(--c); flex-shrink: 0; }
.social span { display: flex; flex-direction: column; line-height: 1.25; }
.social strong { font-size: 15px; }
.social small { color: var(--muted); font-size: 12px; }
.social.ig { --c: #ff4f8b; }
.footer-socials { display: flex; gap: 20px; justify-content: center; margin-bottom: 10px; font-weight: 600; }
.footer-socials a { color: var(--accent2); }
.footer-socials a:hover { color: var(--text); }
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1, .hero-copy .lede { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85); }
.hero-copy .holo-text { text-shadow: none; }
.hero-phoenix {
  position: absolute; z-index: -1; left: 42%; top: 46%; transform: translate(-50%, -50%);
  width: min(125%, 680px); display: grid; place-items: center; pointer-events: none; opacity: .5;
}
.hero-phoenix::before {
  content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 26, 0.45), transparent 65%);
  filter: blur(30px); animation: ember-glow 5s ease-in-out infinite;
}
.hero-phoenix img {
  position: relative; width: 100%;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 71%);
  mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 71%);
  animation: rise-float 8s ease-in-out infinite;
}
@keyframes ember-glow { 50% { transform: scale(1.12); opacity: .75; } }
@keyframes rise-float { 50% { transform: translateY(-14px); } }

.embers { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.embers i {
  position: absolute; bottom: -20px; width: 4px; height: 4px; border-radius: 50%;
  background: #ffb547; box-shadow: 0 0 8px 2px rgba(255, 120, 30, 0.8);
  animation: ember-rise linear infinite; opacity: 0;
}
@keyframes ember-rise {
  10% { opacity: 1; }
  90% { opacity: .6; }
  to { transform: translate(var(--drift, 40px), -110vh); opacity: 0; }
}

.hero-stack { position: relative; height: clamp(320px, 38vw, 500px); perspective: 1200px; }
.hero-stack .stack-card {
  position: absolute; top: 50%; left: 50%; width: 52%; aspect-ratio: 1;
  border-radius: 22px; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 50px -10px rgba(255, 106, 26, 0.5);
  animation: float 7s ease-in-out infinite;
}
.hero-stack .stack-card { cursor: pointer; transition: box-shadow .3s; }
.hero-stack .stack-card:hover { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 60px -6px rgba(255, 106, 26, 0.9); }
.hero-stack .stack-card img { width: 100%; height: 100%; object-fit: contain; }
.hero-stack .stack-card:nth-child(1) { transform: translate(-95%, -55%) rotate(-12deg); animation-delay: -2s; }
.hero-stack .stack-card:nth-child(2) { transform: translate(-5%, -60%) rotate(10deg); animation-delay: -4s; }
.hero-stack .stack-card:nth-child(3) { transform: translate(-50%, -45%) rotate(-2deg); z-index: 2; width: 58%; }
@keyframes float { 50% { margin-top: -14px; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding: 18px 0; border-block: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scroll 50s linear infinite; }
.marquee-track span { font-family: "Cinzel", serif; font-weight: 800; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.marquee-track span::before { content: "\25C6"; margin-right: 48px; color: var(--accent); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- shop ---------- */
.shop { max-width: 1360px; margin: 0 auto; padding: 64px clamp(16px, 4vw, 48px) 40px; scroll-margin-top: 70px; }
.shop-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.shop-head h2 { font-family: "Cinzel", serif; font-size: clamp(28px, 3.4vw, 42px); margin: 0; }
.controls { display: flex; gap: 10px; }
.controls select {
  appearance: none; padding: 11px 38px 11px 16px; border-radius: 12px; cursor: pointer;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a39fbf' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--line);
}
.controls select option { background: var(--bg2); }

.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  --c: var(--accent);
  padding: 9px 18px; border-radius: 999px; cursor: pointer; font-weight: 500;
  background: var(--panel); border: 1px solid var(--line);
  transition: all .2s;
}
.chip:hover { border-color: var(--c); }
.chip.active { background: var(--c); border-color: var(--c); color: #1a0a02; font-weight: 700; box-shadow: 0 0 22px -4px var(--c); }
.chip small { opacity: .7; margin-left: 6px; }
.result-note { color: var(--muted); font-size: 14px; margin: 0 0 22px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }

.card {
  --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--line);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .25s ease, box-shadow .3s, border-color .3s;
  animation: rise .5s ease both;
}
.card:hover { border-color: rgba(255, 106, 26, 0.6); box-shadow: 0 24px 50px -18px rgba(255, 106, 26, 0.55); }
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,255,255,0.16), transparent 45%), var(--holo);
  background-size: 100% 100%, 300% 300%;
  mix-blend-mode: overlay; opacity: 0; transition: opacity .3s;
}
.card:hover::after { opacity: .55; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.card-media { position: relative; aspect-ratio: 1; background: radial-gradient(circle at 50% 40%, #ffffff, #f3e9e2); display: grid; place-items: center; }
.card-media img { width: 86%; height: 86%; object-fit: contain; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.06) translateY(-4px); }
.card-media .placeholder { font-family: "Cinzel", serif; font-weight: 900; font-size: 46px; color: #e0cbbd; }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  padding: 5px 10px; border-radius: 8px; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  background: rgba(14, 7, 6, 0.85); color: #fff; backdrop-filter: blur(6px);
}
.badge.low { background: linear-gradient(135deg, #ff4f4f, #ff9d4f); }
.badge.new { left: auto; right: 12px; background: linear-gradient(135deg, var(--gold), var(--accent2)); color: #2a1200; }

.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-game { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.card-name { font-weight: 600; font-size: 16px; line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-set { color: var(--muted); font-size: 13px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.price { font-family: "Cinzel", serif; font-weight: 800; font-size: 20px; }
.add-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 0; cursor: pointer; font-size: 22px; line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--hot)); color: #fff;
  transition: transform .15s, box-shadow .2s;
}
.add-btn:hover { transform: scale(1.1) rotate(90deg); box-shadow: 0 0 20px rgba(232, 40, 28, 0.7); }
.add-btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }

.empty { grid-column: 1 / -1; text-align: center; padding: 70px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- perks ---------- */
.perks {
  max-width: 1360px; margin: 40px auto 0; padding: 0 clamp(16px, 4vw, 48px) 70px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px;
}
.perks > div { padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.perk-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 106, 26, 0.18); color: var(--accent2); font-size: 20px; }
.perks h3 { margin: 14px 0 6px; font-size: 17px; }
.perks p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.footer { border-top: 1px solid var(--line); padding: 40px clamp(16px, 4vw, 48px); text-align: center; color: var(--muted); }
.footer .brand { justify-content: center; margin-bottom: 12px; color: var(--text); }
.fine { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ---------- drawer / modal ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(6, 2, 2, 0.68); backdrop-filter: blur(4px); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(420px, 100vw);
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #1a0d0a, #0c0606); border-left: 1px solid var(--line);
  animation: slide-in .3s cubic-bezier(.2, .9, .3, 1);
}
@keyframes slide-in { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-family: "Cinzel", serif; font-size: 20px; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
.icon-btn:hover { border-color: var(--hot); }
.cart-lines { flex: 1; overflow-y: auto; padding: 12px 24px; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line .thumb { width: 64px; height: 64px; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.cart-line .thumb img { width: 90%; height: 90%; object-fit: contain; }
.cart-line h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.cart-line .muted { color: var(--muted); font-size: 13px; }
.qty { display: inline-flex; align-items: center; gap: 2px; margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; }
.qty button { width: 28px; height: 28px; border: 0; background: none; cursor: pointer; font-size: 16px; }
.qty span { min-width: 22px; text-align: center; font-size: 14px; }
.line-total { font-weight: 700; text-align: right; }
.remove { display: block; margin-top: 6px; background: none; border: 0; color: var(--muted); font-size: 12px; cursor: pointer; padding: 0; }
.remove:hover { color: var(--hot); }
.drawer-foot { padding: 20px 24px 26px; border-top: 1px solid var(--line); }
.drawer-foot .row { display: flex; justify-content: space-between; font-size: 18px; margin-bottom: 6px; }
.drawer-foot .row.sub { font-size: 15px; color: var(--muted); }
.free { color: #7dffb0; font-weight: 600; }
.promo-bar {
  text-align: center; padding: 9px 16px; font-size: 14px; font-weight: 600; letter-spacing: .3px;
  background: var(--holo); background-size: 300% 100%; color: #1a0a02; animation: holo-shift 8s linear infinite;
}
.pay-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.pay-badges span { font-size: 11px; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.cart-empty { text-align: center; color: var(--muted); padding: 60px 0; }

.modal {
  position: fixed; z-index: 50; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; overflow-x: hidden;
  border-radius: 24px; background: linear-gradient(160deg, #1d0f0b, #0d0707);
  border: 1px solid var(--line); box-shadow: 0 40px 100px -20px rgba(0,0,0,.9), 0 0 80px -30px rgba(255, 106, 26, .6);
  animation: pop .3s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.modal-body { display: grid; grid-template-columns: 1fr 1fr; }
.modal-media { background: radial-gradient(circle at 50% 40%, #fff, #f3e9e2); display: grid; place-items: center; padding: 30px; min-height: 360px; }
.modal-media img { max-height: 440px; object-fit: contain; }
.modal-info { padding: 40px 34px; display: flex; flex-direction: column; gap: 12px; }
.modal-info h3 { font-size: 26px; margin: 0; line-height: 1.2; }
.modal-info .price { font-size: 34px; }
.modal-info dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 8px 0; font-size: 14px; }
.modal-info dt { color: var(--muted); }
.modal-info dd { margin: 0; }
.videos { max-width: 1360px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 48px) 48px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.video { display: flex; flex-direction: column; gap: 8px; color: var(--text); text-decoration: none; }
.video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); transition: transform .2s ease; }
.video:hover img { transform: translateY(-3px); }
.video span { font-size: 14px; line-height: 1.4; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn-primary { flex: 1; }
.stock-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #7dffb0; }
.stock-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.stock-pill.low { color: #ffb14d; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60;
  padding: 14px 22px; border-radius: 14px; background: #241109; border: 1px solid var(--accent);
  box-shadow: 0 10px 40px -10px rgba(255, 106, 26, .8); font-weight: 500; animation: toast-in .3s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px); } }

/* ---------- nav / footer links ---------- */
.top-nav { display: flex; gap: 22px; margin-left: 28px; }
.top-nav a { color: var(--muted); font-weight: 500; transition: color .2s; }
.top-nav a:hover { color: var(--text); }
.footer-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin: 6px 0 14px; }
.footer-links a:hover { color: var(--text); }

/* ---------- shop by game ---------- */
.games { max-width: 1360px; margin: 0 auto; padding: 64px clamp(16px, 4vw, 48px) 0; scroll-margin-top: 70px; }
.games h2 { font-family: "Cinzel", serif; font-size: clamp(24px, 3vw, 34px); margin: 0 0 22px; }
.game-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.game-tile {
  --c: var(--accent);
  position: relative; overflow: hidden; cursor: pointer; text-align: left;
  min-height: 190px; padding: 16px 18px 18px; border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 38%, #120807), #120807 70%);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  transition: transform .25s, box-shadow .3s;
}
.game-tile:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -16px var(--c); }
.game-tile img {
  align-self: flex-end; width: 56%; aspect-ratio: 1; object-fit: contain; margin-bottom: auto;
  padding: 6px; border-radius: 12px; background: #fff;
  transform: rotate(6deg); box-shadow: 0 12px 24px -8px rgba(0,0,0,.7);
  transition: transform .4s;
}
.game-tile:hover img { transform: rotate(4deg) scale(1.08); }
.game-tile strong { position: relative; margin-top: 12px; font-family: "Cinzel", serif; font-size: 17px; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.game-tile strong:first-child { margin-top: auto; }
.game-tile span { position: relative; color: var(--muted); font-size: 13px; }

/* ---------- checkout ---------- */
.modal.checkout { width: min(980px, calc(100vw - 32px)); }
.checkout-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.checkout-form { padding: 36px 34px; display: flex; flex-direction: column; gap: 14px; }
.checkout-form h3 { font-family: "Cinzel", serif; font-size: 24px; margin: 0; }
.checkout-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); flex: 1; min-width: 0; }
.checkout-form input {
  width: 100%; min-width: 0;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,.05); color: var(--text); outline: none; font-size: 15px;
}
.checkout-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 106, 26, .2); }
.form-row { display: flex; gap: 12px; }
.form-row label:nth-child(2) { flex: 0 0 80px; }
.form-row label:nth-child(3) { flex: 0 0 110px; }
/* PayPal's card form renders dark text, so the buttons sit on a light panel. */
.paypal-buttons { min-height: 120px; padding: 16px 16px 4px; border-radius: 14px; background: #fff; }
.paypal-buttons:empty::before { content: "Loading secure payment options…"; display: block; color: #555; font-size: 14px; text-align: center; padding-top: 40px; }
.pay-status { margin: 0; font-size: 14px; color: var(--gold); min-height: 1em; }
.pay-status:empty { display: none; }
.order-done { padding: 48px 34px; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; grid-column: 1 / -1; }
.order-done h3 { font-family: "Cinzel", serif; font-size: 26px; margin: 0; }
.order-done .order-no { font-family: ui-monospace, monospace; padding: 6px 12px; border-radius: 8px; background: rgba(255,255,255,.06); }
.checkout-summary { padding: 36px 30px; background: rgba(255,255,255,.03); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.checkout-summary h4 { margin: 0 0 8px; font-size: 16px; }
.checkout-summary .row { display: flex; justify-content: space-between; gap: 12px; }
.checkout-summary .row > :last-child { text-align: right; }
.checkout-summary .row.sub { color: var(--muted); font-size: 14px; }
.checkout-summary .row.total { font-size: 20px; padding-top: 10px; border-top: 1px solid var(--line); }
.co-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.co-line .thumb { position: relative; width: 52px; height: 52px; border-radius: 10px; background: #fff; display: grid; place-items: center; }
.co-line .thumb img { width: 88%; height: 88%; object-fit: contain; }
.co-line .thumb b { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; display: grid; place-items: center; }

@media (max-width: 900px) {
  .top-nav { display: none; }
  .checkout-body { grid-template-columns: 1fr; }
  .checkout-summary { border-left: 0; border-top: 1px solid var(--line); order: -1; }
  .hero { grid-template-columns: 1fr; }
  .hero-stack { order: -1; height: 300px; }
  .hero-phoenix { left: 50%; width: min(110%, 520px); opacity: .4; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-media { min-height: 260px; }
}
@media (max-width: 640px) {
  .brand-text { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 12px; }
  .card-name { font-size: 14px; }
  .price { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
