/* Home follows the same artwork, typography and accent rules as My Library. */
body[data-page="home"] {
  --home-accent: var(--accent, #c4b4ff);
}
body[data-page="home"] .profile-button {
  background: #25242e;
  color: #dfdce9;
}
body[data-page="home"] .test-account-switcher {
  background: transparent;
  padding: 8px 0;
  font-size: 14px;
}
body[data-page="home"] .test-account-switcher > a {
  color: #b9b5c8;
  font-size: 14px;
}
body[data-page="home"] .test-account-switcher small {
  font-size: 14px;
}
.home-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.home-catalogue {
  display: grid;
  gap: 40px;
}
.home-carousel {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  display: grid;
  grid-template-columns: minmax(24px, 1fr) minmax(0, 1168px) minmax(24px, 1fr);
  gap: 32px;
  align-items: center;
  overflow: hidden;
}
.home-carousel .home-hero { margin: 24px 0 40px; min-width: 0; }
.home-hero-neighbour {
  position: relative;
  height: 264px;
  min-width: 0;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #242331;
  opacity: .7;
  transition: opacity .15s ease;
}
.home-hero-neighbour:hover { opacity: 1; }
.home-hero-neighbour:focus-visible { outline: 3px solid var(--home-accent); outline-offset: -3px; opacity: 1; }
.home-hero-neighbour img { width: 100%; height: 100%; object-fit: cover; }
.home-hero-neighbour span { position: absolute; inset: auto 0 0; padding: 32px 12px 16px; background: linear-gradient(transparent, #11131bee); color: #fff; font-size: 16px; font-weight: 600; }
.home-hero-previous { border-radius: 0 20px 20px 0; }
.home-hero-next { border-radius: 20px 0 0 20px; }
@media (max-width: 700px) {
  .home-carousel { grid-template-columns: 16px minmax(0, 1fr) 16px; gap: 16px; }
  .home-carousel .home-hero { margin: 8px 0 24px; }
  .home-hero-neighbour { height: 304px; }
  .home-hero-neighbour span { display: none; }
}
.home-game-section {
  min-width: 0;
}
.home-hero {
  position: relative;
  isolation: isolate;
  min-height: 420px;
  margin-left: 32px;
  margin-top: 24px;
  border-radius: 24px;
  background: #242331;
  display: flex;
  align-items: center;
  padding: 64px 48px 40px 352px;
}
.home-hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  z-index: -1;
}
.home-hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
.home-hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #11131bc9, #11131b99 55%, #11131b22);
}
.home-hero-label {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: 24px;
  background: #15151fbd;
  color: #f1eef9;
  font-size: 14px;
}
.home-hero-covers {
  position: absolute;
  left: -16px;
  top: 36px;
  width: 304px;
  height: 280px;
}
.home-hero-cover {
  position: absolute;
  width: 220px;
  height: 300px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 16px 32px #0006;
}
.home-hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.home-hero-cover-rear { left: 152px; top: 20px; transform: rotate(18deg); }
.home-hero-cover-back { left: 76px; top: 8px; transform: rotate(4deg); }
.home-hero-cover-front { left: 0; top: -8px; transform: rotate(-12deg); }
.home-hero-content { position: relative; max-width: 480px; }
.home-hero-content h2 { margin: 0 0 24px; font-size: clamp(28px, 3.5vw, 48px); line-height: 1.1; letter-spacing: -1px; }
.home-hero-content .home-play { width: fit-content; min-width: 144px; margin: 0; padding-inline: 24px; }
@media (max-width: 1000px) {
  .home-hero { padding-left: 280px; padding-right: 24px; }
  .home-hero-covers { transform: scale(.85); transform-origin: left center; }
}
@media (max-width: 700px) {
  .home-hero { min-height: 356px; margin-left: 12px; margin-top: 8px; padding: 224px 20px 24px; border-radius: 16px; }
  .home-hero-label { left: auto; right: 16px; top: 16px; transform: none; font-size: 14px; }
  .home-hero-covers { top: 20px; left: -4px; transform: scale(.65); transform-origin: left top; }
  .home-hero-content h2 { margin-bottom: 16px; font-size: 28px; }
  .home-hero-backdrop::after { background: linear-gradient(0deg, #11131bf2, #11131b11); }
}
.home-game-section h2 {
  margin: 0 0 24px;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.5px;
  font-weight: 600;
  text-transform: none;
}
.home-game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 32px;
}
.home-game {
  background: transparent;
  border: 0;
  min-width: 0;
}
.home-game-art {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  background: #20222b;
}
.home-cover {
  display: block;
  padding: 0;
  width: 100%;
  height: 100%;
}
.home-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.15s ease;
}
.home-cover:hover img {
  filter: brightness(1.08);
}
.home-cover:focus-visible {
  outline: 3px solid var(--home-accent);
  outline-offset: -3px;
  border-radius: 12px;
}
.home-save {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #111318d9;
  color: #f2f3f7;
}
.home-save[aria-pressed="true"] {
  color: var(--home-accent);
}
.home-save[aria-pressed="true"] svg {
  fill: currentColor;
}
.home-save:hover {
  background: #111318;
}
.home-game-info {
  display: grid;
  gap: 8px;
  padding-top: 16px;
}
.home-game-title {
  padding: 0;
  min-height: 24px;
  text-align: left;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.home-game-status {
  color: #aeb1bf;
  font-size: 14px;
  line-height: 1.5;
}
.home-play {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  margin-top: 8px;
  border-radius: 8px;
  background: var(--home-accent);
  color: #211a34;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 650;
}
.home-play:hover {
  filter: brightness(1.06);
}
.home-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  padding: 64px 16px;
}
.home-empty h2 {
  margin: 0;
  font-size: 24px;
}
@media (max-width: 700px) {
  body[data-page="home"] .test-account-switcher {
    gap: 8px;
  }
  body[data-page="home"] .test-account-switcher > a {
    display: none;
  }
  body[data-page="home"] .test-account-switcher small {
    flex-basis: auto;
    font-size: 13px;
    margin-left: auto;
    max-width: 100px;
    line-height: 1.4;
  }
  body[data-page="home"] .test-account-button {
    min-height: 44px;
    padding: 8px;
  }
  body[data-page="home"] .mobile-nav span {
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
  }
  body[data-page="home"] .mobile-nav a {
    min-height: 56px;
  }
  .home-catalogue {
    gap: 32px;
  }
  .home-game-section h2 {
    font-size: 22px;
    margin-bottom: 24px;
  }
  .home-game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .home-game-art {
    aspect-ratio: 4/5;
    border-radius: 10px;
  }
  .home-game-info {
    padding-top: 12px;
  }
  .home-game-title {
    font-size: 16px;
    min-height: 45px;
  }
  .home-play {
    margin-top: 4px;
    font-size: 15px;
  }
  .home-save {
    top: 4px;
    right: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-cover img {
    transition: none;
  }
}
body[data-page="home"] .topbar .global-search {
  padding: 0 12px;
  min-height: 44px;
}
body[data-page="home"] .topbar .global-search input {
  padding: 10px 0;
  min-height: 44px;
  height: 44px;
  background: transparent;
  border: 0;
}
@media (max-width: 700px) {
  body[data-page="home"] .test-mode-full {
    display: none;
  }
  body[data-page="home"] .test-mode-brief {
    display: inline;
  }
  body[data-page="home"] .topbar .global-search input {
    font-size: 16px;
  }
}
/* Native scrolling keeps touch gestures and slide transitions in one flow. */
.home-carousel-shell {
  position: relative;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  min-width: 0;
}
.home-carousel-shell .home-carousel {
  display: flex;
  position: relative;
  width: 100%;
  margin: 0;
  gap: 32px;
  padding: 32px max(32px, calc((100% - 1168px) / 2)) 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  align-items: stretch;
}
.home-carousel::-webkit-scrollbar { display: none; }
.home-carousel-shell .home-hero {
  flex: 0 0 min(1168px, calc(100vw - 64px));
  scroll-snap-align: center;
  scroll-snap-stop: always;
  margin: 0;
  min-height: 420px;
}
.home-carousel-shell .home-hero-covers { top: 64px; left: 40px; width: 400px; height: 320px; }
.hero-media-caption { position: absolute; left: 40px; bottom: 12px; font-size: 14px; color: #e1e4e8; text-shadow: 0 1px 5px #000; pointer-events: none; }
.home-carousel-shell .home-hero-backdrop::after {
  background: linear-gradient(90deg, #0d1018f2 0%, #0d1018cc 24%, #0d101859 48%, #0d10180a 75%);
}
.home-carousel-shell .home-hero-cover {
  box-shadow: -12px 4px 20px #05070dc9, 0 18px 32px #0008;
}
.home-carousel-shell .home-hero-cover-rear { left: 160px; top: 20px; transform: rotate(14deg); }
.home-carousel-shell .home-hero-cover-back { left: 80px; top: 8px; transform: rotate(2deg); }
.home-carousel-shell .home-hero-cover-front { left: 0; top: -8px; transform: rotate(-8deg); }
.hero-artwork-next { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; border-radius: inherit; cursor: pointer; }
.hero-artwork-next:focus-visible { outline: 3px solid var(--home-accent); outline-offset: -3px; }
.home-hero-covers, .home-hero-label { pointer-events: none; }
.home-hero-content { pointer-events: none; }
.home-hero-content .home-play { pointer-events: auto; }
.hero-pagination { position: relative; z-index: 1; display: flex; justify-content: center; gap: 0; margin-top: 0; }
.hero-dot { width: 32px; height: 44px; display: grid; place-items: center; padding: 0; background: transparent; border-radius: 50%; }
.hero-dot span { width: 8px; height: 8px; border-radius: 50%; background: #686575; transition: background .2s ease, width .2s ease; }
.hero-dot[aria-current="true"] span { width: 24px; border-radius: 8px; background: var(--home-accent); }
.hero-dot:focus-visible { outline: 2px solid var(--home-accent); }
.home-carousel-shell img { -webkit-user-drag: none; user-select: none; }
.hero-arrow {
  position: absolute;
  top: calc(50% - 26px);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #15151fd9;
  color: #f1eef9;
  font-size: 32px;
  line-height: 1;
}
.hero-arrow-previous { left: 16px; }
.hero-arrow-next { right: 16px; }
.hero-arrow:focus-visible, .home-carousel:focus-visible { outline: 3px solid var(--home-accent); outline-offset: -3px; }
@media (max-width: 700px) {
  .home-carousel-shell .home-carousel { gap: 24px; padding: 24px 32px 8px; }
  .home-carousel-shell .home-hero { min-height: 420px; }
  .home-carousel-shell .home-hero-covers { top: 88px; left: 24px; transform: scale(.64); }
  .home-carousel-shell .home-hero-backdrop::after { background: linear-gradient(90deg, #0d1018c9, #0d101878 65%, #0d10182b); }
  .hero-arrow { width: 44px; height: 44px; font-size: 28px; top: calc(50% - 22px); }
  .hero-arrow-previous { left: 0; }
  .hero-arrow-next { right: 0; }
}

.hero-title-link { pointer-events: auto; padding: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; line-height: inherit; text-align: left; }
.hero-title-link:hover { color: var(--home-accent); }
.hero-title-link:focus-visible { outline: 2px solid var(--home-accent); outline-offset: 8px; }
.home-hero-content h2 { margin-bottom: 0; }
.home-carousel-shell .home-hero-covers { pointer-events: auto; isolation: isolate; }
.hero-cover-fan { position: relative; width: 100%; height: 100%; transform-origin: left top; transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
.home-hero-covers.is-interacting .hero-cover-fan { transform: translateY(-30px) scale(.62); }
.hero-game-title { position: absolute; left: 46%; right: 5%; top: 0; bottom: 0; padding: 0; background: transparent; }
.hero-game-title .home-art-cover-title { inset: 0; padding: 24px; background: none; display: flex; align-items: center; justify-content: center; font-size: clamp(28px, 3vw, 48px); text-align: center; }
.hero-game-title .game-wordmark { background: none; }
.hero-game-title:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.home-carousel-shell .home-hero-cover { pointer-events: auto; padding: 0; cursor: pointer; transition: translate .42s cubic-bezier(.22, 1, .36, 1); }
.home-carousel-shell .home-hero-cover-front { z-index: 3; }
.home-carousel-shell .home-hero-cover-back { z-index: 2; }
.home-carousel-shell .home-hero-cover-rear { z-index: 1; }
.home-carousel-shell .is-interacting .home-hero-cover-front { translate: 0 0; }
.home-carousel-shell .is-interacting .home-hero-cover-back { translate: 8px 0; }
.home-carousel-shell .is-interacting .home-hero-cover-rear { translate: 16px 0; }
.home-carousel-shell .home-hero-cover-front[aria-pressed="true"] { translate: 0 -8px; }
.home-carousel-shell .home-hero-cover-back[aria-pressed="true"] { translate: 8px -8px; }
.home-carousel-shell .home-hero-cover-rear[aria-pressed="true"] { translate: 16px -8px; }
.home-hero-cover:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.home-hero-backdrop .hero-preview-image { position: absolute; inset: 0; opacity: 0; transition: opacity .42s ease; }
.home-hero-backdrop .hero-preview-image.is-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .home-carousel-shell .home-hero-cover, .home-hero-backdrop .hero-preview-image, .hero-cover-fan { transition: none; }
}
@media (max-width: 700px) {
  .hero-game-title { left: 20px; right: 20px; top: auto; bottom: 40px; height: 120px; }
  .home-hero-covers.is-interacting .hero-cover-fan { transform: translateY(-40px) scale(.68); }
}
.home-art-section { min-width: 0; width: 100vw; margin-inline: calc(50% - 50vw); padding-inline: 24px; }
.home-art-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.home-art-heading h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.5px; }
.home-art-controls { display: flex; gap: 8px; }
.home-art-controls button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #252930; color: #e4e6eb; }
.home-art-controls button:first-child svg { rotate: 180deg; }
.home-art-row { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #454a54 transparent; padding: 4px 0 16px; }
.home-art-tile { flex: 0 0 clamp(280px, 26vw, 420px); min-width: 0; padding: 0; text-align: left; background: transparent; scroll-snap-align: start; }
.home-art-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #24272e; }
.home-art-image { position: relative; }
.game-wordmark { position: absolute; inset: 0; display: block; pointer-events: none; }
.game-wordmark svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 2px 4px #000a); }
.wordmark-top { background: linear-gradient(#0a101b66, transparent 48%); }
.wordmark-bottom { background: linear-gradient(transparent 48%, #080d17bb); }
.home-art-cover-title { position: absolute; inset: auto 0 0; padding: 48px 20px 18px; background: linear-gradient(transparent, #080b13e6); color: #fff; font-size: clamp(22px, 2vw, 30px); font-weight: 750; line-height: 1.12; letter-spacing: -.6px; text-shadow: 0 2px 8px #0007; }
.concept-preview-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.concept-preview-info { padding: 24px; }
.concept-preview-info h2 { margin: 0 0 8px; }
.concept-preview-info p { margin: 0; color: #b6bac2; }
.home-art-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease; }
.home-art-tile:hover .home-art-image img { opacity: .85; }
.home-art-name { display: block; font-size: 16px; line-height: 1.4; margin-top: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #e4e6eb; }
.home-art-image .library-art-missing { height: 100%; background: #24272c; color: #aeb3bc; }
.home-art-tile:focus-visible { outline: 2px solid #e4e6eb; outline-offset: -2px; border-radius: 12px; }
@media(max-width: 700px) {
  .home-art-row { gap: 16px; }
  .home-art-section { padding-inline: 16px; }
  .home-art-tile { flex-basis: 78vw; }
  .home-art-image { height: auto; }
  .home-art-heading h2 { font-size: 22px; }
}
@media(prefers-reduced-motion: reduce) { .home-art-image img { transition: none; } }
/* Desktop and mobile share a clear image stage with previews below it. */
.home-carousel-shell .home-carousel { padding-bottom: 96px; }
.home-carousel-shell .home-hero { min-height: 360px; border-radius: 24px; }
.home-carousel-shell .home-hero-covers {
  top: auto;
  bottom: -76px;
  left: 50%;
  width: 264px;
  height: 56px;
  transform: translateX(-50%);
  isolation: isolate;
}
.home-carousel-shell .hero-cover-fan,
.home-carousel-shell .home-hero-covers.is-interacting .hero-cover-fan {
  display: flex;
  gap: 12px;
  width: 264px;
  height: 56px;
  transform: none;
}
.home-carousel-shell .home-hero-covers .home-hero-cover {
  position: relative;
  left: auto;
  top: auto;
  width: 80px;
  height: 56px;
  flex: 0 0 80px;
  border-radius: 8px;
  transform: none;
  translate: 0 0;
  box-shadow: none;
  opacity: .65;
  transition: opacity .25s ease, translate .25s ease;
}
.home-carousel-shell .home-hero-covers .home-hero-cover[aria-pressed="true"] {
  opacity: 1;
  translate: 0 -4px;
}
.home-carousel-shell .home-hero-covers .home-hero-cover:hover { opacity: 1; }
.home-carousel-shell .home-hero-cover-front { order: -1; }
.home-carousel-shell .home-hero-cover-back { order: 0; }
.home-carousel-shell .home-hero-cover-rear { order: 1; }
.hero-media-caption { left: 24px; bottom: 16px; }
.hero-game-title { left: 22%; right: 22%; }
.hero-arrow { top: calc(50% - 65px); }
@media (max-width: 700px) {
  .home-carousel-shell .home-carousel { padding-bottom: 96px; }
  .home-carousel-shell .home-hero { min-height: 440px; border-radius: 20px; }
  .home-carousel-shell .home-hero-covers { top: auto; left: 50%; bottom: -76px; transform: translateX(-50%); }
  .hero-game-title { left: 16px; right: 16px; top: auto; bottom: 50px; height: 150px; }
  .hero-media-caption { left: 16px; font-size: 13px; }
  .hero-arrow { top: calc(50% - 65px); }
}
@media (prefers-reduced-motion: reduce) {
  .home-carousel-shell .home-hero-covers .home-hero-cover { transition: none; }
}
/* Targeted gestures cannot fling the hero across multiple games. */
.home-carousel-shell .home-carousel { overflow-x: hidden; scroll-snap-type: none; touch-action: pan-y; scroll-behavior: auto; padding-bottom: 112px; }
.home-carousel-shell .home-hero-covers { width: max-content; max-width: calc(100% - 32px); height: 72px; bottom: -92px; }
.home-carousel-shell .hero-cover-fan,
.home-carousel-shell .home-hero-covers.is-interacting .hero-cover-fan {
  width: 100%;
  height: 72px;
  padding: 8px 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #454a54 transparent;
  touch-action: pan-x pan-y;
}
.home-carousel-shell .home-hero-covers .home-hero-cover:focus-visible { outline-offset: -2px; }
/* Quiet, compact navigation beneath the hero. */
.hero-pagination { margin-top: -8px; }
.hero-dot { width: 26px; height: 36px; }
.hero-dot span { width: 6px; height: 6px; background: #454952; }
.hero-dot[aria-current="true"] span { width: 18px; background: #9296a0; }
.home-carousel-shell .home-carousel { padding-bottom: 100px; }
.home-art-row { scrollbar-width: none; }
.home-art-row::-webkit-scrollbar { display: none; }
/* Preserve the complete screenshot when a portrait preview enters the wide stage. */
.home-hero-backdrop .hero-preview-image {
  object-fit: contain;
  object-position: center;
  background: #101318;
}
.home-carousel-shell .home-hero:has(.hero-preview-image.is-visible) .home-hero-backdrop::after {
  background: linear-gradient(90deg, #10131877, transparent 35%, transparent 75%, #10131833);
}
.home-hero:has(.hero-preview-image.is-visible) .hero-game-title {
  left: 2%; right: 73%;
}
.home-browse-section {
  min-width: 0;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding: 0 24px 48px;
}
.home-browse-section h2 { margin: 0 0 24px; font-size: 24px; font-weight: 600; letter-spacing: -.5px; }
.home-browse-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-browse-grid .home-art-tile { width: 100%; }
.home-concept-label { position: absolute; top: 10px; left: 10px; border-radius: 4px; padding: 4px 7px; background: #101318c9; color: #d7dadd; font-size: 11px; }
@media (max-width: 1100px) { .home-browse-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .home-browse-section { padding-inline: 16px; }
  .home-browse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .home-browse-section h2 { font-size: 22px; margin-bottom: 16px; }
  .home-concept-label { top: 5px; left: 5px; padding: 2px 4px; font-size: 9px; }
  .home-hero:has(.hero-preview-image.is-visible) .hero-game-title { left: 16px; right: 16px; top: 0; bottom: auto; height: 100px; }
}
/* Gameplay previews use a wide screenshot shape, including the thumbnail strip. */
.home-carousel-shell .home-hero-covers .home-hero-cover {
  width: 100px;
  flex-basis: 100px;
  aspect-ratio: 16 / 9;
}
.home-carousel-shell .home-hero-cover img { object-position: center; }
@media (min-width: 701px) {
  .home-hero-backdrop .hero-preview-image { object-fit: cover; object-position: center 70%; }
}
/* A tall lead card and two wide cards follow the category header. */
.home-paired-section { width: 100vw; margin-inline: calc(50% - 50vw); padding: 0 24px 64px; min-width: 0; }
.home-feature-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 24px; margin-bottom: 24px; border-radius: 12px; background: #1b2026; }
.home-feature-heading h2 { margin: 0; font-size: 26px; font-weight: 650; letter-spacing: -.6px; }
.home-feature-heading > span { font-size: 14px; color: #aeb5be; }
.home-feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 24px; height: clamp(440px, 43vw, 640px); }
.home-feature-card { position: relative; display: block; min-width: 0; min-height: 0; padding: 0; overflow: hidden; border-radius: 12px; background: #191d22; color: #fff; cursor: pointer; isolation: isolate; }
.home-feature-card:first-child { grid-row: span 2; }
.home-feature-card > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter .25s ease; }
.home-feature-card .game-wordmark { background: linear-gradient(transparent 35%, #070b13a8); }
.home-feature-card:first-child .game-wordmark { top: auto; bottom: 16px; height: auto; aspect-ratio: 16 / 9; }
.home-feature-card:hover > img { filter: brightness(1.08); }
.home-feature-card:focus-visible { outline: 2px solid #e4e6eb; outline-offset: 4px; }
@media (max-width: 700px) {
  .home-paired-section { padding: 0 16px 40px; }
  .home-feature-heading { padding: 18px 16px; margin-bottom: 16px; }
  .home-feature-heading h2 { font-size: 22px; }
  .home-feature-heading > span { display: none; }
  .home-feature-grid { gap: 12px; height: 320px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .home-feature-card .home-concept-label { font-size: 9px; top: 6px; left: 6px; padding: 3px 5px; }
}
@media (max-width: 420px) {
  .home-feature-grid { height: auto; grid-template-columns: 1fr; grid-template-rows: none; }
  .home-feature-card:first-child { grid-row: auto; aspect-ratio: 4 / 3; }
  .home-feature-card:not(:first-child) { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) { .home-feature-card > img { transition: none; } }
/* Artwork-led category banner, with a quiet palette and readable copy. */
.home-feature-heading {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 232px;
  padding: 36px 48px;
  background: #202124;
  border-radius: 10px;
}
.home-feature-heading::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #202124 0%, #202124f5 38%, #20212499 58%, #17171911 100%); }
.home-feature-intro { position: relative; z-index: 1; max-width: 58%; }
.home-feature-eyebrow { display: block; margin-bottom: 12px; font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: #bdb9b1; font-weight: 600; }
.home-feature-heading h2 { font-size: clamp(26px, 2.7vw, 40px); line-height: 1.15; letter-spacing: -.8px; }
.home-feature-intro p { margin: 14px 0 0; font-size: clamp(15px, 1.35vw, 20px); line-height: 1.5; color: #cfccc6; }
.home-feature-montage { position: absolute; z-index: -2; inset: -48px -32px -48px 44%; display: flex; gap: 16px; transform: rotate(-12deg); }
.home-feature-montage-card { flex: 1 0 36%; overflow: hidden; border-radius: 8px; background: #18232b; }
.home-feature-montage-card img { width: 100%; height: 100%; object-fit: cover; }
.home-feature-montage-card:nth-child(2) { transform: translateY(24px); }
@media (max-width: 700px) {
  .home-feature-heading { min-height: 220px; padding: 28px 24px; }
  .home-feature-intro { max-width: 80%; }
  .home-feature-heading::after { background: linear-gradient(90deg, #202124fa, #202124db 55%, #20212444); }
  .home-feature-heading h2 { font-size: 28px; }
  .home-feature-intro p { font-size: 15px; }
  .home-feature-montage { left: 38%; opacity: .65; }
}

.home-feature-heading h2 { color: #f3f0e9; }
.home-feature-card:first-child > img { object-position: left center; }
.home-feature-card:not(:first-child) > img { object-fit: contain; }
.home-browse-caption { display: block; margin-top: 8px; color: #9c9fa5; font-size: 12px; line-height: 1.4; }
.home-feature-card .home-concept-label { top: auto; bottom: 10px; left: auto; right: 10px; }
.home-feature-card:first-child > img { object-position: center top; }
@media (max-width: 420px) { .home-feature-card:first-child { aspect-ratio: 4 / 5; } }

.home-browse-grid:not(.is-expanded) .home-browse-extra { display: none; }
.home-browse-toggle { display: block; margin: 24px auto 0; min-height: 44px; padding: 10px 22px; border: 1px solid #41444a; border-radius: 8px; background: #24262b; color: #e6e5e1; font-size: 14px; }
.home-browse-toggle:hover { background: #303238; }
.home-browse-toggle:focus-visible { outline: 2px solid #e4e6eb; outline-offset: 3px; }
