/*
 * Unified My2Game product-list grid.
 * Loaded after the home/shell layers; scoped control and game-detail CSS
 * follow it. Grid geometry stays owned here, not by those later layers.
 * All home/game catalog/collection/genre grids share columns, gaps,
 * image ratios and card typography without duplicating items.
 */

/* Container queries adapt to the *actual listing width* (catalog sidebar
   reduces available width without making all other listings three columns). */
body .storefront-grid-frame {
  min-width: 0;
  container-type: inline-size;
  container-name: game-list;
}

body .storefront-grid-frame > .storefront-game-grid,
body.premium-home :is(#popular-new, #preorders, #top-sellers) .storefront-grid-frame > .storefront-game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 18px;
  width: 100%;
  min-width: 0;
  margin: 0;
}

/* Equal-width cards; incomplete last rows stay left-aligned at the same
   card width rather than stretching to fill space or creating fake items. */
body .storefront-game-grid > :is(.game-card, .premium-collection-card) {
  width: 100%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(137, 177, 225, .23);
  background: #111a27;
  box-shadow: none;
}
body .storefront-game-grid > :is(.game-card, .premium-collection-card):is(:hover, :focus-visible, :has(:focus-visible)) {
  border-color: var(--m2-card-hover-border);
}

/* Full Steam 460:215 header covers across homepage, catalog and collections. */
body .storefront-game-grid .game-card-media,
body .storefront-game-grid .premium-collection-card-image,
body.premium-home :is(#recent-releases, #popular-new, #preorders, #top-sellers) .storefront-game-grid .home-game-card .game-card-media {
  display: block;
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: 460 / 215;
  overflow: hidden;
  background: #091a2b;
  background-image: linear-gradient(rgba(9, 26, 43, .14), rgba(9, 26, 43, .14)), url("../img/default-game.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
body .storefront-game-grid .game-card-media > a,
body .storefront-game-grid .premium-collection-card-image {
  height: 100%;
}
body .storefront-game-grid .game-card-media img,
body .storefront-game-grid .premium-collection-card-image img,
body.premium-home :is(#popular-new, #preorders, #top-sellers) .storefront-game-grid .home-game-card .game-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}

/* Consistent compact body: title and isolated purchase panel.
   Release date and other details stay on product pages, not on cards. */
body .storefront-game-grid .game-card-body,
body .storefront-game-grid .premium-collection-card-body,
body.premium-home :is(#popular-new, #preorders, #top-sellers) .storefront-game-grid .home-game-card .game-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 152px;
  gap: 9px;
  padding: 14px;
}

body .storefront-game-grid :is(.game-card-body > h3, .premium-collection-card-body > h2),
body.premium-home :is(#popular-new, #preorders, #top-sellers) .storefront-game-grid .home-game-card h3 {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  min-height: 2.35em;
  max-height: 2.35em;
  margin: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body .storefront-game-grid .home-game-meta {
  margin: 0;
  min-height: 18px;
  font-size: 12px;
  line-height: 1.3;
}

body .storefront-game-grid .game-card-body > p {
  font-size: 12px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
}

body .storefront-game-grid :is(.game-card-footer, .home-card-actions, .premium-collection-card-bottom) {
  margin-top: auto;
  min-width: 0;
}
body .storefront-game-grid .premium-collection-card-meta,
body .storefront-game-grid .game-card-meta {
  min-height: 23px;
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}
body .storefront-game-grid .premium-collection-card-price strong,
body .storefront-game-grid .premium-catalog-card-price strong {
  font-size: 15px;
}
body .storefront-game-grid .game-buy-button,
body.premium-home :is(#popular-new, #preorders, #top-sellers) .storefront-game-grid .home-card-actions .game-buy-button {
  min-height: 40px;
  font-size: 14px;
}

@container game-list (max-width: 1059px) {
  body .storefront-grid-frame > .storefront-game-grid,
  body.premium-home :is(#popular-new, #preorders, #top-sellers) .storefront-grid-frame > .storefront-game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@container game-list (max-width: 779px) {
  body .storefront-grid-frame > .storefront-game-grid,
  body.premium-home :is(#popular-new, #preorders, #top-sellers) .storefront-grid-frame > .storefront-game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}
/* MOBILE-ONE-COLUMN-01: keep product cards readable until the listing itself is wide enough for two cards (~300px each). */
@container game-list (max-width: 619px) {
  body .storefront-grid-frame > .storefront-game-grid,
  body.premium-home :is(#popular-new, #preorders, #top-sellers) .storefront-grid-frame > .storefront-game-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

@media (max-width: 600px) {
  body .storefront-game-grid .game-card-body,
  body .storefront-game-grid .premium-collection-card-body,
  body.premium-home :is(#popular-new, #preorders, #top-sellers) .storefront-game-grid .home-game-card .game-card-body {
    min-height: 145px;
    gap: 7px;
  }
  
  body .storefront-game-grid .home-game-meta { font-size: 11px; }
}

/* Approved Premium Dark game tile — shared across the whole storefront.
   One product detail action, no invented cart workflow, rating or discount.
   Hover never shifts, scales or lifts the card (D-007). */
body .storefront-game-grid > .product-tile {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 100%;
  background: #0b1b2c;
  background-image:
    radial-gradient(120% 100% at 58% 0%, rgba(64, 129, 197, .19) 0%, rgba(64, 129, 197, 0) 66%),
    linear-gradient(160deg, #102941 0%, #0e2339 53%, #091a2d 100%);
  border: 1px solid #31506e;
  border-radius: 10px;
  box-shadow: none;
  overflow: hidden;
  color: #f3f7ff;
}
body .storefront-game-grid > .product-tile:hover,
body .storefront-game-grid > .product-tile:is(:focus-visible, :has(:focus-visible)) {
  border-color: #5d87b6;
  background: #0b1b2c;
  background-image:
    radial-gradient(120% 100% at 58% 0%, rgba(64, 129, 197, .19) 0%, rgba(64, 129, 197, 0) 66%),
    linear-gradient(160deg, #102941 0%, #0e2339 53%, #091a2d 100%);
  box-shadow: none;
}
body .storefront-game-grid .product-tile .product-tile-cover {
  position: relative;
  flex: 0 0 auto;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 460 / 215;
  border-radius: 10px;
  background: #091a2b;
  /* Product image fallback lives on the clipped inner link. */
  background-image: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
body .storefront-game-grid .product-tile .product-tile-image-link {
  display: block;
  height: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background-color: #091a2b;
  background-image: linear-gradient(rgba(9, 26, 43, .14), rgba(9, 26, 43, .14)), url("../img/default-game.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
body .storefront-game-grid .product-tile .product-tile-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  transition: none;
}
/* Shared storefront-game-badge owns all visual styling. The tile only positions it. */
body .storefront-game-grid .product-tile .product-tile-badge {
  position: absolute;
  max-width: calc(100% - 22px);
  pointer-events: none;
}
/* Variant A: clean compact name, without an artificial blank second row.
   The purchase area is an independent footer, never an inset stripe. */
body .storefront-game-grid .product-tile .product-tile-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 44px;
  gap: 0;
  background: transparent;
}
/* Homepage's ID-scoped shared-card rule otherwise wins over the base tile
   min-height. Keep both surfaces equally compact after removing metadata. */
body.premium-home :is(#popular-new, #preorders, #top-sellers) .storefront-game-grid .home-game-card.product-tile .product-tile-body {
  min-height: 44px;
}
body .storefront-game-grid .product-tile .product-tile-title,
body.premium-home :is(#popular-new, #preorders, #top-sellers) .storefront-game-grid .product-tile .product-tile-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  min-height: 0;
  max-height: 2.52em;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.26;
  letter-spacing: -.018em;
  color: #f3f7ff;
}
body .storefront-game-grid .product-tile .product-tile-title a {
  color: inherit;
  text-decoration: none;
}
body .storefront-game-grid .product-tile .product-tile-title a:hover {
  color: #c4dcff;
}
/* Variant A: the footer blends into the dark tile. Only an inset hairline
   separates product information from price/action, without bright bands.
   The footer remains a full-width sibling, with no negative margins. */
body .storefront-game-grid .product-tile .product-tile-bottom {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin-top: auto;
  padding: 0 12px 12px;
  border-top: 0;
  background: transparent;
  background-image: none;
  box-shadow: none;
}
body .storefront-game-grid .product-tile .product-tile-bottom::before {
  content: none;
}
body .storefront-game-grid .product-tile .product-tile-price {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  color: #f3f7ff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
body .storefront-game-grid .product-tile .product-tile-action {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 116px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #3886fa;
  border-radius: 10px;
  color: #fff;
  background: #176bf2;
  box-shadow: none;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .16s ease, border-color .16s ease;
}
body .storefront-game-grid .product-tile .product-tile-action:hover,
body .storefront-game-grid .product-tile .product-tile-action:focus-visible {
  color: #fff;
  background: #3484ff;
  border-color: #78b2ff;
}
body .storefront-game-grid .product-tile .product-tile-action svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body .storefront-game-grid .product-tile :is(.product-tile-image-link, .product-tile-title a, .product-tile-action):focus-visible {
  border-color: #97c7ff;
}
/* Keep the four-column layout readable on narrower cards and mobile. */
@container game-list (max-width: 1150px) {
  body .storefront-game-grid .product-tile .product-tile-bottom {
    gap: 7px;
  }
  body .storefront-game-grid .product-tile .product-tile-action {
    min-width: 99px;
  }
}
@container game-list (max-width: 480px) {
  body .storefront-game-grid .product-tile .product-tile-body {
    min-height: 42px;
    gap: 0;
  }
  body.premium-home :is(#popular-new, #preorders, #top-sellers) .storefront-game-grid .home-game-card.product-tile .product-tile-body {
    min-height: 42px;
  }
  body .storefront-game-grid .product-tile .product-tile-title,
  body.premium-home :is(#popular-new, #preorders, #top-sellers) .storefront-game-grid .product-tile .product-tile-title {
    min-height: 0;
  }
  body .storefront-game-grid .product-tile .product-tile-bottom {
    flex-wrap: wrap;
    align-items: center;
    min-height: 0;
  }
  
  
}

/* Stretched product navigation with independently clickable Buy controls.
   Legacy site.css sets .home-game-card .game-card-body to pointer-events:none,
   position:relative and z-index:3 for an obsolete cover overlay. Cancel all
   three here. Otherwise Buy is inert on the homepage and the stretched link
   is constrained to the body instead of the entire card. */
body .storefront-game-grid .product-tile { position: relative; cursor: pointer; }
body .storefront-game-grid .product-tile .product-tile-body {
  position: static;
  z-index: auto;
  pointer-events: auto;
}
body .storefront-game-grid .product-tile .product-tile-title a::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
}
body .storefront-game-grid .product-tile :is(.product-tile-buy-form, .product-tile-add-form),
body .storefront-game-grid .product-tile .product-tile-bottom > .product-tile-action {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}
body .storefront-game-grid .product-tile .product-tile-add-form .product-tile-action {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}
body .storefront-game-grid .product-tile .product-tile-add-form { margin: 0; }
body .storefront-game-grid .product-tile .product-tile-add-form .product-tile-action {
  cursor: pointer; font: inherit; font-size: 13px; font-weight: 700;
}
body .storefront-game-grid .product-tile .product-tile-action.is-in-cart { background: #183d49; border-color: #3eab9e; color: #b3f6e4; }
body .storefront-game-grid .product-tile .product-tile-action.is-details { background: #234061; }

/* D-026: accessible saved-game hearts. Top-right on every product card. */
body .game-card-media,body .product-tile-cover,body .premium-product-cover,body .wishlist-related-cover {position:relative}
body .wishlist-related-cover .mini-card-media{display:block}
body .storefront-game-grid .game-card-media > a.wishlist-login-link{height:44px}
body .premium-product-cover > a.wishlist-login-link{height:46px}
/* The 44px hit target stays accessible; only the visible heart button is
   34px on cards (38px on product details). Same geometry for guests/users. */
body .wishlist-toggle {
  position:absolute;top:7px;right:7px;z-index:6;
  width:44px;height:44px;margin:0;display:grid;place-items:center;
  border:0;border-radius:10px;background:transparent;color:#f2f7ff;
}
body .wishlist-toggle::before {
  content:"";position:absolute;inset:5px;
  border:1px solid rgba(179,206,238,.33);border-radius:10px;
  background:rgba(9,20,34,.78);
  box-shadow: none;
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  pointer-events:none;
}
body .wishlist-toggle--detail{top:13px;right:13px;width:46px;height:46px}
body .wishlist-toggle--detail::before{inset:4px;border-radius:10px}
body .wishlist-toggle-button{
  position:relative;z-index:1;width:100%;height:100%;padding:0;
  display:grid;place-items:center;background:transparent;border:0;
  border-radius:10px;color:inherit;cursor:pointer;
}
body .wishlist-toggle svg{
  position:relative;z-index:1;width:18px;height:18px;display:block;
  fill:transparent;stroke:currentColor;stroke-width:1.9;
  stroke-linecap:round;stroke-linejoin:round;pointer-events:none;
}
/* Saved hearts match the NEW badge yellow; keep a dark inset for
   contrast against Steam cover art. The neutral unselected state is intact. */
body .wishlist-toggle.is-saved{color:#f9d949}
body .wishlist-toggle.is-saved::before{
  border-color:#f9d949;background:rgba(42,36,19,.90)
}
body .wishlist-toggle.is-saved svg{fill:currentColor;stroke:currentColor}
body .wishlist-toggle:hover::before,body .wishlist-toggle:focus-visible::before{
  border-color:rgba(224,240,255,.65);background:rgba(23,40,62,.92)
}
body .wishlist-toggle.is-saved:hover::before,body .wishlist-toggle.is-saved:focus-visible::before{
  border-color:#ffe681;background:rgba(53,45,23,.94)
}
body .wishlist-toggle.is-saved:hover{color:#ffe681}
/* Listing cards: selecting a favorite changes the heart only. The frame
   retains the same neutral idle and hover/focus paint as an unsaved heart. */
body .storefront-game-grid .product-tile .wishlist-toggle.is-saved::before {
  border-color: rgba(179,206,238,.33);
  background: rgba(9,20,34,.78);
}
body .storefront-game-grid .product-tile .wishlist-toggle.is-saved:is(:hover, :focus-visible)::before {
  border-color: rgba(224,240,255,.65);
  background: rgba(23,40,62,.92);
}
body .storefront-game-grid .product-tile .wishlist-toggle.is-saved:hover {
  color: #f9d949;
}
body .wishlist-toggle-button:focus-visible,body a.wishlist-toggle:focus-visible {
  border-color: #a2d1ff;
}
body .wishlist-toggle.is-saved .wishlist-toggle-button:focus-visible {
  border-color: #ffe681;
}
body .wishlist-toggle-button:disabled{opacity:.65;cursor:progress}
body .wishlist-login-link{text-decoration:none}
body .account-wishlist-notice{margin:14px 0;padding:13px 16px;border:1px solid #8b6e4f;background:#2d291f;
  border-radius:10px;color:#f1d8b1;font-size:13px;line-height:1.5}

body .wishlist-related-cover > .wishlist-toggle{top:8px;right:8px}
body .wishlist-related-cover > a.wishlist-login-link{height:44px}
body .wishlist-related-cover > .mini-card-media{width:100%}

/* D-027: The stretched product title link is z=1 on the card, while legacy
   home CSS gives the media its own z=1 stacking context. A child heart at z=6
   cannot escape that context, so the stretched link swallowed heart clicks.
   Raise the media context above the stretched link, keeping independent
   Buy and product navigation available. */
body .storefront-game-grid .product-tile .product-tile-cover {
  z-index: 4;
}
body .home-carousel-slide .game-card-media {
  z-index: 4;
}
body .storefront-game-grid .product-tile .product-tile-cover .wishlist-toggle,
body .home-carousel-slide .game-card-media .wishlist-toggle {
  z-index: 6;
  pointer-events: auto;
}

body .header-wishlist-link.is-active{color:#ffc2d0}
body .header-wishlist-link svg{width:22px;height:22px}
body .header-wishlist-link [data-wishlist-count][hidden]{display:none}

/* Collection pages — stable compact header and controls across RU/EN and viewport widths. */
body.premium-inner .premium-collection { position: relative; padding: 20px 0 52px; }
body.premium-inner .premium-collection-glow { display: none; }
body.premium-inner .premium-collection > .container { position: relative; }
body.premium-inner .premium-collection-hero {
  display: block; min-height: 0; margin: 0 0 19px; padding: 0;
  border: 0; background: none;
}
body.premium-inner .premium-collection-intro { max-width: 920px; }
body.premium-inner .premium-collection-hero h1 {
  margin: 0; font-size: 36px; line-height: 1.17;
  letter-spacing: -.035em; color: #eef5ff;
}
body.premium-inner .premium-collection-description {
  max-width: 800px; margin: 10px 0 0;
  font-size: 13px; line-height: 1.55; color: #aebfd3;
}
body.premium-inner .premium-collection-disclaimer {
  margin: 12px 0 0; padding: 10px 12px;
  border: 1px solid #27425e; border-radius: 10px;
  background: #101d2c; font-size: 12px; line-height: 1.5; color: #c1d9ec;
}
body.premium-inner .premium-collection-toolbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px 20px; margin: 0 0 16px; padding: 12px 0;
  border-top: 1px solid #263444; border-bottom: 1px solid #263444;
}
body.premium-inner .premium-collection-count { margin: 0; color: #afbed0; font-size: 13px; }
body.premium-inner .premium-collection-count strong { margin-left: 4px; color: #edf5ff; font-size: 15px; }
body.premium-inner .premium-collection-sort {
  display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap;
  gap: 8px; margin: 0; padding: 0;
}
body.premium-inner .premium-collection-sort label { margin: 0 3px 0 0; color: #aebfd3; font-size: 12px; }
body.premium-inner .premium-collection-sort select {
  min-width: 195px; max-width: 260px; min-height: 38px;
  padding: 0 12px; border: 1px solid #344b68; border-radius: 10px;
  background: #111f30; color: #edf5ff; font: inherit; font-size: 16px;
}
body.premium-inner .premium-collection-sort button {
  min-height: 38px; padding: 0 15px;
  border: 1px solid #3578d8; border-radius: 10px;
  background: #1966c6; color: #fff; font-size: 12px; font-weight: 650; cursor: pointer;
}
body.premium-inner .premium-collection-sort :is(select, button):focus-visible {
  border-color: #8ac1ff;
}
body.premium-inner .premium-collection-grid { margin: 0; }
@media (max-width: 650px) {
  
  
  body.premium-inner .premium-collection-toolbar { align-items: stretch; }
  body.premium-inner .premium-collection-sort { width: 100%; justify-content: flex-start; }
  body.premium-inner .premium-collection-sort select { flex: 1 1 150px; min-width: 0; max-width: none; }
}

/* Compact collection pagination and helpful editorial footer. */
body.premium-inner .premium-collection-pagination {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 10px; margin: 25px 0 0; padding: 0;
  background: transparent; border: 0;
}
body.premium-inner .premium-collection-page-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 39px; min-width: 110px; padding: 7px 14px;
  border: 1px solid #365270; border-radius: 10px;
  background: #132235; color: #bcd7f4; font-size: 12px;
  font-weight: 600; text-decoration: none; transition: background-color .15s, border-color .15s;
}
body.premium-inner .premium-collection-page-arrow:not(.is-disabled):hover {
  background: #1c385b; border-color: #5289d5; color: #fff;
}
body.premium-inner .premium-collection-page-arrow.is-disabled {
  opacity: .4; cursor: default; background: #0e1926;
}
body.premium-inner .premium-collection-page-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: #a9bfd8; white-space: nowrap;
}
body.premium-inner .premium-collection-page-status strong { color: #e9f4ff; font-size: 13px; }
body.premium-inner .premium-collection-guide {
  max-width: none; margin-top: 24px; padding: 19px 22px;
  border: 1px solid #26384b; border-radius: 10px;
  background: #101b29;
}
body.premium-inner .premium-collection-guide h2 {
  margin: 0 0 7px; font-size: 17px; line-height: 1.35;
  letter-spacing: -.015em; color: #ebf4ff;
}
body.premium-inner .premium-collection-guide p {
  margin: 0; max-width: 980px; font-size: 13px;
  line-height: 1.65; color: #abc0d7;
}
body.premium-inner .premium-collection-guide-links {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 23px; margin-top: 13px;
}
body.premium-inner .premium-collection-guide-links a {
  display: inline-flex; align-items: center; gap: 7px;
  color: #8dbfff; font-size: 12px; font-weight: 650; text-decoration: none;
}
body.premium-inner .premium-collection-guide-links a:hover { color: #d7ebff; }
@media (max-width: 550px) {
  body.premium-inner .premium-collection-pagination { gap: 8px; }
  body.premium-inner .premium-collection-page-arrow { min-width: 0; flex: 1 1 95px; }
  body.premium-inner .premium-collection-page-status { order: -1; justify-content: center; width: 100%; }
  
}

/* Full games catalog: align its header, filter toolbar and footer with collections. */
body.premium-inner .premium-catalog { padding: 19px 0 52px; }
body.premium-inner .premium-catalog-hero { margin: 0 0 20px; padding: 0; min-height: 0; border: 0; }
body.premium-inner .premium-catalog-hero h1 { margin: 0; font-size: 36px; line-height: 1.17; letter-spacing: -.035em; }
body.premium-inner .premium-catalog-hero p { max-width: 840px; margin: 10px 0 0; font-size: 13px; line-height: 1.55; color: #afc0d6; }
body.premium-inner .premium-catalog-layout { display: block; padding: 0; }
body.premium-inner .premium-catalog-sidebar { width: 100%; max-width: none; margin: 0 0 19px; position: static; }
body.premium-inner .premium-catalog-filter-panel { padding: 16px 18px; background: #101b29; border: 1px solid #293d51; border-radius: 10px; }
body.premium-inner .premium-catalog-filter-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 13px; padding: 0; border: 0; }
body.premium-inner .premium-catalog-filter-head strong { font-size: 15px; }
body.premium-inner .premium-catalog-filter-head a { font-size: 12px; color: #8fbefe; }
body.premium-inner .premium-catalog .catalog-filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px 14px; align-items: end; }
body.premium-inner .premium-catalog .catalog-filters .field { min-width: 0; margin: 0; gap: 6px; }
body.premium-inner .premium-catalog .catalog-filters .field span { font-size: 11px; }
body.premium-inner .premium-catalog .catalog-filters :is(input,select) { width: 100%; min-height: 38px; }
body.premium-inner .premium-catalog .catalog-filters .filter-actions { display: flex; grid-column: 1/-1; gap: 10px; align-items: center; margin: 0; }
body.premium-inner .premium-catalog .filter-actions :is(button,a) { flex: 0 1 220px; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; }
body.premium-inner .premium-catalog-results-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 14px; padding: 0; border: 0; }
body.premium-inner .premium-catalog-results-head h2 { margin: 0; font-size: 19px; }
body.premium-inner .premium-catalog-results-head p { margin: 0; font-size: 12px; color: #aebfd3; }
body.premium-inner .premium-catalog .premium-collection-pagination { margin-top: 24px; }
body.premium-inner .premium-catalog .premium-collection-guide { margin-top: 24px; }
@media (max-width: 800px) {
  body.premium-inner .premium-catalog .catalog-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 520px) {
  
  body.premium-inner .premium-catalog .catalog-filters { grid-template-columns: minmax(0,1fr); }
  body.premium-inner .premium-catalog .catalog-filters .filter-actions { flex-wrap: wrap; }
  body.premium-inner .premium-catalog .filter-actions :is(button,a) { flex: 1 1 120px; }
}

/* Section titles use the same restrained semantic SVG language as the account. */
body.premium-inner .storefront-icon-heading { display: flex; align-items: center; gap: 12px; }
body.premium-inner .storefront-heading-symbol {
  display: inline-grid; place-items: center; flex: 0 0 42px;
  width: 42px; height: 42px; color: #8bc1ff;
  background: #172b42; border: 1px solid #35536f; border-radius: 10px;
}
body.premium-inner .storefront-heading-symbol .ui-icon { width: 22px; height: 22px; }


/* Legacy mini/entity tiles also appear in generic site.css. Scope their
   interactive border to real storefront pages to preserve the nine frozen
   .premium-info pages; the generic site's canonical rule must not change. */
body.premium-inner:not(:has(.premium-info)) .site-main :is(.mini-card, .entity-card):is(:hover, :focus-visible, :has(:focus-visible)) {
  border-color: var(--m2-card-hover-border);
}

/* /genres/: illustrated editorial gallery, separate from universal game cards. */
body.premium-inner .genres-showcase{padding:18px 0 58px}
/* Unified public storefront breadcrumb style, based on /genres/.
   Strictly scoped to the shared partial; account and frozen legal pages stay unchanged. */
body.premium-inner .genres-showcase-crumbs {
  display:flex; flex-wrap:wrap; align-items:center; gap:10px;
  margin:0 0 16px; color:#8ea5c1; font-size:12px; line-height:1.5;
  overflow-wrap:anywhere;
}
body.premium-inner .genres-showcase-crumbs > :last-child {min-width:0;max-width:100%;overflow-wrap:anywhere}
body.premium-inner .genres-showcase-crumbs a {color:#accbf1;text-decoration:none}
body.premium-inner .genres-showcase-crumbs a:is(:hover,:focus-visible) {color:#fff}
body.premium-inner .genres-showcase-crumbs a:focus-visible {border-radius:2px;
  border-color: #accbf1;
}
body.premium-inner .genres-showcase-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:0 0 24px}
body.premium-inner .genres-showcase-intro{min-width:0;max-width:740px}
body.premium-inner .genres-showcase-hero h1 {font-size: 36px;line-height:1.15;letter-spacing:-.04em;color:#f2f7ff;margin:0 0 12px}
body.premium-inner .genres-showcase-intro>p{margin:0;max-width:690px;color:#b0c4dc;font-size:14px;line-height:1.65}
:is(body.premium-inner,body.premium-home) .genres-showcase-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch}
/* An aspect-ratio grid item with auto inline size may shrink-wrap its copy
   instead of stretching (notably iOS WebKit). Explicit border-box width
   keeps every mobile genre card equal to its grid track. */
:is(body.premium-inner,body.premium-home) .genres-showcase-card{isolation:isolate;position:relative;display:flex;align-items:end;width:100%;box-sizing:border-box;justify-self:stretch;min-width:0;aspect-ratio:5/2;min-height:0;padding:12px 12px;overflow:hidden;border:1px solid #3a516c;border-radius:10px;background:#162639;color:#fff;text-decoration:none}
:is(body.premium-inner,body.premium-home) .genres-showcase-card::before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(0deg,rgba(3,8,18,.91) 0%,rgba(3,8,18,.52) 39%,rgba(3,8,18,.08) 83%)}
:is(body.premium-inner,body.premium-home) .genres-showcase-art{position:absolute;inset:0;z-index:-2;display:block;background-color:#14263b;background-image:url("../img/genres/collection/default.webp");background-size:cover;background-position:center;filter:saturate(1.05);transition:filter .18s ease}
:is(body.premium-inner,body.premium-home) .genres-showcase-card:hover,:is(body.premium-inner,body.premium-home) .genres-showcase-card:focus-visible{border-color:var(--m2-card-hover-border)}
:is(body.premium-inner,body.premium-home) .genres-showcase-card:is(:hover,:focus-visible) .genres-showcase-art{filter:saturate(1.05) brightness(1.10)}
:is(body.premium-inner,body.premium-home) .genres-showcase-card:focus-visible,body.premium-inner .genres-showcase-explore a:focus-visible {
  border-color: #a3ccff;
}
:is(body.premium-inner,body.premium-home) .genres-showcase-count{position:absolute;z-index:1;top:6px;left:6px;padding:6px 9px;max-width:calc(100% - 12px);border-radius:10px;border:0;background:rgba(3,9,20,.88);color:#e3efff;font-size:11px;line-height:1.3;font-weight:650}
:is(body.premium-inner,body.premium-home) .genres-showcase-card-copy{position:relative;z-index:1;min-width:0;display:grid;gap:0px;max-width:100%;padding-right:6px}
:is(body.premium-inner,body.premium-home) .genres-showcase-card-copy strong{font-size:18px;line-height:1.23;color:#fff;letter-spacing:-.02em;overflow-wrap:normal}
:is(body.premium-inner,body.premium-home) .genres-showcase-card-copy small{font-size:11px;line-height:1.4;color:#d2deef;max-width:310px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
:is(body.premium-inner,body.premium-home) .genre-art-indie .genres-showcase-art{background-image:url("../img/genres/collection/indie.webp"),url("../img/genres/collection/default.webp")}
:is(body.premium-inner,body.premium-home) .genre-art-casual .genres-showcase-art{background-image:url("../img/genres/collection/casual.webp"),url("../img/genres/collection/default.webp")}
:is(body.premium-inner,body.premium-home) .genre-art-action .genres-showcase-art{background-image:url("../img/genres/collection/action.webp"),url("../img/genres/collection/default.webp")}
:is(body.premium-inner,body.premium-home) .genre-art-adventure .genres-showcase-art{background-image:url("../img/genres/collection/adventure.webp"),url("../img/genres/collection/default.webp")}
:is(body.premium-inner,body.premium-home) .genre-art-simulation .genres-showcase-art{background-image:url("../img/genres/collection/simulation.webp"),url("../img/genres/collection/default.webp")}
:is(body.premium-inner,body.premium-home) .genre-art-strategy .genres-showcase-art{background-image:url("../img/genres/collection/strategy.webp"),url("../img/genres/collection/default.webp")}
:is(body.premium-inner,body.premium-home) .genre-art-rpg .genres-showcase-art{background-image:url("../img/genres/collection/rpg.webp"),url("../img/genres/collection/default.webp")}
:is(body.premium-inner,body.premium-home) .genre-art-early-access .genres-showcase-art{background-image:url("../img/genres/collection/early-access.webp"),url("../img/genres/collection/default.webp")}
:is(body.premium-inner,body.premium-home) .genre-art-sports .genres-showcase-art{background-image:url("../img/genres/collection/sports.webp"),url("../img/genres/collection/default.webp")}
:is(body.premium-inner,body.premium-home) .genre-art-racing .genres-showcase-art{background-image:url("../img/genres/collection/racing.webp"),url("../img/genres/collection/default.webp")}
:is(body.premium-inner,body.premium-home) .genre-art-multiplayer .genres-showcase-art{background-image:url("../img/genres/collection/multiplayer.webp"),url("../img/genres/collection/default.webp")}
:is(body.premium-inner,body.premium-home) .genre-art-violence .genres-showcase-art{background-image:url("../img/genres/collection/violence.webp"),url("../img/genres/collection/default.webp")}
:is(body.premium-inner,body.premium-home) .genre-art-gore .genres-showcase-art{background-image:url("../img/genres/collection/gore.webp"),url("../img/genres/collection/default.webp")}
:is(body.premium-inner,body.premium-home) .genre-art-nudity .genres-showcase-art{background-image:url("../img/genres/collection/nudity.webp"),url("../img/genres/collection/default.webp")}
:is(body.premium-inner,body.premium-home) .genre-art-sexual-content .genres-showcase-art{background-image:url("../img/genres/collection/sexual-content.webp"),url("../img/genres/collection/default.webp")}
:is(body.premium-inner,body.premium-home) .genre-art-360-video .genres-showcase-art{background-image:url("../img/genres/collection/360-video.webp"),url("../img/genres/collection/default.webp")}
:is(body.premium-inner,body.premium-home) .genre-art-documentary .genres-showcase-art{background-image:url("../img/genres/collection/documentary.webp"),url("../img/genres/collection/default.webp")}
:is(body.premium-inner,body.premium-home) .genre-art-episodic .genres-showcase-art{background-image:url("../img/genres/collection/episodic.webp"),url("../img/genres/collection/default.webp")}
:is(body.premium-inner,body.premium-home) .genre-art-movie .genres-showcase-art{background-image:url("../img/genres/collection/movie.webp"),url("../img/genres/collection/default.webp")}
:is(body.premium-inner,body.premium-home) .genre-art-short .genres-showcase-art{background-image:url("../img/genres/collection/short.webp"),url("../img/genres/collection/default.webp")}
:is(body.premium-inner,body.premium-home) .genre-art-tutorial .genres-showcase-art{background-image:url("../img/genres/collection/tutorial.webp"),url("../img/genres/collection/default.webp")}
/* Platform imagery reuses all /genres/ card geometry, text, badges, hover and mobile styling.
   New platforms fall back to the existing universal category illustration. */
:is(body.premium-inner,body.premium-home) .platform-art-windows .genres-showcase-art{background-image:url("../img/platforms/collection/windows.webp"),url("../img/genres/collection/default.webp")}
:is(body.premium-inner,body.premium-home) .platform-art-macos .genres-showcase-art{background-image:url("../img/platforms/collection/macos.webp"),url("../img/genres/collection/default.webp")}
:is(body.premium-inner,body.premium-home) .platform-art-linux .genres-showcase-art{background-image:url("../img/platforms/collection/linux.webp"),url("../img/genres/collection/default.webp")}
body.premium-inner .genres-showcase-explore{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:32px;padding:22px 24px;border-radius:10px;border:1px solid #2b4969;background:linear-gradient(105deg,#142a43,#101d2d)}
body.premium-inner .genres-showcase-explore strong{display:block;margin-bottom:4px;font-size:16px;color:#f2f7ff}
body.premium-inner .genres-showcase-explore p{margin:0;color:#aac0d8;font-size:12px;line-height:1.55}
body.premium-inner .genres-showcase-explore a{display:inline-flex;align-items:center;justify-content:center;gap:10px;flex:0 0 auto;min-height:41px;padding:10px 16px;border:1px solid #4687d0;border-radius:10px;background:#19528c;color:#fff;text-decoration:none;font-size:13px;font-weight:700}
body.premium-inner .genres-showcase-explore a:hover{background:#256caa}
body.premium-inner .genres-showcase-pagination{margin-top:27px}
@media(max-width:1060px){body.premium-inner .genres-showcase-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:750px){body.premium-inner .genres-showcase-hero {align-items:flex-start}:is(body.premium-inner,body.premium-home) .genres-showcase-grid{gap:11px}}
@media(max-width:640px){body.premium-inner .genres-showcase-grid{grid-template-columns:minmax(0,1fr);gap:12px}}
@media(max-width:530px){body.premium-inner .genres-showcase-hero {display:block;}}
@media(prefers-reduced-motion:reduce){:is(body.premium-inner,body.premium-home) .genres-showcase-card{transition:none}:is(body.premium-inner,body.premium-home) .genres-showcase-art{transition:none}}


/* One visual purchasing control for all public listing grids and both
   purchase areas on game details. No hover text swapping or moving prices. */
body .storefront-game-grid .product-tile .product-tile-action.storefront-buy-action,
body .game-purchase-cart-control .primary-button.storefront-buy-action {
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;
  flex:0 0 108px;width:108px;min-width:108px;max-width:108px;
  height:38px;min-height:38px;padding:0 8px;gap:6px;
  border:1px solid #4f92f1;border-radius:10px;
  background:#216ce5;color:#fff;box-shadow:none;
  font-family:inherit;font-size:12px;font-weight:600;line-height:1;
  text-decoration:none;white-space:nowrap;cursor:pointer;
  transition:background-color .16s ease,border-color .16s ease,color .16s ease;
}
body .storefront-game-grid .product-tile .product-tile-action.storefront-buy-action:hover,
body .storefront-game-grid .product-tile .product-tile-action.storefront-buy-action:focus-visible,
body .game-purchase-cart-control .primary-button.storefront-buy-action:hover,
body .game-purchase-cart-control .primary-button.storefront-buy-action:focus-visible {
  background:var(--m2-action-hover, #2867c1);border-color:#8abaff;color:#fff;
}
/* Card-only palette: the sibling cart icon uses the base product-tile-action
   colors. The shared Buy rule above also serves game details, so keep its
   colors intact and scope these states to storefront listing cards. */
body .storefront-game-grid .product-tile .product-tile-action.storefront-buy-action {
  background:#176bf2;border-color:#3886fa;
}
body .storefront-game-grid .product-tile .product-tile-action.storefront-buy-action:hover,
body .storefront-game-grid .product-tile .product-tile-action.storefront-buy-action:focus-visible {
  background:#3484ff;border-color:#78b2ff;
}
body .storefront-game-grid .product-tile .product-tile-action.storefront-buy-action.is-in-cart,
body .game-purchase-cart-control .primary-button.storefront-buy-action.is-in-cart {
  background:#1a3552;border-color:#577d9f;color:#eef5ff;
}
body .storefront-game-grid .product-tile .product-tile-action.storefront-buy-action.is-in-cart:hover,
body .storefront-game-grid .product-tile .product-tile-action.storefront-buy-action.is-in-cart:focus-visible,
body .game-purchase-cart-control .primary-button.storefront-buy-action.is-in-cart:hover,
body .game-purchase-cart-control .primary-button.storefront-buy-action.is-in-cart:focus-visible {
  background:#334052;border-color:#b68b97;color:#fff;
}
body .storefront-buy-action .buy-action-icon {
  width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.85;
  stroke-linecap:round;stroke-linejoin:round;pointer-events:none;flex:0 0 16px;
}
body :is(.product-tile-cart-action, .storefront-cart-add-action) .cart-state-mark {
  display:inline-grid;place-items:center;flex:0 0 16px;width:16px;height:16px;
  margin:0;color:inherit;
}
body :is(.product-tile-cart-action, .storefront-cart-add-action) .cart-state-icon {
  display:block;width:16px;height:16px;fill:none;
  stroke:currentColor;stroke-width:1.85;stroke-linecap:round;
  stroke-linejoin:round;pointer-events:none;
}
body :is(.product-tile-cart-action, .storefront-cart-add-action) .cart-state-icon-remove {display:none}
body :is(.product-tile-cart-action, .storefront-cart-add-action).is-in-cart .cart-state-icon-buy {display:block}
body :is(.product-tile-cart-action, .storefront-cart-add-action).is-in-cart:hover .cart-state-icon-buy,
body :is(.product-tile-cart-action, .storefront-cart-add-action).is-in-cart:focus-visible .cart-state-icon-buy {display:none}
body :is(.product-tile-cart-action, .storefront-cart-add-action).is-in-cart:hover .cart-state-icon-remove,
body :is(.product-tile-cart-action, .storefront-cart-add-action).is-in-cart:focus-visible .cart-state-icon-remove {display:block}
body .storefront-buy-action:focus-visible {
  border-color: #a8d2ff;
}
body .storefront-buy-action:disabled {opacity:.65;cursor:wait}
body .storefront-game-grid .product-tile :is(.product-tile-buy-form, .product-tile-add-form) {flex:0 0 108px;width:108px}
body .game-purchase-cart-control {
  display:grid;grid-template-columns:minmax(0,1fr) auto;
  align-items:center;justify-content:end;gap:12px;min-width:0;
}
body .game-purchase-cart-control form {margin:0}
body .game-purchase-cart-control > strong {min-width:0;white-space:nowrap;font-size:18px}
/* Buy-now opens the authenticated payment-method review; the adjacent icon
   retains the independent add/remove-cart action. */
body .storefront-game-grid .product-tile .product-tile-actions,
body .game-purchase-cart-control .game-purchase-actions {
  display:flex;align-items:center;gap:8px;min-width:0;
}
body .storefront-game-grid .product-tile .product-tile-actions { flex:1;justify-content:flex-end; }
body .storefront-game-grid .product-tile .product-tile-actions :is(.product-tile-buy-form, .product-tile-add-form),
body .game-purchase-cart-control .game-purchase-actions form { flex:0 0 auto;width:auto;min-width:0;margin:0; }
body .storefront-game-grid .product-tile .product-tile-cart-action {
  box-sizing:border-box;flex:0 0 38px;
  min-width:38px;width:38px;max-width:38px;
  height:38px;min-height:38px;padding-inline:0;
}
body .game-purchase-cart-control .storefront-cart-add-action {
  min-width:40px;width:40px;padding-inline:0;
}
body .storefront-game-grid .product-tile .product-tile-cart-action.is-in-cart,
body .game-purchase-cart-control .storefront-cart-add-action.is-in-cart {
  background:#135d48;border-color:#48be8c;color:#f4fffb;
}
body .storefront-game-grid .product-tile .product-tile-cart-action.is-in-cart:hover,
body .storefront-game-grid .product-tile .product-tile-cart-action.is-in-cart:focus-visible,
body .game-purchase-cart-control .storefront-cart-add-action.is-in-cart:hover,
body .game-purchase-cart-control .storefront-cart-add-action.is-in-cart:focus-visible {
  background:#7f1d1d;border-color:#f28b82;color:#fff;
}
/* Product-grid cart state: preserve green/red semantics but soften the
   outlines to the same visual weight as the unselected blue cart button.
   Product-detail cart controls keep their existing palette. */
body .storefront-game-grid .product-tile .product-tile-cart-action.is-in-cart {
  border-color: #287963;
}
body .storefront-game-grid .product-tile .product-tile-cart-action.is-in-cart:is(:hover, :focus-visible) {
  border-color: #a34d4d;
}
body .game-purchase-row-main {grid-template-columns:minmax(0,1fr) auto}
body .game-side-actions .game-purchase-cart-control {justify-content:space-between;width:100%}
@media(max-width:600px) {
  body .game-purchase-row-main {grid-template-columns:minmax(0,1fr)}
  body .game-purchase-row-main .game-purchase-cart-control {justify-content:space-between;width:100%}
}
/* Related-product prices are navigation links, never faux instant purchases.
   Price stays visible on hover and focus and the arrow matches the text. */
body .mini-card-body .game-buy-button.storefront-related-link {
  display:inline-flex;justify-content:space-between;gap:8px;
  min-height:38px;padding:0 10px;
  border:1px solid #3a628e;border-radius:10px;
  background:#162a42;color:#deedff;box-shadow:none;
  font-size:12px;font-weight:650;
}
body .mini-card-body .game-buy-button.storefront-related-link::after{content:none}
body .mini-card-body .game-buy-button.storefront-related-link:hover,
body .mini-card-body .game-buy-button.storefront-related-link:focus-visible{
  background:#203a59;border-color:#79a8df;color:#fff;box-shadow:none;
}
body .mini-card-body .game-buy-button.storefront-related-link span,
body .mini-card-body .game-buy-button.storefront-related-link svg {
  opacity:1;transition:none;color:inherit;
}
body .mini-card-body .game-buy-button.storefront-related-link svg {
  width:16px;height:16px;flex:0 0 16px;fill:none;stroke:currentColor;
}

/* PUBLIC-RESPONSIVE-01: search, submit and result count remain visible;
   advanced facets hide only with JS enhancement; GET works without JS. */
body.premium-inner .premium-catalog .catalog-filters .catalog-filter-fields {display:contents}
body.premium-inner .premium-catalog .catalog-mobile-search-submit,
body.premium-inner .premium-catalog .catalog-mobile-filter-toggle {display:none}
@media(max-width:800px) {
  body.premium-inner .premium-catalog .catalog-filters {
    display:grid;grid-template-columns:minmax(0,1fr);
  }
  body.premium-inner .premium-catalog .catalog-filters > .field:first-child {grid-column:1/-1}
  body.premium-inner .premium-catalog .catalog-mobile-search-submit {
    display:inline-flex;align-items:center;justify-content:center;
    width:100%;border-radius:10px;
  }
  body.premium-inner .premium-catalog .catalog-filters[data-catalog-filter-enhanced="1"] .catalog-mobile-filter-toggle {
    box-sizing:border-box;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;width:100%;
    border:1px solid #43658a;border-radius:10px;background:#182b43;color:#edf5ff;
    font:inherit;font-weight:700;
    cursor:pointer;text-align:left;transition:background-color .16s ease,border-color .16s ease;
  }
  body.premium-inner .premium-catalog .catalog-mobile-filter-toggle:hover,
  body.premium-inner .premium-catalog .catalog-mobile-filter-toggle:focus-visible {
    background:#223c5b;border-color:#8abaff;
  }
  body.premium-inner .premium-catalog .catalog-mobile-filter-toggle:focus-visible {
  border-color: #a8d2ff;
}
  body.premium-inner .premium-catalog .catalog-mobile-filter-results {
    color:#afc7e4;font-size:13px;font-weight:500;
  }
  body.premium-inner .premium-catalog .catalog-filter-fields {
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-column:1/-1;
    align-items:end;min-width:0;
  }
  body.premium-inner .premium-catalog .catalog-filter-fields[hidden] {display:none!important}
  body.premium-inner .premium-catalog .catalog-filter-fields .field {grid-column:auto;min-width:0}
  body.premium-inner .premium-catalog .catalog-filter-fields .filter-actions {grid-column:1/-1}
}
@media(max-width:520px) {
  body.premium-inner .premium-catalog .catalog-filter-fields {grid-template-columns:minmax(0,1fr)}
}
/* Compact two-column game tiles: price and fixed 108px Buy always use rows,
   independent of price length; no hover-induced layout movement. */
/* MOBILE-CARD-PRICE-ACTION-02: once a game tile occupies the full row,
 * always keep its price at the left and Buy at the right. The previous
 * 350–530px container rule stacked both controls after the grid breakpoint
 * changed to one card per row; this applies to all shared storefront lists. */
@container game-list (max-width: 619px) {
  body .storefront-game-grid .product-tile .product-tile-bottom,
  body.premium-home .storefront-game-grid .home-game-card.product-tile .product-tile-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: stretch;
    gap: 10px;
  }
  body .storefront-game-grid .product-tile .product-tile-price {
    min-width: 0;
    width: auto;
    grid-column: 1;
  }
  body .storefront-game-grid .product-tile .product-tile-bottom > .product-tile-add-form,
  body .storefront-game-grid .product-tile .product-tile-bottom > .product-tile-action {
    grid-column: 2;
    justify-self: end;
    align-self: center;
    margin: 0;
  }
}
/* Mobile genres: one readable artwork banner with visible description. */
@media(max-width:640px) {
  body.premium-inner .genres-showcase-grid {grid-template-columns:minmax(0,1fr);gap:12px}
  
  :is(body.premium-inner,body.premium-home) .genres-showcase-card-copy strong {overflow-wrap:anywhere;
  }
  :is(body.premium-inner,body.premium-home) .genres-showcase-card-copy small {
    display:-webkit-box;max-width:310px;
  }
}
@media(prefers-reduced-motion:reduce) {
  body.premium-inner .premium-catalog .catalog-mobile-filter-toggle {transition:none}
}


/* UIUX-REDESIGN-05: collection pages, legible controls and robust touch targets.
   Scoped to collection routes; do not change shared product/card purchase behavior. */
body.premium-inner .premium-collection-hero h1 {
  overflow-wrap: anywhere;
  text-wrap: balance;
}
body.premium-inner .premium-collection-description {
  font-size: 15px;
  line-height: 1.65;
}
body.premium-inner .premium-collection-sort label {
  font-size: 13px;
}
body.premium-inner .premium-collection-sort :is(select, button) {
  min-height: 44px;
  font-size: 14px;
}
body.premium-inner .premium-collection-page-arrow {
  min-height: 44px;
  font-size: 13px;
}
body.premium-inner .premium-collection-guide p {
  font-size: 14px;
}
body.premium-inner .premium-collection-guide-links a {
  min-height: 44px;
  font-size: 13px;
  text-underline-offset: 3px;
}
body.premium-inner .premium-collection :is(
  .premium-collection-guide-links a,
  .premium-collection-page-arrow:not(.is-disabled),
  .catalog-load-more
):focus-visible {
  border-color: #b7d6ff;
}
@media (max-width: 650px) {
  body.premium-inner .premium-collection-sort {
    align-items: stretch;
    gap: 10px;
  }
  body.premium-inner .premium-collection-sort label {
    flex: 0 0 100%;
    margin: 0;
  }
  body.premium-inner .premium-collection-sort select {
    font-size: 16px;
    flex: 1 1 190px;
  }
  body.premium-inner .premium-collection-sort button {
    flex: 0 0 auto;
  }
  
}
@media (max-width: 360px) {
  body.premium-inner .premium-collection-sort button {
    flex: 1 1 100%;
  }
}


/* UIUX-REDESIGN-05 completion: explicit empty state and compact pagination. */
body.premium-inner .premium-collection-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-block: 22px 28px;
  padding: 24px;
  border: 1px solid #30445d;
  border-radius: 10px;
  background: #101e2e;
}
body.premium-inner .premium-collection-empty-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #192e48;
  color: #a7cfff;
  font-size: 25px;
}
body.premium-inner .premium-collection-empty > div {
  flex: 1 1 230px;
  min-width: 0;
}
body.premium-inner .premium-collection-empty strong {
  display: block;
  color: #edf5ff;
  font-size: 16px;
  line-height: 1.4;
}
body.premium-inner .premium-collection-empty p {
  margin: 7px 0 0;
  max-width: 660px;
  color: #b6c7dc;
  font-size: 14px;
  line-height: 1.55;
}
body.premium-inner .premium-collection-empty > a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #3c75c5;
  border-radius: 10px;
  background: #1a4e92;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
body.premium-inner .premium-collection-empty > a:hover {
  background: #2467b5;
}
body.premium-inner .premium-collection-empty > a:focus-visible {
  border-color: #b7d6ff;
}
body.premium-inner .premium-collection-page-status {
  white-space: normal;
  text-align: center;
  line-height: 1.5;
}
@media (max-width: 600px) {
  body.premium-inner .premium-collection-empty > a {
    flex: 1 1 100%;
  }
  
}


/* UIUX-REDESIGN-06: catalog search/filter/result hierarchy.
   Only catalog presentation; existing GET, progressive enhancement, pricing
   and purchase actions retain their current behavior. */
body.premium-inner .premium-catalog-hero h1 {
  overflow-wrap: anywhere;
  text-wrap: balance;
}
body.premium-inner .premium-catalog-hero p {
  font-size: 15px;
  line-height: 1.65;
}
body.premium-inner .premium-catalog-filter-panel {
  min-width: 0;
  background: #101e2d;
  border-color: #344961;
}
body.premium-inner .premium-catalog-filter-head {
  flex-wrap: wrap;
}
body.premium-inner .premium-catalog-filter-head strong {
  font-size: 16px;
  line-height: 1.4;
}
body.premium-inner .premium-catalog-filter-head a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  text-underline-offset: 3px;
}
body.premium-inner .premium-catalog .catalog-filters .field span {
  color: #b9cce3;
  font-size: 13px;
  line-height: 1.4;
}
body.premium-inner .premium-catalog .catalog-filters :is(input, select) {
  min-height: 44px;
  font-size: 16px;
}
body.premium-inner .premium-catalog .filter-actions :is(button, a) {
  min-height: 44px;
  font-size: 14px;
  white-space: normal;
  text-align: center;
}
body.premium-inner .premium-catalog-results-head {
  min-width: 0;
  gap: 8px 16px;
  padding-block: 4px;
}
body.premium-inner .premium-catalog-results-head h2 {
  font-size: 24px;
  line-height: 1.35;
  text-wrap: balance;
}
body.premium-inner .premium-catalog-results-head p {
  color: #c2d3e8;
  font-size: 13px;
}
body.premium-inner .premium-catalog .empty-state-card {
  margin-block: 20px;
  padding: 24px;
  border: 1px solid #344a64;
  border-radius: 10px;
  background: #101e2d;
}
body.premium-inner .premium-catalog .empty-state-card h3 {
  color: #edf5ff;
  font-size: 18px;
  line-height: 1.4;
}
body.premium-inner .premium-catalog .empty-state-card p {
  color: #b9cce3;
  font-size: 14px;
  line-height: 1.6;
}
body.premium-inner .premium-catalog .empty-state-card .secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
}
body.premium-inner .premium-catalog :is(
  .premium-catalog-filter-head a,
  .catalog-filters input,
  .catalog-filters select,
  .catalog-filters button,
  .catalog-filters .reset-link,
  .empty-state-card a
):focus-visible {
  border-color: #b7d6ff;
}
@media (max-width: 800px) {
  body.premium-inner .premium-catalog .catalog-filters :is(input, select) {
    font-size: 16px;
  }
  body.premium-inner .premium-catalog .catalog-mobile-filter-results {
    font-size: 13px;
    line-height: 1.4;
  }
}
@media (max-width: 520px) {
  
  
  body.premium-inner .premium-catalog-results-head {
    align-items: flex-start;
  }
  body.premium-inner .premium-catalog .filter-actions :is(button, a) {
    flex: 1 1 130px;
  }
}

/* SEO-12: one unobtrusive reading system for public editorial content. */
body.premium-inner .storefront-editorial {
  box-sizing: border-box;
  width: 100%;
  max-width: 940px;
  margin-inline: auto;
}
body.premium-inner :is(.premium-collection-guide, .seo-context-panel).storefront-editorial {
  margin-top: 32px;
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid #2c435e;
  border-radius: 10px;
  background: transparent;
}
body.premium-inner .storefront-editorial :is(h2, h3) {
  text-wrap: balance;
  overflow-wrap: anywhere;
}
body.premium-inner .storefront-editorial p,
body.premium-inner .storefront-editorial .seo-editorial-topic p {
  max-width: 78ch;
  margin: 0 0 12px;
  color: #bfd1e6;
  font-size: 15px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
body.premium-inner .storefront-editorial .seo-editorial-topic {
  margin-top: 22px;
  padding-top: 18px;
}
body.premium-inner .storefront-editorial :is(.seo-context-links, .premium-collection-guide-links) a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 14px;
  text-underline-offset: 3px;
}
body.premium-inner .catalog-search-guidance {
  margin: 0 0 17px;
  padding: 1px 0 1px 13px;
  border-left: 2px solid #517ba9;
  color: #b8cbe1;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
body.premium-home .home-seo-copy.storefront-editorial > .container {
  max-width: 940px;
}
body.premium-home .home-seo-copy.storefront-editorial .home-seo-copy-grid p {
  max-width: 78ch;
}
@media (max-width: 600px) {
  :where(html:not(.storefront-no-outline)) body.premium-inner :is(.premium-collection-guide, .seo-context-panel).storefront-editorial {
    margin-top: 24px;
    padding-top: 18px;}
  :where(html:not(.storefront-no-outline)) body.premium-inner .storefront-editorial p,
  :where(html:not(.storefront-no-outline)) body.premium-inner .storefront-editorial .seo-editorial-topic p {
    font-size: 14px;}
  
}


/* CATEGORY-DIRECTORY-02: dedicated category grid; other entity hubs untouched. */
body.premium-inner .category-directory {padding:24px 0 72px}
body.premium-inner .category-directory-intro {max-width:800px;margin-bottom:9px;gap:12px}
body.premium-inner .category-directory-intro h1 {
  margin:0;color:#f2f7ff;font-size:36px;
  line-height:1.12;letter-spacing:-.04em
}
body.premium-inner .category-directory-intro p {
  margin:0;max-width:720px;color:#aec2dc;font-size:14px;line-height:1.65
}
body.premium-inner .category-directory-grid {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;align-items:stretch
}
body.premium-inner .category-directory-card {
  box-sizing:border-box;display:flex;flex-direction:column;min-width:0;min-height:140px;
  padding:18px 20px 16px;border:1px solid #2c435c;border-top:2px solid #4778ba;
  border-radius:10px;background:#111d2c;color:#eff6ff;text-decoration:none;
  box-shadow:none;transition:background-color .16s ease,border-color .16s ease
}
body.premium-inner .category-directory-card:hover {
  background:#17283c;border-color:var(--m2-card-hover-border);color:#fff
}
body.premium-inner .category-directory-card:focus-visible {
  border-color:var(--m2-card-hover-border);color:#fff
}
body.premium-inner .category-directory-card-title {
  display:block;color:#f0f6ff;font-size:18px;font-weight:750;line-height:1.32;
  letter-spacing:-.02em;overflow-wrap:anywhere;hyphens:auto
}
body.premium-inner .category-directory-card-footer {
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:8px 14px;margin-top:auto;padding-top:15px
}
body.premium-inner .category-directory-card-count {
  color:#a8bfdc;font-size:12px;font-weight:500;line-height:1.4;white-space:nowrap
}
body.premium-inner .category-directory-card-action {
  color:#aacfff;font-size:12px;font-weight:700;line-height:1.4;white-space:nowrap
}
body.premium-inner .category-directory-card:is(:hover,:focus-visible) .category-directory-card-action {
  color:#fff
}
@media(max-width:1140px) {
  body.premium-inner .category-directory-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:800px) {
  body.premium-inner .category-directory-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));gap:12px
  }
}
@media(max-width:530px) {
  body.premium-inner .category-directory-grid {
    grid-template-columns:minmax(0,1fr);gap:11px
  }
}
@media(prefers-reduced-motion:reduce) {
  body.premium-inner .category-directory-card {transition:none}
}

/* DEVELOPER-DIRECTORY-ART-01 — studio-specific media cards.
   Categories retain their existing simple text cards; no shadows or inline
   image URLs. Game covers are lazy and the initials render before they load. */
body.premium-inner .category-directory-card.developer-directory-card {
  min-height:228px;
  padding:0;
  border:1px solid #31506c;
  border-radius:10px;
  overflow:hidden;
  background:#101c2d;
}
body.premium-inner .category-directory-card.developer-directory-card:hover {
  background:#142539;
  border-color:var(--m2-card-hover-border);
  color:#fff;
}
body.premium-inner .developer-directory-card-media {
  --dev-glow:rgba(54,119,179,.40);
  position:relative;
  isolation:isolate;
  display:block;
  width:100%;
  height:136px;
  flex:0 0 136px;
  overflow:hidden;
  background:
    radial-gradient(ellipse at 78% 18%,var(--dev-glow),transparent 65%),
    linear-gradient(145deg,#172c43 0%,#0b1727 72%,#102a40 100%);
}
body.premium-inner .developer-directory-tone-1 {--dev-glow:rgba(46,150,159,.36)}
body.premium-inner .developer-directory-tone-2 {--dev-glow:rgba(86,100,180,.38)}
body.premium-inner .developer-directory-tone-3 {--dev-glow:rgba(50,118,162,.48)}
body.premium-inner .developer-directory-tone-4 {--dev-glow:rgba(122,85,173,.32)}
body.premium-inner .developer-directory-tone-5 {--dev-glow:rgba(43,142,127,.36)}
body.premium-inner .developer-directory-card-media::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.34;
  background:
    linear-gradient(130deg,transparent 0 24%,rgba(142,205,239,.16) 24.1% 24.5%,transparent 24.6%),
    repeating-linear-gradient(148deg,transparent 0 39px,rgba(135,185,219,.07) 40px,transparent 41px 80px);
}
body.premium-inner .developer-directory-card-initials {
  position:absolute;
  inset:0;
  z-index:1;
  display:grid;
  place-items:center;
  font-size:42px;
  font-weight:800;
  letter-spacing:.08em;
  color:rgba(188,226,252,.45);
  text-transform:uppercase;
  user-select:none;
  line-height:1;
}
body.premium-inner .developer-directory-card-media > img {
  position:absolute;
  z-index:2;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  filter:brightness(.86);
}
body.premium-inner .developer-directory-card-media > img[hidden] {display:none}
body.premium-inner .developer-directory-card-media::after {
  content:"";
  position:absolute;
  z-index:3;
  inset:0;
  pointer-events:none;
  background:linear-gradient(0deg,rgba(7,17,29,.22),transparent 70%);
}
body.premium-inner .developer-directory-card-copy {
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  min-width:0;
  gap:9px;
  padding:14px 16px 15px;
  background:linear-gradient(120deg,#14253a,#0e1b2c);
}
body.premium-inner .developer-directory-card .category-directory-card-title {
  color:#f1f7ff;
  font-size:17px;
  font-weight:700;
  line-height:1.35;
}
body.premium-inner .developer-directory-card .category-directory-card-footer {
  align-items:center;
  margin-top:auto;
  padding-top:0;
  gap:10px 12px;
}
body.premium-inner .developer-directory-card .category-directory-card-count {
  color:#e2eeff;
  font-size:16px;
  font-weight:700;
  line-height:1.35;
}
body.premium-inner .developer-directory-card .category-directory-card-action {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:8px 14px;
  border:1px solid #5b91c6;
  border-radius:10px;
  background:#214c73;
  color:#f3f8ff;
  font-size:13px;
  font-weight:700;
  line-height:1.3;
  text-align:center;
  white-space:nowrap;
  transition:background-color .16s ease,border-color .16s ease;
}
body.premium-inner .developer-directory-card:is(:hover,:focus-visible) .category-directory-card-action {
  background:#2c6594;
  border-color:#9cc8f4;
  color:#fff;
}
@media(prefers-reduced-motion:reduce) {
  body.premium-inner .developer-directory-card .category-directory-card-action {transition:none}
}
@media(max-width:800px) {
  body.premium-inner .category-directory-card.developer-directory-card {min-height:216px}
  body.premium-inner .developer-directory-card-media {height:124px;flex-basis:124px}
}
@media(max-width:530px) {
  body.premium-inner .category-directory-card.developer-directory-card {min-height:205px}
  body.premium-inner .developer-directory-card-media {height:116px;flex-basis:116px}
}


/* CATEGORY-INFINITE-03: batch sentinel, while SEO/keyboard SSR paging remains available. */
body.premium-inner .category-directory .category-directory-more {margin:18px 0 0}
body.premium-inner .category-directory.catalog-infinite-enabled .category-directory-more {
  min-height:36px
}

/* The home carousel is outside the shared grid; keep the same lightweight
   cover visible while Steam loads. Shared grid and tile rules above carry
   the background at their original (higher) specificity. */
body.premium-home .home-carousel-slide .game-card-media {
  background-color: #091a2b;
  background-image: linear-gradient(rgba(9, 26, 43, .14), rgba(9, 26, 43, .14)), url("../img/default-game.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Apply the same 14% dimming when the brand cover becomes the actual img
   src (missing Steam artwork or failed download). Real game covers never
   match this selector and retain their original colors/brightness. */
img[src*="/assets/img/default-game.webp"] {
  filter: brightness(.86);
}


/* UIUX-CARD-DESIGN-A-06 — actual Variant A cascade ownership.
   Legacy .home-game-card selectors in premium-dark/compact/home have higher
   specificity than the generic product tile. These exact selectors constrain
   ONLY shared game tiles and keep the homepage visually identical to catalog
   and collections. No !important, transforms, shadows or global button edits. */
body.premium-home .storefront-game-grid > .home-game-card.product-tile:not(.home-carousel-slide) {
  background: #0b1b2c;
  background-image:
    radial-gradient(120% 100% at 58% 0%, rgba(64, 129, 197, .19) 0%, rgba(64, 129, 197, 0) 66%),
    linear-gradient(160deg, #102941 0%, #0e2339 53%, #091a2d 100%);
  border: 1px solid #31506e;
  border-radius: 10px;
  box-shadow: none;
}
body.premium-home .storefront-game-grid > .home-game-card.product-tile:not(.home-carousel-slide):is(:hover, :focus-visible, :has(:focus-visible)) {
  background: #0b1b2c;
  background-image:
    radial-gradient(120% 100% at 58% 0%, rgba(64, 129, 197, .19) 0%, rgba(64, 129, 197, 0) 66%),
    linear-gradient(160deg, #102941 0%, #0e2339 53%, #091a2d 100%);
  border-color: #5d87b6;
  box-shadow: none;
}

/* Shared game-cover surface: the finalized 6px inset below preserves the
   Steam aspect ratio and fallback across home, catalog and collections. */
body .storefront-game-grid .product-tile .product-tile-cover,
body.premium-home .storefront-game-grid .home-game-card.product-tile .game-card-media.product-tile-cover,
body.premium-home :is(#recent-releases, #popular-new, #preorders, #top-sellers) .storefront-game-grid .home-game-card.product-tile .game-card-media.product-tile-cover {
  box-sizing: content-box;
  aspect-ratio: 460 / 215;
  background-origin: content-box;
  background-clip: content-box;
  background-color: transparent;
}
body .storefront-game-grid .product-tile .product-tile-image-link {
  border-radius: 10px;
  overflow: hidden;
}
body .storefront-game-grid .product-tile .product-tile-cover img {
  border-radius: 10px;
}

/* Legacy home .game-card-body and ID-specific preorder rules must not pad
   the title to a full unused second row. Align title centrally between cover
   and inset purchase divider; allow two real lines when necessary. */
body .storefront-game-grid .product-tile .product-tile-body,
body.premium-home .storefront-game-grid .home-game-card.product-tile .game-card-body.product-tile-body,
body.premium-home :is(#recent-releases, #popular-new, #preorders, #top-sellers) .storefront-game-grid .home-game-card.product-tile .game-card-body.product-tile-body {
  min-height: 0;
  padding: 6px 12px;
  gap: 0;
  justify-content: center;
  background: transparent;
}
body .storefront-game-grid .product-tile .product-tile-title,
body.premium-home .storefront-game-grid .home-game-card.product-tile .game-card-body > .product-tile-title,
body.premium-home :is(#recent-releases, #popular-new, #preorders, #top-sellers) .storefront-game-grid .home-game-card.product-tile .game-card-body > .product-tile-title {
  min-height: 0;
  max-height: 2.52em;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.26;
  margin: 0;
  -webkit-line-clamp: 2;
}

/* Compact 138px Variant A Buy (42px high), not the earlier oversized
   45%-width/44px control. Product detail controls keep their 108px sizing. */
body .storefront-game-grid .product-tile .product-tile-bottom > .product-tile-add-form {
  flex: 0 1 138px;
  width: 138px;
  min-width: 0;
  max-width: 138px;
  margin: 0;
}
body .storefront-game-grid .product-tile .product-tile-bottom > .product-tile-add-form > .product-tile-action.storefront-buy-action {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 42px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
}
body .storefront-game-grid .product-tile .product-tile-bottom > .product-tile-action {
  flex: 0 1 138px;
  width: 138px;
  min-width: 0;
  max-width: 138px;
  height: 42px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
}
/* Cover controls match the reference relative size; retain the 44px
   clickable wishlist target and existing new/preorder business semantics. */
body .storefront-game-grid .product-tile .product-tile-cover .storefront-game-badge {
  height: 29px;
  min-height: 29px;
  padding: 2px 10px 0;
  border-radius: 10px;
}
body .storefront-game-grid .product-tile .product-tile-cover .wishlist-toggle::before {
  inset: 2px;
  border-radius: 10px;
}
body .storefront-game-grid .product-tile .product-tile-cover .wishlist-toggle svg {
  width: 20px;
  height: 20px;
}
@container game-list (max-width: 480px) {
  body .storefront-game-grid .product-tile .product-tile-body,
  body.premium-home .storefront-game-grid .home-game-card.product-tile .game-card-body.product-tile-body,
  body.premium-home :is(#recent-releases, #popular-new, #preorders, #top-sellers) .storefront-game-grid .home-game-card.product-tile .game-card-body.product-tile-body {
    min-height: 0;
  }
  body .storefront-game-grid .product-tile .product-tile-title,
  body.premium-home .storefront-game-grid .home-game-card.product-tile .game-card-body > .product-tile-title,
  body.premium-home :is(#recent-releases, #popular-new, #preorders, #top-sellers) .storefront-game-grid .home-game-card.product-tile .game-card-body > .product-tile-title {
    min-height: 0;
  }
  body .storefront-game-grid .product-tile .product-tile-bottom > .product-tile-add-form,
  body .storefront-game-grid .product-tile .product-tile-bottom > .product-tile-action {
    max-width: 100%;
  }
  body .storefront-game-grid .product-tile .product-tile-image-link,
  body .storefront-game-grid .product-tile .product-tile-cover img {
    border-radius: 10px;
  }
}

/* UIUX-CARD-DESIGN-A-08: the article carries ONE uninterrupted gradient.
   No opaque title/footer bands; no horizontal stripe. The artwork is inset
   by 2px on ALL sides. Rounded fallback and real img live in the same link.
   An image has to paint that entire link even when its intrinsic aspect ratio
   differs slightly; the full-image letterbox previously exposed fallback art
   as colored strips and mismatched the upper card corners.
   Do not use shadows or change the detail-page/cart button. */
body .storefront-game-grid > .product-tile,
body.premium-home .storefront-game-grid > .home-game-card.product-tile:not(.home-carousel-slide) {
  background-color: #0b1b2c;
  background-image:
    radial-gradient(125% 105% at 15% 15%, rgba(68, 137, 210, .25) 0%, rgba(68, 137, 210, 0) 70%),
    linear-gradient(158deg, #193552 0%, #112a44 49%, #0a1b2e 100%);
  box-shadow: none;
}
body .storefront-game-grid > .product-tile:is(:hover, :focus-visible, :has(:focus-visible)),
body.premium-home .storefront-game-grid > .home-game-card.product-tile:not(.home-carousel-slide):is(:hover, :focus-visible, :has(:focus-visible)) {
  background-color: #0b1b2c;
  background-image:
    radial-gradient(125% 105% at 15% 15%, rgba(68, 137, 210, .25) 0%, rgba(68, 137, 210, 0) 70%),
    linear-gradient(158deg, #193552 0%, #112a44 49%, #0a1b2e 100%);
  box-shadow: none;
}
body .storefront-game-grid .product-tile .product-tile-cover,
body.premium-home .storefront-game-grid .home-game-card.product-tile .game-card-media.product-tile-cover,
body.premium-home :is(#recent-releases, #popular-new, #preorders, #top-sellers) .storefront-game-grid .home-game-card.product-tile .game-card-media.product-tile-cover {
  box-sizing: border-box;
  aspect-ratio: 460 / 215;
  padding: 6px;
  border-radius: 10px;
  background-color: transparent;
  background-image: none;
}
/* Public UI radius contract: 10px for card, cover, image and fallback.
   The 6px image inset is independent of the border-radius value. */
body .storefront-game-grid .product-tile .product-tile-image-link,
body .storefront-game-grid .product-tile .product-tile-cover img {
  border-radius: 10px;
}
/* The legacy contain rule letterboxes covers with a slightly different
   source aspect ratio (or a 2px inset), revealing the fallback behind them.
   Restrict cover to listing tiles: product detail / carousel remain contain. */
body .storefront-game-grid .product-tile .product-tile-cover img,
body.premium-home .storefront-game-grid .home-game-card.product-tile .game-card-media.product-tile-cover img,
body.premium-home :is(#recent-releases, #popular-new, #preorders, #top-sellers) .storefront-game-grid .home-game-card.product-tile .game-card-media.product-tile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
body .storefront-game-grid .product-tile .product-tile-cover .product-tile-badge {
  top: 12px;
  left: 12px;
}
body .storefront-game-grid .product-tile .product-tile-bottom,
body.premium-home .storefront-game-grid .home-game-card.product-tile .product-tile-bottom {
  background: transparent;
  background-image: none;
  border-top: 0;
}
body .storefront-game-grid .product-tile .product-tile-bottom::before {
  content: none;
}
/* UIUX-CARD-FAVORITE-CORNER-12 / HITBOX-13: badge remains upper-left.
   The 30px visible face IS the click target; no invisible 44px hit area.
   Place it 10px from top/right with 6px cover inset; 16px heart,
   detail hearts and wishlist JS unchanged. */
body .storefront-game-grid .product-tile .product-tile-cover > .wishlist-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: auto;
  left: auto;
  z-index: 6;
  width: 30px;
  height: 30px;
  margin: 0;
  pointer-events: auto;
}
body .storefront-game-grid .product-tile .product-tile-cover > .wishlist-toggle::before {
  inset: 0;
  border-radius: 10px;
}
body .storefront-game-grid .product-tile .product-tile-cover > .wishlist-toggle svg {
  width: 16px;
  height: 16px;
}

/* UIUX-ENTITY-CARDS-GRADIENT-01: same two-layer painted surface as product
   tiles, scoped to categories/developers/publishers/platforms index pages.
   Preserve developer cover art, original links, counts and progressive lists. */
body.premium-inner .entity-directory :is(.category-directory-card, .entity-hub-card) {
  background-color: #0b1b2c;
  background-image:
    radial-gradient(125% 105% at 15% 15%, rgba(68, 137, 210, .25) 0%, rgba(68, 137, 210, 0) 70%),
    linear-gradient(158deg, #193552 0%, #112a44 49%, #0a1b2e 100%);
  border: 1px solid #31506e;
  border-radius: 10px;
  box-shadow: none;
}
body.premium-inner .entity-directory :is(.category-directory-card, .entity-hub-card):is(:hover, :focus-visible, :has(:focus-visible)) {
  background-color: #0b1b2c;
  background-image:
    radial-gradient(125% 105% at 15% 15%, rgba(68, 137, 210, .25) 0%, rgba(68, 137, 210, 0) 70%),
    linear-gradient(158deg, #193552 0%, #112a44 49%, #0a1b2e 100%);
  border-color: #5d87b6;
  box-shadow: none;
}
/* Studio artwork keeps its individual fallback illustration; the lower
   title/count/action panel becomes transparent to the ONE parent gradient. */
body.premium-inner .entity-directory .developer-directory-card-copy {
  background: transparent;
}
/* Categories get the same legible count + button-like action already used
   for studios. The entire category tile remains one semantic link. */
body.premium-inner .entity-directory .category-directory-card:not(.developer-directory-card) .category-directory-card-count {
  color: #e2eeff;
  font-size: 15px;
  font-weight: 700;
}
body.premium-inner .entity-directory .category-directory-card:not(.developer-directory-card) .category-directory-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #5b91c6;
  border-radius: 10px;
  background: #214c73;
  color: #f3f8ff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
body.premium-inner .entity-directory .category-directory-card:not(.developer-directory-card):is(:hover, :focus-visible) .category-directory-card-action {
  background: #2c6594;
  border-color: #9cc8f4;
  color: #fff;
}
/* Publishers/platforms retain the existing server-rendered entity-hub
   markup, pagination and two real links, but share directory spacing. */
body.premium-inner .entity-directory .entity-hub-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
body.premium-inner .entity-directory .entity-hub-grid > .entity-hub-card {
  box-sizing: border-box;
  min-width: 0;
  min-height: 152px;
  padding: 18px 20px 16px;
  gap: 12px;
}
body.premium-inner .entity-directory .entity-hub-card h2 {
  font-size: 18px;
  font-weight: 750;
  line-height: 1.32;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
body.premium-inner .entity-directory .entity-hub-card h2 a {
  color: #f0f6ff;
  text-decoration: none;
}
body.premium-inner .entity-directory .entity-hub-card h2 a:is(:hover, :focus-visible) {
  color: #fff;
}
body.premium-inner .entity-directory .entity-hub-card p {
  color: #e2eeff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
body.premium-inner .entity-directory .entity-hub-card .entity-hub-link {
  box-sizing: border-box;
  align-self: flex-start;
  margin-top: auto;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #5b91c6;
  border-radius: 10px;
  background: #214c73;
  color: #f3f8ff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
body.premium-inner .entity-directory .entity-hub-card .entity-hub-link:is(:hover, :focus-visible) {
  background: #2c6594;
  border-color: #9cc8f4;
  color: #fff;
}
@media (max-width: 800px) {
  body.premium-inner .entity-directory .entity-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  body.premium-inner .entity-directory .entity-hub-grid > .entity-hub-card {
    min-height: 142px;
  }
}
@media (max-width: 640px) {
  body.premium-inner .entity-directory .entity-hub-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
  }
  body.premium-inner .entity-directory .entity-hub-grid > .entity-hub-card {
    min-height: 136px;
  }
}

/* INNER-BREADCRUMB-TOP-01 — one top rhythm for breadcrumb-led inner pages.
 * The collection header is the reference (20px desktop / 15px mobile).
 * Select only direct section/container breadcrumbs; homepage and sections
 * without breadcrumbs retain their existing spacing and behavior.
 * Keep this below the page-specific padding rules in the shared grid layer. */
body.premium-inner .site-main > section.section:has(> .container > .genres-showcase-crumbs) {
  padding-top: 20px;
}


/* HOME-GENRE-GRID-SHARED-01: only grid selection differs from /genres/. */
body.premium-home .home-category-section > .container {
  container-type: inline-size;
  container-name: home-genres;
}
@container home-genres (max-width: 1060px) {
  body.premium-home .home-category-section .home-genre-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@container home-genres (max-width: 750px) {
  body.premium-home .home-category-section .home-genre-preview-grid {gap:11px;}
}
@container home-genres (max-width: 640px) {
  body.premium-home .home-category-section .home-genre-preview-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

/* HOME-COMPLETE-ROWS-01: a ninth REAL candidate fills 3-column rows.
 * Four/two/one-column previews show at most eight. Suppress a partial
 * trailing row when more than one row of genuine candidates exists;
 * never create placeholder games or genre links. */
body.premium-home .home-game-section .storefront-game-grid > :nth-child(n+9) { display: none; }
@container game-list (min-width: 1060px) {
  body.premium-home .home-game-section .storefront-game-grid:has(> :nth-child(4)):has(> :last-child:nth-child(4n+1)) > :last-child,
  body.premium-home .home-game-section .storefront-game-grid:has(> :nth-child(4)):has(> :last-child:nth-child(4n+2)) > :nth-last-child(-n+2),
  body.premium-home .home-game-section .storefront-game-grid:has(> :nth-child(4)):has(> :last-child:nth-child(4n+3)) > :nth-last-child(-n+3) {
    display: none;
  }
}
@container game-list (min-width: 780px) and (max-width: 1059px) {
  body.premium-home .home-game-section .storefront-game-grid > :nth-child(9) { display: flex; }
  body.premium-home .home-game-section .storefront-game-grid:has(> :nth-child(3)):has(> :last-child:nth-child(3n+1)) > :last-child,
  body.premium-home .home-game-section .storefront-game-grid:has(> :nth-child(3)):has(> :last-child:nth-child(3n+2)) > :nth-last-child(-n+2) {
    display: none;
  }
}
@container game-list (min-width: 620px) and (max-width: 779px) {
  body.premium-home .home-game-section .storefront-game-grid:has(> :nth-child(2)) > :last-child:nth-child(2n+1) { display: none; }
}

/* HOME-GENRE-COMPLETE-ROWS-01: genuine genres only; show 9/8/8 at 3/2/1. */
@container home-genres (min-width: 1061px) {
  body.premium-home .home-genre-preview-grid:has(> :nth-child(3)):has(> :last-child:nth-child(3n+1)) > :last-child,
  body.premium-home .home-genre-preview-grid:has(> :nth-child(3)):has(> :last-child:nth-child(3n+2)) > :nth-last-child(-n+2) { display:none; }
}
@container home-genres (min-width: 641px) and (max-width: 1060px) {
  body.premium-home .home-genre-preview-grid > :nth-child(n+9),
  body.premium-home .home-genre-preview-grid:has(> :nth-child(2)) > :last-child:nth-child(2n+1) { display:none; }
}
@container home-genres (max-width: 640px) {
  body.premium-home .home-genre-preview-grid > :nth-child(n+9) { display:none; }
}
