/* ZENMYKO v4.7 — single fixed world backdrop for every forum page. */
:root { --zen-page-max:1320px; --zen-page-gutter:22px; }
html,body{min-height:100%;background-color:#0b0c12!important;}
body{background-color:#0b0c12!important;background-image:none!important;}
/* Positioned below all content and independent of page scrolling. Works for
   category, subcategory, topic, profile, search and the index alike. */
body::before{
  content:""!important;display:block!important;
  position:fixed!important;inset:0!important;
  width:100vw!important;height:100vh!important;
  background-color:#0b0c12!important;
  background-image:linear-gradient(180deg,rgba(7,8,14,.22) 0%,rgba(9,10,16,.39) 42%,rgba(11,12,18,.72) 100%),url('v45-reference-stage.webp')!important;
  background-position:center top,center top!important;
  background-size:cover,cover!important;
  background-repeat:no-repeat,no-repeat!important;
  background-attachment:fixed,fixed!important;
  z-index:0!important;pointer-events:none!important;
}
html body #container{position:relative!important;z-index:1!important;background:transparent!important;min-height:100vh!important;}
/* Explicitly override old v4.5 'background-attachment:scroll' and mobile solid
   background rules. The backdrop is supplied by body::before, not #content. */
html body #container #content,
html body.zen-index #container #content,
html body.zen-forumdisplay-page #container #content,
html body.zen-showthread-page #container #content{
  background:transparent!important;
  background-image:none!important;
  background-attachment:fixed!important;
  background-color:transparent!important;
  min-height:400px!important;
}
#content>.wrapper{position:relative!important;z-index:1!important;}
/* Restore the centered width on every internal page, not only a forum listing. */
body:not(.zen-index):not(.zen-forumdisplay-page) #content>.wrapper{
  max-width:var(--zen-page-max)!important;
  width:calc(100% - 2 * var(--zen-page-gutter))!important;
  margin-left:auto!important;margin-right:auto!important;
  padding-left:0!important;padding-right:0!important;
  box-sizing:border-box!important;
}
body.zen-forumdisplay-page #content>.wrapper .zen-forumdisplay-layout{
  max-width:var(--zen-page-max)!important;
  width:calc(100% - 2 * var(--zen-page-gutter))!important;
  margin-left:auto!important;margin-right:auto!important;
  box-sizing:border-box!important;
}
body.zen-forumdisplay-page #content>.wrapper>.navigation{
  max-width:var(--zen-page-max)!important;
  width:calc(100% - 2 * var(--zen-page-gutter))!important;
  margin-left:auto!important;margin-right:auto!important;
  box-sizing:border-box!important;
}
/* Readable panels, with the image behind rather than moving with them. */
body:not(.zen-index) #content .tborder,
body:not(.zen-index) #content .zen-subforums-frame,
body:not(.zen-index) #content .zen-forumdisplay-main,
body:not(.zen-index) #content .zen-threadlist{
  max-width:100%;
}
@media(max-width:700px){
 :root{--zen-page-gutter:12px;}
 body::before{background-size:auto 100vh,auto 100vh!important;background-position:50% top,50% top!important;}
}
@media(prefers-reduced-motion:reduce){body::before{scroll-behavior:auto!important;}}
