/* Parent inline duration owns the timeline. Child artwork is finite and
   decorative; its animationend never completes a parent's action. */
.action-fx {
  position: absolute; pointer-events: none; z-index: 5;
  background-position: center; background-size: contain; background-repeat: no-repeat;
  animation-timing-function: ease-out; animation-iteration-count: 1; animation-fill-mode: both;
}
.action-art { width: 100%; height: 100%; display: block; overflow: visible; pointer-events: none; }
.action-art, .action-art g, .action-art path, .action-art circle, .action-art ellipse {
  animation-duration: inherit; animation-iteration-count: 1; animation-fill-mode: both; animation-timing-function: ease-out;
}
.action-art .art-contact { animation: art-contact 90ms ease-out both; transform-box: fill-box; transform-origin: center; }
@keyframes art-contact { 0% { opacity: 1; transform: scale(.65); } 35% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }

.action-dye-pack { animation-name: action-dye-pack; }
@keyframes action-dye-pack {
  0% { opacity: 0; transform: translateY(5%) scale(.76) rotate(-7deg); }
  15% { opacity: 1; transform: scale(1.02) rotate(2deg); }
  30% { opacity: 1; transform: scale(.98, 1.035) rotate(-2deg); }
  41% { opacity: 1; transform: scale(1.045, .965) rotate(1deg); }
  55%, 83% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: translateY(5%) scale(.96); }
}
.art-pressure { transform-origin: 50px 50px; animation-name: art-pressure; }
@keyframes art-pressure { 0%, 18% { opacity: 0; transform: scale(.86); } 32% { opacity: .7; transform: scale(.97); } 48% { opacity: .95; transform: scale(1.08); } 68%, 100% { opacity: 0; transform: scale(1.2); } }
.action-dye-burst { animation-name: action-dye-burst; }
@keyframes action-dye-burst { 0% { opacity: .5; transform: scale(.25); } 18% { opacity: 1; transform: scale(.83); } 43% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.2) translateY(3%); } }
.action-ink-streak { transform-origin: 0 50%; transform: rotate(var(--angle, 0rad)); animation-name: action-ink-streak; }
@keyframes action-ink-streak { 0% { opacity: 0; clip-path: inset(0 100% 0 0); } 10% { opacity: 1; } 51% { opacity: 1; clip-path: inset(0 0 0 3%); } 100% { opacity: 0; clip-path: inset(0 0 0 100%); } }
.action-ink-hit { animation-name: action-ink-hit; }
@keyframes action-ink-hit { 0% { opacity: .3; transform: scale(.67); } 17% { opacity: 1; transform: scale(1.015, .97); } 34% { opacity: 1; transform: scale(1); } 71% { opacity: .74; transform: translateY(1%) scale(1.035); } 100% { opacity: 0; transform: translateY(5%) scale(1.045); } }
.art-ink-specks { transform-origin: 50px 50px; animation-name: art-ink-specks; }
@keyframes art-ink-specks { 0% { opacity: .2; transform: scale(.7); } 22% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: translateY(5px) scale(1.14); } }

.action-uzi-source { animation-name: action-uzi-source; }
@keyframes action-uzi-source { 0%, 87% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(5%); } }
.action-muzzle-recoil { transform-origin: 50% 50%; animation-name: action-muzzle-recoil; }
@keyframes action-muzzle-recoil {
  0% { opacity: .6; transform: rotate(var(--angle, 0rad)) scaleX(.6) scaleY(.7); }
  18% { opacity: 1; transform: rotate(var(--angle, 0rad)) scale(1); }
  54% { opacity: .85; transform: rotate(var(--angle, 0rad)) scale(1.1, .8); }
  100% { opacity: 0; transform: rotate(var(--angle, 0rad)) scale(1.2, .3); }
}
.action-uzi-hit { animation-name: action-uzi-hit; }
@keyframes action-uzi-hit { 0% { opacity: .8; transform: scale(.5); } 20% { opacity: 1; transform: scale(.78); } 65% { opacity: .65; transform: scale(1); } 100% { opacity: 0; transform: scale(1.09); } }
.art-impact-ticks { transform-origin: 50px 50px; animation-name: art-impact-ticks; }
@keyframes art-impact-ticks { 0% { opacity: .8; transform: scale(.7); } 28% { opacity: 1; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.13); } }
.action-shell { transform-origin: 50% 50%; animation-name: action-shell; }
@keyframes action-shell { 0% { opacity: 1; transform: translate(0,0) rotate(0); } 38% { opacity: 1; transform: translate(var(--shell-x, -28px), var(--shell-y, -45px)) rotate(110deg); } 76% { opacity: .8; transform: translate(var(--shell-end-x, -48px), 8px) rotate(260deg); } 100% { opacity: 0; transform: translate(var(--shell-end-x, -48px), 48px) rotate(350deg); } }

.action-teal-glass { animation-name: action-teal-glass; }
@keyframes action-teal-glass { 0%, 58% { opacity: 1; } 100% { opacity: 0; } }
.art-shard { transform-origin: 49px 50px; animation-name: art-shard; }
@keyframes art-shard { 0% { transform: translate(0,0) rotate(0); } 58% { transform: translate(var(--dx), var(--dy)) rotate(var(--spin)); } 100% { transform: translate(var(--dx), calc(var(--dy) + 22px)) rotate(calc(var(--spin) + 55deg)); } }
.action-molotov-impact { animation-name: action-molotov-impact; }
@keyframes action-molotov-impact { 0% { opacity: 1; transform: scale(.18, .5); } 24% { opacity: 1; transform: scale(.75, .93); } 68% { opacity: .55; transform: scale(1.05, .73); } 100% { opacity: 0; transform: scale(1.18, .56); } }
.action-molotov-burst { transform-origin: 50% 100%; animation-name: action-molotov-burst; }
@keyframes action-molotov-burst { 0% { opacity: .55; transform: scale(.6, .24); } 19% { opacity: 1; transform: scale(1, .93); } 44% { opacity: .96; transform: scale(.94, 1.035); } 72% { opacity: .65; transform: translateY(-4%) scale(.9, 1.07); } 100% { opacity: 0; transform: translateY(-12%) scale(.75, 1.1); } }
.action-fire-rise { transform-origin: 50% 100%; animation-name: action-fire-rise; }
@keyframes action-fire-rise { 0% { opacity: 0; clip-path: inset(99% -8% -8%); } 9% { opacity: .9; } 45% { opacity: .86; clip-path: inset(-8% -8% -8%); } 73% { opacity: .55; clip-path: inset(-8% -8% -8%); } 100% { opacity: 0; clip-path: inset(-8% -8% -8%); } }
.action-fire-crown { transform-origin: 50% 100%; animation-name: action-fire-crown; }
@keyframes action-fire-crown { 0% { opacity: .4; transform: scale(.85, .2); } 23% { opacity: .95; transform: scale(1, .93); } 56% { opacity: .7; transform: scale(.95, 1.04); } 100% { opacity: 0; transform: translateY(-10%) scale(.85, 1.1); } }
.art-fire-back { transform-origin: 50px 100px; animation-name: art-fire-back; }
@keyframes art-fire-back { 0% { transform: skewX(-5deg) scaleY(.7); } 38% { transform: skewX(3deg) scaleY(1); } 77% { transform: skewX(-2deg) scaleY(1.05); } 100% { transform: skewX(1deg) scaleY(1.1); } }
.art-fire-front { transform-origin: 50px 100px; animation-name: art-fire-front; }
@keyframes art-fire-front { 0% { transform: skewX(3deg) scaleY(.8); } 30% { transform: skewX(-3deg) scaleY(1); } 64% { transform: skewX(2deg) scaleY(.97); } 100% { transform: skewX(-1deg) scaleY(1.06); } }
.art-fire-core { transform-origin: 50px 100px; animation-name: art-fire-core; }
@keyframes art-fire-core { 0% { opacity: .6; transform: scale(.8, .65); } 25% { opacity: 1; transform: scale(1); } 72% { opacity: .8; transform: scale(.9, .95); } 100% { opacity: .3; transform: scale(.8, 1.05); } }
.art-ember { animation-name: art-ember; }
@keyframes art-ember { 0% { opacity: 0; transform: translate(0, 12px); } 20% { opacity: 1; } 78% { opacity: .7; } 100% { opacity: 0; transform: translate(var(--drift, 3px), -10px); } }
.action-throw-trail { transform-origin: 50% 100%; animation-name: action-throw-trail; }
@keyframes action-throw-trail { 0% { opacity: .9; transform: rotate(var(--angle, 0rad)) scale(.7, .4); } 40% { opacity: .8; transform: rotate(var(--angle, 0rad)) scale(1); } 100% { opacity: 0; transform: rotate(var(--angle, 0rad)) translateY(-15%) scale(.65, 1.1); } }

/* Low quality keeps source/contact/result cues and drops secondary layers. */
#stage.lowq .action-fx, #stage.lowq .action-prop { filter: none !important; box-shadow: none !important; }
#stage.lowq .art-secondary, #stage.lowq .action-teal-glass, #stage.lowq .action-shell { display: none; }
#stage.lowq .action-art .art-fire-front, #stage.lowq .action-art .art-fire-core, #stage.lowq .action-art .art-shard { animation-name: none; }
#stage.calm .action-fx, #stage.calm .action-prop { display: none; }
@media (prefers-reduced-motion: reduce) { .action-fx, .action-prop { display: none; } }
