/* Indoor glass only: all artwork and UI above the exterior stay sharp.
   No new animation, decoder, geometry, preference or event owner. */
#sanctuary-view[data-scene=agandar] #sanctuary-scene-bounds .sanctuary-exterior-layer>img,
#sanctuary-view[data-scene=agandar] #sanctuary-scene-bounds .sanctuary-exterior-layer>.ar-agandar-underwater-video40{filter:blur(.45px)}
/* Sparse edge staining sits behind the authored sharp foreground aperture.
   Opacity is deliberately low; the center remains clear and readable. */
#sanctuary-view[data-scene=agandar] #sanctuary-scene-bounds .sanctuary-exterior-layer::before{
 content:'';position:absolute;inset:0;z-index:2;pointer-events:none;opacity:1;animation:none;
 background:
 radial-gradient(ellipse 2.4% 11% at 30.5% 78%,rgba(43,78,46,.13),transparent 78%),
 radial-gradient(ellipse 1.8% 8% at 69.5% 63%,rgba(40,70,43,.10),transparent 83%),
 radial-gradient(ellipse 6% 2.8% at 48% 97%,rgba(42,80,53,.10),transparent 85%),
 linear-gradient(112deg,rgba(57,112,119,.035),rgba(17,67,67,.025) 48%,rgba(40,89,105,.04));
}
/* The requested glass treatment never overrides accessibility preferences.
   Keep the opaque underwater view, without blur or translucent overlays. */
@media(prefers-reduced-transparency:reduce),(forced-colors:active),(prefers-contrast:more){
 #sanctuary-view[data-scene=agandar] #sanctuary-scene-bounds .sanctuary-exterior-layer>img,
 #sanctuary-view[data-scene=agandar] #sanctuary-scene-bounds .sanctuary-exterior-layer>.ar-agandar-underwater-video40{filter:none}
 #sanctuary-view[data-scene=agandar] #sanctuary-scene-bounds .sanctuary-exterior-layer::before{display:none!important}
}
:is(html,body)[data-reading-contrast=high] #sanctuary-view[data-scene=agandar] #sanctuary-scene-bounds .sanctuary-exterior-layer>img,
:is(html,body)[data-reading-contrast=high] #sanctuary-view[data-scene=agandar] #sanctuary-scene-bounds .sanctuary-exterior-layer>.ar-agandar-underwater-video40{filter:none}
:is(html,body)[data-reading-contrast=high] #sanctuary-view[data-scene=agandar] #sanctuary-scene-bounds .sanctuary-exterior-layer::before{display:none!important}

/* r51: registered, subtle front-face shading on the new tracery, not a global
   room dimmer. Shared room coordinates preserve the video and all hit targets. */
#sanctuary-view[data-scene=agandar] #sanctuary-scene-bounds::after {
 content:'';position:absolute;inset:0;z-index:3;pointer-events:none;
 background:url('/assets/sanctuary/remaster-r51/agandar-tracery-shadow.svg') 0 0/100% 100% no-repeat;
 opacity:.86;
}
#sanctuary-view[data-scene=agandar][data-authored-lighting-state$=off] #sanctuary-scene-bounds::after {opacity:1}
@media(forced-colors:active){#sanctuary-view[data-scene=agandar] #sanctuary-scene-bounds::after{display:none!important}}
