/* ── cinematic fx layer ── */
.fx-layer, .callout-layer {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  border-radius: var(--radius);
}
.fx-layer { z-index: 34; }
.callout-layer { z-index: 36; }

.fx-slash {
  position: absolute; width: var(--len, 320px); height: 30%;
  left: var(--x, 50%); top: var(--y, 50%); translate: -50% -50%; rotate: var(--ang, -18deg);
  background: linear-gradient(90deg, transparent 6%, rgba(255, 255, 255, .92) 46%, #ffe6a8 52%, transparent 94%);
  filter: blur(1px) drop-shadow(0 0 18px rgba(255, 220, 150, .9));
  animation: slashSweep .34s var(--ease) forwards;
}
@keyframes slashSweep {
  0% { opacity: 0; scale: .4 1; }
  35% { opacity: 1; }
  100% { opacity: 0; scale: 1.25 1; }
}
.fx-arc {
  position: absolute; width: var(--w); height: var(--w); left: var(--x); top: var(--y);
  translate: -50% -50%; border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: rgba(255, 236, 190, .95);
  border-inline-end-color: rgba(255, 180, 90, .55);
  box-shadow: 0 0 26px rgba(255, 200, 120, .55);
  animation: arcSpin .4s var(--ease) forwards;
}
@keyframes arcSpin { from { rotate: -120deg; opacity: 0; } to { rotate: 120deg; opacity: 0; } }

.fx-spark {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  left: var(--x); top: var(--y); background: #fff3c4;
  box-shadow: 0 0 12px 3px rgba(255, 196, 92, .95);
  animation: sparkFly var(--dur, .55s) cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes sparkFly {
  0% { opacity: 1; translate: 0 0; scale: 1.2; }
  100% { opacity: 0; translate: var(--tx) var(--ty); scale: .3; }
}
.fx-blood {
  position: absolute; left: var(--x); top: var(--y); width: var(--sz); height: var(--sz);
  border-radius: 52% 48% 60% 40%; background: radial-gradient(circle at 35% 30%, #b81818, #740909 65%, #470404);
  box-shadow: 0 0 10px rgba(120, 8, 8, .7);
  animation: bloodFly var(--dur, .7s) cubic-bezier(.3, .8, .4, 1) forwards;
}
@keyframes bloodFly {
  0% { opacity: .95; translate: 0 0; scale: .5; }
  100% { opacity: .15; translate: var(--tx) var(--ty); scale: 1; }
}
.decal {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  rotate: var(--rot, 0deg); scale: var(--sc, 1);
  background:
    radial-gradient(ellipse 22% 16% at 38% 42%, rgba(110, 8, 8, .78), transparent 70%),
    radial-gradient(ellipse 14% 11% at 62% 66%, rgba(88, 6, 6, .7), transparent 72%),
    radial-gradient(circle 5% at 52% 28%, rgba(140, 14, 14, .75), transparent 70%),
    radial-gradient(circle 4% at 30% 72%, rgba(96, 6, 6, .7), transparent 70%);
  opacity: .85;
}
body.no-blood .decal, body.no-blood .fx-blood { display: none; }

/* ── kill callout ── */
.fx-callout {
  position: absolute; left: 50%; top: var(--cy, 42%); translate: -50% -50%;
  font-family: var(--font-display); font-size: clamp(1.5rem, 4.4vw, 3rem); white-space: nowrap;
  color: #fff3d4; -webkit-text-stroke: 1px rgba(0, 0, 0, .6);
  text-shadow: 0 0 26px rgba(255, 90, 30, .8), 0 6px 18px rgba(0, 0, 0, .9);
  animation: calloutPop 1.05s var(--ease) forwards;
}
.fx-callout.mason { color: #ffd9cf; text-shadow: 0 0 26px rgba(198, 43, 28, .9), 0 6px 18px rgba(0, 0, 0, .9); }
.fx-callout.agatha { color: #e6efff; text-shadow: 0 0 26px rgba(47, 95, 179, .9), 0 6px 18px rgba(0, 0, 0, .9); }
.fx-sub {
  position: absolute; left: 50%; top: calc(var(--cy, 42%) + 2.6rem); translate: -50% -50%;
  font-family: var(--font-head); font-size: clamp(.8rem, 1.6vw, 1.05rem); color: var(--gold-2);
  background: rgba(0, 0, 0, .55); padding: .2rem .8rem; border-radius: 999px;
  border: 1px solid var(--border-strong); white-space: nowrap;
  animation: calloutPop 1.05s var(--ease) forwards;
}
@keyframes calloutPop {
  0% { opacity: 0; scale: .7; }
  18% { opacity: 1; scale: 1.08; }
  30% { scale: 1; }
  76% { opacity: 1; }
  100% { opacity: 0; scale: 1.04; translate: -50% -80%; }
}
.blood-splash {
  position: absolute; inset: 0; opacity: 0; mix-blend-mode: multiply;
  background: radial-gradient(ellipse at var(--cx, 50%) var(--cy, 50%), rgba(120, 8, 8, .75), transparent 42%);
  animation: splashFade .9s var(--ease) forwards;
}
@keyframes splashFade { 0% { opacity: 0; } 22% { opacity: 1; } 100% { opacity: 0; } }

/* ── screen impact ── */
.shake { animation: shakeIt .42s var(--ease); }
@keyframes shakeIt {
  0%, 100% { transform: translate(0, 0); }
  15% { transform: translate(-6px, 4px) rotate(-.5deg); }
  32% { transform: translate(7px, -3px) rotate(.5deg); }
  55% { transform: translate(-4px, -2px); }
  78% { transform: translate(3px, 3px); }
}
.slowmo { animation: slowmoPulse .5s var(--ease); }
@keyframes slowmoPulse { 0% { filter: saturate(1); } 40% { filter: saturate(.35) contrast(1.2) brightness(.85); } 100% { filter: none; } }
.check-veil {
  position: absolute; inset: 0; z-index: 33; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(150, 12, 12, .55) 100%);
  transition: opacity .35s var(--ease);
}
.check-veil.on { opacity: 1; animation: veilPulse 1.5s var(--ease) infinite; }
@keyframes veilPulse { 50% { opacity: .55; } }

.cry-banner {
  position: fixed; left: 50%; top: 22%; translate: -50% -50%; z-index: 60; pointer-events: none;
  font-family: var(--font-display); font-size: clamp(1.6rem, 5vw, 3.4rem); padding: .6rem 1.6rem;
  color: #fff4d8; text-align: center; white-space: nowrap;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, .72), transparent 72%);
  text-shadow: 0 0 32px rgba(255, 150, 40, .95), 0 8px 22px rgba(0, 0, 0, .95);
  animation: cryIn 1.9s var(--ease) forwards;
}
@keyframes cryIn {
  0% { opacity: 0; scale: .8; } 18% { opacity: 1; scale: 1.04; }
  30% { scale: 1; } 80% { opacity: 1; } 100% { opacity: 0; scale: 1.06; }
}
.torch-flash {
  position: fixed; inset: 0; z-index: 55; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 170, 60, .35), transparent 60%);
  animation: torchFlash .8s var(--ease) forwards;
}
@keyframes torchFlash { 0% { opacity: 0; } 22% { opacity: 1; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .shake, .slowmo, .piece.lunging, .piece.striking { animation: none !important; }
  .torch { animation: none; }
}
