/* The page's original tiled PNG stays in place until its individual sprites are ready. */
html[data-wallpaper-ready] { background-image: none; }
html[data-wallpaper-ready] body { isolation: isolate; }
#wallpaper {
  --wallpaper-bleed: 26px;
  position: fixed;
  inset: calc(0px - var(--wallpaper-bleed));
  min-block-size: calc(100lvh + 2 * var(--wallpaper-bleed));
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  direction: ltr;
  user-select: none;
}
.wallpaper-sheet { position: absolute; inset: 0; }
.wallpaper-note {
  position: absolute;
  display: block;
  /* Two impressions of the source's very faint (9% alpha) ink keep its original contrast. */
  background-image: url("/assets/images/bg.png"), url("/assets/images/bg.png");
  background-repeat: no-repeat;
  background-size: var(--wallpaper-tile-width) var(--wallpaper-tile-height);
  opacity: .749;
}
@media (prefers-reduced-motion: no-preference) {
  .wallpaper-note {
    animation: dafi-note-ink var(--note-tempo) ease-in-out var(--note-phase) infinite alternate;
  }
  :root[data-wallpaper-paused] .wallpaper-note { animation-play-state: paused; }
}
@keyframes dafi-note-ink {
  from { opacity: var(--note-low, .461); }
  to { opacity: var(--note-high, .8); }
}
@media print {
  #wallpaper { display: none; }
}
