/* v743: icons from the original game's toolbar (ui/jx/tb_*.png, 3 states of 28 px: normal, hover, pressed) instead of drawn ones:
   Cài đặt Auto = tb_sys (gear), Phần thưởng = the treasure chest picked by the owner (ui/training/chest.png), Đăng nhập = tb_friend */
body.jxpc #autoSettingsBtn>img{display:none!important}/* v752: phones keep the old wrench icon */
body:not(.jxpc) #giftBtn{font-size:0!important;color:transparent!important;background:url(../ui/training/chest.png) 50% 55%/84% auto no-repeat,#000!important;position:relative}
body:not(.jxpc) #giftBtn:hover{filter:brightness(1.2)}
#giftBtn.on::after{content:"";position:absolute;right:1px;top:1px;width:7px;height:7px;border-radius:50%;background:#e0402a;box-shadow:0 0 0 1px #000}
.auth-ico743{display:inline-block;width:16px;height:16px;vertical-align:-4px;margin-right:4px;background:url(../ui/jx/tb_friend.png) 0 0/300% 100% no-repeat}
/* PC toolbar: same icons in the 31 x 30 cells (the v700 drawn ::before pictures are replaced) */
body.jxpc #top #giftBtn{background:#000!important}
body.jxpc #top #giftBtn::before,body.jxpc #bridgeAuthPill::before{content:""!important;position:absolute!important;left:1px!important;top:1px!important;width:28px!important;height:28px!important;transform:none!important;filter:none!important;background:url(../ui/training/chest.png) 50% 55%/26px auto no-repeat!important}
body.jxpc #bridgeAuthPill{background:#000!important}
body.jxpc #bridgeAuthPill::before{background-image:url(../ui/jx/tb_friend.png)!important}
body.jxpc #top #giftBtn:hover::before{filter:brightness(1.2)!important}
body.jxpc #bridgeAuthPill::before{background-size:84px 28px!important;background-position:0 0!important}
body.jxpc #bridgeAuthPill:hover::before{background-position:-28px 0!important}
body.jxpc #autoControls #autoSettingsBtn{background:url(../ui/jx/tb_sys.png) 1px 1px/84px 28px no-repeat,#000!important}
body.jxpc #autoControls #autoSettingsBtn:hover{background-position:-27px 1px,0 0!important;filter:none!important}
/* v743: phone Khinh công button like the PC one: black ground, foot icon on top, the three charge dots (gold #ffe37a like PC since v744) at the bottom, no captions */
body:not(.jxpc) #pad #bKhinhCong{background:url(./khinh-cong-world44.webp) 50% 3px/18px 18px no-repeat,#000!important;border-color:#6c8597!important}
body:not(.jxpc) #pad #bKhinhCong>span,body:not(.jxpc) #pad #bKhinhCong .timer{display:none!important}
body:not(.jxpc) #pad #bKhinhCong .charges{inset:auto 0 2px 0!important;top:auto!important;font-size:8px!important;line-height:8px!important;letter-spacing:1px;color:#ffe37a!important;text-shadow:0 0 2px #000;z-index:6!important}
/* v743: Thổ Địa Phù button on a black ground (was pale gold) */
#pad #bTp{background:#000!important}
/* v743: walker / horse icon exactly in the middle of the PC slot (it was absolutely placed at 3,3 in a 37 x 39 cell) */
body.jxpc #pad #bRide{display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important}
body.jxpc #pad #bRide>img{position:static!important;left:auto!important;top:auto!important;width:28px!important;height:28px!important;margin:0!important}
/* v743: phone ride button on a black ground like Khinh công and Thổ Địa Phù */
body:not(.jxpc) #pad #bRide{background:#000!important}
/* v752: phone top bar without the character portrait — level, name, power and bars only, like PC */
body:not(.jxpc) #top .hero-mark .lvbox{display:none!important}
/* v752: phone top bar: the name sits on its own line above the level box (left edge), the rest stays */
body:not(.jxpc) #top{position:relative}
body:not(.jxpc) #top .hero-identity{position:absolute!important;left:6px;top:5px;width:auto!important;max-width:66px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;z-index:2}
body:not(.jxpc) #top .hero-identity #heroName{overflow:hidden;text-overflow:ellipsis}
/* v754: phone top bar — left: name, level, Lực chiến; middle: stage line and bars; right: silver and KNB on the top line, then the
   login pill, the full-screen button and the gift box (outermost) evenly spaced (6 px) on the line below. Below 381 px the login pill
   shows its icon only and the money line uses a smaller font, so nothing overlaps on the narrowest phones. */
body:not(.jxpc) #top .top-power{position:absolute!important;left:6px;top:52px;margin:0!important;z-index:2}
body:not(.jxpc) #top .topmid{flex:1 1 auto!important;margin-left:20px!important;margin-right:194px!important;align-self:center;min-width:0;width:auto!important;max-width:none!important}
body:not(.jxpc) #top .hero-mark{align-self:center}
body:not(.jxpc) #top #hud{width:100%!important;max-width:100%!important;box-sizing:border-box}
body:not(.jxpc) #top #stageLbl{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body:not(.jxpc) #top .gold-stack{position:absolute!important;right:6px;top:5px;display:flex!important;flex-direction:row!important;align-items:center;gap:8px;margin:0!important}
body:not(.jxpc) #top #giftBtn{position:absolute!important;right:46px;top:28px;margin:0!important}
body:not(.jxpc) #top #compactBtn{position:absolute!important;right:6px;top:28px;margin:0!important}
body:not(.jxpc) #bridgeAuthPill{position:absolute!important;right:86px;top:28px;height:26px!important;box-sizing:border-box;display:flex!important;align-items:center;margin:0!important}
@media (max-width:380px){
 body:not(.jxpc) #top .gold-stack{gap:5px}
 body:not(.jxpc) #top .gold-stack .money-line{font-size:11px!important}
 body:not(.jxpc) #top .gold-stack .coin{width:14px!important;height:auto!important}
 body:not(.jxpc) #bridgeAuthPill{width:30px!important;height:30px!important;top:26px!important;padding:0!important;justify-content:center;border-radius:50%!important}
 body:not(.jxpc) #bridgeAuthPill>span,body:not(.jxpc) #bridgeAuthPill>small{display:none!important}
 body:not(.jxpc) #bridgeAuthPill .auth-ico743{margin:0!important}
 body:not(.jxpc) #top .topmid{margin-right:126px!important}
}
/* v755: PC toolbar — "Khác" moved to the far right (after Đăng nhập); chat, Auto, Auto settings, gift and login each move one cell left */
body.jxpc #tabs{overflow:visible!important;contain:none!important}
body.jxpc #tabs button[data-t=more]{transform:translateX(155px);z-index:12}
body.jxpc #worldChat .wc-toggle,body.jxpc #autoControls #ctrlBtn,body.jxpc #autoControls #autoSettingsBtn,body.jxpc #top #giftBtn,body.jxpc #bridgeAuthPill{transform:translateX(-31px)!important}
/* v756: PC chat unread dot drawn like the gift / tab dots (8 px, #e0402a, dark ring) */
body.jxpc #worldChat .wc-unread{right:1px!important;top:1px!important;width:8px!important;height:8px!important;min-width:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:#e0402a!important;box-shadow:0 0 0 1px #000!important;font-size:0!important;color:transparent!important}
/* v756: phone login pill, gift and full-screen buttons share one height and one centre line */
html body:not(.jxpc) #top #bridgeAuthPill{height:32px!important;min-height:32px!important;max-height:32px!important;line-height:30px!important}
@media (max-width:380px){html body:not(.jxpc) #top #bridgeAuthPill{width:32px!important;height:32px!important;min-height:32px!important;top:28px!important}}
/* v773: Tống Kim / Đua Thuyền — chọn Sơ cấp / Trung cấp / Cao cấp */
.tier773{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:8px 0;width:100%}
.tier773-b{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 4px;border:1px solid rgba(201,162,92,.35);border-radius:6px;background:rgba(20,14,8,.72);color:#d9c9a3;cursor:pointer;font:inherit;line-height:1.2;text-align:center}
.tier773-b b{color:#f0d48a;font-size:13px}
.tier773-b small{color:#b8a888;font-size:11px}
.tier773-b span{color:#e8dcc0;font-size:11px}
.tier773-b:hover{border-color:rgba(240,212,138,.7)}
.tier773-b.on{border-color:#f0c25a;background:linear-gradient(180deg,rgba(120,80,20,.55),rgba(40,26,10,.8));box-shadow:0 0 0 1px rgba(240,194,90,.5) inset}
.tier773-b.on b{color:#ffd76b}
.event-feature-actions .tier773{order:-1}
.event-feature-actions:has(.tier773){flex-wrap:wrap}
.event-feature-actions .tier773{flex:1 1 100%;margin:0 0 6px}
/* v781 (owner): the full-screen / compact square (#compactBtn) is removed on PC and phones (compact stays on, set at start). Phones: the gift box takes its
   place at the right edge, the login pill moves 40 px right, and the stage line / bars get the 40 px back. */
html body #top #compactBtn{display:none!important}
html body:not(.jxpc) #top #giftBtn{right:6px!important}
html body:not(.jxpc) #top #bridgeAuthPill,html body:not(.jxpc) #bridgeAuthPill{right:46px!important}
html body:not(.jxpc) #top .topmid{margin-right:154px!important}
@media (max-width:380px){html body:not(.jxpc) #top .topmid{margin-right:86px!important}}

/* v812: skill list - points needed for the next level past the skill's max */
#t-skill .sk-name .sk-next811{margin-left:auto;margin-right:6px;padding:1px 8px;border:1px solid rgba(214,170,90,.45);border-radius:4px;color:#f0c979;font-size:11px;white-space:nowrap;background:rgba(0,0,0,.25)}
#t-skill .sk-name .sk-next811+.tag{margin-left:0}

/* v828: Tống Kim tab in Hoạt động giang hồ (4 tabs); headings use a serif with every Vietnamese letter (Georgia on Windows lacks ồ, ầ … and drew the mark beside the letter) */
.event-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}
.event-heading h3,.event-section-head h4,.event-feature h4,.dungeon-card h5,.boat-bonus>b{font-family:"Times New Roman","Noto Serif",Georgia,serif}
.tk-shop828{display:grid;gap:6px;margin:8px 0 12px}.tk-shop828-row{display:flex;align-items:center;gap:10px;padding:8px 12px;border:1px solid #3b4b39;border-radius:6px;background:#ffffff08;color:#e8dcc8}.tk-shop828-row span{flex:1}.tk-shop828-row small{color:#bba77a}
