:root {
  --page: #0b0d10;
  --panel: #14171c;
  --panel-raised: #191c22;
  --line: rgba(255, 255, 255, 0.09);
  --muted: #9298a3;
  --purple: #7f66ff;
  --purple-bright: #9b88ff;
}

body {
  background:
    radial-gradient(circle at 50% -15%, rgba(127, 102, 255, 0.09), transparent 34rem),
    var(--page);
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

.shell {
  width: min(1280px, calc(100% - 48px));
}

.nav {
  position: sticky;
  top: 18px;
  height: 64px;
  margin-top: 18px;
  padding: 0 13px 0 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(20, 22, 27, 0.93);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 128px;
  height: auto;
}

.nav nav {
  border: 0;
  background: transparent;
  padding: 0;
}

.nav nav a {
  padding: 9px 17px;
  font-size: 14px;
  font-weight: 700;
}

.nav nav a.active {
  background: rgba(127, 102, 255, 0.13);
  color: #b8aaff;
}

.country,
.icon-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-color: var(--line);
  background: #20242b;
}

.icon-button img {
  width: 18px;
  height: 18px;
}

.count {
  background: var(--purple);
}

.hero {
  min-height: 630px;
  margin-top: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #15171c;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 30px 80px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 11, 14, 0.03) 20%, rgba(10, 11, 14, 0.42) 61%, #0b0d10 100%);
}

.hero::after { display: none; }

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(.9) contrast(1.03);
}

.hero-content {
  width: min(760px, calc(100% - 48px));
  margin-bottom: 38px;
  padding: 28px 38px 30px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(12, 14, 18, .73);
  box-shadow: 0 24px 70px rgba(0,0,0,.38);
  backdrop-filter: blur(18px);
}

.hero h1 {
  max-width: none;
  margin-bottom: 13px;
  font-size: clamp(38px, 4.7vw, 62px);
  line-height: 1;
  letter-spacing: -0.052em;
}

.hero-content > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.55;
  color: #c4c6cd;
}

.hero .eyebrow { margin-bottom: 10px; color: #b7aaff; }

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.hero-actions .primary-button { margin-top: 0; padding-inline: 25px; }

.hero-secondary {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  color: #e8e8eb;
  font-weight: 750;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  background: rgba(18,20,25,.7);
}

.eyebrow {
  color: #9a86ff;
}

.primary-button,
.checkout-button {
  background: linear-gradient(135deg, var(--purple-bright), #6548ef);
  box-shadow: 0 12px 30px rgba(101, 72, 239, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover,
.checkout-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(101, 72, 239, 0.38);
}

.trust-strip {
  margin-top: 24px;
  border-color: var(--line);
  background: rgba(20, 23, 28, 0.7);
}

.trust-grid {
  min-height: 82px;
}

.trust-grid span {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-color: var(--line);
  font-size: 12px;
  font-weight: 650;
}

.trust-grid img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: 0.78;
}

.section {
  padding-block: 82px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(34px, 4vw, 46px);
  letter-spacing: -0.05em;
}

.section-heading > a {
  padding: 9px 13px;
  border-radius: 9px;
}

.section-heading > a:hover { background: #1a1d23; color: #fff; }

.featured-grid,
.catalog-grid {
  width: 100%;
}

.featured-grid {
  gap: 18px;
}

.catalog-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 34px 18px;
}

.game-card {
  min-width: 0;
  gap: 12px;
  overflow: hidden;
}

.cover {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #181b21;
  box-shadow: 0 14px 32px rgba(0,0,0,.18);
}

.cover img {
  transform: scale(1.002);
}

.game-card:hover .cover {
  border-color: rgba(155, 136, 255, 0.48);
}

.product-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  min-width: 0;
}

.product-meta > div {
  min-width: 0;
}

.product-title {
  min-height: 2.7em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  text-overflow: ellipsis;
  font-size: 14px;
  line-height: 1.35;
}

.product-platform {
  margin-top: 6px;
  color: #747b87;
  font-size: 11px;
}

.price {
  padding-top: 1px;
  font-size: 14px;
  font-weight: 800;
}

.add-button {
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  background: var(--purple);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
  transition: transform .18s ease, background .18s ease;
}

.add-button:hover:not(:disabled) {
  transform: scale(1.08);
  background: #927dff;
}

.platform-section {
  border-color: var(--line);
  background: #121419;
}

.platform-chip {
  padding: 11px 17px;
  border-color: var(--line);
  background: #1b1f25;
  font-weight: 650;
}

.search {
  border-color: var(--line);
  background: #171a1f;
}

.cart-drawer {
  border-color: var(--line);
  background: #121419;
  box-shadow: -30px 0 80px rgba(0,0,0,.5);
}

.cart-line {
  border-color: var(--line);
  background: #191c22;
}

.payment-marks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #6f7580;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.payment-marks img {
  width: auto;
  height: 18px;
  max-width: 52px;
  filter: grayscale(1) brightness(2);
  opacity: .58;
}

.payment-success-items {
  width: 100%;
  display: grid;
  gap: 8px;
  margin: 22px 0 14px;
}

.payment-success-items div {
  padding: 11px 13px;
  color: #dfe2e8;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #171a20;
}

.payment-success small {
  color: #747b87;
  overflow-wrap: anywhere;
}

footer {
  border-color: var(--line);
  background: #111318;
}

footer .brand img {
  width: 145px;
}

@media (max-width: 1180px) {
  .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .shell { width: min(100% - 30px, 1280px); }
  .nav { top: 8px; margin-top: 8px; }
  .brand img { width: 108px; }
  .hero { min-height: 570px; margin-top: 18px; }
  .hero-content { margin-bottom: 26px; }
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .country { max-width: 48px; overflow: hidden; }
  .country select { width: 0; }
  .icon-button { font-size: 0; }
  .icon-button .count { font-size: 11px; }
  .hero { min-height: 500px; }
  .hero-art { object-position: 57% center; }
  .hero-content { width: calc(100% - 22px); margin-bottom: 11px; padding: 24px 18px; border-radius: 15px; }
  .hero h1 { font-size: 39px; }
  .hero-content > p:not(.eyebrow) { font-size: 14px; }
  .hero-actions { flex-direction: column; }
  .hero-actions a { justify-content: center; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  .product-meta { grid-template-columns: 1fr; gap: 3px; }
  .product-title { font-size: 13px; }
  .price { grid-row: 2; }
  .trust-grid span { justify-content: flex-start; font-size: 11px; }
}
