/* Juice — styles for juice.js. Every class is prefixed jz-. No images, no fonts. */

/* ── the overlay send-outs, recalls and faints draw into ── */
.jz-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.jz-g { position: absolute; inset: 0; }             /* one group per Juice call; sets --u */

/* A shape: juice.js sets its size and animates transform, opacity and (for the ball's pop) filter.
   It is invisible outside its animation. The hard pixel shadow follows the outline. */
.jz-p {
  position: absolute; left: 0; top: 0; display: block; opacity: 0; will-change: transform, opacity;
  filter: drop-shadow(calc(var(--u, 4px) * .5) calc(var(--u, 4px) * .5) 0 rgba(32, 36, 46, .55));
}
.jz-p::before, .jz-p::after { content: ""; position: absolute; }

/* The Poké Ball: flat bands with hard edges. --b is the outline thickness (2–3 px). */
.jz-ball {
  box-sizing: border-box; border: var(--b, 2px) solid #20242e; border-radius: 50%;
  background: linear-gradient(#ff7b6b 0 16%, #e83a30 16% 42%, #20242e 42% 58%, #f6f6ee 58% 84%, #c4c7cf 84%);
}
.jz-ball::before { left: 20%; top: 10%; width: 24%; height: 14%; background: #ffd2c9; }                /* the shine */
.jz-ball::after {                                                                                      /* the button */
  left: 50%; top: 50%; width: 36%; height: 36%; margin: -18% 0 0 -18%; box-sizing: border-box;
  border: var(--b, 2px) solid #20242e; border-radius: 50%; background: #f6f6ee;
}

/* The flash when the ball opens, and its sparks. */
.jz-star { filter: none; }                          /* a flash casts no shadow */
.jz-star::before {
  inset: 0; background: #fff;
  clip-path: polygon(50% 0, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0 50%, 36% 36%);
}
.jz-spark::before { inset: 0; background: #fff; }

/* Recall: the red beam (anchored at the screen edge) and the point of light the Pokémon becomes. */
.jz-beam { filter: none; }
.jz-beam::before { inset: 0; background: linear-gradient(#c8281e 0 22%, #ff7b6b 22% 38%, #fff 38% 62%, #ff7b6b 62% 78%, #c8281e 78%); }
.jz-dot { filter: drop-shadow(calc(var(--u, 4px) * .5) calc(var(--u, 4px) * .5) 0 #c8281e); }
.jz-dot::before { inset: 0; background: #fff; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

/* Faint: dust. */
.jz-dust::before { inset: 0; background: linear-gradient(135deg, #fffaf0 0 40%, #e4d9bd 40%); }

/* ── the HP ghost (Juice.hpGhost): one <i> inside the bar's .track ── */
.jz-track { position: relative; isolation: isolate; }
.jz-ghost { position: absolute; display: block; pointer-events: none; border-radius: inherit; }
.jz-dmg { z-index: -1; background: #fff; }          /* behind the fill, in front of the track */
.jz-heal { z-index: 1; background: #d6ffe0; }       /* over the fill it has just gained */
