/* Button juice (see fx.js). Uses the separate scale / rotate / translate properties,
   so it stacks on top of each button's own transform animations instead of fighting them. */

button, a.sh, a.play, [role="radio"] {
  -webkit-tap-highlight-color: transparent;
  transition: scale .16s cubic-bezier(.3, 1.6, .5, 1), translate .16s ease, filter .16s ease;
}
.zr-down { scale: .92 !important; filter: brightness(1.12) saturate(1.1); transition-duration: .07s !important; }
.icon-btn.zr-down, .app-x.zr-down { scale: .84 !important; }
.chip.zr-down, [role="radio"].zr-down { scale: .9 !important; }

/* spring back: overshoot, settle */
.zr-boing { animation: zr-boing .46s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes zr-boing {
  0% { scale: .92; } 35% { scale: 1.07; } 60% { scale: .97; } 80% { scale: 1.015; } 100% { scale: 1; }
}
.zr-wob { animation: zr-wob .42s ease-out; }
@keyframes zr-wob {
  0% { scale: .84; rotate: 0deg; } 30% { scale: 1.12; rotate: -14deg; } 55% { rotate: 9deg; scale: 1; } 80% { rotate: -4deg; } 100% { rotate: 0deg; scale: 1; }
}

/* "hey, tap me": a hop with a glow, now and then on the main button */
.zr-nudge { animation: zr-nudge .9s cubic-bezier(.3, 1.3, .5, 1); }
@keyframes zr-nudge {
  0%, 100% { translate: 0 0; scale: 1; }
  18% { translate: 0 2px; scale: 1.03 .95; }
  38% { translate: 0 -7px; scale: .98 1.04; filter: brightness(1.2); }
  56% { translate: 0 0; scale: 1.03 .97; }
  72% { translate: 0 -2px; scale: 1; }
}

/* desktop hover: lift a little */
@media (hover: hover) and (pointer: fine) {
  .fire-btn:not(:disabled):hover, .place:not(:disabled):hover, .view-order:hover, .cod-btn:not(:disabled):hover,
  .play:hover, .hh-pick:hover, .sh:hover, .card:hover, .loc-btn:hover { translate: 0 -2px; filter: brightness(1.08); }
  .icon-btn:hover { scale: 1.08; }
}

/* particle layer */
.zrfx { position: fixed; inset: 0; pointer-events: none; z-index: 2147483000; overflow: hidden; contain: strict; }
.zrfx > i { position: absolute; display: block; will-change: transform, opacity; }
.zrfx-ring {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid #ffe2aa; box-shadow: 0 0 16px rgba(255, 190, 110, .8), inset 0 0 10px rgba(255, 190, 110, .5);
}
.zrfx-ring.ember { border-color: #ffb347; box-shadow: 0 0 20px #ff6a1f; }
.zrfx-ring.coin { border-color: #7ef0a6; box-shadow: 0 0 18px rgba(80, 220, 140, .7); }
.zrfx-p { background: var(--c); border-radius: 50%; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.zrfx-p.pep { background: radial-gradient(circle at 35% 35%, #e66a4c, var(--c) 55%, #8f2414); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.zrfx-p.leaf { border-radius: 0 100% 0 100%; }
.zrfx-p.conf { border-radius: 2px; }
.zrfx-p.ember { background: radial-gradient(circle, #fff6d8 0 25%, var(--c) 60%, transparent 72%); box-shadow: 0 0 8px var(--c); }
.zrfx-p.rupee {
  display: grid !important; place-items: center; font: 800 10px/1 Poppins, system-ui, sans-serif; color: #7a4d00;
  background: radial-gradient(circle at 35% 30%, #fff3b8, #ffd45c 45%, #e09a1c); border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px #c98612, 0 2px 6px rgba(0, 0, 0, .35);
}

@media (prefers-reduced-motion: reduce) {
  .zr-boing, .zr-wob, .zr-nudge { animation: none; }
  .zr-down { scale: .97 !important; }
}
