/* Player-owned environments, scrubbed panel effects and the continuous chapter rail. */
.movie-background{position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:contain;pointer-events:none;opacity:0}
.view,.view.active{transition:none}
.view>.panel{opacity:1;transform:none}
/* Nonphotographic stand-ins keep the foreground argument prominent until later media exists. */
/* Artboard-sized backgrounds share an exact edge during opaque horizontal travel. */
.standin-background{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;opacity:0;background:radial-gradient(ellipse at 72% 53%,#1c302f 0,#101d1f 32%,#090e12 71%);transform-origin:65% 50%}
.standin-background::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#080e12d9 0,#080e1255 48%,transparent 80%),linear-gradient(0deg,#080d12 0,transparent 34%);z-index:2}
.standin-background::after{content:"";position:absolute;left:60%;top:0;height:100%;width:1px;background:linear-gradient(transparent,#f7941d25,transparent);transform:rotate(25deg)}
.standin-grid{position:absolute;inset:10%;opacity:.13;background-image:linear-gradient(#7fc6c126 1px,transparent 1px),linear-gradient(90deg,#7fc6c126 1px,transparent 1px);background-size:65px 65px;transform:rotate(-14deg) scale(1.3);mask-image:radial-gradient(ellipse at 65% 50%,black,transparent 70%)}
.standin-contours{position:absolute;width:1050px;height:720px;left:670px;top:45px;transform:rotate(-23deg);opacity:.48}
.standin-contours i{position:absolute;border:1px solid #a2c5bc35;border-radius:46% 54% 58% 42% / 42% 38% 62% 58%;inset:0}
.standin-contours i:nth-child(2){inset:40px;border-color:#f7941d55}
.standin-contours i:nth-child(3){inset:80px}
.standin-contours i:nth-child(4){inset:120px}
.standin-contours i:nth-child(5){inset:160px;border-color:#f7941d38}
.standin-contours i:nth-child(6){inset:200px}
.standin-contours i:nth-child(7){inset:240px}
.standin-axis{position:absolute;left:720px;top:440px;width:800px;height:1px;background:linear-gradient(90deg,transparent,#f7941d66,transparent);transform:rotate(-19deg)}
.standin-5{background:radial-gradient(ellipse at 78% 25%,#243233,#111b21 37%,#090e12 74%)}
.standin-5 .standin-contours{top:130px;left:640px;transform:rotate(27deg) scale(1.15)}
.standin-6 .standin-contours{top:30px;left:420px;transform:rotate(74deg) scale(.95);opacity:.28}
.standin-6 .standin-grid{transform:rotate(0deg);opacity:.1}
.standin-7{background:radial-gradient(ellipse at 66% 40%,#23352f,#101c1f 40%,#080e12 75%)}
.standin-7 .standin-contours{left:740px;top:-90px;transform:rotate(-48deg) scale(1.25)}
.standin-8 .standin-contours{left:860px;top:80px;transform:rotate(12deg) scale(1.5)}
.standin-8 .standin-axis{transform:rotate(0deg);left:80px;top:580px;width:1450px}
.standin-9{background:radial-gradient(ellipse at 58% 65%,#283b32,#102122 36%,#080e12 77%)}
.standin-9 .standin-contours{left:620px;top:0;transform:rotate(-18deg) scale(1.4);opacity:.36}
/* All ten equal chapter marks stay available; the bead follows actual route progress. */
.control-bar{position:absolute;height:130px;left:0;right:0;bottom:0;padding:0 80px;display:block;z-index:30;background:linear-gradient(transparent,#080d12e8 35%,#080d12f5)}
.timeline-space{position:absolute;left:80px;right:80px;top:0;height:55px}
.chapter-nav{position:absolute;left:0;right:0;top:4px;height:44px;display:flex;justify-content:space-between;align-items:center;gap:0;margin:0;--chapter-progress:0}
.chapter-nav .timeline-track{position:absolute;left:0;right:0;top:22px;height:1px;width:auto;background:#b2c4c036;pointer-events:none}
.chapter-nav .timeline-track::before{content:"";display:block;height:1px;width:calc(var(--chapter-progress) * 100%);background:#f7941d99}
.chapter-nav .timeline-dot{position:absolute;left:calc(var(--chapter-progress) * 100%);top:18px;width:9px;height:9px;transform:translateX(-50%);border-radius:50%;background:#f7941d;box-shadow:0 0 0 5px #f7941d13,0 0 15px #f7941d55;z-index:3;pointer-events:none}
.chapter-nav button{position:relative;flex:none;width:28px;height:44px;border:0;padding:0;background:transparent;overflow:visible;opacity:1;z-index:2;transform:none}
.chapter-nav button:first-of-type{margin-left:-14px}
.chapter-nav button:last-of-type{margin-right:-14px}
.chapter-nav button>span{position:absolute;top:20px;left:11px;display:block;width:6px;height:6px;background:#627673;border:1px solid #a6b9b4;border-radius:50%}
.chapter-nav button[aria-current="step"]>span{background:#f7941d;border-color:#f7941d}
.chapter-nav button:hover>span{background:#fff2d9;box-shadow:0 0 0 5px #ffffff12}
.chapter-nav button>b{position:absolute;top:33px;left:14px;transform:translateX(-50%);margin:0;white-space:nowrap;font:9px Arial,sans-serif;letter-spacing:.03em;color:#96a28d}
.chapter-nav button:first-of-type>b{transform:none;left:11px}
.chapter-nav button:last-of-type>b{transform:translateX(-100%);left:17px}
.chapter-nav .chapter-cue{position:absolute;left:14px;top:2px;transform:translateX(-50%);font:8px Arial,sans-serif;color:#7f9189;font-variant-numeric:tabular-nums}
.chapter-nav button:first-of-type .chapter-cue{transform:none;left:11px}
.chapter-nav button:last-of-type .chapter-cue{transform:translateX(-100%);left:17px}
.control-row{position:absolute;left:80px;right:80px;top:62px;height:43px;display:flex;align-items:center;justify-content:space-between}
.scene-progress{display:flex;min-width:0;gap:22px;font:12px Arial,sans-serif;align-items:center}
.controls{min-width:0;gap:14px}
/* Local demo playback remains inside its authored stage and is never uploaded. */
#demo-video[hidden],#demo-placeholder[hidden]{display:none!important}
#demo-video{width:100%;height:100%;object-fit:contain;background:#05090c}
#demo-clock{font-variant-numeric:tabular-nums;white-space:nowrap}
#loading[hidden]{display:none!important}
/* Only the existing preparation line sweeps; hiding the cover removes its animation. */
#loading:not([hidden]) i{background-size:200% 100%;background-repeat:no-repeat;animation:loading-line-sweep 2s ease-in-out infinite}
@keyframes loading-line-sweep{from{background-position:150% 0}to{background-position:-150% 0}}
/* The projector exposes only authored slide content and its slide number; controls stay in the presenter. */
.audience-mode .timeline-space,.audience-mode .controls,.audience-mode #scene-title,.audience-mode #notes,.audience-mode .demo-controls,.audience-mode #demo-clock,.audience-mode #demo-file,.audience-mode #demo-placeholder>.subtle{display:none!important}
.audience-mode .control-bar{height:0;min-height:0;padding:0;border:0;background:none;pointer-events:none}
.audience-mode .control-row{top:auto;bottom:24px;left:auto;right:32px;height:auto;min-height:0}
.audience-mode .scene-progress{display:block}
.audience-mode #counter{display:block;padding:8px 12px;border:1px solid #ffffff20;border-radius:4px;background:#080d12b3;color:#f4f3ee;font:14px Arial,sans-serif;letter-spacing:.08em}

/* The added wrapper has no desktop layout box; mobile tap areas stay outside artboard scaling. */
#mobile-presentation{display:contents}
#mobile-navigation{display:none}
/* The unchanged artboard and transparent full-half navigation share one landscape viewport. */
.mobile-audience #mobile-presentation{display:block;position:fixed;left:50%;top:50%;width:100vw;height:100vh;width:100dvw;height:100dvh;transform:translate(-50%,-50%);transform-origin:center;overflow:hidden}
.mobile-audience #viewport{position:absolute;inset:0}
.mobile-audience #mobile-navigation:not([hidden]){position:absolute;inset:0;z-index:50;display:flex}
.mobile-audience #mobile-navigation button{position:relative;flex:1;min-width:0;height:100%;margin:0;padding:0;border:0;border-radius:0;background:transparent;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.mobile-audience .mobile-chevron{position:absolute;top:50%;transform:translateY(-50%);color:#F4F3EE;font:40px/1 Arial,sans-serif;text-shadow:0 1px 5px #000,0 0 12px #000;pointer-events:none}
.mobile-audience .mobile-chevron-previous{left:max(18px,env(safe-area-inset-left))}
.mobile-audience .mobile-chevron-next{right:max(18px,env(safe-area-inset-right))}
/* The player moves the branded cover to body, above the scene and independent of its rotation. */
.mobile-audience body>#loading{position:fixed;inset:0;z-index:1000;padding:24px;text-align:center}
.mobile-audience body>#loading img{max-width:70vw}
.mobile-audience body>#loading span{max-width:min(560px,90vw);font:16px/1.5 Arial,sans-serif;overflow-wrap:anywhere}
.mobile-audience #mobile-retry{padding:10px 22px;border:1px solid #F7941D;border-radius:4px;background:#172022;font:16px Arial,sans-serif}
/* Portrait swaps logical dimensions and rotates the scene and tap targets together. */
@media(orientation:portrait){
  .mobile-audience #mobile-presentation{width:100vh;height:100vw;width:100dvh;height:100dvw;transform:translate(-50%,-50%) rotate(90deg)}
  .mobile-audience .mobile-chevron-previous{left:max(18px,env(safe-area-inset-top))}
  .mobile-audience .mobile-chevron-next{right:max(18px,env(safe-area-inset-bottom))}
}
