/* One fixed viewport layer owns both the original ornament and side lighting.
   Body/canvas backgrounds are unreliable after modal body locking and in
   embedded/mobile scrolling; a fixed element does not scroll off the document. */
body:is(.quran-refreshed,.nasheed-refreshed){isolation:isolate}
html body:is(.quran-refreshed,.nasheed-refreshed),
html[data-nbk-theme] body:is(.quran-refreshed,.nasheed-refreshed){
  background:none!important;
}
html body:is(.quran-refreshed,.nasheed-refreshed)::before{
  content:"";
  display:block;
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background-color:var(--orn-base,#0a0705);
  background-image:
    radial-gradient(ellipse 46% 54% at 4% 42%,#af81451c,transparent 80%),
    radial-gradient(ellipse 46% 54% at 96% 42%,#718a601c,transparent 80%),
    var(--orn-url,url('/assets/images/bg-ornament.jpg'));
  background-size:100% 100%,100% 100%,cover;
  background-position:0 0,0 0,center center;
  background-repeat:no-repeat;
  background-attachment:scroll;
}
body.quran-refreshed .player-wrap>.desktop-left::before,
body.quran-refreshed .player-wrap>.desktop-left::after,
body.nasheed-refreshed .nsf-library::before,
body.nasheed-refreshed .nsf-library::after{display:none}
@media(max-width:820px){
  html body:is(.quran-refreshed,.nasheed-refreshed)::before{
    background-image:
      radial-gradient(ellipse 70% 52% at 0 42%,#af814516,transparent 85%),
      radial-gradient(ellipse 70% 52% at 100% 42%,#718a6016,transparent 85%),
      var(--orn-url,url('/assets/images/bg-ornament.jpg'));
  }
}
