/* ===================================================================
   CINEMA SLAUGHTER — Director-card resolution animation styles
   The punchy "here's what just happened" scenes inside the clapperboard.
   =================================================================== */
.fx-scene { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: 200px; justify-content: center; }
.fx-stamp {
  font-size: clamp(30px, 7cqw, 56px); color: #f4ecdf; text-transform: uppercase; line-height: .9; letter-spacing: .01em;
  text-shadow: 3px 3px 0 var(--fx-accent, var(--blood)), 6px 6px 0 rgba(0,0,0,.5);
  animation: fxStamp .42s cubic-bezier(.2,1.5,.35,1) both; transform-origin: center;
}
@keyframes fxStamp { 0% { transform: scale(2.4) rotate(-9deg); opacity: 0; } 60% { transform: scale(.92) rotate(-3deg); opacity: 1; } 100% { transform: scale(1) rotate(-2deg); } }
.fx-art { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; min-height: 120px; }

/* shared avatar chips */
.fx-av { display: grid; place-items: center; border-radius: 50%; color: #fff; font-family: 'Anton', sans-serif; box-shadow: 0 6px 16px -6px rgba(0,0,0,.8), inset 0 0 0 2px rgba(0,0,0,.25); }
.fx-av.big { width: 64px; height: 64px; font-size:calc((24px) * var(--text-scale,1)); }
.fx-av:not(.big):not(.sm) { width: 48px; height: 48px; font-size:calc((18px) * var(--text-scale,1)); }
.fx-av.sm { width: 34px; height: 34px; font-size:calc((13px) * var(--text-scale,1)); }

/* mini VHS card token */
.fx-mini-card { display: inline-block; width: 30px; height: 46px; border-radius: 3px; background: var(--card-paper); border: 1px solid #000; box-shadow: 0 4px 10px -4px rgba(0,0,0,.8); position: relative; }
.fx-mini-card::after { content: ""; position: absolute; inset: 4px; background: repeating-linear-gradient(0deg, var(--ink) 0 2px, transparent 2px 6px); opacity: .25; }
.fx-mini-card.new { background: var(--chroma-c); }

/* ---- BENCHED (I'll Be In My Trailer) ---- */
.fx-bench { position: relative; width: 280px; height: 130px; display: grid; place-items: center; overflow: hidden; }
.fx-trailer { position: absolute; right: -10px; top: 50%; transform: translateY(-50%); width: 120px; height: 90px; border-radius: 6px;
  background: linear-gradient(180deg, #2a2018, #15100b); border: 2px solid #000; box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--chroma-c) 30%, transparent);
  animation: fxDoorIn .5s ease both .2s; opacity: 0; }
.fx-trailer::after { content: "🚪"; position: absolute; inset: 0; display: grid; place-items: center; font-size:calc((30px) * var(--text-scale,1)); }
@keyframes fxDoorIn { from { transform: translate(60px,-50%); opacity: 0; } to { transform: translate(0,-50%); opacity: 1; } }
.fx-storm { position: relative; animation: fxStorm 1.5s cubic-bezier(.5,0,.7,1) both .5s; }
@keyframes fxStorm { 0% { transform: translateX(-60px); opacity: 1; } 70% { opacity: 1; } 100% { transform: translateX(70px) scale(.7); opacity: 0; } }
.fx-puff { position: absolute; left: -14px; bottom: 0; width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.18); animation: fxPuff 1.4s ease infinite .6s; }
@keyframes fxPuff { 0% { transform: scale(.4); opacity: .5; } 100% { transform: scale(1.6) translateX(-20px); opacity: 0; } }
.fx-bench-name { position: absolute; bottom: 2px; color: color-mix(in srgb, #f4ecdf 75%, transparent); font-size:calc((12px) * var(--text-scale,1)); }

/* ---- CHECK BOUNCED (Residuals) ---- */
.fx-bounce { position: relative; display: flex; align-items: center; gap: 18px; }
.fx-bounce.safe, .fx-bounce.f-mono { color: color-mix(in srgb, #f4ecdf 70%, transparent); font-size:calc((13px) * var(--text-scale,1)); }
.fx-check { position: relative; background: #efe8d2; color: #1a1305; border-radius: 4px; padding: 12px 16px; font-size:calc((10px) * var(--text-scale,1)); letter-spacing: .08em; line-height: 1.5; text-align: left;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.8); transform: rotate(-3deg); animation: fxCheckIn .4s ease both; }
.fx-check b { font-family: 'Archivo Black', sans-serif; font-size:calc((13px) * var(--text-scale,1)); letter-spacing: 0; }
.fx-void { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(-14deg); color: var(--blood); -webkit-text-stroke: 1px var(--blood);
  font-family: 'Anton', sans-serif; font-size:calc((26px) * var(--text-scale,1)); opacity: 0; animation: fxVoid .4s ease both .5s; }
@keyframes fxCheckIn { from { transform: rotate(-3deg) translateY(-12px); opacity: 0; } }
@keyframes fxVoid { from { transform: translate(-50%,-50%) rotate(-14deg) scale(2); opacity: 0; } to { opacity: .92; } }
.fx-minus { color: var(--blood); font-size: 54px; text-shadow: 2px 2px 0 #000; animation: fxMinus .6s cubic-bezier(.2,1.4,.4,1) both .7s; opacity: 0; }
@keyframes fxMinus { 0% { transform: translateY(-40px) scale(.4); opacity: 0; } 60% { transform: translateY(6px) scale(1.15); opacity: 1; } 100% { transform: translateY(0) scale(1); opacity: 1; } }

/* ---- RECAST / swap hands (Director's Cut) ---- */
.fx-swap { position: relative; display: flex; align-items: center; gap: 104px; }
.fx-swap-side { display: flex; flex-direction:column; align-items:center; flex:0 0 96px; gap: 12px; }
.fx-swap-side.a .fx-mini-cards { animation: fxSwapA 1.1s ease-in-out both .3s; }
.fx-swap-side.b .fx-mini-cards { animation: fxSwapB 1.1s ease-in-out both .3s; }
@keyframes fxSwapA { 0% { transform:translate(0,0) rotate(0); } 50% { transform:translate(100px,-18px) rotate(-8deg); } 100% { transform:translate(200px,0) rotate(0); } }
@keyframes fxSwapB { 0% { transform:translate(0,0) rotate(0); } 50% { transform:translate(-100px,18px) rotate(8deg); } 100% { transform:translate(-200px,0) rotate(0); } }
.fx-mini-cards { width: 26px; height: 40px; border-radius: 3px; background: var(--card-paper); border: 1px solid #000; box-shadow: 3px 0 0 -1px color-mix(in srgb, var(--card-paper) 80%, #000), 6px 0 0 -2px color-mix(in srgb, var(--card-paper) 70%, #000); }
.fx-swap .fx-mini-cards{border-top:6px solid var(--hand-color,var(--chroma-c));box-sizing:border-box}
.fx-swap-arrows { position:absolute;top:6px;left:50%;margin-left:-17px;font-size:calc((34px) * var(--text-scale,1)); color: var(--chroma-a); animation: fxArrows 1.6s ease infinite; }
@keyframes fxArrows { 0%,100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.3); opacity: 1; } }
.fx-swap-name { position: absolute; bottom: -26px; left: 50%; transform: translateX(-50%); white-space: nowrap; color: color-mix(in srgb, #f4ecdf 72%, transparent); font-size:calc((12px) * var(--text-scale,1)); }

/* ---- RECASTING (redeal all) ---- */
.fx-redeal { position: relative; display: flex; gap: 22px; align-items: flex-end; }
.fx-redeal-seat { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fx-redeal-seat .fx-mini-card { animation: fxDealDrop .5s cubic-bezier(.2,1.2,.4,1) both; animation-delay: calc(var(--i) * .12s + .3s); opacity: 0; }
@keyframes fxDealDrop { from { transform: translateY(-40px) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.fx-redeal-line { position: absolute; bottom: -26px; left: 50%; transform: translateX(-50%); white-space: nowrap; color: color-mix(in srgb, #f4ecdf 72%, transparent); font-size:calc((12px) * var(--text-scale,1)); }

/* ---- SCENE CUT (ditch + redraw) ---- */
.fx-scenecut { position: relative; display: flex; align-items: center; gap: 16px; }
.fx-toss { animation: fxToss 1.1s cubic-bezier(.4,0,.7,1) both .2s; }
.fx-toss-card { display: grid; place-items: center; width: 78px; min-height: 50px; padding: 8px; border-radius: 4px; background: var(--card-paper); color: var(--ink);
  font-family: 'Archivo Black', sans-serif; font-size:calc((9px) * var(--text-scale,1)); text-transform: uppercase; text-align: center; line-height: 1.1; box-shadow: 0 6px 14px -6px rgba(0,0,0,.8); }
@keyframes fxToss { 0% { transform: rotate(0) translateX(0); opacity: 1; } 100% { transform: rotate(-40deg) translate(-60px,30px); opacity: 0; } }
.fx-arrow { font-size:calc((28px) * var(--text-scale,1)); color: var(--chroma-b); }
.fx-draw .fx-mini-card { width: 50px; height: 70px; animation: fxDealDrop .5s cubic-bezier(.2,1.2,.4,1) both .7s; opacity: 0; }
.fx-scenecut-line { position: absolute; bottom: -26px; left: 50%; transform: translateX(-50%); white-space: nowrap; color: color-mix(in srgb, #f4ecdf 72%, transparent); font-size:calc((12px) * var(--text-scale,1)); }

/* ---- WORST WINS (Writers Strike invert) ---- */
.fx-invert { position: relative; perspective: 600px; display: grid; place-items: center; height: 100px; }
.fx-flip { position: relative; width: 200px; height: 64px; transform-style: preserve-3d; animation: fxFlip 1.2s cubic-bezier(.5,0,.3,1) both .3s; }
@keyframes fxFlip { 0% { transform: rotateX(0); } 100% { transform: rotateX(180deg); } }
.fx-flip-face { position: absolute; inset: 0; display: grid; place-items: center; backface-visibility: hidden; border-radius: 6px; font-family: 'Anton', sans-serif; font-size:calc((30px) * var(--text-scale,1)); letter-spacing: .04em; }
.fx-flip-face.best { background: var(--chroma-c); color: var(--ink); }
.fx-flip-face.worst { background: var(--blood); color: var(--bone); transform: rotateX(180deg); }
.fx-picket { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); white-space: nowrap; color: color-mix(in srgb, #f4ecdf 72%, transparent); font-size:calc((12px) * var(--text-scale,1)); }

/* ---- ANOTHER TAKE (reshoot) ---- */
.fx-reshoot { position: relative; display: grid; place-items: center; height: 110px; gap: 12px; }
.fx-clap-top { width: 120px; height: 18px; background: repeating-linear-gradient(115deg, #f4ecdf 0 14px, #0c0c0c 14px 28px); transform-origin: left center; animation: fxClap .7s ease both; }
@keyframes fxClap { 0% { transform: rotate(-26deg); } 45% { transform: rotate(-26deg); } 60% { transform: rotate(0); } 70% { transform: rotate(-4deg); } 100% { transform: rotate(0); } }
.fx-film { display: flex; gap: 4px; animation: fxFilmSlide 1.4s linear both .3s; }
.fx-film i { width: 26px; height: 34px; background: #1a1410; border: 2px solid #000; border-radius: 2px; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--chroma-c) 25%, transparent); }
@keyframes fxFilmSlide { from { transform: translateX(40px); opacity: .3; } to { transform: translateX(0); opacity: 1; } }
.fx-reshoot-line { color: color-mix(in srgb, #f4ecdf 72%, transparent); font-size:calc((12px) * var(--text-scale,1)); }

/* ---- EXPENSIVE STUNT (random play) ---- */
.fx-stunt { position: relative; display: grid; place-items: center; height: 110px; gap: 14px; }
.fx-slot { display: flex; gap: 8px; }
.fx-slot i { width: 44px; height: 60px; border-radius: 4px; background: #15100b; border: 2px solid #000; overflow: hidden; position: relative; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--chroma-a) 30%, transparent); }
.fx-slot i::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 300%;
  background: repeating-linear-gradient(0deg, var(--chroma-c) 0 20px, var(--chroma-a) 20px 40px, var(--chroma-b) 40px 60px); }
.fx-slot i.s1::after { animation: fxSlot .6s linear infinite; }
.fx-slot i.s2::after { animation: fxSlot .6s linear infinite .15s; }
.fx-slot i.s3::after { animation: fxSlot .6s linear infinite .3s; }
@keyframes fxSlot { from { transform: translateY(-66%); } to { transform: translateY(0); } }
.fx-stunt-line { color: color-mix(in srgb, #f4ecdf 72%, transparent); font-size:calc((12px) * var(--text-scale,1)); text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .fx-stamp, .fx-storm, .fx-trailer, .fx-minus, .fx-void, .fx-check, .fx-swap-side.a, .fx-swap-side.b,
  .fx-swap-arrows, .fx-redeal-seat .fx-mini-card, .fx-toss, .fx-draw .fx-mini-card, .fx-flip,
  .fx-clap-top, .fx-film, .fx-slot i::after { animation-duration: .01s !important; }
  .fx-minus, .fx-void, .fx-trailer, .fx-redeal-seat .fx-mini-card, .fx-draw .fx-mini-card { opacity: 1 !important; }
  .fx-swap-side.a .fx-mini-cards{animation:none;transform:translateX(200px)}
  .fx-swap-side.b .fx-mini-cards{animation:none;transform:translateX(-200px)}
}
body.reduce-motion .fx-swap-side.a .fx-mini-cards{animation:none;transform:translateX(200px)}
body.reduce-motion .fx-swap-side.b .fx-mini-cards{animation:none;transform:translateX(-200px)}

/* Match pause holds visual beats alongside their pause-aware sound clock. */
.fx-scene.fx-paused,.fx-scene.fx-paused *{animation-play-state:paused!important}

/* The rule is presented once; its outcome gets its own uncluttered stage. */
.director-effect { width:min(1000px,90%); text-align:center; }
.director-effect .fx-scene { margin:0; min-height:300px; gap:28px; }

/* A heavy step kills the score; a grey hold precedes one sweeping alarm light.
   Position/light are driven by the pause-aware presentation clock, not CSS time. */
.director-interruption { position:absolute; inset:0; z-index:80; overflow:hidden; pointer-events:none; }
.director-held-quote { position:absolute; inset:80px 24px 0; display:flex; align-items:center; }
.director-held-quote .prompt-card {width:100%; padding:30px;}
.director-held-quote .prompt-quote {font-size:48px;line-height:1.12}
.director-grey-picture {position:absolute;inset:0;background:#80808024;backdrop-filter:grayscale(.72) brightness(.82);}
.director-alarm-light {position:absolute;inset:-10%;opacity:var(--alarm-light);
  background:radial-gradient(ellipse at var(--alarm-sweep) 12%,#ff243db0,transparent 58%),linear-gradient(0deg,#bc001e66,transparent 70%);
  box-shadow:inset 0 0 110px #f51630;mix-blend-mode:screen;}
.director-screen-shake {translate:var(--director-shake-x) var(--director-shake-y)}
.no-shake .director-screen-shake,.reduce-motion .director-screen-shake {translate:none}
.reduce-motion .director-alarm-light {background:#a80f2438;box-shadow:none}
.reduce-flashing .director-alarm-light {opacity:.18;box-shadow:none}
.reduce-flashing .director-interruption[data-alarming="false"] .director-alarm-light {opacity:0}
@media(prefers-reduced-motion:reduce){.director-screen-shake{translate:none}.director-alarm-light{background:#a80f2438;box-shadow:none}}
