/* ======================= GIAO DIEN KIEU VO LAM 2.0 (man hinh ngang rong >= 900px) =======================
   San dau toan man hinh; cac the (Nhan vat, Vo cong, Hanh trang...) thanh cua so noi; menu bieu tuong goc duoi phai,
   cot hoat dong ben phai, nut tron + ban do nho goc phai tren, nhat ky trong suot goc duoi trai. */
body.u20 #app{display:block!important;width:100vw!important;height:100vh!important;max-width:none!important;transform:none!important;margin:0!important}
body.u20 #top,body.u20 #tabs,body.u20 #mainSk,body.u20 #compactBtn{display:none!important}
body.u20 #battle{position:fixed!important;inset:0!important;flex:none!important;height:auto!important;width:auto!important}
/* thanh trang thai tren cung */
body.u20 #hud{left:188px!important;right:auto!important;width:min(560px,calc(100vw - 430px))!important;max-width:560px!important;transform:none!important;top:0!important;padding:3px 8px!important;
  background:linear-gradient(#3b3424,#1c170e)!important;border:1px solid #7d6a3c!important;border-top:0!important;box-shadow:0 2px 6px #000a!important;display:flex!important;gap:4px!important;align-items:center}
body.u20 #hud .bar{flex:1 1 0;margin:0!important;min-width:0;max-width:170px}
#gmMarq{position:fixed!important;left:0!important;right:0!important;top:48px;z-index:90!important;height:22px;width:min(640px,62vw)!important;margin:0 auto!important;overflow:hidden;pointer-events:none;display:block;background:none!important;border:none!important;box-shadow:none!important}
#gmMarq[hidden]{display:none!important}
#gmMarq span{display:inline-block;padding-left:100%;white-space:nowrap;color:#ffe9a0;font-weight:700;font-size:14px;line-height:22px;letter-spacing:.5px;text-shadow:0 1px 2px #000,0 0 8px #000,0 0 2px #000;animation:gmMarq 12s linear infinite}
@keyframes gmMarq{from{transform:translateX(0)}to{transform:translateX(-100%)}}
body.u20 #topCtl{top:auto!important;bottom:auto!important;right:auto!important;left:auto!important;transform:none!important;cursor:grab;gap:4px}
/* cua so noi = khung the cu */
body.u20 #panel{position:fixed!important;left:50%;top:64px;transform:translateX(-50%);width:min(560px,46vw);max-height:calc(100vh - 160px);z-index:30;display:none!important;
  border:2px solid #8c7440!important;box-shadow:0 0 18px #000!important;background:rgba(18,18,16,.95)!important;overflow:auto!important}
body.u20.u20win #panel{display:block!important;min-height:280px}
body.u20.u20win #panel .tab:not(.hidden){display:block!important;min-height:240px;visibility:visible!important}
body.u20 #panel::before{display:none!important}
#u20wh{position:sticky;top:0;z-index:2;display:flex;align-items:center;height:26px;background:linear-gradient(#4a3f26,#231c0e);border-bottom:1px solid #8c7440;color:#ffe9b0;font-weight:600;justify-content:center}
#u20wh button{position:absolute;right:4px;top:2px;width:22px;height:20px;border:1px solid #8c7440;background:#2a1f10;color:#ffd98a;cursor:pointer;line-height:16px}
#u20wh{cursor:move;user-select:none}
/* goc phai tren: nut tron + tien */
#u20r{position:fixed;top:4px;z-index:8;display:flex;gap:6px}
.u20rb{width:46px;height:46px;border-radius:50%;background:radial-gradient(#6b5530,#2a1f0e);border:2px solid #b9974f;color:#ffe9b0;font:600 9.5px/11px var(--font,Tahoma);text-align:center;cursor:pointer;box-shadow:0 2px 4px #000;padding:0}
.u20rb:hover{filter:brightness(1.25)}
#u20gold{position:fixed;right:6px;z-index:8;display:flex;gap:10px;color:#ffd970;font-weight:700;font-size:12px;text-shadow:0 1px 2px #000,0 0 3px #000}
#u20gold img{width:15px;height:15px;vertical-align:-3px;margin-right:2px}
/* cot hoat dong ben phai */
#u20side{position:fixed;right:6px;z-index:8;display:flex;flex-direction:column;gap:5px}
.u20sq{position:relative;width:32px;height:32px;border:1px solid #9a8250;background:linear-gradient(#3b5e7a,#16283a);font-size:15px;cursor:pointer;padding:0;box-shadow:0 1px 3px #000}
.u20sq:hover::after{content:attr(data-n);position:absolute;right:38px;top:6px;white-space:nowrap;background:#000d;border:1px solid #6d5a30;color:#ffe9b0;font-size:11px;padding:1px 6px}
.u20sq.dot::before{content:'';position:absolute;right:-3px;top:-3px;width:8px;height:8px;border-radius:50%;background:#e33}
/* menu bieu tuong goc duoi phai */
#u20menu{position:fixed;right:6px;bottom:6px;z-index:8;display:flex;gap:3px;padding:3px;background:linear-gradient(#3b3424,#1c170e);border:1px solid #9a8250;border-radius:4px}
.u20mi{position:relative;width:34px;height:34px;border:1px solid #6d5a30;background:radial-gradient(#3e5f50,#13251c) center/24px no-repeat;cursor:pointer;padding:0;font-size:16px;color:#fff}
.u20mi small{position:absolute;bottom:-1px;left:0;right:0;font-size:8px;text-align:center;color:#ffe9b0;background:#000a;line-height:10px}
.u20mi.on{border-color:#e0c060;box-shadow:0 0 6px #e0c06088}
.u20mi .dot{position:absolute;right:-3px;top:-3px;width:8px;height:8px;border-radius:50%;background:#e33;display:none}
.u20mi .dot.on{display:block}
/* nhat ky trong suot goc duoi trai */
#u20log{position:fixed;left:0;bottom:50px;width:min(42vw,470px);z-index:7;pointer-events:auto}
#u20lines{max-height:170px;overflow:hidden;padding:4px 8px;font-size:11.5px;line-height:15px;background:linear-gradient(90deg,#000b,#0000);text-shadow:0 1px 1px #000}
#u20lines div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#u20ct{display:flex}
#u20ct button{background:linear-gradient(#2f4a3a,#132219);border:1px solid #6f9c8b;padding:0 5px;font-size:10px;white-space:nowrap;color:#ffe9b0;cursor:pointer;height:16px}
#u20ct button.on{background:linear-gradient(#6b5320,#3a2c0e);border-color:#e0c060}
body.u20 #chatBox{bottom:6px!important}
body.u20 #modeSw{bottom:auto!important;top:auto!important;left:auto!important;right:8px!important;bottom:100px!important}
/* thanh mau trum */
#u20boss{position:fixed;left:50%;transform:translateX(-50%);top:30px;width:min(34vw,440px);z-index:7;text-align:center;display:none;pointer-events:none}
#u20boss .t{color:#ffd970;font-weight:700;font-size:12px;text-shadow:0 1px 2px #000}
#u20boss .b{height:12px;border:2px solid #8c7440;border-radius:7px;background:#200;margin-top:2px;position:relative;overflow:hidden}
#u20boss .b i{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(#e44,#911)}
#u20boss .b span{position:absolute;inset:0;font-size:10px;line-height:12px;color:#fff;text-shadow:0 0 2px #000}
/* Tro thu kiem hiep */
.u20tt label{display:block;padding:3px 0}
.u20tt h4{margin:8px 0 2px;color:#e8d49a;border-bottom:1px solid #554}
/* chat the gioi trong giao dien 2.0: nut 💬 goc duoi trai, dong chat hien o tab "Thế giới" cua khung nhat ky; mo 💬 = cua so chat */
body.u20 #u20log{bottom:2px}
body.u20 #u20ct{margin-left:36px;flex-wrap:wrap}
body.u20 #chatBox:not(.open){left:2px!important;bottom:2px!important;width:auto!important}
body.u20 #chatBox:not(.open) #chatLines{display:none}
body.u20.nochat #u20ct{margin-left:0}
#u20in{display:none;position:relative;gap:2px;padding:3px 6px 5px;pointer-events:auto;align-items:stretch;width:100%;box-sizing:border-box;margin:0;flex-direction:column}
#u20in.on{display:flex}
#u20emo[hidden]{display:none!important}
#u20in .cinrow{display:flex;gap:4px;width:100%;align-items:center}
#u20in .cib{flex:none;width:24px;height:24px;padding:0;border:1px solid #5a4b2c;border-radius:3px;background:linear-gradient(#2e2719,#15120b);color:#ffe9a8;font:bold 16px/22px sans-serif;cursor:pointer}
#u20in .cib:hover{border-color:#c4a45a}
#u20in .cib.on,#chatBox .cib.on,#ptyMic.on{border-color:#e05050!important;background:linear-gradient(#5a1818,#2a0c0c)!important;color:#ffd0d0}
#pvWho{position:fixed;left:8px;bottom:86px;z-index:80;display:none;max-width:min(52vw,280px);padding:3px 8px;border:1px solid #8a3a3a;border-radius:4px;background:#1a0c0ce8;color:#ffd0b0;font-size:12px;pointer-events:none;text-shadow:0 1px 2px #000}
#pvWho.on{display:block}
#chatLines .cvo,#u20lines .cvo{color:#7fe0ff;text-decoration:underline;cursor:pointer;background:none;border:0;padding:0;font:inherit;pointer-events:auto!important}
body.u20 #u20lines [data-pn],body.u20 #u20lines .chit,body.u20 #u20lines .cxy,body.u20 #u20lines .cvo,body.u20 #u20lines .czl,body.u20 #u20lines .cevb{pointer-events:auto!important;cursor:pointer}
#chatLines .czl,#u20lines .czl{color:#7fd0ff;font-style:normal;font-weight:700;text-decoration:underline;cursor:pointer;pointer-events:auto!important}
#chatLines .cevb,#u20lines .cevb{color:#9fe36a;font-style:normal;font-weight:700;text-decoration:underline;cursor:pointer;pointer-events:auto!important}
#u20in input{flex:1;min-width:0;height:24px;background:#0b0c0a;border:1px solid #6d5a30;color:#f2ecd0;padding:0 6px;font:inherit;border-radius:3px}
#u20in button{height:24px;padding:0 8px;flex:none;cursor:pointer}
body.u20 #chatBox{z-index:12!important}
body.u20 #chatBtn{pointer-events:auto!important}
body.u20 #chatBox.open{left:4px!important;bottom:48px!important;top:auto!important;height:min(38vh,278px)!important;width:min(32vw,380px)!important}
body.u20 #modal .mbox{width:min(440px,92vw)!important;max-width:min(440px,92vw)!important}
body.u20 #modal.u2ktc .mbox,body.u2m #modal.u2ktc .mbox{width:min(820px,96vw)!important;max-width:min(820px,96vw)!important}
body.u20 #modal.dealOn .mbox,body.u2m #modal.dealOn .mbox{width:min(400px,96vw)!important;max-width:min(400px,96vw)!important;max-height:min(86vh,520px);overflow:auto;z-index:2}
#modal.dealOn h3{cursor:move;touch-action:none;user-select:none}
.dealWait{color:#ffd970;text-align:center;font-size:12px;margin:2px 0}
.dealPay{flex-wrap:wrap;justify-content:center;gap:4px}
.dealCols{display:flex;gap:14px;justify-content:center;align-items:flex-start}
.dealCol{min-width:0}
.dealCol p{margin:0 0 4px;text-align:center;font-size:12px}
.dealCol .stake{color:#ffd970}
.dealSlots{display:grid;grid-template-columns:repeat(5,34px);gap:3px;justify-content:center;background:#1a1814;padding:4px;border:1px solid #6d684c}
.dealSlots.trade{grid-template-columns:repeat(4,34px)}
.dealWallet{text-align:center;margin:6px 0}
.dealActs{display:flex;gap:8px;justify-content:center;align-items:center;margin:6px 0}
.dealIco,.dealQ{font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif}
.dealIco{width:40px;height:40px;padding:2px;font-size:24px;line-height:1}
.dealIco.on{box-shadow:inset 0 0 0 2px #e8c860}
.dealQ{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #6d684c;background:#14120e;color:#e8c860;font-size:24px;line-height:1}
.dealSlots .it{width:34px;height:34px;padding:0;position:relative;overflow:hidden}
.dealSlots .it img{width:28px;height:28px;max-width:28px;max-height:28px;display:block;margin:3px auto;object-fit:contain}
.dealSlots .dealNm{font-size:9px;line-height:1.15;color:#f3edc8;display:block;padding:2px;word-break:break-word}
#dealBag{display:grid;grid-template-columns:repeat(6,36px);grid-auto-rows:36px;gap:2px;justify-content:center;align-content:start;width:100%;max-height:220px;overflow:auto;background:#141310;border:1px solid #6d684c;padding:4px;box-sizing:border-box}
#modal.dealOn #dealBag .it{width:36px;height:36px;min-width:36px;min-height:36px;max-width:36px;max-height:36px;aspect-ratio:auto;overflow:hidden;position:relative;padding:0}
#modal.dealOn #dealBag .it img{width:30px;height:30px;max-width:30px;max-height:30px;object-fit:contain;display:block;margin:3px auto}
@media (max-width:520px){
  .dealCols{flex-direction:column;gap:6px;align-items:center}
  .dealActs{flex-wrap:wrap}
  body.u20 #modal.dealOn .mbox,body.u2m #modal.dealOn .mbox{width:min(360px,98vw)!important;max-width:min(360px,98vw)!important}
}
@media (max-height:480px){
  #dealBag{max-height:148px}
  .dealSlots{grid-template-columns:repeat(5,30px)}
  .dealSlots.trade{grid-template-columns:repeat(4,30px)}
  .dealSlots .it{width:30px;height:30px}
  .dealIco,.dealQ{width:34px;height:34px;font-size:20px}
}
/* ======================= v160: HINH ANH + CUA SO VO LAM 2.0 ======================= */
:root{--w2bg:rgba(24,26,22,.95);--w2ln:#7d7a62;--w2ln2:#3a392e;--w2tx:#e9e1c2;--w2gd:#ffd970;--w2cell:#0b0c0a}
/* thanh menu: bieu tuong goc 2.0 (20x20, 3 khung: thuong / re chuot / dang mo) */
#u20menu{gap:2px;padding:4px 8px;background:linear-gradient(#4a4a3c,#1d1d16);border:1px solid #9a926c;border-radius:14px 14px 3px 3px;box-shadow:0 0 0 1px #000,0 -2px 8px #000a;align-items:flex-end;z-index:45!important;pointer-events:auto!important}
.u20mi{width:30px;height:30px;border:0;border-radius:0;background:transparent no-repeat 0 0/90px 30px;image-rendering:auto}
.u20mi:hover{background-position:-30px 0}.u20mi.on{background-position:-60px 0;box-shadow:none}
.u20mi small{display:none}
#u20mini{position:absolute;right:6px;top:-30px;display:flex;gap:3px;padding:2px 4px;background:linear-gradient(#3e3e32,#1d1d16);border:1px solid #8b845f;border-bottom:0;border-radius:8px 8px 0 0}
.u20mi.sm{width:26px;height:26px;background-size:78px 26px}.u20mi.sm:hover{background-position:-26px 0}.u20mi.sm.on{background-position:-52px 0}
/* khung cua so 2.0 */
body.u20 #panel{background:var(--w2bg)!important;border:1px solid var(--w2ln)!important;outline:1px solid #000;box-shadow:inset 0 0 0 1px var(--w2ln2),0 4px 22px #000!important;border-radius:4px;padding:0 0 8px!important;color:var(--w2tx)}
body.u20 #panel .tab{padding:6px 10px 0}
#u20wh{height:30px!important;background:linear-gradient(#55564a,#2a2b24 55%,#1d1e19)!important;border-bottom:1px solid #8c876a!important;color:var(--w2tx)!important;font-size:14px;letter-spacing:.5px;text-shadow:0 1px 2px #000}
#u20wh::before,#u20wh::after{content:'';position:absolute;top:14px;width:22%;height:1px;background:linear-gradient(90deg,transparent,#a59c78)}#u20wh::before{left:12px}#u20wh::after{right:40px;transform:scaleX(-1)}
#u20wh button,body.u20 #modal .mx{width:24px!important;height:24px!important;border-radius:50%!important;border:2px solid #c9c6b6!important;background:radial-gradient(circle at 40% 35%,#6a6a66,#1d1d1b)!important;color:#fff!important;font-size:12px;line-height:18px;padding:0;top:3px!important;right:5px!important;box-shadow:0 0 3px #000}
body.u20[data-u2t=char] #panel{width:600px}body.u20[data-u2t=inv] #panel{width:262px}body.u20[data-u2t=skill] #panel{width:min(740px,60vw)}
body.u20[data-u2t=forge] #panel{width:560px}body.u20[data-u2t=quest] #panel{width:620px}body.u20[data-u2t=tt] #panel{width:520px}body.u20[data-u2t=more] #panel{width:520px}
body.u20.u20win[data-u2t=inv] #panel{left:auto!important;right:200px;transform:none!important}
/* nut, the, o kieu 2.0 */
body.u20 #panel .btn,body.u20 #modal .btn{background:linear-gradient(#5d684d,#2e3825)!important;border:1px solid #a6ad80!important;color:#f3edc8!important;border-radius:3px!important;box-shadow:inset 0 1px 0 #ffffff22,0 1px 2px #000;text-shadow:0 1px 1px #000}
body.u20 #panel .btn:hover:not(:disabled),body.u20 #modal .btn:hover:not(:disabled){filter:brightness(1.2)}
body.u20 #panel .btn.on,body.u20 #modal .btn.on{background:linear-gradient(#8a7434,#4a3c14)!important;border-color:#e8c860!important}
body.u20 #panel .btn.red,body.u20 #modal .btn.red{background:linear-gradient(#7a3a2e,#3e1a12)!important;border-color:#c48a70!important}
.u2tabs,body.u20 .dtabs{display:flex;gap:2px;border-bottom:1px solid var(--w2ln);margin:0 0 6px;padding:0}
.u2tabs button,body.u20 .dtabs button{flex:0 0 auto;background:linear-gradient(#3b3d33,#202119)!important;border:1px solid #6d6b55!important;border-bottom:0!important;border-radius:4px 4px 0 0!important;color:#cfc8a8!important;padding:3px 12px!important;font-size:12px;cursor:pointer}
.u2tabs button.on,body.u20 .dtabs button.on{background:linear-gradient(#6a6a52,#38382a)!important;color:var(--w2gd)!important}
.u2h{display:flex;align-items:center;gap:4px;color:#e8d49a;font-weight:600;margin:8px 0 3px;padding:2px 6px;background:linear-gradient(90deg,#3a3a2c,transparent);border-left:2px solid #b9974f}
.u2h .sp,.u2foot .sp,.u2bh .sp{flex:1}
.u2box{border:1px solid #4e4c3c;background:#00000055;padding:5px 7px;margin-bottom:4px}
.u2btns{display:flex;gap:4px;flex-wrap:wrap;justify-content:center;margin:6px 0 0}
.gold{color:var(--w2gd)}
body.u20 #panel .it{background:var(--w2cell);border:1px solid #4e4c3c;border-radius:0;box-shadow:inset 0 0 6px #000}
body.u20 #panel .it.r1{border-color:#6aa8ff}body.u20 #panel .it.r2{border-color:#ffd24a}body.u20 #panel .it.r3{border-color:#c77bff}
/* Nhan vat */
.u2char{display:grid;grid-template-columns:262px 1fr;gap:10px}
.u2nm{text-align:center;color:#ffd875;font-family:var(--font-title);font-weight:700;font-size:15px;padding:4px;background:linear-gradient(90deg,transparent,#3a3220,transparent);margin-bottom:4px;text-shadow:0 1px 2px #000, 0 0 8px rgba(255,215,100,0.4)}
.u2doll{position:relative;width:252px;height:300px;margin:0 auto;background:url(ui/jx1/pbg.png) center center/contain no-repeat, radial-gradient(ellipse at 50% 45%,#24221b,#0c0b09 75%);border:1.5px solid #786438;border-radius:4px;box-shadow:0 0 0 1px #000, inset 0 0 20px #000, 0 4px 14px rgba(0,0,0,0.8)}
#u2doll{position:absolute;inset:0;filter:grayscale(1) brightness(.55) contrast(1.15);opacity:.65;pointer-events:none}
.u2s{position:absolute;display:grid;place-items:center;border:1px solid #5c4e30!important;border-radius:3px!important;background:#0b0c0acc;box-shadow:inset 0 0 0 1px #000, 0 2px 5px rgba(0,0,0,0.7)!important;font-size:10px;color:#8f8266;font-weight:600;aspect-ratio:auto!important}
/* div.u2s = o trang bi tren hinh nhan vat; KHONG dung .u2s tron vi body.u2s (dien thoai ngang) cung khop -> moi o vat pham (giao dich, oan tu ti...) bi ep cao 0 */
div.u2s .it{width:100%!important;height:100%!important;aspect-ratio:auto!important;border:0!important;background:transparent!important}
.u2s span{text-align:center;line-height:11px}
.u2a{display:grid;grid-template-columns:1fr 50px 24px 24px;gap:4px;align-items:center;padding:2px 0}.u2a b{text-align:right;color:#ffd875;font-variant-numeric:tabular-nums}
.u2a button{height:22px;padding:0;border:1px solid #ffd875;background:linear-gradient(180deg,#7a632e,#3a2d12);color:#fff;font-weight:700;border-radius:2px;box-shadow:0 1px 3px #000}.u2a button:disabled{opacity:.35}
.u2row{display:flex;justify-content:space-between;align-items:center;margin-top:4px}
.u2st{display:grid;grid-template-columns:1fr auto;gap:3px 10px;font-size:12px;padding:2px 0}
.u2st span:nth-child(odd){color:#cfc6a8}
.u2st span:nth-child(even){color:#ffd875;font-weight:600;text-align:right;font-variant-numeric:tabular-nums}
.u2note{font-size:11px;margin-top:4px}
/* Vo cong */
.u2kg{display:flex;gap:3px;overflow-x:auto;padding-bottom:4px}
.u2kc{display:flex;flex-direction:column;gap:3px;min-width:52px}
.u2kh{text-align:center;font-size:11px;color:#ffd875;font-weight:700;background:linear-gradient(180deg,#3a3020 0%,#18140b 100%);border:1px solid #786438;border-radius:2px;padding:3px 0;text-shadow:0 1px 2px #000}
.u2k{position:relative;width:52px;height:52px;border:1.5px solid #4e4432;border-radius:4px;background:radial-gradient(circle at 40% 40%,#1a1914,#080806);box-shadow:inset 0 0 0 1px #000,0 2px 4px rgba(0,0,0,0.6);display:grid;place-items:center;cursor:pointer;transition:border-color .15s}
.u2k.empty{cursor:default;background:#080807}
.u2k img{width:36px;height:36px;filter:grayscale(1) brightness(.55);image-rendering:auto}.u2k.on img{filter:none}.u2k.lock{opacity:.45}
.u2k.main{border-color:#f5d061;box-shadow:inset 0 0 0 1px #000,0 0 10px rgba(245,208,97,0.6)}
.u2k i{position:absolute;left:3px;bottom:0;font:700 11px var(--font);color:#ffe68a;text-shadow:-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000}
.u2k .plus{position:absolute;right:1px;bottom:1px;width:16px;height:16px;padding:0;line-height:13px;font-size:13px;font-weight:800;border:1px solid #fca5a5;background:linear-gradient(180deg,#b91c1c,#7f1d1d);color:#fff;border-radius:2px;cursor:pointer;box-shadow:0 1px 3px #000}
.u2k .u2dt{position:absolute;right:0;top:0;border:0;background:none;font-size:11px;padding:0;cursor:pointer}
.u2foot{display:flex;align-items:center;gap:5px;margin-top:6px;border-top:1px solid #4e4c3c;padding-top:6px}
.u2pts{margin-left:8px}.u2pts b{color:#f55;font-size:14px}
.u2tip{margin:4px 0 0}.plusd{background:#c22;color:#fff;padding:0 3px}
/* Hanh trang */
.u2bag .invgrid{display:grid!important;grid-template-columns:repeat(6,36px)!important;gap:1px!important;justify-content:center;background:#4e4c3c;border:1px solid #4e4c3c;width:max-content;margin:0 auto}
.u2bag .it{width:36px!important;height:36px!important}.u2bag .it.empty{display:block}
.u2bh{display:flex;align-items:center;gap:6px;margin-bottom:4px;font-size:12px}
.u2money{display:grid;grid-template-columns:auto 1fr;gap:3px 6px;margin-top:6px;font-size:12px;align-items:center}
.u2money b{background:#0b0c0a;border:1px solid #4e4c3c;padding:1px 6px;color:var(--w2gd);text-align:right}
/* Lo ren */
.u2forge{display:grid;grid-template-columns:236px 1fr;gap:10px}
.u2circ{position:relative;width:236px;height:236px;background:radial-gradient(circle,#6b5420 0,#3a2c0c 45%,#120e05 72%);border:1px solid #5c5a45}
.u2circ svg{position:absolute;inset:0;width:100%;height:100%;filter:drop-shadow(0 0 3px #f5c84a)}
.u2rc{position:absolute;left:88px;top:88px;width:60px;height:60px;display:grid;place-items:center;text-align:center;font-size:10px}.u2rc img{width:30px;height:30px}.u2rc b{color:var(--w2gd)}
.u2ri{position:absolute;width:38px;height:38px}.u2ri .it{width:38px!important;height:38px!important}
.u2ftxt{background:#00000066;border:1px solid #4e4c3c;padding:4px 8px;font-size:12px}
/* Nhiem vu */
.u2quest{display:grid;grid-template-columns:150px 1fr;gap:6px;min-height:300px}
.u2tree{background:#0b0c0a;border:1px solid #4e4c3c;padding:4px;display:flex;flex-direction:column;align-items:stretch}
.u2tg{color:#e8e0c0;font-size:12px;margin-top:4px}
.u2tree button{text-align:left;background:none;border:0;color:#d0c8a0;padding:2px 2px 2px 16px;font-size:12px;cursor:pointer}
.u2tree button:hover{color:#fff}.u2tree button.on{background:#6b6440;color:#ffe;outline:1px solid #a59c78}
.u2qd{background:#0b0c0a88;border:1px solid #4e4c3c;padding:6px;overflow:auto}
.u2qb{justify-content:center}
#u20trk{position:fixed;right:46px;z-index:7;width:210px;background:#000a;border:1px solid #6d6a52;font-size:11.5px;line-height:15px;color:#e8e0c0}
#u20trk:not(.dtchip){pointer-events:none}
#u20trk:not(.dtchip) .u2trh,#u20trk:not(.dtchip)>div[data-q]{pointer-events:auto}
#u20trk .u2trh{text-align:center;background:linear-gradient(#3e3e32,#1d1d16);padding:2px;color:#fff;font-size:12px}
#u20trk>div[data-q],#u20trk>div:not(.u2trh){padding:3px 6px;cursor:pointer}#u20trk b{color:#ffd24a}
/* Tro thu */
.u2tt label{display:block;padding:3px 0 3px 4px;font-size:12.5px}
.u2tt .sellrow,.u20tt .sellrow,#modal .sellrow{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:6px 0 4px 4px;font-size:12.5px}
.u2tt .selllab,.u20tt .selllab,#modal .selllab{color:#d0c8a0}
.u2tt .sellchips,.u20tt .sellchips,#modal .sellchips{display:flex;flex-wrap:wrap;gap:4px;max-width:100%}
.u2tt .sellchip,.u20tt .sellchip,#modal .sellchip{flex:0 0 auto;min-width:28px;min-height:28px;padding:0 7px;font-size:13px;line-height:26px;border:1px solid #6d6a52;background:linear-gradient(#3a3a30,#1c1c16);color:#e8e0c0;border-radius:3px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.u2tt .sellchip.on,.u20tt .sellchip.on,#modal .sellchip.on{background:linear-gradient(#8a7434,#4a3c14);border-color:#e8c860;color:#ffe9a8}
body.u2m .sellchip,body.u2s .sellchip,#modal .sellchip{min-width:36px;min-height:36px;line-height:34px;font-size:14px}
@media (pointer:coarse){.sellchip{min-width:36px;min-height:36px;line-height:34px;font-size:14px}}
.u2tt .lootf{background:none!important;border:0!important;padding:0!important}
/* Hop thoai 2.0 + Ky Tran Cac */
body.u20 #modal{background:#0006}
body.u20 #modal .mbox{background:var(--w2bg)!important;border:1px solid var(--w2ln)!important;outline:1px solid #000;box-shadow:inset 0 0 0 1px var(--w2ln2),0 4px 22px #000!important;border-radius:4px!important;padding:0 12px 10px!important;color:var(--w2tx)}
body.u20 #modal #mBody>h3:first-child{margin:0 -12px 8px;height:30px;line-height:30px;text-align:center;background:linear-gradient(#55564a,#2a2b24 55%,#1d1e19);border-bottom:1px solid #8c876a;font-size:14px;color:var(--w2tx)}
body.u20 #modal #mBody>h3:first-child small{font-size:11px;color:#bdb59a}
body.u20 #modal.u2ktc .mbox,body.u2m #modal.u2ktc .mbox{width:min(820px,96vw)!important;max-width:min(820px,96vw)!important}
.u2shop{display:grid;grid-template-columns:108px 1fr;gap:10px;align-items:start}
.u2cat{background:#0b0c0a;border:1px solid #4e4c3c;display:flex;flex-direction:column;padding:4px;gap:2px}
.u2cat button{background:none;border:0;color:#e0d8b8;padding:6px;cursor:pointer;font-size:12.5px}.u2cat button.on{background:linear-gradient(#6a6a52,#38382a);color:var(--w2gd)}
.u2sh{font-size:12px;margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.u2sh img{height:14px;vertical-align:-2px;image-rendering:pixelated}
.u2cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.u2card{display:flex;flex-direction:column;min-height:148px;border:1px solid #786438;background:linear-gradient(180deg,#24221a,#100f0c);box-shadow:inset 0 0 0 1px #000, 0 2px 6px rgba(0,0,0,0.6);border-radius:4px;overflow:hidden}
.u2card.bad{opacity:.5}
.u2ct{text-align:center;font-size:12px;font-weight:700;background:linear-gradient(180deg,#3d3420,#1c180e);border-bottom:1px solid #786438;padding:4px 6px;color:#ffd875;text-shadow:0 1px 2px #000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.u2cb{display:flex;gap:8px;align-items:flex-start;padding:8px 8px 4px;font-size:12px;min-height:58px;flex:1}.u2cb>div{min-width:0;flex:1}.u2cb img{width:36px;height:36px;flex:none;image-rendering:pixelated;border:1px solid #5a4b2c;background:#050505;border-radius:3px}
.u2cf{display:flex;gap:3px;padding:0 6px 6px;margin-top:auto}
.u2buy{flex:1;height:26px;border:1px solid #ffd875;background:linear-gradient(180deg,#856a36,#4a3a18);color:#fff;font-weight:700;border-radius:3px;cursor:pointer;text-shadow:0 1px 2px #000;box-shadow:0 1px 3px rgba(0,0,0,0.6)}
.u2buy.x{flex:0 0 auto;padding:0 6px;font-weight:400;font-size:11px}.u2buy.on{background:linear-gradient(#5d684d,#2e3825)}.u2buy:disabled{opacity:.45;cursor:default}
.u2buf{margin-top:6px}
body.u20 #t-log .log{display:none}
body.u20 .tab::before,body.u20 #panel::before,body.u20 .mbox::before{display:none!important;content:none!important}
.u2bag .invgrid{grid-template-columns:repeat(6,33px)!important}.u2bag .it{width:33px!important;height:33px!important}
body.u20[data-u2t=inv] #panel{width:250px}
#t-forge .u2tabs button{padding:3px 8px!important}
#u2doll{opacity:.42;filter:grayscale(1) brightness(1.25) contrast(.9)}
.u2st{grid-template-columns:auto 1fr auto 1fr}
body.u20 #modal #mBody>h3:first-child{background:linear-gradient(#55564a,#2a2b24 55%,#1d1e19)!important;border:0!important;border-bottom:1px solid #8c876a!important;box-shadow:none!important;color:var(--w2tx)!important;text-shadow:0 1px 2px #000!important;display:block!important;padding:0 36px!important;margin:0 -12px 8px!important;letter-spacing:.5px}
body.u20 #modal #mBody>h3:first-child small{color:#bdb59a!important;text-shadow:none!important;margin-left:6px}
body.u20 .tab h3,body.u20 .mbox h3:not(:first-child){background:linear-gradient(90deg,#3a3a2c,transparent)!important;border:0!important;border-left:2px solid #b9974f!important;box-shadow:none!important;color:#e8d49a!important;text-shadow:none!important;padding:2px 6px!important;margin:8px 0 4px!important}
body.u20 .tab h3 small,body.u20 .mbox h3:not(:first-child) small{color:#bdb59a!important;text-shadow:none!important}
body.u20 .mbox::after{display:none!important}
.u2sh span,.u2sh b{display:inline!important}
.u2cb small{display:block;line-height:1.35;overflow:visible;-webkit-line-clamp:unset}
.u2s{background:#0b0c0a55!important}
/* PC: hang Xoay / Do sat / Auto / Khoa man gon, keo duoc; vi tri mac dinh sat thanh chieu (topCtlPlace) */
body.u20 #topCtl{top:auto!important;bottom:auto!important;left:auto!important;right:auto!important;transform:none!important;z-index:48!important;gap:4px;cursor:grab}
body.u20 #topCtl.dragging{cursor:grabbing;opacity:.92}
body.u20 #topCtl .chip{min-height:26px!important;height:26px;line-height:24px;padding:0 6px!important;font-size:10px!important}
body.u20 #topCtl #rotBtn{font-size:0!important}
body.u20 #topCtl #rotBtn::before{content:"Xoay";font-size:10px;margin-right:3px}
body.u20 #modeSw{position:fixed!important;top:auto!important;bottom:58px!important;left:50%!important;right:auto!important;transform:translateX(calc(-100% - 214px))!important;z-index:40!important;overflow:visible!important;pointer-events:auto!important}
body.u20 #rideBtn{display:none!important}
.u2tm{max-height:58vh;overflow:auto;padding-right:4px}
/* thanh ban do duoi ban do nho */
#u20zone{position:fixed;z-index:9}
#u20zb{width:100%;height:22px;background:linear-gradient(#4a4a3c,#1d1d16);border:1px solid #9a926c;color:#ffe9a8;font-size:12px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 6px}
#u20zb:hover{filter:brightness(1.2)}
#u20ops{position:fixed;right:8px;bottom:52px;z-index:9;display:flex;gap:4px;align-items:flex-end}
#u20tkGo{width:auto;height:24px;margin:0;padding:0 10px;background:linear-gradient(#6b4a18,#2a1808);border:1px solid #e0c060;color:#ffe9a8;font-size:12px;font-weight:700;cursor:pointer;letter-spacing:.3px;white-space:nowrap}
body.u20 #tkBar{top:38px;left:8px;right:auto;width:auto;max-width:none;background:transparent;border:0;box-shadow:none;padding:0;z-index:8}
body.u20 #tkTimer{top:36px}
body.u20 #tkScore{top:64px;left:8px}
#u20tkGo:hover{filter:brightness(1.2)}
#u20zl{position:absolute;right:0;top:24px;width:300px;max-height:62vh;overflow:auto;background:var(--w2bg);border:1px solid var(--w2ln);outline:1px solid #000;box-shadow:0 4px 18px #000;padding:6px;color:var(--w2tx)}
#u20pty{width:auto;height:24px;margin:0;padding:0 10px;background:linear-gradient(#3a4a28,#1a2410);border:1px solid #a0c060;color:#e8ffb0;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}
/* dien thoai cam doc (u2m) lan cam ngang (u2s): nut To doi tach khoi #u20ops (vung do bi canvas ban do nho de len, nuot moi cham). Dat goc duoi, keo duoc. */
body.u2m #u20pty,body.u2s #u20pty{position:fixed;z-index:46;bottom:64px;left:8px;top:auto;right:auto;height:34px;padding:0 14px;font-size:13px;touch-action:none}
#u20pty:hover,#u20pty.on{filter:brightness(1.2)}
#u20pl{position:absolute;right:0;bottom:28px;top:auto;width:280px;max-height:min(52vh,420px);overflow:auto;background:var(--w2bg);border:1px solid var(--w2ln);outline:1px solid #000;box-shadow:0 4px 18px #000;padding:6px;color:var(--w2tx);font-size:12px;z-index:12}
body.u2m #u20pl,body.u2s #u20pl{
  position:fixed!important;width:min(72vw,220px)!important;max-height:min(42vh,260px)!important;
  padding:5px 6px!important;font-size:11px!important;z-index:50!important
}
body.u2m #u20pl .ptydim,body.u2s #u20pl .ptydim{display:none}
body.u2m #u20pl .ptyh,body.u2s #u20pl .ptyh{margin:3px 0 1px;font-size:11px}
body.u2m #u20pl .ptyrow,body.u2s #u20pl .ptyrow{padding:2px 3px;margin:1px 0;gap:2px}
body.u2m #u20pl .ptyrow button,body.u2s #u20pl .ptyrow button{min-height:24px;font-size:10px;padding:2px 6px}
body.u2m #u20pl .ptyact,body.u2s #u20pl .ptyact{height:26px;margin-top:3px;font-size:11px}
body.u2m #u20pl .u2zh,body.u2s #u20pl .u2zh{font-size:12px;margin-bottom:2px}
body.u2m #u20pl .chk,body.u2s #u20pl .chk{font-size:11px}
#u20pl.hidden{display:none}
.ptyh{margin:6px 0 3px;color:#e0c060;font-weight:700}
.ptyrow{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px;margin:2px 0;padding:3px 4px;background:#0b0c0a;border:1px solid #3e3c30}
.ptyv{flex:1 0 100%;display:flex;gap:4px}
.ptyv button{flex:1;min-height:22px}
#chatRec,#u20rec,.cibv{width:auto!important;min-width:52px;padding:0 8px!important;font-size:11px!important;font-weight:700}
.ptywho{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.ptyhp{display:block;height:5px;background:#3a2010;border:1px solid #5a4030;width:100%;max-width:150px}
.ptyhp b{display:block;height:100%;background:linear-gradient(#6adf5a,#2e8a3a);width:0}
.ptyrow button{background:#2a3420;border:1px solid #8a9a60;color:#efe1bd;font-size:11px;padding:1px 5px;cursor:pointer}
.ptyrow button.on{border-color:#e0c060;background:linear-gradient(#5a4a20,#2a1c08);color:#ffe9a8}
.ptyact{width:100%;margin-top:4px;height:22px;background:linear-gradient(#4a4a3c,#1d1d16);border:1px solid #9a926c;color:#ffe9a8;cursor:pointer}
.ptyact.on{border-color:#e0c060;background:linear-gradient(#5a4a20,#2a1c08)}
.ptydim{margin-top:6px;color:#bdb59a;font-size:11px;line-height:1.35}
#skBuffs{pointer-events:auto}
#skBuffs .sti{position:relative;pointer-events:auto;cursor:help}
#skBuffs .sti:hover::after{content:attr(data-tip);position:absolute;left:0;bottom:calc(100% + 4px);z-index:50;min-width:160px;max-width:260px;padding:6px 8px;background:#1a140acc;color:#efe1bd;border:1px solid #8a6a32;font-size:11px;line-height:1.35;white-space:pre-wrap;pointer-events:none;text-shadow:0 1px 1px #000}
#u20zl.hidden{display:none}
.u2zh{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-bottom:4px}.u2zh b{color:var(--w2gd)}
.u2zs{font-size:11px;margin-bottom:4px;color:#bdb59a}
.nopk,#u20zl .nopk,.zrow .nopk{color:#7ec8a3;font-style:normal;font-weight:600}
#u20zl .zrow{width:100%;display:flex;justify-content:space-between;gap:6px;background:#0b0c0a;border:1px solid #3e3c30;color:#e0d8b8;padding:4px 6px;margin-bottom:2px;font-size:12px;cursor:pointer;text-align:left}
#u20zl .zrow.cur{border-color:#e0c060;background:#3a3420}#u20zl .zrow.lock{opacity:.4}#u20zl .zrow span{color:#bdb59a;white-space:nowrap}
#u20zl .zalt{display:flex;flex-wrap:wrap;gap:3px;margin:0 0 4px 8px}
#u20trk{right:6px!important}#u20side:empty{display:none!important}

/* ---- sinh tu luat may tinh cho dien thoai doc ---- */
body.u2m #modal .mx{width:24px!important;height:24px!important;border-radius:50%!important;border:2px solid #c9c6b6!important;background:radial-gradient(circle at 40% 35%,#6a6a66,#1d1d1b)!important;color:#fff!important;font-size:12px;line-height:18px;padding:0;top:3px!important;right:5px!important;box-shadow:0 0 3px #000}
body.u2m #panel .btn,body.u2m #modal .btn{background:linear-gradient(#5d684d,#2e3825)!important;border:1px solid #a6ad80!important;color:#f3edc8!important;border-radius:3px!important;box-shadow:inset 0 1px 0 #ffffff22,0 1px 2px #000;text-shadow:0 1px 1px #000}
body.u2m #panel .btn:hover:not(:disabled),body.u2m #modal .btn:hover:not(:disabled){filter:brightness(1.2)}
body.u2m #panel .btn.on,body.u2m #modal .btn.on{background:linear-gradient(#8a7434,#4a3c14)!important;border-color:#e8c860!important}
body.u2m #panel .btn.red,body.u2m #modal .btn.red{background:linear-gradient(#7a3a2e,#3e1a12)!important;border-color:#c48a70!important}
body.u2m .dtabs{display:flex;gap:2px;border-bottom:1px solid var(--w2ln);margin:0 0 6px;padding:0}
body.u2m .dtabs button{flex:0 0 auto;background:linear-gradient(#3b3d33,#202119)!important;border:1px solid #6d6b55!important;border-bottom:0!important;border-radius:4px 4px 0 0!important;color:#cfc8a8!important;padding:3px 12px!important;font-size:12px;cursor:pointer}
body.u2m .dtabs button.on{background:linear-gradient(#6a6a52,#38382a)!important;color:var(--w2gd)!important}
body.u2m #panel .it{background:var(--w2cell);border:1px solid #4e4c3c;border-radius:0;box-shadow:inset 0 0 6px #000}
body.u2m #panel .it.r1{border-color:#6aa8ff}
body.u2m #panel .it.r2{border-color:#ffd24a}
body.u2m #panel .it.r3{border-color:#c77bff}
body.u2m #modal .mbox{background:var(--w2bg)!important;border:1px solid var(--w2ln)!important;outline:1px solid #000;box-shadow:inset 0 0 0 1px var(--w2ln2),0 4px 22px #000!important;border-radius:4px!important;padding:0 12px 10px!important;color:var(--w2tx)}
body.u2m #modal #mBody>h3:first-child{margin:0 -12px 8px;height:30px;line-height:30px;text-align:center;background:linear-gradient(#55564a,#2a2b24 55%,#1d1e19);border-bottom:1px solid #8c876a;font-size:14px;color:var(--w2tx)}
body.u2m #modal #mBody>h3:first-child small{font-size:11px;color:#bdb59a}
body.u2m .tab::before,body.u2m .mbox::before{display:none!important;content:none!important}
body.u2m #modal #mBody>h3:first-child{background:linear-gradient(#55564a,#2a2b24 55%,#1d1e19)!important;border:0!important;border-bottom:1px solid #8c876a!important;box-shadow:none!important;color:var(--w2tx)!important;text-shadow:0 1px 2px #000!important;display:block!important;padding:0 36px!important;margin:0 -12px 8px!important;letter-spacing:.5px}
body.u2m #modal #mBody>h3:first-child small{color:#bdb59a!important;text-shadow:none!important;margin-left:6px}
body.u2m .tab h3,body.u2m .mbox h3:not(:first-child){background:linear-gradient(90deg,#3a3a2c,transparent)!important;border:0!important;border-left:2px solid #b9974f!important;box-shadow:none!important;color:#e8d49a!important;text-shadow:none!important;padding:2px 6px!important;margin:8px 0 4px!important}
body.u2m .tab h3 small,body.u2m .mbox h3:not(:first-child) small{color:#bdb59a!important;text-shadow:none!important}
/* ======================= DIEN THOAI CAM DOC (body.u2m): phong cach 2.0 trong bo cuc tren / duoi ======================= */
body.u2m #panel{background:var(--w2bg)!important;color:var(--w2tx)}
body.u2m .tab::before,body.u2m #panel::before{display:none!important;content:none!important}
body.u2m #tabs{background:linear-gradient(#4a4a3c,#1d1d16)!important;border-top:1px solid #9a926c!important}
body.u2m #tabs button::before{background-size:auto 100%!important;background-position:0 0!important;image-rendering:auto!important;width:30px!important;height:30px!important;margin-left:-15px!important}
body.u2m #tabs button.on::before{background-position:100% 0!important}
body.u2m #tabs button[data-t=log]::before{background-image:url(img/u2/map.png)!important}
body.u2m #tabs button[data-t=char]::before{background-image:url(img/u2/char.png)!important}
body.u2m #tabs button[data-t=skill]::before{background-image:url(img/u2/skill.png)!important}
body.u2m #tabs button[data-t=inv]::before{background-image:url(img/u2/inv.png)!important}
body.u2m #tabs button[data-t=forge]::before{background-image:url(img/u2/forge.png)!important}
body.u2m #tabs button[data-t=quest]::before{background-image:url(img/u2/quest.png)!important}
body.u2m #tabs button[data-t=more]::before{background-image:url(img/u2/more.png)!important}
body.u2m #tabs button.tride::before{background-image:url(img/u2/ride.png)!important}
body.u2m #tabs button.tride.on::before{background-position:100% 0!important}
body.u2m #tabs button.tride.off{opacity:.45}
body.u2m #tabs{grid-template-columns:repeat(8,1fr)!important}
body.u2m #tabs button{font-size:9.5px!important;letter-spacing:-.3px;white-space:nowrap;overflow:hidden;padding:33px 0 4px!important}
#tabs .tride{display:none}body.u2m #tabs .tride{display:block}
body.u2m #tabs button.on{color:var(--w2gd)!important}
/* noi dung the: xep doc cho man hinh hep */
@media (max-width:640px){
 .u2char,.u2forge{grid-template-columns:1fr}
 .u2dollw,.u2circ{margin:0 auto}
 .u2quest{grid-template-columns:1fr;min-height:0}
 .u2tree{flex-direction:row;flex-wrap:wrap;gap:2px}.u2tree .u2tg{width:100%;margin-top:2px}.u2tree button{padding:3px 8px;border:1px solid #3e3c30}
 .u2shop{grid-template-columns:1fr}.u2cat{flex-direction:row}.u2cat button{flex:1}
 .u2cards{grid-template-columns:repeat(2,1fr)}
 body.u2m #modal.u2ktc .mbox{width:auto!important;max-width:96vw!important}
 .u2tabs{flex-wrap:wrap}
}
/* ======================= DIEN THOAI CAM NGANG (body.u20.u2s): ban thu gon ======================= */
body.u2s #hud{left:4px!important;right:auto!important;width:min(52vw,460px)!important;padding:1px 6px!important}
body.u2s .u20rb{width:38px;height:38px;font-size:8.5px;line-height:9.5px}
body.u2s #u20gold{font-size:11px}
body.u2s #u20menu{padding:3px 5px}
body.u2s .u20mi{width:34px;height:34px;background-size:102px 34px}.u2s .u20mi:hover{background-position:-34px 0}.u2s .u20mi.on{background-position:-68px 0}
body.u2s #u20log{width:min(34vw,300px);bottom:2px}
body.u2s #u20lines{max-height:64px;font-size:10.5px;line-height:13px}
body.u2s #u20ct button{font-size:9px;height:15px;padding:0 3px}
body.u2s #modeSw{top:26px!important;bottom:auto!important;left:4px!important;right:auto!important;transform:none!important}
body.u2s #mswMenu{top:31px;bottom:auto}
body.u2s #topCtl{top:auto!important;bottom:auto!important;left:auto!important;right:auto!important;transform:none!important}
body.u2s #panel{top:2px!important;max-height:calc(100vh - 4px)!important;width:min(720px,96vw)!important}
body.u2s[data-u2t=inv] #panel{width:250px!important;right:4px!important}
body.u2s #u20wh{height:26px!important}
body.u2s #u20trk:not(.dtchip){width:170px;font-size:10.5px;line-height:13px}
body.u2s #u20boss{top:24px}
body.u2s #modal .mbox{max-height:96vh!important}
body.u2s .u2char{grid-template-columns:262px 1fr}
body:not(.u20) #u20wh{display:none!important}
body.u2s #u20ct{flex-wrap:nowrap;overflow:hidden}body.u2s .u2a span{text-align:left}
body.u2s .u2bag .invgrid{grid-template-columns:repeat(10,31px)!important}body.u2s .u2bag .it{width:31px!important;height:31px!important}body.u2s[data-u2t=inv] #panel{width:346px!important}
/* ======================= v165: CHO BAM DE (chat, nut nho, bi che) ======================= */
/* chat luon nam tren khung thong bao; dong thong bao khong chan cham */
body.u20 #chatBox{z-index:9!important}
body.u20 #u20lines{pointer-events:none}
body.u20 #panel{z-index:40!important}
body.u20 #panel{max-height:calc(100vh - 84px)}
@media (pointer:coarse){
  /* dien thoai cam ngang */
  body.u2s #chatBtn{width:40px!important;height:34px!important}
  body.u2s #u20ct{margin-left:44px}
  body.u2s #u20ct button{height:24px!important;font-size:10px!important;padding:0 5px!important}
  body.u2s #u20log{width:min(30vw,270px)}
  body.u2s #topCtl .chip,body.u2s #mswBtn{min-height:32px}
  body.u2s #u20zb{height:30px}
  body.u2s #u20zl .zrow{min-height:34px}
  body.u2s #panel{max-height:calc(100vh - 50px)!important}
  body.u2s #u20wh{height:34px!important}
  body.u2s #u20wh button,body.u2s #modal .mx{width:32px!important;height:32px!important;font-size:15px}
  body.u2s #panel .btn,body.u2s #modal .btn,body.u2s .u2tabs button,body.u2s .dtabs button{min-height:32px}
  body.u2s .u2a button{height:30px}
  body.u2s .u2tree button{min-height:30px}
  body.u2s .u20rb{width:44px;height:44px}
  /* dien thoai cam doc (giao dien thu nho 80%: so do css lon hon) */
  body.u2m #ktcBtn{min-height:36px}
  body.u2m #actBtn,body.u2m #giftBtn,body.u2m #compactBtn{width:40px!important;height:40px!important;line-height:38px!important}
  body.u2m .pbtn{width:36px!important;height:36px!important}
  body.u2m #chatBtn{width:44px!important;height:38px!important}
  body.u2m #topCtl .chip,body.u2m #mswBtn{min-height:34px}
  body.u2m .chip2{min-height:30px}
  body.u2m #u20zb{height:32px}
  body.u2m #u20zl .zrow{min-height:38px}
  body.u2m #u20zl{max-height:50vh}
  body.u2m #panel .btn,body.u2m #modal .btn{min-height:36px}
  body.u2m .u2tabs button,body.u2m .dtabs button{min-height:34px}
  body.u2m .u2tree button{min-height:36px}
  body.u2m .u2a{grid-template-columns:1fr 56px 40px 40px}.u2m .u2a button{height:34px}
  body.u2m .u2bag .invgrid{grid-template-columns:repeat(6,44px)!important}body.u2m .u2bag .it{width:44px!important;height:44px!important}
  body.u2m .u2k{width:60px;height:60px}.u2m .u2kc{min-width:60px}.u2m .u2k .plus{width:22px;height:22px;font-size:16px;line-height:18px}
  body.u2m .u2cat button{min-height:38px}
  body.u2m .u2buy{height:36px}
  body.u2m #modal .mx{width:40px!important;height:40px!important}
  body.u2m #u20ct button{min-height:30px}
}
body.u20 #u20log{pointer-events:none}body.u20 #u20ct button{pointer-events:auto}
@media (pointer:coarse){
  body.u2s #u20ct{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;pointer-events:auto}
  body.u2s #u20ct button{font-size:9.5px!important;padding:0 4px!important;flex:none}
  body.u2s #u20log{width:min(31vw,280px)}
  /* hanh trang cam ngang: luoi ben trai, ngan luong + nut ben phai */
  body.u2s[data-u2t=inv] #panel{width:min(560px,70vw)!important}
  body.u2s .u2bag{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"h h" "g m" "g b" "g b2";gap:4px 8px;align-items:start}
  body.u2s .u2bh{grid-area:h}body.u2s .u2bag .invgrid{grid-area:g;margin:0}body.u2s .u2money{grid-area:m;margin:0;grid-template-columns:1fr}
  body.u2s #u2invB{grid-area:b;margin:0}body.u2s #u2invB2{grid-area:b2;margin:0}
  body.u2s #u2invB .btn,body.u2s #u2invB2 .btn{flex:1 1 45%}
}
@media (pointer:coarse){body.u2s #u20log{width:min(27vw,240px)}}
body.u20:has(#chatBox.open) #u20log{display:none}
/* nut an / hien khung thong bao (canh nut chat) */
#u20lt{width:34px!important;height:30px!important;padding:0!important;font-size:15px!important;background:linear-gradient(#1d4a38,#0a1d15)!important;border:1px solid #000!important;box-shadow:inset 0 0 0 1px #3f7a62;margin-right:2px;align-self:flex-end}
#u20lt.on{box-shadow:inset 0 0 0 1px #e0c060}
body.u20 #u20ct{align-items:flex-end}
body.u20logoff #u20lines,body.u20logoff #u20ct button[data-lt]{display:none!important}
#u20trk .u2trh{cursor:pointer;position:relative}#u20trk .u2trh b{position:absolute;right:6px}
@media (pointer:coarse){body.u2s #u20lt{width:40px!important;height:34px!important}#u20trk .u2trh{padding:6px 2px}}
#u20menu .u20mi.off{filter:grayscale(.8) brightness(.7)}
/* thu tu lop: popup mo sau nam tren; thong bao nhanh luon tren cung */
body.u20 #chatBox{position:fixed!important}
body.u20 #modal{position:fixed!important;z-index:60}
#toast{z-index:9999!important}
body.u20 #toast{position:fixed!important}
/* cot phai: Nhiem vu Theo Dau + Hop thu; Hang canh Luc chien; Cho canh Ky Tran Cac */
#u20rc{position:fixed;right:6px;z-index:12!important;width:210px;display:flex;flex-direction:column;align-items:stretch;gap:4px;pointer-events:auto!important}
#u20rc #u20trk{position:static!important;width:auto!important;right:auto!important;top:auto!important}
#u20mail{align-self:flex-end;height:24px;padding:0 10px;background:linear-gradient(#4a4a3c,#1d1d16);border:1px solid #9a926c;color:#ffe9a8;font-size:12px;cursor:pointer;border-radius:3px;position:relative}
#u20mail:hover{filter:brightness(1.2)}#u20mail.on{box-shadow:0 0 6px #e0c060;color:#fff}
#u20mailN{position:absolute;top:-7px;right:-6px;min-width:16px;padding:0 3px;background:#c0392b;color:#fff;border-radius:8px;font-size:10px;line-height:16px;font-weight:400}#u20mailN:empty{display:none}
#u20rank{display:none;flex:none;align-items:center;height:18px;padding:0 6px;margin-left:2px;background:linear-gradient(#6b5320,#3a2c0e);border:1px solid #e0c060;color:#ffe9a8;font-size:11px;cursor:pointer;border-radius:3px;white-space:nowrap;pointer-events:auto!important;z-index:6}
body.u20 #u20rank{display:inline-flex!important}
body.u20 #u20rank:hover{filter:brightness(1.2)}
body.u2s #u20rc{width:auto!important;max-width:40px;align-items:flex-end!important}
@media (pointer:coarse){body.u2s #u20mail{height:32px}body.u2s #u20rank{height:24px}}
#u20mail{width:32px!important;height:32px!important;padding:0!important;border:0!important;border-radius:50%!important;background:url(img/u2/mail.png) 0 0/64px 32px no-repeat!important;box-shadow:0 1px 3px #000}
#u20mail.on{background-position:-32px 0!important;box-shadow:0 0 8px #e0c060}
#u20mail:hover{filter:brightness(1.25)}
@media (pointer:coarse){body.u2s #u20mail{width:36px!important;height:36px!important;background-size:72px 36px!important}body.u2s #u20mail.on{background-position:-36px 0!important}}
#u20gold{display:none!important}
#u20rank{pointer-events:auto!important}
body.u20 #tkBar{top:34px;left:8px;width:min(560px,48vw);right:auto}
body.u20 #tkScore{top:76px;right:230px;width:min(320px,30vw);max-height:min(58vh,460px)}

/* v320 nut Ma Truong (duoi Hop thu) */
#u20stb{align-self:flex-end;position:relative;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:url(img/u2/stable.png) 0 0/64px 32px no-repeat;box-shadow:0 1px 3px #000;cursor:pointer}
#u20stb.on{background-position:-32px 0;box-shadow:0 0 8px #e0c060}
#u20stb:hover{filter:brightness(1.25)}
#u20stbN{position:absolute;top:-7px;right:-6px;min-width:16px;padding:0 3px;background:#c0392b;color:#fff;border-radius:8px;font-size:10px;line-height:16px;font-weight:400}#u20stbN:empty{display:none}
@media (pointer:coarse){body.u2s #u20stb{width:36px;height:36px;background-size:72px 36px}body.u2s #u20stb.on{background-position:-36px 0}}

/* v345: nut chon ban do khong de len cua so / hop thoai (dien thoai) */
body:has(#modal:not(.hidden)) #u20zone,body:has(#modal:not(.hidden)) #u20ops{display:none!important}
body.u2m.u20win #u20zone,body.u2m.u20win #u20ops{display:none!important}
/* v382: vat pham dung duoc trong Hanh trang */
.u2bagit{display:flex;flex-wrap:wrap;gap:4px;margin:4px 0}
.u2bagit .bi{display:flex;align-items:center;gap:4px;padding:2px 4px;border:1px solid #4a473e;background:#0c0b08;font-size:11px}
.u2bagit .bi img{width:20px;height:20px;image-rendering:pixelated}
.u2bagit .bi b{color:#ffd98a;font-weight:normal}

/* Đồ sát: chip đỏ khi đang bật */
#pkBtn.on{
  background:linear-gradient(180deg,#6a2424 0%,#2c1010 100%)!important;
  border-color:#e24a3a!important;
  color:#ff8a8a!important;
  box-shadow:0 0 8px #e24a3a66!important;
}
body.u20 #modal.lbtOn .mbox{width:min(430px,94vw)!important;max-width:min(430px,94vw)!important}
body.u20 .lbtCard{background:linear-gradient(180deg,#24221a,#100f0c)!important;border:1px solid #786438!important;color:var(--w2tx)!important}
body.u20 .lbtCard b{color:#ffd875!important}
body.u20 .lbtCard small{color:#bdb59a!important;display:block!important;white-space:normal!important;word-break:normal!important}

/* khung chat goc trai: co dinh 150px tin, co vien, cuon duoc — khong phu map */
body.u20 #u20log{left:2px;bottom:2px;width:min(32vw,380px);display:flex;flex-direction:column;pointer-events:auto;padding:0 0 3px;
  background:linear-gradient(180deg,rgba(22,22,18,.82),rgba(10,10,8,.88));border:1px solid #8a7c52;outline:1px solid #000;border-radius:5px;
  box-shadow:inset 0 0 0 1px #2e2c22,0 4px 12px #0009}
body.u20 #u20log::before{content:"";display:block;height:2px;margin:0 8px;background:linear-gradient(90deg,transparent,#c9a85a 30%,#f0d58a 50%,#c9a85a 70%,transparent);opacity:.75}
body.u20 #u20lines{flex:none;height:150px!important;max-height:150px!important;min-height:150px!important;overflow-x:hidden;overflow-y:scroll!important;pointer-events:auto!important;margin:3px 4px;padding:3px 8px 3px 6px;
  background:rgba(0,0,0,.35);border:1px solid #3a382c;border-radius:3px;text-shadow:0 1px 1px #000;overscroll-behavior:contain;
  scrollbar-width:auto;scrollbar-color:#c9a85a #1a1810}
body.u20 #u20lines::-webkit-scrollbar{width:8px;display:block}
body.u20 #u20lines::-webkit-scrollbar-track{background:#1a1810;border-radius:4px}
body.u20 #u20lines::-webkit-scrollbar-thumb{background:linear-gradient(#c9a85a,#7a6430);border:1px solid #000;border-radius:4px}
body.u20 #u20lines div,#u20lines .cl{white-space:normal!important;overflow:visible!important;text-overflow:clip;word-break:break-word;line-height:1.4;padding:1px 0;border-left:0}
body.u20 #u20lines div:hover{background:#ffffff08}
body.u20.u20logbig #u20log{width:min(36vw,440px)}
body.u20.u20logbig #u20lines{height:240px!important;max-height:240px!important;min-height:240px!important}
body.u20 #u20ct{margin:0 4px 0 36px;gap:2px;flex-wrap:wrap;align-items:center;pointer-events:auto}
body.u20 #u20ct button[data-lt],#u20lx{height:18px!important;padding:0 6px!important;font-size:10px!important;border-radius:2px!important;
  background:linear-gradient(#2f4a3a,#132219)!important;border:1px solid #6f9c8b!important;color:#ffe9b0!important;cursor:pointer}
body.u20 #u20ct button[data-lt]:hover,#u20lx:hover{filter:brightness(1.25)}
body.u20 #u20ct button[data-lt].on{background:linear-gradient(#6b5320,#3a2c0e)!important;border-color:#e0c060!important;color:#ffe9a8!important}
#u20lx{margin-left:auto;padding:0 6px!important}
body.u20 #u20in{padding:2px 4px 3px;pointer-events:auto}
body.u20logoff #u20log{background:none;border-color:transparent;outline:0;box-shadow:none}
body.u20logoff #u20log::before,body.u20logoff #u20lx{display:none!important}
body.u2s #u20lines{height:96px!important;max-height:96px!important;min-height:96px!important}
body.u2s.u20logbig #u20lines{height:160px!important;max-height:160px!important;min-height:160px!important}
.hkann{color:#ffe08a}
.hkann a,.hkann [data-hkgo]{color:#7dffb0;text-decoration:underline;cursor:pointer;pointer-events:auto}
.hkann a:hover,.hkann [data-hkgo]:hover{color:#fff}

/* v470: to doi sat mep trai, can giua theo chieu doc */
#ptyHud{position:fixed;left:4px;top:50%;transform:translateY(-50%);z-index:8;display:flex;flex-direction:column;gap:3px;width:150px;pointer-events:auto}
#ptyHud.hidden{display:none}
body #ptyHud .ph{cursor:move;user-select:none;touch-action:none}
#ptyHud .phr{display:flex;align-items:center;gap:4px}
#ptyHud .phb{width:16px;height:16px;padding:0;margin:0;border:1px solid #9a926c;border-radius:3px;background:#2a2a20;color:#ffe9a8;font-size:10px;line-height:14px;cursor:pointer}
#ptyHud .phb::before{content:"▾"}
#ptyHud.min .phb::before{content:"▸"}
#ptyHud.min .pm{display:none}
#ptyHud.min .ph{border-radius:4px}
#ptyHud.drag{opacity:.9}
#ptyHud .ph{display:flex;align-items:center;justify-content:space-between;height:20px;padding:0 6px;background:linear-gradient(#4a4a3c,#1d1d16);border:1px solid #9a926c;border-radius:4px 4px 0 0;color:#ffe9a8;font-size:11px;font-weight:700;cursor:pointer}
#ptyHud .pm{position:relative;padding:3px 6px 4px;background:linear-gradient(180deg,rgba(28,29,23,.9),rgba(10,11,9,.92));border:1px solid #6d6a52;outline:1px solid #000;border-radius:3px;cursor:pointer}
#ptyHud .pm:hover{border-color:#e0c060}
#ptyHud .pm.me{border-color:#a0c060}
#ptyHud .pm.far{opacity:.6}
#ptyHud .pn{display:flex;justify-content:space-between;gap:4px;font-size:11px;color:#efe1bd;white-space:nowrap;overflow:hidden}
#ptyHud .pn b{overflow:hidden;text-overflow:ellipsis;font-weight:600}
#ptyHud .pn small{color:#bdb59a;flex:none}
#ptyHud .pb{display:block;height:5px;margin-top:2px;background:#3a2010;border:1px solid #000}
#ptyHud .pb i{display:block;height:100%;width:0;background:linear-gradient(#ff7a6a,#b0281c)}
#ptyHud .pl{position:absolute;left:-3px;top:-5px;color:#ffd24a;font-size:11px;text-shadow:0 0 2px #000}
body.u20 #u20pl{position:fixed!important;left:158px;right:auto!important;top:96px!important;bottom:auto!important;transform:none;max-height:min(46vh,400px)}
#u20pl .u2zh{cursor:move;user-select:none;touch-action:none}
#u20pl .ptyhr{display:flex;align-items:center;gap:6px}
#u20pl .ptyx{width:20px;height:20px;padding:0;border:1px solid var(--w2ln);border-radius:3px;background:#2a2a20;color:#ffe9a8;font-size:12px;line-height:18px;cursor:pointer}
#u20pl.drag{opacity:.92;box-shadow:0 6px 26px #000}
body.u20:not(:has(#ptyHud:not(.hidden))) #u20pl{left:4px}
body.u2s #ptyHud{width:124px}
body.u2s #u20pl{left:132px}
#chatBox.open #chatLines{min-height:0;overflow-y:auto!important;overscroll-behavior:contain;pointer-events:auto;scrollbar-width:thin;scrollbar-color:#a0844a #1a1712}
#chatBox.open #chatLines>*{flex-shrink:0}
#chatBox.open #chatLines::-webkit-scrollbar{width:6px}
#chatBox.open #chatLines::-webkit-scrollbar-thumb{background:#a0844a;border-radius:3px}
#chatBox.open #chatLines::-webkit-scrollbar-track{background:#1a1712}
#chatOn,#onHud{display:inline-flex;align-items:center;gap:5px;margin-left:auto;white-space:nowrap}
#chatOn .onl,#onHud .onl{display:inline-flex;align-items:center;gap:4px;padding:1px 7px;border:1px solid #3d7a3a;border-radius:9px;background:rgba(20,48,20,.92);color:#bff0b0;font-size:11px;line-height:15px}
#chatOn .onl i,#onHud .onl i{width:7px;height:7px;border-radius:50%;background:#4ee04a;box-shadow:0 0 5px #4ee04a;animation:onlP 1.6s ease-in-out infinite}
#chatOn .onl b,#onHud .onl b{color:#fff;font-weight:700;font-size:12px}
#chatOn .onh,#onHud .onh{padding:1px 6px;border:1px solid #6a5a32;border-radius:9px;background:rgba(40,32,16,.92);color:#e8d69a;font-size:10.5px;line-height:15px}
@keyframes onlP{50%{opacity:.45}}
body.ngate-on #u20log,body:has(#csel) #u20log,body.u20:has(#chatBox.open) #u20log{display:none!important}
#u20rc{z-index:8!important}
#chatBox:not(.open) #chatLines,#chatBox:not(.open) #chatHead,#chatBox:not(.open) #chatInfo,#chatBox:not(.open) #chatIn{display:none!important}
#chatBox.open{top:auto!important;bottom:48px!important;width:min(78vw,360px)!important;height:min(36vh,266px)!important;max-height:calc(100vh - 130px)!important;display:flex;flex-direction:column;overflow:hidden;background:rgba(16,14,11,.9)!important;border:1.5px solid #856f3e!important;box-shadow:0 0 0 1px #000,0 4px 14px rgba(0,0,0,.75)!important;border-radius:3px}
body.u20 #chatBox.open{width:min(32vw,380px)!important;height:min(38vh,278px)!important;bottom:48px!important;left:4px!important}
#chatBox.open #chatHead{flex:none;display:flex;align-items:center;gap:3px;padding:2px 3px 2px 4px;pointer-events:auto!important;position:relative;z-index:6;background:url(ui/jx1/flor.png) center/auto 100% repeat-x;border-bottom:1px solid #5a4a2c}
#chatBox.open #chatTabs{flex:1;min-width:0;display:flex;flex-wrap:nowrap!important;gap:1px;overflow:visible;pointer-events:auto!important;align-items:center;touch-action:manipulation}
#chatBox.open #chatTabs::-webkit-scrollbar{display:none}
#chatBox.open #chatTabs button{flex:1 1 0;min-width:28px;min-height:28px!important;padding:3px 1px!important;font-size:9px!important;line-height:1.05;border-radius:2px;white-space:nowrap;pointer-events:auto!important;position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;background:transparent;border:1px solid transparent;color:#cfc6a8;touch-action:manipulation;cursor:pointer;-webkit-tap-highlight-color:transparent}
#chatBox.open #chatTabs button .cti{display:block;width:16px;height:16px;background:center/contain no-repeat;image-rendering:pixelated;filter:drop-shadow(0 1px 1px #000);pointer-events:none}
#chatBox.open #chatTabs button span{max-width:100%;overflow:hidden;text-overflow:ellipsis;font-size:9px;font-weight:700;letter-spacing:-.2px;pointer-events:none}
#chatBox.open #chatTabs button.on{background:linear-gradient(#614e24,#2c220e);color:#ffe9b0;border-color:#e0c060;box-shadow:inset 0 0 0 1px #000,0 0 6px #c4a45a88}
#chatBox.open #chatTabs button[data-ct="sys"]{margin-left:0}
#chatBox.open #chatHead #chatOn{display:none}
#chatBox.open #chatInfo{display:flex!important;flex:none;align-items:center;gap:6px;min-height:18px;padding:1px 6px;background:#0e0d0ae8;border-bottom:1px solid #3a3222;pointer-events:none}
#chatBox.open #chatInfo #chatOn{display:inline-flex!important;margin:0;flex:1;min-width:0;transform:none}
#chatBox.open #chatLines{flex:1 1 0;min-height:0}
#chatBox.open #chatIn{flex:none;position:relative}
#chatBox.open.clog #chatIn{display:none!important}
#chatLines .cl,#u20lines .cl{color:#f4eedc;line-height:1.45;padding:1px 2px}
#chatLines .cl i,#u20lines .cl i{font-style:normal;color:#9a9480;font-size:10px;margin-right:6px}
#chatLines .cl b,#u20lines .cl b{color:#ffd76a;font-weight:700;margin-right:4px}
#chatLines .cl .cf,#u20lines .cl .cf{display:inline-block;margin:0 6px 0 2px;padding:0 5px;border:1px solid #4a5a4a;border-radius:8px;background:#16201a;color:#9fe0c0;font-size:9.5px;line-height:13px;vertical-align:1px;font-weight:400}
#chatLines .cl .cch,#u20lines .cl .cch{display:inline-block;margin:0 5px 0 0;padding:0 4px;border-radius:3px;background:#5a4a14;color:#ffe9a0;font-size:9.5px;line-height:13px;vertical-align:1px}
#chatLines .cl .cto,#u20lines .cl .cto{color:#e8a0ff;margin-right:4px;font-size:10.5px}
#chatLines .cl .cm,#u20lines .cl .cm{color:inherit}
#chatLines .cl .cm::before,#u20lines .cl .cm::before{content:": ";color:#8a8470}
#chatLines .cl.me b,#u20lines .cl.me b{color:#7fe0ff}
#chatLines .cl.near,#u20lines .cl.near{color:#fff1b0}
#chatLines .cl.cpm,#u20lines .cl.cpm{color:#f6c8ff}
#chatLines .cl.cpm b,#u20lines .cl.cpm b{color:#e8a0ff}
#chatLines .cl.sys,#u20lines .cl.sys{color:#b9b3a3}
#chatLines .cl.lg,#u20lines .cl.lg{font-style:normal;color:#dfe7f1;padding-left:6px;border-left:2px solid #6fa8dc}
#chatLines .cl.lg-fight,#u20lines .cl.lg-fight{border-left-color:#e06666}
#chatLines .cl.lg-loot,#u20lines .cl.lg-loot{border-left-color:#93c47d}
#chatLines .cl.lg-quest,#u20lines .cl.lg-quest{border-left-color:#c9a0e0}
#chatBox.open #chatLines .cl:hover{background:#ffffff08}
#chatBox.open #chatLines a,#chatBox.open #chatLines [data-hkgo]{pointer-events:auto;cursor:pointer}
#chatBox .cinrow{display:flex;align-items:center;gap:3px}
#chatBox .cib{flex:none;width:28px;height:26px;padding:0;border:1px solid #5a4b2c;border-radius:4px;background:linear-gradient(#2e2719,#15120b);font-size:15px;line-height:1;cursor:pointer}
#chatBox .cib:hover{border-color:#c4a45a}
#chatLines .cxy,#u20lines .cxy{color:#7dffb0;font-weight:700;text-decoration:underline;cursor:pointer}
#chatLines .cl.cpt b,#u20lines .cl.cpt b{color:#8fd6ff}
#chatLines .cl.ctg b,#u20lines .cl.ctg b{color:#9fe8a0}
#chatBox.ctong #chatLines .cl:not(.ctg):not(.sys){display:none!important}
#chatBox:not(.ctong) #chatLines .cl.ctg{display:none!important}
#chatBox.cpty #chatLines .cl:not(.cpt):not(.sys){display:none!important}
#chatBox.near #chatLines .cl:not(.near):not(.sys){display:none!important}
#chatBox:not(.near):not(.cpty) #chatLines .cl.near,#chatBox:not(.cpty) #chatLines .cl.cpt{display:none!important}
#chatColB i{display:block;width:14px;height:14px;margin:auto;border-radius:50%;background:var(--cc,#f4eedc);box-shadow:0 0 0 2px #000,0 0 6px var(--cc,#f4eedc)}
#chatColP{position:absolute;left:6px;right:6px;bottom:100%;margin-bottom:2px;display:flex;flex-wrap:wrap;gap:6px;padding:8px;background:#15130e;border:1px solid #8a7240;border-radius:5px;box-shadow:0 -4px 14px #000a;z-index:3}
#chatColP[hidden],#chatEmo[hidden]{display:none!important}
#chatColP button{width:24px;height:24px;border-radius:50%;border:2px solid #000;background:var(--cc);cursor:pointer;box-shadow:0 0 0 1px #5a4b2c}
#chatColP button.on{box-shadow:0 0 0 2px #fff,0 0 8px var(--cc)}
#chatBox #chatEmo,#u20in #u20emo{position:absolute;left:4px;right:4px;bottom:100%;margin-bottom:2px;display:flex;flex-direction:column;flex-wrap:nowrap;height:200px;max-height:200px;padding:0;background:#15130e;border:1px solid #8a7240;border-radius:5px;box-shadow:0 -4px 14px #000a;z-index:3;overflow:hidden}
#chatEmo .cemt,#u20emo .cemt{flex:none;width:auto;display:flex;gap:2px;padding:4px;border-bottom:1px solid #3a3222;background:#0e0d0a}
#chatEmo .cemt button,#u20emo .cemt button{flex:1;height:24px;border:1px solid #3a3222;border-radius:3px;background:#1d1a12;font-size:14px;cursor:pointer}
#chatEmo .cemt button.on,#u20emo .cemt button.on{border-color:#c4a45a;background:#3a2f18}
#chatEmo .cemg,#u20emo .cemg{flex:1;min-height:0;width:auto;align-content:start;display:grid;grid-template-columns:repeat(auto-fill,minmax(30px,1fr));gap:2px;padding:5px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#a0844a #1a1712}
#chatEmo .cemo,#u20emo .cemo{height:30px;border:0;border-radius:4px;background:none;font-size:19px;cursor:pointer;line-height:1}
#chatEmo .cemo:hover,#u20emo .cemo:hover{background:#3a2f18;transform:scale(1.15)}
#chatBox.open #chatSub{flex:none;align-items:center;gap:7px;padding:5px 8px;background:linear-gradient(90deg,#2a1a33,#15110c);border-bottom:1px solid #5a3a6a}
#chatBack{background:#1d1a12;border:1px solid #5a4b2c;border-radius:3px;color:#e8d69a;font:inherit;font-size:10.5px;padding:2px 7px;cursor:pointer}
#chatSub #chatPeer{color:#f0b8ff;font-size:12.5px}
.cpav{flex:none;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#8a5aa8,#3a1f4a);border:1px solid #c49ad8;color:#fff;font-weight:700;font-size:13px;text-shadow:0 1px 2px #000}
#chatSub .cpav{width:22px;height:22px;font-size:11px}
#chatBox.open.cpmv:not(.pmd) #chatPmList{flex:1 1 0;min-height:0;overflow-y:auto;padding:4px;gap:3px;scrollbar-width:thin;scrollbar-color:#a0844a #1a1712}
.cpmr{display:flex!important;align-items:center;gap:8px;width:100%;box-sizing:border-box;text-align:left;background:#17140e!important;border:1px solid #2e2819!important;border-radius:5px;padding:6px 8px!important;cursor:pointer;color:#f2ecd0}
.cpmr:hover{background:#231d13!important;border-color:#8a7240!important}
.cpmr.new{background:#22152a!important;border-color:#7a4a9a!important}
.cpmr .cpav{flex:none}
.cpmr .cpmb{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.cpmr .cpmt,.cpmr .cpml{flex:none}
.cpmr .cpmt .cf{display:inline-block;flex:none}
.cpmt{display:flex;align-items:center;gap:5px;min-width:0}
.cpmt b{color:#f0c8ff!important;font-size:12px;margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cpmt .cf{padding:0 5px;border:1px solid #4a5a4a;border-radius:8px;background:#16201a;color:#9fe0c0;font-size:9.5px;line-height:13px}
.cpmt i{margin-left:auto;font-style:normal;color:#8a8470;font-size:10px;flex:none}
.cpml{display:flex;align-items:center;gap:6px;color:#a9a39a;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cpml em{margin-left:auto;flex:none;min-width:16px;padding:0 5px;border-radius:8px;background:#9b3dc7;color:#fff;font-style:normal;font-weight:700;font-size:10px;line-height:16px;text-align:center}
.cpme{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:100%;min-height:120px;color:#8a8470;text-align:center;font-size:22px}
.cpme b{color:#e8d69a;font-size:12.5px}
.cpme small{font-size:11px;max-width:260px}
#u20zone{display:flex;gap:2px}
#u20zb{flex:1;min-width:0;width:auto}
#u20xyb{flex:none;width:26px;height:22px;padding:0;background:linear-gradient(#4a4a3c,#1d1d16);border:1px solid #9a926c;color:#ffe9a8;font-size:13px;cursor:pointer}
#u20xyb:hover{filter:brightness(1.25)}
body.u2s #u20xyb{height:30px;width:30px}
body.u2m #u20xyb{height:32px;width:32px}

/* tracker always visible on desktop overlay */
body.u20 #u20rc,body.u20 #u20trk{display:flex!important;visibility:visible!important;opacity:1!important;z-index:18!important}
body.u20 #u20trk{background:#000c;border:1px solid #8c7440;min-height:36px}
body.u20.u20win #u20rc{visibility:visible!important;pointer-events:auto!important}
/* Dien thoai doc: hang Xuong ngua / Xoay / PK / AUTO nam tren; HUD (Cap / Uy thac / HP) ha xuong de khong che nut */
body.u2m #topCtl{
  top:2px!important;left:4px!important;right:auto!important;z-index:48!important;
  flex-wrap:wrap;max-width:calc(100% - 8px);gap:4px;align-items:center
}
body.u2m #hud{
  top:40px!important;
  grid-template-columns:auto auto 1fr 1fr 1fr auto!important
}
body.u2m #hud #uyTime{order:0}
body.u2m #skBuffs{top:74px!important}
body.u2m #pkNear{top:110px}
/* Dien thoai doc (body.u2m): MAC DINH dong bang thong tin duoi man hinh (chiem nua man hinh); bam tab de mo (body.u2mo), bam lai tab dang mo de dong */
body.u2m:not(.u2mo) #panel{display:none!important}
body.u2m:not(.u2mo) #battle{flex:1 1 auto}
/* Nut "Che do" keo duoc (js/mode.js modeSwDrag): khong cuon trang khi keo; o nua tren man hinh thi menu mo xuong duoi */
body.u2m #modeSw #mswBtn{touch-action:none}
body.u2m #modeSw.msw-dn #mswMenu{bottom:auto;top:31px}

/* v588: bang Nhan vat thiet ke lai */
.c2 .u2info{display:flex;flex-direction:column;gap:0;min-width:0}
.c2hd{border:1px solid #6b5a32;background:linear-gradient(#2a2416,#14110a);padding:6px 8px;margin-bottom:4px}
.c2id{display:flex;align-items:center;gap:6px;white-space:nowrap;overflow:hidden}
.c2id>b{font-size:14px;overflow:hidden;text-overflow:ellipsis}
.c2tag{font-size:11px;padding:0 6px;border:1px solid var(--ec);color:var(--ec);border-radius:8px;line-height:16px}
.c2lv{margin-left:auto;color:#b8b29a;font-size:12px}.c2lv b{color:#ffe08a;font-size:14px}
.c2cs{font-size:11px;padding:0 5px;background:#5a2a10;border:1px solid #c07a3a;color:#ffc070;border-radius:3px;line-height:16px}
.c2xp{position:relative;height:16px;margin-top:6px;background:#0c0a06;border:1px solid #4e4c3c;border-radius:2px;overflow:hidden}
.c2xp i{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(#8fd06a,#4a8a2e)}
.c2xp span{position:relative;display:block;text-align:center;font-size:11px;line-height:14px;color:#fff;text-shadow:0 0 2px #000,0 0 2px #000}
.c2cb{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-bottom:2px}
.c2cb>div{border:1px solid #4e4c3c;background:#00000055;padding:3px 7px;display:flex;flex-direction:column;min-width:0}
.c2cb span{font-size:11px;color:#b8b29a}.c2cb b{color:#ffd24a;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.c2main{grid-column:1/-1;flex-direction:row!important;align-items:baseline;gap:8px}
.c2t{font-size:11px;color:#c9a75a;text-transform:uppercase;letter-spacing:.5px;margin-bottom:2px}
.c2st{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.c2kv{display:grid;grid-template-columns:auto 1fr;gap:2px 6px;font-size:12px}.c2kv span{color:#b8b29a;white-space:nowrap}.c2kv b{text-align:right;color:#f0e6c8;font-weight:600;white-space:nowrap}
.c2kv b small{font-weight:400}
.c2res{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}
.c2r{border:1px solid color-mix(in srgb,var(--ec) 45%,transparent);background:color-mix(in srgb,var(--ec) 10%,#000);text-align:center;padding:2px 0;border-radius:2px}
.c2r i{display:block;font-style:normal;font-size:10px;color:var(--ec)}.c2r b{font-size:13px;color:#fff}
.c2misc{display:flex;justify-content:space-around;font-size:12px;color:#b8b29a}.c2misc b{color:#ffd24a;margin-left:4px}
.c2sk{margin-top:6px;border:1px solid #4e4c3c;background:#00000055;padding:4px 6px;display:flex;flex-wrap:wrap;gap:3px}
.c2sk .c2t{width:100%}
.c2sk i{font-style:normal;font-size:11px;color:#9fe08a;background:#1a2a14;border:1px solid #3a5a2a;border-radius:3px;padding:0 4px;white-space:nowrap}
.c2sk i.all{color:#ffd24a;border-color:#6b5a32;background:#2a2410}
/* v589: bang Nhan vat khong con keo ngang - rong hon + cot co the co lai, so dai tu thu nho */
body.u20[data-u2t=char] #panel{width:min(690px,96vw)}
#t-char{overflow-x:hidden}
.c2.u2char{grid-template-columns:262px minmax(0,1fr)}
.c2st{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.c2kv{grid-template-columns:auto minmax(0,1fr)}.c2kv b{overflow:hidden;text-overflow:ellipsis}
.c2kv b small{font-size:10px}
@media (max-width:700px){.c2.u2char{grid-template-columns:minmax(0,1fr)}}

/* u2m portrait: cot nut Phần thưởng / Kỳ Trân / Trợ / Chợ — khong an, khong de len minimap */
body.u2m #u20r.u2m-r{display:flex!important;flex-direction:column!important;gap:4px!important;z-index:20!important;pointer-events:auto!important}
body.u2m #u20r.u2m-r .u20rb{width:44px;height:44px;font:600 9px/10px var(--font,Tahoma);padding:2px}
body.u2m #u20r.u2m-r #u20tt{background:radial-gradient(#3a5530,#0e1f12);border-color:#7aaf6a;color:#d8ffc8}

body.u2m #u20r.u2m-r{touch-action:none;cursor:grab}
body.u2m #u20r.u2m-r.dragging{cursor:grabbing;opacity:.92}
body.u2m #u20r.u2m-r .u20rb{touch-action:none}


/* fix chong cheo u20r/menu/pad */
/* mac dinh: menu nam tren pad; u20r duoi topCtl; ca hai keo duoc */
body.u20 #u20menu{bottom:auto!important;right:auto!important;z-index:46!important;touch-action:none;cursor:grab;padding-top:6px}
body.u20 #u20menu.dragging,body.u20 #u20r.dragging{cursor:grabbing;opacity:.92}
body.u20 #u20ops{z-index:46!important}
body.u20 #u20r,body.u2s #u20r{gap:8px!important;z-index:55!important;touch-action:none;cursor:grab}
body.u2m #u20r.u2m-r{z-index:55!important;cursor:grab}
body.u2m #u20r.u2m-r .u20rb,body.u20 #u20r .u20rb,body.u2s #u20r .u20rb,
body.u2m #u20r #u20mail,body.u2m #u20r #u20stb,body.u2s #u20r #u20mail,body.u2s #u20r #u20stb{pointer-events:auto!important;position:relative;z-index:2}
body.u2s #pad{transform:translateX(-50%)!important}

/* PT + Luyện: PC hàng chip; điện thoại icon tròn nhỏ bên phải (cạnh ngựa), kéo được */
#actBar{position:fixed;z-index:46;display:none;flex-direction:row;align-items:center;gap:4px;touch-action:none;cursor:grab;pointer-events:none;background:none;border:0;padding:0;box-shadow:none;overflow:visible}
#actBar #modeSw,#actBar #mswBtn,#actBar #mswMenu,#actBar #u20pty,#actBar #u20tkGo{pointer-events:auto}
#actBar.dragging{cursor:grabbing;opacity:.92}
#actBar #modeSw{position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;transform:none!important;flex:none;border:0;box-shadow:none;overflow:visible!important;background:none}
#actBar #mswMenu{z-index:70!important;pointer-events:auto!important}
#actBar #u20tkGo,#actBar #u20pty{
  position:static!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;flex:none
}
#actBar.msw-rt #mswMenu{left:auto;right:0}
#modeSw.msw-dn #mswMenu{bottom:auto;top:31px}
body.u2m #u20tkGo,body.u2s #u20tkGo,body.u2m #u20ops,body.u2s #u20ops{display:none!important}
body.u2m #actBar,body.u2s #actBar{flex-direction:column;align-items:center;gap:5px;z-index:58!important;overflow:visible!important}
body.u2m #actBar #mswBtn,body.u2m #actBar #u20pty,
body.u2s #actBar #mswBtn,body.u2s #actBar #u20pty{
  position:static!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  width:30px!important;height:30px!important;min-height:0!important;padding:0!important;margin:0;
  border-radius:50%!important;border:2px solid #b9974f!important;
  background:radial-gradient(#6b5530,#2a1f0e)!important;color:#ffe9b0!important;
  font:700 9px/26px var(--font,Tahoma)!important;letter-spacing:0;box-shadow:0 2px 4px #000;
  text-align:center;white-space:nowrap;overflow:hidden!important
}
body.u2m #actBar #mswBtn,body.u2s #actBar #mswBtn{font-size:13px!important;line-height:26px!important}
body.u2m #actBar #u20pty.on,body.u2s #actBar #u20pty.on{border-color:#e0c060!important;box-shadow:0 0 8px #e0c060}
body.u2m #u20r.u2m-r .u20rb{width:34px!important;height:34px!important;font:600 8px/9px var(--font,Tahoma)!important}
body.u2m #u20r #u20mail,body.u2m #u20r #u20stb{width:28px!important;height:28px!important;background-size:56px 28px!important;align-self:center;flex:none}
body.u2m #u20r #u20mail.on,body.u2m #u20r #u20stb.on{background-position:-28px 0!important}
body.u2m #mBody .dtabs,body.u2s #mBody .dtabs{flex-wrap:wrap;overflow:visible}
body.u2m #mBody .dtabs button,body.u2s #mBody .dtabs button{flex:1 1 22%;min-width:64px;font-size:11px!important;padding:6px 3px!important}
.tkact .btnrow{margin-top:8px}
@media (pointer:coarse){
  body.u2s .u20rb{width:36px!important;height:36px!important}
  body.u2m #u20r.u2m-r .u20rb{width:34px!important;height:34px!important}
  body.u2m #actBar #mswBtn,body.u2s #actBar #mswBtn,
  body.u2m #actBar #u20pty,body.u2s #actBar #u20pty{min-height:0!important;width:30px!important;height:30px!important}
}
body.u2m #u20trk.dtchip,body.u2s #u20trk.dtchip{
  display:flex!important;flex-direction:column;align-items:stretch;justify-content:flex-start;
  visibility:visible!important;position:fixed!important;
  width:30px!important;height:30px!important;min-height:0!important;max-height:30px!important;
  overflow:hidden;z-index:56!important;pointer-events:auto!important;cursor:pointer;
  background:radial-gradient(#6b5530,#2a1f0e)!important;
  border:2px solid #b9974f!important;border-radius:50%!important;
  box-shadow:0 2px 4px #000;color:#ffe9b0;font:700 11px/26px var(--font,Tahoma);
  right:8px;left:auto;top:auto
}
body.u2m #u20trk.dtchip.open,body.u2s #u20trk.dtchip.open{
  width:min(52vw,210px)!important;height:auto!important;min-height:0!important;max-height:min(36vh,180px)!important;
  overflow:auto;border-radius:6px!important;background:#000c!important;border:1px solid #8c7440!important
}
body.u2m #u20trk.dtchip .u2trh,body.u2s #u20trk.dtchip .u2trh{
  padding:0!important;background:none!important;font:700 11px/26px var(--font,Tahoma)!important;
  color:#ffe9b0!important;letter-spacing:.4px;text-align:center;
  width:100%!important;height:30px!important;pointer-events:auto!important;cursor:pointer
}
body.u2m #u20trk.dtchip.open .u2trh,body.u2s #u20trk.dtchip.open .u2trh{
  background:linear-gradient(#3e3e32,#1d1d16)!important;padding:4px 2px!important;border-radius:4px 4px 0 0
}
body.u2m #u20trk.dtchip>div[data-q],body.u2s #u20trk.dtchip>div[data-q]{font-size:11px;line-height:14px}
body.u2s #u20log,body.u2m #u20log,body.u20.u2s #u20log{display:none!important}
body.u2m #chBtn,body.u2s #chBtn{z-index:51!important;min-height:28px;font-size:12px;padding:3px 8px}

/* Nut kenh: noi, keo duoc; khong nam trong #topCtl (bi HUD / cot nut phai che tren man doc) */
#chBtn{position:fixed!important;z-index:49;touch-action:none;cursor:grab;white-space:nowrap;right:auto!important;bottom:auto!important;left:8px;top:48px}
#chBtn.dragging{cursor:grabbing;opacity:.92}
body.u2m #chBtn,body.u2s #chBtn{min-height:24px;height:24px;font-size:11px;line-height:20px;padding:0 8px;border-radius:8px}

body.u20 #pad,body.u2m #pad{z-index:47;overflow:visible;width:auto!important;flex-wrap:nowrap!important}
body.u2m #pad .pbtn,body.u2s #pad .pbtn{width:36px!important;height:36px!important;margin-top:0!important}
body.u2m #pad .pbtn.mn,body.u2s #pad .pbtn.mn{width:40px!important;height:40px!important}
body.u2m #pad .pbtn.pot,body.u2s #pad .pbtn.pot{width:34px!important;height:34px!important}

/* Chat khít sát thanh thuốc */
#chatBox.open,body.u20 #chatBox.open,body.u2m #chatBox.open,body.u2s #chatBox.open{
  position:fixed!important;z-index:50!important;pointer-events:auto!important;top:auto!important;bottom:48px!important
}
body.u2m #chatBox.open{position:fixed!important;left:4px!important;width:min(calc(100% - 46px),340px)!important;height:min(34vh,248px)!important}
body.u2s #chatBox.open{position:fixed!important;left:4px!important;width:min(38vw,280px)!important;height:min(52vh,200px)!important}
body.u2m #chatBox.open #chatTabs button span,body.u2s #chatBox.open #chatTabs button span{display:none}
body.u2m #chatBox.open #chatTabs button,body.u2s #chatBox.open #chatTabs button{
  min-width:30px!important;min-height:32px!important;padding:4px 0!important;font-size:9px!important;flex:1 0 30px
}
body.u2m #chatBox.open #chatTabs button .cti,body.u2s #chatBox.open #chatTabs button .cti{width:18px;height:18px;pointer-events:none}
/* Dien thoai ngang: khung chat hep (chatFitPad) -> tab co lai, hang nhap gon; thieu cho thi o nhap + Gui tu xuong dong, khong bi cat */
body.u2s #chatBox.open #chatTabs button{min-width:20px!important;flex:1 1 0}
body.u2s #chatBox.open #chatX{flex:none}
body.u2s #chatBox.open .cinrow{flex-wrap:wrap;row-gap:3px}
body.u2s #chatBox.open .cib{width:26px}
body.u2s #chatBox.open #chatRec{min-width:40px;padding:0 5px!important;font-size:10px!important}
body.u2s #chatBox.open #chatTxt{flex:1 1 70px;min-width:70px}
body.u2m #chatTxt,body.u2s #chatTxt,body.u2m #u20txt,body.u2s #u20txt{font-size:16px!important;line-height:1.25}
body.chatkb #chatBox.open #chatIn{flex-shrink:0}
body.u2m #chatBox.open #chatInfo,body.u2s #chatBox.open #chatInfo{display:flex!important}
body.u2m #chatBox.open #chatOn,body.u2s #chatBox.open #chatOn{display:inline-flex!important}
body.u2m #chatOn .onl,body.u2s #chatOn .onl,body.u2m #onHud .onl,body.u2s #onHud .onl{font-size:10px;padding:0 5px;line-height:14px}
body.u2m #chatOn .onh,body.u2s #chatOn .onh,body.u2m #onHud .onh,body.u2s #onHud .onh{font-size:10px;padding:0 5px;line-height:14px}

/* So online / cung map chi hien trong khung chat: an chat thi an luon (khong noi len dau man) */
#onHud{display:none!important;position:fixed;z-index:45;pointer-events:none;left:78px;top:6px;align-items:center;gap:4px;white-space:nowrap}

/* FPS: HTML overlay, không vẽ dưới thanh máu trên điện thoại */
#fpsHud{position:absolute;z-index:8;pointer-events:none;left:8px;top:4px;padding:1px 6px;background:#000a;color:#9fe36a;font:700 11px/16px "Segoe UI",sans-serif;border-radius:2px;text-shadow:0 1px 2px #000;letter-spacing:.3px}
body.u20 #fpsHud{left:8px;top:4px}
body.u2m #fpsHud,body.u2s #fpsHud,body.u20.u2s #fpsHud{
  position:fixed!important;left:6px!important;top:28px!important;z-index:46!important
}

/* Hang chip duoi HUD: FPS + online + Kenh — khong de len Cap/HP */
body.u2m #onHud,body.u2s #onHud{top:28px;left:70px;z-index:45}

/* Mo panel: an overlay HUD de khong de len bang */
body.u2m.u2mo #u20r,body.u2m.u2mo #actBar,body.u2m.u2mo #u20trk,
body.u2m.u2mo #u20zone,body.u2m.u2mo #u20rc,body.u2m.u2mo #u20ops{display:none!important}
body.u2m.u2mo #panel{
  flex:1 1 0!important;min-height:0!important;min-width:0!important;max-width:100%!important;
  overflow-x:hidden!important;overflow-y:auto!important;
  width:100%!important;position:relative!important;z-index:28;padding:4px 6px 8px
}
body.u2m.u2mo #panel .tab:not(.hidden){display:block!important;overflow:visible}
/* Doc: cot Lv90/120/150 cuon trong luoi, khong noi rong ca trang (trang bi keo ve 0 nen mat cot) */
body.u2m #t-skill{min-width:0;max-width:100%;overflow-x:hidden}
body.u2m .u2kg{
  width:100%;max-width:100%;min-width:0;
  overflow-x:auto;overflow-y:hidden;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-x
}
body.u2m .u2kc{flex:0 0 auto}
body.u2m .c2.u2char,body.u2m .u2char,body.u2m .u2forge,body.u2m .u2quest{grid-template-columns:1fr!important}
body.u2m .u2dollw,body.u2m .u2circ{margin:0 auto}

/* Dien thoai ngang mo bang: bang giu co cu (body.u2s #panel: rong toi da 720, cao theo noi dung, 2 cot) — khong phu kin man;
   chi an cac nut noi de khong de len bang */
body.u2s.u20win #u20r,body.u2s.u20win #actBar,body.u2s.u20win #u20trk,body.u2s.u20win #chBtn,body.u2s.u20win #fpsHud,
body.u2s.u20win #pad,body.u2s.u20win #u20zone,body.u2s.u20win #u20rc,body.u2s.u20win #u20ops,body.u2s.u20win #chatBox{display:none!important}
/* chua hang Cap / HP / MP phia tren de van theo doi mau khi mo bang */
body.u2s.u20win #panel{top:34px!important;max-height:calc(100vh - 38px)!important}
/* bang (tru Hanh trang - o do can to de bam) thu con 85% cho bot phai keo; bu top / max-height de mep tren van ngay duoi hang HP */
body.u2s.u20win:not([data-u2t=inv]) #panel{zoom:calc(var(--fs,1) * .85)!important;top:calc(34px / (var(--fs,1) * .85))!important;max-height:calc((100vh - 38px) / (var(--fs,1) * .85))!important}
/* hang Xoay / PK / Auto / Khoa man: JS dat goc duoi phai (topCtlPlace), FPS o tren */
body.u2s #topCtl{position:fixed!important;z-index:48!important;gap:3px;pointer-events:none}
body.u2s #topCtl .chip{pointer-events:auto}
body.u2s #topCtl .chip{min-height:26px!important;height:26px;line-height:24px;padding:0 5px!important;font-size:10px!important}
body.u2s #topCtl #rotBtn{font-size:0!important}
body.u2s #topCtl #rotBtn::before{content:"Xoay";font-size:10px;margin-right:3px}
/* hang nay xuong dong thi nam duoi mep tren cua bang -> an khi dang mo bang (giu cho de khong nhay vi tri) */
body.u2s.u20win #topCtl.row2{visibility:hidden}
/* thanh menu dung doc sat mep trai khi dang mo bang (menuSide trong actbar.js) */
body.u2s #u20menu.side{flex-direction:column;padding:5px 4px;border-radius:3px 12px 12px 3px}

/* Dien thoai doc: #app thu 0,8 (transform) nen moi nut noi gan vao body (Kenh, FPS, cot phai, chat dang mo...) luon de len #modal,
   con bang (z 28) va pad (z 47) cung nam tren #modal (z 10). Dua hop thoai len tren va an nut noi khi hop thoai dang mo. */
body.u2m #modal{z-index:60!important}
body.u2m:has(#modal:not(.hidden))>:is(#chBtn,#fpsHud,#onHud,#chatBox,#actBar,#u20r,#u20rc,#u20trk,#u20zone,#u20ops,#u20pl,#ptyHud,#u20side,#u20gold,#u20boss,#u20log,#otDock){visibility:hidden!important}
body:has(#modal:not(.hidden)) #otDock{visibility:hidden!important}

/* Giftcode / Zalo trên khung chat — PC / mobile / iOS / Android / ngang dọc */
.chatXtra,.chatXtra.gc,.chatXtra.zalo{flex:none;min-width:52px;height:18px;padding:0 6px;font-size:10px;font-weight:700;letter-spacing:-.2px;border-radius:3px;cursor:pointer;pointer-events:auto!important;touch-action:manipulation;-webkit-tap-highlight-color:transparent;white-space:nowrap;line-height:16px;box-sizing:border-box;user-select:none}
#u20gc,.chatXtra.gc,#chatGc{background:linear-gradient(#d88914,#8a4e08)!important;border:1px solid #f0b040!important;color:#fff6d0!important}
#u20zalo,.chatXtra.zalo,#chatZalo{background:linear-gradient(#1a8a9a,#0d4a58)!important;border:1px solid #4ec8d8!important;color:#e8ffff!important}
#u20gc:active,#chatGc:active,#u20zalo:active,#chatZalo:active{filter:brightness(1.15)}
body.u20 #u20ct{flex-wrap:wrap;overflow:visible;align-items:center}
body.u20logoff #u20ct #u20gc,body.u20logoff #u20ct #u20zalo{display:inline-flex!important}
body.u2s #u20ct{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}
#chatBox.open #chatHead{flex-wrap:nowrap;align-items:center;gap:3px;min-height:28px}
#chatBox.open #chatHead .chatXtra{min-height:26px;height:26px;padding:0 7px;font-size:10px;pointer-events:auto!important;position:relative;z-index:7}
#chatBox.open #chatTabs{flex:1 1 auto;min-width:0;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none}
#chatBox.open #chatX{flex:none}
@media (max-width:420px){
  #chatBox.open #chatHead .chatXtra,#u20gc,#u20zalo{min-width:44px;padding:0 4px;font-size:9px}
}
@media (orientation:portrait){
  #chatBox.open #chatHead .chatXtra{min-height:28px;height:28px}
  #chatBox.open{max-height:calc(100vh - 110px - env(safe-area-inset-bottom,0px))!important}
}
@media (max-height:500px) and (orientation:landscape){
  #chatBox.open #chatHead .chatXtra{min-height:24px;height:24px;font-size:9px}
}
#modal .gcModal{max-height:min(78vh,640px);overflow-y:auto;-webkit-overflow-scrolling:touch;padding:0 2px calc(10px + env(safe-area-inset-bottom,0px));touch-action:pan-y;overscroll-behavior:contain}
#modal .gcModal h3{margin:4px 0 6px}
#modal .gcModal .gcCard{margin:8px 0;padding:8px 10px;background:rgba(0,0,0,.32);border:1px solid #5a4a28;border-radius:4px;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
#modal .gcModal .gcCard code{font-size:15px;color:#fff;font-weight:700}
#modal .gcModal .gcCard.on,#modal .gcModal .gcCard:active{border-color:#e0c060;background:rgba(80,60,16,.4)}
#modal .gcModal .gcPay{position:sticky;bottom:0;background:linear-gradient(#1a171000,#1a1710 28%);padding:8px 0 4px;gap:6px;flex-wrap:wrap}
#modal .gcModal #gcIn{flex:1 1 140px;min-width:0;min-height:36px;font-size:16px;box-sizing:border-box}
#modal .gcModal #gcOk{flex:none;min-height:36px;min-width:88px}
@media (max-height:480px){
  #modal .gcModal{max-height:min(86vh,420px)}
}
@media (orientation:portrait){
  #modal .gcModal{max-height:min(72vh,560px)}
  #modal .mbox:has(.gcModal){width:min(440px,94vw)!important;max-width:94vw}
}

/* Oẳn tù tì: nút tròn nhỏ, kéo được. Mở ra sổ thắng thua; Ẩn thu thành mẩu bên mép. */
#otDock{position:fixed;z-index:80;display:none;width:34px;height:34px;touch-action:none;user-select:none;pointer-events:auto}
body.u2m #otDock,body.u2s #otDock{z-index:80!important}
#otDock .otb{pointer-events:auto;position:relative;z-index:2;display:block;width:34px;height:34px;min-width:34px;min-height:34px;padding:0;border-radius:50%;border:2px solid #b9974f;background:radial-gradient(#6b5530,#2a1f0e);color:#ffe9b0;font:700 11px/30px Tahoma,sans-serif;text-align:center;cursor:pointer;touch-action:none;-webkit-tap-highlight-color:transparent;box-shadow:0 2px 4px #000}
#otDock .otb i{position:absolute;top:-5px;right:-5px;width:14px;height:14px;border-radius:50%;border:1px solid #b9974f;background:#1a140c;color:#ffe9b0;font:700 11px/12px Tahoma,sans-serif;font-style:normal;line-height:12px;text-align:center;cursor:pointer}
#otDock .otp{display:none;pointer-events:auto;position:absolute;left:0;top:38px;width:min(228px,68vw);max-height:min(40vh,260px);overflow:auto;background:#120e08f2;border:1px solid #8c7440;border-radius:6px;padding:6px 8px;color:#f0e6c8;font:12px/1.35 Tahoma,sans-serif;box-shadow:0 4px 12px #000;cursor:default}
#otDock.open .otp{display:block}
#otDock.rt .otp{left:auto;right:0}
#otDock.up .otp{top:auto;bottom:38px}
#otDock.hide{width:18px;height:18px}
#otDock.hide .otb{width:18px;height:18px;border-radius:50%;font-size:8px;line-height:14px;padding:0}
#otDock.hide .otb i,#otDock.hide .otp{display:none!important}
/* Một nút Ẩn/Hiện dưới cả cột icon — không thêm vòng tròn đè lên OT */
#u20fold{position:fixed;z-index:60;box-sizing:border-box;width:auto;min-width:0;height:22px;min-height:22px;margin:0;padding:0 7px;border-radius:6px;border:1px solid #c4a15a;background:linear-gradient(#4a3a1c,#24180c);color:#ffe9b0;font:700 11px/20px Tahoma,sans-serif;cursor:pointer;touch-action:none;-webkit-tap-highlight-color:transparent;pointer-events:auto;-webkit-user-select:none;user-select:none}
#u20r.fold>:not(#u20fold){display:none!important}
body.railFold #otDock{display:none!important}
body.railFold.u2m #actBar,body.railFold.u2s #actBar,body.railFold.u2m #u20trk,body.railFold.u2s #u20trk{display:none!important}
#otDock .othd{display:flex;justify-content:space-between;align-items:center;gap:6px;font-weight:700;color:#ffe08a;cursor:grab;margin-bottom:4px}
#otDock .otx{pointer-events:auto;border:0;background:transparent;color:#c9b896;font:600 11px Tahoma,sans-serif;cursor:pointer;padding:0 2px}
#otDock .otday{margin-bottom:4px}
#otDock .otrows{font-size:11px}
#otDock .otrows div{display:flex;justify-content:space-between;gap:8px;border-top:1px solid #3a3220;padding:2px 0}
#otDock .otgo{display:flex;gap:4px;margin-top:4px}
#otHist .otday{margin-top:6px}
#otHist .otrows{font-size:12px;max-height:160px;overflow:auto}
#otHist .otrows div{display:flex;justify-content:space-between;gap:8px;border-top:1px solid #3a3220;padding:2px 0}
