/* The Last Empire x La2Heaven — presentation-only adaptation.
 * PHP actions, SQL, webhook paths, payment, login, launcher and news remain untouched.
 */
body.page-heaven{--bg:#04070e;--bg2:#070c18;--ink:#eef3fb;--mute:#9fb0c8;--blue:#2a8cff;--cyan:#6fc8ff;--gold:#e8c27a;--gold2:#a97c34;background:#04070e;color:#eef3fb;font-family:Jost,'Segoe UI',sans-serif}
body.page-heaven #main-content{display:block;min-height:60vh;overflow:visible;position:relative}
body.page-heaven .top{height:78px;min-height:70px;z-index:250}
body.page-heaven .top-in{width:100%;max-width:1700px}
body.page-heaven .top .brand{left:24px;top:8px;width:215px;min-width:0;text-align:center;line-height:1.1}
body.page-heaven .top .brand img{width:100%;height:auto;max-height:52px;object-fit:contain}
body.page-heaven .top .brand small{display:block;margin-top:-3px;letter-spacing:.16em;color:#d7c392;font:500 10px/1.2 Jost,Arial,sans-serif;white-space:nowrap}
body.page-heaven .top .menu{left:260px;top:39px;gap:clamp(14px,1.4vw,26px)}
body.page-heaven .top .menu>a{font-size:clamp(12px,.77vw,14px);letter-spacing:.085em}
body.page-heaven .top .acts{right:22px;top:19px;gap:10px;align-items:center;z-index:6}
body.page-heaven .top .acts .hex{--h:40px;font-size:12px;min-width:116px}
body.page-heaven .top .acts .hex.gold{min-width:133px}
body.page-heaven .menu-acts{z-index:1}
body.page-heaven .heaven-language{position:relative;display:block;min-height:40px;padding:0;border:1px solid #d0b27566;border-radius:0;background:#050d1e;z-index:8}
body.page-heaven .heaven-language summary{height:38px;min-width:66px;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 9px;color:#e9eff8;font-weight:600;font-size:12px;letter-spacing:.06em;cursor:pointer;list-style:none}
body.page-heaven .heaven-language summary::-webkit-details-marker{display:none}
body.page-heaven .heaven-language summary img{display:inline-block;max-width:22px;height:14px;object-fit:cover}
body.page-heaven .heaven-language-options{position:absolute;top:calc(100% + 5px);right:0;min-width:165px;padding:7px;background:#080e1cef;border:1px solid #d3b57877;box-shadow:0 16px 30px #000b;display:flex;flex-direction:column;gap:2px;z-index:12}
body.page-heaven .heaven-language-options a{padding:10px;color:#e5eefc;font-size:14px;text-decoration:none}
body.page-heaven .heaven-language-options a:hover{background:#16335a;color:white}
body.page-heaven .heaven-language:not([open]) .heaven-language-options{display:none}
body.page-heaven .top .burger{z-index:7}
/* Hero: same illustrated artwork, responsive composition and background effects as reference. */
body.page-heaven .hero{background:#02050c}
body.page-heaven .hero .stage .best{text-transform:uppercase;letter-spacing:.09em;font-size:calc(var(--u)*39);white-space:nowrap}
body.page-heaven .hero .stage .sub{letter-spacing:.18em}
body.page-heaven .hero .stage .tag{white-space:nowrap}
body.page-heaven .hero .art{filter:saturate(.99)}
/* Feature art is derived from the SAME original background through the reference crop script. */
body.page-heaven .features .cards{max-width:1300px}
body.page-heaven .features .card p{overflow-wrap:break-word}
body.page-heaven .downloads .heaven-req-description{line-height:1.65;font-size:16px;margin:13px 0 20px;color:#c9d5e5}
body.page-heaven .downloads .dl-text small{display:block;margin-top:5px;color:#d6bd90;font-size:12.5px}
body.page-heaven .downloads .unavailable{opacity:.55;cursor:not-allowed;pointer-events:none;filter:grayscale(.55)}
body.page-heaven .heaven-rates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:19px 0 25px}
body.page-heaven .heaven-rates>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border:1px solid #87a9d136;background:#081426c4}
body.page-heaven .heaven-rates span{color:#9fb0c8;font:500 12px/1.2 Jost,sans-serif;letter-spacing:.08em}
body.page-heaven .heaven-rates strong{color:#f6d993;font:600 17px/1.2 Cinzel,Georgia,serif}
body.page-heaven .heaven-guides-link{display:inline-block;color:#e8c27a;text-decoration:underline;text-underline-offset:4px}
body.page-heaven .heaven-download-note{max-width:740px;text-align:center;margin:24px auto 0;color:#9fb0c8}
body.page-heaven .community .links{max-width:1300px;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px}
body.page-heaven .community .link small{display:block}
body.page-heaven .news .posts{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
body.page-heaven .news .post a{padding-bottom:29px}
body.page-heaven .news .post .body>p:last-child{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
body.page-heaven .heaven-empty-news{max-width:600px;margin:auto;padding:40px;text-align:center}
body.page-heaven .heaven-empty-news h3{font:500 22px/1.5 Cinzel,serif;color:#f5dba0;margin-bottom:12px}
body.page-heaven .heaven-more .heaven-more-inner{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:1260px;gap:26px;margin:auto}
body.page-heaven .heaven-more .heaven-server-info{max-width:100%;padding:34px 36px;min-height:450px;display:flex;flex-direction:column;align-items:flex-start;gap:17px}
body.page-heaven .heaven-more .heaven-server-info h3{font:500 clamp(21px,2.1vw,28px)/1.3 Cinzel,Georgia,serif;color:#f4d9a0}
body.page-heaven .heaven-more .heaven-server-info p{font-size:16px;line-height:1.7;color:#b0bfd3}
body.page-heaven .heaven-more .heaven-server-info .heaven-rates{width:100%;margin:4px 0}
body.page-heaven .heaven-guide-image{height:125px;overflow:hidden;opacity:.85;width:100%;mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent)}
body.page-heaven .heaven-guide-image img{width:100%;height:100%;object-fit:cover;object-position:center 40%}
body.page-heaven .heaven-more .heaven-server-info .hex{margin-top:auto;min-width:200px}
body.page-heaven .play-in h2{font:500 clamp(25px,4vw,52px)/1.25 Cinzel,serif;letter-spacing:.13em;color:#eac786;text-shadow:0 0 22px #b18a4655}
body.page-heaven .play .tag{margin:10px 0 30px}
body.page-heaven .play .btns{gap:14px}
body.page-heaven .play .hex.big{min-width:215px}
/* Match the fantasy footer of original template, preserving original privacy and account links. */
body.page-heaven .foot{z-index:2;padding:50px 16px 43px}
body.page-heaven .heaven-footer .foot-logo{margin:0 auto 4px}
body.page-heaven .heaven-footer h2{font:500 25px/1.4 Cinzel,Georgia,serif;color:#e8c27a;letter-spacing:.15em;margin:0 0 20px}
body.page-heaven .heaven-footer .foot-nav{margin:0 auto 14px;gap:7px 25px;max-width:1100px}
body.page-heaven .heaven-footer .foot-legal{align-items:center;margin-bottom:17px;gap:22px}
body.page-heaven .heaven-footer .foot-legal button{cursor:pointer;background:none;border:0;color:#a9b8cc;font:inherit;padding:8px}
body.page-heaven .heaven-footer .foot-legal button:hover{color:white}
body.page-heaven .heaven-footer>small{display:block;margin-top:10px;letter-spacing:.05em;color:#8290a6}
/* The reference's colors/backgrounds on ALL internal pages; retain existing forms and handlers. */
body.page-heaven-inner #main-content{background:#04070e url('../heaven/art.webp') center top / min(1950px,150vw) auto no-repeat;isolation:isolate}
body.page-heaven-inner #main-content::before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(4,7,14,.65),rgba(4,7,14,.90) 740px,#04070e 1050px);z-index:-1}
body.page-heaven-inner .nc-auth-scene{min-height:100svh;padding-top:90px;background:transparent!important;position:relative}
body.page-heaven-inner .nc-auth-scene .nc-scene-bg{background-image:url('../heaven/art.webp')!important;background-size:cover!important;background-position:center top!important;opacity:.67!important}
body.page-heaven-inner .nc-auth-scene .nc-scene-overlay{background:linear-gradient(90deg,rgba(3,6,15,.65),rgba(3,6,15,.84))!important}
body.page-heaven-inner .nc-auth-card{border:1px solid rgba(232,194,122,.6);background:linear-gradient(160deg,rgba(12,25,46,.96),rgba(3,8,19,.96) 67%)!important;box-shadow:0 22px 80px #000b,0 0 24px #2a8cff22;clip-path:polygon(16px 0,calc(100% - 16px) 0,100% 16px,100% calc(100% - 16px),calc(100% - 16px) 100%,16px 100%,0 calc(100% - 16px),0 16px)}
body.page-heaven-inner .nc-auth-card h1{font-family:Cinzel,Georgia,serif;color:#f0dca9}
body.page-heaven-inner .nc-auth-wordmark{font-family:Cinzel,Georgia,serif;letter-spacing:-.025em;background:linear-gradient(#fff,#bcdefb 60%,#8fb4e6);-webkit-background-clip:text;background-clip:text}
body.page-heaven-inner .nc-auth-eyebrow{color:#6fc8ff}
body.page-heaven-inner .nc-auth-submit,body.page-heaven-inner .empire-guides-filter button{border:1px solid #b8ddff!important;background:linear-gradient(135deg,#204b83,#09224a)!important;color:#fff!important;box-shadow:0 0 12px #2a8cff40;clip-path:polygon(12px 0,calc(100% - 12px) 0,100% 50%,calc(100% - 12px) 100%,12px 100%,0 50%)}
body.page-heaven-inner .nc-auth-submit:hover,body.page-heaven-inner .empire-guides-filter button:hover{filter:brightness(1.2)}
body.page-heaven-inner .nc-auth-form input:not([type='checkbox']){background:#060e1dbb;border-color:#527eae;color:#f0f6ff}
body.page-heaven-inner .nc-auth-form input:focus-visible{outline-color:#6fc8ff}
body.page-heaven-inner .empire-guides-page{background:transparent;font-family:Jost,Arial,sans-serif}
body.page-heaven-inner .empire-guides-hero{background:transparent}
body.page-heaven-inner .empire-guides-hero h1,body.page-heaven-inner .empire-guides-section-heading h2,body.page-heaven-inner .empire-news-article-page h1{font-family:Cinzel,Georgia,serif;color:#f4dcae}
body.page-heaven-inner .empire-guides-filter,body.page-heaven-inner .empire-guide-card,body.page-heaven-inner .empire-news-article-shell{border-color:#a37d4a99!important;background:linear-gradient(160deg,#0d1a30ef,#060b17f7)!important}
body.page-heaven-inner .empire-news-article-page{background:transparent}
body.page-heaven-inner .page-content,body.page-heaven-inner .account-section{color:#eff4fc}
body.page-heaven-inner .dashboard,body.page-heaven-inner .donations-page{background:transparent}
body.page-heaven-inner .nc-account-scene,body.page-heaven-inner .account-page,body.page-heaven-inner .donation-page{background:transparent!important}
body.page-heaven-inner .nc-account-card,body.page-heaven-inner .account-card{border-color:#9e7e49aa!important;background:linear-gradient(150deg,#0b172ae8,#050c18ef)!important}
/* Original floating votes, social links, cookie controls and flashes keep their functionality. */
body.page-heaven .empire-social-rail,body.page-heaven .empire-vote-pill{z-index:35}
body.page-heaven .flash{position:relative;z-index:251}
body.page-heaven-inner .flash{margin-top:80px}
@media(max-width:1500px){
  body.page-heaven .top .brand{width:182px;left:15px;top:10px}
  body.page-heaven .top .brand small{font-size:9px}
  body.page-heaven .top .menu{left:205px;gap:13px}
  body.page-heaven .top .menu>a{font-size:12px}
  body.page-heaven .top .acts{right:16px}
}
@media(max-width:1330px){
  body.page-heaven .top{height:68px;min-height:68px}
  body.page-heaven .top .brand{left:16px;top:4px;width:170px}
  body.page-heaven .top .brand img{height:47px}
  body.page-heaven .top .menu{position:fixed;inset:68px 0 auto;transform:translateY(-8px);display:flex;flex-direction:column;align-items:stretch;gap:0;padding:12px 23px 20px;max-height:calc(100svh - 68px);overflow:auto;background:#050913f9;box-shadow:0 1px 0 #a97c34,0 24px 40px #000a;opacity:0;visibility:hidden;transition:opacity .25s,transform .25s;z-index:4}
  body.page-heaven .top .menu.open{opacity:1;visibility:visible;transform:none}
  body.page-heaven .top .menu>a{font-size:16px;padding:13px 4px;border-bottom:1px solid #e8c27a22}
  body.page-heaven .top .menu .ind{display:none}
  body.page-heaven .top .burger{display:block;right:13px;top:34px}
  body.page-heaven .top .acts{right:70px;top:14px}
  body.page-heaven .top .acts .hex{--h:40px}
  body.page-heaven .top .menu-acts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:15px}
  body.page-heaven .top .menu-acts .hex{--h:45px;font-size:12px}
  body.page-heaven .top .menu-acts .hex>span{padding:0 8px}
}
@media(max-width:860px){
  body.page-heaven .hero .stage .best{font-size:clamp(20px,5.5vw,34px);letter-spacing:.05em;white-space:normal}
  body.page-heaven .hero .stage .tag{white-space:normal}
  body.page-heaven .top .brand{left:10px;width:160px}
  body.page-heaven .heaven-more .heaven-more-inner{grid-template-columns:1fr;max-width:630px}
  body.page-heaven .news .posts{grid-template-columns:1fr;max-width:550px}
  body.page-heaven .community .links{grid-template-columns:repeat(2,1fr)}
  body.page-heaven-inner .nc-auth-scene{padding-top:74px}
}
@media(max-width:600px){
  body.page-heaven .top .acts{right:65px}
  body.page-heaven .top .acts .hex{display:none}
  body.page-heaven .top .menu-acts{grid-template-columns:1fr 1fr}
  body.page-heaven .top .menu-acts .hex.gold{grid-column:1/-1}
  body.page-heaven .top .menu-acts .hex{display:grid}
  body.page-heaven .heaven-more .heaven-server-info{padding:28px 20px}
  body.page-heaven .heaven-rates>div{flex-direction:column;align-items:start}
  body.page-heaven .community .links{grid-template-columns:1fr}
  body.page-heaven .play .hex.big{width:min(100%,340px)}
  body.page-heaven .heaven-footer .foot-nav{gap:1px 17px}
  body.page-heaven .heaven-footer .foot-nav a{font-size:12px}
}
@media(prefers-reduced-motion:reduce){body.page-heaven .crop-bg,body.page-heaven .sky::before,body.page-heaven .sky::after{animation:none}}
/* Functional social/vote links are available in the footer on narrow screens. */
body.page-heaven .heaven-mobile-extras{display:none}
@media(max-width:640px){
  body.page-heaven .top .brand small{display:none}
  body.page-heaven .top .brand{top:6px;width:158px}
  body.page-heaven .heaven-mobile-extras{display:block;max-width:470px;margin:15px auto 22px;padding:17px 12px;border-block:1px solid #b48c483e}
  body.page-heaven .heaven-mobile-extras h3{font:500 17px/1.4 Cinzel,serif;color:#e8c27a;letter-spacing:.08em;margin-bottom:14px}
  body.page-heaven .heaven-extra-links{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:9px}
  body.page-heaven .heaven-extra-links .empire-social-rail{position:relative!important;display:flex!important;flex-direction:row!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;width:auto!important;max-width:100%!important;height:auto!important;margin:0!important;padding:4px!important;gap:4px!important;transform:none!important;box-shadow:none!important}
  body.page-heaven .heaven-extra-links .empire-vote-pill{position:relative!important;display:flex!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;margin:0!important;transform:none!important;flex-shrink:0;width:123px!important;min-width:0!important;height:45px!important;overflow:hidden!important;z-index:1!important}
  body.page-heaven .heaven-extra-links .empire-vote-pill img{object-fit:contain!important;width:100%!important;max-width:100%!important;height:100%!important;max-height:44px!important}
  body.page-heaven .heaven-extra-links .empire-l2votes-badge{padding:0 7px!important;justify-content:center;gap:3px!important}
  body.page-heaven .heaven-extra-links .empire-l2votes-badge img{width:26px!important;height:25px!important;flex-basis:26px!important}
  body.page-heaven .heaven-extra-links .empire-l2votes-badge .empire-l2votes-label{font-size:10px!important}
}
@media(max-width:640px){
  body.page-heaven .heaven-extra-links #top-l2jbrasil-right{position:relative!important;display:flex!important;right:auto!important;left:auto!important;top:auto!important;bottom:auto!important;z-index:1!important;width:123px!important;height:45px!important;margin:0!important;transform:none!important}
  body.page-heaven .heaven-extra-links #top-l2jbrasil-right img{width:100%!important;height:100%!important;max-width:100%!important;max-height:45px!important;object-fit:contain!important}
}
/* Account access adopts the reference template's centered panel composition. */
body.page-heaven-inner.page-auth-nc .nc-auth-layout{display:grid;grid-template-columns:1fr;gap:0;width:min(510px,calc(100% - 32px));margin:auto;padding:145px 0 68px}
body.page-heaven-inner.page-auth-nc .nc-auth-identity{display:none}
body.page-heaven-inner.page-auth-nc .nc-auth-card{padding:clamp(24px,3.5vw,40px);text-align:center}
body.page-heaven-inner.page-auth-nc .nc-auth-card-top{justify-content:center}
body.page-heaven-inner.page-auth-nc .nc-auth-card-top::after{content:'THE LAST EMPIRE';font:500 11px/1 Cinzel,Georgia,serif;letter-spacing:.14em;color:#b3ccee;white-space:nowrap}
body.page-heaven-inner.page-auth-nc .nc-auth-form{text-align:left}
body.page-heaven-inner.page-auth-nc .nc-auth-card h1{font-size:clamp(30px,3.2vw,42px);text-align:center}
body.page-heaven-inner.page-auth-nc .nc-auth-description{text-align:center}
@media(max-width:640px){body.page-heaven-inner.page-auth-nc .nc-auth-layout{padding:96px 0 45px}}

/* The Last Empire La2Heaven - visual correction V2: anchors, coherent sections and votes. */
html:has(body.page-heaven){scroll-padding-top:104px}
body.page-heaven .sec,body.page-heaven .play{scroll-margin-top:102px}
body.page-heaven .sec{padding-top:clamp(105px,9vw,145px);padding-bottom:clamp(90px,8vw,132px)}
body.page-heaven .sec .head{margin-bottom:clamp(36px,4vw,58px)}
body.page-heaven .sec .head .eyebrow{margin-bottom:14px}
body.page-heaven .sec .head h2{font-size:clamp(28px,3.7vw,50px);line-height:1.22;letter-spacing:.035em;overflow-wrap:normal}
body.page-heaven .sec .head .lead{max-width:620px;margin:18px auto 0;line-height:1.6}
body.page-heaven .downloads .req h3{font-size:clamp(18px,1.4vw,21px);line-height:1.35;overflow-wrap:normal;word-break:normal;text-wrap:balance}
body.page-heaven .downloads .grid,body.page-heaven .heaven-more .heaven-more-inner{align-items:stretch}
body.page-heaven .downloads .dl{gap:18px}
body.page-heaven .downloads .dl-text{min-width:0;flex:1}
body.page-heaven .downloads .dl .hex{min-width:180px}
body.page-heaven .news .posts{justify-content:center}
body.page-heaven .news .posts:has(> :only-child){grid-template-columns:minmax(280px,410px);max-width:500px}
body.page-heaven .news .posts:has(> :nth-child(2):last-child){grid-template-columns:repeat(2,minmax(280px,410px));max-width:880px}
body.page-heaven .news .shield{overflow:hidden}
body.page-heaven .news .thumb{background:#0e2039}
body.page-heaven .news .post{min-width:0}
body.page-heaven .news .post .body{padding:16px 18px 4px}
body.page-heaven .heaven-guide-image{height:170px;overflow:hidden;max-width:100%}
body.page-heaven .heaven-guide-image img{width:100%;height:100%;object-fit:cover;object-position:60% 42%;filter:brightness(.76) saturate(.88)}
body.page-heaven .heaven-more .heaven-server-info{min-height:480px;justify-content:flex-start}
body.page-heaven .heaven-more .heaven-server-info h3{line-height:1.35}
body.page-heaven .heaven-more .heaven-server-info .hex{margin-top:auto}
/* Site vote links are no longer free-floating over hero or downloads. */
body.page-heaven .heaven-footer .heaven-vote-bar{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:14px;margin:25px auto 15px;padding:18px 12px;max-width:590px;border-top:1px solid #bca17239;border-bottom:1px solid #bca17239}
body.page-heaven .heaven-footer .heaven-vote-bar .empire-vote-pill,
body.page-heaven .heaven-footer .heaven-vote-bar #top-l2jbrasil-right,
body.page-heaven .heaven-footer .heaven-vote-bar .hopzone-vote,
body.page-heaven .heaven-footer .heaven-vote-bar .empire-l2votes-badge{
  position:relative!important;left:auto!important;top:auto!important;right:auto!important;bottom:auto!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:152px!important;height:52px!important;min-width:0!important;
  margin:0!important;transform:none!important;z-index:1!important;
  background:#080e1ce8!important;border:1px solid #b9a27b66!important;border-radius:8px!important;
  box-shadow:0 6px 18px #0005!important;overflow:hidden!important;
}
body.page-heaven .heaven-footer .heaven-vote-bar .empire-vote-pill img{width:100%!important;max-width:100%!important;height:100%!important;max-height:100%!important;object-fit:contain!important}
body.page-heaven .heaven-footer .heaven-vote-bar .empire-l2votes-badge{gap:6px!important;padding:5px 9px!important;justify-content:center!important}
body.page-heaven .heaven-footer .heaven-vote-bar .empire-l2votes-badge img{width:28px!important;height:28px!important;flex:0 0 28px!important}
body.page-heaven .heaven-footer .heaven-vote-bar .empire-l2votes-label{display:flex;flex-direction:column}
body.page-heaven .heaven-footer .heaven-vote-bar .empire-l2votes-label strong{font-size:12px!important;line-height:1.2}
body.page-heaven .heaven-footer .heaven-vote-bar .empire-l2votes-label small{font-size:9px!important;line-height:1.2}
@media(max-width:1100px){
 body.page-heaven .downloads .grid{grid-template-columns:1fr;max-width:760px;margin-inline:auto}
 body.page-heaven .downloads .heaven-downloads-list{min-width:0}
 body.page-heaven .downloads .req{min-height:0}
 body.page-heaven .heaven-more .heaven-more-inner{grid-template-columns:1fr;max-width:660px}
 body.page-heaven .heaven-more .heaven-server-info{min-height:0}
}
@media(max-width:700px){
 body.page-heaven .sec{padding:92px 18px 86px}
 body.page-heaven .news .posts:has(> :nth-child(2):last-child){grid-template-columns:1fr;max-width:470px}
 body.page-heaven .downloads .dl{flex-wrap:wrap;justify-content:flex-start}
 body.page-heaven .downloads .dl .hex{width:100%;min-width:0}
 body.page-heaven .downloads .req{padding:24px 20px}
 body.page-heaven .heaven-guide-image{height:155px}
 body.page-heaven .heaven-footer .heaven-vote-bar{gap:10px;padding:17px 7px}
 body.page-heaven .heaven-footer .heaven-vote-bar .empire-vote-pill,
 body.page-heaven .heaven-footer .heaven-vote-bar #top-l2jbrasil-right{width:135px!important;height:48px!important}
}
