/* The screen is quiet black; the ink and the actors carry the scene. */
body.cinema-open{overflow:hidden}
#cutscene{position:fixed;inset:0;margin:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;border:0;background:#080e10;box-shadow:none;color:var(--paper);overflow:auto;overscroll-behavior:contain}
#cutscene::backdrop{background:#080e10;backdrop-filter:none}
.cinema-shell{max-width:1600px;min-height:100%;margin:auto;display:flex;flex-direction:column;padding:22px max(24px,env(safe-area-inset-right)) 16px max(24px,env(safe-area-inset-left))}
.cinema-top{display:flex;align-items:center;justify-content:space-between;gap:24px;flex:none;max-width:1260px;width:100%;margin:0 auto 12px}
#cinema-kicker{font:10px/1.6 CaseMono,monospace;letter-spacing:.12em;text-transform:uppercase;color:var(--teal);margin:0 0 6px}
#cinema-title{font:400 23px/1.3 Literata,serif;margin:0;letter-spacing:-.015em}
#cinema-skip{min-height:44px;flex:none;display:flex;gap:18px;align-items:center;font-size:12px;color:var(--muted);padding:8px 4px}
#cinema-skip:hover{color:var(--paper)}
.cinema-screen{position:relative;display:flex;justify-content:center;align-items:center;flex:1;min-height:190px;padding:4px 0 14px}
.cinema-frame{position:relative;isolation:isolate;overflow:hidden;aspect-ratio:1.5;width:min(100%,calc(54dvh * 1.5));max-width:1120px;background:#101819;box-shadow:0 0 70px #0005}
.cinema-image{position:absolute;inset:0;background-repeat:no-repeat;transform-origin:50% 50%;will-change:transform,opacity}
.cinema-vignette{position:absolute;inset:0;pointer-events:none;background:linear-gradient(0deg,#050a1059,transparent 24%,transparent 85%,#050a1030);box-shadow:inset 0 0 80px #0004}
.cinema-rain{position:absolute;inset:-40px 0;pointer-events:none;opacity:.13;background-image:repeating-linear-gradient(105deg,transparent 0 71px,#c5dfdb80 72px,transparent 73px 138px);background-size:100% 240px;animation:cinema-rain 2.4s linear infinite;mask-image:linear-gradient(0deg,transparent,#0008 40%,#000)}
@keyframes cinema-rain{to{transform:translate3d(-15px,40px,0)}}
.cinema-still .cinema-rain{animation-play-state:paused;opacity:0}
.cinema-frame-number{position:absolute;bottom:14px;right:18px;font:10px CaseMono,monospace;letter-spacing:.12em;color:#e5dfceb3;text-shadow:0 1px 5px #000}
#cinema-load{position:absolute;top:50%;left:20px;right:20px;text-align:center;font-size:12px;color:var(--muted);margin:0;pointer-events:none}
#cinema-load:empty{display:none}
.cinema-bottom{width:100%;max-width:1000px;margin:0 auto;flex:none}
.cinema-subtitles{min-height:130px;padding:8px 5% 14px;text-align:center}
#cinema-speaker{font:11px/1.6 Manrope,sans-serif;color:var(--amber);margin:0 0 8px}
#cinema-caption{white-space:pre-line;font:400 calc(var(--body-size) + 5px)/1.65 Literata,serif;margin:0;text-wrap:pretty}
.cinema-timeline{display:flex;gap:9px;margin:0 0 6px}
.cinema-timeline button{position:relative;flex:1;height:28px;padding:12px 0;background:linear-gradient(var(--line),var(--line)) center/100% 2px no-repeat;overflow:hidden}
.cinema-timeline span{display:block;height:2px;width:100%;background:var(--amber);transform-origin:left;transform:scaleX(0)}
.cinema-timeline button[aria-current=step]{background-image:linear-gradient(#8d846f,#8d846f)}
.cinema-controls{display:flex;justify-content:space-between;gap:20px;align-items:center}
.cinema-playback,.cinema-navigation{display:flex;align-items:center;gap:22px}
.cinema-controls button{min-height:44px;font-size:12px}
.cinema-playback button{color:var(--muted);padding:8px 0}
.cinema-playback button[aria-pressed=true]{color:var(--amber)}
.cinema-navigation #cinema-prev{padding:10px 3px;color:var(--muted)}
.cinema-navigation #cinema-next{font-size:12px;min-width:170px;min-height:46px}
.cinema-help{font:10px/1.5 CaseMono,monospace;color:#8e9b97;text-align:center;margin:10px 0 0}
.cinema-help span{margin-left:20px}
.cinema-library{list-style:none;padding:0;margin:12px 0}
.cinema-library li{border-top:1px solid var(--line)}
.cinema-library button{display:flex;align-items:center;justify-content:space-between;gap:20px;text-align:left;width:100%;min-height:68px;padding:15px 0;font-size:15px}
.cinema-library button span{font:10px CaseMono,monospace;color:var(--teal)}
.cinema-library .cinema-locked{padding:18px 0;color:var(--muted);font-size:13px}
@media(hover:hover){.cinema-controls button:not(.primary):hover,.cinema-library button:hover{color:var(--amber)}}
.cinema-controls button:active:not(:disabled),#cinema-skip:active{transform:scale(.98)}
@media(max-width:760px){.cinema-shell{padding:18px max(18px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left))}.cinema-top{align-items:start;margin-bottom:16px;gap:12px}#cinema-kicker{font-size:9px;letter-spacing:.06em;max-width:230px}#cinema-title{font-size:22px}#cinema-skip{font-size:10px;gap:8px;padding-top:0;min-height:40px}.cinema-screen{padding:0 0 12px;min-height:0;align-items:center}.cinema-frame{width:100%;max-width:660px;box-shadow:none}.cinema-frame-number{font-size:9px;bottom:10px;right:12px}.cinema-subtitles{min-height:168px;padding:12px 0 10px}#cinema-caption{font-size:var(--body-size);line-height:1.7}#cinema-speaker{font-size:10px;margin-bottom:10px}.cinema-controls{gap:12px;flex-wrap:wrap}.cinema-playback{gap:20px}.cinema-navigation{gap:15px;flex:1;justify-content:end}.cinema-navigation #cinema-next{min-width:0;font-size:11px;min-height:44px;padding:12px 14px}.cinema-controls button{font-size:11px}.cinema-help{font-size:9px;margin-top:13px}.cinema-help span{margin-left:10px}}
@media(max-width:380px){.cinema-controls{gap:2px}.cinema-playback{width:100%;justify-content:center;gap:35px}.cinema-navigation{width:100%;justify-content:space-between}.cinema-subtitles{min-height:190px}#cinema-title{font-size:20px}}
@media(max-height:600px) and (orientation:landscape){.cinema-shell{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);grid-template-rows:auto 1fr;gap:10px 24px;padding:12px 24px}.cinema-top{grid-column:1/-1;margin-bottom:0}#cinema-title{font-size:18px}.cinema-screen{min-width:0;min-height:0;padding:0;align-self:center}.cinema-frame{width:100%;max-height:calc(100dvh - 88px)}.cinema-bottom{min-width:0;align-self:center}.cinema-subtitles{min-height:0;max-height:calc(100dvh - 200px);overflow:auto;padding:4px 0 8px}#cinema-caption{font-size:calc(var(--body-size) - 2px);line-height:1.55}#cinema-speaker{font-size:10px;margin-bottom:6px}.cinema-controls{gap:2px 12px;flex-wrap:wrap}.cinema-playback{gap:18px}.cinema-navigation{gap:12px;flex:1;justify-content:end}.cinema-navigation #cinema-next{font-size:10px;min-width:0;padding:10px 12px}.cinema-controls button{font-size:10px}.cinema-help{display:none}.cinema-timeline{margin-bottom:0}}
@media(prefers-reduced-motion:reduce){.cinema-rain{animation:none;opacity:0}.cinema-image{will-change:auto}}
.reduced-motion .cinema-rain{animation:none;opacity:0}

/* Interior sequences retain their painted dampness without rain falling across faces. */
#cutscene:is([data-sequence=room214],[data-sequence=names],[data-sequence=ambush],[data-sequence=leonard],[data-sequence=bargain]) .cinema-rain{display:none}
