/* Même velours, même ouverture et mêmes pans attachés dans la maison et les univers. */
.theatre-proscenium{inset:0!important;z-index:90}
.theatre-proscenium>.theatre-curtain{z-index:1;background-color:#851319;background-image:linear-gradient(0deg,#22080b55,transparent 40%,#09060a77),repeating-linear-gradient(90deg,#350809 0%,#731016 4%,#ad2025 9%,#c73330 13%,#90171d 18%,#40090e 25%);border-bottom:3px solid #ba935c}
.theatre-proscenium>.velvet-drape{position:absolute;top:0;bottom:0;width:12%;height:100%;z-index:3;filter:drop-shadow(12px 8px 12px #10050977);pointer-events:none}
.theatre-proscenium>.velvet-drape-left{left:0}
.theatre-proscenium>.velvet-drape-right{right:0;transform:scaleX(-1)}
.theatre-flight{position:fixed;inset:0;z-index:60;overflow:hidden;pointer-events:auto;background:#192533}
.theatre-flight>img{position:absolute;object-fit:cover;transform-origin:50% 43%;will-change:transform;max-width:none}
.entering-theatre #aventures .room-content,.entering-theatre .house-nav,.entering-theatre header,.entering-theatre .demo-ribbon{opacity:0;transition:opacity .45s;pointer-events:none}
@media(max-width:700px){.theatre-flight>img{object-position:center!important}}
/* v99 : remplacement des anciens SVG par les pans exacts du nouveau théâtre. */
.theatre-proscenium>.theatre-image-drape{position:absolute;inset:0;width:100%;height:100%;z-index:3;pointer-events:none}
.theatre-proscenium>.theatre-curtain{background-color:#9d2113;background-image:linear-gradient(0deg,#4e160d33,transparent 40%,#27090055),repeating-linear-gradient(90deg,#4b0c08 0%,#85170f 4%,#bc3822 9%,#d7502f 13%,#a62616 18%,#5e110a 25%);border-bottom-color:#ce9d48;border-right-color:#cc994c;border-left-color:#cc994c}
.theatre-flight>img{transform:none;transform-origin:center}
/* v100 : véritables PNG alpha, marge transparente compensée sans couper le pompon. */
.theatre-proscenium>.theatre-png-drape{position:absolute;top:0;bottom:auto;width:30vw;height:104%;max-width:none;object-fit:fill;z-index:3;pointer-events:none;user-select:none}
.theatre-proscenium>.theatre-png-drape-left{left:-3.35vw}
.theatre-proscenium>.theatre-png-drape-right{right:-3.35vw;transform:scaleX(-1)}
/* v101 : géométrie du plateau commune au décor de départ, au zoom et aux univers. */
.theatre-composition{position:fixed;z-index:-3;pointer-events:none}
.theatre-flight-composition{position:absolute;max-width:none;z-index:0}
.theatre-backdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;max-width:none}
.theatre-stage-frame{position:absolute;left:22.7272727273%;top:23.3793836344%;width:54.4258373206%;height:44.6333687566%;overflow:hidden}
.theatre-stage-frame>.theatre-png-drape{position:absolute;top:0;width:30%;height:104%;max-width:none;object-fit:fill;pointer-events:none}
.theatre-stage-frame>.theatre-png-drape-left{left:-3.35%}
.theatre-stage-frame>.theatre-png-drape-right{right:-3.35%;transform:scaleX(-1)}
/* v102 : une seule scène alpha, sans raccord entre le tissu et l'architecture. */
.theatre-backdrop-empty{background:radial-gradient(ellipse at 50% 36%,#7c8a96 0%,#4f6073 46%,#253342 90%)}
.theatre-composition>.theatre-stage-frame,.theatre-flight-composition>.theatre-stage-frame{inset:0;width:100%;height:100%;overflow:visible}
.theatre-stage-frame>.theatre-stage-cutout{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}
.theatre-proscenium>.theatre-stage-cutout{position:absolute;left:-20.1680672269%;top:-22.0588235294%;width:140.504201681%;height:138.382352941%;max-width:none;object-fit:fill;z-index:3;pointer-events:none}
/* v103 : l'accueil conserve sa salle illustrée ; aucun second cadre par-dessus. */
.wonder-house .theatre-proscenium>.theatre-stage-cutout{display:none}
/* Cadrage rapproché de l'ouverture sur les univers, arche hors du champ. */
.realm-page .theatre-proscenium>.theatre-stage-cutout{left:-31.067961165%;top:-40.384615385%;width:162.330097087%;height:180.961538462%}

/* v107: cloth on a separate depth plane; scenic props stay in front. */
.theatre-moving-cloth{position:absolute;inset:0;z-index:1;overflow:hidden;pointer-events:none}
.theatre-moving-cloth.cloth-in-auditorium{left:22.7272727273%;top:23.3793836344%;width:54.4258373206%;height:44.6333687566%;right:auto;bottom:auto}
.theatre-composition>.theatre-stage-frame,.theatre-flight-composition>.theatre-stage-frame{z-index:3}
.theatre-moving-cloth>.theatre-curtain{bottom:0;background-color:#88151e;background-image:linear-gradient(0deg,#26070b88,transparent 24%,#ffbd7320 55%,#18050a77),repeating-linear-gradient(90deg,#32080d 0%,#77121a 3%,#b92a31 7%,#da4943 10%,#9f1c25 14%,#4b0a13 20%);border-bottom:5px solid #c79c54}
.realm-environment .paper-stage>.paper-depth-0{z-index:0}
.realm-environment .paper-stage>.paper-piece:not(.paper-depth-0){z-index:2}
.realm-environment .paper-stage>.paper-floor,.realm-environment .paper-stage>.paper-grain{z-index:3}
.theatre-transitioning::after{content:'';display:block!important;position:fixed;inset:0;z-index:500;pointer-events:auto;background:transparent;border:0!important;box-shadow:none!important}
.theatre-backdrop-empty{background:#34465d url('maison/fond-scene-reves.png') center/cover no-repeat}
/* Full underlay covers every transparent pixel, including above the stage crop. */
.theatre-composition>.theatre-backdrop-empty,.theatre-flight-composition>.theatre-backdrop-empty{inset:0;width:100%;height:100%}

/* v108: one shared velvet frame and one shared rectangular stage coordinate system. */
.theatre-composition>.theatre-stage-frame,.theatre-flight-composition>.theatre-stage-frame{inset:0;width:100%;height:100%}
.theatre-moving-cloth{z-index:2}
.theatre-proscenium>.theatre-moving-cloth{inset:0;z-index:2}

/* v109: retain the original auditorium; frame the full velvet valance and thin floor. */
.theatre-moving-cloth.cloth-in-auditorium{left:22.7272727273%;top:17.0031880978%;width:54.4258373206%;height:51.0095642933%;right:auto;bottom:auto}
