/*
 * hyd-palapitta.css - the palapitta crossing the home wallpaper (hyd-palapitta.js builds the layer).
 *
 * div.hyd-palapitta is the last child of #home .desktop-wallpaper, so the windows, icons and heading
 * pass in front of the bird, and it is drawn over the wallpaper picture (body::before and
 * canvas#hyd-wallpaper-effect are fixed layers at z-index -1 under the isolated desktop). It never takes
 * the pointer and clips the bird to the wallpaper box. The bird moves only by Web Animations on
 * transform; this sheet declares no keyframes and no transitions. Both reduced-motion signals hide it.
 */
.hyd-palapitta {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hyd-palapitta[hidden] {
  display: none;
}

/* One 64x99 sprite cell; the script's keyframes turn it about the body anchor (35.14, 55.63). It waits
   off the box until its first keyframe applies. */
.hyd-palapitta-bird {
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 99px;
  transform: translate(-200px, -200px);
  transform-origin: 35.14px 55.63px;
  will-change: transform;
}

.hyd-palapitta-cell {
  position: relative;
  width: 64px;
  height: 99px;
  overflow: hidden;
}

/* The 28-frame strip (1792x99 CSS px), stepped by translateX. width and max-width beat the page-wide
   img rule. */
.hyd-palapitta-strip {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 1792px;
  max-width: none;
  height: 99px;
  will-change: transform;
}

/* Reduced motion, from the system or the site's motion switch: no bird at all. */
@media (prefers-reduced-motion: reduce) {
  .hyd-palapitta {
    display: none !important;
  }
}

body.motion-off .hyd-palapitta {
  display: none !important;
}
