/* MAYA — WHAT SHE GAVE YOU (Suite 1407), the 0.11 test scene
   (js/dialogue-scenes/scene-maya-1407-test.js). Under the strip
   (#overlayDialogue 1000095), over the room. */
#m1407 {
  position: fixed; inset: 0; z-index: 1000020; background: #000; overflow: hidden;
  opacity: 0; transition: opacity 1.4s ease;
  font-family: 'Courier Prime', 'Courier New', monospace;
}
#m1407.m14-in { opacity: 1; }
/* the walk back: a dark street, a little rain light from above */
#m1407 .m14-street {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% -10%, rgba(196,168,122,0.16), transparent 55%),
              linear-gradient(180deg, #0d0b0a 0%, #050404 100%);
  transition: opacity 1.6s ease;
}
#m1407 .m14-frame {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transform-origin: 50% 50%;
  /* no will-change: a layer promoted at 1× is upscaled blurry through a 3× zoom and snaps sharp at its end */
}
#m1407 .m14-black { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
/* her face is the whole screen — the strip's portrait chip beside it only repeats it */
body:has(#m1407) #overlayDialogue .ovd-portrait { display: none; }

/* the game's phone over the scene while it plays (the corner handset and its
   open screen sit under this layer otherwise) */
body:has(#m1407) #floatingPhone { z-index: 1000098 !important; }
body:has(#m1407) #phoneContainer { z-index: 1000090 !important; }   /* the open phone: over the scene, under the strip (as cornhub-night.css does) */
/* the message she took back, in her thread */
.phone-message.m14-deleted .phone-message-bubble { background: transparent !important; border: 1px dashed rgba(160,150,140,0.6); }
.phone-message.m14-deleted .phone-message-text { font-style: italic; opacity: 0.7; }

#m1407 .m14-stamp {
  position: absolute; left: 18px; top: 16px; color: #8B0000; border: 2px solid #8B0000;
  padding: 2px 10px; font-size: 0.68rem; letter-spacing: 3px; opacity: 0.85; background: rgba(235,230,216,0.85);
}
