/* Let the quiz hero artwork dissolve into the introduction's theme surface. */
#root > div > section:first-of-type {
  background-color: var(--ui-bg, #faf9f6);
}

html.dark-mode #root > div > section:first-of-type {
  background-color: var(--ui-bg, #0c1014);
}

#root > div > section:first-of-type > .absolute.inset-0 {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, rgb(0 0 0 / 78%) 72%, rgb(0 0 0 / 34%) 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 58%, rgb(0 0 0 / 78%) 72%, rgb(0 0 0 / 34%) 88%, transparent 100%);
}

/* A solid theme-colored tail hides the artwork edge even when the mask is composited differently. */
#root > div > section:first-of-type::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 52%, var(--ui-bg, #faf9f6) 96%, var(--ui-bg, #faf9f6));
}

/* Keep each supplied composition readable when the wide artwork is cropped on phones. */
html.dark-mode #root > div > section:first-of-type > .absolute.inset-0 img {
  object-position: 58% top;
}

html.light-mode #root > div > section:first-of-type > .absolute.inset-0 img {
  object-position: 48% top;
}

@media (min-width: 768px) {
  html.dark-mode #root > div > section:first-of-type > .absolute.inset-0 img,
  html.light-mode #root > div > section:first-of-type > .absolute.inset-0 img {
    object-position: center top;
  }

  html.light-mode #root > div > section:first-of-type > .absolute.inset-0 img {
    content: url("/media/gintama/gintama-hero-day-20261129.png");
  }
}
