/* Painted fauna follows the pointer only over the noninteractive hero. */
.tropical-hero.hero-cursor-active { cursor: none; }
.hero-creature-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 68px;
  height: 68px;
  pointer-events: none;
  visibility: hidden;
  will-change: transform;
  --wing-duration: .22s;
  --wing-angle: 18deg;
}
.hero-creature-cursor.is-visible { visibility: visible; }
.hero-creature-cursor svg { display: none; width: 100%; height: 100%; overflow: visible; }
.hero-creature-cursor[data-phase="day"] .bee { display: block; filter: drop-shadow(0 2px 2px rgba(37, 31, 19, .45)); }
.hero-creature-cursor[data-phase="night"] .firefly { display: block; filter: drop-shadow(0 0 5px rgba(235, 247, 113, .85)) drop-shadow(0 2px 2px rgba(7, 20, 15, .6)); }
.hero-creature-cursor .wing { transform-box: view-box; transition: transform .09s ease-out; }
.hero-creature-cursor.is-flying .wing-a { animation: wing-up var(--wing-duration) ease-in-out infinite alternate; }
.hero-creature-cursor.is-flying .wing-b { animation: wing-down var(--wing-duration) ease-in-out infinite alternate; }
@keyframes wing-up { from { transform: rotate(calc(var(--wing-angle) * -0.35)); } to { transform: rotate(var(--wing-angle)); } }
@keyframes wing-down { from { transform: rotate(calc(var(--wing-angle) * 0.35)); } to { transform: rotate(calc(var(--wing-angle) * -1)); } }
@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
  .tropical-hero.hero-cursor-active { cursor: auto; }
  .hero-creature-cursor { display: none; }
}
