/* The existing catalog/feed uses the PC storefront's card layout from 1024px. */
.home-catalog-view-all { display: none; }
.home-pc-utility-slot { display: none; }
.home-pc-utility-slot[hidden] { display: none !important; }

@media (min-width: 1024px) {
  .home-route .home-catalog.all-games-section { width: min(var(--home-pc-width, 1600px), calc(100% - var(--home-pc-gutter, 80px))); min-width: 0; margin: 0 auto; padding: 0; border: 0; background: transparent; }
  .home-route .home-catalog [hidden] { display: none !important; }
  .home-route .home-catalog .home-games-panel { position: relative; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .home-route .home-catalog .home-section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 44px; margin: 0 0 14px; padding: 0; border: 0; }
  .home-route .home-catalog .home-section-heading h2 { display: block; min-width: 0; margin: 0; color: #f3f3f7; font-size: 25px; font-weight: 650; letter-spacing: -.3px; line-height: 1.35; }
  .home-route .home-catalog h2 .home-desktop-label { display: inline; }
  .home-route .home-catalog .home-mobile-label,
  .home-route .home-catalog .mobile-catalog-count,
  .home-route .home-catalog .mobile-filter-toggle,
  .home-route .home-catalog .shop-results,
  .home-route .home-catalog .home-heading-icon { display: none; }
  .home-route .home-catalog a.home-catalog-view-all { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 8px; min-height: 44px; margin-left: auto; color: #65d8f2; font-size: 14px; line-height: 1.5; white-space: nowrap; }
  .home-route .home-catalog a.home-catalog-view-all:hover { color: #b4f3ff; text-decoration: underline; text-underline-offset: 4px; }
  .home-route .home-catalog .home-catalog-view-all > svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .home-route .home-catalog .mobile-filter-summary { display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; margin: 0 0 16px; padding-left: 12px; border: 1px solid #3a3a45; border-radius: 7px; background: #1b1b22; color: #c8c8d4; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
  .home-route .home-catalog .mobile-filter-summary > a { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; color: #e6e6ed; font-size: 24px; }

  .home-route .home-catalog .home-game-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: stretch; gap: 28px 18px; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; }
  .home-route .home-catalog .home-pc-utility-slot { display: block; grid-column: 1 / -1; min-width: 0; }
  .home-route .home-catalog .home-pc-utility-slot .home-pc-utility-grid { margin-top: 0; }
  .home-route .home-catalog .home-game-card { position: relative; min-width: 0; height: auto; margin: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; transition: none; }
  .home-route .home-catalog .home-game-card:hover,
  .home-route .home-catalog .home-game-card:focus-within { border: 0; background: transparent; box-shadow: none; }
  .home-route .home-catalog .home-game-link { display: flex; flex-direction: column; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; }
  .home-route .home-catalog .home-game-artwork { position: relative; flex: 0 0 auto; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border: 0; border-radius: 6px; background: #25252d; }
  .home-route .home-catalog .home-game-artwork > picture { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
  .home-route .home-catalog .home-game-artwork img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transform: none; transition: none; }
  .home-route .home-catalog .home-game-link:hover .home-game-artwork img { filter: brightness(1.07); transform: none; }
  .home-route .home-catalog .home-game-fallback { background: linear-gradient(135deg, #2a2a36, #191920); color: #8e8e9f; }
  .home-route .home-catalog .home-game-fallback > svg { width: 32px; height: 32px; }
  .home-route .home-catalog .home-game-fallback > span { font-size: 12px; }
  .home-route .home-catalog .home-game-discount { display: none; }
  .home-route .home-catalog .home-game-info { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; margin: 0; padding: 9px 0 0; border: 0; background: transparent; }
  .home-route .home-catalog .home-game-info h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-width: 0; min-height: 2.8em; max-height: 2.8em; overflow: hidden; margin: 0; color: #ededf3; font-size: 15px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
  .home-route .home-catalog .home-card-title-desktop { display: inline; }
  .home-route .home-catalog .home-card-title-mobile,
  .home-route .home-catalog .home-game-platform { display: none; }
  .home-route .home-catalog .home-card-name-suffix { display: block; margin: 4px 0 0; color: #aaaab7; font-size: 13px; line-height: 1.5; }
  .home-route .home-catalog .home-game-meta { display: block; flex: 0 0 auto; min-width: 0; margin-top: 0; padding-top: 6px; }
  .home-route .home-catalog .home-game-price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 3px 8px; min-width: 0; margin: 0; font-variant-numeric: tabular-nums; }
  .home-route .home-catalog .home-game-price strong { color: #f1f1f5; font-size: 16px; font-weight: 650; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
  .home-route .home-catalog .home-game-price del,
  .home-route .home-catalog .home-game-price-label { color: #a7a7b4; font-size: 13px; font-weight: 400; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
  .home-route .home-catalog .home-game-price .is-free { color: #edf2ee; }
  .home-route .home-catalog .home-game-price .is-reference { color: #d6d6e0; }
  .home-route .home-catalog .home-game-price .is-unavailable { color: #a7a7b4; font-size: 14px; font-weight: 400; }
  .home-route .home-catalog :is(a, button, [tabindex]):focus-visible { outline: 2px solid #eeeef5; outline-offset: 3px; }

  .home-route .home-catalog .home-games-empty { min-height: 180px; padding: 28px 20px; border: 1px solid #353540; border-radius: 8px; background: #18181f; }
  .home-route .home-catalog .home-games-empty p { color: #b1b1bf; font-size: 15px; line-height: 1.7; }
  .home-route .home-catalog .home-games-empty a { min-height: 44px; color: #e9e9f1; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
  .home-route .home-catalog .shop-feed-footer { display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 52px; margin: 0; padding: 18px 0 12px; border: 0; background: transparent; text-align: center; }
  .home-route .home-catalog .shop-feed-status { max-width: 60ch; margin: 0; color: #a8a8b6; font-size: 14px; line-height: 1.6; }
  .home-route .home-catalog .shop-feed-status:empty { display: none; }
  .home-route .home-catalog .shop-feed-status.is-error { color: #f2b8bd; }
  .home-route .home-catalog .shop-feed-spinner { width: 22px; height: 22px; border-color: #3c3c49; border-top-color: #dedee7; }
  .home-route .home-catalog :is(.shop-load-more, .shop-feed-retry, [data-store-retry]) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin: 0; padding: 10px 18px; border: 1px solid #50505e; border-radius: 7px; background: #1b1b23; color: #e5e5ee; font: inherit; font-size: 14px; line-height: 1.5; cursor: pointer; }
  .home-route .home-catalog :is(.shop-load-more, .shop-feed-retry, [data-store-retry]):hover { border-color: #a1a1b0; background: #292933; color: #fff; }
  .home-route .home-catalog [data-store-retry]:disabled { opacity: .5; cursor: default; }
  .home-route .home-catalog .shop-feed-sentinel { width: 100%; height: 1px; }
  .home-route .home-catalog#all-games { scroll-margin-top: 88px; }

  .home-route .home-load-failure { width: min(var(--home-pc-width, 1600px), calc(100% - var(--home-pc-gutter, 80px))); min-width: 0; margin: 0 auto 28px; padding: 32px 24px; border-color: #353540; border-radius: 8px; background: #18181f; }
  .home-route .home-load-failure > svg { color: #d8d8e2; }
  .home-route .home-load-failure h2 { color: #ededf5; }
  .home-route .home-load-failure p { color: #b1b1bf; font-size: 15px; }
  .home-route .home-load-failure .home-retry { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border: 1px solid #eeeeF6; border-radius: 6px; background: #f1f1f5; color: #15151b; font-size: 14px; font-weight: 600; line-height: 1.5; text-transform: none; box-shadow: none; }
  .home-route .home-load-failure .home-retry:hover { background: #d4d4df; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .home-route .home-catalog .home-game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-route .home-catalog .home-section-heading h2 { font-size: 23px; }
}
