/* GKS LOCK (v1-fixed-116) - sabse last me load hota hai.
   1) BACKGROUND GLITCH: background ab ek hi jagah (html::before) se banta hai, bina transform / 100lvh / background-attachment:fixed ke.
      Purane rules (index.html ke inline <style>, gks-final-3, auth) background-attachment:fixed + bade image lagate the - phone par scroll / address-bar
      upar-niche hone par background kaanpta / upar-niche hota tha. Ab fixed layer sirf inset:0 hai, scroll ke saath kuch nahi hilta.
   2) TOAST ("Failed to fetch" etc): ab header ke NICHE aata hai, header ko nahi dhakta.
   3) Bounce / pull-down par background ka alag rang nahi dikhta. */
html:root:not(#z):not(#y){
  background:#111!important;background-image:none!important;background-attachment:scroll!important;
  overflow-x:hidden!important;overflow-y:auto!important;-webkit-text-size-adjust:100%;
}
html:root:not(#z):not(#y) body{
  background:transparent!important;background-image:none!important;background-attachment:scroll!important;
  overflow-x:clip!important;overflow-y:visible!important;height:auto!important;
}
html:root:not(#z):not(#y)::before{
  content:""!important;display:block!important;position:fixed!important;
  top:0!important;right:0!important;bottom:0!important;left:0!important;
  width:auto!important;height:auto!important;
  z-index:-1!important;pointer-events:none!important;
  background:var(--gks-bg)!important;
  background-attachment:scroll!important;
  transform:none!important;will-change:auto!important;animation:none!important;transition:none!important;
}
html:root:not(#z):not(#y) body::before,html:root:not(#z):not(#y) body::after{content:none!important;display:none!important;background:none!important}
html.gks-custom-bg:root:not(#z):not(#y)::before{display:none!important}
/* wallpaper layers of older versions must never paint */
html:root body #site-background-video,html:root body #gks-bg,html:root body .gks-bg-layer{display:none!important}

/* TOAST: header ke niche */
html:root body #toast-container{
  position:fixed!important;
  top:calc(max(14px,env(safe-area-inset-top)) + 76px)!important;bottom:auto!important;
  left:50%!important;transform:translateX(-50%)!important;
  width:min(92vw,430px)!important;z-index:2147483000!important;pointer-events:none!important;
}
html:root body #toast-container .toast{pointer-events:auto}
