/* Lightweight art swap: only one full-screen image is painted at a time.
   A plain loading veil replaces cloned old pages and expensive double fades. */
:is(.scene-background,.game-background) {
 overflow:hidden;
}
:is(.scene-background,.game-background) > .scene-bg-image {
 position:absolute;
 inset:0;
 display:block;
 width:100%;
 height:100%;
 object-fit:cover;
 pointer-events:none;
}
:is(.scene-background,.game-background).scene-background-load-failed {
 background:linear-gradient(135deg,#d4c7b4,#aaab98);
}
/* Covers dialogue while an uncached new illustration is loading.
   No blurred layers, cloned pages, or GPU opacity animation. */
body :is(.scene-frame,.game-page).scene-art-pending::after {
 content:'场景载入中…';
 position:absolute;
 inset:0;
 z-index:65;
 display:grid;
 place-items:center;
 box-sizing:border-box;
 background:#40392fdc;
 color:#fff2de;
 font-size:clamp(14px,1.55vw,20px);
 letter-spacing:.12em;
 text-align:center;
 pointer-events:auto;
}
