/* Physical detail passes, registered to the approved desktop/mobile plates.
   Only the environment dims. Live type, fields and controls retain their contrast. */
.env-light,.env-rebar,.env-water{position:absolute;pointer-events:none;user-select:none}
.env-light{inset:0;z-index:1;opacity:.16;animation:environment-dim 12s ease-in-out infinite;animation-play-state:paused}
#audit .env-light{background:radial-gradient(ellipse 24% 31% at 57.3% 22%,#000 0%,#000c 22%,#0005 64%,transparent 100%),radial-gradient(ellipse 22% 25% at 61% 65%,#0009,transparent 90%)}
#audit .au-art{isolation:isolate}
#audit .au-art::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;background:radial-gradient(ellipse at 57% 25%,transparent 25%,#0002 70%,#0006 100%)}
#audit.mk .au-lamp__glow{animation:none;opacity:.25;transform:translate(-50%,-50%);filter:none}
.env-rebar{z-index:0;object-fit:contain;width:18%;height:auto;left:10%;top:9.4%;filter:drop-shadow(0 2px 2px #0008)}
#foot .env-rebar{left:16%;top:80.7%;width:20%;z-index:1}
#foot .env-rebar--second{left:54%;top:80.4%;width:15%;transform:scaleX(-1)}
#foot .env-light{z-index:0;background:radial-gradient(ellipse 26% 66% at 77% 27%,#000 0%,#0009 40%,transparent 95%);animation-delay:-4s}
#foot .foot__lift{z-index:2}
#foot .foot__box{box-shadow:0 3px 2px -1px #000,0 7px 10px -3px #000b}
#foot .foot__band{background:linear-gradient(#030303 0,#030303f5 65px,#000 220px),#030303 url(img/earth/bedrock-natural-v1.webp) center top/1536px auto}
.env-water{left:37%;top:19%;width:9%;height:59%;object-fit:fill;mix-blend-mode:screen;opacity:.40;z-index:0;mask-image:linear-gradient(transparent,#000 9%,#000 88%,transparent);-webkit-mask-image:linear-gradient(transparent,#000 9%,#000 88%,transparent)}
.env-live .env-light{animation-play-state:running}
/* Deliberate, slow dimming; never a flicker or full blackout. */
@keyframes environment-dim{0%,18%,100%{opacity:.08}48%,62%{opacity:.50}82%{opacity:.20}}
#audit:is([data-scan-state="queued"],[data-scan-state="running"]) .env-light{animation:none;opacity:.52;transition:opacity 1.2s ease}
html[data-motion="paused"] .env-light{animation:none;opacity:.16}
@media(prefers-reduced-motion:reduce){.env-light{animation:none!important;opacity:.16}.env-water{display:none}}
@media(max-width:819px){
  #audit .env-light{background:radial-gradient(ellipse 55% 25% at 49.1% 38%,#000 0%,#000a 32%,transparent 100%),radial-gradient(ellipse 40% 15% at 55% 81%,#0009,transparent)}
  #audit .env-rebar{top:4%;left:5%;width:42%}
  #foot .env-light{background:radial-gradient(ellipse 200px 270px at calc(100% - 248px) 105px,#000,#0009 42%,transparent 100%)}
  #foot .env-rebar{left:auto;right:300px;top:322px;width:180px}
  #foot .env-rebar--second{display:none}
  /* The narrow layout crops to the lift bay; the left seepage is outside it. */
  #foot .env-water{display:none}
}
