:root {
  --bg-app: hsl(222 16% 8%);
  --bg-raised: hsl(226 22% 14% / 0.65);
  --text-primary: hsl(210 25% 96%);
  --text-muted: hsl(215 12% 62%);
  --accent: hsl(262 88% 65%);
  --accent-hover: hsl(262 88% 58%);
  --sale: hsl(350 78% 55%);
  --glass-bg: hsl(232 26% 17% / 0.76);
  --glass-soft: hsl(232 26% 17% / 0.58);
  --glass-border: hsl(210 20% 100% / 0.28);
  --panel-shadow: 0 18px 45px hsl(240 48% 6% / 0.32);
  --card-red: hsl(356 82% 57%);
  --card-red-dark: hsl(349 74% 35%);
  --card-blue: hsl(214 92% 61%);
  --price-green: hsl(154 72% 50%);
  --page-gutter: clamp(20px, 3.2vw, 52px);
  --header-gutter: clamp(32px, 6vw, 120px);
  --nav-outer-inset: clamp(18px, 3.2vw, 56px);
  --font-body: "Rajdhani", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Orbitron", var(--font-body);
}

[data-theme="light"] {
  --bg-app: hsl(220 30% 94%);
  --bg-raised: hsl(0 0% 100% / 0.6);
  --text-primary: hsl(224 30% 16%);
  --text-muted: hsl(220 10% 44%);
  --accent: hsl(255 76% 54%);
  --accent-hover: hsl(255 76% 47%);
  --sale: hsl(350 74% 50%);
  --glass-bg: hsl(0 0% 100% / 0.8);
  --glass-soft: hsl(0 0% 100% / 0.6);
  --glass-border: hsl(224 24% 30% / 0.24);
  --panel-shadow: 0 16px 32px hsl(225 38% 78% / 0.38);
  /* светло-мятный на белом почти не виден — более тёмный изумруд */
  --price-green: hsl(158 78% 28%);
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: hsl(230 28% 58% / 0.72) hsl(231 24% 16% / 0.72);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: hsl(231 24% 16% / 0.72);
  border-radius: 999px;
  border: 1px solid hsl(0 0% 100% / 0.06);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, hsl(230 36% 62% / 0.92), hsl(245 34% 54% / 0.9));
  border-radius: 999px;
  border: 1px solid hsl(231 24% 16% / 0.72);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, hsl(227 44% 68% / 1), hsl(247 44% 60% / 1));
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.03em;
  background: radial-gradient(circle at top, #1b2335, var(--bg-app) 35%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}
h1,
h2,
h3,
.page-title,
.buy-price,
.buy-modal-title,
.buy-modal-price,
.reviews-head h2,
.reviews-rating,
.detail-buy .buy-price {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}
.btn-buy,
.btn-buy-hero,
.btn-card-primary,
.btn-card-download,
.btn-primary,
.card-ribbon,
.badge {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}
.nav-search input[type="text"] {
  font-family: var(--font-body);
  font-weight: 600;
}
[data-theme="light"] body {
  background: radial-gradient(circle at top, #ffffff, var(--bg-app) 42%);
}
[data-theme="light"] * {
  scrollbar-color: hsl(220 9% 52% / 0.9) hsl(220 12% 90% / 0.96);
}
html[data-theme="light"],
html[data-theme="light"] body {
  scrollbar-color: hsl(220 9% 52% / 0.9) hsl(220 12% 90% / 0.96);
}
[data-theme="light"] *::-webkit-scrollbar-track {
  background: hsl(220 12% 90% / 0.96);
  border: 1px solid hsl(220 12% 83% / 0.9);
}
html[data-theme="light"]::-webkit-scrollbar-track,
html[data-theme="light"] body::-webkit-scrollbar-track {
  background: hsl(220 12% 90% / 0.96);
  border: 1px solid hsl(220 12% 83% / 0.9);
}
[data-theme="light"] *::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, hsl(220 10% 58% / 0.96), hsl(220 10% 50% / 0.96));
  border-color: hsl(220 12% 90% / 0.96);
}
html[data-theme="light"]::-webkit-scrollbar-thumb,
html[data-theme="light"] body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, hsl(220 10% 58% / 0.96), hsl(220 10% 50% / 0.96));
  border-color: hsl(220 12% 90% / 0.96);
}
[data-theme="light"] *::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, hsl(220 10% 52% / 1), hsl(220 10% 44% / 1));
}
html[data-theme="light"]::-webkit-scrollbar-thumb:hover,
html[data-theme="light"] body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, hsl(220 10% 52% / 1), hsl(220 10% 44% / 1));
}
a { color: var(--text-primary); text-decoration: none; }
.site-wrap {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding-inline: var(--page-gutter);
}
.bg-waves {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.wave {
  position: absolute;
  filter: blur(18px);
  opacity: 0.55;
  transform: translate3d(0, 0, 0);
}
.wave-a {
  width: 56vw;
  height: 56vw;
  left: -16vw;
  top: -14vw;
  border-radius: 45% 55% 63% 37% / 44% 36% 64% 56%;
  background: radial-gradient(circle at 30% 25%, hsl(260 82% 66% / 0.62), hsl(245 70% 48% / 0.08) 70%);
}
.wave-b {
  width: 52vw;
  height: 52vw;
  right: -14vw;
  top: 12vh;
  border-radius: 61% 39% 41% 59% / 40% 65% 35% 60%;
  background: radial-gradient(circle at 60% 40%, hsl(198 90% 62% / 0.5), hsl(236 80% 46% / 0.05) 72%);
}
.wave-c {
  width: 60vw;
  height: 60vw;
  left: 22vw;
  bottom: -34vw;
  border-radius: 58% 42% 34% 66% / 56% 44% 66% 34%;
  background: radial-gradient(circle at 50% 30%, hsl(300 75% 65% / 0.38), hsl(250 70% 40% / 0.06) 70%);
}
[data-theme="light"] .wave-a {
  background: radial-gradient(circle at 30% 25%, hsl(255 84% 74% / 0.42), hsl(255 90% 70% / 0.06) 72%);
}
[data-theme="light"] .wave-b {
  background: radial-gradient(circle at 60% 40%, hsl(196 86% 72% / 0.36), hsl(196 90% 72% / 0.06) 70%);
}
[data-theme="light"] .wave-c {
  background: radial-gradient(circle at 50% 30%, hsl(312 76% 74% / 0.3), hsl(312 86% 74% / 0.04) 70%);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 16px 0 10px;
  backdrop-filter: blur(4px);
}
.nav-glass {
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(1.2);
  border-radius: 18px;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px 16px;
  box-shadow: inset 0 1px 0 0 hsl(0 0% 100% / 0.2), var(--panel-shadow);
  width: min(100%, calc(100vw - (var(--nav-outer-inset) * 2)));
  margin-inline: auto;
}
.site-header .site-wrap {
  padding-inline: 0;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  justify-self: start;
  min-width: 0;
  margin-left: 15px;
}
@keyframes brand-logo-breathe {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
.brand-logo-img {
  display: block;
  height: 44px;
  width: 44px;
  object-fit: contain;
  flex-shrink: 0;
  transform-origin: center center;
  animation: brand-logo-breathe 2.8s ease-in-out infinite;
  will-change: transform;
}
[data-theme="dark"] .brand-logo-img {
  filter: brightness(0) invert(1);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .brand-logo-img {
    animation: none;
  }
}
.nav-toolbar-end {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.theme-slider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -15px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  margin-right: 10px;
}
.theme-slider:focus-visible {
  outline: 2px solid hsl(217 95% 62%);
  outline-offset: 3px;
  border-radius: 999px;
}
.theme-slider-track {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.1);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 3px hsl(0 0% 0% / 0.12);
  transition:
    background 0.5s cubic-bezier(0.45, 0, 0.55, 1),
    border-color 0.5s cubic-bezier(0.45, 0, 0.55, 1),
    box-shadow 0.5s cubic-bezier(0.45, 0, 0.55, 1);
}
[data-theme="light"] .theme-slider-track {
  background: hsl(220 25% 93%);
  box-shadow: inset 0 1px 2px hsl(220 20% 70% / 0.3);
}
.theme-slider-ic {
  position: absolute;
  top: 50%;
  margin-top: -7px;
  width: 14px;
  height: 14px;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.5s cubic-bezier(0.45, 0, 0.55, 1);
}
.theme-slider-ic--moon {
  left: 8px;
}
.theme-slider-ic--sun {
  right: 8px;
}
[data-theme="dark"] .theme-slider-ic {
  filter: invert(1);
}
[data-theme="dark"] .theme-slider-ic--moon {
  opacity: 1;
}
[data-theme="dark"] .theme-slider-ic--sun {
  opacity: 0.32;
}
[data-theme="light"] .theme-slider-ic--moon {
  opacity: 0.32;
}
[data-theme="light"] .theme-slider-ic--sun {
  opacity: 1;
}
.theme-slider-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(165deg, hsl(0 0% 100% / 0.98), hsl(0 0% 90%));
  border: 1px solid hsl(0 0% 100% / 0.3);
  box-shadow: 0 2px 8px hsl(0 0% 0% / 0.2);
  transition:
    transform 0.55s cubic-bezier(0.45, 0, 0.55, 1),
    background 0.55s cubic-bezier(0.45, 0, 0.55, 1),
    border-color 0.55s cubic-bezier(0.45, 0, 0.55, 1),
    box-shadow 0.55s cubic-bezier(0.45, 0, 0.55, 1);
  z-index: 2;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}
[data-theme="light"] .theme-slider-thumb {
  transform: translate3d(24px, 0, 0);
  background: linear-gradient(165deg, hsl(0 0% 100%), hsl(220 16% 96%));
  border-color: hsl(224 20% 82% / 0.95);
}
@media (prefers-reduced-motion: reduce) {
  .theme-slider-thumb,
  .theme-slider-track,
  .theme-slider-ic {
    transition: none;
  }
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
  width: min(520px, 100%);
  max-width: 100%;
  min-width: 0;
  padding: 8px 11px;
  border-radius: 12px;
  background: var(--glass-soft);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px) saturate(1.1);
}
.nav-search input[type="text"] {
  width: 100%;
  min-width: 120px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
}
.nav-search input[type="text"]::placeholder {
  color: var(--text-muted);
}
.nav-search-ic {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.88;
}
[data-theme="dark"] .nav-search-ic {
  filter: invert(1);
  opacity: 0.82;
}
.nav-search-clear {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: hsl(356 88% 60%);
}
.nav-search-clear:hover {
  color: hsl(356 94% 67%);
}
.nav-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  max-height: min(62vh, 420px);
  overflow: auto;
  border-radius: 12px;
  background: hsl(226 26% 13%);
  border: 1px solid hsl(220 18% 26%);
  backdrop-filter: none;
  box-shadow: 0 20px 44px hsl(240 45% 6% / 0.55), inset 0 1px 0 hsl(0 0% 100% / 0.06);
  z-index: 30;
}
[data-theme="light"] .nav-suggest {
  background: hsl(0 0% 100%);
  border: 1px solid hsl(224 18% 82%);
  box-shadow: 0 16px 40px hsl(225 28% 50% / 0.18), inset 0 1px 0 hsl(0 0% 100% / 1);
}
.suggest-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-bottom: 1px solid hsl(220 18% 22%);
  min-width: 0;
}
.suggest-hit {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.suggest-cta {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.suggest-cta--download {
  color: #fff;
  background: linear-gradient(135deg, hsl(154 72% 42%), hsl(160 70% 32%));
  border: 1px solid hsl(0 0% 100% / 0.22);
}
.suggest-cta--download:hover {
  filter: brightness(1.06);
}
[data-theme="light"] .suggest-item {
  border-bottom-color: hsl(224 16% 90%);
}
.suggest-item:last-child { border-bottom: 0; }
.suggest-item:hover {
  background: hsl(228 24% 17%);
}
[data-theme="light"] .suggest-item:hover {
  background: hsl(220 30% 96%);
}
.suggest-cover {
  width: 44px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
}
.suggest-main { display: inline-flex; flex-direction: column; min-width: 0; }
.suggest-title {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggest-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--price-green);
  white-space: nowrap;
}
.messages { margin: 10px 0; }
.msg {
  background: var(--glass-soft);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px) saturate(1.1);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.page-title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  margin: 8px 0;
}
.page-subtitle {
  color: var(--text-muted);
  margin: 0 0 6px;
}
.catalog-section {
  margin: 20px 0 16px;
}
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.catalog-grid { margin-top: 18px; }
.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, hsl(238 36% 14% / 0.9), hsl(232 32% 11% / 0.82));
  border: 1px solid hsl(0 0% 100% / 0.16);
  backdrop-filter: blur(16px) saturate(1.18);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 16px 30px hsl(239 56% 5% / 0.4), inset 0 1px 0 hsl(0 0% 100% / 0.14);
}
[data-theme="light"] .card {
  background: hsl(0 0% 100%);
  border: 1px solid hsl(224 20% 80% / 0.65);
  backdrop-filter: none;
  box-shadow: 0 10px 28px hsl(225 28% 70% / 0.22), inset 0 1px 0 hsl(0 0% 100% / 1);
}
.game-card {
  cursor: pointer;
}
.card-ribbon {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .4px;
  color: white;
  background: linear-gradient(120deg, var(--card-red), var(--card-red-dark));
  border-radius: 999px;
  padding: 3px 10px;
  border: 1px solid hsl(0 0% 100% / 0.26);
}
.cover-link { display: block; border-radius: 12px; overflow: hidden; }
.cover {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 12px;
  background: #0f1420;
  transition: transform .2s ease, filter .2s ease;
  border: 0;
  max-height: clamp(150px, 18vh, 220px);
}
.cover-fallback {
  width: 100%;
  aspect-ratio: 16/10;
  max-height: clamp(150px, 18vh, 220px);
  border-radius: 12px;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 10px;
  background:
    radial-gradient(circle at 18% 20%, hsl(353 84% 56% / 0.38), transparent 40%),
    radial-gradient(circle at 80% 26%, hsl(213 92% 60% / 0.36), transparent 44%),
    linear-gradient(135deg, hsl(236 46% 18%), hsl(224 40% 14%) 56%, hsl(247 44% 19%));
}
.cover-fallback-kicker {
  font-size: 10px;
  letter-spacing: .8px;
  font-weight: 800;
  border-radius: 999px;
  border: 1px solid hsl(0 0% 100% / 0.28);
  background: hsl(0 0% 100% / 0.08);
  padding: 3px 8px;
  color: hsl(0 0% 100% / 0.95);
}
.cover-fallback-title {
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.06;
  font-weight: 900;
  text-shadow: 0 0 18px hsl(0 0% 0% / 0.3);
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cover-link:hover .cover {
  transform: none;
  filter: brightness(1.08) saturate(1.08);
}
.cover-link:hover .cover-fallback {
  filter: brightness(1.06) saturate(1.08);
}
.title { font-size: 16px; margin: 10px 0 6px; min-height: 38px; }
.title a:hover { color: hsl(352 98% 72%); }
.meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.meta-dot { opacity: .55; margin: 0 4px; }
/* Catalog cards: center the meta strip and vertically align pill / rating / text */
.game-card .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 4px 8px;
  text-align: left;
}
.game-card .meta .meta-dot {
  margin: 0;
  flex-shrink: 0;
}
.rating-line { color: hsl(219 90% 67%); font-weight: 700; letter-spacing: .2px; }
.rating-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}
.rating-num { color: var(--text-muted); font-weight: 600; }
/* Заполнение по шкале 0–5 (напр. 3,7 → ~74%) */
.star-rating {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  flex-shrink: 0;
}
.star-rating__track {
  position: relative;
  display: inline-block;
  line-height: 1;
  letter-spacing: 2px;
  color: hsl(215 12% 38%);
}
.star-rating__track::before {
  content: "★★★★★";
}
.star-rating__fill {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  white-space: nowrap;
  height: 100%;
  color: hsl(219 90% 67%);
}
.star-rating__fill::before {
  content: "★★★★★";
}
.star-rating--sm .star-rating__track { font-size: 13px; }
.star-rating--md .star-rating__track { font-size: 14px; letter-spacing: 2px; }
.star-rating--lg .star-rating__track { font-size: 22px; letter-spacing: 3px; }
.orders-line { color: var(--text-muted); }
.catalog-reset-link {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid hsl(0 0% 100% / 0.18);
  background: hsl(355 66% 44% / 0.26);
  color: var(--text-primary);
}
.catalog-reset-link:hover {
  background: hsl(355 74% 48% / 0.4);
}
.price { display: flex; gap: 8px; align-items: center; }
.old { text-decoration: line-through; opacity: .65; }
.badge {
  color: #fff;
  background: linear-gradient(120deg, var(--card-red), hsl(14 92% 58%));
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid hsl(0 0% 100% / 0.2);
}
.current-price {
  color: var(--price-green);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .2px;
  text-shadow: 0 0 12px hsl(154 72% 50% / 0.28);
}
[data-theme="light"] .current-price {
  text-shadow: none;
}
.card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}
.btn-card {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 11px;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-card-primary {
  color: #fff;
  background: linear-gradient(135deg, hsl(357 83% 56%), hsl(11 94% 56%));
  border-color: hsl(0 0% 100% / 0.22);
}
.btn-card-primary:hover {
  filter: brightness(1.05);
}
.btn-card-download {
  color: #fff;
  background: linear-gradient(135deg, hsl(154 72% 42%), hsl(160 70% 32%));
  border-color: hsl(0 0% 100% / 0.22);
}
.btn-card-download:hover {
  filter: brightness(1.05);
}

.btn-card-label {
  position: relative;
  z-index: 1;
}
.game-card .btn-card-primary,
.game-card .btn-card-download {
  position: relative;
  overflow: hidden;
}
.game-card .btn-card-primary::after,
.game-card .btn-card-download::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  background: linear-gradient(
    90deg,
    hsl(0 0% 100% / 0),
    hsl(0 0% 100% / 0.38),
    hsl(0 0% 100% / 0)
  );
  transform: translateX(-125%);
  pointer-events: none;
  z-index: 0;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.game-card .btn-card-primary:hover::after,
.game-card .btn-card-download:hover::after {
  transform: translateX(235%);
}
.game-card .btn-card-primary:focus-visible,
.game-card .btn-card-download:focus-visible {
  outline: 2px solid hsl(217 95% 62%);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .game-card .btn-card-primary::after,
  .game-card .btn-card-download::after {
    display: none;
  }
}
.btn-card-ghost {
  color: var(--text-primary);
  background: hsl(0 0% 100% / 0.06);
  border-color: var(--glass-border);
}
.btn-card-ghost:hover {
  background: hsl(0 0% 100% / 0.12);
}
#sentinel { height: 2px; margin-top: 10px; }
#loading { text-align: center; padding: 20px; color: var(--text-muted); }

.form-wrap {
  max-width: 520px;
  margin: 56px auto 24px;
  padding: 24px;
  border-radius: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px) saturate(1.2);
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.2), var(--panel-shadow);
}
.form-wrap h1 { margin-top: 0; }
.form-wrap p { margin: 0 0 14px; }
.form-wrap label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 14px;
}
.form-wrap input[type="text"],
.form-wrap input[type="email"],
.form-wrap input[type="password"] {
  width: 100%;
  border: 1px solid var(--glass-border);
  outline: none;
  border-radius: 12px;
  background: var(--glass-soft);
  color: var(--text-primary);
  padding: 11px 12px;
  backdrop-filter: blur(10px);
}
.form-wrap input:focus {
  border-color: hsl(262 88% 66% / 0.75);
  box-shadow: 0 0 0 3px hsl(262 88% 66% / 0.2);
}
.btn-primary {
  border: 1px solid hsl(0 0% 100% / 0.22);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), hsl(214 84% 61%));
  color: #fff;
  padding: 11px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, filter .2s ease;
}
.btn-buy {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  border: 1px solid hsl(0 0% 100% / 0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), hsl(214 84% 61%));
  color: #fff;
  padding: 12px 16px;
  font-weight: 800;
  letter-spacing: .2px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, filter .2s ease;
}
.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 0 0 1px hsl(0 0% 100% / 0.2) inset, 0 0 20px hsl(260 90% 66% / 0.25);
}
.btn-buy:hover {
  filter: brightness(1.06);
  box-shadow: 0 0 0 1px hsl(0 0% 100% / 0.24) inset, 0 0 24px hsl(355 85% 56% / 0.28);
}
.btn-buy-hero {
  font-size: 24px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, hsl(148 92% 36%), hsl(193 92% 44%));
  box-shadow: 0 16px 30px hsl(170 84% 20% / 0.3);
}

.glass-panel {
  background: var(--glass-soft);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  backdrop-filter: blur(18px) saturate(1.12);
  box-shadow: var(--panel-shadow);
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, .95fr);
  gap: 24px;
  margin-top: 18px;
}
.purchase-success-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  box-shadow: var(--panel-shadow), inset 0 1px 0 hsl(0 0% 100% / 0.12);
}
.purchase-success-banner__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}
.purchase-success-banner__kicker {
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(120deg, hsl(355 84% 56%), hsl(14 92% 56%));
  border: 1px solid hsl(0 0% 100% / 0.22);
}
.purchase-success-banner__text strong {
  font-size: 22px;
  line-height: 1.15;
}
.purchase-success-banner__text p {
  margin: 0;
  color: hsl(164 44% 84%);
  font-size: 14px;
}
.purchase-success-banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid hsl(0 0% 100% / 0.24);
  color: #fff;
  background: linear-gradient(135deg, hsl(146 76% 44%), hsl(194 88% 44%));
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.purchase-success-banner__cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
[data-theme="light"] .purchase-success-banner {
  border-color: var(--glass-border);
  background: var(--glass-bg);
  box-shadow: var(--panel-shadow), inset 0 1px 0 hsl(0 0% 100% / 0.95);
}
[data-theme="light"] .purchase-success-banner__text p {
  color: hsl(164 26% 28%);
}
[data-theme="light"] .purchase-success-banner__cta {
  color: #fff;
}
.detail-layout--no-buy {
  grid-template-columns: minmax(0, 1fr);
}
.detail-media {
  padding: 22px 24px 26px;
}
.legal-page {
  padding: 24px 28px 32px;
  max-width: 52rem;
  margin-inline: auto;
}
.detail-image-wrap {
  border-radius: 14px;
  overflow: hidden;
  background: hsl(228 26% 11% / 0.78);
  border: 0;
  min-height: 320px;
}
.detail-image {
  width: 100%;
  max-height: min(62vh, 560px);
  object-fit: contain;
  display: block;
}
.detail-fallback-art {
  min-height: 320px;
  height: min(56vh, 500px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  text-align: center;
  background:
    radial-gradient(circle at 22% 22%, hsl(350 85% 56% / 0.38), transparent 42%),
    radial-gradient(circle at 78% 28%, hsl(204 90% 58% / 0.34), transparent 43%),
    linear-gradient(135deg, hsl(237 46% 18%), hsl(226 40% 14%) 55%, hsl(246 44% 18%));
}
.fallback-kicker {
  font-size: 12px;
  letter-spacing: .8px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid hsl(0 0% 100% / 0.3);
  background: hsl(0 0% 100% / 0.08);
}
.fallback-title {
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 0 20px hsl(0 0% 0% / 0.35);
}
.fallback-sub {
  color: hsl(210 24% 82%);
  font-size: 13px;
  letter-spacing: .6px;
}
.detail-buy {
  padding: 18px;
  position: sticky;
  top: 94px;
  align-self: start;
  border: 1px solid hsl(0 0% 100% / 0.2);
  background: linear-gradient(160deg, hsl(232 46% 17% / 0.9), hsl(223 42% 14% / 0.86));
  color: hsl(210 25% 96%);
}
[data-theme="light"] .detail-buy {
  background: hsl(0 0% 100%);
  border: 1px solid hsl(224 20% 82% / 0.95);
  box-shadow: 0 10px 28px hsl(225 28% 70% / 0.2), inset 0 1px 0 hsl(0 0% 100% / 1);
  color: var(--text-primary);
}
.buy-price {
  font-size: clamp(38px, 5vw, 52px);
  font-weight: 900;
  line-height: 1;
  margin: 8px 0 10px;
  color: hsl(152 84% 50%);
  text-shadow: 0 0 20px hsl(152 84% 50% / 0.24);
}
[data-theme="light"] .detail-buy .buy-price {
  color: var(--price-green);
  text-shadow: none;
}
.buy-headline {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .4px;
  color: white;
  padding: 4px 10px;
  background: linear-gradient(120deg, hsl(355 84% 56%), hsl(16 94% 56%));
  border: 1px solid hsl(0 0% 100% / 0.2);
}
.buy-pricing {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.buy-title {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.15;
  margin: 4px 0;
  color: inherit;
}
.buy-subtitle {
  margin: 0 0 14px;
  color: var(--text-muted);
}
.delivery-box {
  border: 1px solid hsl(0 0% 100% / 0.14);
  background: hsl(0 0% 100% / 0.05);
  border-radius: 14px;
  padding: 12px;
  margin: 6px 0 14px;
}
[data-theme="light"] .detail-buy .delivery-box {
  border: 1px solid hsl(224 24% 88% / 0.95);
  background: hsl(220 30% 96%);
}
.delivery-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 6px;
  color: inherit;
}
.delivery-main {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 2px;
  color: inherit;
}
.delivery-sub {
  font-size: 13px;
  color: var(--text-muted);
}
[data-theme="light"] .detail-buy .buy-pricing .old {
  color: hsl(220 12% 46%);
  opacity: 1;
}
[data-theme="light"] .detail-buy .meta {
  color: var(--text-muted);
}
[data-theme="light"] .detail-buy a {
  color: var(--accent);
}
[data-theme="light"] .detail-buy a:hover {
  color: var(--accent-hover);
}
.detail-reviews {
  margin-top: 22px;
  padding: 22px 24px 26px;
}
.reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.reviews-head h2 {
  margin: 0 0 6px;
}
.reviews-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.reviews-rating {
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.reviews-count {
  color: var(--text-muted);
  font-size: 14px;
}
.reviews-all-link {
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 6px 10px;
  background: hsl(0 0% 100% / 0.04);
  white-space: nowrap;
}
.reviews-all-link:hover {
  color: var(--text-primary);
}
.review-form {
  margin: 8px 0 16px;
}
.review-form-box {
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 12px;
  background: hsl(0 0% 100% / 0.03);
}
.buy-modal-overlay {
  position: fixed;
  inset: 0;
  background: hsl(236 42% 6% / 0.62);
  backdrop-filter: blur(6px);
  z-index: 60;
}
.buy-modal-overlay[hidden],
.buy-modal[hidden] {
  display: none !important;
}
.buy-modal {
  position: fixed;
  left: 50%;
  top: 96px;
  transform: translateX(-50%);
  margin: 0;
  width: min(400px, calc(100vw - 20px));
  max-height: calc(100vh - 112px);
  overflow: auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(24px) saturate(1.2);
  box-shadow: var(--panel-shadow), 0 0 0 1px hsl(0 0% 100% / 0.06) inset;
  z-index: 61;
  padding: 14px 14px 10px;
}
.buy-modal-title {
  margin: 0 0 14px;
  padding-right: 36px;
  font-size: clamp(1.05rem, 3vw, 1.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.buy-modal-close {
  position: absolute;
  right: 12px;
  top: 14px;
  border: 0;
  background: hsl(0 0% 100% / 0.06);
  color: var(--text-primary);
  font-size: 24px;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.buy-modal-close:hover {
  background: hsl(0 0% 100% / 0.12);
}
.buy-modal-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}
.buy-modal-discount {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2px;
}
.buy-modal-discount-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(125deg, hsl(358 84% 58%), hsl(339 78% 46%));
}
.buy-modal-discount-old {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.buy-modal-discount-save {
  font-size: 12px;
  color: var(--text-muted);
}
.buy-modal-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.buy-modal-input {
  width: 100%;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass-soft);
  color: var(--text-primary);
  padding: 10px 12px;
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.buy-modal-input:focus {
  outline: none;
  border-color: hsl(154 55% 42% / 0.65);
  box-shadow: 0 0 0 3px hsl(154 60% 45% / 0.2);
}
.buy-modal-hint {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 8px 0 12px;
}
.buy-modal-price {
  font-size: clamp(1.4rem, 3.3vw, 1.65rem);
  font-weight: 900;
  margin: 2px 0 10px;
  letter-spacing: -0.02em;
}
.buy-modal-price-line {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.buy-modal-price strong {
  color: var(--price-green);
}
.buy-modal-trust-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.buy-modal-trust-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  background: linear-gradient(
    135deg,
    hsl(154 42% 42% / 0.14),
    hsl(172 38% 38% / 0.1)
  );
  border: 1px solid hsl(154 45% 42% / 0.28);
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.08);
}
.buy-modal-trust-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(145deg, hsl(154 72% 38%), hsl(168 68% 34%));
  box-shadow:
    0 2px 10px hsl(154 65% 28% / 0.45),
    inset 0 1px 0 hsl(0 0% 100% / 0.22);
}
[data-theme="light"] .buy-modal-trust-list li {
  background: linear-gradient(135deg, hsl(154 45% 94%), hsl(165 40% 96%));
  border-color: hsl(154 38% 78% / 0.95);
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.9);
}
[data-theme="light"] .buy-modal-trust-list li::before {
  box-shadow:
    0 2px 10px hsl(154 50% 35% / 0.35),
    inset 0 1px 0 hsl(0 0% 100% / 0.25);
}
.buy-modal-submit.btn-buy-hero {
  margin-top: 6px;
  margin-bottom: 0;
  min-height: 40px;
  padding-block: 9px;
}
.buy-modal-consents {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
}
.buy-modal-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
  cursor: pointer;
}
.buy-modal-consent input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: hsl(154 65% 42%);
  flex-shrink: 0;
  cursor: pointer;
}
.buy-modal-consent--single {
  padding: 12px 13px;
  border: 1px solid hsl(154 42% 42% / 0.28);
  border-radius: 12px;
  background: linear-gradient(
    145deg,
    hsl(154 40% 40% / 0.12),
    hsl(170 42% 36% / 0.08)
  );
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.08);
}
[data-theme="light"] .buy-modal-consent--single {
  border-color: hsl(154 34% 76% / 0.95);
  background: linear-gradient(145deg, hsl(154 50% 95%), hsl(170 48% 96%));
}
.modal-open {
  overflow: auto;
}
.review-form select,
.review-form textarea {
  width: 100%;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: var(--glass-soft);
  color: var(--text-primary);
  padding: 10px 12px;
}
.detail-buy input[type="email"] {
  width: 100%;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: var(--glass-soft);
  color: var(--text-primary);
  padding: 10px 12px;
}
.review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.review-item {
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 12px 14px;
  background: linear-gradient(165deg, hsl(233 26% 18% / 0.74), hsl(228 24% 15% / 0.7));
}
.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.review-date {
  color: var(--text-muted);
  font-size: 12px;
}
[data-theme="light"] .detail-reviews .reviews-rating {
  color: var(--text-primary);
}
[data-theme="light"] .detail-reviews .reviews-summary .star-rating__track {
  color: hsl(220 14% 76%);
}
[data-theme="light"] .detail-reviews .reviews-summary .star-rating__fill {
  color: hsl(219 75% 46%);
}
[data-theme="light"] .reviews-all-link {
  background: hsl(0 0% 100%);
  border-color: hsl(224 22% 82% / 0.95);
}
[data-theme="light"] .reviews-all-link:hover {
  background: hsl(220 30% 96%);
  border-color: hsl(224 22% 78% / 1);
}
[data-theme="light"] .review-form-box {
  background: hsl(220 30% 96%);
  border-color: hsl(224 22% 88% / 1);
}
[data-theme="light"] .review-item {
  background: hsl(0 0% 100%);
  border: 1px solid hsl(224 22% 88% / 0.95);
  box-shadow: 0 4px 14px hsl(225 26% 62% / 0.12);
  color: var(--text-primary);
}
[data-theme="light"] .review-item .rating-line {
  color: hsl(219 75% 46%);
}
[data-theme="light"] .review-item strong {
  color: var(--text-primary);
}
[data-theme="light"] .review-item p {
  color: var(--text-primary);
}

main.site-wrap {
  position: relative;
  z-index: 1;
  padding-bottom: 28px;
}
.site-footer {
  position: relative;
  z-index: 0;
  margin-top: auto;
  padding: 28px 0 36px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  font-size: 13px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--text-primary);
  text-decoration: underli