/* TERESA — DARK STREET (js/dialogue-scenes/scene-teresa-street.js): the
   distance bands paced out on the sidewalk, the breath behind the pallets,
   the one called shot at eleven feet. */

/* ── the bands: a ruler over the paper, lit as she paces ── */
#tzBands {
  position: fixed; left: 50%; top: 92px; transform: translateX(-50%); z-index: 1000030;
  width: min(900px, calc(100vw - 32px)); pointer-events: none;
  font-family: 'Courier Prime', 'Courier New', Courier, monospace;
  background: rgba(22, 18, 16, 0.92); border: 1px solid rgba(196, 168, 122, 0.45);
  padding: 10px 14px 12px; color: #EBE6D8;
  opacity: 0; transition: opacity .5s ease;
}
#tzBands.tzb-in { opacity: 1; }
#tzBands .tzb-title { font-size: 11px; letter-spacing: 4px; color: #c4a87a; margin-bottom: 8px; }
#tzBands .tzb-row { display: flex; gap: 4px; }
#tzBands .tzb-band {
  flex: 1; border-top: 3px solid #3a3330; padding-top: 6px; opacity: .28; transition: opacity .4s ease, border-color .4s ease;
}
#tzBands .tzb-band b { display: block; font-size: 13px; letter-spacing: 2px; font-weight: normal; }
#tzBands .tzb-band i { display: block; font-size: 12px; color: #b9ad9a; margin-top: 2px; }
#tzBands .tzb-band.tzb-lit { opacity: 1; border-color: #c4a87a; }
#tzBands .tzb-band.tzb-here { border-color: #e0c48a; box-shadow: 0 -6px 14px -8px rgba(224, 196, 138, 0.8); }

/* ── the breath ── */
#tzBreath {
  position: fixed; inset: 0; z-index: 1000040; user-select: none;
  font-family: 'Courier Prime', 'Courier New', Courier, monospace; color: #EBE6D8;
  background: radial-gradient(ellipse 70% 60% at 50% 60%, #2a2622 0%, #15120f 70%, #0a0908 100%);
  opacity: 0; transition: opacity .5s ease;
}
#tzBreath.tzr-in { opacity: 1; }
#tzBreath .tzr-say { position: absolute; top: 9%; left: 0; right: 0; text-align: center; font-size: 19px; }
#tzBreath .tzr-bpm { position: absolute; top: 24%; left: 0; right: 0; text-align: center; font-size: 64px; letter-spacing: 4px; }
#tzBreath .tzr-bpm small { display: block; font-size: 12px; letter-spacing: 4px; color: #b9ad9a; }
#tzBreath .tzr-lung {
  position: absolute; left: 50%; top: 52%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%;
  border: 1px solid rgba(196, 168, 122, 0.5);
  background: radial-gradient(circle, rgba(196, 168, 122, 0.22), rgba(196, 168, 122, 0.04) 70%);
  transform: scale(1); transition: transform .9s ease;
}
#tzBreath.tzr-out .tzr-lung { transform: scale(.45); transition: transform 3.2s linear; }
#tzBreath .tzr-pulse {
  position: absolute; left: 50%; top: 52%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #8B0000; animation: tzrBeat var(--tzr-beat, .5s) ease-in-out infinite;
}
@keyframes tzrBeat { 0%, 100% { transform: scale(1); opacity: .6; } 30% { transform: scale(1.8); opacity: 1; } }
#tzBreath .tzr-btn {
  position: absolute; left: 50%; bottom: 13%; transform: translateX(-50%);
  font-family: inherit; font-size: 15px; letter-spacing: 3px; color: #EBE6D8;
  background: #3A3238; border: 1px solid #c4a87a; padding: 10px 28px; cursor: pointer; touch-action: none;
}
#tzBreath .tzr-btn[disabled] { opacity: .35; cursor: default; border-color: #8E7F7F; }
#tzBreath .tzr-note { position: absolute; left: 0; right: 0; bottom: 7%; text-align: center; font-size: 13px; color: #b9ad9a; letter-spacing: 1px; }

/* ── the called shot: the doorway at eleven feet, the sight, the hand ── */
#tzShot {
  position: fixed; inset: 0; z-index: 1000040; overflow: hidden; cursor: crosshair; user-select: none;
  font-family: 'Courier Prime', 'Courier New', Courier, monospace; color: #EBE6D8;
  background:
    linear-gradient(180deg, #8c8a84 0%, #77736b 46%, #4f4b45 47%, #3a3733 100%);
  opacity: 0; transition: opacity .35s ease;
}
#tzShot.tzs-in { opacity: 1; }
#tzShot .tzs-window {                   /* the laundromat's glass, fogged at the bottom third */
  position: absolute; left: 8%; right: 54%; top: 14%; bottom: 53%;
  background: linear-gradient(180deg, rgba(210, 225, 228, 0.35) 0%, rgba(230, 238, 240, 0.75) 66%, rgba(240, 244, 245, 0.9) 100%);
  box-shadow: inset 0 0 0 3px #3e3a35;
}
#tzShot .tzs-door { position: absolute; left: 50%; width: 15%; top: 10%; bottom: 53%; background: #1d1b19; box-shadow: inset 0 0 0 3px #3e3a35; }
#tzShot .tzs-man {                      /* a shape, not a face */
  position: absolute; left: 49%; top: 22%; width: 17%; height: 60%;
  background:
    radial-gradient(ellipse 22% 13% at 50% 9%, #121110 96%, transparent 100%),
    linear-gradient(180deg, transparent 15%, #161514 15%, #161514 100%);
  border-radius: 40% 40% 8% 8%;
}
#tzShot .tzs-gun {                      /* the gray shape coming out of the jacket */
  position: absolute; left: 61%; top: 44%; width: 46px; height: 22px; border-radius: 3px;
  background: linear-gradient(180deg, #8a8d92, #55585d);
  transform: rotate(-14deg); transition: transform .5s cubic-bezier(.2, .8, .2, 1), left .5s ease, top .5s ease, opacity .5s ease;
}
#tzShot.tzs-fired .tzs-gun { left: 74%; top: 82%; transform: rotate(250deg); opacity: .9; }
#tzShot .tzs-sight {                    /* the brass bead on the gray shape */
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  transition: left .18s linear, top .18s linear;
}
#tzShot .tzs-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);
}
#tzShot .tzs-sight::after {             /* the barrel under the bead, out of focus */
  content: ''; position: absolute; left: -38px; top: 6px; width: 76px; height: 70vh; border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, rgba(20, 21, 24, 0.92), rgba(8, 8, 10, 0.98)); filter: blur(2px);
}
#tzShot .tzs-face-pull {                /* the eye goes to the face: the street blurs there */
  position: absolute; inset: 0; pointer-events: none; backdrop-filter: blur(0px); transition: backdrop-filter .3s ease;
}
#tzShot .tzs-chip {
  position: absolute; right: 4%; top: 5%; text-align: right; font-size: 12px; letter-spacing: 2px;
  background: rgba(20, 17, 15, 0.85); border: 1px solid rgba(196, 168, 122, 0.5); padding: 8px 12px;
}
#tzShot .tzs-chip b { display: block; font-size: 20px; font-weight: normal; color: #e0c48a; letter-spacing: 1px; margin-top: 3px; }
#tzShot .tzs-say { position: absolute; left: 0; right: 0; top: 5%; text-align: center; font-size: 18px; text-shadow: 0 1px 3px #000; }
#tzShot .tzs-ammo { position: absolute; left: 4%; top: 5%; font-size: 12px; letter-spacing: 2px; color: #EBE6D8; text-shadow: 0 1px 3px #000; }
#tzShot .tzs-ammo b { display: block; font-size: 22px; font-weight: normal; }
#tzShot .tzs-flash { position: absolute; inset: 0; background: #fff8e8; opacity: 0; pointer-events: none; }
#tzShot.tzs-fired .tzs-flash { animation: tzsFlash .5s ease-out; }
@keyframes tzsFlash { 0% { opacity: .95; } 100% { opacity: 0; } }
#tzShot.tzs-fired { animation: tzsKick .35s ease-out; }
@keyframes tzsKick { 0% { transform: translateY(0); } 25% { transform: translateY(-8px) scale(1.01); } 100% { transform: translateY(0); } }
