.sgs-game-store {
  --sgs-card-height: 360px;
  --sgs-gap: 14px;
  --sgs-cols-desktop: 7;
  --sgs-cols-tablet: 4;
  --sgs-cols-mobile: 2;
  --sgs-cols-current: var(--sgs-cols-desktop);
  --sgs-radius: 14px;
  --sgs-info-radius: max(0px, calc(var(--sgs-radius) - 1px));
  --sgs-bg-position: center center;
  --sgs-blur: 9px;
  --sgs-brightness: 75%;
  --sgs-contrast: 100%;
  --sgs-saturation: 100%;
  --sgs-hue: 0deg;
  --sgs-glass-color: rgba(15, 15, 15, 0.18);
  --sgs-bottom-overlay: rgba(0, 0, 0, 0.78);
  --sgs-blur-fade: 35%;
  --sgs-ms-blur: 14px;
  --sgs-ms-brightness: 80%;
  --sgs-ms-contrast: 106%;
  --sgs-ms-saturation: 118%;
  --sgs-ms-hue: 0deg;
  --sgs-ms-glass-mid: rgba(18, 18, 18, 0.16);
  --sgs-ms-glass-bottom: rgba(12, 12, 12, 0.30);
  --sgs-ms-bottom-overlay: rgba(0, 0, 0, 0.72);
  --sgs-ms-fade-start: 12%;
  --sgs-ms-blur-reach: 10px;
  --sgs-legacy-blur: 11px;
  --sgs-legacy-brightness: 76%;
  --sgs-legacy-contrast: 102%;
  --sgs-legacy-saturation: 108%;
  --sgs-legacy-hue: 0deg;
  --sgs-legacy-fade-start: 50%;
  --sgs-legacy-fade-mid: 68%;
  --sgs-legacy-fade-full: 82%;
  --sgs-legacy-overlay-reach: 88px;
  --sgs-legacy-bottom-overlay: rgba(0, 0, 0, 0.70);
  --sgs-legacy-scale: 1.045;
  --sgs-arrow-color: #151515;
  --sgs-arrow-bg: rgba(247, 247, 247, 0.96);
  --sgs-arrow-border: rgba(0, 0, 0, 0.06);
  --sgs-arrow-hover-color: #151515;
  --sgs-arrow-hover-bg: rgba(239, 239, 239, 0.98);
  --sgs-arrow-hover-border: rgba(0, 0, 0, 0.09);
  --sgs-arrow-active-color: #151515;
  --sgs-arrow-active-bg: rgba(224, 224, 224, 1);
  --sgs-arrow-active-border: rgba(0, 0, 0, 0.14);
  --sgs-arrow-disabled-color: #c8c8c8;
  --sgs-arrow-disabled-bg: rgba(247, 247, 247, 0.96);
  --sgs-arrow-disabled-border: rgba(0, 0, 0, 0.04);
  --sgs-arrow-opposite-color: #9a9a9a;
  --sgs-arrow-opposite-opacity: 38%;
  --sgs-trailer-bg: rgba(0, 0, 0, 0.92);
  --sgs-trailer-play-color: #ffffff;
  --sgs-trailer-play-hover-color: #ffffff;
  --sgs-trailer-play-size: 54px;
  --sgs-trailer-play-glyph-size: 34px;
  --sgs-trailer-play-top: 15px;
  --sgs-trailer-play-left: 15px;
  --sgs-trailer-play-icon-radius: 7px;
  --sgs-trailer-play-neon-thickness: 2px;
  --sgs-trailer-play-neon-radius: 999px;
  --sgs-trailer-play-neon-opacity: 0.92;
  --sgs-trailer-play-neon-hover-opacity: 1;
  --sgs-trailer-play-neon-glow: 10px;
  --sgs-trailer-play-neon-speed: 2.8s;
  --sgs-trailer-play-hover-scale: 1.08;
  --sgs-trailer-lightbox-width: 1080px;
  --sgs-view-all-icon-color: #ffffff;
  --sgs-view-all-icon-hover-color: #ffffff;
  --sgs-trailer-play-rgb-1: #ff1744;
  --sgs-trailer-play-rgb-2: #00e5ff;
  --sgs-trailer-play-rgb-3: #d500f9;
  --sgs-trailer-close-top: 6px;
  --sgs-trailer-close-right: 6px;
  --sgs-trailer-close-size: 40px;
  --sgs-trailer-close-icon-size: 20px;
  --sgs-trailer-close-color: #ffffff;
  --sgs-trailer-close-hover-color: #ffffff;
  --sgs-trailer-close-bg: rgba(0, 0, 0, 0);
  --sgs-trailer-close-hover-bg: rgba(0, 0, 0, 0.24);
  --sgs-trailer-close-radius: 999px;
  position: relative;
  width: 100%;
  min-width: 0;
  direction: inherit;
  overflow-anchor: none;
}

/* Sequential rows keep their measured space but do not paint until their turn.
   visibility is intentionally used as the old-Chromium-safe baseline. */
.sgs-game-store.sgs-defer-offscreen-paint.sgs-paint-suspended {
  visibility: hidden;
  pointer-events: none;
  contain: style paint;
}

.sgs-game-store.sgs-defer-offscreen-paint:not(.sgs-paint-suspended) {
  visibility: visible;
}

@media (max-width: 1024px) {
  .sgs-game-store {
    --sgs-cols-current: var(--sgs-cols-tablet);
  }
}

@media (max-width: 767px) {
  .sgs-game-store {
    --sgs-cols-current: var(--sgs-cols-mobile);
  }
}

.sgs-header {
  display: grid;
  align-items: center;
  gap: 18px;
  width: 100%;
  margin-bottom: 14px;
  direction: ltr;
}

.sgs-header-main {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.sgs-header-arrows {
  position: relative;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  direction: ltr;
  pointer-events: auto;
  isolation: isolate;
}

/* RTL: arrows are fixed at the far left; title/view-all are fixed at the far right. */
.sgs-header-layout-rtl .sgs-header {
  grid-template-columns: auto minmax(0, 1fr);
}

.sgs-header-layout-rtl .sgs-header-arrows {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.sgs-header-layout-rtl .sgs-header-main {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  justify-content: flex-end;
  text-align: right;
  direction: rtl;
}

/* LTR: title/view-all are fixed at the far left; arrows are fixed at the far right. */
.sgs-header-layout-ltr .sgs-header {
  grid-template-columns: minmax(0, 1fr) auto;
}

.sgs-header-layout-ltr .sgs-header-main {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  justify-content: flex-start;
  text-align: left;
  direction: ltr;
}

.sgs-header-layout-ltr .sgs-header-arrows {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

/* Automatic layout follows the document direction without relying on flex order. */
[dir="rtl"] .sgs-header-layout-auto .sgs-header,
.rtl .sgs-header-layout-auto .sgs-header,
.sgs-header-layout-auto[dir="rtl"] .sgs-header {
  grid-template-columns: auto minmax(0, 1fr);
}

[dir="rtl"] .sgs-header-layout-auto .sgs-header-arrows,
.rtl .sgs-header-layout-auto .sgs-header-arrows,
.sgs-header-layout-auto[dir="rtl"] .sgs-header-arrows {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

[dir="rtl"] .sgs-header-layout-auto .sgs-header-main,
.rtl .sgs-header-layout-auto .sgs-header-main,
.sgs-header-layout-auto[dir="rtl"] .sgs-header-main {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  justify-content: flex-end;
  text-align: right;
  direction: rtl;
}

[dir="ltr"] .sgs-header-layout-auto .sgs-header,
.sgs-header-layout-auto[dir="ltr"] .sgs-header {
  grid-template-columns: minmax(0, 1fr) auto;
}

[dir="ltr"] .sgs-header-layout-auto .sgs-header-main,
.sgs-header-layout-auto[dir="ltr"] .sgs-header-main {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  justify-content: flex-start;
  text-align: left;
  direction: ltr;
}

[dir="ltr"] .sgs-header-layout-auto .sgs-header-arrows,
.sgs-header-layout-auto[dir="ltr"] .sgs-header-arrows {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.sgs-section-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
}

.sgs-view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.sgs-view-all {
  direction: rtl;
}

.sgs-view-all-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  order: 2;
  line-height: 1;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: var(--sgs-view-all-icon-color, #fff) !important;
  transition: color 160ms ease, transform 160ms ease;
}

.sgs-view-all > span:not(.sgs-view-all-icon) {
  order: 1;
}

.sgs-view-all:hover .sgs-view-all-icon,
.sgs-view-all:focus-visible .sgs-view-all-icon {
  color: var(--sgs-view-all-icon-hover-color, #fff) !important;
  transform: translateX(-1px);
}

.sgs-view-all-icon svg,
.sgs-view-all-icon img {
  display: block;
  width: 17px;
  height: 17px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  fill: currentColor !important;
}

.sgs-view-all-icon svg path {
  fill: currentColor !important;
  stroke: currentColor;
}

.sgs-view-all-icon i {
  color: inherit !important;
  font-size: 17px;
}

.sgs-stage {
  position: relative;
  min-width: 0;
}

.sgs-track {
  display: flex;
  align-items: stretch;
  gap: var(--sgs-gap);
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0 8px;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  overflow-anchor: none;
}

.sgs-track::-webkit-scrollbar {
  display: none;
}

.sgs-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}

.sgs-no-drag .sgs-track {
  cursor: default;
}

.sgs-card-item {
  position: relative;
  flex: 0 0 calc((100% - (var(--sgs-gap) * (var(--sgs-cols-current) - 1))) / var(--sgs-cols-current));
  max-width: calc((100% - (var(--sgs-gap) * (var(--sgs-cols-current) - 1))) / var(--sgs-cols-current));
  min-width: 0;
  height: var(--sgs-card-height);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  content-visibility: auto;
  contain: layout style;
  contain-intrinsic-size: 220px var(--sgs-card-height);
}

.sgs-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--sgs-radius);
  background-clip: padding-box;
  background-color: #11161d;
  background-image: var(--sgs-bg, linear-gradient(145deg, rgba(28, 32, 40, 0.96), rgba(10, 14, 18, 0.96)));
  background-repeat: no-repeat;
  background-size: cover;
  background-position: var(--sgs-bg-position);
  color: #fff;
  text-decoration: none !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}

.sgs-card-image {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: inherit;
  object-fit: cover;
  object-position: var(--sgs-bg-position);
  opacity: 1;
  pointer-events: none;
  user-select: none;
  transition: opacity 180ms ease, transform 320ms ease;
}

.sgs-card-image[data-sgs-loaded="0"] {
  opacity: 0;
}

.sgs-card-image.is-loaded,
.sgs-card-image[data-sgs-loaded="1"],
.sgs-card-image[data-sgs-image-ready="1"],
.sgs-card-image-noscript {
  opacity: 1;
}

/* Keep the real HTML image for SEO, responsive sources and no-JS;
   switch the visual layer to the old card background only after it is ready. */
.sgs-card[data-sgs-bg-ready="1"] .sgs-card-image {
  opacity: 0;
}

a.sgs-card {
  cursor: pointer;
}

@supports (overflow: clip) {
  .sgs-card {
    overflow: clip;
  }
}

.sgs-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 42%,
    rgba(0, 0, 0, 0.24) 69%,
    var(--sgs-bottom-overlay) 100%
  );
}

.sgs-badges {
  --sgs-badge-inset: 10px;
  position: absolute;
  top: var(--sgs-badge-inset);
  z-index: 3;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  max-width: calc(100% - (var(--sgs-badge-inset) * 2));
  pointer-events: none;
}

.sgs-badges-start .sgs-badges {
  inset-inline-start: var(--sgs-badge-inset);
  justify-content: flex-start;
}

.sgs-badges-end .sgs-badges {
  inset-inline-end: var(--sgs-badge-inset);
  justify-content: flex-end;
}

.sgs-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}

.sgs-badge-new {
  background-color: #107c10;
}

.sgs-badge-update {
  background-color: #0067b8;
}

.sgs-info {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  min-height: 35%;
  overflow: visible;
  padding: 50px 14px 14px;
  color: #fff;
}

/*
 * Exact matte recipe from the original stable version.
 * The layer extends only 1px on the sides and bottom, then the card clips it.
 * Its bottom radius is 1px smaller than the card so no dark seam remains.
 */
.sgs-info::before {
  content: "";
  position: absolute;
  inset: 0 -1px -1px;
  z-index: -2;
  pointer-events: none;
  background: var(--sgs-glass-color);
  border-radius: 0 0 var(--sgs-info-radius) var(--sgs-info-radius);
  -webkit-backdrop-filter: blur(var(--sgs-blur)) brightness(var(--sgs-brightness)) contrast(var(--sgs-contrast)) saturate(var(--sgs-saturation)) hue-rotate(var(--sgs-hue));
  backdrop-filter: blur(var(--sgs-blur)) brightness(var(--sgs-brightness)) contrast(var(--sgs-contrast)) saturate(var(--sgs-saturation)) hue-rotate(var(--sgs-hue));
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 var(--sgs-blur-fade), #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 var(--sgs-blur-fade), #000 100%);
}

.sgs-info::after {
  content: "";
  position: absolute;
  inset: 0 -1px -1px;
  z-index: -1;
  pointer-events: none;
  border-radius: 0 0 var(--sgs-info-radius) var(--sgs-info-radius);
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.15) 44%, rgba(0, 0, 0, 0.34) 100%);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .sgs-info::before {
    background-image: var(--sgs-bg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom;
    filter: blur(var(--sgs-blur)) brightness(var(--sgs-brightness)) contrast(var(--sgs-contrast)) saturate(var(--sgs-saturation)) hue-rotate(var(--sgs-hue));
    transform: scale(1.08);
  }
}

/* ===============================
   Matte theme: Microsoft Store
   Independent from the current theme and fully controlled by its own
   Elementor Style section. The card remains the clipping boundary.
================================ */
.sgs-matte-microsoft .sgs-card::before {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 42%,
    rgba(0, 0, 0, 0.035) 54%,
    rgba(0, 0, 0, 0.14) 68%,
    rgba(0, 0, 0, 0.38) 83%,
    var(--sgs-ms-bottom-overlay) 100%
  );
}

.sgs-matte-microsoft .sgs-info::before {
  inset: calc(-1 * var(--sgs-ms-blur-reach)) -1px -1px;
  background: linear-gradient(
    to bottom,
    rgba(18, 18, 18, 0) 0%,
    rgba(18, 18, 18, 0.055) 22%,
    var(--sgs-ms-glass-mid) 54%,
    var(--sgs-ms-glass-bottom) 100%
  );
  border-radius: 0 0 var(--sgs-info-radius) var(--sgs-info-radius);
  -webkit-backdrop-filter:
    blur(var(--sgs-ms-blur))
    brightness(var(--sgs-ms-brightness))
    contrast(var(--sgs-ms-contrast))
    saturate(var(--sgs-ms-saturation))
    hue-rotate(var(--sgs-ms-hue));
  backdrop-filter:
    blur(var(--sgs-ms-blur))
    brightness(var(--sgs-ms-brightness))
    contrast(var(--sgs-ms-contrast))
    saturate(var(--sgs-ms-saturation))
    hue-rotate(var(--sgs-ms-hue));
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.08) var(--sgs-ms-fade-start),
    rgba(0, 0, 0, 0.48) 40%,
    rgba(0, 0, 0, 0.86) 60%,
    #000 74%,
    #000 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.08) var(--sgs-ms-fade-start),
    rgba(0, 0, 0, 0.48) 40%,
    rgba(0, 0, 0, 0.86) 60%,
    #000 74%,
    #000 100%
  );
}

.sgs-matte-microsoft .sgs-info::after {
  inset: calc(-1 * var(--sgs-ms-blur-reach)) -1px -1px;
  border-radius: 0 0 var(--sgs-info-radius) var(--sgs-info-radius);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.025) 24%,
    rgba(0, 0, 0, 0.13) 50%,
    rgba(0, 0, 0, 0.30) 74%,
    rgba(0, 0, 0, 0.52) 100%
  );
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .sgs-matte-microsoft .sgs-info::before {
    background-image: var(--sgs-bg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom;
    filter:
      blur(var(--sgs-ms-blur))
      brightness(var(--sgs-ms-brightness))
      contrast(var(--sgs-ms-contrast))
      saturate(var(--sgs-ms-saturation))
      hue-rotate(var(--sgs-ms-hue));
    transform: scale(1.12);
  }
}

/* ===============================
   Legacy Chromium matte engine
   Uses a second copy of the full card image, aligned to the card bottom and
   blurred with CSS filter. A prefixed WebKit mask creates the soft vertical
   fade without relying on backdrop-filter. This is intended for old CEF /
   Chromium runtimes used by desktop applications.
================================ */
.sgs-matte-classic.sgs-legacy-use-theme-filters {
  --sgs-legacy-blur: var(--sgs-blur);
  --sgs-legacy-brightness: var(--sgs-brightness);
  --sgs-legacy-contrast: var(--sgs-contrast);
  --sgs-legacy-saturation: var(--sgs-saturation);
  --sgs-legacy-hue: var(--sgs-hue);
  --sgs-legacy-bottom-overlay: var(--sgs-bottom-overlay);
}

.sgs-matte-microsoft.sgs-legacy-use-theme-filters {
  --sgs-legacy-blur: var(--sgs-ms-blur);
  --sgs-legacy-brightness: var(--sgs-ms-brightness);
  --sgs-legacy-contrast: var(--sgs-ms-contrast);
  --sgs-legacy-saturation: var(--sgs-ms-saturation);
  --sgs-legacy-hue: var(--sgs-ms-hue);
  --sgs-legacy-bottom-overlay: var(--sgs-ms-bottom-overlay);
}

.sgs-use-legacy-matte .sgs-info::before {
  top: auto;
  right: -1px;
  bottom: -1px;
  left: -1px;
  width: auto;
  height: calc(var(--sgs-card-height) + 2px);
  background-color: transparent;
  background-image: var(--sgs-bg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: var(--sgs-bg-position);
  border-radius: var(--sgs-radius);
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  -webkit-filter: blur(11px) brightness(76%) contrast(102%) saturate(108%);
  filter: blur(11px) brightness(76%) contrast(102%) saturate(108%);
  -webkit-filter:
    blur(var(--sgs-legacy-blur))
    brightness(var(--sgs-legacy-brightness))
    contrast(var(--sgs-legacy-contrast))
    saturate(var(--sgs-legacy-saturation))
    hue-rotate(var(--sgs-legacy-hue));
  filter:
    blur(var(--sgs-legacy-blur))
    brightness(var(--sgs-legacy-brightness))
    contrast(var(--sgs-legacy-contrast))
    saturate(var(--sgs-legacy-saturation))
    hue-rotate(var(--sgs-legacy-hue));
  -webkit-transform: scale(1.045);
  transform: scale(1.045);
  -webkit-transform: scale(var(--sgs-legacy-scale));
  transform: scale(var(--sgs-legacy-scale));
  -webkit-transform-origin: center bottom;
  transform-origin: center bottom;
  opacity: 1;

  /* Very old Chromium understands -webkit-gradient even when CSS Masks are
     only partially implemented. The second declaration adds Elementor stops. */
  -webkit-mask-image: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(rgba(0, 0, 0, 0)),
    color-stop(0.50, rgba(0, 0, 0, 0)),
    color-stop(0.68, rgba(0, 0, 0, 0.42)),
    color-stop(0.82, rgba(0, 0, 0, 0.96)),
    to(#000)
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent var(--sgs-legacy-fade-start),
    rgba(0, 0, 0, 0.42) var(--sgs-legacy-fade-mid),
    rgba(0, 0, 0, 0.96) var(--sgs-legacy-fade-full),
    #000 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent var(--sgs-legacy-fade-start),
    rgba(0, 0, 0, 0.42) var(--sgs-legacy-fade-mid),
    rgba(0, 0, 0, 0.96) var(--sgs-legacy-fade-full),
    #000 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.sgs-use-legacy-matte .sgs-info::after {
  top: -88px;
  right: -1px;
  bottom: -1px;
  left: -1px;
  top: calc(0px - var(--sgs-legacy-overlay-reach));
  border-radius: 0 0 var(--sgs-info-radius) var(--sgs-info-radius);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.025) 26%,
    rgba(0, 0, 0, 0.12) 52%,
    rgba(0, 0, 0, 0.34) 76%,
    var(--sgs-legacy-bottom-overlay) 100%
  );
}

/* A force-selected legacy mode must never be overridden by the feature-query
   fallbacks above, including the Microsoft theme's more specific selectors. */
.sgs-use-legacy-matte.sgs-matte-microsoft .sgs-info::before {
  background-image: var(--sgs-bg);
  background-size: cover;
  background-position: var(--sgs-bg-position);
}

.sgs-game-title {
  display: -webkit-box;
  margin: 0 0 7px;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
  text-wrap: balance;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sgs-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
  direction: rtl;
}

.sgs-year {
  text-align: right;
  white-space: nowrap;
}

.sgs-rating {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  white-space: nowrap;
  direction: ltr;
  text-align: left;
}

.sgs-rating-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.sgs-rating-icon i {
  font-size: 0.82em;
}

.sgs-rating-icon svg {
  width: 0.82em;
  height: 0.82em;
}

.sgs-arrow,
.sgs-arrow:focus,
.sgs-arrow:focus:not(:focus-visible) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--sgs-arrow-border) !important;
  border-radius: 999px;
  background: var(--sgs-arrow-bg) !important;
  color: var(--sgs-arrow-color) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -ms-touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  transition: opacity 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 120ms ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.sgs-arrow:hover,
.sgs-arrow:focus-visible {
  background: var(--sgs-arrow-hover-bg) !important;
  border-color: var(--sgs-arrow-hover-border) !important;
  color: var(--sgs-arrow-hover-color) !important;
  opacity: 1;
}

.sgs-arrow:active,
.sgs-arrow.is-active {
  background: var(--sgs-arrow-active-bg) !important;
  border-color: var(--sgs-arrow-active-border) !important;
  color: var(--sgs-arrow-active-color) !important;
  transform: scale(0.96);
}

.sgs-arrow:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.sgs-arrow:disabled,
.sgs-arrow[aria-disabled="true"] {
  opacity: 0.52;
  color: var(--sgs-arrow-disabled-color) !important;
  background: var(--sgs-arrow-disabled-bg) !important;
  border-color: var(--sgs-arrow-disabled-border) !important;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

/* After one direction is clicked, only the opposite glyph becomes visually quieter. */
.sgs-arrow.is-opposite-dim:not(:disabled):not([aria-disabled="true"]),
.sgs-arrow.is-opposite-dim:not(:disabled):not([aria-disabled="true"]):hover,
.sgs-arrow.is-opposite-dim:not(:disabled):not([aria-disabled="true"]):focus {
  color: var(--sgs-arrow-opposite-color) !important;
}

.sgs-arrow.is-opposite-dim:not(:disabled):not([aria-disabled="true"]) .sgs-arrow-icon {
  opacity: var(--sgs-arrow-opposite-opacity);
}


/* At the beginning or end, highlight the only usable direction back into the list. */
.sgs-arrow.is-return-active:not(:disabled):not([aria-disabled="true"]),
.sgs-arrow.is-return-active:not(:disabled):not([aria-disabled="true"]):hover,
.sgs-arrow.is-return-active:not(:disabled):not([aria-disabled="true"]):focus {
  color: var(--sgs-arrow-active-color) !important;
  background: var(--sgs-arrow-active-bg) !important;
  border-color: var(--sgs-arrow-active-border) !important;
  opacity: 1 !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sgs-arrow-active-color) 16%, transparent), 0 7px 20px rgba(0, 0, 0, 0.14);
}

.sgs-arrow.is-return-active:not(:disabled):not([aria-disabled="true"]) .sgs-arrow-icon {
  opacity: 1 !important;
}

@supports not (color: color-mix(in srgb, white 50%, black)) {
  .sgs-arrow.is-return-active:not(:disabled):not([aria-disabled="true"]) {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08), 0 7px 20px rgba(0, 0, 0, 0.14);
  }
}

.sgs-arrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: inherit !important;
  line-height: 1;
  pointer-events: none;
}

.sgs-arrow .sgs-arrow-icon i {
  color: inherit !important;
  font-size: 18px;
  line-height: 1;
}

.sgs-arrow .sgs-arrow-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  color: inherit !important;
  fill: currentColor !important;
}

.sgs-arrow .sgs-arrow-icon svg path,
.sgs-arrow .sgs-arrow-icon svg polygon,
.sgs-arrow .sgs-arrow-icon svg circle,
.sgs-arrow .sgs-arrow-icon svg rect {
  fill: currentColor !important;
}

.sgs-arrow .sgs-arrow-icon svg [stroke] {
  stroke: currentColor !important;
}

.sgs-arrow-svg-mask {
  display: block;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask-image: var(--sgs-arrow-svg);
  mask-image: var(--sgs-arrow-svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.sgs-arrows-side .sgs-stage > .sgs-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
}

.sgs-arrows-side .sgs-stage > .sgs-prev {
  inset-inline-start: 8px;
}

.sgs-arrows-side .sgs-stage > .sgs-next {
  inset-inline-end: 8px;
}


.sgs-hover-none .sgs-card,
.sgs-hover-none .sgs-card:hover,
.sgs-hover-none .sgs-card:focus,
.sgs-hover-none .sgs-card:active,
.sgs-hover-none .sgs-card * {
  transform: none;
  transition: none;
  animation: none;
}

.sgs-hover-lift .sgs-card {
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.sgs-hover-lift .sgs-card:hover,
.sgs-hover-lift .sgs-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
}

.sgs-hover-zoom .sgs-card {
  transition: background-size 320ms ease;
}

.sgs-hover-zoom .sgs-card:hover,
.sgs-hover-zoom .sgs-card:focus-visible {
  background-size: 106%;
}


/* ===============================
   Lazy trailer preview + lightbox
================================ */
.sgs-trailer-preview {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: inherit;
  background: var(--sgs-trailer-bg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.sgs-trailer-preview.is-mounted {
  visibility: visible;
}

.sgs-trailer-preview.is-ready {
  opacity: 1;
}

.sgs-trailer-preview video,
.sgs-trailer-preview iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  object-fit: cover;
  pointer-events: none;
}

/* The browser/provider owns the only loading indicator. */
.sgs-trailer-loader {
  display: none !important;
}


/* Keep the trailer animation active even when the card hover effect is set to “none”. */
.sgs-hover-none .sgs-card .sgs-trailer-preview {
  transition: opacity 180ms ease, visibility 180ms ease !important;
}


.sgs-trailer-trigger {
  position: absolute;
  top: var(--sgs-trailer-play-top);
  left: var(--sgs-trailer-play-left);
  z-index: 9;
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--sgs-trailer-play-size);
  height: var(--sgs-trailer-play-size);
  box-sizing: border-box;
  padding: 0;
  overflow: visible;
  border: 0 !important;
  outline: 0;
  border-radius: 0;
  background: transparent !important;
  color: inherit;
  box-shadow: none !important;
  cursor: default;
  pointer-events: auto;
  isolation: isolate;
  transform: translateZ(0);
  transition: transform 160ms ease;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.sgs-trailer-runtime-disabled .sgs-trailer-trigger {
  display: none !important;
}

/* No circle/ring/background: the RGB animation belongs to the play glyph itself. */
.sgs-trailer-trigger::before,
.sgs-trailer-trigger::after {
  content: none !important;
  display: none !important;
}

.sgs-trailer-trigger:hover,
.sgs-trailer-trigger.is-hovered {
  transform: scale(var(--sgs-trailer-play-hover-scale));
}

.sgs-trailer-trigger svg {
  position: relative;
  z-index: 1;
  display: block;
  width: var(--sgs-trailer-play-glyph-size);
  height: var(--sgs-trailer-play-glyph-size);
  overflow: visible;
  opacity: var(--sgs-trailer-play-neon-opacity);
  pointer-events: none;
  transform: translateZ(0);
  transform-origin: center;
  filter: hue-rotate(0deg)
    drop-shadow(0 0 var(--sgs-trailer-play-neon-glow) rgba(0, 229, 255, 0.65))
    drop-shadow(0 0 4px rgba(213, 0, 249, 0.62));
  animation: sgs-trailer-icon-rgb var(--sgs-trailer-play-neon-speed) linear infinite;
  animation-play-state: paused;
  transition: opacity 160ms ease, filter 160ms ease;
}

.sgs-card-item.is-sgs-visible > .sgs-trailer-trigger svg,
.sgs-trailer-trigger:hover svg,
.sgs-trailer-trigger.is-hovered svg {
  animation-play-state: running;
}

.sgs-trailer-trigger:hover svg,
.sgs-trailer-trigger.is-hovered svg {
  opacity: var(--sgs-trailer-play-neon-hover-opacity);
  filter: hue-rotate(0deg)
    drop-shadow(0 0 var(--sgs-trailer-play-neon-glow) rgba(0, 229, 255, 0.88))
    drop-shadow(0 0 6px rgba(213, 0, 249, 0.82));
}

/* Two separate paths keep the white center above the RGB outline. */
.sgs-trailer-trigger svg .sgs-play-outline {
  fill: none !important;
  stroke-width: var(--sgs-trailer-play-neon-thickness, 2px);
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.sgs-trailer-trigger svg .sgs-play-fill {
  position: relative;
  z-index: 2;
  fill: var(--sgs-trailer-play-color, #fff) !important;
  stroke: none !important;
  pointer-events: none;
  transition: fill 160ms ease;
}

.sgs-trailer-trigger:hover svg .sgs-play-fill,
.sgs-trailer-trigger.is-hovered svg .sgs-play-fill {
  fill: var(--sgs-trailer-play-hover-color, #fff) !important;
}

@keyframes sgs-trailer-icon-rgb {
  0% {
    filter: hue-rotate(0deg)
      drop-shadow(0 0 var(--sgs-trailer-play-neon-glow) rgba(0, 229, 255, 0.65))
      drop-shadow(0 0 4px rgba(213, 0, 249, 0.62));
  }
  100% {
    filter: hue-rotate(360deg)
      drop-shadow(0 0 var(--sgs-trailer-play-neon-glow) rgba(0, 229, 255, 0.65))
      drop-shadow(0 0 4px rgba(213, 0, 249, 0.62));
  }
}

@media (hover: hover), (any-hover: hover) {
  .has-sgs-trailer > .sgs-trailer-trigger {
    display: inline-flex;
  }
}

.sgs-trailer-lightbox {
  --sgs-trailer-bg: rgba(0, 0, 0, 0.92);
  --sgs-trailer-lightbox-width: 1080px;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  background: rgba(0, 0, 0, 0.86);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.sgs-trailer-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sgs-trailer-lightbox-dialog {
  position: relative;
  width: min(var(--sgs-trailer-lightbox-width), calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: #000;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
  aspect-ratio: 16 / 9;
  transform: scale(0.98);
  transition: transform 180ms ease;
}

.sgs-trailer-lightbox.is-open .sgs-trailer-lightbox-dialog {
  transform: scale(1);
}

.sgs-trailer-lightbox-player {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--sgs-trailer-bg);
}

.sgs-trailer-lightbox-player video,
.sgs-trailer-lightbox-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  object-fit: contain;
}

.sgs-trailer-lightbox-close {
  position: absolute;
  top: var(--sgs-trailer-close-top, 6px);
  right: var(--sgs-trailer-close-right, 6px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--sgs-trailer-close-size, 40px);
  height: var(--sgs-trailer-close-size, 40px);
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0;
  border-radius: var(--sgs-trailer-close-radius, 999px) !important;
  background: var(--sgs-trailer-close-bg, transparent) !important;
  color: var(--sgs-trailer-close-color, #fff) !important;
  box-shadow: none !important;
  cursor: pointer;
  -webkit-appearance: none !important;
  appearance: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.sgs-trailer-lightbox-close:hover {
  border: 0 !important;
  background: var(--sgs-trailer-close-hover-bg, rgba(0, 0, 0, 0.24)) !important;
  color: var(--sgs-trailer-close-hover-color, #fff) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.sgs-trailer-lightbox-close:focus-visible {
  background: var(--sgs-trailer-close-bg, transparent) !important;
  color: var(--sgs-trailer-close-color, #fff) !important;
}

.sgs-trailer-lightbox-close:active {
  border: 0 !important;
  background: var(--sgs-trailer-close-hover-bg, rgba(0, 0, 0, 0.24)) !important;
  color: var(--sgs-trailer-close-hover-color, #fff) !important;
  transform: scale(0.94);
}

.sgs-trailer-lightbox-close svg {
  display: block;
  width: var(--sgs-trailer-close-icon-size, 20px);
  height: var(--sgs-trailer-close-icon-size, 20px);
  color: inherit !important;
  fill: currentColor !important;
  pointer-events: none;
}

.sgs-trailer-lightbox-close svg path {
  fill: currentColor !important;
}

.sgs-trailer-lightbox-close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

body.sgs-trailer-lightbox-open {
  overflow: hidden;
}

@media (hover: none), (pointer: coarse) {
  .sgs-trailer-mobile-enabled .has-sgs-trailer > .sgs-trailer-trigger {
    display: inline-flex;
    cursor: pointer;
  }
}

@media (max-width: 767px) {
  .has-sgs-trailer > .sgs-trailer-trigger {
    display: none;
  }

  .sgs-trailer-mobile-enabled .has-sgs-trailer > .sgs-trailer-trigger {
    display: inline-flex;
  }
}

.sgs-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.sgs-track:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: max(4px, var(--sgs-radius));
}

.sgs-card:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -3px;
}

.sgs-empty {
  padding: 18px;
  border: 1px dashed #c7c7c7;
  border-radius: 10px;
  text-align: center;
}

@media (max-width: 767px) {
  .sgs-game-store {
    --sgs-card-height: 280px;
    --sgs-radius: 14px;
  }

  .sgs-card-item {
    height: var(--sgs-mobile-card-height, var(--sgs-card-height));
  }

  .sgs-header {
    margin-bottom: 10px;
    gap: 12px;
  }

  .sgs-section-title {
    font-size: 18px;
  }

  .sgs-header-main {
    gap: 8px;
  }

  .sgs-info {
    padding: 42px 11px 11px;
  }

  .sgs-arrows-side .sgs-stage > .sgs-arrow {
    width: 32px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sgs-track,
  .sgs-card,
  .sgs-card-image,
  .sgs-arrow,
  .sgs-trailer-preview,
  .sgs-trailer-lightbox,
  .sgs-trailer-lightbox-dialog {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.sgs-no-drag .sgs-track {
  touch-action: auto;
}

.sgs-trailer-error {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 30px);
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .sgs-trailer-trigger svg {
    animation: none !important;
  }
}

@media (prefers-reduced-data: reduce) {
  .sgs-trailer-trigger svg {
    animation-play-state: paused !important;
  }
}

/* ================================================================
   Mobile / touch reliability engine (v1.6.10)
   Native overflow scrolling is deliberately preferred on touch devices. It
   remains functional even when a WebView suppresses Pointer Events or an
   optimizer delays the full runtime.
================================================================ */
.sgs-game-store.sgs-native-touch-engine .sgs-track {
  -webkit-overflow-scrolling: touch;
  touch-action: auto;
  -ms-touch-action: auto;
  scroll-behavior: auto;
  overscroll-behavior-x: contain;
}

@media (max-width: 767px) {
  .sgs-game-store .sgs-track {
    -webkit-overflow-scrolling: touch;
    touch-action: auto;
    -ms-touch-action: auto;
    scroll-behavior: auto;
  }

  .sgs-game-store .sgs-header,
  .sgs-game-store .sgs-header-arrows,
  .sgs-game-store .sgs-arrow {
    overflow: visible;
    pointer-events: auto;
  }

  .sgs-game-store .sgs-header-arrows {
    z-index: 40;
  }

  .sgs-game-store .sgs-arrow {
    z-index: 41;
  }
}
