/* ======================= 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:190px!important;right:340px!important;transform:none!important;width:auto!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}
body.u20 #topCtl{top:auto!important;bottom:64px!important;right:8px!important;left:auto!important}
/* 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}
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}
/* === VLTK 1 (JX1) RETRO MEDALLION COLUMN (#u20r) - PHÍA DƯỚI MÃ TRƯỜNG === */
#u20r {
  position: fixed !important;
  right: 6px !important;
  z-index: 20 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
  pointer-events: auto !important;
  padding: 3px !important;
  border-radius: 22px !important;
  background: rgba(16, 12, 8, 0.82) !important;
  border: 1.5px solid #6b5329 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(220, 185, 115, 0.25) !important;
  backdrop-filter: blur(3px) !important;
  width: auto !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Nút Thu gọn / Xổ ra */
.u20r-toggle {
  width: 38px !important;
  height: 18px !important;
  border-radius: 9px !important;
  background: linear-gradient(180deg, #3d2d18 0%, #1a1208 100%) !important;
  border: 1px solid #786237 !important;
  box-shadow: inset 0 1px 0 rgba(255, 220, 130, 0.25), 0 1px 3px rgba(0, 0, 0, 0.6) !important;
  color: #ffd875 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  font-size: 10px !important;
  line-height: 1 !important;
  transition: all 0.15s ease !important;
  position: relative !important;
}
.u20r-toggle:hover {
  border-color: #ffd875 !important;
  filter: brightness(1.2) !important;
  color: #fff !important;
}
.u20r-toggle .tog-arrow {
  transition: transform 0.2s ease !important;
  font-size: 9px !important;
  color: #ffd875 !important;
}

/* Danh sách các nút huy hiệu */
.u20r-list {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 5px !important;
  transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.2s ease !important;
  overflow: hidden !important;
  max-height: 300px !important;
  opacity: 1 !important;
}

/* Trạng thái THU GỌN (Collapsed) */
#u20r.collapsed {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
#u20r.collapsed .u20r-list {
  max-height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scaleY(0.8) !important;
  margin: 0 !important;
  gap: 0 !important;
}
#u20r.collapsed .u20r-toggle {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 35% 32%, #4a3820 0%, #22180b 60%, #0d0905 100%) !important;
  border: 1.5px solid #a88442 !important;
  box-shadow: 
    inset 0 1px 0 rgba(255, 230, 150, 0.45),
    inset 0 0 0 1.5px #26190a,
    0 3px 6px rgba(0, 0, 0, 0.85) !important;
}
#u20r.collapsed .u20r-toggle .tog-ico {
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  background: url('ui/chest.png') center/contain no-repeat !important;
  filter: drop-shadow(0 1px 2px #000) !important;
}
#u20r.collapsed .u20r-toggle .tog-arrow {
  display: none !important;
}
#u20r:not(.collapsed) .u20r-toggle .tog-ico {
  display: none !important;
}

/* Chấm đỏ nhấp nháy trên nút thu gọn khi có quà */
#u20r.collapsed .u20r-toggle.on::after {
  content: "" !important;
  position: absolute !important;
  top: -1px !important;
  right: -1px !important;
  width: 9px !important;
  height: 9px !important;
  border-radius: 50% !important;
  background: #e53924 !important;
  border: 1.5px solid #ffe9b0 !important;
  box-shadow: 0 0 6px #ff2200 !important;
  animation: jxPulse 1.2s infinite alternate !important;
}

.u20rb {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: radial-gradient(circle at 35% 32%, #4a3820 0%, #22180b 60%, #0d0905 100%) !important;
  border: 1.5px solid #a88442 !important;
  box-shadow: 
    inset 0 1px 0 rgba(255, 230, 150, 0.45),
    inset 0 0 0 1.5px #26190a,
    inset 0 0 6px rgba(0, 0, 0, 0.9),
    0 3px 6px rgba(0, 0, 0, 0.85) !important;
  color: #ffd875 !important;
  cursor: pointer !important;
  padding: 0 !important;
  position: relative !important;
  transition: transform 0.1s ease, filter 0.12s ease, border-color 0.12s ease !important;
  user-select: none !important;
}

.u20rb:hover {
  border-color: #ffd875 !important;
  filter: brightness(1.2) !important;
  box-shadow: 
    0 0 10px rgba(255, 215, 80, 0.65),
    inset 0 1px 0 rgba(255, 240, 180, 0.6),
    inset 0 0 0 1.5px #3a2510,
    0 4px 8px rgba(0, 0, 0, 0.9) !important;
  transform: translateY(-1px) !important;
}

.u20rb:active {
  transform: translateY(1px) scale(0.96) !important;
  filter: brightness(0.95) !important;
  box-shadow: inset 0 2px 4px #000, 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

.u20rb .jx-m-ico {
  width: 17px !important;
  height: 17px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  object-fit: contain !important;
  margin-bottom: 1px !important;
  filter: drop-shadow(0 1px 2px #000) !important;
  pointer-events: none !important;
}

.u20rb span {
  font-size: 8px !important;
  line-height: 9px !important;
  font-weight: 700 !important;
  font-family: Tahoma, 'Segoe UI', Arial, sans-serif !important;
  color: #ffd875 !important;
  text-shadow: 0 1px 2px #000, 0 0 3px #000 !important;
  letter-spacing: 0.2px !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}

.u20rb.on::after,
#giftBtn.on::after {
  content: "" !important;
  position: absolute !important;
  top: -1px !important;
  right: -1px !important;
  width: 9px !important;
  height: 9px !important;
  border-radius: 50% !important;
  background: #e53924 !important;
  border: 1.5px solid #ffe9b0 !important;
  box-shadow: 0 0 6px #ff2200 !important;
  animation: jxPulse 1.2s infinite alternate !important;
}

@keyframes jxPulse {
  0% { transform: scale(0.9); opacity: 0.85; }
  100% { transform: scale(1.15); opacity: 1; }
}

body.u2s .u20rb {
  width: 35px !important;
  height: 35px !important;
  min-width: 35px !important;
}
body.u2s .u20rb .jx-m-ico {
  width: 14px !important;
  height: 14px !important;
}
body.u2s .u20rb span {
  font-size: 7px !important;
  line-height: 8px !important;
}

#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}
body.u20 #chatBox.open{left:2px!important;bottom:24px!important;top:auto!important;height:min(60vh,420px);width:min(34vw,420px)!important}
body.u20 #modal .mbox{max-width:min(680px,60vw)!important}
/* ======================= 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}
.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,body.u20 .jxwin{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:rgb(248, 199, 5)}
body.u20 #panel .tab,body.u20 .jxwin .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,body.u20 .jxwin .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),body.u20 .jxwin .btn:hover:not(:disabled){filter:brightness(1.2)}
body.u20 #panel .btn.on,body.u20 #modal .btn.on,body.u20 .jxwin .btn.on{background:linear-gradient(#8a7434,#4a3c14)!important;border-color:#e8c860!important}
body.u20 #panel .btn.red,body.u20 #modal .btn.red,body.u20 .jxwin .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}
.btnrow{display:flex;gap:4px;flex-wrap:wrap;justify-content:center;margin:6px 0 0}
.gold{color:var(--w2gd)}
body.u20 #panel .it,body.u20 .jxwin .it{background:var(--w2cell);border:1px solid #4e4c3c;border-radius:0;box-shadow:inset 0 0 6px #000}
body.u20 #panel .it.r1,body.u20 .jxwin .it.r1{border-color:#6aa8ff}body.u20 #panel .it.r2,body.u20 .jxwin .it.r2{border-color:#ffd24a}body.u20 #panel .it.r3,body.u20 .jxwin .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}
.u2s:has(.it){border:0!important;background:transparent!important;box-shadow:none!important}
.u2s .it{width:100%!important;height:100%!important;aspect-ratio:auto!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 .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 .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{max-width:760px!important;width:760px}
.u2shop{display:grid;grid-template-columns:120px 1fr;gap:8px}
.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}.u2sh img{height:14px;vertical-align:-2px;image-rendering:pixelated}
.u2cards{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.u2card{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:3px;color:#ffd875;text-shadow:0 1px 2px #000}
.u2cb{display:flex;gap:8px;align-items:center;padding:6px;font-size:12px;min-height:46px}.u2cb img{width:34px;height:34px;image-rendering:pixelated;border:1px solid #5a4b2c;background:#050505;border-radius:3px}
.u2cf{display:flex;gap:3px;padding:0 5px 5px}
.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:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.u2s:not(:has(.it)){background:#0b0c0a55!important}
/* === VLTK 1 (JX1) COMBAT & MODE BAR (#modeSw & #topCtl) === */
body.u20 #bGuildTop {
  display: none !important;
}

body.u20 #modeSw {
  top: auto !important;
  bottom: 58px !important;
  right: calc(50% + 4px) !important;
  left: auto !important;
  transform: none !important;
  z-index: 25 !important;
  display: flex !important;
  align-items: center !important;
  overflow: visible !important;
}

body.u20 #topCtl {
  top: auto !important;
  bottom: 58px !important;
  left: calc(50% + 4px) !important;
  right: auto !important;
  transform: none !important;
  z-index: 25 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

body.u20 #rideBtn,
#partyBtn,
#simbotBtn,
#tyvoCtlBtn {
  display: none !important;
}

/* Base style for all controls in this bar */
#modeSw #mswBtn,
#topCtl .chip,
#ctrlBtn,
#rotBtn {
  height: 26px !important;
  min-height: 26px !important;
  line-height: 24px !important;
  padding: 0 8px !important;
  box-sizing: border-box !important;
  border: 1.5px solid #6b5329 !important;
  border-radius: 3px !important;
  background: linear-gradient(180deg, #2c2419 0%, #17130c 50%, #0d0a06 100%) !important;
  box-shadow: 
    inset 1px 1px 0 rgba(220, 185, 115, 0.25),
    inset -1px -1px 0 rgba(0, 0, 0, 0.7),
    0 2px 4px rgba(0, 0, 0, 0.8) !important;
  color: #e8dfc8 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  font-family: Tahoma, 'Segoe UI', Arial, sans-serif !important;
  text-shadow: 1px 1px 1px #000, -1px -1px 1px #000 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.1s ease !important;
}

#modeSw #mswBtn:hover,
#topCtl .chip:hover,
#ctrlBtn:hover,
#rotBtn:hover {
  border-color: #d4aa55 !important;
  color: #fff6d0 !important;
  box-shadow: 
    inset 1px 1px 0 rgba(255, 230, 160, 0.4),
    0 0 6px rgba(212, 170, 85, 0.5) !important;
}

#modeSw #mswBtn:active,
#topCtl .chip:active,
#ctrlBtn:active,
#rotBtn:active {
  transform: translateY(1px) !important;
  box-shadow: inset 1px 1px 3px #000 !important;
}

#modeSw #mswBtn b {
  color: #ffd875 !important;
  margin: 0 2px !important;
}

#modeSw #mswBtn .msw-arrow {
  margin-left: 3px !important;
  font-size: 9px !important;
  color: #d4aa55 !important;
}

/* JX1 PK Icon */
.jx-pk-ico {
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  background-image: url('ui/pk_status.png') !important;
  background-repeat: no-repeat !important;
  background-size: 48px 16px !important;
  vertical-align: middle !important;
  margin-right: 3px !important;
  filter: drop-shadow(0 1px 1px #000) !important;
}
.jx-pk-ico.farm {
  background-position: 0 0 !important;
}
.jx-pk-ico.fight {
  background-position: -16px 0 !important;
}
.jx-pk-ico.slay {
  background-position: -32px 0 !important;
}

/* Dropdown menu for mode switch */
#mswMenu {
  position: absolute !important;
  bottom: 30px !important;
  left: 0 !important;
  z-index: 1000 !important;
  min-width: 130px !important;
  background: #14100b !important;
  border: 1.5px solid #786237 !important;
  border-radius: 3px !important;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(220, 185, 115, 0.2) !important;
  overflow: hidden !important;
}
#mswMenu.hidden {
  display: none !important;
}
#mswMenu button {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  width: 100% !important;
  height: 28px !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-bottom: 1px solid #281e12 !important;
  background: transparent !important;
  color: #d9ccaa !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  text-align: left !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}
#mswMenu button:last-child {
  border-bottom: 0 !important;
}
#mswMenu button:hover,
#mswMenu button.on {
  background: linear-gradient(90deg, #443216 0%, #1e1509 100%) !important;
  color: #ffe494 !important;
}

/* JX1 Checkboxes for Xoay chiêu & Auto */
#ctrlBtn .ck,
#rotBtn .ck {
  display: inline-block !important;
  width: 12px !important;
  height: 12px !important;
  margin-left: 5px !important;
  vertical-align: middle !important;
  border: 1px solid #7a6336 !important;
  border-radius: 2px !important;
  background: #080808 !important;
  box-shadow: inset 1px 1px 2px #000 !important;
  position: relative !important;
}

#ctrlBtn.on,
#rotBtn.on {
  border-color: #a88442 !important;
  color: #fff0b8 !important;
}

#ctrlBtn.on .ck::after,
#rotBtn.on .ck::after {
  content: "" !important;
  position: absolute !important;
  left: 3px !important;
  top: 0.5px !important;
  width: 3.5px !important;
  height: 7px !important;
  border: solid #52e852 !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) !important;
  filter: drop-shadow(0 0 2px #00ff00) !important;
}

#ctrlBtn:not(.on),
#rotBtn:not(.on) {
  color: #9e9584 !important;
  border-color: #554832 !important;
  opacity: 0.88 !important;
}
#ctrlBtn:not(.on) .ck::after,
#rotBtn:not(.on) .ck::after {
  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)}
#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)}
#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}
#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;z-index:99!important;overflow:visible!important;pointer-events:auto!important}
body.u2s #mswMenu{bottom:auto!important;top:31px!important;z-index:1000!important;pointer-events:auto!important}
body.u2s #topCtl{top:26px!important;bottom:auto!important;left:196px!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{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 #u20lines a,body.u20 #u20lines b[onclick],body.u20 #u20lines span[onclick],body.u20 #u20lines .chit{pointer-events:auto!important;cursor:pointer!important}
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:44px!important;height:44px!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}
#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:7;width:210px;display:flex;flex-direction:column;align-items:stretch;gap:4px}
#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;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}
body.u20 #u20rank:hover{filter:brightness(1.2)}
body.u2s #u20rc{width:170px}
@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}

/* 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{display:none!important}
body.u2m.u20win #u20zone{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}

/* === TRỢ THỦ KIẾM HIỆP STYLES === */
.tt2tabs{display:flex!important;border-bottom:1px solid #5a4e34;margin-bottom:8px}
.tt2tabs button{flex:1;padding:7px 4px!important;font-weight:600;background:#14130e;color:#cfc6a4;border:none;border-bottom:2px solid transparent;cursor:pointer}
.tt2tabs button.on{color:#ffd24a;border-bottom:2px solid #ffd24a;background:linear-gradient(#2a2416,#14130e)}
.tt2{display:flex;flex-direction:column;gap:8px}
.tt2s{border:1px solid #3a3426;border-radius:4px;background:#0c0b08;margin-bottom:8px}
.tt2h{display:flex;align-items:center;gap:6px;padding:6px 10px;color:#e6c67a;font-weight:700;border-bottom:1px solid #3a3426;background:linear-gradient(90deg,#2a2416,transparent)}
.tt2h small{margin-left:auto;color:#8a8370;font-weight:400;font-size:11px;text-align:right}
.tt2b{padding:8px 10px;display:flex;flex-direction:column;gap:7px}
.tt2r{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tt2l{min-width:110px;color:#d8cfae;font-size:12.5px}
.tt2g{display:grid;grid-template-columns:1fr 1fr;gap:6px 14px;align-items:center}
.tt2c{display:flex!important;align-items:center;gap:8px;cursor:pointer;margin:0!important;font-size:12.5px;line-height:1.35;color:#e2dac0}
.tt2c small{color:#8a8370;font-size:11px}
.tt2 input[type=checkbox]{appearance:none;-webkit-appearance:none;width:30px!important;height:16px!important;border-radius:8px;background:#3a3426;border:1px solid #5a4e34;position:relative;flex:0 0 auto;cursor:pointer;margin:0;transition:background .15s}
.tt2 input[type=checkbox]:after{content:'';position:absolute;top:1px;left:1px;width:12px;height:12px;border-radius:50%;background:#8f8a74;transition:left .15s}
.tt2 input[type=checkbox]:checked{background:#5d6b2e!important;border-color:#a5b65a!important}.tt2 input[type=checkbox]:checked:after{left:15px;background:#e9f5b8}
.tt2 select,.tt2 input[type=number]{background:#0b0c0a;border:1px solid #4e4c3c;color:#f1e6c2;padding:3px 6px;border-radius:3px;font-size:12px}
.tt2 input[type=number]{width:84px}
.tt2seg{display:inline-flex;border:1px solid #5a4e34;border-radius:4px;overflow:hidden;flex-wrap:wrap}
.tt2seg button{padding:5px 10px!important;font-size:12px;color:#cfc6a4;background:#14130e!important;border:0!important;border-right:1px solid #3a3426!important;border-radius:0!important;cursor:pointer;white-space:nowrap;margin:0!important;box-shadow:none!important}
.tt2seg button:last-child{border-right:0!important}.tt2seg button.on{background:linear-gradient(#6b5320,#3a2c0e)!important;color:#ffe9b0!important}
.tt2pm{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}
.tt2pm button{display:flex;flex-direction:column;align-items:center;border:1px solid #4a4030!important;border-radius:4px!important;padding:6px 3px!important;background:#14130e!important;cursor:pointer;margin:0!important}
.tt2pm button b{font-size:12.5px;color:#e8e0c0}.tt2pm button small{font-size:10px;color:#8a8370;line-height:1.2;margin-top:2px;text-align:center}
.tt2pm button.on{border-color:#e6c67a!important;background:linear-gradient(#4d4630,#2b2618)!important;box-shadow:0 0 6px #e6c67a44}.tt2pm button.on b{color:#ffe9b0}
.tt2chips{display:flex;flex-wrap:wrap;gap:6px 14px}
.tt2t{width:100%;border-collapse:collapse;font-size:12px}.tt2t th{color:#8a8370;font-weight:400;text-align:left;padding:3px 4px;border-bottom:1px solid #3a3426}
.tt2t td{padding:3px 4px;border-bottom:1px solid #22201a}.tt2t select{max-width:100%}.tt2t input[type=number]{width:64px}
.tt2x{background:none!important;border:0!important;color:#d06a5a;cursor:pointer;font-size:13px;padding:0 4px!important}
.tt2add{border:1px dashed #5a4e34!important;border-radius:3px!important;background:none!important;color:#e6c67a;padding:5px!important;cursor:pointer;width:100%;margin-top:4px}
.tt2pot{display:flex!important;align-items:center;gap:8px;text-align:left;border:1px solid #3a3426!important;border-radius:4px!important;padding:6px 8px!important;background:#100f0b!important;cursor:pointer;margin:0!important}
.tt2pot i{font-style:normal;font-size:18px}.tt2pot b{display:block;font-size:12px;color:#f1e6c2}.tt2pot small{color:#8a8370;font-size:11px}
.tt2f{display:flex;gap:6px;justify-content:flex-end;margin-top:6px}
@media (max-width:560px){.tt2g{grid-template-columns:1fr}.tt2pm{grid-template-columns:repeat(3,1fr)}.tt2l{min-width:90px}}
.tt2 select{width:auto!important;min-width:0}.tt2r{flex-wrap:nowrap}.tt2r>small{white-space:nowrap}
.tt2 .tt2t select{width:100%!important}
.tt2hl .tt2c{flex:1}
.tt2hr{margin-left:auto;display:flex;align-items:center;gap:10px}.tt2hr small{margin:0!important}
.tt2dim{opacity:.45}
.tt2hk{display:flex;align-items:center;gap:10px;padding:8px 10px;border-bottom:1px solid #22201a}.tt2hk:last-child{border-bottom:0}
.tt2s .tt2hk{margin:0 -10px}.tt2hk.off{opacity:.55}
.tt2hk img{width:34px;height:34px;border:1px solid #5a4e34;border-radius:3px;background:#000;image-rendering:pixelated}
.tt2hn{flex:1;min-width:0}.tt2hn b{display:block;color:#f1e6c2;font-size:13px}.tt2hn small{color:#8a8370;font-size:11px}
.tt2hp{display:flex;flex-direction:column;gap:2px;margin:0!important}.tt2hp small{color:#8a8370;font-size:10.5px}
.tt2th{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.tt2th label{display:flex;flex-direction:column;gap:3px;padding:6px 8px;border:1px solid #3a3426;border-radius:4px;background:#100f0b;margin:0!important}
.tt2th small{color:#cfc6a4;font-size:11px}.tt2th select{width:100%!important}
.tt2pot img{width:30px;height:30px;image-rendering:pixelated}.tt2pot em{font-style:normal;color:#ffe08a;font-weight:400;margin-left:4px}
.tt2note{font-size:12px;color:#9fdc8a;padding:6px 10px;border:1px solid #34502a;border-radius:4px;background:#0e160b}
@media (max-width:560px){.tt2th{grid-template-columns:1fr 1fr}}
.tt2sub{display:flex;align-items:center;gap:8px;margin-top:2px}.tt2sub small{color:#8a8370;font-size:11px}
.tt2skl{display:grid;grid-template-columns:1fr 1fr;gap:4px}
.tt2sk{display:flex!important;align-items:center;gap:8px;padding:4px 8px;border:1px solid #3a3426;border-radius:4px;background:#100f0b;margin:0!important;cursor:pointer}
.tt2sk.off{opacity:.5}.tt2sk img{width:26px;height:26px;border:1px solid #5a4e34;image-rendering:pixelated}
.tt2sk span{flex:1;min-width:0;line-height:1.2}.tt2sk b{display:block;font-size:12px;color:#f1e6c2;font-weight:600}.tt2sk small{color:#8a8370;font-size:10.5px}
.tt2sk input:disabled{opacity:.6}
@media (max-width:560px){.tt2skl{grid-template-columns:1fr}}
.tt2flt{table-layout:fixed}.tt2flt th:nth-child(1){width:112px}.tt2flt th:nth-child(2){width:92px}.tt2flt th:nth-child(4){width:78px}
.tt2flt select{text-overflow:ellipsis}
.tt2keep .tt2r{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:8px;align-items:center}
.tt2keep .tt2l{min-width:0;line-height:1.25}
.tt2 .tt2keep select,.tt2 .tt2keep input{width:112px!important;min-width:0;box-sizing:border-box}
.ancl{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:4px 0}
.anci{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;background:#1a1810;border:1px solid #5a4e34;border-radius:4px;font-size:12px;color:#e6c67a;font-weight:700}
.anci.on{border-color:#ffd24a;background:#2a2416;box-shadow:0 0 6px rgba(255,210,74,.4)}
.anci button{background:none;border:none;color:#ff6b6b;cursor:pointer;padding:0 2px;font-size:11px}
.ancw{width:90px!important}
.escb{display:flex;align-items:center;gap:10px;padding:10px 14px;background:#181712;border:1px solid #4a3e26;border-radius:6px;color:#f1e6c2;cursor:pointer;text-align:left;width:100%;transition:all .15s;margin-bottom:8px}
.escb:hover{background:#26231a;border-color:#ffd24a}
.escb i{font-style:normal;font-size:22px;flex:0 0 28px;text-align:center}
.escb span{display:flex;flex-direction:column;gap:2px;font-weight:600;font-size:13.5px}
.escb small{color:#8a8370;font-size:11px;font-weight:400}
.u2ttbody-modal{max-height:75vh;overflow-y:auto;padding-right:4px}


/* Kênh Bang Hội */
#u20ch.guild {
  border-color: #ffd54f !important;
  background: radial-gradient(circle, #f57f17 0%, #e65100 100%) !important;
}

/* === BANG HỘI MODAL STYLING & QUICK BUTTON === */
#u20guild {
  border-color: #ffd24a !important;
  background: radial-gradient(circle at 40% 30%, #7d5918 0%, #2f2005 85%) !important;
  color: #fff2a8 !important;
}
#u20guild:hover {
  box-shadow: 0 0 10px rgba(255, 210, 74, 0.7) !important;
}

.guild-modal-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #eee;
  font-family: inherit;
}
.guild-header, .my-guild-header {
  border-bottom: 1.5px solid #5a4828;
  padding-bottom: 8px;
}
.guild-header h3, .my-guild-title h3 {
  margin: 0;
  font-size: 18px;
  color: #ffd768;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.guild-sub {
  margin: 4px 0 0;
  font-size: 11.5px;
  color: #a8a08d;
}
.guild-badge {
  background: linear-gradient(180deg, #d4a742, #855c14);
  color: #100b02;
  font-weight: 700;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 8px;
}
.guild-role-badge {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 4px;
  background: #333;
  color: #ccc;
  margin-left: 6px;
}
.guild-role-badge.leader {
  background: #a82e1e;
  color: #fff;
  font-weight: 700;
}
.my-guild-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
  font-size: 12.5px;
}
.guild-notice-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px dashed #786237;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
}
.notice-label {
  color: #ffd24a;
  font-weight: 700;
  white-space: nowrap;
}
.notice-txt {
  flex: 1;
  color: #eee;
  font-style: italic;
}

.guild-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 2px solid #5a4828;
  padding-bottom: 2px;
}
.guild-tab-btn {
  background: #1e1b16;
  border: 1px solid #5a4828;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  color: #c9c3b2;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.guild-tab-btn:hover {
  background: #2f281e;
  color: #fff;
}
.guild-tab-btn.active {
  background: linear-gradient(180deg, #d4a742, #855c14);
  color: #1a1002;
  border-color: #ffd66b;
  box-shadow: 0 0 8px rgba(230, 185, 60, 0.5);
}

.guild-rule-tip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(200, 160, 80, 0.1);
  border-left: 3px solid #ffd24a;
  padding: 6px 10px;
  font-size: 11.5px;
  border-radius: 2px;
}
.guild-rule-tip .my-lv {
  color: #ffd24a;
}

.guild-table-wrap {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid #4a3c22;
  border-radius: 4px;
  background: rgba(10, 8, 5, 0.7);
}
.guild-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
.guild-table th {
  background: #1e1912;
  color: #ffd24a;
  padding: 8px 10px;
  font-weight: 700;
  border-bottom: 1px solid #5a4828;
  position: sticky;
  top: 0;
  z-index: 2;
}
.guild-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(90, 72, 40, 0.35);
}
.guild-table tr:hover {
  background: rgba(255, 215, 100, 0.08);
}
.guild-table tr.is-me {
  background: rgba(76, 216, 74, 0.12);
}
.g-name {
  color: #ffb834;
}
.g-mem.full {
  color: #ff5252;
  font-weight: 700;
}
.role-tag {
  font-size: 11.5px;
  font-weight: 600;
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
}
.role-tag.leader {
  color: #ffd24a;
  background: rgba(255, 210, 74, 0.15);
  border: 1px solid rgba(255, 210, 74, 0.4);
  font-weight: 700;
}
.role-tag.vice {
  color: #ff9944;
  background: rgba(255, 153, 68, 0.15);
  border: 1px solid rgba(255, 153, 68, 0.4);
  font-weight: 700;
}
.role-tag.elder {
  color: #be7aff;
  background: rgba(190, 122, 255, 0.15);
  border: 1px solid rgba(190, 122, 255, 0.4);
}
.role-tag.hall {
  color: #4dc3ff;
  background: rgba(77, 195, 255, 0.15);
  border: 1px solid rgba(77, 195, 255, 0.4);
}
.role-tag.elite {
  color: #5cf09b;
  background: rgba(92, 240, 155, 0.15);
  border: 1px solid rgba(92, 240, 155, 0.4);
}
.role-tag.member {
  color: #bbb;
}

.guild-create-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid #5a4828;
  border-radius: 4px;
  padding: 12px 14px;
}
.guild-create-box h4 {
  margin: 0 0 10px;
  color: #ffd24a;
  font-size: 13.5px;
}
.create-req-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.create-req-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
}
.create-req-item.ok {
  border-left: 3px solid #4cd84a;
}
.create-req-item.bad {
  border-left: 3px solid #ff4444;
  color: #ff9999;
}
.create-req-item .icon {
  font-weight: bold;
}
.create-req-item.ok .icon { color: #4cd84a; }
.create-req-item.bad .icon { color: #ff4444; }
.ktc-link {
  color: #ffd24a;
  margin-left: auto;
  text-decoration: underline;
  cursor: pointer;
}

.create-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #ddd;
  margin-bottom: 6px;
}
.create-form .form-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}
.create-form input {
  flex: 1;
  height: 28px;
  background: #14120f;
  border: 1px solid #6b5530;
  border-radius: 3px;
  color: #fff;
  padding: 0 8px;
  font-size: 12px;
}
.create-form input:focus {
  outline: none;
  border-color: #ffd24a;
  box-shadow: 0 0 6px rgba(255, 210, 74, 0.5);
}

.guild-manage-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.guild-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid #5a4828;
  border-radius: 4px;
  padding: 10px 12px;
}
.guild-card.danger {
  border-color: #8c281e;
}
.guild-card h4 {
  margin: 0 0 6px;
  color: #ffd24a;
  font-size: 13px;
}
.guild-card.danger h4 {
  color: #ff6b6b;
}
.donate-box {
  display: flex;
  gap: 8px;
  margin: 8px 0;
}
.donate-box input {
  width: 180px;
  height: 28px;
  background: #14120f;
  border: 1px solid #6b5530;
  border-radius: 3px;
  color: #fff;
  padding: 0 8px;
  font-size: 12px;
}
.upgrade-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px;
  border-radius: 3px;
}

/* Modal Bổ Nhiệm Chức Vụ */
.guild-action-cell {
  display: flex;
  gap: 6px;
  align-items: center;
}
.guild-promote-modal {
  min-width: 320px;
  max-width: 480px;
}
.promote-header {
  border-bottom: 1px solid #5a4828;
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.promote-header h3 {
  margin: 0;
  font-size: 14px;
  color: #ffd24a;
}
.promote-role-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}
.promote-role-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #4a3c22;
  border-radius: 4px;
  padding: 8px 10px;
  transition: all 0.15s;
}
.promote-role-item:hover:not(.disabled) {
  background: rgba(255, 210, 74, 0.08);
  border-color: #ffd24a;
}
.promote-role-item.selected {
  border-color: #ffd24a;
  background: rgba(255, 210, 74, 0.12);
}
.promote-role-item.disabled {
  opacity: 0.55;
}
.promote-role-item .role-icon {
  font-size: 20px;
  width: 28px;
  text-align: center;
}
.promote-role-item .role-info {
  flex: 1;
}
.promote-role-item .role-name-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.promote-role-item .role-name {
  font-weight: 700;
  font-size: 12.5px;
  color: #f0e6d2;
}
.promote-role-item .role-count {
  font-size: 11px;
  color: #aaa;
}
.promote-role-item .role-count.full {
  color: #ff5252;
}
.promote-role-item .role-current-tag {
  font-size: 10px;
  background: #3c7e3a;
  color: #fff;
  padding: 0 4px;
  border-radius: 2px;
}
.promote-role-item .role-desc {
  font-size: 11px;
  color: #8c8273;
  margin-top: 2px;
}
.promote-footer {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

/* Kỹ Năng Bang Hội (Guild Skills) */
.guild-skills-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guild-skills-header {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid #5a4828;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 12px;
}
.guild-skills-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
}
.guild-skill-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(18, 15, 11, 0.85);
  border: 1px solid #4a3c22;
  border-radius: 4px;
  padding: 8px 12px;
  transition: all 0.15s;
}
.guild-skill-card:hover {
  border-color: #ffd24a;
  background: rgba(255, 210, 74, 0.05);
}
.guild-skill-card.maxed {
  border-color: #8c733e;
  background: rgba(255, 210, 74, 0.03);
}
.gskill-icon {
  font-size: 24px;
  width: 32px;
  text-align: center;
}
.gskill-body {
  flex: 1;
}
.gskill-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.gskill-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffd24a;
}
.gskill-level {
  font-size: 11px;
  color: #a8a08d;
}
.gskill-desc {
  font-size: 11.5px;
  color: #b5ac9a;
  margin-bottom: 4px;
}
.gskill-stat-row {
  font-size: 11.5px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.gskill-cost-row {
  font-size: 11px;
  color: #888;
  margin-top: 3px;
}
.gskill-act {
  display: flex;
  align-items: center;
}

/* Tiệm Bang Hội (Guild Shop) */
.guild-shop-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guild-shop-header {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #5a4828;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 12px;
}
.shop-banner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.shop-user-wealth {
  display: flex;
  gap: 18px;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed rgba(255, 210, 74, 0.2);
}
.guild-shop-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
}
.guild-shop-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(18, 15, 11, 0.85);
  border: 1px solid #4a3c22;
  border-radius: 4px;
  padding: 8px 12px;
  transition: all 0.15s;
}
.guild-shop-card:hover {
  border-color: #ffd24a;
  background: rgba(255, 210, 74, 0.05);
}
.guild-shop-card.locked {
  opacity: 0.65;
  filter: grayscale(0.5);
}
.gshop-icon-box {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #554425;
  border-radius: 4px;
}
.gshop-icon {
  max-width: 34px;
  max-height: 34px;
  object-fit: contain;
  image-rendering: pixelated;
}
.gshop-owned {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #2a2215;
  border: 1px solid #ffd24a;
  color: #ffd24a;
  font-size: 9px;
  padding: 0 3px;
  border-radius: 3px;
  line-height: 12px;
}
.gshop-body {
  flex: 1;
}
.gshop-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.gshop-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffd24a;
}
.gshop-req-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid currentColor;
}
.gshop-req-badge.ok {
  color: #55ff55;
  border-color: rgba(85, 255, 85, 0.3);
  background: rgba(85, 255, 85, 0.1);
}
.gshop-req-badge.bad {
  color: #ff5a5a;
  border-color: rgba(255, 90, 90, 0.3);
  background: rgba(255, 90, 90, 0.1);
}
.gshop-desc {
  font-size: 11.5px;
  color: #b5ac9a;
  margin-bottom: 4px;
}
.gshop-price-row {
  font-size: 11.5px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.gshop-price-donate, .gshop-price-gold {
  font-weight: 600;
}
.gshop-act {
  display: flex;
  align-items: center;
}
.gshop-buy-btn {
  min-width: 65px;
}


/* Fix panel z-index so it sits above floating modeSw / topCtl and bottom buttons click reliably */
body.u20.u20win #panel {
  z-index: 120 !important;
}
body.u20 #t-more {
  padding-bottom: 40px !important;
}

.u2cb img{object-fit:contain!important}
