/* p4-light-film.css — Phase 4 /en/film light staging (Wick 09:27). After p4-light.css + p4-light-v2.css.
   Light only (dark untouched). The night "stage" panel and its pictures stay as they are: the engraved frame sits BEHIND
   the panel (z-index:-1), so only the part outside the panel shows and nothing is drawn over the gate pictures or text. */
:root{--p4f:url(../p4v2/chrome/engraved-frame.svg)}
html:not(:is([data-zx-theme="dark"],[data-zx-theme="eclipse"])) main.film .stage{box-shadow:0 0 0 2px var(--p4-gold),0 0 0 3px var(--p4-iron),0 16px 34px -18px rgba(60,40,10,.55)}
html:not(:is([data-zx-theme="dark"],[data-zx-theme="eclipse"])) main.film .stage::after{content:"";position:absolute;z-index:-1;inset:-16px;border:24px solid transparent;border-image:var(--p4f) 24 round;pointer-events:none}
html:not(:is([data-zx-theme="dark"],[data-zx-theme="eclipse"])) main.film{position:relative;z-index:0}
/* the internal notice: engraved herald (text on clean vellum, hatch in the mat, frame, arcade crown) instead of the dashed box */
html:not(:is([data-zx-theme="dark"],[data-zx-theme="eclipse"])) main.film .notice{position:relative;margin-top:56px;border:0;padding:26px;background:linear-gradient(#fffaf0,#fffaf0) content-box,radial-gradient(ellipse 72% 66% at 50% 50%,#fffaf0 60%,rgba(255,250,240,0) 100%) padding-box,url(../p4v2/chrome/hatch.svg) padding-box,linear-gradient(#f6eedb,#efe2c4) padding-box}
html:not(:is([data-zx-theme="dark"],[data-zx-theme="eclipse"])) main.film .notice::after{content:"";position:absolute;inset:-4px;border:18px solid transparent;border-image:var(--p4f) 24 round;pointer-events:none}
html:not(:is([data-zx-theme="dark"],[data-zx-theme="eclipse"])) main.film .notice::before{content:"";position:absolute;left:50%;top:-30px;transform:translateX(-50%);width:min(520px,90%);height:30px;background:url(../p4v2/chrome/divider-arcade-wide.svg) center bottom/contain no-repeat;pointer-events:none}
/* scenes: arcade divider above, heading vein, margin veins at the head */
html:not(:is([data-zx-theme="dark"],[data-zx-theme="eclipse"])) main.film section.scene{position:relative;margin-top:64px}
html:not(:is([data-zx-theme="dark"],[data-zx-theme="eclipse"])) main.film section.scene::before{content:"";position:absolute;top:-46px;left:50%;transform:translateX(-50%);width:min(520px,92%);height:36px;background:url(../p4/chrome/divider-arcade.svg) center/contain no-repeat;pointer-events:none}
@media (min-width:900px){html:not(:is([data-zx-theme="dark"],[data-zx-theme="eclipse"])) main.film section.scene::before{top:-50px;width:min(880px,94%);height:44px;background-image:url(../p4v2/chrome/divider-arcade-wide.svg)}}
html:not(:is([data-zx-theme="dark"],[data-zx-theme="eclipse"])) main.film section.scene>h2{background:url(../p4/chrome/heading-vein.svg) no-repeat 0 100%/120px 10px;padding-bottom:18px}
@media (min-width:1200px){html:not(:is([data-zx-theme="dark"],[data-zx-theme="eclipse"])) main.film section.scene::after{content:"";position:absolute;top:0;left:-72px;width:54px;height:min(570px,100%);background:url(../p4v2/chrome/margin-veins.svg) top left/54px auto no-repeat;pointer-events:none}}
/* the full film: engraved frame around the video only (container-query height), never over it */
html:not(:is([data-zx-theme="dark"],[data-zx-theme="eclipse"])) main.film .film-full-player{position:relative;container-type:inline-size}
html:not(:is([data-zx-theme="dark"],[data-zx-theme="eclipse"])) main.film .film-full-player::before{content:"";position:absolute;left:-12px;right:-12px;top:-12px;height:calc(100cqw * 9 / 16 + 24px);border:20px solid transparent;border-image:var(--p4f) 24 round;pointer-events:none;z-index:2;box-sizing:border-box}
/* form buttons: woven feet (fills unchanged) */
html:not(:is([data-zx-theme="dark"],[data-zx-theme="eclipse"])) main.film .form-btn{position:relative;box-shadow:0 0 0 2px #f7f2e6,0 0 0 3.5px var(--p4-iron)}
html:not(:is([data-zx-theme="dark"],[data-zx-theme="eclipse"])) main.film .form-btn::after{content:"";position:absolute;left:8px;right:8px;bottom:-11px;height:6px;background:url(../p4/chrome/woven-rule.svg) repeat-x 0 0/6px 7px;pointer-events:none}
