:root {
  --bg: #050506;
  --bg-2: #0c0d12;
  --panel: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f6f3ee;
  --muted: #9a958c;
  --ember: #ff4d2e;
  --ember-2: #ff7a45;
  --ember-soft: rgba(255, 77, 46, 0.18);
  --ok: #7dffb0;
  --warn: #ffd36a;
  --radius: 26px;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.5);
  --font-display: "Unbounded", sans-serif;
  --font-body: "Onest", system-ui, sans-serif;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1000px 480px at 88% -8%, rgba(255, 77, 46, 0.2), transparent 58%),
    radial-gradient(720px 420px at 8% 18%, rgba(255, 255, 255, 0.035), transparent 52%),
    linear-gradient(180deg, #12131a 0%, var(--bg) 38%, #030304 100%);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.fx-orb {
  pointer-events: none;
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
}
.fx-orb-a {
  width: 42vw;
  height: 42vw;
  max-width: 560px;
  max-height: 560px;
  top: -12%;
  right: -8%;
  background: radial-gradient(circle, rgba(255, 77, 46, 0.45), transparent 68%);
  animation: orbDrift 14s ease-in-out infinite alternate;
}
.fx-orb-b {
  width: 34vw;
  height: 34vw;
  max-width: 420px;
  max-height: 420px;
  bottom: 8%;
  left: -10%;
  background: radial-gradient(circle, rgba(255, 122, 69, 0.22), transparent 70%);
  animation: orbDrift 18s ease-in-out infinite alternate-reverse;
}
@keyframes orbDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4%, 6%, 0) scale(1.08); }
}

.topbar, main, footer { position: relative; z-index: 1; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 3.5vw, 2rem);
  backdrop-filter: blur(22px) saturate(1.35);
  background: rgba(5, 5, 6, 0.62);
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(255, 77, 46, 0.35), transparent) 1;
}

.logo { display: inline-flex; align-items: center; gap: 0.55rem; }
.logo-img {
  width: auto;
  height: 2.85rem;
  border-radius: 0;
  display: block;
  box-shadow: none;
  object-fit: contain;
  background: transparent;
  mix-blend-mode: normal;
}
.logo-img--mark {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 13px;
}
.logo-mark {
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--ember-2), var(--ember));
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(255, 77, 46, 0.38);
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.logo-text span { color: var(--ember-2); }

.brand-lockup span {
  color: var(--ember-2);
  -webkit-text-fill-color: var(--ember-2);
  background: none;
}

.nav { display: flex; gap: 1.35rem; }
.nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color .2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ember-2), var(--ember));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.top-actions { display: flex; align-items: center; gap: 0.55rem; }
.account-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 77, 46, 0.38);
  background: linear-gradient(135deg, rgba(255, 77, 46, 0.16), rgba(255, 255, 255, 0.03));
  color: var(--ember-2);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .2s, border-color .2s;
}
.account-pill:hover { transform: translateY(-1px); border-color: rgba(255, 122, 69, 0.6); }

.support-pill {
  display: none;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 77, 46, 0.35);
  background: rgba(255, 77, 46, 0.1);
  color: var(--ember-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (min-width: 900px) { .support-pill { display: inline-flex; } }

.cart-btn, .menu-btn, .icon-close {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  border-radius: 14px;
}
.cart-btn, .menu-btn {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color .2s, transform .2s;
}
.cart-btn:hover, .menu-btn:hover { border-color: rgba(255, 122, 69, 0.45); transform: translateY(-1px); }
.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--ember);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.menu-btn { display: none; flex-direction: column; gap: 5px; }
.menu-btn span { width: 14px; height: 1.5px; background: var(--text); }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    var(--hero-image) center/cover no-repeat;
  transform: scale(1.06);
  animation: ken 22s ease-in-out infinite alternate;
  filter: saturate(1.08) contrast(1.05);
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(5, 5, 6, 0.92) 0%, rgba(5, 5, 6, 0.72) 38%, rgba(5, 5, 6, 0.28) 68%, rgba(5, 5, 6, 0.55) 100%),
    linear-gradient(180deg, rgba(5, 5, 6, 0.25) 0%, rgba(5, 5, 6, 0.15) 45%, rgba(5, 5, 6, 0.92) 100%);
}
.hero-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.015) 3px,
    rgba(255, 255, 255, 0.015) 4px
  );
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  opacity: 0.45;
  animation: scanDrift 10s linear infinite;
}
@keyframes ken {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.8%, -1.2%, 0); }
}
@keyframes scanDrift {
  from { transform: translateY(0); }
  to { transform: translateY(8px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(6.5rem, 16vh, 9rem) 0 clamp(5rem, 12vh, 7rem);
  max-width: 920px;
}

.brand-lockup {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 12vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 12%, #ffc2a8 58%, var(--ember) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 18px 40px rgba(255, 77, 46, 0.25));
}

.hero h1 {
  margin: 1.1rem 0 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--text);
}
.hero-lead {
  margin: 1.05rem 0 0;
  max-width: 34rem;
  color: rgba(245, 243, 239, 0.78);
  font-size: 1.08rem;
  line-height: 1.6;
  font-weight: 500;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.hero-hint {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  z-index: 2;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: rgba(245, 243, 239, 0.55);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-hint i {
  width: 1px;
  height: 2.2rem;
  background: linear-gradient(180deg, rgba(255, 122, 69, 0.9), transparent);
  animation: hintPulse 1.6s ease-in-out infinite;
}
@keyframes hintPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.75); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.is-visible,
.hero .reveal {
  opacity: 1;
  transform: none;
}
.hero .reveal { animation: heroIn 0.85s ease both; }
.hero .reveal.delay-1 { animation-delay: 0.1s; }
.hero .reveal.delay-2 { animation-delay: 0.2s; }
.hero .reveal.delay-3 { animation-delay: 0.3s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.15rem;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--ember-2), var(--ember));
  color: #fff;
  box-shadow: 0 16px 40px rgba(255, 77, 46, 0.34);
}
.btn-primary:hover { box-shadow: 0 20px 48px rgba(255, 77, 46, 0.45); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgba(255, 122, 69, 0.45); background: rgba(255, 255, 255, 0.06); }
.btn.small { min-height: 2.45rem; padding: 0.55rem 1rem; font-size: 0.88rem; }
.btn.full { width: 100%; }

.section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.2rem, 8vh, 5.5rem) 0;
}
.section-tight { padding-top: 0.5rem; padding-bottom: clamp(2rem, 5vh, 3rem); }
.section-head { margin-bottom: 1.7rem; }
.section-head.row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-kicker {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--ember-2);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section-head h2, .page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.section-head p { margin: 0.55rem 0 0; color: var(--muted); max-width: 48ch; }

.games-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.95rem;
}
.game-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 280px;
  background: #111;
  grid-column: span 4;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.game-card.large { grid-column: span 6; min-height: 360px; }
.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.game-card-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 18%, rgba(0, 0, 0, 0.92)),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 34%, transparent), transparent 58%);
}
.game-card .body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.25rem 1.3rem 1.35rem;
}
.game-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}
.game-card p {
  margin: 0.35rem 0 0;
  color: rgba(245, 243, 239, 0.72);
  font-size: 0.9rem;
}
.game-card .meta {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
}
.game-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 122, 69, 0.45);
  box-shadow: var(--shadow);
}
.game-card:hover img { transform: scale(1.08); }

.pulse-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  padding: 0.35rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 77, 46, 0.1), transparent 45%),
    rgba(255, 255, 255, 0.025);
}
.pulse-item {
  padding: 1.25rem 1rem;
  text-align: center;
  border-radius: 18px;
}
.pulse-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff, var(--ember-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pulse-item span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  transition: transform .28s, border-color .28s, box-shadow .28s;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 122, 69, 0.42);
  box-shadow: var(--shadow);
}
.product-cover {
  position: relative;
  height: 178px;
  overflow: hidden;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #111;
}
.product-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-cover img { transform: scale(1.08); }
.product-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.62));
}
.float-badges {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.7rem;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.product-body { padding: 1rem 1rem 0.3rem; }
.product-game {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.product-body h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.02rem;
  line-height: 1.3;
  font-weight: 700;
}
.product-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.rating-inline { color: var(--warn); font-size: 0.82rem; font-weight: 700; }
.rating-inline em, .rating-inline.muted { color: var(--muted); font-style: normal; font-weight: 500; }
.product-foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 0.6rem;
  padding: 0.85rem 1rem 1.05rem;
}
.price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.price small {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.badge {
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: rgba(8, 8, 10, 0.7);
  backdrop-filter: blur(8px);
}
.badge.ok { color: var(--ok); border-color: rgba(125, 255, 176, 0.28); }
.badge.warn { color: var(--warn); border-color: rgba(255, 211, 106, 0.3); }
.badge.hot { color: #111; background: #fff; border-color: #fff; }

.page-hero {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: end;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 9, 0.25), rgba(7, 7, 9, 0.92)),
    var(--page-image) center/cover no-repeat;
}
.page-hero-inner {
  position: relative;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0 2.4rem;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.breadcrumbs a:hover { color: var(--text); }
.page-hero p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  max-width: 46ch;
  font-size: 1.05rem;
  line-height: 1.55;
}
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.chip-static {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  font-weight: 700;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.82rem;
  transition: .2s;
}
.chip:hover, .chip.active {
  color: #111;
  background: #fff;
  border-color: #fff;
}

.support-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  border-radius: 30px;
  border: 1px solid rgba(255, 77, 46, 0.3);
  background:
    linear-gradient(120deg, rgba(255, 77, 46, 0.18), transparent 48%),
    url('/assets/covers/rust.jpg') right center/cover no-repeat;
  background-blend-mode: normal;
  position: relative;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}
.support-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 7, 9, 0.92), rgba(7, 7, 9, 0.72) 55%, rgba(7, 7, 9, 0.45));
}
.support-panel > * { position: relative; z-index: 1; }
.support-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
  max-width: 14ch;
}
.support-panel p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  max-width: 40ch;
}

.footer {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1.3rem;
}
.footer-brand p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 32ch;
}
.footer h4 {
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 243, 239, 0.8);
}
.footer-grid a {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.45rem;
  font-weight: 500;
}
.footer-grid a:hover { color: var(--text); }
.footer-note { margin: 1.5rem 0 0; color: var(--muted); font-size: 0.85rem; }

.drawer, .modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.drawer.open, .modal.open { opacity: 1; pointer-events: auto; }
.drawer { background: rgba(0, 0, 0, 0.62); }
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: #0d0e12;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s;
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head, .drawer-foot { padding: 1.15rem 1.25rem; border-bottom: 1px solid var(--line); }
.drawer-foot { border-bottom: 0; border-top: 1px solid var(--line); margin-top: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}
.drawer-body {
  padding: 1rem 1.25rem;
  overflow: auto;
  display: grid;
  gap: 0.75rem;
}
.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem 0.7rem;
  padding: 0.9rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.cart-line h4 { margin: 0; font-size: 0.95rem; }
.cart-line p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.8rem; }
.qty { display: inline-flex; align-items: center; gap: 0.4rem; }
.qty button {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.remove-line {
  grid-column: 1 / -1;
  justify-self: start;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}
.total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-weight: 700;
}
.checkout-form { display: grid; gap: 0.7rem; }
.checkout-form label {
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.checkout-form input, .checkout-form select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0.8rem 0.9rem;
}
.checkout-msg { margin: 0.75rem 0 0; color: var(--ok); font-size: 0.88rem; line-height: 1.45; }
.checkout-msg.error { color: #ff8d8d; }
.empty-cart { color: var(--muted); text-align: center; padding: 2rem 0.5rem; }
.icon-close {
  width: 2.15rem;
  height: 2.15rem;
  font-size: 1.35rem;
  line-height: 1;
}

.modal {
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
}
.modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(90vh, 880px);
  overflow: auto;
  border-radius: 28px;
  border: 1px solid rgba(255, 77, 46, 0.25);
  background: #101218;
  box-shadow: var(--shadow);
  transform: translateY(14px) scale(0.98);
  transition: transform .25s;
}
.modal.open .modal-panel { transform: none; }
.modal-panel .icon-close { position: absolute; top: 0.9rem; right: 0.9rem; z-index: 2; }
.modal-cover {
  height: 240px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.modal-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, #101218);
}
.modal-content { padding: 0.2rem 1.45rem 1.55rem; }
.modal-content h3 {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.modal-desc { margin: 1rem 0 0; color: var(--muted); line-height: 1.6; }
.feature-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}
.feature-list li {
  position: relative;
  padding-left: 1rem;
  color: rgba(245, 243, 239, 0.88);
  font-weight: 500;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--ember);
}
.plan-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1.2rem;
}
.plan-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 16px;
  padding: 0.8rem 0.75rem;
  cursor: pointer;
  text-align: left;
  display: grid;
  gap: 0.25rem;
}
.plan-btn strong {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.plan-btn span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ember-2);
}
.plan-btn.active, .plan-btn:hover {
  border-color: rgba(255, 122, 69, 0.55);
  background: rgba(255, 77, 46, 0.12);
}
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.3rem;
  align-items: center;
  justify-content: space-between;
}
.modal-btns { display: flex; gap: 0.55rem; flex-wrap: wrap; }

.support-modal .support-panel-modal {
  max-width: 520px;
  width: min(94vw, 520px);
  padding: 1.6rem 1.5rem 1.4rem;
}
.support-modal-body .section-kicker { display: inline-block; margin-bottom: 0.35rem; }
.support-modal-body h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 0 0 0.45rem;
}
.support-modal-lead {
  color: var(--muted);
  margin: 0 0 1.1rem;
  line-height: 1.45;
}
.support-ticket-form {
  display: grid;
  gap: 0.85rem;
}
.support-ticket-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.support-ticket-form select,
.support-ticket-form textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.85rem 1rem;
  font: inherit;
  resize: vertical;
}
.support-ticket-form select:focus,
.support-ticket-form textarea:focus {
  outline: none;
  border-color: rgba(255, 122, 69, 0.55);
}
.support-ticket-form .form-hint {
  margin: -0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.checkout-msg.ok { color: #7dffa3; }

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pulse-strip { grid-template-columns: repeat(2, 1fr); }
  .game-card, .game-card.large { grid-column: span 6; }
}
@media (max-width: 900px) {
  .hero-content { padding-top: 5.5rem; padding-bottom: 4.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.4rem 1rem 1rem;
    background: rgba(5, 5, 6, 0.97);
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .menu-btn { display: inline-flex; }
  .hero { min-height: 92svh; }
  .brand-lockup { font-size: clamp(3.4rem, 18vw, 5rem); }
  .game-card, .game-card.large { grid-column: span 12; min-height: 240px; }
  .product-grid, .pulse-strip, .footer-grid, .plan-list { grid-template-columns: 1fr; }
  .product-foot, .modal-actions, .support-panel { flex-direction: column; align-items: stretch; }
}

/* —— Toasts —— */
.toast-stack {
  position: fixed;
  z-index: 120;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: min(380px, calc(100vw - 1.5rem));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.95rem 0.95rem 1.05rem;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(28, 24, 22, 0.96), rgba(12, 11, 14, 0.98));
  border: 1px solid rgba(255, 122, 69, 0.28);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  overflow: hidden;
  opacity: 0;
  transform: translate3d(18px, -8px, 0) scale(0.96);
  transition: opacity .28s ease, transform .32s cubic-bezier(.2, .8, .2, 1);
  backdrop-filter: blur(16px) saturate(1.2);
}
.toast--in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.toast--out {
  opacity: 0;
  transform: translate3d(24px, -4px, 0) scale(0.96);
}
.toast-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #ff8a4c;
  background: linear-gradient(145deg, rgba(255, 122, 69, 0.22), rgba(255, 77, 46, 0.08));
  border: 1px solid rgba(255, 122, 69, 0.25);
  flex-shrink: 0;
}
.toast-icon svg { width: 1.2rem; height: 1.2rem; }
.toast--purchase .toast-icon { color: #7dffb0; background: linear-gradient(145deg, rgba(125, 255, 176, 0.18), rgba(125, 255, 176, 0.04)); border-color: rgba(125, 255, 176, 0.28); }
.toast--purchase { border-color: rgba(125, 255, 176, 0.28); }
.toast--support .toast-icon { color: #ffb070; }
.toast--ok .toast-icon { color: #7dffb0; }
.toast--error { border-color: rgba(255, 90, 90, 0.4); }
.toast--error .toast-icon { color: #ff7a7a; background: rgba(255, 90, 90, 0.12); border-color: rgba(255, 90, 90, 0.3); }
.toast-body { min-width: 0; padding-top: 0.1rem; }
.toast-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.toast-text {
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.toast-action {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ff8a4c;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.toast-action:hover { color: #ffb070; }
.toast-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.2rem;
  border-radius: 8px;
}
.toast-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.toast-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff4d2e, #ffb070);
  transform-origin: left center;
  animation: toastBar var(--toast-ms, 5600ms) linear forwards;
}
.toast--purchase .toast-progress {
  background: linear-gradient(90deg, #3dff9a, #7dffb0);
}
@keyframes toastBar {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@media (max-width: 720px) {
  .toast-stack {
    top: auto;
    bottom: 1rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }
  .toast {
    transform: translate3d(0, 16px, 0) scale(0.98);
  }
  .toast--in { transform: none; }
  .toast--out { transform: translate3d(0, 12px, 0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .toast, .toast--in, .toast--out { opacity: 1; transform: none; }
}
