/* Dark theme styles; recommendation colors and labels come from theme-design.php. */
/* v1.6.8 Original Zz_888dnf.com layout replica.
   All selectors scoped to this theme. Every visual asset lives in this folder. */
html { min-width:320px; }
body.home-theme-dnf_night { margin:0;padding:0;min-width:1350px;font-size:13px;color:#000;
    background:#0d1432 url("images/bg.webp") no-repeat center top;background-size:100% auto;background-attachment:fixed; }
.home-theme-dnf_night *, .home-theme-dnf_night *:before,.home-theme-dnf_night *:after {box-sizing:content-box;}
.home-theme-dnf_night a {text-decoration:none;}
/* A compact white-on-translucent navigation floats over the original header art. */
/* Header text aligns precisely with the 1350px advertisement table below.
   Restore the gentle header gradient and underside shadow (without heavy borders). */
.home-theme-dnf_night #Topheader {width:100%;height:70px;min-width:1350px;position:relative;margin:0 auto;z-index:10;
    background:linear-gradient(to bottom,rgba(0,0,0,.25),rgba(0,0,0,.45) 70%,rgba(0,0,0,.60));
    box-shadow:0 5px 13px rgba(0,0,0,.40);}
.home-theme-dnf_night #Topheader .center {position:relative;display:flex;align-items:center;justify-content:space-between;width:1350px;height:70px;margin:0 auto;}
.home-theme-dnf_night #Topheader .toplogo {flex:0 0 360px;width:360px;height:70px;display:block;}
.home-theme-dnf_night #Topheader .toplogo img {display:block;width:360px;height:70px;}
.home-theme-dnf_night #Topmenu {flex:0 0 auto;display:flex;align-items:center;height:30px;margin:0;padding:0 8px;
    background:rgba(246,247,249,.20);border:1px solid rgba(255,255,255,.30);border-radius:5px;box-shadow:0 2px 5px rgba(70,74,82,.16);}
.home-theme-dnf_night #Topmenu ul {display:flex;align-items:center;justify-content:center;list-style:none;margin:0;padding:0;height:30px;}
.home-theme-dnf_night #Topmenu li {display:flex;align-items:center;justify-content:center;margin:0;padding:0 9px;height:30px;min-width:0;white-space:nowrap;position:relative;}
.home-theme-dnf_night #Topmenu li + li::before {content:"|";position:absolute;left:-2px;color:rgba(255,255,255,.65);}
/* Admin index_t is one editable segment: keep its links and separators in a single line. */
.home-theme-dnf_night #Topmenu li.menu-agent {display:block;line-height:30px;white-space:nowrap;}
.home-theme-dnf_night #Topmenu li.menu-agent a,.home-theme-dnf_night #Topmenu li.menu-agent span {display:inline;line-height:30px;}
.home-theme-dnf_night #Topmenu a,.home-theme-dnf_night #Topmenu span {display:inline-block;font-size:12px;line-height:30px;font-weight:normal;color:#fff;text-align:center;text-decoration:none;text-shadow:0 1px 1px rgba(35,40,50,.30);}
.home-theme-dnf_night #Topmenu a:hover {color:#ffe7ad;text-decoration:underline;}
.home-theme-dnf_night .top {width:1350px;height:360px;margin:0 auto;position:relative;}
.home-theme-dnf_night .wrap {position:relative;width:1350px;overflow:hidden;margin:0 auto;padding:2px 0 10px;}
.home-theme-dnf_night .wrap .content {width:1350px;min-height:200px;margin:0 auto;padding:0;
    box-shadow:0 4px 16px rgba(65,65,65,.4);background:transparent;border-radius:0;}




.home-theme-dnf_night #footer {width:1350px;min-width:1350px;margin:0 auto;}
.home-theme-dnf_night #copyright {width:1350px;margin:0 auto;padding:10px 0;text-align:center;color:#fff;line-height:180%;}
.home-theme-dnf_night #copyright p {margin:0 0 5px;}
.home-theme-dnf_night .custom-footer {margin-top:8px;overflow-wrap:anywhere;}
.home-theme-dnf_night .custom-footer a {color:#ffde80;}
/* Preserve v2.0.15 desktop alignment at 1366px and narrower. */
@media (max-width:1370px) {
    .home-theme-dnf_night #Topheader {width:1350px;min-width:1350px;margin-left:0;margin-right:0;}
    .home-theme-dnf_night .top,.home-theme-dnf_night .wrap,.home-theme-dnf_night #footer {margin-left:0;margin-right:0;}
}
/* Keep the original narrow desktop background strategy; phone height must not drive it. */
@media (max-width:1370px) and (hover:hover) and (pointer:fine) {
    body.home-theme-dnf_night {background-size:auto 100vh;background-attachment:scroll;}
}
/* Touch browsers scroll the same full-width artwork with the desktop canvas.
   Never size it from the phone's height: that enlarges/crops it independently. */
@media (hover:none) and (pointer:coarse) {
    body.home-theme-dnf_night {background-attachment:scroll;}
}

.home-theme-dnf_night .ad-table-shell{width:1350px;overflow:visible;box-sizing:border-box;}
