/* TERESA · WHAT SHE LEFT · the watch on the table (js/dialogue-scenes/scene-teresa-watch-table.js).
   The engine's look is css/teresa-watch-memory.css; this is the table's: the Coronet's round table
   from above (teresa-matchcut/table_base.jpg, 1254 square) under a grey Sunday, the watch lying flat
   (watch_front / watch_back: 1254 × 2760, the head's square at y 753 — so 220.1 % tall, −60.05 % up). */
#teresaWatchTable { --side: 30cqh; background: #0d0c0b; }
#teresaWatchTable .twm-room { opacity: 0; }
#teresaWatchTable .twm-table {
  position: absolute; width: max(100cqw, 100cqh); height: max(100cqw, 100cqh);
  left: calc(50cqw - max(100cqw, 100cqh) / 2); top: calc(50cqh - max(100cqw, 100cqh) / 2);
  transition: opacity 1.4s ease;   /* the grey Sunday is baked in: watch/table_sunday.jpg */
}
#teresaWatchTable .twm-base { top: -60.05%; height: 220.1%; }
#teresaWatchTable .twm-wrist {
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%);
}
/* the camera: a slow push over the table, then down to the watch */
#teresaWatchTable.twt-push .twm-cam { transform: scale(1.12); transition: transform 7s linear; }
#teresaWatchTable.twt-close .twm-cam { transform: scale(3.1); transition: transform 2.6s cubic-bezier(.45, 0, .2, 1); }
/* into the white glass: the pharmacy */
#teresaWatchTable.twt-close.twt-white-in .twm-cam { transform: scale(9); transition: transform 1.8s cubic-bezier(.6, 0, .4, 1); }
/* picked up to be turned over */
#teresaWatchTable .twm-stage { transition: scale 1.1s cubic-bezier(.5, 0, .3, 1); }
#teresaWatchTable.twt-lift .twm-stage { scale: 1.07; }
/* "I put it on my right wrist": the table goes, the same watch on a wrist */
#teresaWatchTable.twt-wrist .twm-table { opacity: 0; }
#teresaWatchTable.twt-wrist .twm-room { opacity: 1; }
#teresaWatchTable.twt-wrist .twm-front > .twm-base { opacity: 0; }
#teresaWatchTable.twt-wrist .twm-wrist { opacity: 1; }
/* Miami, two in the morning: the pharmacy's white, one line */
#teresaWatchTable .twt-pharm {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease;
  background: radial-gradient(ellipse 90% 80% at 50% 45%, #f4faf7, #d6e8e0 70%, #b9cdc5);
}
#teresaWatchTable.twt-pharmacy .twt-pharm { opacity: 1; }
/* the tube: steady light that stutters now and then, never a strobe (the author, 2026-10-22: the constant
   8 Hz flicker over the whole screen was too much). Two dimming layers on different clocks, so the
   stutters never fall into a beat: one every ~3.1 s (a double catch), one every ~4.7 s (a single one). */
#teresaWatchTable .twt-pharm::before, #teresaWatchTable .twt-pharm::after {
  content: ''; position: absolute; inset: 0; background: #16201d; opacity: 0; pointer-events: none;
}
#teresaWatchTable.twt-pharmacy .twt-pharm::before { animation: twtTubeA 3.1s steps(1, end) 1.4s infinite; }
#teresaWatchTable.twt-pharmacy .twt-pharm::after { animation: twtTubeB 4.7s steps(1, end) 2.6s infinite; }
@keyframes twtTubeA { 0%, 80% { opacity: 0; } 81% { opacity: .2; } 83% { opacity: 0; } 85.5% { opacity: .26; } 87% { opacity: .06; } 88.5%, 100% { opacity: 0; } }
@keyframes twtTubeB { 0%, 90% { opacity: 0; } 91% { opacity: .16; } 92.5%, 100% { opacity: 0; } }
#teresaWatchTable .twt-pline {
  position: absolute; left: 0; right: 0; top: 40%; text-align: center;
  font-family: 'Courier Prime', 'Courier New', Courier, monospace; font-size: 30px; letter-spacing: 3px; color: #2a2a28;
}
