/* Play template: juice styles (kit v2). Transform and opacity only, so nothing here can move layout.
 * Tune per game in game.css: --juice-press (pressed scale), --juice-c1..c4 (confetti colours). */
:root {
  --juice-press: .955;
  --juice-c1: var(--t-accent, currentColor); --juice-c2: var(--t-ink, currentColor);
  --juice-c3: var(--t-muted, currentColor); --juice-c4: var(--t-line, currentColor);
}
button, [role="button"], [data-juice] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* pressed: on pointerdown, inside one frame; no transition on the way in so it lands on the next paint */
.juice-down { transform: scale(var(--juice-press)); transition: none; }
/* release: a small spring past 1 and back */
.juice-up { animation: juice-spring 190ms cubic-bezier(.3, 1.5, .5, 1); }
@keyframes juice-spring { 0% { transform: scale(var(--juice-press)); } 55% { transform: scale(1.025); } 100% { transform: scale(1); } }

/* reduced motion (OS setting or the game's Motion: off): no size change, a short dim instead */
.juice-reduced .juice-down { transform: none; opacity: .72; }
.juice-reduced .juice-up { animation: none; }
@media (prefers-reduced-motion: reduce) { .juice-down { transform: none; opacity: .72; } .juice-up { animation: none; } }

/* hit-stop pauses anything the kit is animating */
.juice-hitstop .juice-up { animation-play-state: paused; }

#juice-layer { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; contain: strict; }
.juice-bit { position: absolute; width: 7px; height: 9px; border-radius: 1px; background: var(--juice-c1); will-change: transform, opacity; }
.juice-bit--round { width: 7px; height: 7px; border-radius: 50%; }
.juice-number {
  position: absolute; transform: translate(-50%, -50%); white-space: nowrap; will-change: transform, opacity;
  font: 700 18px/1 var(--label, ui-monospace, monospace); color: var(--t-ink, currentColor);
  font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 var(--t-board, transparent);
}
.juice-number--good { color: var(--t-accent, currentColor); }
.juice-number--bad { color: var(--t-muted, currentColor); }
