/* Shared responsive visual system for all server-rendered and AJAX pages. */
:root{--bg:#f5f7f9;--surface:#fff;--surface-soft:#f3f6f7;--text:#172b32;--muted:#596b74;--line:#e1e8eb;--line-strong:#cbd8dd;--brand:#087f72;--brand-dark:#06665d;--brand-soft:#e6f5f0;--radius:24px;--shadow:0 16px 48px rgba(25,53,65,.06)}
body{background:#f5f7f9!important;background-image:none!important;font-size:15px;line-height:1.65}
.wrap{width:min(1240px,calc(100% - 64px))}
.skip-link{position:fixed;top:-80px;left:16px;z-index:300;padding:12px 20px;background:var(--brand);color:#fff;border-radius:12px}.skip-link:focus{top:12px}
:where(a,button,input):focus-visible{outline:3px solid #159c8b;outline-offset:4px}
.topbar{background:#fff!important;border-bottom:1px solid var(--line);box-shadow:none;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.topbar-inner{height:84px;grid-template-columns:auto minmax(0,1fr) auto;gap:24px}
.brand strong{font-size:20px}.brand img{width:44px;height:44px;border-radius:14px}
.desktop-nav{background:transparent;border:0;gap:4px;padding:0}.desktop-nav a{font-size:13px;min-height:44px;padding:0 12px}.desktop-nav a.active{background:var(--brand-soft);box-shadow:none}.desktop-nav .header-zalo{color:#64716e;background:transparent;box-shadow:none}.desktop-nav .header-zalo:hover{background:#f3f6f7;color:var(--text);transform:none}
.guest-actions{gap:16px}.header-btn{min-height:44px;font-size:13px;border-radius:12px;padding:0 18px}.plain-link{font-size:13px}
.section-pad{padding-top:36px}.hero-grid{grid-template-columns:minmax(0,1.8fr) minmax(300px,1fr);gap:24px;align-items:stretch}
.hero-copy{min-height:460px;padding:48px;border:0;border-radius:28px;background:linear-gradient(90deg,rgba(5,56,53,.48),rgba(5,56,53,.24) 58%,rgba(5,56,53,.02)),url('../img/hero-jade-v2.jpg') center/cover!important;color:#fff!important;box-shadow:none!important}
.hero-copy:after{display:none}.hero-copy .eyebrow{color:#a6e5cd!important;letter-spacing:1.7px;font-size:11px}
.hero-copy h1{font-size:clamp(34px,3.8vw,54px);line-height:1.13;letter-spacing:-2px;margin:20px 0;color:#fff!important}.hero-copy h1 span{color:#b2efcd!important}
.hero-copy .hero-description{max-width:440px;color:#d9e7e5;font-size:15px;line-height:1.8;margin:0}
.hero-actions{gap:12px;margin-top:30px}.btn{min-height:48px;padding:0 20px;font-size:14px;font-weight:700;border-radius:12px}.hero-copy .btn.primary{background:#b2efcd;color:#103d32;box-shadow:none}.hero-copy .btn.ghost{background:rgba(255,255,255,.08)!important;border-color:rgba(255,255,255,.35)!important;color:#fff!important}
.hero-card{padding:30px;background:#fff;border:1px solid var(--line);border-radius:24px;display:flex;flex-direction:column;justify-content:center;box-shadow:var(--shadow)!important}
.card-label{font-size:11px;letter-spacing:1.3px}.hero-card h2{font-size:28px;margin-bottom:20px}.hero-card label,.auth-card label{font-size:13px;color:#40545e;margin-bottom:16px}.hero-card input,.auth-card input{height:50px;background:#f8fafb;font-size:14px;padding:0 15px;border-radius:12px}.hero-card p,.mini-center{font-size:13px!important}.form-message{font-size:13px}
.section-gap{margin-top:28px}.panel,.auth-card,.news-detail-card,.download-section,.topup-packages,.topup-qr-card,.topup-history-section,.account-profile-v2{background:#fff;border-color:var(--line);border-radius:22px;padding:28px;box-shadow:var(--shadow)!important}
.section-title{margin-bottom:24px}.section-title h2,.download-section-head h2{font-size:25px;letter-spacing:-.7px}.section-title span,.section-kicker{font-size:11px}.section-title>a{font-size:13px;color:var(--brand)}
.post-grid{gap:18px;grid-template-columns:repeat(3,minmax(0,1fr))}.post-card,.news-list-item{background:#f8fafb;border:1px solid var(--line);border-radius:16px;padding:24px;transition:transform .2s,border-color .2s}.post-card:hover,.news-list-item:hover{transform:translateY(-3px);border-color:#9bcdbf}.post-card h3,.news-list-item h2{font-size:18px;line-height:1.5}.post-card p,.news-list-item p{font-size:14px;line-height:1.8;color:var(--muted)}.news-meta,.read-more{font-size:12px}.skeleton{padding:28px;font-size:14px;background:#f8fafb;color:var(--muted)}
.giftcode-open{background:#fff;min-height:88px;border-radius:20px;padding:20px 24px;gap:16px}.giftcode-open-icon{width:48px;height:48px;border-radius:14px;font-size:22px}.giftcode-open-text small{font-size:11px}.giftcode-open-text strong{font-size:17px}.giftcode-open-count{font-size:12px}
.page-head{padding-top:48px;padding-bottom:24px}.page-head h1,.auth-intro h1{font-size:clamp(32px,4vw,48px);line-height:1.2}.page-head p,.auth-intro p{font-size:15px}.download-grid.tidy-downloads{gap:18px}.download-card{padding:24px;background:#fff;border-radius:18px}.download-body p{font-size:14px}.download-meta,.version-chip{font-size:11px}.download-btn{min-height:56px;border-radius:12px}.download-btn b{font-size:14px}.download-btn small{font-size:11px}.download-card.is-recommended:before{position:static;font-size:11px;color:var(--brand)}
.device-recommend{padding:22px;background:var(--brand-soft);border-color:#c8e5da}.recommend-copy p{font-size:14px}.recommend-copy h2{font-size:18px}
.auth-shell{gap:48px}.auth-card{padding:32px}.news-detail-content{font-size:16px;line-height:1.9;overflow-wrap:anywhere}.news-detail-card h1{line-height:1.35}
.topup-history-meta,.topup-history-extra{font-size:12px}.topup-history-line>b{font-size:16px}.topup-status{font-size:11px}.topup-history-item{padding:16px;gap:14px}.account-page .stat small{font-size:11px}.account-page .stat b{font-size:18px}.footer{margin-top:48px;background:#fff;padding:30px 0}.footer b{font-size:16px}.footer span,.footer p{font-size:12px}
@media(min-width:821px) and (max-width:1100px){.topbar-inner{gap:12px}.brand strong{font-size:17px}.desktop-nav a{padding:0 8px;font-size:12px}.desktop-nav a i{display:none}.login-link{display:none}.hero-copy{padding:32px}.hero-card{padding:24px}}
@media(max-width:820px){.wrap{width:calc(100% - 40px)}.topbar-inner{height:72px;grid-template-columns:1fr auto}.desktop-nav{display:none}.hero-grid,.auth-shell{grid-template-columns:1fr}.hero-copy{min-height:400px;padding:36px}.hero-card{padding:28px}.section-pad{padding-top:24px}.post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-nav{left:16px;right:16px;bottom:calc(12px + env(safe-area-inset-bottom));height:68px;background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:20px;box-shadow:0 8px 32px rgba(20,50,60,.14)}.mobile-nav a{font-size:11px;gap:3px;color:#526874}.mobile-nav a span{font-size:20px}.mobile-nav a.active{background:#e6f5f0;color:var(--brand)}.footer{padding-bottom:calc(112px + env(safe-area-inset-bottom))}.mobile-zalo-box{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.25);margin-top:24px}.mobile-zalo-copy small{font-size:10px}.mobile-zalo-copy b{font-size:14px}.topup-layout{grid-template-columns:1fr}.page-head{padding-top:32px}}
@media(max-width:560px){.wrap{width:calc(100% - 32px)}.brand strong{font-size:17px}.brand img{width:36px;height:36px}.header-btn{min-height:40px;padding:0 12px;font-size:12px}.hero-copy{padding:30px 24px;min-height:420px;border-radius:22px}.hero-copy h1{font-size:37px;letter-spacing:-1.4px}.hero-copy .eyebrow{font-size:10px;letter-spacing:1px}.hero-copy .hero-description{font-size:14px}.hero-actions{flex-direction:row;flex-wrap:wrap;margin-top:24px}.hero-actions .btn{width:auto;flex:1;padding:0 12px;font-size:13px;white-space:nowrap}.hero-card{padding:24px}.panel,.auth-card,.news-detail-card,.download-section,.topup-packages,.topup-qr-card,.topup-history-section{padding:20px;border-radius:20px}.section-title h2{font-size:21px}.section-title{gap:12px}.section-title>a{font-size:12px;white-space:nowrap}.post-grid,.download-grid.tidy-downloads{grid-template-columns:1fr}.post-grid .post-card:nth-child(3){display:block}.post-card{padding:20px}.giftcode-open{padding:16px;grid-template-columns:44px minmax(0,1fr) 16px;gap:12px}.giftcode-open-text strong{font-size:15px}.giftcode-open-icon{width:44px;height:44px}.giftcode-open-count{display:none}.section-gap{margin-top:20px}.giftcode-modal-head h2{font-size:20px}.giftcode-modal-body{padding:16px}.giftcode-value{overflow-wrap:anywhere}.account-actions-row{gap:12px}.footer .wrap{display:block}.footer p{margin-top:12px}.topup-history-meta,.topup-history-extra{font-size:11px}.topup-history-line>b{font-size:15px}.topup-history-item{padding:12px}.topup-status{font-size:10px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
/* Keep scroll and page swaps immediate; avoid compositing the whole page. */
html{scroll-behavior:auto}
body.loading #pageContent{opacity:1;transition:none!important}
.mobile-nav{background:#fff;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.post-card,.news-list-item{transition:border-color .15s}
.post-card:hover,.news-list-item:hover{transform:none}
#homePosts>.skeleton{grid-column:1/-1;min-height:210px;display:grid;place-items:center}
/* Quiet text area and solid actions stay readable over the game artwork. */
body:before{display:none!important}
.news-item,.download-card,.topup-history-item{content-visibility:visible;contain-intrinsic-size:none}
.topbar,.mobile-nav{transform:translateZ(0);box-shadow:none!important}
.hero-card,.panel,.auth-card,.news-detail-card,.download-section,.topup-packages,.topup-qr-card,.topup-history-section,.account-profile-v2{box-shadow:none!important}
.hero-copy{background:#103e3b url('../img/hero-naruto-v3.jpg') center/cover no-repeat!important;isolation:isolate}
.hero-copy:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,40,38,.88),rgba(8,40,38,.76) 55%,rgba(8,40,38,.08));z-index:0;pointer-events:none}
.hero-copy .eyebrow{font-size:16px;letter-spacing:0;font-weight:600;color:#d9f1e8!important}
.hero-copy h1{font-size:clamp(42px,5vw,66px);line-height:1.15;margin:16px 0}
.hero-copy .hero-description{color:#fff;font-size:18px;font-weight:500;line-height:1.6}
.hero-copy .btn.primary{background:#c5f4dc;color:#103e3b;border:1px solid #c5f4dc}
.hero-copy .btn.ghost{background:#fff!important;color:#163e37!important;border:1px solid #fff!important}
.hero-copy .btn:hover{background:#e8fff2!important;color:#103e3b!important;transform:none}
.hero-copy .mobile-zalo-box{background:#fff;border:1px solid #fff;color:#163e37;box-shadow:none}
.hero-copy .mobile-zalo-icon{background:#e6f5f0;color:#087f72}
.hero-copy .mobile-zalo-copy small{opacity:1;color:#526b62}
@media(max-width:560px){.hero-copy .eyebrow{font-size:15px;letter-spacing:0}.hero-copy h1{font-size:44px;letter-spacing:-1.5px}.hero-copy .hero-description{font-size:16px}.hero-copy:before{background:linear-gradient(90deg,rgba(8,40,38,.92),rgba(8,40,38,.77) 70%,rgba(8,40,38,.45))}}
/* Compact homepage hero and login panel. */
.account-wallet{display:block;margin-top:0;padding:18px 22px;box-shadow:none}
.account-wallet-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:14px;margin-bottom:16px;border-bottom:1px solid rgba(255,255,255,.2)}
.account-wallet .account-avatar-v2{background:rgba(255,255,255,.15);color:#fff}
.account-wallet .account-profile-copy-v2 h1{color:#fff;font-size:18px;margin:0 0 3px}
.account-wallet .account-profile-copy-v2 span{color:#e1f1ea;font-size:11px}
.account-wallet .account-logout-icon{color:#fff;border-color:rgba(255,255,255,.35);background:transparent}
.account-wallet .account-logout-icon:hover{background:rgba(255,255,255,.12)}
.account-wallet-amount>small{font-size:11px;opacity:.85}.account-wallet-amount>strong{font-size:30px;margin-top:6px}
.account-balance-card.account-wallet .account-wallet-amount>span{font-size:12px;margin-top:9px}
@media(max-width:560px){.account-balance-card.account-wallet{padding:16px}.account-wallet-head{padding-bottom:12px;margin-bottom:14px}.account-wallet .account-profile-copy-v2 h1{font-size:17px}}
.account-profile-v2{padding:10px 14px;border-radius:14px;gap:12px}
.account-profile-main{flex:1;gap:10px;min-width:0}
.account-avatar-v2{width:38px;height:38px;flex-basis:38px;border-radius:10px;font-size:16px}
.account-profile-copy-v2 h1{font-size:19px;margin:0 0 3px;line-height:1.2}
.account-profile-copy-v2 span{font-size:11px;font-weight:500;line-height:1.3}
.account-logout-icon{height:44px;flex-shrink:0;padding:0 12px;font-size:12px;font-weight:600;background:transparent;border-color:var(--line);color:#65726e;border-radius:10px;gap:7px}
.account-logout-icon i{font-size:16px}.account-logout-icon:hover{color:#b84d43;background:#fff0ec;border-color:#efd8d3}
@media(max-width:560px){.account-profile-v2{padding:10px 12px}.account-profile-copy-v2 h1{font-size:17px}.account-logout-icon{width:44px;padding:0}.account-logout-icon span{display:none}}
.header-topup.active{background:#e6f5f0;color:var(--brand-dark);box-shadow:inset 0 0 0 2px var(--brand);font-weight:800}
.header-topup.active:hover{background:#d5eee5;color:var(--brand-dark)}
.header-account.active{background:var(--brand-soft);border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}
.header-account.active b,.header-account.active small{color:var(--brand-dark)}
.has-session .user-nav{display:flex;gap:10px;max-width:none;overflow:visible;min-width:0}
.header-account{display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:#f8fafb;min-width:0;max-width:220px}
.header-account>i{font-size:24px;color:var(--brand)}.header-account>span{min-width:0}.header-account b{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--text);line-height:1.3}.header-account b i{color:var(--brand);font-size:16px}.header-account small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:150px;font-size:11px;color:var(--muted);line-height:1.5;margin-top:2px}.header-account:hover{border-color:var(--brand);background:var(--brand-soft)}
.header-topup{display:flex;align-items:center;justify-content:center;gap:7px;min-height:48px;padding:0 14px;background:var(--brand);color:#fff;border-radius:12px;font-size:13px;font-weight:700;white-space:nowrap}.header-topup:hover{background:var(--brand-dark)}
@media(min-width:821px) and (max-width:1100px){.has-session{gap:10px}.has-session .brand strong{font-size:15px}.has-session .desktop-nav a{padding:0 6px;font-size:11px}.header-account{max-width:165px;padding:7px 9px}.header-topup{padding:0 10px}.has-session .user-nav{gap:6px}}
@media(max-width:820px){.header-account{max-width:180px;min-height:46px;padding:6px 10px;gap:8px}.header-account small{max-width:120px}.header-topup{min-height:46px;padding:0 12px;font-size:12px}.has-session .user-nav{gap:8px}}
@media(max-width:480px){.has-session .brand strong{display:none}.has-session{gap:10px}.header-account{max-width:190px}.header-account small{max-width:130px}.header-account>i{font-size:21px}}
@media(max-width:350px){.header-account{max-width:155px;padding:6px 8px}.header-account small{max-width:105px;font-size:10px}.header-account>i{display:none}.header-topup{padding:0 10px}.header-topup>i{display:none}}
.topup-choice-hint{margin:0 0 16px;padding:12px 14px;border-radius:12px;background:#e6f5f0;color:#16594c;font-size:14px;line-height:1.6}
.topup-select-prompt{display:none}
.topup-change-row{display:none}
@media(max-width:820px){.topup-change-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;font-size:13px;color:var(--muted)}.topup-change-row .btn{min-height:44px;font-size:13px;padding:0 12px;white-space:nowrap}.topup-packages{scroll-margin-top:88px}}
@media(max-width:820px){
  .topup-packages{order:0}.topup-qr-card{order:1;position:static}
  .topup-section-title h2{font-size:21px}.topup-section-title small{font-size:11px}
  .deposit-money{font-size:20px}.deposit-coin{font-size:13px}.deposit-option{min-height:88px;padding:14px}
  .deposit-option small{font-size:11px}.deposit-option.active{border:2px solid var(--brand);padding:13px}
  .topup-layout:not(.has-topup-selection) .deposit-option.active{border:1px solid var(--line);padding:14px;background:#fafcfc;box-shadow:none}
  .topup-layout:not(.has-topup-selection) .topup-payment-details{display:none}
  .topup-select-prompt{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:22px 10px;color:var(--muted);background:#f8fafb;border-radius:14px;font-size:14px}
  .topup-select-prompt i{font-size:26px;color:var(--brand)}.topup-select-prompt b{color:var(--text);font-size:16px}
  .has-topup-selection .topup-select-prompt{display:none}
  .topup-qr-card{scroll-margin-top:88px}.qr-summary small{font-size:11px}.qr-summary b{font-size:18px}.qr-note{font-size:13px}
}
.referral-panel{margin-top:22px;padding:26px;background:#fff;border:1px solid var(--line);border-radius:20px}
.referral-panel p{color:var(--muted);font-size:14px}.referral-rate{color:var(--brand);font-size:13px;white-space:nowrap}.referral-share{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:end}.referral-share label{font-size:12px;color:var(--muted)}.referral-share label strong{display:block;font-size:20px;color:var(--text)}.referral-share input{width:100%;height:48px;padding:0 12px;background:#f8fafb;border:1px solid var(--line);border-radius:10px;color:var(--text);font-size:14px;display:block;margin-top:5px}.referral-totals{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:24px}.referral-totals>div{padding:16px;background:var(--brand-soft);border-radius:14px}.referral-totals small,.referral-totals b{display:block}.referral-totals b{font-size:23px;color:var(--brand)}.referral-totals small{font-size:12px}.referral-panel h3{font-size:17px;margin:24px 0 12px}.referral-list article{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}.referral-list b{overflow-wrap:anywhere}.referral-list small{display:block;font-size:12px;color:var(--muted);font-weight:400}.referral-list strong{text-align:right;color:var(--brand);white-space:nowrap}.referral-empty{padding:16px;background:#f8fafb;border-radius:12px}
@media(max-width:560px){.referral-panel{padding:20px}.referral-share{grid-template-columns:1fr}.referral-rate{white-space:normal;text-align:right}.referral-totals b{font-size:19px}.referral-list article{gap:10px}.referral-list strong{font-size:14px}}
.hero-copy{min-height:340px;padding:32px 40px}
.hero-card{padding:22px 26px}
.hero-card h2{font-size:25px;margin-bottom:14px}
.hero-card label{margin-bottom:12px}
.hero-card input{height:44px;margin-top:4px}
.hero-card .btn{min-height:44px}
.hero-card .mini-center{margin:10px 0 0!important}
.hero-actions{margin-top:22px}
@media(max-width:820px){.hero-copy{min-height:300px;padding:28px 32px}.hero-card{padding:22px 26px}.hero-grid{gap:18px}}
@media(max-width:560px){.hero-copy{min-height:270px;padding:24px}.hero-copy h1{margin:12px 0}.hero-copy .hero-actions{margin-top:18px}.hero-copy .mobile-zalo-box{margin-top:16px}.hero-card{padding:20px}.hero-card h2{font-size:23px}}
.account-balance-card.account-wallet{background:#fff;color:var(--text);border:1px solid var(--line)}
.account-wallet .account-wallet-head{border-bottom-color:var(--line)}
.account-wallet .account-avatar-v2{background:var(--brand-soft);color:var(--brand)}
.account-wallet .account-profile-copy-v2 h1{color:var(--text)}
.account-wallet .account-profile-copy-v2 span{color:var(--muted)}
.account-wallet .account-logout-icon{color:var(--muted);border-color:var(--line)}
.account-wallet .account-logout-icon:hover{background:#fff0ec;color:#b84d43}
.account-wallet .account-wallet-amount>small{color:var(--muted);opacity:1}
.account-wallet .account-wallet-amount>strong{color:var(--brand);font-size:30px}
.account-wallet .account-wallet-amount>span{color:var(--muted);opacity:1}
.account-wallet .account-wallet-details{display:flex;flex-wrap:wrap;gap:12px 28px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.account-wallet-details .account-quick-item{min-width:0;min-height:0;padding:0;background:transparent;border:0;box-shadow:none;display:flex;align-items:center;gap:9px}
.account-wallet-details .account-quick-item i{width:auto;height:auto;background:none;color:var(--brand);font-size:16px}
.account-wallet-details .account-quick-item small{font-size:11px;letter-spacing:0;font-weight:500;opacity:1;color:var(--muted)}
.account-wallet-details .account-quick-item b{display:block;font-size:13px;font-weight:600;overflow-wrap:anywhere;color:var(--text)}
.referral-benefit{display:flex;align-items:center;gap:16px;background:#e6f5f0;border:1px solid #b9dfd1;border-left:4px solid var(--brand);border-radius:14px;padding:18px;margin:0 0 22px}
.referral-benefit>i{font-size:30px;color:var(--brand)}
.referral-panel .referral-benefit p{margin:0;color:#204f43;font-size:15px;line-height:1.8}
.referral-benefit strong{display:inline-block;padding:1px 9px;background:var(--brand);color:#fff;border-radius:7px;font-size:18px;white-space:nowrap}
@media(max-width:560px){.account-wallet .account-wallet-details{gap:12px 20px}.referral-benefit{align-items:flex-start;gap:12px;padding:15px}.referral-benefit>i{font-size:24px;margin-top:4px}.referral-panel .referral-benefit p{font-size:14px}}
.brand-wordmark{width:210px;gap:0;flex-shrink:0}
.brand-wordmark .brand-full-logo{display:block;width:210px;height:auto;object-fit:contain;border-radius:0}
.brand-wordmark .brand-mobile-mark{display:none}
@media(min-width:821px) and (max-width:1100px){.brand-wordmark,.brand-wordmark .brand-full-logo{width:175px}}
@media(max-width:560px){.brand-wordmark,.brand-wordmark .brand-full-logo{width:175px}}
@media(max-width:480px){.has-session .brand-wordmark{width:38px}.has-session .brand-wordmark .brand-full-logo{display:none}.has-session .brand-wordmark .brand-mobile-mark{display:block;width:38px;height:38px;border-radius:0}}
