/* =========================================================
   HARMONIA — GLOBAL CLICK LEAVES
   Estratto dalla pagina Camomille e reso globale.
   ========================================================= */

/* =========================================================
   CLICK LEAVES
   ========================================================= */
.ht-click-leaf {
  position: fixed;
  z-index: 99999;
  display: block;
  pointer-events: none;
  opacity: 0;
  transform-origin: center;
  filter:
    drop-shadow(
      0
      4px
      5px
      rgba(0, 0, 0, .15)
    );
  animation:
    htLeafFall
    950ms
    cubic-bezier(.18, .72, .32, 1)
    forwards;
}
.ht-click-leaf svg {
  display: block;
  width: 100%;
  height: 100%;
}
@keyframes htLeafFall {
  0% {
    opacity: 0;
    transform:
      translate(
        var(--ht-leaf-offset-x),
        var(--ht-leaf-offset-y)
      )
      scale(.45)
      rotate(
        var(--ht-leaf-start-rotation)
      );
  }
  18% {
    opacity: .95;
    transform:
      translate(
        calc(
          var(--ht-leaf-offset-x)
          +
          (
            var(--ht-leaf-drift)
            *
            .15
          )
        ),
        calc(
          var(--ht-leaf-offset-y)
          -
          10px
        )
      )
      scale(1)
      rotate(
        calc(
          var(--ht-leaf-start-rotation)
          +
          25deg
        )
      );
  }
  100% {
    opacity: 0;
    transform:
      translate(
        calc(
          var(--ht-leaf-offset-x)
          +
          var(--ht-leaf-drift)
        ),
        calc(
          var(--ht-leaf-offset-y)
          +
          75px
        )
      )
      scale(.72)
      rotate(
        var(--ht-leaf-end-rotation)
      );
  }
}
@media (prefers-reduced-motion: reduce) {
  .ht-click-leaf {
    display: none !important;
  }
}
