/* Penguin: Ten and Some More - geometric, pointer-free juice layer. */
#fx-layer{
  position:fixed;inset:0;z-index:310;pointer-events:none;overflow:hidden;contain:strict;
}
#fx-layer *{pointer-events:none!important;box-sizing:border-box}
/* Celebration overlays freeze the game decorations, not the juice layer above them. */
.app[data-frozen="1"] #fx-layer *{animation-play-state:running!important}
.app[data-frozen="1"] #panel[data-kind="level"] .highfive.juice-celebrate,
.app[data-frozen="1"] #panel[data-kind="finale"] .highfive.juice-celebrate{animation-play-state:running!important}
.juice-piece{
  position:absolute;left:0;top:0;width:8px;height:8px;border-radius:50%;
  background:var(--color,#F2C141);
  box-shadow:0 0 8px color-mix(in srgb,var(--color,#F2C141) 62%,transparent);
  transform:translate3d(var(--x),var(--y),0) rotate(var(--r0,0deg)) scale(.2);
  opacity:0;
  animation:juicePiece var(--dur,800ms) cubic-bezier(.17,.72,.28,1) var(--delay,0ms) forwards;
}
.juice-piece.juice-sparklet{
  width:var(--size,6px);height:var(--size,6px);border-radius:2px;
}
.juice-piece.juice-streak{
  width:var(--w,2px);height:var(--h,28px);border-radius:9px;
  box-shadow:0 0 7px var(--color,#F2C141),0 0 16px color-mix(in srgb,var(--color,#F2C141) 45%,transparent);
  transform-origin:50% 90%;
}
.juice-piece.juice-ribbon{
  width:6px;height:var(--h,34px);border-radius:60% 35% 65% 30%;
  background:linear-gradient(180deg,#fff8d4 0,var(--color,#F2C141) 42%,#a8e7ff 100%);
  box-shadow:0 0 8px color-mix(in srgb,var(--color,#F2C141) 58%,transparent);
  transform-origin:50% 88%;animation-name:juiceRibbon;
}
.juice-piece.juice-palm{
  width:3px;box-shadow:0 0 8px #f2c141,0 0 18px #f2c14166;
}
.juice-piece.juice-fountain{
  box-shadow:0 0 7px #eafaff,0 0 15px color-mix(in srgb,var(--color,#F2C141) 52%,transparent);
}
.juice-piece.juice-dot{width:var(--size,5px);height:var(--size,5px)}
@keyframes juicePiece{
  0%{transform:translate3d(var(--x),var(--y),0) rotate(var(--r0,0deg)) scale(.2);opacity:0}
  10%{opacity:.96}
  56%{transform:translate3d(var(--mx,var(--x)),var(--my,var(--y)),0) rotate(var(--r0,0deg)) scale(1);opacity:.88}
  100%{transform:translate3d(calc(var(--x) + var(--dx)),calc(var(--y) + var(--dy)),0) rotate(calc(var(--r0,0deg) + var(--spin,0deg))) scale(.78);opacity:0}
}
@keyframes juiceRibbon{
  0%{transform:translate3d(var(--x),var(--y),0) rotate(var(--r0,0deg)) scale(.25,.55);opacity:0}
  10%{opacity:.88}
  45%{transform:translate3d(var(--mx),var(--my),0) rotate(calc(var(--r0,0deg) + var(--spin-mid,0deg))) scale(.9);opacity:.78}
  76%{transform:translate3d(calc(var(--x) + var(--dx-late,0px)),calc(var(--y) + var(--dy-late,0px)),0) rotate(calc(var(--r0,0deg) + var(--spin-late,0deg))) scale(.78,.92);opacity:.54}
  100%{transform:translate3d(calc(var(--x) + var(--dx)),calc(var(--y) + var(--dy)),0) rotate(calc(var(--r0,0deg) + var(--spin,0deg))) scale(.62,.78);opacity:0}
}
.juice-comet{
  position:absolute;left:0;top:0;width:7px;height:7px;border-radius:50%;
  background:#fff;box-shadow:0 0 8px var(--color,#F2C141),0 0 18px var(--color,#F2C141);
  opacity:0;transform:translate3d(var(--x),var(--y),0);
  animation:juiceComet var(--dur,240ms) cubic-bezier(.2,.62,.3,1) forwards;
}
.juice-comet::before{
  content:"";position:absolute;right:50%;top:50%;width:40px;height:3px;border-radius:9px;
  background:linear-gradient(90deg,transparent 0,color-mix(in srgb,var(--color,#F2C141) 38%,transparent) 42%,var(--color,#F2C141) 100%);
  transform-origin:right center;transform:translateY(-50%) rotate(var(--angle));
}
.juice-comet.juice-comet-compact{
  --comet-body:4px;--comet-tail:12px;--comet-glow:4px;
  width:var(--comet-body);height:var(--comet-body);
  box-shadow:0 0 var(--comet-glow) var(--color,#F2C141);
}
.juice-comet.juice-comet-compact::before{
  width:var(--comet-tail);height:2px;border-radius:5px;
}
@keyframes juiceComet{
  0%{transform:translate3d(var(--x),var(--y),0) scale(.5);opacity:0}
  12%{opacity:1}
  58%{transform:translate3d(var(--mx),var(--my),0) scale(1);opacity:.96}
  100%{transform:translate3d(calc(var(--x) + var(--dx)),calc(var(--y) + var(--dy)),0) scale(.65);opacity:0}
}
.juice-ring{
  position:absolute;left:var(--x);top:var(--y);width:var(--w);height:var(--h);
  border-radius:50%;transform:translate(-50%,-50%) scale(.72);opacity:0;
  animation:juiceRing var(--dur,700ms) ease-out forwards;
}
.juice-gold-halo,.juice-gold-static{
  border:3px solid #F2C141;box-shadow:0 0 0 4px #fff8d480,0 0 24px #F2C1418c;
}
.juice-gold-halo{animation:juiceGoldGlow var(--dur,1200ms) ease-in-out forwards}
.juice-gold-static{animation:none;opacity:1;transform:translate(-50%,-50%) scale(1)}
.juice-ice-ripple{
  border:2px solid #a8e7ff;box-shadow:0 0 12px #a8e7ff99;
}
.juice-amber-outline{
  border:3px solid #d9a85f;box-shadow:0 0 0 4px #fff1cf99;
}
@keyframes juiceRing{
  0%{transform:translate(-50%,-50%) scale(.66);opacity:0}
  20%{opacity:1}
  100%{transform:translate(-50%,-50%) scale(1.08);opacity:0}
}
@keyframes juiceGoldGlow{
  0%{transform:translate(-50%,-50%) scale(.72);opacity:0}
  12%{transform:translate(-50%,-50%) scale(.78);opacity:.08}
  62%{transform:translate(-50%,-50%) scale(1);opacity:.82}
  78%{transform:translate(-50%,-50%) scale(1.01);opacity:.9}
  100%{transform:translate(-50%,-50%) scale(1.06);opacity:0}
}
.juice-light-wave{
  position:absolute;inset:-8%;border-radius:50%;
  background:radial-gradient(circle at 50% 44%,#fff5c31f 0,#f2c14117 38%,transparent 70%);
  transform:scale(.97);opacity:0;
  animation:juiceWave var(--dur,1600ms) ease-in-out forwards;
}
@keyframes juiceWave{
  0%{transform:scale(.97);opacity:0}
  45%{opacity:.18}
  100%{transform:scale(1.03);opacity:0}
}
.juice-glint{
  position:absolute;left:var(--x);top:var(--y);width:5px;height:5px;border-radius:50%;
  background:#eafaff;box-shadow:0 0 9px #c6f3ff,0 0 18px #8fdfff80;
  opacity:0;transform:translate3d(0,8px,0) scale(.7);
  animation:juiceGlint 10.5s ease-in-out var(--delay,0s) infinite;
}
@keyframes juiceGlint{
  0%,72%,100%{opacity:0;transform:translate3d(0,8px,0) scale(.7)}
  82%{opacity:.34;transform:translate3d(0,-5px,0) scale(1)}
}
.slot.juice-spring,.pile.juice-spring{animation:juiceSpring 300ms cubic-bezier(.2,.8,.3,1)}
@keyframes juiceSpring{
  0%,100%{transform:scale(1)}
  28%{transform:translateX(-1px) scale(1.12)}
  53%{transform:translateX(1.5px) scale(1.03)}
  76%{transform:translateX(-.5px) scale(.98)}
}
.slot.juice-fish-swish .leaf{animation:juiceFishSwish 360ms ease-in-out!important}
@keyframes juiceFishSwish{
  0%,100%{transform:rotate(0)}
  24%{transform:translateX(-2px) rotate(-9deg)}
  48%{transform:translateX(2px) rotate(5deg)}
  72%{transform:translateX(-1px) rotate(-4deg)}
}
.equation.juice-confirm .eq-num{animation:juiceConfirm 520ms cubic-bezier(.2,.8,.3,1)!important}
@keyframes juiceConfirm{
  0%,100%{transform:scale(1)}
  45%{transform:scale(1.025)}
}
.juice-happy{animation:juiceHappy 720ms ease-in-out!important}
.juice-tilt{animation:juiceTilt 600ms ease-in-out!important}
.juice-celebrate{animation:juiceCelebrate 900ms ease-in-out!important}
@keyframes juiceHappy{
  0%,100%{transform:translateY(0) rotate(0)}
  24%{transform:translateY(-7px) rotate(-1.6deg)}
  44%{transform:translateY(0) rotate(0)}
  68%{transform:translateY(-4px) rotate(1.2deg)}
}
@keyframes juiceTilt{
  0%,100%{transform:rotate(0)}
  48%{transform:rotate(2.2deg)}
}
@keyframes juiceCelebrate{
  0%,100%{transform:translateY(0) scale(1)}
  38%{transform:translateY(-7px) scale(1.025)}
  68%{transform:translateY(-2px) scale(1.01)}
}
@media (prefers-reduced-motion:reduce){
  #fx-layer .juice-piece,#fx-layer .juice-palm,#fx-layer .juice-ribbon,#fx-layer .juice-willow,
  #fx-layer .juice-fountain,#fx-layer .juice-glint,#fx-layer .juice-light-wave,
  #fx-layer .juice-comet{display:none}
  #fx-layer .juice-amber-outline{animation:none!important;opacity:1;transform:translate(-50%,-50%) scale(1)}
  .juice-happy,.juice-tilt,.juice-celebrate,.slot.juice-spring,.pile.juice-spring,.equation.juice-confirm .eq-num{animation:none!important}
  .slot.juice-fish-swish .leaf{animation:none!important}
  .app[data-frozen="1"] #panel[data-kind="level"] .highfive.juice-celebrate,
  .app[data-frozen="1"] #panel[data-kind="finale"] .highfive.juice-celebrate{animation:none!important}
}
