/* ==========================================================================
   SRR — Genda phool (marigold) cursor trail + touch burst
   Purely decorative: every element here is pointer-events:none so it can
   never block clicks or text selection. On desktop the marigold flower
   replaces the OS cursor itself and trails falling petals behind it as it
   moves; on touch it bursts a handful of petals from each tap.
   ========================================================================== */
html.srr-cursor-none,
html.srr-cursor-none * {
  cursor: none !important;
}

#srr-petal-layer {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  overflow: hidden;
}

#srr-petal-layer .srr-cursor-flower {
  position: absolute;
  top: 0; left: 0;
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0) scale(.5) rotate(0deg);
  transition: opacity .25s ease;
  will-change: transform;
}
#srr-petal-layer.is-active .srr-cursor-flower { opacity: .92; }

#srr-petal-layer .srr-petal-bit {
  position: absolute;
  top: 0; left: 0;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  pointer-events: none;
  will-change: transform, opacity;
}
#srr-petal-layer .srr-petal-bit svg { display: block; width: 100%; height: 100%; }

.srr-petal-bit.srr-trail {
  animation: srr-petal-trail 1.3s ease-in forwards;
}
@keyframes srr-petal-trail {
  0%   { opacity: .85; transform: translate3d(0,0,0) scale(.8) rotate(0deg); }
  100% { opacity: 0;  transform: translate3d(var(--dx,0), 64px, 0) scale(.3) rotate(var(--rot, 120deg)); }
}

.srr-petal-bit.srr-burst {
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  animation: srr-petal-burst var(--dur, 1.6s) cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes srr-petal-burst {
  0%   { opacity: 1; transform: translate3d(0,0,0) scale(.5) rotate(0deg); }
  12%  { opacity: 1; transform: translate3d(calc(var(--dx,0) * .25), -14px, 0) scale(1) rotate(calc(var(--rot,180deg) * .3)); }
  100% { opacity: 0; transform: translate3d(var(--dx,0), 120px, 0) scale(.55) rotate(var(--rot, 180deg)); }
}

@media (prefers-reduced-motion: reduce) {
  #srr-petal-layer { display: none; }
}
