:root {
  color-scheme: dark;
  --store-bg: #070910;
  --store-surface: #091625;
  --store-surface-2: #0d1c2d;
  --store-line: #153a53;
  --store-cyan: #00d9f3;
  --store-blue: #0787ff;
  --store-text: #edf7ff;
  --store-muted: #7f91a8;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--store-bg);
}

body {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 18%, rgba(24, 43, 76, .34), transparent 28%),
    radial-gradient(circle at 76% 12%, rgba(0, 102, 170, .12), transparent 24%),
    linear-gradient(112deg, #11111c 0%, #080a11 50%, #030406 100%) !important;
  color: var(--store-text) !important;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(19, 59, 85, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 59, 85, .025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

.masthead {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(40, 85, 112, .18);
  background:
    radial-gradient(circle at 86% 27%, rgba(0, 184, 239, .12), transparent 24%),
    radial-gradient(circle at 17% 65%, rgba(35, 49, 92, .22), transparent 32%),
    linear-gradient(112deg, rgba(17, 17, 28, .98), rgba(3, 5, 9, .99)) !important;
  color: var(--store-text);
}

.masthead::after {
  content: "";
  position: absolute;
  right: -8vw;
  bottom: 4%;
  width: 50vw;
  height: 180px;
  pointer-events: none;
  opacity: .32;
  background: repeating-linear-gradient(165deg, transparent 0 11px, rgba(17, 132, 193, .22) 12px, transparent 14px 25px);
  transform: skewY(-9deg);
  mask-image: linear-gradient(90deg, transparent, #000);
}

.shell {
  width: min(100%, 1220px);
  max-width: 1220px !important;
  padding-inline: 28px !important;
}

.top {
  position: relative;
  z-index: 5;
  min-height: 82px;
  height: 82px !important;
  border-bottom: 1px solid rgba(70, 113, 143, .12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f2f7ff !important;
  font-size: 15px !important;
  font-weight: 800;
  letter-spacing: .12em !important;
  text-transform: uppercase;
}

.brand::before {
  content: "MWE\A GAMES";
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 44px;
  white-space: pre;
  border: 1px solid rgba(50, 207, 255, .7);
  border-radius: 13px 6px 13px 6px;
  background: linear-gradient(145deg, #ff8035, #c72856 48%, #0797ff);
  color: white;
  font-size: 8px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .02em;
  text-align: center;
  text-shadow: 0 1px 2px #00152b;
  box-shadow: 0 0 18px rgba(0, 176, 255, .15), inset 0 0 0 2px rgba(6, 15, 30, .3);
  transform: skew(-5deg);
}

.nav {
  gap: 28px !important;
}

.nav a,
.language {
  position: relative;
  color: #7d90a7 !important;
  font-size: 12px !important;
  font-weight: 700;
}

.nav a:hover,
.language:hover {
  color: var(--store-cyan) !important;
}

.nav a:first-child {
  color: var(--store-cyan) !important;
}

.top-actions {
  gap: 9px !important;
}

.outline,
.admin {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #233c52 !important;
  border-radius: 999px !important;
  padding: 7px 14px !important;
  background: linear-gradient(180deg, rgba(28, 43, 61, .9), rgba(17, 28, 43, .9));
  color: #cbd8e7 !important;
  font-size: 11px !important;
  font-weight: 750;
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
}

.admin {
  border-color: rgba(0, 208, 244, .3) !important;
  background: linear-gradient(100deg, rgba(7, 126, 255, .18), rgba(0, 217, 243, .18));
  color: #48def5 !important;
}

.hero {
  position: relative;
  z-index: 2;
  min-height: 495px;
  padding: 70px 0 72px !important;
  grid-template-columns: minmax(0, .94fr) minmax(420px, 1.06fr) !important;
  gap: 78px !important;
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--store-cyan) !important;
  font-size: 11px !important;
  letter-spacing: .18em !important;
}

.eyebrow::before {
  content: "";
  width: 25px;
  height: 1px;
  background: var(--store-cyan);
  box-shadow: 0 0 10px var(--store-cyan);
}

.hero h1 {
  max-width: 560px !important;
  margin: 18px 0 19px !important;
  color: #f5f8ff;
  font-size: clamp(40px, 4.2vw, 62px) !important;
  line-height: 1.06 !important;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.hero p {
  max-width: 520px !important;
  margin: 0;
  color: #8596ac !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 38px !important;
  border: 1px solid rgba(68, 218, 255, .25) !important;
  border-radius: 9px !important;
  background: linear-gradient(100deg, var(--store-blue), var(--store-cyan)) !important;
  color: #001528 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  box-shadow: 0 0 20px rgba(0, 176, 255, .24), inset 0 1px rgba(255, 255, 255, .34);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.button:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(0, 190, 255, .34);
}

.button.secondary {
  border-color: #243a50 !important;
  background: linear-gradient(180deg, #1b2a3d, #142133) !important;
  color: #d4dfec !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .05) !important;
}

.featured {
  min-height: 335px !important;
  padding: 30px !important;
  border: 1px solid #1b5876 !important;
  border-radius: 20px !important;
  background-color: #0a1a2a !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .44), 0 0 34px rgba(0, 183, 244, .09) !important;
}

.featured::before {
  background: linear-gradient(0deg, rgba(4, 13, 24, .98) 0%, rgba(5, 16, 29, .7) 35%, transparent 72%) !important;
}

.featured::after {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(114, 225, 255, .1);
  border-radius: 14px;
  pointer-events: none;
}

.featured .meta {
  color: #5ce8f8 !important;
  font-size: 11px !important;
  font-weight: 800;
}

.featured h2 {
  color: white;
  font-size: 30px !important;
}

.featured p {
  max-width: 390px;
  color: #aab8c8 !important;
  line-height: 1.55;
}

.featured .button {
  align-self: flex-start;
  margin-top: 18px;
  min-width: 112px;
}

.platform-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(700px, calc(100% - 40px));
  margin: -26px auto 0;
  padding: 9px 16px;
  border: 1px solid #123e57;
  border-radius: 999px;
  background: rgba(7, 16, 27, .94);
  box-shadow: 0 0 30px rgba(0, 183, 244, .14), 0 14px 35px rgba(0, 0, 0, .35), inset 0 1px rgba(255, 255, 255, .035);
  backdrop-filter: blur(14px);
}

.platform-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border-right: 1px solid rgba(43, 82, 106, .3);
  color: #748aa0;
  font-size: 10px;
  font-weight: 700;
}

.platform-item:last-child {
  border-right: 0;
}

.platform-item::before {
  content: attr(data-icon);
  color: var(--store-cyan);
  font-size: 16px;
  text-shadow: 0 0 12px rgba(0, 220, 250, .5);
}

.main {
  min-height: 600px;
  padding: 76px 0 80px !important;
  background:
    radial-gradient(circle at 89% 17%, rgba(12, 74, 111, .1), transparent 22%),
    radial-gradient(circle at 7% 62%, rgba(33, 43, 85, .15), transparent 25%),
    linear-gradient(110deg, #0d0e17, #06080d 55%, #030405) !important;
}

.benefit-section {
  margin: 0 auto 78px;
  text-align: center;
}

.benefit-section > .section-head {
  justify-content: center;
  margin-bottom: 28px;
}

.benefit-section .section-head h2 {
  font-size: 25px !important;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.benefit-card {
  min-height: 155px;
  padding: 24px;
  border: 1px solid #15384f;
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 180, 239, .15), transparent 42%),
    linear-gradient(145deg, rgba(12, 27, 44, .95), rgba(7, 17, 29, .95));
  text-align: left;
  box-shadow: 0 15px 36px rgba(0, 0, 0, .22), 0 0 22px rgba(0, 161, 232, .045);
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 210, 245, .2);
  border-radius: 9px;
  background: rgba(0, 183, 235, .09);
  color: var(--store-cyan);
  font-size: 17px;
  box-shadow: 0 0 16px rgba(0, 211, 247, .08);
}

.benefit-card h3 {
  margin: 0 0 8px;
  color: #eaf4ff;
  font-size: 15px;
}

.benefit-card p {
  margin: 0;
  color: #71869d;
  font-size: 11px;
  line-height: 1.65;
}

.section {
  margin-bottom: 64px !important;
}

.section-head {
  margin-bottom: 22px !important;
}

.section-head h2 {
  position: relative;
  color: #edf7ff !important;
  font-size: 22px !important;
  letter-spacing: -.015em;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 38px;
  height: 2px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--store-cyan), var(--store-blue));
  box-shadow: 0 0 10px rgba(0, 217, 243, .45);
}

.section-head p {
  color: #63778e !important;
  font-size: 12px !important;
}

.category-list {
  gap: 8px !important;
  scrollbar-width: none;
}

.category-list::-webkit-scrollbar {
  display: none;
}

.category {
  border: 1px solid #203b51 !important;
  border-radius: 999px !important;
  padding: 7px 13px !important;
  background: rgba(12, 28, 45, .88) !important;
  color: #8093aa !important;
  font-size: 11px !important;
}

.category:first-child,
.category:hover {
  border-color: #0e789f !important;
  background: rgba(0, 175, 225, .13) !important;
  color: #32dff3 !important;
}

.grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px !important;
}

.card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #142f43 !important;
  border-radius: 13px !important;
  background: linear-gradient(145deg, #0b1928, #07111d) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .25), 0 0 22px rgba(0, 150, 230, .04) !important;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #1c5e7c !important;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .34), 0 0 30px rgba(0, 170, 239, .08) !important;
}

.cover {
  aspect-ratio: 1.18 !important;
  border-bottom: 1px solid #15364c;
  background: linear-gradient(135deg, #172c45, #07111e) !important;
  filter: saturate(.93) contrast(1.03);
}

.card-body {
  padding: 15px 16px 17px !important;
}

.badges {
  min-height: 19px !important;
  gap: 5px !important;
}

.badge {
  border: 1px solid rgba(0, 210, 241, .13);
  border-radius: 999px !important;
  padding: 3px 7px !important;
  background: rgba(0, 187, 227, .13) !important;
  color: #30daed !important;
  font-size: 9px !important;
}

.badge.paid {
  border-color: rgba(255, 191, 81, .16);
  background: rgba(255, 177, 61, .1) !important;
  color: #ffc36c !important;
}

.card h3 {
  margin: 10px 0 6px !important;
  color: #eef6ff !important;
  font-size: 15px !important;
}

.card p {
  color: #6f8298 !important;
  font-size: 11px !important;
}

.card-footer {
  border-top: 1px solid rgba(25, 53, 73, .55);
  margin-top: 14px !important;
  padding-top: 12px !important;
}

.price {
  color: #61758c !important;
  font-size: 10px !important;
}

.text-link {
  color: #26d8ec !important;
  font-size: 10px !important;
}

.empty,
.error {
  border-color: #1a4059 !important;
  background: rgba(9, 23, 38, .8) !important;
  color: #72869b !important;
}

.error {
  border-color: rgba(225, 65, 96, .3) !important;
  color: #ff7f99 !important;
}

.storefront-cta {
  position: relative;
  overflow: hidden;
  padding: 84px 28px 90px;
  border-top: 1px solid rgba(29, 70, 95, .22);
  background:
    radial-gradient(circle at 50% 120%, rgba(0, 162, 225, .16), transparent 34%),
    linear-gradient(180deg, #080b12, #040609);
  text-align: center;
}

.storefront-cta::before,
.storefront-cta::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 35%;
  height: 130px;
  opacity: .22;
  background: repeating-linear-gradient(165deg, transparent 0 10px, rgba(17, 132, 193, .25) 11px, transparent 13px 22px);
}

.storefront-cta::before { left: -5%; }
.storefront-cta::after { right: -5%; transform: scaleX(-1); }

.storefront-cta h2 {
  position: relative;
  margin: 0 auto 12px;
  color: #f3f8ff;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  white-space: pre-line;
}

.storefront-cta p {
  position: relative;
  margin: 0 auto 25px;
  color: #71849a;
  font-size: 13px;
}

.storefront-cta .button {
  position: relative;
  min-width: 126px;
}

.footer {
  padding: 20px 0 !important;
  border-top: 1px solid rgba(34, 70, 94, .22);
  background: #040609 !important;
  color: #4f6276 !important;
  font-size: 11px !important;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr) !important;
    gap: 36px !important;
  }

  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .shell {
    padding-inline: 16px !important;
  }

  .top {
    min-height: 70px;
    height: auto !important;
    padding-block: 12px !important;
  }

  .brand {
    font-size: 12px !important;
  }

  .brand::before {
    width: 40px;
    height: 36px;
    font-size: 7px;
  }

  .hero {
    padding: 48px 0 62px !important;
    grid-template-columns: 1fr !important;
    gap: 38px !important;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 52px) !important;
  }

  .featured {
    min-height: 290px !important;
  }

  .platform-strip {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 18px;
  }

  .platform-item:nth-child(2) {
    border-right: 0;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    min-height: 132px;
  }

  .main {
    padding-top: 62px !important;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .cover {
    aspect-ratio: 1.05 !important;
  }
}

@media (max-width: 440px) {
  .top-actions .outline {
    display: inline-flex;
  }

  .admin {
    display: none !important;
  }

  .hero h1 {
    font-size: 38px !important;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .grid {
    grid-template-columns: 1fr !important;
  }

  .cover {
    aspect-ratio: 1.35 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
