/* Visual restoration: no filters, material overrides, procedural scenes, or new numeral layers. */
body{background:#b6b6b6}
.scene-backdrop.relief-stage{position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none;background:#b6b6b6 url('/assets/home/wall/plaster-cc0.webp') center/70% repeat}
.scene-backdrop .hero-webgl{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:1;transition:none}
.scene-backdrop .menu-panel{position:absolute;inset:0;visibility:hidden;pointer-events:none}
.scene-backdrop .menu-webgl{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:1;transition:none}
body[data-theme=dark] .scene-backdrop{background:#000}
.chapter-numeral{display:none}
.chapter-hero:after{display:none!important}
.legacy-relief-window{height:600px;background:transparent}
.legacy-scene-anchor{display:none!important}
@media(max-width:700px){.legacy-relief-window{height:360px}.chapter-intro{text-shadow:0 1px 8px #000,0 2px 16px #000,0 0 26px #000}}
/* Restore the existing mobile text gradient for the wider night artwork. */
@media(max-width:700px){.chapter-hero:after{display:block!important}}
body[data-kind=menu]{overflow:hidden}
.scene-backdrop .menu-panel{width:100vw;height:100vh}

/* Static safety layer only: the restored renderer and materials are unchanged. */
body:not(.has-webgl) .scene-backdrop canvas{opacity:0!important}
body[data-theme=dark]:not(.has-webgl) .scene-backdrop{background-color:#000;background-size:cover;background-repeat:no-repeat;background-position:center}
body[data-scene=menu]:not(.has-webgl) .scene-backdrop,
body[data-scene=plain-dark]:not(.has-webgl) .scene-backdrop{background-image:url('/assets/fallbacks/menu.jpg')}
body[data-scene=chapter-I]:not(.has-webgl) .scene-backdrop{background-image:url('/assets/fallbacks/chapter-I.jpg')}
body[data-scene=chapter-II]:not(.has-webgl) .scene-backdrop{background-image:url('/assets/fallbacks/chapter-II.jpg')}
body[data-scene=chapter-III]:not(.has-webgl) .scene-backdrop{background-image:url('/assets/fallbacks/chapter-III.jpg')}
body[data-scene=chapter-IV]:not(.has-webgl) .scene-backdrop{background-image:url('/assets/fallbacks/chapter-IV.jpg')}
body[data-scene=chapter-V]:not(.has-webgl) .scene-backdrop{background-image:url('/assets/fallbacks/chapter-V.jpg')}
