/* Shared Nebula backdrop for Home, Marketplace, Giveaways, and Leaderboard. */
:is(
  body[data-pawer-route="games"],
  body[data-pawer-route="marketplace"],
  body[data-pawer-route="giveaways"],
  body[data-pawer-route="leaderboard"]
) #calamityExperience {
  background-color: #020711 !important;
  background-image:
    linear-gradient(180deg, rgba(2, 8, 18, .24), rgba(2, 8, 18, .38)),
    url("pawer-nebula-background.webp") !important;
  background-position: center, center center !important;
  background-size: cover, cover !important;
  background-attachment: scroll, fixed !important;
  background-repeat: no-repeat !important;
}

/* The Home hero had its own opaque artwork, so give it the new image directly. */
body[data-pawer-route="games"] #pawerVisualHome .phw-hero {
  background-color: #020711 !important;
  background-image:
    linear-gradient(90deg, rgba(2, 8, 18, .48), rgba(2, 8, 18, .18) 55%, rgba(2, 8, 18, .34)),
    url("pawer-nebula-background.webp") !important;
  background-position: center, center 48% !important;
  background-size: cover, cover !important;
  background-repeat: no-repeat !important;
}

body[data-pawer-route="games"] #pawerVisualHome .phw-hero::before {
  display: none !important;
}

body[data-pawer-route="games"] #pawerVisualHome,
body[data-pawer-route="games"] .pawer-home-directories,
body[data-pawer-route="marketplace"] .pawer-home-directories,
body[data-pawer-route="giveaways"] .pawer-home-directories,
body[data-pawer-route="giveaways"] #pawerGiveawayDirectory,
body[data-pawer-route="leaderboard"] .pawer-home-directories,
body[data-pawer-route="leaderboard"] #pawerLeaderboardDirectory {
  background-color: transparent !important;
}

/* Route scripts add their own opaque theme rules after this shared production sheet.
   These focused preview overrides keep the same Home image strength visible. */
html:has(body[data-pawer-route="games"]) body[data-pawer-route="games"][data-pawer-route="games"] #calamityExperience,
html:has(body[data-pawer-route="marketplace"]) body[data-pawer-route="marketplace"][data-pawer-route="marketplace"] #calamityExperience,
html:has(body[data-pawer-route="giveaways"]) body[data-pawer-route="giveaways"][data-pawer-route="giveaways"] #calamityExperience,
html:has(body[data-pawer-route="leaderboard"]) body[data-pawer-route="leaderboard"][data-pawer-route="leaderboard"] #calamityExperience {
  background-color: #020711 !important;
  background-image:
    linear-gradient(180deg, rgba(2, 8, 18, .24), rgba(2, 8, 18, .38)),
    url("pawer-nebula-background.webp") !important;
  background-position: center, center center !important;
  background-size: cover, cover !important;
  background-attachment: scroll, fixed !important;
  background-repeat: no-repeat !important;
}

html:has(body[data-pawer-route="games"]) body[data-pawer-route="games"][data-pawer-route="games"] #calamityExperience::before,
html:has(body[data-pawer-route="marketplace"]) body[data-pawer-route="marketplace"][data-pawer-route="marketplace"] #calamityExperience::before,
html:has(body[data-pawer-route="giveaways"]) body[data-pawer-route="giveaways"][data-pawer-route="giveaways"] #calamityExperience::before,
html:has(body[data-pawer-route="leaderboard"]) body[data-pawer-route="leaderboard"][data-pawer-route="leaderboard"] #calamityExperience::before {
  display: none !important;
}

