.playable-vfx-canvas {
  position: fixed;
  z-index: 10010;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 140ms ease;
}

.playable-vfx-canvas.active { opacity: 1; }

.rescue-counter-impact {
  animation: rescueCounterImpact 520ms cubic-bezier(.2,.78,.22,1);
}

.shell-tide-pixi-flow {
  position: fixed;
  z-index: 10020;
  inset: 0;
  display: none;
  overflow: hidden;
  isolation: isolate;
  background: rgba(7, 61, 67, .34);
  backdrop-filter: blur(7px) saturate(.92);
}

.shell-tide-pixi-flow.open { display: block; }
.shell-tide-pixi-flow canvas { width: 100%; height: 100%; display: block; }

.pixi-flow-actions {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.pixi-flow-action {
  position: absolute;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: transparent;
  cursor: pointer;
  pointer-events: auto;
}
.pixi-flow-action.close { border-radius: 14px; }

.pixi-flow-open { overflow: hidden; }
.pixi-flow-action:focus-visible { outline: 4px solid #fff4b6; outline-offset: 4px; }

.playable-vfx-wave::after {
  content: '';
  position: fixed;
  z-index: 10005;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 15%, rgba(104,239,213,.2) 45%, rgba(255,222,126,.22) 58%, transparent 82%);
  animation: playableWaveSweep 900ms ease-out both;
}

.playable-vfx-shake .app { animation: playableFlowShake 360ms ease-out; }

@keyframes playableWaveSweep {
  from { transform: translate3d(-110%,0,0); opacity: 0; }
  22% { opacity: 1; }
  to { transform: translate3d(110%,0,0); opacity: 0; }
}

@keyframes playableFlowShake {
  25% { transform: translate3d(-3px,1px,0); }
  50% { transform: translate3d(3px,-1px,0); }
  75% { transform: translate3d(-1px,0,0); }
}

@keyframes rescueCounterImpact {
  0% { transform: scale(.86); filter: brightness(1); }
  42% { transform: scale(1.22); filter: brightness(1.32) drop-shadow(0 0 10px rgba(117,239,173,.88)); }
  100% { transform: scale(1); filter: brightness(1); }
}

@media (prefers-reduced-motion: reduce) {
  .playable-vfx-canvas,
  .playable-vfx-wave::after { transition: none; animation-duration: 1ms; }
  .playable-vfx-shake .app { animation: none; }
  .rescue-counter-impact { animation-duration: 1ms; }
}
