/* WAHAJ prototype — the mission intro: a short film of the mission's 3D world in a video player.
   Like a video, it stays dark in both themes. */
.vid.intro .intro-body { position: relative; aspect-ratio: 16 / 9; background: #000000}
.vid.intro .intro-body video { width: 100%; height: 100%; aspect-ratio: auto}

/* the film */
.mv { position: absolute; inset: 0; overflow: hidden; background: #000000; color: #f5f5f7; outline: none}
.mv-stage { position: absolute; inset: 0}
.mv-stage .s3d { position: absolute; inset: 0}
.mv-stage .s3d canvas { pointer-events: none}
.mv-img { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: 60% 50%}
.mv-cut { position: absolute; inset: 0; z-index: 2; background: #000000; opacity: 0; pointer-events: none}

/* the title, at the start */
.mv-title { position: absolute; inset-inline-start: 48px; bottom: 150px; z-index: 3; pointer-events: none}
.mv-title small { display: block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #00FF6F}
.mv-title h2 { margin: 8px 0 0; font-size: 52px; line-height: 1.05; font-weight: 700; letter-spacing: -.01em; color: #ffffff}

/* subtitles, like a film's */
.mv-sub { position: absolute; inset-inline-start: 0; inset-inline-end: 0; bottom: 74px; z-index: 4; display: flex; justify-content: center; padding: 0 190px; pointer-events: none; text-align: center}
.mv-sub span { display: inline-block; max-width: 860px; padding: 8px 16px; border-radius: 8px; background: rgba(8, 8, 9, 0.78); font-size: 22px; line-height: 1.4; font-weight: 500; color: #ffffff}
.mv.ended .mv-sub { display: none}

/* the end screen */
.mv-end { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 40px 40px; background: rgba(0, 0, 0, 0.62); text-align: center}
.mv-end[hidden] { display: none}
.mv-end small { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #00FF6F}
.mv-end h2 { margin: 10px 0 0; font-size: 44px; font-weight: 700; color: #ffffff}
.mv-end p { margin: 12px 0 0; font-size: 18px; color: #e5e5ea}
.mv-end p b { color: #ffffff}
.mv-go { display: flex; gap: 12px; margin-top: 26px}
.mv-go .btn { height: 48px; padding: 0 22px}
.mv-go .btn-ghost { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); color: #f5f5f7}

/* the controls: a big play button when paused, Skip, and the bar */
.mv-big { position: absolute; left: 50%; top: 50%; z-index: 6; width: 84px; height: 84px; margin: -42px 0 0 -42px; display: none; place-items: center; border-radius: 50%; background: rgba(8, 8, 9, 0.7); border: 1px solid rgba(255, 255, 255, 0.3); color: #ffffff}
.mv.paused:not(.ended) .mv-big { display: grid}
.mv-big:hover { border-color: #00FF6F}
.mv-skip { position: absolute; inset-inline-end: 22px; bottom: 74px; z-index: 6; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; background: rgba(8, 8, 9, 0.72); border: 1px solid rgba(255, 255, 255, 0.24); font-size: 14px; font-weight: 600; color: #ffffff; transition: opacity .3s}
.mv-skip:hover { border-color: #00FF6F}
.mv.ended .mv-skip { display: none}
.mv-bar { position: absolute; inset-inline-start: 0; inset-inline-end: 0; bottom: 0; z-index: 7; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 18px; background: rgba(0, 0, 0, 0.55); transition: opacity .3s}
.mv.idle .mv-bar, .mv.idle .mv-skip { opacity: 0}
.mv.idle { cursor: none}
.mv-b { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: #ffffff}
.mv-b:hover { background: rgba(255, 255, 255, 0.12)}
.mv-b.off { color: #8e8e93}
.mv-track { position: relative; flex: 1; height: 22px; cursor: pointer; touch-action: none}
.mv-track::before { content: ''; position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.28)}
.mv-fill { position: absolute; left: 0; top: 9px; height: 4px; border-radius: 2px; background: #00FF6F}
.mv-knob { position: absolute; top: 4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #ffffff}
.mv-track:focus-visible { outline: 2px solid #00FF6F; outline-offset: 2px; border-radius: 4px}
.mv-time { flex: none; min-width: 92px; font-size: 14px; color: #e5e5ea; text-align: center}
.reduce-motion .mv-skip, .reduce-motion .mv-bar { transition: none}
