/* Ambient landscape stays behind the full landing, including an active quiz. */
@media all {
  html:has(body.prototype-landing) { background:#fafcf8; }
  body.prototype-landing {
    background-color:#fafcf8!important;
    background-image:url('/assets/landing-landscape-mist.png')!important;
    background-size:100% 1900px!important;
    background-position:center top!important;
    background-repeat:repeat-y!important;
  }
  body.prototype-landing>main,
  body.prototype-landing>main>section:not(.hero),
  body.prototype-landing>footer {
    background-color:transparent!important;
    background-image:none!important;
  }
  /* Keep the shared scenery behind the content, on an opaque light surface. */
  body.prototype-landing > header :is(#mainMenu, #brandPopover),
  body.prototype-landing :is(dialog, .info-dialog, .contact-dialog, .support-dialog, .quiz-gate-panel, .hero-explainer-panel),
  body.prototype-landing .desktop-reference-dropdown > div,
  html body.prototype-landing.quiz-in-progress #challenge .quiz,
  body.prototype-landing #challenge #result,
  html body.group-quiz-page main :is(#roleChoice, #setup, #lobby, #game, #results),
  body.group-quiz-page #groupRulesModal .rules-dialog {
    background-color:#fafcf8!important;
    background-image:url('/assets/landing-landscape-mist.png')!important;
    background-size:cover!important;
    background-position:center!important;
    background-repeat:no-repeat!important;
  }
  body.prototype-landing>header {
    background-color:rgba(250,252,248,.90)!important;
  }
}
@media (min-width:1001px) {
  body.prototype-landing { background-size:100% 2300px!important; }
}

@media (width < 1001px) {
  body.prototype-landing:not(.quiz-in-progress) {
    /* Anchor the scenery to the document so browser chrome cannot resize it. */
    /* Both edges of every tile fade to the page color before they meet. */
    background-image:linear-gradient(#fafcf8, transparent 120px, transparent calc(100% - 120px), #fafcf8),
      url('/assets/landing-landscape-mist.png')!important;
    background-size:100% 1900px!important;
    background-repeat:repeat-y!important;
  }
}
