/* TERESA ARC · the placemat becomes Pier Nine (js/dialogue-scenes/scene-teresa-matchcut.js,
   D · LIGHT LEADS of TERESA-MATCHCUT.html). One frame the shape of the pier photo
   (1517×1037), contained in the window over the arc's blue-black; the table on top, the pier
   under it, the light over both. */
#tzMatch {
  position: fixed; inset: 0; z-index: 1000040; background: #05060a; cursor: pointer;
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .7s ease;
  container-type: size;
}
#tzMatch.tzm-in { opacity: 1; }
#tzMatch .tzm-frame {
  position: relative; overflow: hidden; background: #000;
  width: min(100cqw, calc(100cqh * 1517 / 1037)); aspect-ratio: 1517 / 1037;
  box-shadow: 0 0 80px 30px #05060a inset;
}
#tzMatch .tzm-layer { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
#tzMatch img.tzm-layer { object-fit: cover; }
#tzMatch .tzm-sprite { position: absolute; transform-origin: 50% 50%; pointer-events: none; will-change: opacity, transform; }
#tzMatch .tzm-sprite img { display: block; width: 100%; height: auto; }
#tzMatch .tzm-off { opacity: 0; }
#tzMatch .tzm-light { mix-blend-mode: multiply; pointer-events: none; }
#tzMatch .tzm-container img { filter: brightness(.85) drop-shadow(7px 9px 6px rgba(0, 0, 0, .6)); }
#tzMatch .tzm-gun img { filter: brightness(1.45) contrast(1.15) drop-shadow(2px 3px 2px rgba(0, 0, 0, .7)); }
#tzMatch .tzm-hand { overflow: hidden; top: auto; bottom: 0; width: 23%; height: auto; aspect-ratio: 757 / 905; }
#tzMatch .tzm-hand img { position: absolute; top: 0; width: 200%; height: 100%; }
/* the light leads: the lamp over the table turns the port's sodium — dirty, not warm */
#tzMatch .tzm-sodium { mix-blend-mode: color; background: #b9a36a; opacity: 0; pointer-events: none; }
#tzMatch .tzm-sodium-dark { mix-blend-mode: multiply; background: #3a3c44; opacity: 0; pointer-events: none; }
/* the frame's edge dissolves into the room */
#tzMatch .tzm-frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 70px 24px rgba(5, 6, 10, .85); }
