/* v40: render the artwork on the actual viewport canvas.
   Older v26/v29 rules deliberately force all chapter backgrounds transparent. */
:root:not([data-theme="light"]) body main#main,
:root[data-theme="dark"] body main#main,
body main#main {
  background-color:#08160f!important;
  background-image:url('../assets/images/hero-background.png')!important;
  background-repeat:no-repeat!important;
  background-position:center center!important;
  background-size:cover!important;
}
/* An opaque older ::before was hiding any background image placed on main. */
body main#main::before,
:root[data-theme="dark"] body main#main::before {
  background:none!important;
  opacity:0!important;
  pointer-events:none!important;
}
/* Keep older chapters and the hero as transparent surfaces above the artwork. */
body main#main > section#home.hero.hero-v14,
body main#main > section#home.hero.hero-v14.deck-active {
  background:transparent!important;
  background-image:none!important;
}
/* Respect light mode, preserving dark text contrast. */
:root[data-theme="light"] body main#main {
  background:var(--v29-bg)!important;
  background-image:var(--v29-bg)!important;
  background-color:#eef5e9!important;
}
