/* Individual props stay in the photographic stage, below captions and the guide. */
.chapter-props{position:absolute;inset:0;z-index:2;overflow:hidden;pointer-events:none;contain:layout paint}
.chapter-presents{display:none;color:inherit;font:normal clamp(.77rem,1.3vw,1.15rem)/1.3 var(--mono,monospace);letter-spacing:.09em;margin-top:.65em}
.stage[data-chapter-prop="cover"] .chapter-presents,.stage[data-chapter-prop="match"][data-kind="cover"] .chapter-presents{display:inline-block}
.cp-cast,.cp-candle,.cp-lightcut{display:none;position:absolute}
.stage:is([data-chapter-prop="match"],[data-chapter-prop="intro"]) .cp-cast{display:block;inset:0}
.stage:is([data-chapter-prop="match"],[data-chapter-prop="intro"]) :is(.car-puppet,.person-puppet){visibility:hidden}
.cp-cast img{position:absolute;display:block;object-fit:contain;max-width:none;filter:drop-shadow(0 4px 2px #33221942)}
.cp-mechanic{width:var(--cp-mechanic-w);height:var(--cp-mechanic-h);left:var(--cp-mechanic-x);top:var(--cp-mechanic-y);object-position:center bottom;opacity:var(--cp-wagon-alpha)}
.cp-wagon{width:var(--cp-wagon-w);height:auto;left:var(--cp-wagon-x);top:var(--cp-wagon-y);opacity:var(--cp-wagon-alpha)}
.cp-carriage{width:var(--cp-cart-w);height:auto;left:var(--cp-cart-x);top:var(--cp-cart-y);opacity:var(--cp-cart-alpha)}
.cp-buyer{width:auto;height:var(--cp-buyer-h);left:var(--cp-buyer-x);top:var(--cp-buyer-y);transform:translateY(var(--cp-buyer-drop));opacity:var(--cp-buyer-alpha)}
.cp-candle{right:var(--edge,4vw);top:calc(var(--bar,66px) + 9px);width:clamp(43px,5.8vw,75px);height:clamp(64px,8.5vw,109px);isolation:isolate;opacity:var(--cp-candle-alpha,1);filter:drop-shadow(0 2px 1.5px #2c201256)}
.stage:is([data-chapter-prop="candle"],[data-chapter-prop="phone-cut"]) .cp-candle{display:block}
.cp-saucer,.cp-wax,.cp-pool,.cp-wick,.cp-flame,.cp-wax:before,.cp-wax:after{position:absolute;display:block}
.cp-saucer{height:17%;width:100%;left:0;bottom:0;border-radius:50%;background:radial-gradient(ellipse at 50% 30%,#856333 33%,#a48248 38%,#4e3725 59%,#f0c87e 64%,#5b3c27 70%);border-bottom:2px solid #513722}
.cp-pool{height:8%;width:var(--cp-pool,30%);bottom:7%;left:50%;transform:translateX(-50%) rotate(-4deg);border-radius:50%;background:#dfc783;box-shadow:inset 1px -1px #b59860}
.cp-wax{height:var(--cp-wax,72%);bottom:10%;width:32%;left:34%;border-radius:18% 12% 13% 16% / 5% 5% 3% 5%;background:linear-gradient(90deg,#b99c60 0%,#f2df9c 21%,#f8e9bb 42%,#e4ca89 74%,#ad8a52)}
.cp-wax:before{content:"";top:-2%;left:0;width:100%;height:6%;border-radius:50%;background:radial-gradient(ellipse,#856432 10%,#f0ca7d 30%,#fce6a3 70%)}
.cp-wax:after{content:"";top:0;left:19%;height:var(--cp-drip,25%);width:22%;border-radius:0 0 70% 70%;background:linear-gradient(90deg,#efdaaa,#fff3ca 65%,#c5a46f);box-shadow:4px -2px 0 -1px #e9d39b}
.cp-wick{width:2px;height:6px;background:#482d22;bottom:100%;left:49%;transform:rotate(5deg)}
.cp-flame{width:53%;height:clamp(12px,1.55vw,21px);bottom:calc(100% + 2px);left:24%;border-radius:76% 28% 62% 43% / 79% 46% 59% 30%;background:radial-gradient(ellipse at 49% 73%,#fffde1 0 25%,#ffe294 36%,#ffae53 58%,#e16b3855 79%);box-shadow:0 0 12px 2px #ffbe6b60;transform-origin:center bottom;animation:cp-waver 2.2s ease-in-out infinite alternate}
@keyframes cp-waver{0%,100%{transform:rotate(-4deg) scaleX(.95)}47%{transform:rotate(5deg) scaleY(1.04)}75%{transform:rotate(-1deg) scaleX(1.04)}}
.cp-lightcut{inset:0;overflow:hidden;isolation:isolate;opacity:var(--cp-cut-alpha,0)}
.stage:is([data-chapter-prop="phone-cut"],[data-chapter-prop="flood-cut"]) .cp-lightcut{display:block}
.cp-light-room{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 45%,#234655,#102735 67%,#0a1a25)}
.cp-photobeam{position:absolute;z-index:1;inset:0;background:linear-gradient(0deg,#e6ead7bc,#c0e3dc24 60%,#abcad200);opacity:var(--cp-beam,0);clip-path:polygon(calc(50% - var(--cp-beam-width)) 3%,calc(50% + var(--cp-beam-width)) 3%,58% 78%,42% 78%);mix-blend-mode:screen}
.stage[data-chapter-prop="flood-cut"] .cp-photobeam{background:linear-gradient(145deg,#ebf9de25,transparent)}
.cp-telephone{position:absolute;z-index:2;left:50%;top:54%;width:clamp(80px,min(17vw,21svh),160px);transform:translate(-50%,var(--cp-phone-rise,0));opacity:var(--cp-phone-alpha,1)}
.cp-telephone img{width:100%;height:auto;display:block;filter:drop-shadow(0 8px 8px #051b295c)}
.cp-screen{position:absolute;inset:15% 10% 15%;background:linear-gradient(145deg,#262e31,#0d181e 54%,#27323b);border-radius:2px;opacity:var(--cp-screen-dark,1)}
.cp-reflection{position:absolute;z-index:1;width:5%;height:6%;top:48%;left:50%;background:linear-gradient(#ffb85b55,#ffe5a1);border-radius:70% 30% 60% 40%;opacity:var(--cp-reflection,0);box-shadow:0 0 8px #ffba6d}
.cp-manifest{position:absolute;left:50%;top:50%;width:clamp(218px,min(54vw,45svh),420px);padding:clamp(15px,2vw,27px);transform:translate(-50%,-42%) rotate(var(--cp-sheet-tilt,-4deg));background:repeating-linear-gradient(0deg,#20383209 0 1px,transparent 1px 4px),#f3e9cb;border:1px solid #b3a782;box-shadow:4px 7px 0 #09212c33,0 15px 30px #081c2955;color:#23404a;font:normal clamp(10px,1.25vw,16px)/1.4 var(--mono,monospace);opacity:var(--cp-sheet-alpha,0);clip-path:inset(0 calc((100% - var(--cp-sheet-uncover,100%)) / 2))}
.cp-manifest small{font-size:.65em;letter-spacing:.13em;text-transform:uppercase}
.cp-manifest strong{display:block;font:bold 1.9em/1.1 var(--sans,sans-serif);margin:.15em 0 .65em;padding-bottom:.3em;border-bottom:2px solid}
.cp-manifest div{display:flex;align-items:center;justify-content:space-between;padding:.4em 0;border-bottom:1px solid #233f4b50}
.cp-manifest div i{display:block;background:#526867;width:17%;height:.32em}
.cp-manifest div:last-child{font-weight:bold;border-block:2px solid;margin-top:.25em}
@media(max-width:760px){.cp-candle{right:max(16px,env(safe-area-inset-right));top:calc(var(--bar,56px) + 8px);width:42px;height:60px}.cp-telephone{top:48%;width:clamp(68px,min(24vw,14svh),96px)}.cp-manifest{width:min(58vw,38svh);top:54%;transform:translate(-50%,-32%) rotate(var(--cp-sheet-tilt,-4deg))}}
@media(max-height:460px){.cp-candle{top:calc(var(--bar,44px) + 3px);width:31px;height:43px}.cp-telephone{top:48%;width:12svh}}
@media(prefers-reduced-motion:reduce){.cp-flame{animation:none}.cp-buyer,.cp-telephone,.cp-manifest{will-change:auto}}

.stage[data-chapter-prop="candle"]:not([data-beat="18"]) .cp-candle{top:auto;right:var(--edge);bottom:64px;width:45px;height:68px}
.stage[data-chapter-prop="candle"][data-beat="18"] .cp-candle{right:calc(50% - 23px);top:calc(var(--bar) + 4px);width:46px;height:66px}
@media(max-height:620px){.stage[data-chapter-prop="candle"][data-beat="18"] .cp-candle{right:var(--edge);top:var(--bar)}}
