/* Cadre de scène permanent et deux grands pans plissés, bordeaux et or. */
.theatre-proscenium{position:fixed;inset:84px 0 0;z-index:45;pointer-events:none;overflow:hidden;isolation:isolate;border:8px solid #be9860;border-top:0;box-shadow:inset 0 0 0 3px #f0d29b,inset 0 12px 35px #45352c35;box-sizing:border-box}
.realm-page .theatre-proscenium{top:62px}.paper-mode:not(.realm-page):not(.storybook-world) .theatre-proscenium{top:65px}
.theatre-curtain{position:absolute;top:0;bottom:16px;width:51%;background-color:#853b4d;background-image:linear-gradient(0deg,#3c1c3450,transparent 30%,#f4ab8122 80%,#35192f44),repeating-linear-gradient(90deg,#4f253c 0%,#713044 5%,#a44e59 11%,#b65f65 15%,#884151 20%,#51263a 25%);box-shadow:4px 8px 20px #291a3440;will-change:transform;border-bottom:8px solid #d5b477}
.curtain-left{left:0;border-right:3px solid #c49b69;border-radius:0 0 5px 0}.curtain-right{right:0;border-left:3px solid #c49b69;border-radius:0 0 0 5px;box-shadow:-4px 8px 20px #291a3440}
.theatre-valance{position:absolute;top:-10px;left:-1%;right:-1%;height:64px;border-bottom:6px solid #d4b075;border-radius:0 0 45% 45% / 0 0 35% 35%;background:repeating-linear-gradient(90deg,#60283f 0%,#a34f59 5%,#723346 10%);box-shadow:0 7px 13px #42263635;z-index:2;display:grid;place-items:center;color:#f0d399;font-size:26px;text-shadow:0 2px #5c2e3b}
.theatre-apron{position:absolute;bottom:0;left:0;right:0;height:18px;background:repeating-linear-gradient(0deg,#ac835c 0 3px,#c39c6f 4px 7px);border-top:4px solid #e6c592;box-shadow:0 -8px 20px #4a382b22}
.theatre-proscenium.curtain-moving{pointer-events:auto}
.paper-mode::after{display:none}.paper-mode .realm-header{z-index:50}.paper-mode .realm-layout{top:126px}.paper-mode .realm-copy h1{font-size:clamp(30px,3.4vw,53px)}
.paper-mode .realm-actions{bottom:132px}.paper-mode .realm-book{top:32%;height:34vh}.paper-mode .demo-ribbon{top:88px;z-index:51}.paper-mode .portal-shortcuts{margin-top:16px}
.mini-valance{position:absolute;top:0;left:0;right:0;height:30px;background:linear-gradient(#a6525d,#743448);border-bottom:4px solid #d6b171;border-radius:0 0 40% 40%;z-index:4;pointer-events:none}
.paper-mode .portal-preview{border-radius:4px;aspect-ratio:1.05;border-color:#c6a16d!important;border-top-width:22px}
.paper-mode .portal-preview::before,.paper-mode .portal-preview::after{display:block!important;content:'';position:absolute;top:0;bottom:0;width:12%;border:0;border-radius:0;z-index:2;opacity:1;transform:none;animation:none;background:repeating-linear-gradient(90deg,#6e3044,#a55560 40%,#6f3044)}
.paper-mode .portal-preview::before{left:0;right:auto}.paper-mode .portal-preview::after{right:0;left:auto}.paper-mode .portal-navigation>.side-portal{top:43%;width:clamp(155px,21vw,320px)}
@media(max-width:800px){
 .theatre-proscenium{top:72px;border-width:5px;border-top:0}.realm-page .theatre-proscenium{top:54px}.theatre-valance{height:42px;border-bottom-width:4px;font-size:20px}.theatre-apron{height:13px}.theatre-curtain{bottom:12px}.paper-mode .portal-shortcuts{display:none}.mini-valance{height:22px}
 .paper-mode .realm-layout{top:105px}.paper-mode .realm-copy h1{font-size:29px}.paper-mode .realm-book{top:29%;height:25vh}.paper-mode .portal-navigation>.side-portal{top:54%;width:27vw}.paper-mode .portal-navigation>#realmPrev{left:7%}.paper-mode .portal-navigation>#realmNext{right:7%}.paper-mode .portal-preview{border-top-width:14px}.paper-mode .side-portal small{margin-top:7px}.paper-mode .realm-actions{bottom:120px}.paper-mode .realm-primary{font-size:10px;padding:9px 13px}.paper-mode #createTheme{font-size:9px}.paper-mode .realm-book>p{font-size:7px}
}
@media(max-height:680px) and (max-width:800px){.paper-mode .realm-actions{bottom:102px}.paper-mode .realm-book{height:22vh}.paper-mode .realm-copy h1{font-size:24px}}
@media(max-width:800px){}
/* v68 : rideau uniquement pendant le passage de l’accueil aux univers. */
.theatre-proscenium[hidden]{display:none!important}
.theatre-proscenium{border:0;box-shadow:none}
.theatre-proscenium .theatre-valance,.theatre-proscenium .theatre-apron{display:none}
.theatre-curtain{bottom:0}.paper-mode .portal-preview::before,.paper-mode .portal-preview::after,.paper-mode .mini-valance{display:none!important}
.paper-mode .realm-layout{top:80px}
@media(max-width:800px){.paper-mode .realm-layout{top:72px}}
/* v69 : scène vide avant l’entrée, rideaux ouverts aux côtés des univers. */
.empty-theatre{position:absolute;inset:0;overflow:hidden;background:#d7c5a7}
.empty-theatre-back{position:absolute;inset:0 0 24%;background:radial-gradient(ellipse at 50% 50%,#faf0d8 0,#e1d0b2 47%,#9e8467 100%);box-shadow:inset 0 30px 70px #503d3844}
.empty-theatre-back::after{content:'';position:absolute;left:12%;right:12%;top:23%;bottom:6%;border:1px solid #b2946e55;box-shadow:0 0 0 10px #d2b89133,inset 0 0 50px #816a4622}
.empty-theatre-floor{position:absolute;left:-15%;right:-15%;bottom:-5%;height:32%;background:repeating-linear-gradient(90deg,transparent 0 89px,#71543e33 90px 92px),repeating-linear-gradient(0deg,#c2a17b 0 38px,#aa8561 39px 41px);transform:perspective(400px) rotateX(28deg);transform-origin:50% 100%;border-top:9px solid #ad8b64;box-shadow:0 -12px 35px #54403433}
.empty-wing{position:absolute;top:84px;bottom:0;width:8%;background:repeating-linear-gradient(90deg,#5a293d,#a95660 40%,#753549 75%,#482237);box-shadow:6px 0 18px #37273633;border-bottom:6px solid #d5b477}
.wing-left{left:0}.wing-right{right:0;transform:scaleX(-1)}
.empty-theatre-crown{position:absolute;top:84px;left:0;right:0;height:44px;background:linear-gradient(#9c4a56,#713145);border-bottom:5px solid #d2ad72;border-radius:0 0 35% 35%;color:#ebce96;text-align:center;font-size:22px}.paper-mode #aventures .portal-shortcuts{display:none}
.realm-page .theatre-proscenium:not([hidden]){pointer-events:none}.realm-page .theatre-proscenium.curtain-moving{pointer-events:auto}
@media(max-width:800px){.empty-wing{top:72px;width:7%}.empty-theatre-crown{top:72px;height:30px;font-size:18px}.empty-theatre-floor{height:28%}}
@media(max-height:650px) and (max-width:800px){}
