/* Lighting stays in the world layer. Text, cards and the supplied title image stay clear. */
/* Only art layers receive atmosphere: never filter a page, HUD or UI container. */
.lighting-on .scene-bg{filter:contrast(1.065) saturate(.94) var(--world-tint)}
.lighting-on .scene-bg:before{
 content:'';position:absolute;inset:0;z-index:1;pointer-events:none;
 background:radial-gradient(ellipse at 40% -12%,var(--world-light-top) 0%,var(--world-light-mid) 22%,transparent 64%),radial-gradient(ellipse at 50% 36%,transparent 22%,#00000052 100%);
 opacity:.56;
}
.lighting-on[data-light-mode="tint"] .scene-bg{filter:var(--world-tint)}
.lighting-on[data-light-mode="tint"] .scene-bg:before{content:none}
.lighting-on.in-map .map-content:before{filter:blur(5px) contrast(1.065) saturate(.94) var(--world-tint)}
.lighting-on .sprite-stage .authored-idle,
.lighting-on .sprite-stage .authored-action,
.lighting-on .npc-avatar .authored-idle,
.lighting-on .scene-actor>img,
.lighting-on .scene-actor>canvas{filter:var(--sprite-filter)}
.lighting-on.low-effects .sprite-stage .authored-idle,
.lighting-on.low-effects .sprite-stage .authored-action,
.lighting-on.low-effects .npc-avatar .authored-idle,
.lighting-on.low-effects .scene-actor>img,
.lighting-on.low-effects .scene-actor>canvas{filter:var(--sprite-filter-low)}
.lighting-on .sprite-stage:before{background:radial-gradient(ellipse,#06121b80 0%,#06121b36 45%,transparent 73%);clip-path:none;transform:translateX(-50%) scaleX(1.15);height:10px;width:43%}
.lighting-on .stage-abyss:before,.lighting-on .stage-eye:before{opacity:.5;transform:translateX(-50%) scaleX(.75)}

.element-light{position:absolute;left:50%;bottom:-22px;width:190px;height:160px;transform:translateX(-50%);background:radial-gradient(ellipse,var(--pulse-color),transparent 68%);opacity:0;mix-blend-mode:screen;pointer-events:none;z-index:0}
.page-hidden .element-light{display:none}
@media(max-width:960px){.element-light{width:125px;height:105px}.lighting-on .sprite-stage:before{height:7px;width:50%}}
@media(prefers-reduced-motion:reduce){.element-light{display:none}}
