/* The model area stays empty until the first successful render. */
#spatial-stage :is(canvas,.spatial-fallback-image){opacity:0;transition:opacity .45s cubic-bezier(.2,.65,.3,1);transition-delay:0s}
#spatial-stage.spatial-ready :is(canvas,.spatial-fallback-image){opacity:1}
#spatial-stage::after{opacity:0;transition:opacity .45s ease}
#spatial-stage.spatial-ready::after{opacity:1}

/* Keep a loading announcement for assistive technology, without visible UI. */
#spatial-stage:not(.spatial-fallback)>.spatial-loading{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0;background:none}
#spatial-stage:not(.spatial-ready)~:is(.spatial-help,.spatial-label),#spatial-stage:not(.spatial-ready) .viewer-navigation{visibility:hidden}
html[data-model-entry=fade] body:has(#spatial-stage:not(.spatial-ready)) .world-scene-note{visibility:hidden}

/* Preserve the existing placement of the model's help and garage controls. */
@media(min-width:1101px){html[data-model-entry=fade] body[data-view=raum] .spatial-help{top:28px;right:calc(12% + 210px);bottom:auto;font-size:10px;max-width:275px}}
@media(min-width:901px) and (max-width:1100px){html[data-model-entry=fade] body[data-view=raum] .spatial-help{display:none}}
html[data-model-entry=fade] body[data-garage-active=true] .spatial-help{width:max-content;padding:5px 10px;border:1px solid #c6dae82b;border-radius:30px;background:#001020cf;backdrop-filter:blur(10px)}
body[data-garage-active=true] #spatial-stage :is(canvas,.spatial-fallback-image){transition:none}
@media(prefers-reduced-motion:reduce){#spatial-stage :is(canvas,.spatial-fallback-image),#spatial-stage::after{transition:none}}
