/* Desktop uses the homepage's shared mobile content and product data. */
@media (min-width: 768px) {
  body.home-route {
    --home-desktop-width: 1240px;
    --mobile-bg: #0c0e10;
    --mobile-surface: #16191c;
    --mobile-text: #f3f3f1;
    --mobile-muted: #a7adb4;
    --mobile-accent: #f45248;
    --mobile-line: #292d31;
    min-width: 0;
    color: var(--mobile-text);
    background: var(--mobile-bg);
  }
  .home-route main { min-width: 0; }
  .home-route .screen-red-streaks,
  .home-route .home-desktop-content,
  .home-route .mobile-home-navigation { display: none !important; }
  .home-route [data-game-cover][hidden] { display: none !important; }
  .home-route .home-mobile-intro,
  .home-route .all-games-section.shell,
  .home-route .home-load-failure { width: min(var(--home-desktop-width), calc(100% - 48px)); min-width: 0; margin-inline: auto; }
  .home-route :is(a, button, input, select, [tabindex]):focus-visible { outline: 2px solid #ffaaa0; outline-offset: 3px; }

  .home-route .site-header { position: sticky; top: 0; height: 76px; border-bottom: 1px solid var(--mobile-line); background: #0c0e10f5; box-shadow: none; backdrop-filter: blur(12px); }
  .home-route .header-inner { width: min(var(--home-desktop-width), calc(100% - 48px)); height: 100%; min-height: 76px; gap: 32px; }
  .home-route .site-header .header-brand { position: relative; flex: 0 0 auto; align-self: center; justify-content: flex-start; gap: 10px; width: auto; height: 100%; min-width: 0; margin: 0; }
  .home-route .brand-logo { position: static; flex: 0 0 50px; width: 50px; height: 50px; object-fit: contain; transform: none; filter: none; }
  .home-route .home-brand-wordmark { display: block; color: #f0f3f4; font-size: 24px; font-weight: 900; font-style: italic; line-height: 1.2; letter-spacing: -.7px; white-space: nowrap; }
  .home-route .home-brand-wordmark > span { color: #f45248; }
  .home-route .main-nav { position: static; display: flex; flex: 1 1 auto; flex-direction: row; align-items: center; justify-content: center; gap: 24px; width: auto; height: 100%; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .home-route .main-nav a { min-height: 44px; height: 100%; color: #b8bec4; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; }
  .home-route .main-nav a::after { right: 0; bottom: 0; left: 0; width: auto; height: 3px; border-radius: 3px 3px 0 0; background: #f45248; box-shadow: none; opacity: 0; transform: none; }
  .home-route .main-nav a.active, .home-route .main-nav a:hover { color: #f98479; }
  .home-route .main-nav a.active::after, .home-route .main-nav a:hover::after { width: auto; opacity: 1; }
  .home-route .header-tools { position: static; display: flex; flex: 0 0 auto; order: 3; align-items: center; gap: 8px; margin: 0; transform: none; }
  .home-route .header-tools .search-box, .home-route .home-header-search { display: none; }
  .home-route .header-tools .round-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 9px; border: 1px solid #333b42; border-radius: 10px; background: transparent; color: #e0e5e9; }
  .home-route .header-tools .round-button:hover { border-color: #ba6b62; color: #ffaaa0; transform: none; }
  .home-route .header-tools .round-button > svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .home-route .cart-count { top: -2px; right: -3px; min-width: 18px; height: 18px; padding-inline: 3px; border-color: #0c0e10; background: #d53b33; font-size: 11px; }
  .home-route .mobile-menu-toggle { display: none; }

  .home-route .home-mobile-intro { display: block; padding-top: 24px; }
  .home-route .mobile-home-search { display: flex; align-items: center; gap: 12px; min-height: 56px; margin: 0 0 20px; padding: 6px 16px; border: 1px solid #30363c; border-radius: 11px; background: #16191c; }
  .home-route .mobile-home-search > svg { flex: 0 0 24px; width: 24px; height: 24px; color: #d4dce2; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; }
  .home-route .mobile-home-search input { flex: 1 1 0; width: 100%; min-width: 0; min-height: 42px; padding: 8px 0; border: 0; background: transparent; color: #eef2f4; font: inherit; font-size: 16px; }
  .home-route .mobile-home-search input::placeholder { color: #a7afb6; opacity: 1; }
  .home-route .mobile-home-search:focus-within { border-color: #a0716c; }

  .home-route .mobile-spotlight { min-width: 0; margin: 0; }
  .home-route .mobile-spotlight-track { display: flex; width: 100%; min-width: 0; overflow-x: auto; border-radius: 12px; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; scrollbar-width: none; }
  .home-route .mobile-spotlight-track::-webkit-scrollbar { display: none; }
  .home-route .mobile-spotlight-slide { position: relative; flex: 0 0 100%; min-width: 0; height: clamp(330px, 28vw, 390px); overflow: hidden; border-radius: 12px; background: #1b242c; scroll-snap-align: start; }
  .home-route .mobile-spotlight-slide > picture, .home-route .mobile-spotlight-slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }
  .home-route .mobile-spotlight-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #080d13dc, #080d1373 47%, #080d1308 77%), linear-gradient(0deg, #070b10a6, transparent 60%); pointer-events: none; }
  .home-route .mobile-spotlight-slide:focus-visible { outline-offset: -4px; }
  .home-route .mobile-spotlight-copy { position: absolute; z-index: 1; right: 44%; bottom: 42px; left: 42px; min-width: 0; }
  .home-route .mobile-spotlight-copy > p { margin: 0 0 12px; color: #e6e9ec; font-size: 12px; font-weight: 650; letter-spacing: .16em; line-height: 1.5; }
  .home-route .mobile-spotlight-copy h2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: 14ch; overflow: hidden; margin: 0; color: #fff; font-size: clamp(36px, 4.5vw, 60px); font-weight: 800; letter-spacing: -.8px; line-height: 1.08; text-wrap: balance; overflow-wrap: anywhere; }
  .home-route .home-hero-title-desktop { display: inline; }
  .home-route .home-hero-title-mobile, .home-route .home-hero-platform { display: none; }
  .home-route .home-hero-suffix { display: block; margin-top: 12px; color: #d3dbe2; font-size: 15px; line-height: 1.5; }
  .home-route .home-spotlight-cta { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; margin-top: 22px; padding: 11px 19px; border: 1px solid #ec7c70; border-radius: 9px; background: #d53b33; color: #fff; font-size: 15px; font-weight: 650; line-height: 1.4; }
  .home-route .mobile-spotlight-slide:hover .home-spotlight-cta { background: #c6322b; }
  .home-route .mobile-spotlight-pages { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; margin: 0; }
  .home-route .mobile-spotlight-pages button { display: grid; place-items: center; width: 48px; height: 44px; padding: 0; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
  .home-route .mobile-spotlight-pages span { display: block; width: 28px; height: 3px; border-radius: 3px; background: #3b444c; }
  .home-route .mobile-spotlight-pages button[aria-current="true"] span { background: #f45248; }

  .home-route .mobile-home-categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: min(100%, 860px); margin: 0 auto 28px; }
  .home-route .mobile-category { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 78px; padding: 8px 4px 15px; color: #a7b0b8; text-align: center; }
  .home-route .mobile-category svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .home-route .mobile-category > span { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
  .home-route .mobile-category.is-selected { color: #f1f3f4; }
  .home-route .mobile-category.is-selected::after { content: ""; position: absolute; bottom: 0; width: 52px; max-width: 80%; height: 3px; border-radius: 3px; background: #f45248; }
  .home-route .mobile-category:hover { color: #ffaaa0; }

  .home-route .mobile-favorites { min-width: 0; margin-top: 12px; }
  .home-route .mobile-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; margin-bottom: 16px; }
  .home-route .mobile-section-heading h2 { min-width: 0; margin: 0; color: #f3f4f4; font-size: 26px; font-weight: 750; letter-spacing: -.4px; line-height: 1.35; }
  .home-route .mobile-section-heading > a { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; min-height: 44px; color: #b1bac2; font-size: 14px; line-height: 1.4; white-space: nowrap; }
  .home-route .mobile-section-heading > a:hover { color: #ffaaa0; }
  .home-route .mobile-section-heading > a > span { font-size: 18px; }
  .home-route .mobile-favorites-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .home-route .mobile-favorite { min-width: 0; overflow: hidden; border: 1px solid #2c3339; border-radius: 11px; background: #14191d; }
  .home-route .mobile-favorite > a { display: flex; flex-direction: column; height: 100%; }
  .home-route .mobile-favorite > a:focus-visible { outline-offset: -3px; }
  .home-route .mobile-favorite-art { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #1b232a; }
  .home-route .mobile-favorite-art img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
  .home-route .mobile-art-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: #818f9b; font-size: 14px; font-weight: 650; letter-spacing: .08em; }
  .home-route .mobile-favorite h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-width: 0; overflow: hidden; margin: 12px 14px 0; color: #edf1f4; font-size: 20px; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
  .home-route .home-favorite-title-desktop { display: inline; }
  .home-route .home-favorite-title-mobile, .home-route .mobile-product-platform { display: none; }
  .home-route .home-favorite-suffix { display: block; margin: 3px 14px 0; color: #aab5bf; font-size: 14px; line-height: 1.5; }
  .home-route .mobile-product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 8px 14px 14px; font-variant-numeric: tabular-nums; }
  .home-route .mobile-product-price strong { color: #edf1f3; font-size: 19px; font-weight: 750; line-height: 1.4; }
  .home-route .mobile-product-price del, .home-route .mobile-product-price > span { color: #a9b3bd; font-size: 14px; line-height: 1.5; }
  .home-route .mobile-product-price .is-free { color: #79ce9b; }
  .home-route .mobile-favorite:hover { border-color: #94635b; }
  .home-route .mobile-empty { margin: 0; padding: 24px 18px; border: 1px solid #2c3339; border-radius: 10px; background: #14191d; color: #aeb8c0; font-size: 15px; line-height: 1.7; }
  .home-route .mobile-empty a { display: inline-flex; align-items: center; min-height: 44px; color: #f3a79b; text-decoration: underline; text-underline-offset: 4px; }

  .home-route .mobile-home-offer { display: flex; align-items: center; gap: 16px; min-height: 64px; margin-top: 24px; padding: 10px 18px; border: 1px solid #30383f; border-radius: 11px; background: #161b1f; }
  .home-route .mobile-home-offer > svg { flex: 0 0 30px; width: 30px; height: 30px; fill: #f45248; stroke: #f45248; stroke-width: 1.2; }
  .home-route .mobile-home-offer > svg circle { fill: #161b1f; stroke: none; }
  .home-route .mobile-home-offer > span:not(.mobile-home-offer-action) { display: flex; flex: 1 1 0; flex-direction: column; min-width: 0; gap: 1px; line-height: 1.4; overflow-wrap: anywhere; }
  .home-route .mobile-home-offer strong { color: #f0f3f4; font-size: 16px; font-weight: 650; }
  .home-route .mobile-home-offer > span > span { color: #aeb9c2; font-size: 14px; }
  .home-route .mobile-home-offer .mobile-home-offer-action { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-left: auto; padding-left: 20px; border-left: 1px solid #353e46; color: #e3e9ee; font-size: 14px; line-height: 1.4; white-space: nowrap; }
  .home-route .mobile-home-offer:hover { border-color: #a47065; background: #1c2227; }

  .home-route .all-games-section { margin-top: 28px; padding-top: 0; padding-bottom: 48px; }
  .home-route .all-games-section .home-section-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 44px; margin: 0 0 18px; }
  .home-route .all-games-section .home-section-heading h2 { min-width: 0; margin: 0; color: #f2f4f4; font-size: 26px; font-weight: 750; line-height: 1.35; letter-spacing: -.4px; }
  .home-route .all-games-section .home-heading-icon,
  .home-route .all-games-section .shop-results,
  .home-route .all-games-section .mobile-catalog-count,
  .home-route .all-games-section .home-mobile-label,
  .home-route .all-games-section a.home-desktop-label { display: none; }
  .home-route .all-games-section h2 .home-desktop-label { display: inline; }
  .home-route .mobile-filter-toggle { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; margin-left: auto; padding: 9px 14px; border: 1px solid #3b454d; border-radius: 9px; background: #13191e; color: #dce4e9; cursor: pointer; }
  .home-route .mobile-filter-toggle > svg { flex: 0 0 21px; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .home-route .home-filter-label { display: inline; font-size: 14px; line-height: 1.5; }
  .home-route .mobile-filter-toggle:hover { border-color: #ad766c; color: #ffaaa0; }
  .home-route .mobile-filter-summary { display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; margin: -4px 0 16px; padding-left: 12px; border: 1px solid #343e46; border-radius: 9px; background: #151b20; color: #c6d0d8; font-size: 14px; overflow-wrap: anywhere; }
  .home-route .mobile-filter-summary > a { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; color: #dce4eb; font-size: 24px; }
  .home-route .home-game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
  .home-route .home-game-card { min-width: 0; overflow: hidden; border: 1px solid #2c3339; border-radius: 11px; background: #14191d; }
  .home-route .home-game-artwork { aspect-ratio: 16 / 9; border-radius: 10px 10px 0 0; background: #1b232a; }
  .home-route .home-game-artwork img { object-fit: cover; }
  .home-route .home-game-info { min-width: 0; padding: 11px 12px 12px; }
  .home-route .home-game-info h3 { margin: 0; color: #eef2f4; font-size: 16px; font-weight: 650; line-height: 1.4; }
  .home-route .home-card-title-desktop { display: inline; }
  .home-route .home-card-title-mobile, .home-route .home-game-platform { display: none; }
  .home-route .home-card-name-suffix { display: block; margin: 3px 0 0; color: #aab5bf; font-size: 14px; line-height: 1.5; }
  .home-route .home-game-meta { display: block; margin-top: 0; padding-top: 6px; }
  .home-route .home-game-price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 3px 8px; min-width: 0; margin: 0; }
  .home-route .home-game-price strong { color: #edf1f3; font-size: 18px; font-weight: 750; line-height: 1.4; }
  .home-route .home-game-price del, .home-route .home-game-price-label { color: #a5b0ba; font-size: 14px; line-height: 1.5; }
  .home-route .home-game-price .is-free { color: #79ce9b; }
  .home-route .home-game-price .is-reference { color: #d4dde4; }
  .home-route .home-game-price .is-unavailable { color: #aab5bf; font-size: 14px; white-space: normal; }
  .home-route .home-game-discount { border-color: #e17b70; background: #b93c33; font-size: 13px; }
  .home-route .home-game-card:hover { border-color: #94635b; background: #182026; }
  .home-route .home-games-empty { background: #14191d; border-color: #303a43; }
  .home-route .home-games-empty p { color: #acb7c0; font-size: 15px; }
  .home-route .all-games-section .shop-feed-footer { padding-top: 22px; }
  .home-route .all-games-section .shop-feed-status { color: #a7b1ba; font-size: 14px; }
  .home-route #all-games { scroll-margin-top: 96px; }

  /* The same category sheet is available from the desktop catalog heading. */
  .home-route dialog.mobile-home-filter.category-filter-sheet[open] { display: flex; inset: 0; margin: auto; }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .home-route .header-inner { gap: 12px; }
  .home-route .site-header .header-brand { margin-right: auto; }
  .home-route .header-tools { order: 1; }
  .home-route .mobile-menu-toggle { position: static; display: block; flex: 0 0 44px; order: 2; width: 44px; height: 44px; margin: 0; border-color: #333b42; border-radius: 10px; }
  .home-route .main-nav { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; width: 100%; height: auto; max-height: calc(100dvh - 100px); padding: 8px; overflow-y: auto; border: 1px solid #343e46; border-radius: 0 0 11px 11px; background: #13191e; box-shadow: 0 16px 34px #0006; }
  .home-route .main-nav.open { display: flex; }
  .home-route .main-nav a { min-height: 46px; height: auto; padding: 11px 12px; border-radius: 7px; }
  .home-route .main-nav a::after { display: none; }
  .home-route .main-nav a.active { background: #2b201f; color: #ffa397; }
  .home-route .mobile-spotlight-copy { right: 39%; bottom: 34px; left: 32px; }
  .home-route .mobile-spotlight-copy h2 { font-size: clamp(36px, 4.9vw, 52px); }
  .home-route .mobile-favorite h3 { font-size: 18px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .home-route .home-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-route .mobile-home-categories { margin-bottom: 22px; }
}
