/* TERESA — THE PRICE (js/dialogue-scenes/scene-teresa-fight.js) */

/* the one move the script asks for, on the live combat screen */
#combatModal.tzf-mode .combat-action-btn.tzf-call {
  outline: 2px solid #c4a87a; outline-offset: 2px;
  animation: tzfCall 1.4s ease-in-out infinite;
}
@keyframes tzfCall {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 168, 122, 0.0); }
  50% { box-shadow: 0 0 16px 3px rgba(196, 168, 122, 0.55); }
}

/* ── the last two inches: level three, the rear tire, the sight on him ── */
#tzKill {
  position: fixed; inset: 0; z-index: 1000040; overflow: hidden; user-select: none;
  font-family: 'Courier Prime', 'Courier New', Courier, monospace; color: #EBE6D8;
  background: linear-gradient(180deg, #5d5d5a 0%, #4a4a47 50%, #3a3a37 51%, #2c2c2a 100%);
  opacity: 0; transition: opacity .5s ease;
}
#tzKill.tzk-in { opacity: 1; }
#tzKill .tzk-floor {
  position: absolute; left: 0; right: 0; top: 51%; bottom: 0;
  background: repeating-linear-gradient(90deg, transparent 0 220px, rgba(240, 220, 120, 0.18) 220px 226px);
}
#tzKill .tzk-car { position: absolute; left: 18%; right: 30%; top: 30%; height: 30%; border-radius: 20px 40px 8px 8px; background: linear-gradient(180deg, #6a6c70, #3d3f43); }
#tzKill .tzk-tire { position: absolute; left: calc(44% + 40px); top: 47%; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, #3a3a3a 0 30%, #121212 32% 100%); }
#tzKill .tzk-man {                       /* a man sitting against the tire: a shape, never a face */
  position: absolute; left: 44%; top: 40%; width: 150px; height: 220px;
  background:
    radial-gradient(ellipse 30% 17% at 50% 12%, #171615 96%, transparent 100%),
    linear-gradient(180deg, transparent 22%, #1a1918 22%);
  border-radius: 40% 40% 10% 10%;
}
#tzKill .tzk-man::after {               /* the coat gone dark on one side */
  content: ''; position: absolute; right: 8px; top: 40%; width: 40%; height: 40%;
  background: radial-gradient(ellipse, rgba(110, 10, 10, 0.75), transparent 70%);
}
#tzKill .tzk-hand {                     /* the flat hand on the concrete */
  position: absolute; left: 40%; top: 79%; width: 46px; height: 14px; border-radius: 7px; background: #20201f;
  transition: left 2.6s ease-in-out;
}
#tzKill.tzk-reach .tzk-hand { left: calc(40% - 30px); }   /* two inches */
#tzKill .tzk-gun { position: absolute; left: 31%; top: 80%; width: 40px; height: 16px; border-radius: 3px; background: linear-gradient(180deg, #8a8d92, #55585d); transform: rotate(-8deg); }
#tzKill .tzk-sight { position: absolute; left: calc(44% + 75px); top: 50%; width: 0; height: 0; }
#tzKill .tzk-sight::before {
  content: ''; position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #f0d58f, #9b7a33); box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.6);
}
#tzKill .tzk-sight::after {
  content: ''; position: absolute; left: -36px; top: 6px; width: 72px; height: 60vh; border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, rgba(20, 21, 24, 0.95), rgba(8, 8, 10, 0.98)); filter: blur(2px);
}
#tzKill .tzk-say { position: absolute; left: 0; right: 0; top: 7%; text-align: center; font-size: 18px; text-shadow: 0 1px 3px #000; }
#tzKill .tzk-choices { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); display: flex; gap: 18px; }
#tzKill .tzk-btn {
  font-family: inherit; font-size: 15px; letter-spacing: 3px; color: #EBE6D8;
  background: #3A3238; border: 1px solid #c4a87a; padding: 10px 26px; cursor: pointer;
}
#tzKill .tzk-btn:hover { background: #4a3f46; }
#tzKill .tzk-flash { position: absolute; inset: 0; background: #fff8e8; opacity: 0; pointer-events: none; }
#tzKill.tzk-fired .tzk-flash { animation: tzkFlash .45s ease-out; }
#tzKill.tzk-fired .tzk-man, #tzKill.tzk-hers .tzk-man { transform: rotate(-28deg) translate(-30px, 40px); transition: transform .9s cubic-bezier(.3, .8, .3, 1); }
/* HOLD: her shot, from his left shoulder */
#tzKill .tzk-side { position: absolute; left: 0; top: 0; bottom: 0; width: 22%; background: radial-gradient(ellipse at 0% 55%, rgba(255, 240, 210, 0.9), transparent 70%); opacity: 0; pointer-events: none; }
#tzKill.tzk-hers .tzk-side { animation: tzkFlash .5s ease-out; }
@keyframes tzkFlash { 0% { opacity: .9; } 100% { opacity: 0; } }

/* ── the pier, a sight on a man (TeresaFight.sight): forty feet of aisle
   between two walls of steel, sodium light, the foreman with his clipboard ── */
#tzSight {
  position: fixed; inset: 0; z-index: 1000040; overflow: hidden; user-select: none;
  font-family: 'Courier Prime', 'Courier New', Courier, monospace; color: #EBE6D8;
  background: #07090c; opacity: 0; transition: opacity .5s ease;
}
#tzSight.tzk-in { opacity: 1; }
#tzSight .tzp-sky { position: absolute; inset: 0 0 45% 0; background: linear-gradient(180deg, #05070a, #10141a); }
#tzSight .tzp-light { position: absolute; inset: 0; background: radial-gradient(ellipse 40% 55% at 50% 30%, rgba(255, 170, 70, 0.28), transparent 70%); }
#tzSight .tzp-ground { position: absolute; left: 0; right: 0; top: 55%; bottom: 0; background: linear-gradient(180deg, #2a2620, #14120f); }
#tzSight .tzp-stack { position: absolute; top: 12%; bottom: 38%; width: 30%; background: repeating-linear-gradient(90deg, #1d2a33 0 16px, #16212a 16px 22px); box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.8); }
#tzSight .tzp-stack.l { left: 0; clip-path: polygon(0 0, 100% 18%, 100% 100%, 0 100%); }
#tzSight .tzp-stack.r { right: 0; clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%); }
#tzSight .tzp-fore {                     /* a man standing, a clipboard in his hand: a shape, not a face */
  position: absolute; left: 50%; top: 34%; width: 60px; height: 170px; margin-left: -30px;
  background: radial-gradient(ellipse 30% 14% at 50% 9%, #0d0d0d 96%, transparent 100%), linear-gradient(180deg, transparent 17%, #121212 17%);
  border-radius: 40% 40% 6% 6%;
}
#tzSight .tzp-fore::after { content: ''; position: absolute; right: -14px; top: 46%; width: 18px; height: 26px; background: #b9b2a4; transform: rotate(8deg); }
#tzSight.tzs-cost .tzp-fore { left: 47%; top: 30%; width: 46px; height: 130px; }
#tzSight .tzp-man.tzp-down { position: absolute; left: 50%; top: 52%; width: 120px; height: 34px; margin-left: -40px; border-radius: 16px; background: #101010; }
#tzSight .tzp-man.tzp-down::after { content: ''; position: absolute; right: -16px; top: 6px; width: 26px; height: 10px; background: #707377; }   /* the weapon nobody had counted */
#tzSight .tzk-sight { position: absolute; left: 50%; top: 42%; width: 0; height: 0; }
#tzSight.tzs-cost .tzk-sight { top: 54%; }
#tzSight .tzk-sight::before { content: ''; position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f0d58f, #9b7a33); box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.6); }
#tzSight .tzk-sight::after { content: ''; position: absolute; left: -36px; top: 6px; width: 72px; height: 60vh; border-radius: 18px 18px 0 0; background: linear-gradient(180deg, rgba(20, 21, 24, 0.96), rgba(8, 8, 10, 0.99)); filter: blur(2px); }
#tzSight .tzk-say { position: absolute; left: 0; right: 0; top: 7%; text-align: center; font-size: 18px; text-shadow: 0 1px 3px #000; padding: 0 16px; }
#tzSight .tzp-note { position: absolute; left: 0; right: 0; bottom: 15%; text-align: center; font-size: 14px; color: #c4a87a; font-style: italic; padding: 0 16px; }
#tzSight .tzk-choices { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); display: flex; gap: 16px; }
#tzSight .tzk-btn { font-family: inherit; font-size: 15px; letter-spacing: 3px; color: #EBE6D8; background: #3A3238; border: 1px solid #c4a87a; padding: 10px 24px; cursor: pointer; }
#tzSight .tzk-btn[disabled] { opacity: .35; cursor: default; border-color: #8E7F7F; }
/* the cost: a round under the left arm — the whole left half a bell */
#tzSight .tzp-hit { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(ellipse 60% 70% at 15% 55%, rgba(150, 10, 10, 0.75), transparent 70%); }
#tzSight.tzp-wounded .tzp-hit { animation: tzpHit 2.2s ease forwards; }
#tzSight.tzp-wounded { animation: tzpTilt 2.2s ease forwards; }
@keyframes tzpHit { 0% { opacity: 0; } 8% { opacity: 1; } 100% { opacity: .55; } }
@keyframes tzpTilt { 0% { transform: none; filter: none; } 10% { transform: translateX(-14px) rotate(-1.5deg) scale(1.08); } 100% { transform: translateY(40px) rotate(-6deg) scale(1.22); filter: blur(3px) brightness(.5); } }
