html[data-cinema-shot],html[data-cinema-exit]{background:#080a0c}
html[data-cinema-shot] body>header{opacity:var(--hall-header,0)}
html[data-cinema-shot]:not([data-live-shot]) .first-frame{filter:brightness(.009)}
html[data-cinema-shot]:not([data-live-shot]) canvas{visibility:hidden}
html[data-cinema-shot] .mirror-links{pointer-events:none;visibility:hidden}
html[data-cinema-shot] #phone-controls,html[data-cinema-shot] .touch-hint{visibility:hidden}
html[data-cinema-shot]:not([data-cinema-shot=awakening])::after,html[data-cinema-exit]::after{
  content:"";position:fixed;inset:0;z-index:19;pointer-events:none;
  background:#101013 var(--threshold-photo) center / cover no-repeat;
  opacity:var(--hall-glass,1)
}
html[data-cinema-exit]::after{opacity:var(--threshold-progress,0);filter:blur(calc((1 - var(--threshold-progress,0))*3px))}
html[data-cinema-exit] main{scale:calc(1 - var(--threshold-progress,0)*.065);transform-origin:50% 50%}
html[data-cinema-exit=choreo] main:has(.optical-layer){scale:none}
#skip-cinema{display:none}
html[data-cinema-shot] #skip-cinema{display:block;position:fixed;z-index:21;bottom:max(14px,env(safe-area-inset-bottom));right:16px;padding:12px;background:#091016bf;color:#e2d8c8;border:1px solid #d5c8ae40;border-radius:3px;font:12px system-ui;cursor:pointer}
html[data-cinema-shot=awakening] canvas{filter:brightness(var(--hall-light,.06))}
/* The moving glass lip samples a slightly displaced part of the same image.
   At either end of the crossing the optical displacement is zero. */
html[data-cinema-exit]::before{
  content:"";position:fixed;inset:-1%;z-index:20;pointer-events:none;
  background:var(--threshold-photo) center / cover no-repeat;
  opacity:var(--threshold-bend,0);
  transform:translateX(calc(var(--threshold-bend,0)*3px));
  --edge:calc(-10% + var(--threshold-progress,0)*120%);
  -webkit-mask-image:linear-gradient(108deg,transparent calc(var(--edge) - 8%),#000 var(--edge),transparent calc(var(--edge) + 7%));
  mask-image:linear-gradient(108deg,transparent calc(var(--edge) - 8%),#000 var(--edge),transparent calc(var(--edge) + 7%))
}
html[data-cinema-exit=dance] main:has(.house .camera){scale:none}
