:root {
  --bg: #0e1113; --panel: rgba(20, 24, 27, .92); --line: #3a332a; --text: #ece4d4; --muted: #a39b8c;
  --gold: #d9a441; --gold2: #f3cf7a; --red: #d84a3a; --blue: #3d7fd8; --green: #8bc34a;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text);
  font: 14px/1.45 "Segoe UI", system-ui, sans-serif; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
/* anh 09/11 (người chơi iPad "đè vào nó nó copy"): iOS chỉ hiểu tiền tố -webkit-, trước chỉ body.dt có. Ô nhập chữ giữ chọn được để gõ; hình không nhấc lên kéo khi đè (iPadOS) */
input, textarea, [contenteditable] { user-select: text; -webkit-user-select: text; -webkit-touch-callout: default; }
#jxwin img, #jxhud img { -webkit-user-drag: none; }
#cv { position: fixed; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
button { font: inherit; color: var(--text); background: #2a2520; border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; cursor: pointer; }
button:hover { border-color: var(--gold); }
button.main { background: linear-gradient(#b8852f, #8a5f1c); border-color: #e0b35a; color: #fff6e0; font-weight: 600; padding: 8px 20px; }
button.ghost { background: transparent; }
input { font: inherit; color: var(--text); background: #15181a; border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; width: 100%; }
input:focus { outline: none; border-color: var(--gold); }
h1 { font-size: 22px; margin: 0 0 14px; color: var(--gold2); font-weight: 600; letter-spacing: .02em; }

.screen { position: fixed; inset: 0; display: none; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, #1d1a16 0%, #0b0c0d 75%); z-index: 5; }
.screen.on { display: flex; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 26px 30px; min-width: 320px; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.box.wide { width: min(920px, 94vw); }
#load-msg { color: var(--muted); margin: 0; }
/* màn trước khi game kịp dựng màn chờ (đang tải mã game) / báo lỗi tải: nền đen, chữ ở chỗ chữ của màn chờ (src/game/loading.js) cho đồng bộ */
#s-load { background: #000; align-items: flex-end; padding-bottom: calc(max(28px, 5vh) + 22px); box-sizing: border-box; }
#s-load .box { background: none; border: 0; box-shadow: none; padding: 0; min-width: 0; width: min(640px, calc(100vw - 32px)); }
#s-load h1 { display: none; }
#s-load #load-msg { color: #f3cf7a; font-weight: 600; text-shadow: 0 1px 2px #000; }

/* đăng nhập: ảnh nền anh chọn (28/10 — assets/ui/dang-nhap/login.webp, phủ kín màn hình, giữ tỉ lệ); viền tối mờ quanh mép + khung kính
   mờ trong suốt cho chữ đọc rõ mà vẫn thấy cảnh phía sau. Màn chọn máy chủ cùng kiểu, ảnh anh chọn 28/10 (assets/ui/chon-may-chu) */
#s-login, #s-doimk { background: #0b0c0d url("../../assets/ui/dang-nhap/login.webp") center / cover no-repeat; }
#s-server { background: #0b0c0d url("../../assets/ui/chon-may-chu/selectsever.webp") center / cover no-repeat; }
#s-login::before, #s-doimk::before, #s-server::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.3) 0%, rgba(0,0,0,.05) 45%, rgba(0,0,0,.45) 100%); }
#s-login .box, #s-doimk .box, #s-server .box { position: relative; background: rgba(12,14,16,.7); border-color: rgba(201,154,74,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
#s-doimk .lg-sv b { color: var(--gold2); font-weight: 600; }
#s-doimk .dm-note { margin: 0 0 14px; line-height: 1.45; }
#s-doimk .row { gap: 8px; }
#s-server .sv-win { position: relative; width: min(640px, 95vw); max-height: 92vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(16,14,12,.92), rgba(8,8,8,.94)); border: 2px solid #8a8378;
  box-shadow: 0 0 0 2px #090909, 0 12px 40px rgba(0,0,0,.85); color: #ece4d4; }
.sv-title { text-align: center; font-weight: 700; font-size: 15px; padding: 5px 12px; color: #f1e6cc; letter-spacing: .5px;
  background: linear-gradient(180deg, #3c3a37, #1d1c1a); border-bottom: 1.5px solid #6e685f; text-shadow: 0 1px 2px #000; }
.sv-body { display: grid; grid-template-columns: 1fr 1fr; min-height: 290px; max-height: calc(92vh - 76px);
  background: linear-gradient(180deg, rgba(14,12,10,.45), rgba(8,8,8,.65)), url("../../assets/ui/chon-may-chu/selectsever.webp") center / cover no-repeat; }
.sv-left { border-right: 1px solid rgba(150,140,125,.45); padding: 10px 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; }
.sv-cluster { text-align: left; padding: 4px 11px; border-radius: 12px; font-size: 12px; color: #e6dfd0;
  background: linear-gradient(180deg, #1b1a18, #0b0b0a); border: 1.5px solid #8c8478; box-shadow: inset 0 0 4px #000; }
.sv-cluster:hover { border-color: #d9a441; color: #fff; }
.sv-cluster.on { background: linear-gradient(180deg, #5d140e, #2b0705); border-color: #d2624c; color: #ffd99a; font-weight: 600; }
.sv-right { padding: 10px 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.sv-rhead { text-align: center; padding: 4px 8px; font-weight: 700; font-size: 12.5px; color: #4dd2ff;
  background: rgba(8,10,12,.86); border: 1.5px solid #756e64; text-shadow: 0 1px 3px #000; }
.sv-list { display: flex; flex-direction: column; gap: 5px; }
.sv-item { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.sv-name { flex: 1; min-width: 0; text-align: left; padding: 4px 10px; border-radius: 12px; font-size: 12px; color: #e8e0d0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(180deg, #1b1a18, #0b0b0a); border: 1.5px solid #8c8478; }
.sv-item:hover .sv-name { border-color: #d9a441; color: #fff; }
.sv-item.on .sv-name { background: linear-gradient(180deg, #621610, #2e0805); border-color: #d2624c; color: #ff8e62; font-weight: 700; }
.sv-bars { display: flex; gap: 2px; align-items: center; flex-shrink: 0; padding: 2px 4px; background: rgba(0,0,0,.65); border: 1px solid #3f3b35; }
.sv-bars i { display: block; width: 3px; height: 9px; background: linear-gradient(180deg, #8df55b, #2c9618); border-radius: 1px; }
.sv-item.off .sv-name { opacity: .65; }
.sv-item.off .sv-bars i { background: #555; }
.sv-err { margin-top: 6px; font-size: 11.5px; color: #ff8a7a; text-align: center; min-height: 1.2em; }
.sv-foot { display: grid; grid-template-columns: 1fr 1fr; border-top: 1.5px solid #6e685f; background: #141311; }
.sv-btn { border-radius: 0; border: 0; padding: 8px 12px; font-size: 14px; font-weight: 700; color: #d8d0c0;
  background: linear-gradient(180deg, #32302d, #191816); }
.sv-btn + .sv-btn { border-left: 1.5px solid #6e685f; }
.sv-btn:hover { filter: brightness(1.18); border-color: transparent; }
.sv-btn.go { background: linear-gradient(180deg, #211f1b, #0c0b09); color: #f6d56f; }
@media (max-height: 460px) {
  .sv-body { min-height: 220px; }
  .sv-left, .sv-right { padding: 8px 10px; }
}
.login { width: min(360px, calc(100vw - 32px)); min-width: 0; }
.login label { display: block; margin-bottom: 12px; color: var(--muted); }
.login input { margin-top: 4px; }
.lg-tabs { display: flex; gap: 8px; margin: -6px 0 14px; border-bottom: 1px solid rgba(201,154,74,.3); }
.lg-tab { flex: 1; padding: 6px 4px 8px; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s; }
.lg-tab:hover { color: #fff; }
.lg-tab.active { color: var(--gold2); border-bottom-color: var(--gold2); text-shadow: 0 0 8px rgba(243,207,122,.4); }
.lg-sv { color: var(--muted); margin: -8px 0 16px; }
#s-login .lg-sv { display: none; }
.lg-err { color: #ff8a7a; min-height: 1.3em; margin-bottom: 4px; }
.lg-note { color: var(--muted); font-size: 12px; margin: 14px 0 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { text-align: left; padding: 16px; border-radius: 8px; background: #1b1814; }
.card b { display: block; font-size: 17px; color: var(--gold2); margin-bottom: 4px; }
.card small { display: block; color: var(--muted); }

.row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--muted); }
.row.end { justify-content: flex-end; margin: 6px 0 0; }

.hud { position: fixed; inset: 0; pointer-events: none; display: none; z-index: 3; }
.hud.on { display: block; }
.hud > * { pointer-events: auto; }

/* ---------- font giao diện của bản 2: IBM Plex Mono (assets/ui/fonts, SIL OFL 1.1) ---------- */
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../../assets/ui/fonts/ibm-plex-mono-400-vietnamese.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../../assets/ui/fonts/ibm-plex-mono-400-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../../assets/ui/fonts/ibm-plex-mono-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root { --font: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; }
html, body, button, input, select { font-family: var(--font); }

/* ---------- màn chọn nhân vật (theo bản 2 js/csel.js) ---------- */
.screen.csel { flex-direction: column; justify-content: space-between; color: #f5ebd2; overflow-x: hidden; overflow-y: auto; padding: 12px 12px 14px;
  background: radial-gradient(ellipse at 50% 60%, rgba(4,18,14,.3) 0%, rgba(2,10,8,.92) 100%), url(../../assets/ui/chon_nv/nen_van_ngoc.webp) center / cover no-repeat #071412; }
.csel .cs-top { text-align: center; }
.csel h1 { margin: 2px 0 0; font-size: clamp(20px, 3.4vw, 32px); letter-spacing: 3px; color: #ffe090; text-shadow: 0 0 15px #c8902a, 0 2px 4px #000; font-weight: bold; text-transform: uppercase; }
.csel .cs-sub { font-size: 13px; color: #dac48c; letter-spacing: 1.5px; margin-top: 2px; }
.csel .cs-row { display: flex; gap: clamp(12px, 3.5vw, 44px); justify-content: center; align-items: flex-end; width: 100%; max-width: 820px; flex: 1; min-height: 0; padding-top: 6px; }
.csel .cs-slot { flex: 1; max-width: 210px; display: flex; flex-direction: column; align-items: center; cursor: pointer; position: relative; padding: 0 4px 6px;
  transition: filter .25s, transform .25s; filter: brightness(.68) saturate(.75); }
.csel .cs-slot:hover { filter: brightness(.92) saturate(.95); transform: translateY(-4px); }
.csel .cs-slot.on { filter: brightness(1.1) drop-shadow(0 0 22px rgba(255,210,80,.7)); transform: translateY(-6px) scale(1.03); }
.csel .cs-head { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 38px; width: 100%; text-align: center; margin-bottom: 4px; pointer-events: none; }
.csel .nm { font-weight: bold; font-size: clamp(13px, 2.8vw, 17px); text-shadow: 0 2px 5px #000, 0 0 8px rgba(0,0,0,.8); letter-spacing: .5px; line-height: 1.25; }
.csel .lv { font-size: clamp(11px, 2.2vw, 12.5px); color: #ded2b2; text-shadow: 0 1px 3px #000; line-height: 1.25; margin-top: 2px; }
.csel .cs-body { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; }
@keyframes csWalk { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.csel .cs-char { width: clamp(115px, 18vw, 190px); aspect-ratio: 1 / 1; max-height: 38vh; position: relative; overflow: hidden; }
.csel .cs-char i { position: absolute; left: 0; top: 0; height: 100%; background-repeat: no-repeat; background-size: 100% 100%; }
.csel .ped { width: 78%; height: 24px; margin-top: -14px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(245,190,75,.75) 0%, rgba(160,105,30,.45) 45%, rgba(0,0,0,0) 72%); box-shadow: 0 0 18px rgba(230,160,50,.4); }
.csel .cs-slot.on .ped { background: radial-gradient(ellipse at 50% 50%, rgba(255,235,150,.95) 0%, rgba(230,155,45,.7) 45%, rgba(0,0,0,0) 74%);
  box-shadow: 0 0 30px rgba(255,195,75,.85), inset 0 0 12px rgba(255,235,160,.6); }
.csel .plus { width: 52px; height: 52px; border-radius: 50%; margin: 28px 0 18px; display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 300; line-height: 1; color: #eed58a; background: radial-gradient(#251b11cc, #0e0a06ee);
  border: 1.5px solid #a88544; box-shadow: 0 0 18px rgba(0,0,0,.8), 0 0 12px rgba(238,213,138,.25); transition: transform .2s, color .2s, border-color .2s; }
.csel .cs-slot:hover .plus { transform: scale(1.12); color: #fff4d0; border-color: #ffd875; box-shadow: 0 0 22px rgba(255,216,117,.5); }
.csel .cs-panel { width: 100%; max-width: 480px; background: linear-gradient(135deg, rgba(28,20,12,.95), rgba(12,16,14,.95)); border: 1.5px solid #b58c48; border-radius: 8px;
  box-shadow: 0 0 0 2px #0a0805, 0 8px 30px rgba(0,0,0,.85); padding: 8px 14px; margin-top: 6px; }
.csel .cs-info { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 3px 12px; font-size: 12.5px; }
.csel .cs-info .k { color: #caa868; }
.csel .cs-empty { text-align: center; color: #d5c5a0; font-size: 12.5px; }
.csel .cs-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.csel .cs-btns button { min-width: 105px; padding: 6px 14px; font-weight: bold; border-radius: 5px; border: 1px solid #a07a34; background: linear-gradient(#5a3f1c, #2e1f0d);
  color: #f3dfae; font-size: 13px; transition: filter .15s, transform .15s; }
.csel .cs-btns button:hover { filter: brightness(1.18); transform: translateY(-1px); }
.csel .cs-btns button.go { background: linear-gradient(#c28e30, #6d4712); color: #fff8e2; border-color: #ffd875; min-width: 132px; font-size: 13.5px; box-shadow: 0 0 12px rgba(255,216,117,.35); }
.csel .cs-btns button.red { background: linear-gradient(#78251a, #38110c); border-color: #b84c3d; }
.csel .cs-warn { color: #ff9a7a; text-align: center; font-size: 13px; margin-top: 8px; }
/* nhân vật vừa bấm ủy thác (Esc → Ủy thác — anh 11/11, main.js utDang) */
.csel .cs-ut { color: #9be39b; text-align: center; font-size: 13px; line-height: 1.5; margin-top: 8px; }
.csel .cs-ut b { color: #ffe27a; }
.csel .cs-info .wide { grid-column: span 3; }

/* ---------- màn tạo nhân vật (theo bản 2 js/ui.js pickFaction) ---------- */
/* nền: ảnh anh chọn 28/10 (assets/ui/tao_nv/newchar.webp — sân đá tròn giữa cảnh núi lúc hoàng hôn; bản trước v3/nen_tao_nv.webp); mép trên /
   dưới tối nhẹ để chữ tiêu đề + khung tên đọc rõ trên nền trời sáng */
.screen.cc { flex-direction: column; justify-content: space-between; align-items: stretch; color: #f5ebd2; overflow: hidden;
  background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,0) 22%, rgba(0,0,0,0) 72%, rgba(0,0,0,.4)),
    url(../../assets/ui/tao_nv/newchar.webp) center / cover no-repeat #000; }
.cc-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px 0; }
.cc-title { font-size: clamp(16px, 2.2vw, 22px); font-weight: bold; color: #fce49f; letter-spacing: 3px; text-shadow: 0 0 10px #b8781a, 0 2px 4px #000; text-transform: uppercase; }
.cc-ver { font-size: 13px; color: #d8ccb0; opacity: .85; letter-spacing: 1px; }
.cc-mid { flex: 1; display: flex; align-items: center; justify-content: space-around; position: relative; padding: 0 2vw; max-height: calc(100vh - 160px); }
@keyframes ccWalk { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.cc-char { position: relative; width: clamp(200px, 28vw, 360px); aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  cursor: pointer; transition: transform .2s, filter .2s; }
.cc-char:hover { transform: scale(1.02); }
.cc-vp { width: 100%; height: 100%; position: relative; overflow: hidden; }
.cc-vp i { position: absolute; left: 0; top: 0; height: 100%; background-repeat: no-repeat; background-size: 100% 100%; }
.cc-char.active .cc-vp { filter: drop-shadow(0 0 16px rgba(255,215,80,.75)) drop-shadow(0 0 32px rgba(255,255,255,.4)); }
.cc-char.inactive { filter: grayscale(100%) brightness(.65) opacity(.8); }
.cc-tag { position: absolute; bottom: -8px; font-weight: bold; font-size: clamp(13px, 1.6vw, 16px); letter-spacing: 2px; padding: 4px 18px; border-radius: 14px;
  background: rgba(0,0,0,.75); border: 1.5px solid #a88344; color: #f3dfa7; box-shadow: 0 0 10px rgba(0,0,0,.8); pointer-events: none; z-index: 5; }
.cc-char.active .cc-tag { background: linear-gradient(#b8862e, #553408); border-color: #ffe682; color: #fff; box-shadow: 0 0 12px rgba(255,215,80,.6); }
.cc-pillar { position: relative; z-index: 10; padding: 10px 0; }
.cc-pillar #cc-series { display: flex; flex-direction: column; align-items: center; gap: clamp(6px, 1.5vh, 14px); }
.cc-glow { position: absolute; top: -10%; bottom: -10%; left: 50%; width: 36px; margin-left: -18px; pointer-events: none; filter: blur(4px);
  background: radial-gradient(ellipse at center, rgba(255,235,160,.3) 0%, rgba(255,215,80,.1) 40%, rgba(255,255,255,0) 80%); }
.cc-se { width: clamp(48px, 6.5vw, 64px); height: clamp(48px, 6.5vw, 64px); border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0;
  background: radial-gradient(circle, rgba(20,20,20,.85) 0%, rgba(5,5,5,.95) 100%); border: 2px solid #5a462b; color: #a89472;
  font-size: clamp(14px, 1.8vw, 18px); font-weight: bold; transition: all .2s; box-shadow: 0 4px 10px rgba(0,0,0,.7); }
.cc-se:hover { transform: scale(1.1); filter: brightness(1.2); }
.cc-se.active { border-color: #ffd875; color: #fff; transform: scale(1.14); box-shadow: 0 0 20px rgba(255,216,117,.75), inset 0 0 10px rgba(255,216,117,.5); }
.cc-se.s-0.active { background: radial-gradient(circle, #b88a28 0%, #4a3407 100%); border-color: #ffe48a; }
.cc-se.s-1.active { background: radial-gradient(circle, #2e8a3a 0%, #0d3813 100%); border-color: #8aff96; }
.cc-se.s-2.active { background: radial-gradient(circle, #1e6fa8 0%, #082d47 100%); border-color: #7adaff; }
.cc-se.s-3.active { background: radial-gradient(circle, #b33924 0%, #4a1107 100%); border-color: #ff907a; }
.cc-se.s-4.active { background: radial-gradient(circle, #a87630 0%, #422d0e 100%); border-color: #f7cb79; }
.cc-bot { display: flex; flex-direction: column; align-items: center; padding: 0 12px 14px; z-index: 10; }
.cc-desc { max-width: 760px; width: 95%; background: rgba(8,12,10,.72); border: 1.5px solid #6b5534; border-radius: 6px; padding: 8px 16px; text-align: center;
  box-shadow: 0 0 18px rgba(0,0,0,.9); margin-bottom: 10px; }
#cc-detail { color: #7ef18c; font-size: clamp(12px, 1.4vw, 14px); line-height: 1.45; text-shadow: 0 1px 2px #000; }
#cc-detail s { opacity: .45; }
.cc-warn { color: #ff786b; font-weight: bold; font-size: 12px; }
.cc-warn:not(:empty) { margin-top: 4px; }
.cc-bar { max-width: 760px; width: 95%; display: flex; align-items: center; background: url(../../assets/ui/tao_nv/nen.webp) center / cover; border: 2px solid #ab8240;
  border-radius: 4px; box-shadow: 0 0 20px rgba(0,0,0,.95); overflow: hidden; padding: 3px; }
.cc-bar button { padding: 8px 24px; border: none; background: transparent; color: #fce49f; font-weight: bold; font-size: clamp(14px, 1.8vw, 16px);
  text-shadow: 0 0 4px #000; letter-spacing: 1px; transition: filter .15s; }
.cc-bar button:hover { filter: brightness(1.3); }
.cc-bar button.ok { padding: 8px 28px; color: #ffe882; letter-spacing: 2px; }
.cc-bar button.ok:disabled { color: #888; cursor: default; filter: none; }
.cc-name { flex: 1; display: flex; align-items: center; background: rgba(240,240,230,.92); border-radius: 3px; margin: 0 6px; padding: 0 10px; height: 38px;
  box-shadow: inset 0 1px 4px rgba(0,0,0,.5); }
.cc-name span { color: #2a2016; font-weight: bold; font-size: clamp(13px, 1.5vw, 15px); white-space: nowrap; margin-right: 8px; letter-spacing: 1px; }
.cc-name input { flex: 1; border: none; background: transparent; color: #111; font-size: clamp(13px, 1.5vw, 15px); font-weight: bold; outline: none; width: 100%; padding: 0; }
.cc-err { color: #ff9a7a; font-size: 13px; min-height: 18px; margin-top: 6px; text-shadow: 0 1px 2px #000; }

/* ---------- giao diện trong game giống client PC (src/game/hud.js, assets/ui/hud) ---------- */
:root { --jx: "VK Sans Serif 13", "IBM Plex Mono", monospace; }
#jxhud { position: fixed; inset: 0; pointer-events: none; z-index: 3; font: 13px/13px var(--jx); color: #fff; }
#jxhud .jx-top { position: absolute; top: 0; left: 50%; transform-origin: top center; background-repeat: no-repeat; pointer-events: auto; }
#jxhud .jx-bot { position: absolute; bottom: 0; left: 50%; transform-origin: bottom center; background-repeat: no-repeat; pointer-events: none; }
#jxhud .jx-top > div, #jxhud .jx-bot > * { position: absolute; }
#jxhud .jx-bot > * { pointer-events: auto; }
#jxhud .jx-logo { color: rgb(255,217,78); white-space: nowrap; line-height: 13px; }
#jxhud .jx-lv, #jxhud .jx-rank { text-align: center; line-height: 13px; color: #fff; }
#jxhud .jx-rank { pointer-events: auto; cursor: pointer; }
#jxhud .jx-bar { overflow: hidden; }
#jxhud .jx-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; }
#jxhud .jx-bar span { position: absolute; inset: 0; text-align: center; line-height: 11px; white-space: nowrap;
  text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000; }
#jxhud .jx-btn { background-repeat: no-repeat; cursor: pointer; }
#jxhud .jx-slot { cursor: pointer; }
#jxhud .jx-slot:hover { box-shadow: inset 0 0 0 1px rgba(255,230,120,.55); }
/* 9 ô phím tắt 1–9 (thuốc — src/game/main.js quick*): icon giữa ô, số bình góc dưới phải, ngưỡng tự uống góc trên trái; hết bình: tối */
#jxhud .jx-slot .jx-qi { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
#jxhud .jx-slot .jx-qn, #jxhud .jx-slot .jx-qa { position: absolute; font: 13px/13px var(--jx); font-style: normal; font-weight: normal; pointer-events: none; text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000, 1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000; }
#jxhud .jx-slot .jx-qn { right: 2px; bottom: 1px; color: #fff; }
#jxhud .jx-slot .jx-qa { left: 1px; top: 1px; color: rgb(255,217,78); }
#jxhud .jx-slot.empty .jx-qi { filter: grayscale(1) brightness(.55); }
/* hồi chiêu (hud.setCooldowns): quạt tối quét theo chiều kim đồng hồ + số giây còn ở giữa */
#jxhud .jx-slot .jx-cd { position: absolute; inset: 1px; pointer-events: none; display: flex; align-items: center; justify-content: center;
  font: 13px/13px var(--jx); font-style: normal; color: #fff; text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000, 1px 1px #000, -1px -1px #000; }
#jxhud .jx-inback { background-repeat: no-repeat; pointer-events: none; }
#jxhud .jx-input { background: transparent; border: 0; outline: 0; padding: 0; font: 13px/15px var(--jx); caret-color: #fff; }
.jx-menu { position: fixed; z-index: 6; background: rgba(8,14,12,.92); border: 1px solid #3c6e58; box-shadow: 0 0 0 1px #000, 0 6px 18px rgba(0,0,0,.7);
  font: 13px/13px var(--jx); color: #fff; padding: 4px 0; min-width: 150px; }
.jx-menu div { padding: 4px 12px; cursor: pointer; white-space: nowrap; }
.jx-menu div:hover { background: #1f4a3a; color: rgb(255,217,78); }
/* menu người chơi (Ctrl + chuột phải / điện thoại chạm giữ người chơi — main.js menuNguoi): dòng tên không bấm được */
.jx-menu.jx-nguoi .dau, .jx-menu.jx-nguoi .dau:hover { cursor: default; background: none; color: rgb(255,217,78); border-bottom: 1px solid #3c6e58; margin-bottom: 2px; }
.jx-menu.jx-nguoi small { color: #9aa79f; font: inherit; }
body.dt .jx-menu.jx-nguoi { min-width: 190px; font: 15px/15px var(--jx); }
body.dt .jx-menu.jx-nguoi div { padding: 10px 16px; }

/* bản đồ nhỏ (小地图_小.ini) */
#jxhud .jx-mm canvas { display: block; width: 100%; height: 100%; cursor: crosshair; }
#jxhud .jx-mm-shadow { pointer-events: none; }
#jxhud .jx-mm-name { cursor: pointer; line-height: 14px; white-space: nowrap; overflow: hidden; text-shadow: 1px 1px #000; }
#jxhud .jx-mm-name:hover { color: rgb(0,255,255) !important; }
#jxhud .jx-mm-pos { cursor: pointer; text-align: center; line-height: 14px; text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000; }
#jxhud .jx-mm-pos:hover { color: rgb(255,255,0) !important; }
#jxhud .jx-mm-input { position: absolute; display: none; font: 13px/14px var(--jx); color: rgb(0,255,255); background: rgba(0,0,0,.75); border: 1px solid rgb(255,0,0); outline: 0; padding: 0 2px; text-align: center; }
#jxhud .jx-auto { cursor: pointer; text-align: right; line-height: 13px; color: #9fe36a; text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000; }
#jxhud .jx-auto.off { color: #9a9a9a; }
/* khung chat nhiều kênh (消息集合面板_左.ini): tin dồn xuống đáy như client (TextBottom=1) */
#jxhud .jx-strip { background-repeat: no-repeat; }
#jxhud .jx-chat, #jxhud .jx-sys { display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: none; line-height: 14px; word-break: break-word; }
#jxhud .jx-chat::-webkit-scrollbar, #jxhud .jx-sys::-webkit-scrollbar { display: none; }
#jxhud .jx-chat > :first-child, #jxhud .jx-sys > :first-child { margin-top: auto; }
#jxhud .jx-chat.shade { background: rgba(0,0,0,.45); }
/* chữ khung chat (anh 31/10: "phần text này khá khó đọc" -> bản Tahoma 15 đậm viền đen: "xấu quá, nhìn như đấm vô mắt" -> anh chọn kiểu 2 trong
   ảnh so 4 kiểu): giữ font client, bóng đen 1 điểm, nền tối mờ sau khung (đậm bên trái, nhạt dần sang phải) cho chữ nổi trên cảnh; ô "Nền chat"
   (.shade) vẫn đè nền đều. Khung tin hệ thống (.jx-sys) bỏ viền đen 4 phía cũ — đã có nền, dùng chung bóng 1 điểm như ảnh anh chọn */
#jxhud .jx-chat, #jxhud .jx-sys { font: 13px/15px var(--jx); text-shadow: 1px 1px 0 #000; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.35) 75%, rgba(0,0,0,.08)); }
#jxhud .jx-chat i, .jx-chmenu i { display: inline-block; vertical-align: -2px; margin-right: 2px; background-repeat: no-repeat; }
/* lời mời tổ đội trong ô tin hệ thống (anh 06/11 — hud.js moiDoi; client HitText: chữ bấm được, ô chọn sáng 255,249,148 alpha 60; "Đồng ý" đỏ như
   NormalMsgColor của 系统消息.ini) + biểu tượng 组队 24 × 24 ở góc phải dưới trên nút Bảo vật (anh 06/11 chiều "cái icon này bỏ góc này đi em" —
   trước ở cuối dòng ô tin hệ thống; nhấp nháy khung 0 ↔ 1 khi có lời mời chưa xem; số nhỏ khi ≥ 2 lời mời). Bấm biểu tượng: bảng .jx-moip — mỗi
   lời mời 1 dòng như ô tin hệ thống (nền tối như dải tin client, chữ bấm), neo đáy + mép phải ngay bên trái biểu tượng (biểu tượng đè 4 điểm như
   ảnh client), nhiều dòng thì dài lên trên; không mở khung giữa màn hình ("làm đơn giản chứ đừng mở hẳn 1 pop up") */
#jxhud .jx-sys .moi a, #jxhud .jx-moip .moi a { cursor: pointer; padding: 0 2px; white-space: nowrap; } /* chữ bấm không bị ngắt giữa ("Cự | tuyệt") — tràn thì cả chữ xuống dòng */
#jxhud .jx-sys .moi a[data-v="nhan"], #jxhud .jx-moip .moi a[data-v="nhan"] { color: rgb(255,0,0); }
#jxhud .jx-sys .moi:not(.tat) a:hover, #jxhud .jx-moip .moi a:hover { background: rgba(255,249,148,.24); }
#jxhud .jx-sys .moi.tat a { cursor: default; opacity: .6; }
#jxhud .jx-moip { display: none; z-index: 1; font: 13px/15px var(--jx); color: rgb(255,249,148); text-shadow: 1px 1px 0 #000; white-space: nowrap; text-align: right; }
#jxhud .jx-moip.hien { display: block; }
#jxhud .jx-moip .moi { margin-top: 1px; padding: 1px 10px 1px 6px; background: rgba(0,0,0,.6); }
#jxhud .jx-tinic { display: none; cursor: pointer; z-index: 2; background-repeat: no-repeat; background-position: 0 0; }
#jxhud .jx-tinic.hien { display: block; }
#jxhud .jx-tinic.nhay, #dt .dt-moidoi.nhay > i { animation: jx-tinic 1s steps(1, end) infinite; }
@keyframes jx-tinic { 0% { background-position: 0 0; } 50% { background-position: -24px 0; } }
#jxhud .jx-tinic b { position: absolute; right: -3px; bottom: -3px; font: 11px/11px var(--jx); color: #fff; text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000; pointer-events: none; }
/* biểu cảm (bieucam.js — client \Ui\表情大全.ini, bảng chọn ui\ui3\表情符号选择窗口.ini): hình trong dòng chat chạy dải khung (--n khung, --w bề
   ngang 1 khung, thời gian / khung = Interval của .spr); bảng chọn ô 26 × 26 (điện thoại 39, mặt phóng 1,5 — dễ chạm), nền / viền / ô dưới chuột màu của ini */
.bc { display: inline-block; vertical-align: middle; background: no-repeat 0 0; }
.bc.chay { animation: bc-chay 1s steps(var(--n)) infinite; }
@keyframes bc-chay { to { background-position-x: calc(var(--w) * var(--n) * -1); } }
#jxhud .jx-chat i.bc, #dt .dt-clist i.bc, #dt .dt-tin i.bc { vertical-align: middle; margin: 0 1px; }
/* khoe đồ (anh 12/11 — hud.js _khoeHtml): chữ <tên đồ> của tin — rê / chạm xem món */
.jx-khoe { cursor: pointer; }
/* Ủng hộ duy trì máy chủ (anh 13/11 — mẫu A tối viền vàng, cùng tông màn đăng nhập; src/game/ungho-qr.js) — dòng dưới khung đăng nhập + khung 4 bước */
.lg-ungho { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(201,154,74,.35); text-align: center; }
.lg-ungho-nut { background: transparent; border: 1px solid rgba(201,154,74,.6); color: #f3d38a; font-weight: 700; border-radius: 16px; padding: 7px 14px; cursor: pointer; }
.lg-ungho-nut:hover { background: rgba(201,154,74,.15); }
.lg-ungho-chu { margin-top: 6px; font-size: 12px; color: #b9ad93; }
/* Ủng hộ ở màn Chọn nhân vật (anh 13/11 tối — Mẫu A): góc trên-phải màn; cửa sổ hẹp / điện thoại dọc: dưới dòng tiêu đề */
.csel .cs-ungho { position: absolute; top: 18px; right: 24px; z-index: 3; text-align: right; }
.csel .cs-ungho-nut { background: rgba(10,8,4,.55); border: 1px solid rgba(201,154,74,.7); color: #f3d38a; font: inherit; font-size: 14px; font-weight: 700; border-radius: 18px; padding: 9px 16px; cursor: pointer; box-shadow: 0 0 12px rgba(0,0,0,.6); }
.csel .cs-ungho-nut:hover { background: rgba(201,154,74,.18); }
.csel .cs-ungho small { display: block; margin-top: 5px; font-size: 11px; color: #c9bda0; text-shadow: 0 1px 2px #000; }
@media (max-width: 900px) { .csel .cs-ungho { position: static; margin-top: 6px; text-align: center; } .csel .cs-ungho-nut { font-size: 12px; padding: 5px 12px; } .csel .cs-ungho small { display: none; } }
.uhq { position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; font: 14px/20px "Segoe UI", sans-serif; }
.uhq-hop { width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; background: rgba(14,16,18,.95); border: 1px solid rgba(201,154,74,.75); border-radius: 12px;
  box-shadow: 0 12px 50px rgba(0,0,0,.6); color: #e8e2d0; }
.uhq-dau { background: linear-gradient(#3a2a12,#21170a); color: #f3d38a; padding: 12px 16px; font-weight: 700; display: flex; justify-content: space-between; position: sticky; top: 0; }
.uhq-x { cursor: pointer; opacity: .8; } .uhq-x:hover { opacity: 1; }
.uhq-than { padding: 14px 18px 16px; } .uhq-than p { margin: 0 0 8px; }
.uhq-buoc { font-size: 12px; color: #b9ad93; margin-bottom: 6px; }
.uhq-nut { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.uhq-b { padding: 8px 18px; border-radius: 18px; font-weight: 700; background: rgba(255,255,255,.08); color: #e8e2d0; cursor: pointer; user-select: none; }
.uhq-b.chinh { background: linear-gradient(#b8852f,#8a5f1c); color: #fff6e0; border: 1px solid #e0b35a; }
.uhq-b:hover { filter: brightness(1.15); }
.uhq-ten { width: 100%; box-sizing: border-box; margin: 4px 0 10px; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(201,154,74,.6); background: rgba(255,255,255,.06); color: #fff; font-size: 15px; }
.uhq-xung, .uhq-kenh { display: flex; gap: 8px; justify-content: center; } .uhq-kenh { margin-bottom: 10px; }
.uhq-qr { width: 200px; margin: 0 auto 6px; background: #fff; border-radius: 10px; padding: 8px; box-sizing: border-box; text-align: center; }
.uhq-qr img { display: block; width: 100%; height: auto; } .uhq-qr-thieu { display: none; color: #555; font-size: 12px; padding: 30px 6px; }
.uhq-qr.thieu img { display: none; } .uhq-qr.thieu .uhq-qr-thieu { display: block; }
.uhq-o { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.06); border: 1px solid rgba(201,154,74,.35); border-radius: 8px; padding: 6px 10px; margin-top: 6px; }
.uhq-n { font-size: 11px; color: #b9ad93; } .uhq-v { font-weight: 700; word-break: break-all; }
.uhq-chep { font-size: 12px; padding: 3px 10px; border-radius: 10px; background: linear-gradient(#b8852f,#8a5f1c); color: #fff6e0; cursor: pointer; white-space: nowrap; margin-left: 8px; }
.uhq-ghi { font-size: 12px; color: #b9ad93; margin-top: 8px; }
.uhq-loi { color: #ff8a80; min-height: 18px; margin-top: 6px; font-size: 13px; text-align: center; }
/* tên người nói ở khung chat: Ctrl + bấm (điện thoại: chạm) để nhắn tin mật (anh 13/11 — hud.js _dauTin / datMat) */
.jx-ten { cursor: pointer; }
.jx-ten:hover { text-decoration: underline; }
.jx-khoe:hover { text-decoration: underline; }
.bc-chon { position: fixed; z-index: 7; display: grid; --o: 26px; border: 1px solid; box-shadow: 0 0 0 1px #000, 0 6px 18px rgba(0,0,0,.7); }
.bc-chon > div { width: var(--o); height: var(--o); display: grid; place-items: center; cursor: pointer; }
.bc-chon > div:hover { background: var(--re); }
.bc-chon > div.trong, .bc-chon > div.trong:hover { cursor: default; background: none; }
.bc-chon > div > i { display: block; background: no-repeat 0 0; }
/* điện thoại (anh 31/10: "màn dọc hơi nhỏ" — bản trước ô 34, mặt cỡ gốc 20): ô 39, mặt + nút nhiều / ít hơn phóng 1,5 (giữa ô — không đổi chỗ) */
body.dt .bc-chon { --o: 39px; z-index: 9; }
body.dt .bc-chon > div > i { transform: scale(1.5); }
#jxhud .jx-tab { cursor: pointer; text-align: center; line-height: 13px; white-space: nowrap; }
#jxhud .jx-tab:hover { color: #fff !important; }
/* ghim của quản trị (anh 03/11 chọn kiểu 1 — hud.js _veGhim): đầu danh sách chat, × ẩn trên máy này */
#jxhud .jx-ghim { z-index: 3; box-sizing: border-box; padding: 2px 16px 3px 4px; font: 13px/15px var(--jx); text-shadow: 1px 1px 0 #000; word-break: break-word;
  background: rgba(36,22,6,.88); border-bottom: 1px solid rgba(214,170,90,.85); color: rgb(255,217,78); }
#jxhud .jx-ghim b { color: #ff9a3c; font-weight: normal; }
#jxhud .jx-ghim .x { position: absolute; right: 4px; top: 1px; color: #bbb; cursor: pointer; }
#jxhud .jx-ghim .x:hover { color: #fff; }
#jxhud .jx-chbtn { cursor: pointer; background-repeat: no-repeat; background-position: center; }
.jx-chmenu { background: rgb(32,32,32); min-width: 180px; }
.jx-chmenu div { display: flex; align-items: center; gap: 4px; padding: 2px 8px; }
.jx-chmenu i { width: 21px; height: 21px; }
.jx-menu div.on { color: rgb(255,217,78); }
.jx-menu div.khoa, .jx-menu div.khoa:hover { color: #6f7a74; background: none; cursor: default; } /* bãi chưa đủ cấp */

/* ---------- mộc nhân luyện công (src/game/mocnhan.js): bảng DPS + chỉnh kháng, hiện khi đứng gần mộc nhân ở Ba Lăng ---------- */
.mn { position: fixed; z-index: 4; left: 8px; top: 40px; width: 330px; max-width: calc(100vw - 16px); display: none; background: rgba(8,14,12,.9);
  border: 1px solid #3c6e58; box-shadow: 0 0 0 1px #000, 0 6px 18px rgba(0,0,0,.6); font: 13px/16px var(--jx); color: #fff; }
.mn.on { display: block; }
.mn-head { display: flex; align-items: center; gap: 3px; padding: 4px 6px; border-bottom: 1px solid #3c6e58; background: rgba(31,74,58,.45); }
.mn-head b { color: rgb(255,217,78); margin-right: auto; font-weight: normal; }
.mn button { font: 12px/12px var(--jx); padding: 3px 6px; border-radius: 2px; background: #16302a; border: 1px solid #3c6e58; color: #fff; cursor: pointer; }
.mn button:hover { color: rgb(255,217,78); border-color: #6aa88c; }
.mn table { width: 100%; border-collapse: collapse; }
.mn th { color: #9fc9b5; font-weight: normal; padding: 3px 4px; text-align: right; }
.mn td { padding: 2px 4px; text-align: right; font-variant-numeric: tabular-nums; }
.mn th:first-child, .mn td:first-child { text-align: left; }
.mn-dps { margin: 2px 0; }
.mn-dps tr.mn-sum td { border-top: 1px solid #24443a; color: rgb(255,217,78); }
.mn-khang { display: none; border-top: 1px solid #24443a; padding: 4px 4px 2px; }
.mn.khang .mn-khang { display: block; }
.mn-khang td:first-child { white-space: nowrap; color: #9fc9b5; }
.mn-khang input { width: 44px; font: 12px/14px var(--font); padding: 1px 3px; border-radius: 2px; background: #0b1512; border: 1px solid #3c6e58; color: #fff; text-align: right; }
.mn-r { display: flex; align-items: center; gap: 4px; margin: 5px 0 2px; color: #9fc9b5; }
.mn-r input { width: 48px; font: 12px/14px var(--font); padding: 1px 3px; background: #0b1512; border: 1px solid #3c6e58; color: #fff; }
.mn-note { color: #9fc9b5; font: 11px/14px var(--font); padding: 2px 6px 4px; }
.mn.thu table, .mn.thu .mn-khang, .mn.thu .mn-note { display: none; }

/* ---------- công cụ thử / GM (src/game/devtool.js & quantri.js) ---------- */
.dv { position: fixed; z-index: 7; left: 8px; top: 24px; width: 400px; max-height: calc(100vh - 250px); min-height: 200px; display: none; flex-direction: column;
  background: rgba(11,18,16,.96); border: 1.5px solid #4e876e; border-radius: 8px; box-shadow: 0 0 0 1px #000, 0 12px 32px rgba(0,0,0,.85);
  font: 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #eef5f1; overflow: hidden; }
.dv.dv-gmtool { left: 50%; top: 18px; transform: translateX(-50%); width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 48px); min-height: 240px; }
.dv.on { display: flex; }
.dv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid #355e4c;
  background: linear-gradient(180deg, rgba(31,74,58,.82), rgba(17,40,32,.9)); cursor: move; user-select: none; }
.dv-head b { color: #ffe48a; font-size: 14px; font-weight: 700; letter-spacing: .2px; margin-right: auto; }
.dv-head .dv-close, .dv-head > button[data-act="dong"] {
  margin-left: auto; min-width: 28px; height: 26px; padding: 0 8px; border-radius: 5px;
  background: rgba(145, 42, 42, .45); border: 1px solid #9e4b4b; color: #ffd6d6; font-weight: 700; cursor: pointer;
}
.dv-head .dv-close:hover, .dv-head > button[data-act="dong"]:hover { background: rgba(185, 52, 52, .75); border-color: #ff8c8c; color: #fff; }
.dv-tabs { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.dv-head .dv-tab { white-space: nowrap; padding: 5px 10px; border-radius: 5px; font-size: 12.5px; font-weight: 500;
  background: rgba(15, 31, 26, .85); border: 1px solid #366250; color: #c9dfd4; cursor: pointer; transition: all .15s; }
.dv-head .dv-tab:hover { border-color: #77b89c; color: #fff; }
.dv-body { overflow: auto; padding: 10px 14px 14px; flex: 1 1 auto; min-height: 0; }
.dv button { font: 500 12.5px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; padding: 5px 10px; border-radius: 5px;
  background: #1a3a31; border: 1px solid #417760; color: #edf7f2; cursor: pointer; transition: all .15s; }
.dv button:hover { color: #ffe48a; border-color: #82c4a6; background: #224b3f; }
.dv button:active { transform: scale(.97); }
.dv button.on, .dv .dv-tab.on { color: #ffe48a; border-color: #d4af37; background: linear-gradient(180deg, #295948, #193b2f); font-weight: 600; box-shadow: 0 0 8px rgba(212,175,55,.25); }
.dv input, .dv select { font: 13px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; padding: 5px 8px; border-radius: 5px;
  background: #0a1411; border: 1px solid #3b6956; color: #fff; width: auto; outline: none; }
.dv input:focus, .dv select:focus { border-color: #d4af37; box-shadow: 0 0 0 1px rgba(212,175,55,.25); }
.dv input[type=checkbox] { width: 15px; height: 15px; margin: 0 4px 0 0; accent-color: #3c9e78; }
.quh input.sai { border-color: #d04040; background: #2a1010; } /* F10 → Ủng hộ: số tiền không đọc được (src/game/qt-ungho.js — anh 12/11) */
.quh-bang td { padding: 3px 6px; } .quh-bang button { padding: 2px 8px; margin-left: 3px; }
.dv .r { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 7px 0; }
.dv .k { color: #9cd4bb; min-width: 86px; font-weight: 500; }
.dv label { display: inline-flex; align-items: center; cursor: pointer; margin-left: 4px; color: #dbece4; }
.dv-sel { width: 100%; margin: 6px 0; }
.dv-note { color: #9bc9b5; font-size: 12px; line-height: 1.4; }
.dv-list { border: 1px solid #2b5244; border-radius: 6px; background: rgba(7, 13, 11, .75); max-height: 230px; overflow: auto; margin: 6px 0; }
.dv-it { display: flex; align-items: center; gap: 10px; padding: 6px 10px; cursor: pointer; border-bottom: 1px solid rgba(53, 94, 76, .28); transition: background .12s; }
.dv-it:last-child { border-bottom: 0; }
.dv-it:hover, .dv-it.on { background: rgba(34, 78, 62, .65); }
.dv-it img { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; flex: none; background: rgba(0,0,0,.35); border-radius: 4px; padding: 2px; border: 1px solid rgba(90,140,118,.25); }
.dv-it b, .dv-it span { font-size: 13px; }
.dv-it small { display: block; color: #9fc9b5; font-size: 11.5px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-it button { flex: none; }
.dv-detail { border: 1px solid #2e5948; border-radius: 6px; background: rgba(7, 14, 12, .7); padding: 8px 10px; white-space: pre-line; min-height: 20px; margin-top: 6px; font-size: 12.5px; }
.dv-detail:empty { display: none; }
/* công cụ thử — tạo trang bị theo dòng tự chọn (anh 29/10, devtool.js veDong) */
.dv-dong { border: 1px solid #3c6e58; border-radius: 6px; padding: 6px 10px; margin: 8px 0; background: rgba(31,74,58,.18); }
.dv-dong:empty { display: none; }
.dv-dong .k small { color: #7ca895; }
.dv-detail .t1 { color: #fff; } .dv-detail .t2 { color: #8fb8ff; } .dv-detail .t3 { color: #ff9a8a; }
/* bảng quản trị (src/game/quantri.js — anh 28/10): kiểu bảng Công cụ thử, giữa màn hình; z-index như #jxwin và nằm ngay trước nó -> trên HUD,
   dưới cửa sổ / khung hỏi xác nhận của client */
.dv.qt { z-index: 4; left: 50%; top: 40px; transform: translateX(-50%); width: 800px; max-width: calc(100vw - 16px); max-height: calc(100vh - 100px); }
/* anh 17/11 lần 2 ("tab cấu hình trong admin khác size với các tab"): mọi thẻ cùng 1 cỡ — rộng 1060 (cỡ cũ của thẻ Cấu hình), cao cố định tới đáy màn hình; thân bảng cuộn bên trong */
.dv.qt { width: 1060px; height: calc(100vh - 100px); }
.dv.qt > .dv-body { flex: 1 1 auto; min-height: 0; }
.qt-may { padding: 3px 8px; border-bottom: 1px solid #24443a; }
.qt-bao { color: #8fd0b0; }
.qt-bao:not(:empty) { padding: 3px 8px; border-bottom: 1px solid #24443a; }
.qt-bao.loi { color: #ff8a7a; }
.qt-ds { border: 1px solid #24443a; max-height: 220px; overflow: auto; margin: 4px 0; }
.qt-row { display: grid; grid-template-columns: 120px 1fr 240px 112px; gap: 6px; padding: 3px 6px; cursor: pointer; align-items: baseline; }
.qt-row:hover, .qt-row.on { background: #1f4a3a; }
.qt-row.qt-tieude { cursor: default; color: #9fc9b5; background: #10241e; position: sticky; top: 0; }
.qt-row .c3, .qt-row .c4 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* F10 → Người chơi: ô tích + thanh thao tác hàng loạt (anh 17/11 — quantri.js veLoat / loat) */
.qt-tich { display: inline-flex; align-items: center; margin: 0 5px 0 0; cursor: pointer; vertical-align: middle; }
.qt-tich input { margin: 0; width: 13px; height: 13px; cursor: pointer; accent-color: #d8b25a; }
.qt-tich-trong { display: inline-block; width: 18px; }
.qt-row.tich { background: #2a3f22; }
.qt-row.tich:hover, .qt-row.tich.on { background: #35502a; }
.qt-loat { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 6px; margin-bottom: 2px; background: #10241e; border: 1px solid #2c4d40; color: #cfe6d9; }
.qt-loat > span { flex: 1; min-width: 180px; }
.qt-loat button { padding: 1px 8px; }
.qt small { color: #9fc9b5; font: 11px/14px var(--font); }
.qt i { font-style: normal; }
.qt-xanh { color: #7ee07e; } i.qt-xanh { color: #8fb8ff; } .qt-vang { color: rgb(255,217,78); } .qt-do { color: #ff8a7a; }
/* thẻ Mã quà: bấm vào mã là chọn cả mã (chép gửi người chơi) */
.dv.qt .qt-ma { user-select: all; -webkit-user-select: all; cursor: text; letter-spacing: 1px; }
.qt-an { -webkit-text-security: disc; } /* ô mật khẩu: che chữ mà không dùng type=password (trình duyệt hỏi lưu / cập nhật mật khẩu của trang) */
.qt-box { border: 1px solid #3c6e58; padding: 4px 8px; margin: 6px 0; background: rgba(31,74,58,.18); }
.qt-nv { border-top: 1px solid #24443a; margin-top: 6px; padding-top: 2px; }
.qt-nhomip { border: 1px solid #6b5230; padding: 2px 6px 4px; margin: 6px 0; background: rgba(90,60,20,.14); } /* bảng quản trị: nhóm tài khoản trùng IP (anh 10/11) */
/* Duyệt vào game (anh 11/11 khuya — quantri.js veDuyet): khung như ô quản trị, danh sách đã duyệt cuộn riêng, kết quả lần duyệt gần nhất */
.qt-dy { border: 1px solid #3c6e58; padding: 4px 8px 6px; margin: 6px 0; background: rgba(31,74,58,.18); }
.qt-dy-ket { border-left: 2px solid #3c6e58; padding: 2px 8px; margin: 4px 0; font: 12px/18px var(--font); }
.qt-dy-ds { max-height: 170px; overflow: auto; margin-top: 4px; }
.qt-dy-dong { display: flex; align-items: baseline; gap: 8px; padding: 2px 4px; border-top: 1px solid #1d3a30; }
.qt-dy-dong > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qt-do-ds { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1px 8px; margin: 2px 0 4px; }
.qt-do-ds .k, .qt-chon .k { grid-column: 1 / -1; margin-top: 4px; }
.qt-mon { display: flex; align-items: center; gap: 6px; min-width: 0; }
.qt-mon img { width: 24px; height: 24px; object-fit: contain; image-rendering: pixelated; flex: none; }
.qt-mon > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qt-qua { border: 1px solid #3c6e58; padding: 2px 6px 4px; margin: 4px 0; background: rgba(8,14,12,.6); }
.qt-kq { max-height: 150px; }
.qt-chon .qt-mon { padding: 2px 0; }
.qt-nk { border: 1px solid #24443a; max-height: calc(100vh - 270px); overflow: auto; margin: 4px 0; }
.qt-nkr { display: grid; grid-template-columns: 62px 90px 100px 1fr; gap: 6px; padding: 2px 6px; align-items: baseline; }
.qt-nkr:nth-child(odd) { background: rgba(31,74,58,.15); }
.qt-nkr .t { color: #9fc9b5; }
/* nhật ký tự cập nhật (anh 03/11): dòng vừa tới tô sáng rồi mờ dần; ô Tự cập nhật cạnh nút Xem */
.qt-nkr.moi { animation: qtMoi 4s ease-out; }
@keyframes qtMoi { 0% { background: rgba(255,217,78,.35); } 100% { background: transparent; } }
.qt-tu { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; color: #9fc9b5; cursor: pointer; }
.qt-nkr .a { color: rgb(255,217,78); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qt-nkr .m { min-width: 0; overflow-wrap: anywhere; }
.qt-nkr .qt-nkm { border-bottom: 1px dotted currentColor; } .qt-nkr .qt-nkm.x { color: #8fb8ff; } /* tên món có bản chụp: trỏ vào xem ô xem món (quantri.js monChu) */
.qt-nkr .l { color: #cfe7dc; } .qt-nkr .l-sai-mk { color: #ff8a7a; } .qt-nkr .l-cap { color: #7ee07e; } .qt-nkr .l-hiem { color: #ffb74d; }
.qt-nkr .l-ktc, .qt-nkr .l-xu { color: #6ec6ff; } .qt-nkr .l-qt, .qt-nkr .l-tb { color: rgb(255,217,78); } .qt-nkr .l-gd { color: #d29bff; }
.qt-nkr .l-mk { color: #ff9f6a; } /* khóa an toàn — mật khẩu (may-chu/bao-mat.js, anh 10/11) */
.qt-nkr .l-hd { color: #8fe3c8; } .qt-nkr .l-kham, .qhd-kham { color: #c7a0ff; } /* hoạt động (tên hoạt động), khảm nạm — anh 18/11 */
/* thông báo của quản trị: dòng chữ vàng giữa trên màn hình mọi người chơi (quantri.js loaThongBao) */
.qt-loa { position: fixed; left: 50%; top: 92px; transform: translateX(-50%); z-index: 6; max-width: min(900px, calc(100vw - 32px)); padding: 6px 16px;
  text-align: center; font: 16px/20px var(--jx); color: rgb(255,217,78); background: rgba(0,0,0,.5); border: 1px solid rgba(168,131,68,.7);
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; pointer-events: none; opacity: 0; transition: opacity .4s; }
.qt-loa.on { opacity: 1; }

/* ---------- cửa sổ giống client (src/game/uiwin.js + windows.js, kho assets/ui/win): hệ 1024×768 căn giữa như HUD ---------- */
#jxwin { position: fixed; left: 50%; top: 0; width: 1024px; height: 768px; transform-origin: top center; pointer-events: none; z-index: 4; }
#jxwin .jw { position: absolute; pointer-events: auto; background-repeat: no-repeat; user-select: none; color: #fff; }
#jxwin .jw-page, #jxwin .jw-i { position: absolute; background-repeat: no-repeat; }
/* chân dung NPC ở ô Image của khung Describe (src/game/npcdlg.js datChanDung — dải khung hình đứng của client, cong-cu/dung-chan-dung-npc.mjs):
   canh giữa, sát đáy ô, chạy lặp các khung (steps … jump-none: khung đầu tới khung cuối) */
#jxwin .jw-npcanh { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); background-repeat: no-repeat; pointer-events: none;
  filter: drop-shadow(1px 0 0 #000) drop-shadow(-1px 0 0 #000) drop-shadow(0 1px 0 #000) drop-shadow(0 -1px 0 #000); } /* nền trong suốt, viền đen quanh hình (anh 29/10 lần 4) */
@keyframes jw-npcanh { from { background-position-x: 0%; } to { background-position-x: 100%; } }
#jxwin .jw-t { display: block; width: 100%; height: 100%; overflow: hidden; box-sizing: border-box; pointer-events: none; }
#jxwin .jw-btn, #jxwin .jw-link { cursor: pointer; }
#jxwin .jw-btn.dis { cursor: default; }
/* khung giao dịch: nút Xác nhận khi 2 bên chưa cùng bấm Đồng ý (khóa) — tối đi (bấm vẫn được: báo câu) */
#jxwin .jw-btn.gd-tat { filter: grayscale(.85) brightness(.7); }
#jxwin .jw-slot:hover { outline: 1px solid rgba(255,217,78,.55); outline-offset: -1px; }
#jxwin .jw-icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
#jxwin .jw-box .jw-it, #jxwin .gd-xem .jw-it { position: absolute; cursor: pointer; }
/* nền ô món trong túi như client (màu đo trên ảnh game thật 25/10): mặc được xanh, thiếu yêu cầu đỏ sậm — tô từng ô, chừa đường lưới;
   món đang cầm trên tay: ẩn. gd-xem: lưới món của đối phương trong khung giao dịch — chỉ xem, không phải chỗ thả món (windows.js _giaoDich) */
#jxwin .jw-box .jw-cell, #jxwin .gd-xem .jw-cell { position: absolute; pointer-events: none; }
#jxwin .jw-box .jw-cell.ok, #jxwin .gd-xem .jw-cell.ok { background: rgb(0,56,41); }
#jxwin .jw-box .jw-cell.no, #jxwin .gd-xem .jw-cell.no { background: rgb(49,0,0); }
#jxwin .jw-box .jw-it:hover .jw-cell, #jxwin .gd-xem .jw-it:hover .jw-cell { filter: brightness(1.35); }
#jxwin .jw-box .jw-it.held { visibility: hidden; }
/* viền sáng vàng chạy xung quanh trang bị Hoàng Kim (hành trang, trang bị, rương, chợ trời, giao dịch) */
@property --jw-hk-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes jw-hk-run { to { --jw-hk-a: 360deg; } }
#jxwin .jw-hk::before {
  content: ""; position: absolute; inset: 1px; pointer-events: none; z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(255,212,64,.82), inset 0 0 8px rgba(255,190,30,.28);
}
#jxwin .jw-slot.jw-hk::before, #jxwin .jw-goods .jw-hk::before { inset: 0; }
#jxwin .jw-hk::after {
  content: ""; position: absolute; inset: 1px; padding: 2px; pointer-events: none; z-index: 3;
  background: conic-gradient(from var(--jw-hk-a, 0deg),
    transparent 0deg 115deg, rgba(255,205,50,.85) 145deg, #fffbe0 165deg, rgba(255,205,50,.85) 178deg,
    transparent 185deg 295deg, rgba(255,205,50,.85) 325deg, #fffbe0 345deg, rgba(255,205,50,.85) 358deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: jw-hk-run 2.2s linear infinite;
}
#jxwin .jw-slot.jw-hk::after, #jxwin .jw-goods .jw-hk::after { inset: 0; }
/* số bình của chồng thuốc: góc dưới phải ô */
#jxwin .jw-box .jw-n, #jxwin .gd-xem .jw-n, #jxwin .jw-slot[data-kham] > .jw-n { position: absolute; right: 2px; bottom: 1px; font: 13px/13px var(--jx); font-weight: normal; color: #fff; pointer-events: none; text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000, 1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000; }
/* ô số lượng của khung mua bán (买卖确认.ini BuyNumber) */
#jxwin .jw-num { position: absolute; left: 0; top: 0; width: 100%; height: 100%; box-sizing: border-box; background: transparent; border: 0; outline: 0; padding: 0;
  text-align: center; font: 13px/15px var(--jx); caret-color: #fff; }
/* nút "Mua tối đa (N)" liền dưới khung mua (khung client 122 × 115 không còn chỗ) */
#jxwin .jw-max { position: absolute; left: 0; height: 20px; box-sizing: border-box; margin-top: 1px; padding: 0; cursor: pointer;
  font: 12px/18px var(--jx); color: rgb(255,246,108); background: rgba(8,14,12,.92); border: 1px solid #3c6e58; border-radius: 2px; }
#jxwin .jw-max:hover:not(:disabled) { color: #fff; border-color: #6aa88c; }
#jxwin .jw-max:disabled { color: #6f7a74; cursor: default; }
/* chợ trời (src/game/chotroi.js): dòng dưới khung Rao bán (giá người mua trả — client không có) và ô tìm của bảng Chợ Trời — nền tối viền như ô
   nhập / nút của khung client */
#jxwin .jw-gia-them { position: absolute; left: -24px; width: 170px; box-sizing: border-box; padding: 3px 6px; pointer-events: none;
  font: 12px/15px var(--jx); color: #fff; text-align: center; background: rgba(8,14,12,.9); border: 1px solid rgb(100,80,30); border-radius: 2px; }
#jxwin .jw-tim { position: absolute; left: 186px; top: 78px; width: 150px; height: 20px; box-sizing: border-box; padding: 0 6px; outline: 0;
  font: 13px/18px var(--jx); color: #fff; caret-color: #fff; background: rgb(8,10,8); border: 1px solid rgb(90,83,64); }
#jxwin .jw-tim::placeholder { color: rgb(130,130,110); }
#jxwin .jw-tim:focus { border-color: rgb(150,130,80); }
/* bảng tiền hiện có gắn cạnh phải Kỳ Trân Các (vạn, Xu, điểm tích lũy Tống Kim) */
#jxwin .jw-ktc-tien { position: absolute; left: 583px; top: 46px; width: 138px; box-sizing: border-box; padding: 7px 8px;
  background: rgba(10,18,15,.94); border: 1px solid #9e8445; box-shadow: 0 0 0 1px #040705, inset 0 0 10px rgba(0,0,0,.75);
  border-radius: 2px; font: 12px/15px var(--jx); color: #ece4d4; pointer-events: none; z-index: 2; }
#jxwin .jw-ktc-tien .kt-td { text-align: center; color: #f3cf7a; border-bottom: 1px solid rgba(158,132,69,.45); padding-bottom: 4px; margin-bottom: 5px;
  text-shadow: 1px 1px 0 #000; letter-spacing: .3px; }
#jxwin .jw-ktc-tien .kt-d { display: flex; flex-direction: column; margin-bottom: 5px; }
#jxwin .jw-ktc-tien .kt-d:last-child { margin-bottom: 0; }
#jxwin .jw-ktc-tien .kt-d span { font-size: 11px; line-height: 13px; color: #9ecbb6; }
#jxwin .jw-ktc-tien .kt-d b { font-weight: normal; color: #ffd94e; text-shadow: 1px 1px 0 #000; white-space: nowrap; }
#jxwin .jw-ktc-tien .kt-d.kt-xu b { color: #7ee0ff; }
#jxwin .jw-ktc-tien .kt-d.kt-tk b { color: #9fff7a; }
/* món đang cầm trên tay: dính theo chuột (src/game/windows.js _handPick) */
.jw-hand { position: fixed; z-index: 9; pointer-events: none; display: flex; align-items: center; justify-content: center; opacity: .9; }
/* ô xem chiêu + ô xem món như client (src/game/windows.js _tipFrame, src/game/skilltip.js, src/game/itemtip.js): chữ canh giữa, không tự
   ngắt, viền chữ đen 1 điểm */
.jw-sktip { position: fixed; z-index: 8; display: none; pointer-events: none; transform-origin: 0 0; }
.jw-sktip .b { color: #fff; text-align: center; white-space: pre;
  text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000, 1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000; }
.jw-sktip.itip { box-shadow: 0 0 0 1px rgba(0, 0, 0, .85); }
.jw-sktip.itip.no-bar .jw-tip-bar { display: none; }
.jw-sktip.itip .jw-tip-mid { display: flex; align-items: flex-start; gap: 6px; }
.jw-sktip.itip .jw-tip-left { display: none; flex: none; flex-direction: column; align-items: center; }
.jw-sktip.itip:has(.jw-tip-pre.on) .jw-tip-left { display: flex; }
.jw-sktip.itip .jw-tip-pre { display: none; flex: none; box-sizing: border-box; background: #063d08; border: 1px solid #3fe6cf; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .45); align-items: center; justify-content: center; overflow: hidden; margin-top: 1px; }
.jw-sktip.itip .jw-tip-pre.on { display: flex; }
.jw-sktip.itip .jw-tip-mac { display: none; margin-top: 2px; font: 12px/13px "JX ASF 12", var(--jx); color: #3cff42; white-space: nowrap; text-align: center; text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000; }
.jw-sktip.itip.is-mac .jw-tip-mac { display: block; }
.jw-sktip.itip .jw-tip-pre img { max-width: calc(100% - 4px); max-height: calc(100% - 4px); width: auto; height: auto; object-fit: contain; image-rendering: pixelated; display: block; }
.jw-sktip.itip .jw-tip-pre canvas { display: block; image-rendering: pixelated; }
/* Tab Ngoại trang trong khung Nhân vật */
#jxwin [data-n="FashionShow"] { left: 15px !important; top: 11px !important; }
.jw-fash-lbl { position: absolute; left: 32px; top: 9px; font: 12px/15px var(--jx); color: #dcece2; text-shadow: 1px 1px 0 #000; cursor: pointer; user-select: none; }
.jw-fash-info { position: absolute; left: 15px; right: 14px; bottom: 12px; padding: 6px 8px; background: rgba(0, 14, 10, .74); border: 1px solid #48564c; color: #cce2d3; font: 12px/16px var(--jx); text-shadow: 1px 1px 0 #000; pointer-events: none; }
.jw-fash-info b { color: #ffe48a; font-weight: normal; }
.jw-fash-info .warn { color: #ff8b66; }
.jw-fash-open { position: absolute; left: 244px; top: 3px; width: 50px; height: 36px; border: 0; padding: 0; background: transparent url(../../assets/ui/win/img/motudo.png?v=20261130m) no-repeat center / 34px 34px; cursor: pointer; transition: filter .12s; }
.jw-fash-open:hover { filter: brightness(1.22); }
.jw-attr-nt, .jw-attr-mn { position: absolute; top: 95px; height: 34px; padding: 0; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1px; color: #ffe48a; font: 11px/11px var(--jx); text-align: center; text-shadow: 1px 1px 0 #000; cursor: pointer; }
.jw-attr-nt { left: 6px; width: 62px; }
.jw-attr-mn { left: 72px; width: 46px; }
.jw-attr-nt .jw-ico, .jw-attr-mn .jw-ico { display: block; width: 22px; height: 22px; background-position: center; background-repeat: no-repeat; background-size: contain; transition: filter .12s; }
.jw-attr-nt .jw-ico { background-image: url(../../assets/ui/win/img/ngoaitrang.png?v=20261130i); }
.jw-attr-mn .jw-ico { background-image: url(../../assets/ui/win/img/matna.png?v=20261130i); }
.jw-attr-nt:hover, .jw-attr-mn:hover { color: #7cff7d; }
.jw-attr-nt:hover .jw-ico, .jw-attr-mn:hover .jw-ico { filter: brightness(1.22); }
#jxwin [data-n="ViewAttrib"]:hover { filter: brightness(1.22); }
#jxwin [data-n="ViewAttrib"] .jw-t { width: 100%; height: 100%; text-align: center; }
/* Cửa sổ Mặt Nạ (popup uimatna.png — 400×368 — src/game/matna.js) */
.mn-win { position: absolute; pointer-events: auto; background: url(../../assets/ui/win/img/uimatna.png?v=20261130l) no-repeat 0 0 / 400px 368px; font: 12px/16px var(--jx); color: #dcece2; text-shadow: 1px 1px 0 #000; user-select: none; }
.mn-hdr { position: relative; height: 28px; cursor: move; }
.mn-title { position: absolute; inset: 0; text-align: center; font: 15px/28px var(--jx); color: #fff; pointer-events: none; }
.mn-close { position: absolute; right: 5px; top: 4px; width: 22px; height: 22px; background: url(../../assets/ui/win/img/buttondong.png?v=20261130l) no-repeat 0 0 / 22px 22px; cursor: pointer; }
.mn-close:hover { filter: brightness(1.25); }
.mn-top-bar { position: absolute; left: 10px; right: 10px; top: 38px; display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.mn-tabs { display: flex; gap: 2px; }
.mn-tab { width: 68px; height: 21px; background: url(../../assets/ui/win/img/status_tab.png?v=20261130l) no-repeat 0 0 / 272px 21px; color: #a9d3be; text-align: center; font: 12px/21px var(--jx); cursor: pointer; }
.mn-tab:hover { background-position: -68px 0; color: #7cff7d; }
.mn-tab.on { background-position: -136px 0; color: #7cff7d; }
.mn-pager { display: flex; align-items: center; gap: 3px; height: 21px; padding: 0 3px; background: rgba(18, 22, 17, .88); border: 1px solid #4c5646; }
.mn-pg-btn { width: 18px; height: 17px; padding: 0; border: 1px solid #4d5b49; background: #1a2119; color: #a9d3be; font: 10px/15px var(--jx); cursor: pointer; }
.mn-pg-btn:hover { border-color: #7cff7d; color: #7cff7d; }
.mn-pg-txt { min-width: 26px; text-align: center; font: 11px/19px var(--jx); color: #ffe48a; }
.mn-body { position: absolute; left: 12px; top: 64px; width: 376px; height: 292px; display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 4px 6px; box-sizing: border-box; }
.mn-left { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mn-top-actions { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 4px; }
.mn-an { display: inline-flex; align-items: center; gap: 6px; font: 12px/15px var(--jx); color: #dcece2; text-shadow: 1px 1px 0 #000; cursor: pointer; user-select: none; }
.mn-an .mn-chk { width: 12px; height: 12px; border: 1px solid #8a7f5e; background: #151915; display: inline-block; position: relative; flex: none; }
.mn-an.on .mn-chk::after { content: "✓"; position: absolute; left: 1px; top: -2px; font-size: 12px; color: #ffe48a; }
.mn-an.on { color: #7cff7d; }
.mn-an:hover .mn-chk { border-color: #ffe48a; }
.mn-use { flex: none; width: 68px; height: 21px; padding: 0; border: 1px solid #597c6b; background: linear-gradient(#122a24, #091a16); color: #a9d3be; font: 12px/19px var(--jx); text-shadow: 1px 1px 0 #000; cursor: pointer; }
.mn-use:hover:not(:disabled) { border-color: #7cff7d; color: #7cff7d; }
.mn-use:disabled { opacity: .45; cursor: default; }
.mn-cur { width: 100%; text-align: center; font: 12px/15px var(--jx); color: #b7ceb9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-cur b { color: #ffe48a; font-weight: normal; }
.mn-pre-box { width: 120px; height: 120px; background: rgba(10, 14, 11, .75); border: 1px solid #4e5947; display: flex; align-items: center; justify-content: center; }
.mn-pre-box canvas { display: block; width: 120px; height: 120px; image-rendering: pixelated; }
.mn-pre-name { font: 12px/15px var(--jx); color: #ffe48a; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-attrs { width: 100%; max-height: 76px; overflow-y: auto; text-align: center; font: 11px/14px var(--jx); color: #87c8ff; scrollbar-width: thin; scrollbar-color: #6b634b #161816; }
.mn-right { width: 170px; flex: none; display: flex; flex-direction: column; align-items: center; }
.mn-grid { position: relative; width: 168px; height: 280px; background-color: rgba(18, 20, 17, 0.85); background-image: linear-gradient(to right, #2e322a 1px, transparent 1px), linear-gradient(to bottom, #2e322a 1px, transparent 1px); background-size: 28px 28px; box-shadow: inset -1px -1px 0 #2e322a; }
.mn-grid .jw-it.mn-sel { box-shadow: inset 0 0 0 1px #7cff7d, 0 0 4px rgba(124,255,125,.45); z-index: 2; }
.mn-grid .jw-icon { max-width: 24px; max-height: 24px; object-fit: contain; image-rendering: pixelated; }
/* Popup cộng điểm tiềm năng (+1, +10, +100, tùy ý) */
.pt-pop { position: absolute; width: 222px; padding: 8px 10px 10px; box-sizing: border-box; background: rgba(24, 26, 23, .97); border: 1px solid #6b6142; box-shadow: 0 4px 16px rgba(0,0,0,.75), inset 0 0 0 1px #2e342b; font: 12px/16px var(--jx); color: #dcece2; text-shadow: 1px 1px 0 #000; pointer-events: auto; user-select: none; }
.pt-hdr { position: relative; height: 22px; margin-bottom: 6px; border-bottom: 1px solid #3c4237; }
.pt-ttl { display: block; padding-right: 24px; font: 13px/20px var(--jx); color: #ffe48a; }
.pt-x { position: absolute; right: 0; top: 0; width: 20px; height: 20px; background: url(../../assets/ui/win/img/buttondong.png) no-repeat 0 0 / 20px 20px; cursor: pointer; }
.pt-x:hover { filter: brightness(1.25); }
.pt-info { margin-bottom: 8px; color: #b7ceb9; }
.pt-info b { color: #7cff7d; font-weight: normal; }
.pt-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 8px; }
.pt-btn, .pt-ok { height: 22px; padding: 0 6px; border: 1px solid #597c6b; background: linear-gradient(#122a24, #091a16); color: #a9d3be; font: 12px/20px var(--jx); text-shadow: 1px 1px 0 #000; cursor: pointer; }
.pt-btn:hover:not(:disabled), .pt-ok:hover { border-color: #7cff7d; color: #7cff7d; }
.pt-btn:disabled { opacity: .45; cursor: default; }
.pt-custom { display: flex; gap: 5px; align-items: center; }
.pt-inp { flex: 1; min-width: 0; height: 22px; padding: 0 6px; box-sizing: border-box; background: #101210; border: 1px solid #5a5239; color: #ffe48a; font: 12px/20px var(--jx); outline: none; }
.pt-inp:focus { border-color: #7cff7d; }
.pt-ok { width: 54px; flex: none; }
/* Cửa sổ Bán ngoại trang (Hộp Linh Lung — src/game/ngoaitrang.js) */
.nt-win { position: absolute; pointer-events: auto; background: url(../../assets/ui/win/img/ll_bg.png?v=20261129m) no-repeat 0 0 / 490px 472px; font: 12px/16px var(--jx); color: #dcece2; text-shadow: 1px 1px 0 #000; user-select: none; }
.nt-hdr { position: relative; height: 30px; cursor: move; }
.nt-title { position: absolute; inset: 0; text-align: center; font: 15px/30px var(--jx); color: #fff; pointer-events: none; }
.nt-close { position: absolute; right: 5px; top: 4px; width: 22px; height: 22px; background: url(../../assets/ui/win/img/buttondong.png?v=20261130d) no-repeat 0 0 / 22px 22px; cursor: pointer; }
.nt-close:hover, #jxwin [data-n="Close"].jw-btn:hover { filter: brightness(1.25); }
.nt-show-btn, .nt-reset-btn { position: absolute; top: 8px; width: 53px; height: 20px; border: 0; padding: 0; background: url(../../assets/ui/win/img/ll_rot.png) no-repeat 0 0; color: #a9d3be; font: 11px/20px var(--jx); cursor: pointer; text-shadow: 1px 1px 0 #000; }
.nt-show-btn { left: 4px; }
.nt-reset-btn { left: 62px; }
.nt-show-btn.on { color: #7cff7d; }
.nt-reset-btn:hover { color: #ffe48a; }
.nt-show-btn:active, .nt-reset-btn:active { background-position: -106px 0; }
.nt-tabs { position: absolute; left: 10px; right: 10px; top: 35px; display: flex; align-items: center; gap: 2px; }
.nt-tab { width: 64px; height: 21px; background: url(../../assets/ui/win/img/ll_tab.png) no-repeat 0 0; color: #a9d3be; text-align: center; font: 12px/21px var(--jx); cursor: pointer; }
.nt-tab.on { background-position: -128px 0; color: #7cff7d; }
.nt-tab-wd { margin-left: auto; }
.nt-body { position: absolute; left: 7px; top: 56px; width: 476px; height: 408px; background: url(../../assets/ui/win/img/ll_in.png) no-repeat 0 0 / 476px 408px; }
.nt-pre-box { position: absolute; left: 6px; top: 8px; width: 256px; height: 205px; }
.nt-pre-box canvas { display: block; width: 256px; height: 205px; image-rendering: pixelated; }
.nt-rot { position: absolute; top: 176px; width: 53px; height: 20px; border: 0; padding: 0; background: url(../../assets/ui/win/img/ll_rot.png) no-repeat 0 0; color: #a9d3be; font: 11px/20px var(--jx); text-shadow: 1px 1px 0 #000; cursor: pointer; }
.nt-rot:hover { color: #7cff7d; }
.nt-rot:active { background-position: -106px 0; }
.nt-rot-l { left: 54px; }
.nt-rot-r { left: 148px; }
.nt-note { position: absolute; left: 12px; top: 216px; width: 254px; font: 12px/16px var(--jx); color: #ececec; pointer-events: none; }
.nt-wd-tabs { position: absolute; left: 278px; top: 10px; width: 186px; display: none; gap: 2px; }
.nt-win.is-wd .nt-wd-tabs { display: flex; }
.nt-wtab { flex: 1; height: 20px; border: 1px solid #4d5b49; background: linear-gradient(#262e24, #141914); color: #a9d3be; text-align: center; font: 11px/18px var(--jx); cursor: pointer; box-sizing: border-box; }
.nt-wtab:hover { border-color: #9e8f5f; color: #ffe48a; }
.nt-wtab.on { border-color: #7cff7d; background: linear-gradient(#354531, #1b2419); color: #7cff7d; }
.nt-tree-box { position: absolute; left: 274px; top: 10px; width: 194px; height: 287px; background: url(../../assets/ui/win/img/ll_list.png) no-repeat 0 0 / 100% 100%; padding: 5px 4px; box-sizing: border-box; }
.nt-win.is-wd .nt-tree-box { left: 278px; top: 34px; width: 186px; height: 248px; }
.nt-tree { width: 100%; height: 100%; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #6b634b #161816; }
.nt-srow, .nt-irow { display: flex; align-items: center; gap: 4px; height: 23px; padding: 0 4px; cursor: pointer; font: 12px/23px var(--jx); white-space: nowrap; }
.nt-srow { color: #ffffff; }
.nt-srow i { display: inline-flex; align-items: center; justify-content: center; width: 11px; height: 11px; border: 1px solid #999; font-style: normal; font-size: 10px; line-height: 9px; color: #ddd; flex: none; }
.nt-irow { padding-left: 18px; color: #c8c8c8; position: relative; }
.nt-irow.flat { padding-left: 6px; }
.nt-irow::before { content: ""; position: absolute; left: 9px; top: 0; bottom: 0; width: 1px; background: #555; }
.nt-irow.flat::before { display: none; }
.nt-srow span, .nt-irow span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nt-irow .nt-badge { flex: none; font-size: 10px; color: #9ec0aa; }
.nt-irow.worn .nt-badge { color: #7cff7d; }
.nt-srow.sel, .nt-irow.sel { background: rgba(150, 142, 105, .62); color: #fffd7a; }
.nt-irow.worn { color: #7cff7d; }
.nt-srow:hover, .nt-irow:hover { background: rgba(150, 142, 105, .35); }
.nt-plus { flex: none; width: 15px; height: 15px; line-height: 14px; text-align: center; border: 1px solid #6b634b; background: #1e241e; color: #ffd94e; font-size: 12px; opacity: .82; }
.nt-plus:hover { opacity: 1; border-color: #ffd94e; }
.nt-irow.oos { color: #8c8c8c; }
.nt-oos-tag { flex: none; font-size: 10px; font-weight: normal; color: #ff7a66; }
.nt-empty { padding: 18px 10px; text-align: center; color: #b9c9be; line-height: 18px; white-space: normal; }
.nt-bot { position: absolute; left: 0; top: 304px; width: 476px; height: 102px; background: url(../../assets/ui/win/img/ll_bot.png) no-repeat 0 0; }
.nt-cart { position: absolute; left: 14px; top: 14px; display: flex; gap: 0; }
.nt-slot { width: 50px; height: 50px; background: url(../../assets/ui/win/img/fashion_50x50.png) no-repeat 0 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.nt-slot:hover { box-shadow: inset 0 0 0 1px #f77d00; }
.nt-slot img { max-width: 44px; max-height: 44px; image-rendering: pixelated; object-fit: contain; }
.nt-durs { position: absolute; left: 268px; top: 14px; display: flex; flex-direction: column; gap: 5px; }
.nt-dur { display: flex; align-items: center; gap: 5px; cursor: pointer; font: 11.5px/14px var(--jx); color: #e25050; white-space: nowrap; }
.nt-dur i { width: 12px; height: 12px; border: 1px solid #8a7f5e; background: #151915; display: inline-block; position: relative; }
.nt-dur.on i::after { content: "✓"; position: absolute; left: 1px; top: -2px; font-size: 12px; color: #ffe48a; }
.nt-dur.on { color: #7cff7d; }
.nt-cost { position: absolute; left: 15px; bottom: 10px; font: 13px/17px var(--jx); color: #fff; }
.nt-cost b { color: #ffd94e; font-weight: normal; }
.nt-cost b.nt-oos { color: #ff7a66; font-weight: bold; }
.nt-buy { position: absolute; right: 15px; top: 16px; width: 69px; height: 69px; border: 0; background: url(../../assets/ui/win/img/ll_buy.png) no-repeat 0 0; color: #a9d3be; font: 13px/69px var(--jx); text-shadow: 1px 1px 0 #000; cursor: pointer; padding: 0; }
.nt-buy:hover { background-position: -69px 0; color: #7cff7d; }
.nt-buy:active { background-position: -138px 0; }

/* bản đồ nhỏ dán góc phải trên, khung chat dán góc trái dưới (src/game/hud.js, anh muốn 23/10) */
#jxhud .jx-mmbox { position: absolute; top: 0; right: 0; transform-origin: top right; pointer-events: none; }
/* hàng biểu tượng trạng thái (技能状态列表.ini: ô 24, chữ thời gian y 21 cao 12, cỡ 12 giữa, màu 55,231,63) — x 24 / y 28 theo ảnh client */
#jxhud .jx-stbar { position: absolute; top: 28px; left: 24px; width: 240px; height: 72px; transform-origin: top left; pointer-events: none; }
#jxhud .jx-st { position: absolute; width: 24px; height: 33px; pointer-events: auto; }
#jxhud .jx-st img { position: absolute; left: 0; top: 0; width: 24px; height: 24px; image-rendering: pixelated; }
#jxhud .jx-st.hoi img { filter: grayscale(1) brightness(.7); } /* chiêu tự phát đang hồi (anh 17/11 — main.js trigCd) */
#jxhud .jx-st.hoi span { color: #ffd54a; }
#jxhud .jx-st span { position: absolute; left: -6px; top: 21px; width: 36px; height: 12px; font: 13px/12px "VK Sans Serif 13", monospace; text-align: center; color: rgb(55,231,63);
  text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000; white-space: nowrap; }
#jxhud .jx-chatbox { position: absolute; bottom: 0; left: 0; transform-origin: bottom left; pointer-events: none; }
/* bảng đội ngũ góc trái (hud.js setDoi — anh 29/10; client 队伍一览信息.ini: mỗi người 1 ô 135 × 17, chữ cỡ 12 màu 165,255,203 canh giữa, nền
   frame_member.spr — bản client này thiếu hình nên vẽ khung tối viền mảnh): dưới hàng biểu tượng trạng thái, bảng nhiệm vụ xuống dưới bảng này;
   thanh sinh lực đỏ / nội lực xanh 3 điểm ảnh dưới tên; khác bản đồ / rời mạng: chữ xám, không thanh; ô của mình viền vàng; đội trưởng ★.
   Anh 29/10 lần 2: dòng đầu Đội ngũ thu gọn / mở như bảng nhiệm vụ; trên 4 người xếp 2 cột (.hai). Lần 3 thử 1 dòng / người (sinh lực làm nền
   tên) — anh so 2 ảnh, giữ kiểu 2 thanh dưới tên này */
#jxhud .jx-doi { position: absolute; left: 10px; top: 104px; width: 135px; transform-origin: top left; pointer-events: auto; display: none; font: 13px/16px var(--jx); color: #fff; text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000; }
#jxhud .jx-doi.hai { width: 214px; }
#jxhud .jx-doi .jx-doi-dau { cursor: pointer; margin-bottom: 2px; }
#jxhud .jx-doi.gon .jx-doi-ds { display: none; }
#jxhud .jx-doi.hai .jx-doi-ds { display: grid; grid-template-columns: 105px 105px; column-gap: 4px; }
#jxhud .jx-doi.hai.gon .jx-doi-ds { display: none; }
#jxhud .jx-doi.on { display: block; }
#jxhud .jx-doi-tv { width: 135px; margin-bottom: 3px; cursor: pointer; }
#jxhud .jx-doi.hai .jx-doi-tv { width: 105px; }
#jxhud .jx-doi-ten { height: 17px; padding: 0 3px; box-sizing: border-box; font: 12px/17px var(--jx); color: rgb(165,255,203); text-align: center; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; background: rgba(0,0,0,.55); box-shadow: inset 0 0 0 1px rgba(165,255,203,.35); text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000; }
#jxhud .jx-doi-truong { color: rgb(255,217,78); font-weight: normal; }
#jxhud .jx-doi-tv.toi .jx-doi-ten { box-shadow: inset 0 0 0 1px rgba(255,217,78,.7); }
#jxhud .jx-doi-tv.xa .jx-doi-ten { color: rgb(150,150,150); }
#jxhud .jx-doi-hp, #jxhud .jx-doi-mp { height: 3px; background: rgba(0,0,0,.6); }
#jxhud .jx-doi-hp i, #jxhud .jx-doi-mp i { display: block; height: 100%; }
#jxhud .jx-doi-hp i { background: rgb(214,36,36); }
#jxhud .jx-doi-mp i { background: rgb(56,104,255); }
/* kéo thả bảng (hud.js keoBang — anh 29/10 lần 3, Trợ Thủ → Khác): khung vàng nét đứt phủ bảng, giữ chuột trái kéo; bảng đang ẩn (chưa có đội,
   xa mộc nhân) cũng hiện để đặt chỗ; thanh Lưu bố cục / Mặc định / Hủy giữa trên màn hình */
#jxhud .jx-doi.bc-keo { display: block; min-height: 36px; background: rgba(0,0,0,.25); }
.mn.bc-keo { display: block; z-index: 2; } /* lúc kéo: xuống dưới lớp HUD — chỗ mặc định của nó đè hàng biểu tượng trạng thái, khung kéo của hàng đó phải bấm được */
.bc-vien { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; cursor: move; pointer-events: auto;
  background: rgba(255,217,78,.08); outline: 1px dashed rgb(255,217,78); }
.bc-vien span { padding: 1px 6px; background: rgba(0,0,0,.78); color: rgb(255,217,78); font: 12px/16px var(--jx); white-space: nowrap; pointer-events: none; }
body.bc-dang-keo, body.bc-dang-keo * { cursor: move !important; user-select: none; }
#jxhud .jx-bcbar { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 3px 6px 3px 10px;
  pointer-events: auto; white-space: nowrap; background: rgba(0,0,0,.78); border: 1px solid #6a5a35; color: rgb(255,246,108); font: 12px/16px var(--jx);
  text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000; }
#jxhud .jx-bcbar b { font-weight: normal; color: rgb(255,217,78); background: #1a1610; border: 1px solid #6a5a35; padding: 1px 6px; cursor: pointer; }
#jxhud .jx-bcbar b:hover { color: #fff; border-color: rgb(255,217,78); }
/* bảng nhiệm vụ góc trái (hud.js setNhiemVu — anh 28/10): dưới 2 hàng biểu tượng trạng thái; chữ client: tên vàng 255,217,78, nhóm cam,
   chữ thường trắng, chữ bấm được xanh lá 55,231,63 gạch chân; nền đen trong như dòng tin chạy; nút mũi tên sys_up / sys_down của khung chat */
#jxhud .jx-nvbang { position: absolute; top: 104px; left: 4px; width: 214px; transform-origin: top left; pointer-events: auto;
  font: 13px/16px var(--jx); color: #fff; text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000; }
#jxhud .jx-nv-dau { display: flex; align-items: center; justify-content: space-between; height: 18px; padding: 0 3px 0 6px; background: rgba(0,0,0,.55);
  color: rgb(255,246,108); }
#jxhud .jx-nv-nut { width: 15px; height: 14px; background-size: 45px 14px; background-repeat: no-repeat; }
#jxhud .jx-nv-than { overflow: hidden auto; padding: 2px 6px 5px; background: rgba(0,0,0,.36); scrollbar-width: none; }
#jxhud .jx-nv-than::-webkit-scrollbar { display: none; }
#jxhud .jx-nvbang.gon .jx-nv-than { display: none; }
#jxhud .jx-nv-nhom { margin-top: 3px; color: rgb(255,166,59); }
#jxhud .jx-nv-muc { margin: 1px 0 3px; }
#jxhud .jx-nv-ten { color: rgb(255,217,78); }
#jxhud .jx-nv-ten span { color: #c9bfa5; }
#jxhud .jx-nv-dong { padding-left: 9px; word-break: break-word; }
#jxhud .jx-nv-dong.trong { padding: 2px 0; color: #c9bfa5; }
#jxhud .jx-nv-dong .bam { color: rgb(55,231,63); text-decoration: underline; }
#jxhud .jx-nv-dong .bam:hover { color: rgb(255,246,108); }
#jxhud .jx-mmbox > *, #jxhud .jx-chatbox > * { position: absolute; pointer-events: auto; }
#jxhud .jx-mmbox > .jx-mm-shadow { pointer-events: none; }
/* dòng đếm giờ thuyền Phong Lăng Độ (hud.js setThuyen) — kiểu dòng tin chạy client 新闻消息来了.ini: y 30, chữ 14 màu 255,253,122, nền đen trong 80/255 */
#jxhud .jx-thuyen { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); padding: 2px 11px; white-space: nowrap; pointer-events: none;
  font: 14px/16px "JX ASF 14", var(--jx); color: rgb(255,253,122); background: rgba(0,0,0,.31); text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000; }
#jxhud .jx-thuyen.duoi { top: auto; bottom: 86px; }
body.dt #jxhud .jx-thuyen.duoi { top: auto !important; bottom: 68px; z-index: 6; }
#jxhud .jx-hkd-dem { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%); padding: 6px 16px; white-space: nowrap; pointer-events: none; z-index: 8;
  font: bold 16px/20px "JX ASF 14", var(--jx); color: #ffe46b; background: rgba(0,0,0,.62); border: 1px solid #c8a24b; border-radius: 4px; text-shadow: 1px 1px 0 #000; }
#jxhud .jx-mmbox > .jx-mm-input { display: none; }
#jxwin .jw-clip { position: absolute; overflow: hidden; }
#jxwin .jw-face { position: absolute; background-size: 100% 100%; cursor: pointer; }
#jxwin .jw-face.on { outline: 2px solid rgb(255,217,78); outline-offset: -2px; }
#jxwin .jw-list { overflow: hidden; font: 13px/13px "VK Sans Serif 13", "IBM Plex Mono", monospace; }
#jxwin .jw-row { display: flex; justify-content: space-between; padding: 0 10px 0 28px; }
#jxwin .jw-row b { font-weight: normal; color: rgb(255,217,78); }
#jxwin .jw-note { position: absolute; text-align: center; font: 13px/16px "VK Sans Serif 13", "IBM Plex Mono", monospace; color: #c9bfa5; text-shadow: 1px 1px #000; pointer-events: none; }
#jxwin .jw { overflow: hidden; } /* như client: phần con vẽ ra ngoài khung cửa sổ bị cắt */
#jxwin .jw-mem { line-height: 14px; height: 14px; text-align: center; white-space: nowrap; }
/* Giúp đỡ (khung HỖ TRỢ 详细帮助界面.ini) + Tin cập nhật (khung Nhật ký 任务记事.ini) — anh 29/10, windows.js _giupDo / _tin: mục bên trái (đang
   chọn: SelColor, nền SelItemBgColor, viền chữ SelBorderColor của ini — biến --chon*), nội dung bên phải tự xuống dòng, cuộn bằng bánh xe / nút kéo */
#jxwin .jw-gd { line-height: 16px; }
#jxwin .gd-muc { height: 16px; padding-left: 4px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#jxwin .gd-muc:hover { color: rgb(255,253,122); }
#jxwin .gd-muc.on { color: var(--chon); background: var(--chon-nen); text-shadow: 1px 0 var(--chon-vien), -1px 0 var(--chon-vien), 0 1px var(--chon-vien), 0 -1px var(--chon-vien); }
#jxwin .jw-gd .gd-ten { color: rgb(255,253,122); padding: 2px 4px 4px; }
#jxwin .jw-gd .gd-h { color: rgb(255,217,78); margin-top: 6px; padding: 0 4px; }
#jxwin .jw-gd .gd-b { padding: 1px 4px 1px 14px; text-indent: -10px; white-space: normal; overflow-wrap: anywhere; }
#jxwin .jw-gd .gd-p { padding: 1px 4px; white-space: normal; overflow-wrap: anywhere; }
#jxwin .jw-gd .gd-v { color: rgb(255,217,78); }
#jxwin .tin-muc { display: flex; gap: 6px; }
#jxwin .tin-ngay { flex: none; color: rgb(170,196,185); }
#jxwin .tin-ten { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#jxwin .tin-moi { flex: none; padding-right: 4px; font-weight: normal; color: rgb(255,64,64); }
#jxwin .jw-gd .tin-ngay2 { padding: 0 4px 4px; color: rgb(170,196,185); }
/* khung hình của Giúp đỡ (bảng phím / bảng ngũ hành 800 × 600 của client — nền trong suốt): lót nền tối, bấm vào hình để đóng */
#jxwin .jw.jw-hinh { background-color: rgba(8,12,10,.9); box-shadow: 0 0 0 1px #000, 0 0 0 3px rgba(170,196,185,.45); cursor: pointer; }
#jxwin .jw-hinh-nhac { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font: 13px/16px "VK Sans Serif 13", monospace; color: rgb(170,196,185); text-shadow: 1px 1px #000; pointer-events: none; }
/* tiêu đề viết lại (nền đã xóa chữ vẽ sẵn): như tiêu đề Kỳ Trân Các — chữ sáng đậm (vẽ lặp lệch 1 điểm) viền đen, giữa 2 đồng tiền trang trí */
#jxwin .jw-tieude13 { position: absolute; left: 149px; top: 4px; width: 120px; height: 14px; font: 13px/14px "VK Sans Serif 13", monospace; color: rgb(170,196,185);
  text-align: center; white-space: pre; pointer-events: none;
  text-shadow: 1px 0 0 rgb(170,196,185), 2px 0 #010101, -1px 0 #010101, 0 1px #010101, 0 -1px #010101, 1px 1px #010101, 1px -1px #010101, 2px 1px #010101, 2px -1px #010101, -1px 1px #010101, -1px -1px #010101; }
/* nút Tin cập nhật của bảng Esc (nền không chữ — cong-cu/dung-khung-cua-hang.mjs): chữ đậm đen viền vàng nhạt như 4 nút kia (đo ảnh: chữ 2,2,1,
   viền 228,228,131; nhấn: không viền); có tin chưa xem: chữ "Mới" đỏ. Nút Tùy chỉnh thanh dưới (mở bảng Esc): chấm đỏ */
#jxwin .jw-escchu { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; pointer-events: none;
  font: bold 16px/28px Tahoma, Verdana, sans-serif; color: rgb(2,2,1);
  text-shadow: 1px 0 rgb(228,228,131), -1px 0 rgb(228,228,131), 0 1px rgb(228,228,131), 0 -1px rgb(228,228,131), 1px 1px rgb(228,228,131), -1px -1px rgb(228,228,131); }
#jxwin .jw-btn:active .jw-escchu { text-shadow: none; }
#jxwin .jw-escchu b { display: none; padding: 1px 3px; border-radius: 2px; font: bold 11px/13px Tahoma, sans-serif; color: #fff; background: rgb(200,30,30); text-shadow: none; }
#jxwin .co-moi .jw-escchu b { display: inline-block; }
/* nút Sắp xếp túi / rương (anh 06/11 — windows.js _nutXep): thẻ client 50 × 12 (img/xep_the.png — cong-cu/dung-nut-sap-xep.mjs, 3 khung ngang: khung 1 =
   thường, 0 = nhấn, 2 = rê chuột như BtnPage của ini), chữ màu như số của thẻ (thường 131,181,153 · nhấn 156,156,156 · rê trắng). Điện thoại: chạm rộng hơn thẻ */
#jxwin .jw-xep { width: 50px; height: 12px; background-repeat: no-repeat; background-position: -50px 0; cursor: pointer; z-index: 3; }
#jxwin .jw-xep:hover { background-position: -100px 0; }
#jxwin .jw-xep:active { background-position: 0 0; }
#jxwin .jw-xepchu { position: absolute; inset: 0; text-align: center; white-space: nowrap; pointer-events: none; font: 13px/12px "VK Sans Serif 13", "IBM Plex Mono", monospace; color: rgb(131,181,153); }
#jxwin .jw-xep:hover .jw-xepchu { color: #fff; }
#jxwin .jw-xep:active .jw-xepchu { color: rgb(156,156,156); }
body.dt #jxwin .jw-xep::before { content: ""; position: absolute; inset: -8px -4px -3px; }
#jxhud .jx-btn.co-moi::after { content: ""; position: absolute; right: 1px; top: 1px; width: 7px; height: 7px; border-radius: 50%; background: rgb(230,40,40); box-shadow: 0 0 0 1px #000; pointer-events: none; }

/* con trỏ chuột của client (assets/ui/hud/cursor, ui\ui3\公共.ini CursorList) — src/game/main.js đặt --jxcur; ô gõ chữ giữ con trỏ chữ */
body.jxcur, body.jxcur * { cursor: var(--jxcur) !important; }
body.jxcur input, body.jxcur textarea { cursor: text !important; }
/* bộ đo FPS góc trái trên (src/game/main.js fpsTick) */
#fps { position: fixed; left: 4px; top: 2px; z-index: 9; font: 13px/13px "VK Sans Serif 13", "IBM Plex Mono", monospace; color: rgb(0,255,0);
  text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000; pointer-events: none; white-space: nowrap; }
#fps.low { color: rgb(255,200,0); }
/* dải trên lấn chỗ (cửa sổ hẹp / không phóng to): main.js datFps đặt top ngay dưới dải + hud.datLech đẩy cột bên trái xuống */
/* khung Trợ Thủ (src/game/trothu.js): nội dung trong nền khung Thuộc tính khác, chữ client VK Sans Serif 13; tiêu đề mục vàng như
   txtAttribListTitle của client, chữ thường màu chữ ô bật / tắt của Tùy chọn; ô đánh dấu = hình ToggleStatus của client */
#jxwin .tt { position: absolute; left: 10px; top: 62px; width: 296px; height: 346px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
  font: 13px/15px var(--jx); color: rgb(254,255,195); text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000; }
#jxwin .tt-h { color: rgb(255,250,0); margin: 6px 0 3px; border-bottom: 1px solid rgba(255,250,0,.25); padding-bottom: 1px; }
#jxwin .tt-h:first-child { margin-top: 0; }
#jxwin .tt-r { display: flex; align-items: center; gap: 4px; min-height: 20px; white-space: nowrap; }
#jxwin .tt-in { display: inline-block; width: 12px; }
#jxwin .tt-x { color: rgb(169,211,190); overflow: hidden; text-overflow: ellipsis; }
#jxwin .tt-l { flex: 1 1 auto; min-width: 0; } /* tên dòng thuộc tính / món không nhặt: co lại, dài thì "…" (rê chuột xem đủ) */
#jxwin .tt-t { width: 170px; text-align: left; } /* ô gõ tên món không nhặt */
#jxwin .tt-g { color: rgb(160,160,150); font-size: 12px; line-height: 14px; margin: 2px 0 2px 16px; white-space: normal; }
#jxwin .tt-c { display: inline-block; flex: none; cursor: pointer; background-repeat: no-repeat; }
#jxwin .tt-o { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgb(169,211,190); cursor: pointer; box-sizing: border-box; }
#jxwin .tt-o.on { background: radial-gradient(rgb(255,250,0) 0 35%, transparent 45%); }
#jxwin .tt-n { font: 13px/14px var(--jx); color: rgb(255,246,108); background: rgba(0,0,0,.55); border: 1px solid #6a5a35; padding: 0 2px; text-align: center; height: 16px; box-sizing: border-box; }
/* thanh xổ kiểu game (anh 02/11 chọn mẫu B — trothu.js _s / _xo): ô đang chọn chữ vàng như ô số, rộng theo dòng dài nhất (mọi dòng chồng 1 ô lưới,
   chỉ dòng đang chọn hiện), tam giác vàng đồng; khung xổ nền tối, viền vàng đồng, dòng chọn nền vàng đồng, dòng khóa xám */
#jxwin .tt-s { display: inline-grid; grid-template-columns: minmax(0, auto) 9px; align-items: center; column-gap: 3px; vertical-align: middle; box-sizing: border-box;
  font: 12px/14px var(--jx); color: rgb(255,246,108); background: #1a1610; border: 1px solid #6a5a35; padding: 0 3px; max-width: 170px; cursor: pointer; }
#jxwin .tt-s:hover { border-color: #a8893f; }
#jxwin .tt-s > b { grid-area: 1 / 1; font-weight: normal; visibility: hidden; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#jxwin .tt-s > b.on { visibility: visible; }
#jxwin .tt-s > i { grid-area: 1 / 2; justify-self: center; width: 0; height: 0; border: 4px solid transparent; border-top: 5px solid #c9a95a; border-bottom: 0; }
.tt-xo { position: fixed; z-index: 100000; overflow-y: auto; box-sizing: border-box; padding: 2px 0; background: rgba(14,11,6,.96); border: 1px solid #a8893f;
  box-shadow: 0 0 0 1px #000, 0 4px 14px #000c; font: 12px/19px var(--jx); scrollbar-width: thin; scrollbar-color: #6a5a35 transparent; touch-action: pan-y; }
.tt-xo > b { display: block; font-weight: normal; padding: 0 12px 0 8px; white-space: nowrap; color: rgb(255,246,108); cursor: pointer; }
.tt-xo > b:hover { background: rgba(122,104,56,.55); color: #fff; }
.tt-xo > b.on { background: linear-gradient(#7a6838, #4f4224); color: #fff; }
.tt-xo > b.khoa, .tt-xo > b.khoa:hover { color: #7d7058; background: none; cursor: default; }
#jxwin .tt-b { font: 12px/14px var(--jx); color: rgb(255,217,78); background: #1a1610; border: 1px solid #6a5a35; padding: 1px 6px; cursor: pointer; }
#jxwin .tt-b:hover { color: #fff; border-color: rgb(255,217,78); }
#jxwin .tt-b.on { color: #fff; border-color: rgb(255,217,78); background: linear-gradient(#4f4224, #241d10); box-shadow: 0 0 4px rgba(255,217,78,.6); }
#jxwin .lp-hom { outline: 2px solid #ffe14d; outline-offset: -1px; z-index: 1; animation: lpHom .8s ease-in-out infinite alternate; }
@keyframes lpHom { from { box-shadow: 0 0 2px rgba(255,225,77,.3); } to { box-shadow: 0 0 10px rgba(255,225,77,1); } }
#jxwin .hd-nh { left: 0; top: 0; width: 816px; height: 342px; }
#jxwin .hd-nh > .tt-r { position: absolute; left: 26px; top: 10px; width: 400px; justify-content: center; }
#jxwin .hd-nh-bang { position: absolute; left: 26px; top: 44px; width: 320px; height: 280px; }
#jxwin .hd-nh-bang .tt-nh1 { position: absolute; left: 0; top: 0; margin: 0; transform-origin: 0 0; transform: scale(1.04); }
#jxwin .hd-nh-ds { position: absolute; left: 420px; top: 12px; width: 370px; }
.hd-nh-tieu { color: rgb(255,217,78); font: bold 13px/24px var(--jx); border-bottom: 1px solid #6a5a35; margin-bottom: 4px; }
.hd-nh-o { padding: 7px 8px; margin-bottom: 7px; background: #1a1610; border: 1px solid #4a3f28; border-left-width: 3px; }
.hd-nh-o b { font: bold 14px/18px var(--jx); }
.hd-nh-o div { color: rgb(225,221,200); font: 13px/18px var(--jx); }
.hd-nh-ghi { color: rgb(255,217,78); font: 12px/16px var(--jx); margin-top: 8px; white-space: normal; }
#hd-dt .hd-nh > .tt-r { gap: 6px; margin-bottom: 8px; }
#hd-dt .hd-nh > .tt-r > span:first-child { flex: 0 0 100%; color: rgb(200,190,160); font: 14px/22px var(--jx); }
#hd-dt .hd-nh-ghi { text-align: center; margin-top: 10px; font-size: 14px; line-height: 20px; }
#hd-dt .hd-nh { width: 296px; margin: 8px auto; color: #e8e2d0; }
#hd-dt .tt-r { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font: 13px/20px var(--jx); }
#hd-dt .tt-g { color: rgb(160,160,150); font-size: 12px; line-height: 14px; margin: 2px 0 2px 16px; white-space: normal; }
#hd-dt .tt-he { flex: 1; text-align: center; font: bold 16px/40px var(--jx); padding: 0; background: #1a1610; border: 1px solid #4a3f28; }
#hd-dt .tt-he.on { border-color: rgb(255,217,78); background: linear-gradient(#4f4224, #241d10); box-shadow: 0 0 4px rgba(255,217,78,.6); }
#hd-dt .tt-he.cam { text-decoration: underline; text-underline-offset: 2px; }
#hd-dt .tt-nh1 { position: relative; width: 296px; margin: 4px 0 2px; background-repeat: no-repeat; border: 1px solid #3a3020; box-sizing: border-box; }
#hd-dt .tt-nh1 > b { position: absolute; font: bold 13px/16px var(--jx); white-space: nowrap; pointer-events: none; text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000, 1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000; }
/* thẻ con (anh 03/11 — Đánh quái: Quái thường / Boss Hoàng Kim; Tiện ích: Ngũ hành / Nhiệm vụ ngày): dính trên đầu khi cuộn */
#jxwin .tt-con { position: sticky; top: 0; z-index: 1; display: flex; gap: 4px; padding: 0 0 4px; margin-bottom: 2px; background: rgba(16,13,8,.92); }
#jxwin .tt-con > span { flex: 1 1 0; text-align: center; font: 12px/18px var(--jx); color: rgb(169,211,190); background: #1a1610; border: 1px solid #6a5a35; cursor: pointer; }
#jxwin .tt-con > span:hover { color: #fff; border-color: rgb(255,217,78); }
#jxwin .tt-con > span.on { color: rgb(255,250,0); background: linear-gradient(#5a4a26, #2a2214); border-color: #c9a95a; cursor: default; }
/* Tiện ích → Ngũ hành: nút hệ vũ khí (chữ màu hệ; cam = hệ vũ khí đang cầm — gạch chân), khung trang bị client + chữ hệ cạnh ô (anh chọn bản 1) */
#jxwin .tt-he { font: bold 12px/16px var(--jx); padding: 0 6px; background: #1a1610; border: 1px solid #4a3f28; cursor: pointer; }
#jxwin .tt-he:hover { border-color: #a8893f; }
#jxwin .tt-he.on { border-color: rgb(255,217,78); background: linear-gradient(#4f4224, #241d10); box-shadow: 0 0 4px rgba(255,217,78,.6); }
#jxwin .tt-he.cam { text-decoration: underline; text-underline-offset: 2px; }
#jxwin .tt-nh1 { position: relative; width: 296px; margin: 4px 0 2px; background-repeat: no-repeat; border: 1px solid #3a3020; box-sizing: border-box; }
#jxwin .tt-nh1 > b { position: absolute; font: bold 13px/16px var(--jx); letter-spacing: .2px; white-space: nowrap; pointer-events: none;
  text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000, 1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000; }

/* khung Nhiệm vụ — thẻ Nhiệm vụ (anh 03/11 "nhiệm vụ trên mobile … nội dung thì hơi chán" — windows.js taskVe; anh chọn bản "ô nhiệm vụ như client"): phủ phần
   trong khung (x 18–400, y 44–412 của nền 新任务系统窗口), chữ client như Trợ Thủ; đoạn xanh bấm được gạch chân; thanh tiến độ vàng */
#jxwin .nvx { position: absolute; left: 18px; top: 44px; width: 382px; height: 368px; font: 13px/17px var(--jx); color: rgb(254,255,195); text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000; }
#jxwin .nvx .bam { cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
/* điện thoại (anh 11/11 — dòng "Đưa ta đến" Dã Tẩu): đoạn chữ bấm được của khung Nhiệm vụ cao thêm cho dễ chạm, chữ không xê dịch */
body.dt #jxwin .nvx .bam { display: inline-block; padding: 5px 2px; margin: -5px -2px; }
#jxwin .nvx small { color: rgb(201,191,165); margin-left: 6px; font-size: 12px; }
#jxwin .nvx em { font-style: normal; font-size: 11px; line-height: 15px; padding: 0 5px; border: 1px solid; margin-left: 8px; white-space: nowrap; }
#jxwin .nvx-d { margin: 1px 0; }
#jxwin .nvx-th { display: flex; align-items: center; gap: 6px; margin: 3px 0; font-size: 12px; line-height: 14px; color: rgb(201,191,165); }
#jxwin .nvx-th span { width: 52px; flex: none; }
#jxwin .nvx-th i { flex: 1 1 auto; height: 7px; background: rgba(0,0,0,.6); border: 1px solid #5a4a26; }
#jxwin .nvx-th u { display: block; height: 100%; background: linear-gradient(#ffe27a, #c99a2a); }
#jxwin .nvx-th b { font-weight: normal; color: rgb(255,246,108); min-width: 46px; text-align: right; }
#jxwin .nvx-hinh { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; flex: none; }
#jxwin .nvx-hinh img, #jxwin .nvx-o img { max-width: 48px; max-height: 48px; image-rendering: pixelated; pointer-events: none; }
#jxwin .nvx-trong { padding-top: 150px; text-align: center; color: rgb(201,191,165); }
#jxwin .nvx-ten { color: rgb(255,250,0); font-size: 15px; line-height: 19px; display: flex; align-items: center; flex-wrap: wrap; }
/* ô nhiệm vụ như client — hàng ô của nền khung, ô hình lớn + chi tiết khung dưới */
#jxwin .nvx .nvx-o { position: absolute; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-sizing: border-box; border: 1px solid transparent; }
#jxwin .nvx .nvx-o:hover { border-color: #a8893f; }
#jxwin .nvx .nvx-o.on { border: 2px solid rgb(255,217,78); box-shadow: inset 0 0 8px rgba(255,217,78,.55); }
#jxwin .nvx .nvx-o s { position: absolute; right: 3px; top: 3px; width: 8px; height: 8px; border-radius: 50%; background: #9a927e; box-shadow: 0 0 0 1px #000; }
#jxwin .nvx .nvx-o s.lam { background: #5ee05e; }
#jxwin .nvx .nvx-o s.tra { background: #ffd84a; }
#jxwin .nvx .nvx-hinh.lon { position: absolute; left: 19px; top: 134px; }
#jxwin .nvx .nvx-dau1 { position: absolute; left: 80px; top: 130px; width: 294px; }
#jxwin .nvx .nvx-ct { position: absolute; left: 10px; top: 196px; width: 364px; height: 166px; overflow-y: auto; scrollbar-width: none; }
#jxwin .nvx .nvx-tt-h { margin: 6px 0 3px; color: rgb(255,217,78); font-size: 12.5px; border-top: 1px solid rgba(255,217,78,.28); padding-top: 4px; }
#jxwin .nvx .nvx-tt { display: flex; flex-direction: column; gap: 2px; padding-bottom: 4px; }
#jxwin .nvx .nvx-b { font-size: 12px; line-height: 15px; color: rgb(201,191,165); padding-left: 2px; }
#jxwin .nvx .nvx-b b { font-weight: normal; color: #b8aa88; }
#jxwin .nvx .nvx-b.xong { color: #83b883; opacity: .82; }
#jxwin .nvx .nvx-b.xong b { color: #5ee05e; }
#jxwin .nvx .nvx-b.dang { color: rgb(255,246,160); background: rgba(255,217,78,.1); border-left: 2px solid rgb(255,217,78); padding-left: 4px; }
#jxwin .nvx .nvx-b.dang b { color: rgb(255,217,78); }
#jxwin .nvx .nvx-b .bam { color: rgb(55,231,63); }

/* bảng chọn chiêu của ô kỹ năng T / P (võ công 25/10) */
.jx-skpick { position: fixed; z-index: 7; display: flex; flex-wrap: wrap; gap: 3px; max-width: 330px; padding: 6px; background: rgba(8,14,12,.94); border: 1px solid #3c6e58; box-shadow: 0 0 0 1px #000, 0 6px 18px rgba(0,0,0,.7); font: 12px/14px var(--jx); color: #e8e2c8; }
.jx-skpick > div { position: relative; width: 34px; height: 34px; border: 1px solid #4a4434; background: #14110b; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.jx-skpick > div:hover { border-color: rgb(255,217,78); }
.jx-skpick > div.on { border-color: #7cff6b; box-shadow: inset 0 0 0 1px #7cff6b; }
.jx-skpick > div > span { font-size: 10px; line-height: 11px; text-align: center; padding: 1px; }
.jx-skpick > div > b { position: absolute; right: 1px; bottom: 0; font: 11px/11px var(--jx); color: rgb(255,217,78); text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000; }
.jx-skpick > p { flex-basis: 100%; margin: 3px 0 0; color: #a9a38a; font-size: 11px; }
/* icon đang kéo (chiêu / ô dùng nhanh) */
.jx-dragic { position: fixed; z-index: 30; width: 32px; height: 32px; pointer-events: none; opacity: .85; image-rendering: pixelated; }

/* màn chờ chuyển bản đồ (src/game/loading.js): ảnh nền phủ kín, tên bản đồ + thanh tải ở dưới; phủ trên mọi khung -> chờ thì không bấm được */
.zl { position: fixed; inset: 0; z-index: 9000; display: none; background: #000; opacity: 1; transition: opacity .25s; cursor: progress; }
.zl.on { display: block; }
.zl.out { opacity: 0; }
/* ảnh chờ phủ kín màn hình (anh 27/10 "full hình") — src/game/loading.js; dải tối dưới cho chữ + thanh tải */
.zl-bg { position: absolute; inset: 0; background: #0b0c0d center / cover no-repeat; }
.zl::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 55%, rgba(0,0,0,.75) 100%); pointer-events: none; }
.zl-bot { z-index: 1; }
.zl-bot { position: absolute; left: 50%; bottom: max(28px, 5vh); transform: translateX(-50%); width: min(640px, calc(100vw - 32px)); }
.zl-t { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; color: #ffe48a; font-weight: 700;
  text-shadow: 0 1px 2px #000, 0 0 3px #000; font-size: 15px; letter-spacing: .2px; }
.zl-p { color: #fff6e0; font-variant-numeric: tabular-nums; }
.zl-bar { height: 18px; border: 1.5px solid #d9a441; border-radius: 3px; background: rgba(8, 6, 4, .92); box-shadow: 0 0 0 1px #000, 0 2px 8px rgba(0,0,0,.85); overflow: hidden; }
.zl-bar i { display: block; height: 100%; width: 0; background: url("../../img/ui/img_bar.png") left center / min(640px, calc(100vw - 32px)) 100% no-repeat; transition: width .15s linear; }
/* nút dưới thanh tải (tải trước lần đầu: "Vào game ngay" — src/game/tai-truoc.js) */
.zl-nut { display: none; width: fit-content; margin: 8px 0 0 auto; padding: 4px 12px; font: 13px/15px var(--jx); color: #f3cf7a; background: rgba(10,8,6,.85); border: 1px solid #c79a4a; border-radius: 3px; cursor: pointer; }
.zl-nut:hover { color: #fff6e0; border-color: #f6d77e; }

/* ---------- chế độ điện thoại dựng dọc (src/game/dienthoai.js — anh 29/10 chọn mẫu 1 Cổ phong của mau-dien-thoai/): body.dt khi bật + dựng
   dọc; xoay ngang thì bỏ body.dt -> giao diện máy tính như cũ. --dt-day = đáy phần cảnh (= đỉnh bảng dưới) ---------- */
#dt, #dt-hanh { display: none; }
/* touch-action pan-x pan-y (anh 01/11, iPhone bị phóng to): cuộn được, không chụm 2 ngón / chạm 2 lần phóng to — trước manipulation (vẫn cho chụm) */
body.dt { -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; touch-action: pan-x pan-y; }
/* kéo xuống ở đỉnh trang không tải lại trang; giữ ngón trên hình không kéo hình ra (Android: mất chạm giữ) */
html.dt-bat, body.dt { overscroll-behavior: none; }
body.dt img { -webkit-user-drag: none; }
body.dt #cv { touch-action: none; }
body.dt #dt { display: block; position: fixed; inset: 0; z-index: 3; pointer-events: none; font: 13px/15px var(--jx); color: #e9e3cf; }
body.dt #dt > * { position: absolute; pointer-events: auto; }
#dt .dt-ic { display: block; flex: none; background-repeat: no-repeat; }
/* thanh trên */
#dt .dt-tren { left: 0; top: 0; width: 100%; height: 68px; background: linear-gradient(#0000, #000b), url(../../assets/ui/win/img/ktc_nen.png) -60px -110px;
  box-shadow: inset 0 -2px 0 #7f9f90, inset 0 -3px 0 #000, 0 3px 8px #000c; }
#dt .dt-tren > * { position: absolute; }
#dt .dt-chan { left: 6px; top: 6px; width: 54px; height: 54px; border: 2px solid #8fae9f; box-shadow: 0 0 0 1px #000, inset 0 0 0 1px #000; background: #111 center 25% / cover no-repeat; }
#dt .dt-cap { position: absolute; left: -4px; bottom: -6px; padding: 0 5px; height: 17px; border: 1px solid #8fae9f; background: #13201b; font: 16px/15px "VK Sans Serif 16", monospace; color: #ffe48a; font-weight: normal; }
#dt .dt-ten { left: 68px; top: 4px; right: 46px; white-space: nowrap; overflow: hidden; font: 16px/18px "VK Sans Serif 16", monospace; color: #ffe48a; text-shadow: 1px 1px 0 #000; }
#dt .dt-phai { display: inline-block; margin-left: 6px; padding: 0 5px; border: 1px solid #3d6a5c; background: #0b1a16; font: 13px/15px var(--jx); vertical-align: 1px; }
#dt .dt-h2, #dt .dt-h3 { left: 68px; display: flex; gap: 4px; align-items: center; }
#dt .dt-h2 { top: 26px; right: 46px; } /* bên phải còn nút Toàn màn hình (Nhận thưởng vào bảng Giang hồ — 30/10 lần 3) */
#dt .dt-h3 { top: 46px; right: 6px; gap: 6px; }
#dt .dt-tn { position: relative; flex: 1; height: 14px; background: #090909; border: 1px solid #58756a; box-shadow: inset 0 1px 2px #000; }
#dt .dt-tn i { position: absolute; left: 1px; top: 1px; bottom: 1px; max-width: calc(100% - 2px); }
#dt .dt-tn b { position: absolute; inset: 0; text-align: center; font: 13px/12px var(--jx); font-weight: normal; color: #fff; white-space: nowrap; text-shadow: -1px 0 #000, 1px 0 #000, 0 -1px #000, 0 1px #000, 1px 1px #000; }
#dt .dt-hp i { background: url("../../img/ui/mau.png") 0 0 / 100% 100% no-repeat; }
#dt .dt-mp i { background: url("../../img/ui/mana.png") 0 0 / 100% 100% no-repeat; }
#dt .dt-ex i { background: url("../../img/ui/kinhnghiem.png") 0 0 / 100% 100% no-repeat; }
#dt .dt-tien { flex: none; display: flex; align-items: center; gap: 3px; color: #ffe48a; text-shadow: 1px 1px 0 #000; white-space: nowrap; }
#dt .dt-nt { top: 4px; width: 34px; height: 34px; border: 1px solid #7f9f90; background: linear-gradient(#22302b, #0d1512); box-shadow: inset 0 0 0 1px #000; display: grid; place-items: center; color: #cfe9dc; }
#dt .dt-toan { display: block; width: 16px; height: 16px; --c: linear-gradient(currentColor, currentColor); background: var(--c) 0 0/6px 2px, var(--c) 0 0/2px 6px, var(--c) 100% 0/6px 2px, var(--c) 100% 0/2px 6px,
  var(--c) 0 100%/6px 2px, var(--c) 0 100%/2px 6px, var(--c) 100% 100%/6px 2px, var(--c) 100% 100%/2px 6px; background-repeat: no-repeat; }
/* trên cảnh */
#dt .dt-bd { left: 50%; top: 90px; transform: translateX(-50%); max-width: calc(100% - 210px); padding: 1px 10px; background: #000a; border: 1px solid #58756a; white-space: nowrap; overflow: hidden; color: #ffe48a; font: 16px/20px "VK Sans Serif 16", monospace; }
#dt .dt-bd em { font: 13px/20px var(--jx); font-style: normal; color: #9fd8ff; margin-left: 6px; }
/* FPS · Mạng · Trực tuyến (dienthoai.js _game — anh 30/10 lần 2): ô riêng cùng 1 hàng ở mép trái ngay dưới chân dung / ô cấp, trên hàng biểu
   tượng trạng thái (anh 31/10 "tách thành 2 cái khác nhau đặt ngay" — ảnh mũi tên — rồi "vẫn tách nhưng nằm chung hàng ngang" + số người trực
   tuyến; bản trước 1 dòng giữa màn dưới tên bản đồ). Dọc: tên bản đồ xuống dưới hàng này (top 90 — cùng hàng thì đè tên bản đồ dài), hàng biểu
   tượng trạng thái 118, bảng Mộc nhân 152 (anh 31/10 có thử tên bản đồ cùng hàng, sát mép phải + bản đồ nhỏ xuống 24, rồi chọn giữ bản này);
   ngang: dưới khung chân dung, hàng biểu tượng xuống 16. Mạng chậm vàng, rất chậm / mất kết nối đỏ */
#dt .dt-mang { left: 4px; top: 70px; display: flex; align-items: flex-start; gap: 4px; pointer-events: none; }
#dt .dt-mang > b { padding: 0 6px; background: #0009; white-space: nowrap; color: #9fe8b0; font: 12px/15px var(--jx); font-weight: normal; text-shadow: 1px 1px 0 #000; }
#dt .dt-mang > .cham { color: #ffe48a; }
#dt .dt-mang > .mat { color: #ff6a5a; }
#dt .dt-mang > .dt-ky { display: none !important; } /* ẩn chữ ký dòng thông số trên mobile */
body.dt.dt-ngang #dt .dt-mang { left: 6px; top: 54px; }
body.dt.dt-ngang:not(.dt-gon) #dt .dt-mang { display: none; } /* mở trang chức năng: cột thẻ ở mép trái (như hàng biểu tượng trạng thái) */
#dt .dt-mm { right: 6px; top: 74px; width: 92px; height: 92px; border: 2px solid #8fae9f; box-shadow: 0 0 0 1px #000; background: #000; }
#dt .dt-mm canvas { display: block; width: 100%; height: 100%; }
#dt .dt-tudanh { right: 6px; top: 172px; width: 92px; height: 24px; border: 1px solid #7f9f90; background: linear-gradient(#22302b, #0d1512); text-align: center; line-height: 22px; color: #7dff8a; text-shadow: 1px 1px 0 #000; }
#dt .dt-tudanh.tat { color: #a8a8a8; }
/* nút Túi tử mẫu ở lề trái Hành trang (anh 03/11 lượt 18 — dienthoai.js _xepCuaSo đặt chỗ, chỉ hiện khi mở Hành trang mà túi tử mẫu chưa mở): hình nút
   ItemEx của thanh dưới client (khung 1) + chữ */
#dt .dt-tmnut { position: absolute; display: none; width: 52px; text-align: center; font: 11px/12px var(--jx); color: rgb(254,255,195); text-shadow: 1px 1px 0 #000; cursor: pointer; z-index: 5; }
#dt .dt-tmnut i { display: block; width: 40px; height: 40px; margin: 0 auto 2px; background: url(../../assets/ui/hud/btn/itemex.png) 0 0 / 120px 40px no-repeat, rgba(0,0,0,.55); border: 1px solid #a8893f; box-shadow: 0 0 0 1px #000; image-rendering: pixelated; }
#dt .dt-tmnut:active i { filter: brightness(1.3); }
/* bản đồ lớn (chạm bản đồ nhỏ — dienthoai.js _moBdl): dọc cả bề ngang từ dưới thanh trên tới trên dải thẻ; ngang khung to giữa màn; trên mọi thứ của
   lớp điện thoại (cửa sổ client vẫn trên nó) */
#dt .dt-bdl { display: none; z-index: 20; left: 6px; right: 6px; top: 72px; bottom: 64px; flex-direction: column; background: #050807;
  border: 2px solid #8fae9f; box-shadow: 0 0 0 1px #000, 0 6px 18px #000a; }
#dt .dt-bdl.mo { display: flex; }
#dt .dt-bdl-dau { position: relative; flex: none; height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 48px 0 10px; background: linear-gradient(#22302b, #0d1512);
  border-bottom: 1px solid #58756a; color: #ffe48a; font: 16px/32px "VK Sans Serif 16", monospace; white-space: nowrap; overflow: hidden; }
#dt .dt-bdl-dau em { font: 13px/32px var(--jx); font-style: normal; color: #9fd8ff; }
#dt .dt-bdl-dau b { position: absolute; right: 0; top: 0; width: 44px; height: 32px; display: grid; place-items: center; font: 18px/32px var(--jx); color: #ffe48a; cursor: pointer;
  border-left: 1px solid #58756a; background: #0c1210; }
#dt .dt-bdl-cv { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: none; }
#dt .dt-bdl-cv canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; touch-action: none; }
body.dt.dt-ngang #dt .dt-bdl { left: 50%; right: auto; top: 6px; bottom: 6px; width: min(760px, calc(100% - 220px)); transform: translateX(-50%); }
body.dt-bdlmo .mn { display: none !important; }
/* dòng tin trên nút Chat (anh 31/10 lần 3: "hiển thị đủ full text thông báo chứ đừng ngắt chữ"): xuống dòng cho đủ chữ; khối neo đáy ngay trên nút
   Chat — nhiều dòng thì dài lên trên */
#dt .dt-tin { left: 6px; top: auto; bottom: calc(100% - var(--dt-day) + 46px); width: calc(100% - var(--dt-cum, 258px) - 20px); pointer-events: none; transition: opacity .6s; }
#dt .dt-tin.an { opacity: 0; } /* hết TIN_HIEN (dienthoai.js) kể từ tin mới nhất */
#dt .dt-tin > div.ht { color: rgb(243, 194, 90); } /* tin hệ thống: nền vàng nhạt như khung chat (hud.js MAU_HE_THONG — anh 13/11 mẫu C) */
#dt .dt-tin > div { margin-top: 2px; padding: 1px 6px; background: linear-gradient(90deg, #000b, #0000); white-space: normal; overflow-wrap: anywhere; text-shadow: 1px 1px 0 #000; }
#dt .dt-tin .tin { color: rgb(255,249,148); }
#dt .dt-tin .canh { color: rgb(255,96,96); }
#dt .dt-tin b { color: #9fd8ff; font-weight: normal; }
#dt .dt-nutt { left: 6px; top: calc(var(--dt-day) - 40px); height: 28px; padding: 0 10px 0 4px; display: flex; align-items: center; gap: 4px; border: 1px solid #7f9f90; background: linear-gradient(#22302b, #0d1512); }
body.dt-cs #dt .dt-tin, body.dt-cs #dt .dt-nutt, body.dt-chat #dt .dt-tin, body.dt-chat #dt .dt-nutt { display: none; }
/* nút lời mời tổ đội (anh 06/11 — dienthoai.js, hud.js moiDoi): biểu tượng 组队 của client cạnh nút Chat; chạm -> bảng .dt-moip ngay bên phải nút
   (anh 06/11 chiều "đừng mở hẳn 1 pop up … cũng cần làm trên mobile nữa nhé, cho đồng bộ"): mỗi lời mời 1 khối — câu client + 3 nút Đồng ý (chữ đỏ)
   / Cự tuyệt / Xem nhẹ cỡ ngón tay; neo đáy ngang đáy nút, nhiều lời mời thì dài lên trên (không đè cần điều khiển) */
#dt .dt-moidoi { left: 84px; top: calc(var(--dt-day) - 40px); width: 28px; height: 28px; display: grid; place-items: center; }
#dt .dt-moidoi > i { width: 24px; height: 24px; background-repeat: no-repeat; background-position: 0 0; transform: scale(1.15); }
#dt .dt-moidoi > b { position: absolute; right: -4px; bottom: -4px; font: 11px/11px var(--jx); color: #fff; font-weight: normal; text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000; }
#dt .dt-moip { position: absolute; left: 34px; bottom: -4px; width: max-content; max-width: calc(100vw - 130px); }
#dt .dt-moil { margin-top: 4px; padding: 4px 6px 6px; border: 1px solid #7f9f90; background: #000c; box-shadow: 0 2px 6px #000a; }
#dt .dt-moic { color: rgb(255,249,148); text-shadow: 1px 1px 0 #000; white-space: normal; }
#dt .dt-moic span { color: #9fd8ff; }
#dt .dt-moin { display: inline-block; margin: 5px 6px 0 0; padding: 0 10px; height: 26px; line-height: 26px; border: 1px solid #7f9f90; background: linear-gradient(#22302b, #0d1512); color: #e9e3cf; white-space: nowrap; }
#dt .dt-moin.nhan { color: rgb(255,64,64); }
#dt .dt-moin:active { filter: brightness(1.3); }
body.dt-cs #dt .dt-moidoi, body.dt-chat #dt .dt-moidoi { display: none !important; }
body.dt-cando #dt .dt-moidoi { top: calc(var(--dt-day) - 346px); }
body.dt.dt-ngang #dt .dt-moidoi { top: auto !important; bottom: 156px; }
/* cần điều khiển (dienthoai.js _cuaCan — Trợ Thủ → Khác; anh 31/10 "đưa vào khu vực trung tâm, khóa hoặc không khóa"; lần 3 "chỗ chat và cái
   joystick nên điều chỉnh vị trí, bị cấn quá" — kiểu B): vùng = phần cảnh dưới bên trái cao 292, từ mép trái tới trước cụm ô kỹ năng 16 điểm
   (--dt-cum — dienthoai.js _xepO); vòng (b) nghỉ ở 28% bề ngang, cao hơn đáy cảnh 150, mờ khi không dùng; không khóa: chạm đâu trong vùng vòng hiện
   ở đó (dienthoai.js đặt left / top), nhả thì trượt về chỗ nghỉ; khóa: chỉ vòng nhận chạm. Nút Chat + dòng tin lên trên vùng */
#dt .dt-can { left: 0; top: calc(var(--dt-day) - 300px); width: calc(100% - var(--dt-cum, 258px) - 16px); height: 292px; display: none; touch-action: none; pointer-events: auto; }
body.dt-cando #dt .dt-can { display: block; }
body.dt-cankhoa #dt .dt-can { pointer-events: none; }
body.dt-cankhoa #dt .dt-can > b { pointer-events: auto; }
#dt .dt-can > b { position: absolute; left: clamp(4px, calc(var(--vw100, 100vw) * .28 - 53px * var(--dt-cc, 1)), calc(100% - 6px - 106px * var(--dt-cc, 1))); top: calc(150px - 53px * var(--dt-cc, 1));
  width: calc(106px * var(--dt-cc, 1)); height: calc(106px * var(--dt-cc, 1)); box-sizing: border-box; border-radius: 50%;
  border: 2px solid #8fae9f; background: radial-gradient(#0000 52%, #0b1a16aa 53%, #000c), radial-gradient(#13201b99, #000a);
  box-shadow: 0 0 0 1px #000, inset 0 0 12px #000; opacity: .38; transition: opacity .25s, left .2s, top .2s; }
#dt .dt-can.dang > b { opacity: .95; }
#dt .dt-can > b > i { position: absolute; left: calc(27px * var(--dt-cc, 1)); top: calc(27px * var(--dt-cc, 1)); width: calc(48px * var(--dt-cc, 1)); height: calc(48px * var(--dt-cc, 1)); box-sizing: border-box; border-radius: 50%; border: 1px solid #000;
  background: radial-gradient(circle at 38% 32%, #e9f3ee, #9dbcad 40%, #4d6d60 72%, #22302b); box-shadow: 0 2px 6px #000c, inset 0 0 0 2px #cfe9dc66; }
/* nút khóa ô kỹ năng (dienthoai.js datOKhoa — anh 31/10 lần 2 "thêm 1 ô khóa ... đổi trạng thái gắn skill và dùng skill / vật phẩm"): bên trái
   hàng vật phẩm (--dt-okr / --dt-okt — dienthoai.js _xepO), giữa hàng; khóa = ổ đóng (chỉ dùng), mở = ổ mở vàng + ô kỹ năng viền vàng đứt nhấp nháy (chỉ gắn) */
#dt .dt-okhoa { right: var(--dt-okr, 224px); top: calc(var(--dt-day) - var(--dt-okt, 54px)); width: 34px; height: 34px; box-sizing: border-box; display: grid; place-items: center; border: 1px solid #7f9f90;
  background: linear-gradient(#22302b, #0d1512); box-shadow: inset 0 0 0 1px #000, 0 1px 3px #000a; color: #cfe9dc; }
#dt .dt-okhoa svg { display: block; }
#dt .dt-okhoa path { fill: none; stroke: currentColor; stroke-width: 2; }
#dt .dt-okhoa rect { fill: currentColor; }
#dt .dt-okhoa rect.lo { fill: #0d1512; }
#dt .dt-okhoa .m, body.dt-osua #dt .dt-okhoa .k { display: none; }
body.dt-osua #dt .dt-okhoa .m { display: inline; }
body.dt-osua #dt .dt-okhoa { color: #ffe48a; border-color: #ffe48a; box-shadow: inset 0 0 0 1px #000, 0 0 8px #ffe48a88; }
body.dt-cs #dt .dt-okhoa, body.dt-chat #dt .dt-okhoa { display: none; }
/* nút Lên / xuống ngựa (anh 10/11 — dienthoai.js NGUA_VONG / _xepO): màn dọc bên trái nút khóa, giữa hàng vật phẩm; chỉ hiện khi đang mặc ngựa (.co),
   đang cưỡi thì viền vàng (.bat) */
/* z-index 1 (anh 12/11 "lên ngựa là con trỏ nó đi theo" — màn dọc): nút nằm lấn vào vùng cần điều khiển (.dt-can dựng sau, đè lên) -> chạm nút ngựa thành
   kéo cần; nay nút nằm trên vùng cần */
#dt .dt-ngua { z-index: 1; right: var(--dt-ngr, 264px); top: calc(var(--dt-day) - var(--dt-ngt, 55px)); width: 36px; height: 36px; box-sizing: border-box; display: none; place-items: center; border: 1px solid #7f9f90;
  border-radius: 50%; background: radial-gradient(circle at 50% 35%, #22302b, #0b0f0d 70%); box-shadow: 0 0 0 1px #000, 0 1px 3px #000a; }
#dt .dt-ngua.co { display: grid; }
#dt .dt-ngua.bat { border-color: #ffe48a; box-shadow: 0 0 0 1px #000, 0 0 8px #ffe48a88; }
body.dt-cs #dt .dt-ngua, body.dt-chat #dt .dt-ngua { display: none; }
body.dt-cando #dt .dt-tin { bottom: calc(100% - var(--dt-day) + 352px); width: 46%; }
body.dt-cando #dt .dt-nutt { top: calc(var(--dt-day) - 346px); }
/* bảng dưới: Giang hồ (lưới chức năng + Việc cần làm) · cửa sổ client (dienthoai.js _xepCuaSo đặt cửa sổ vào giữa bảng) · thu gọn */
#dt .dt-bang { left: 0; right: 0; top: var(--dt-day); bottom: 58px; overflow: hidden; isolation: isolate; background: #0c1210; box-shadow: 0 -2px 0 #7f9f90, 0 -3px 0 #000, 0 -6px 12px #000c; }
/* nền hoa văn: chỉ phần giữa của nền Kỳ Trân Các (579 × 524 — hoa văn từ 25, 80 tới 555, 490), phóng 2 lần: đủ cao tới 820 điểm (toàn màn hình);
   bản trước lát cả hình -> bảng cao (toàn màn hình, Hành trang) lộ 2 vạch khung đáy / đỉnh của hình (anh thấy ở Tin cập nhật 29/10) */
#dt .dt-bang::before { content: ""; position: absolute; z-index: -1; left: -50px; top: -160px; width: 1158px; height: 1048px;
  background: linear-gradient(#0007, #0007), url(../../assets/ui/win/img/ktc_nen.png) 0 0 / 100% 100%; }
body.dt-gon #dt .dt-bang { display: none; }
#dt .dt-dau { display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 0 8px; margin-top: 6px; }
#dt .dt-bien, #dt .dt-nutda { height: 24px; color: #1b1a16; background: linear-gradient(#cfcec1, #9d9c90 55%, #7d7c71); border: 1px solid #23231f; box-shadow: inset 0 1px 0 #efeee2; white-space: nowrap; }
#dt .dt-bien { position: relative; padding: 0 24px; font: 16px/23px "VK Sans Serif 16", monospace; }
#dt .dt-bien::before, #dt .dt-bien::after { content: ""; position: absolute; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(#77766c 30%, #3b3a34 72%); box-shadow: 0 0 0 1px #23231f; }
#dt .dt-bien::before { left: 5px; }
#dt .dt-bien::after { right: 5px; }
#dt .dt-nutda { padding: 0 10px; line-height: 22px; }
#dt .dt-luoi { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px 0; padding: 6px 2px 0; } /* 10 ô (5 nút đã dời ra dải trên Khung 1) — 5 cột × 2 hàng */
body.dt-cs #dt .dt-luoi, body.dt-cs #dt .dt-viec, body.dt-chat #dt .dt-luoi, body.dt-chat #dt .dt-viec { display: none; }
#dt .dt-o { display: flex; flex-direction: column; align-items: center; gap: 2px; }
#dt .dt-khung { position: relative; width: 46px; height: 46px; display: grid; place-items: center; background: #0a0d0c; border: 1px solid #6f8f80; box-shadow: inset 0 0 0 1px #000, inset 0 0 10px #000; }
#dt .dt-o.bat .dt-khung { border-color: #ffe48a; box-shadow: inset 0 0 0 1px #000, 0 0 6px #ffe48a99; }
#dt .dt-o span { white-space: nowrap; text-shadow: 1px 1px 0 #000; }
#dt .dt-so { position: absolute; right: -7px; top: -7px; display: none; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #c6281d; border: 1px solid #000; color: #fff; font: 13px/15px var(--jx); font-weight: normal; text-align: center; }
#dt .dt-so.moi { background: #1f8f3a; }
#dt .dt-viec { margin: 9px 8px 0; padding: 5px 7px; border: 1px solid #4e6a5f; background: #000a; display: flex; gap: 5px; align-items: center; white-space: nowrap; overflow: hidden; }
#dt .dt-xong { overflow: hidden; text-overflow: ellipsis; }
#dt .dt-viec > b { color: #ffe48a; font-weight: normal; }
#dt .dt-chip { padding: 0 6px; border: 1px solid #6f8f80; background: #13201b; color: #cfe9dc; line-height: 18px; }
#dt .dt-chip[data-a="vnt"] { color: #ffd84e; border-color: #c6281d; } /* Nhận thưởng còn quà chờ (anh 03/11 — main.js capNhatThuong) */
#dt .dt-xong { color: #9a9483; }
/* dải 5 thẻ */
#dt .dt-tab { left: 0; right: 0; bottom: 0; height: 58px; display: grid; grid-template-columns: repeat(5, 1fr); background: linear-gradient(#2a3b35, #101a16 60%, #0a100e); box-shadow: 0 -2px 0 #8fae9f, 0 -3px 0 #000; }
#dt .dt-tab > div { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #b9c9c0; }
#dt .dt-tic { position: relative; }
#dt .dt-tab > .on { color: #ffe48a; background: radial-gradient(ellipse at 50% 100%, #8fae9f66, #0000 70%); }
#dt .dt-tab > .on::before { content: ""; position: absolute; top: 0; left: 14px; right: 14px; height: 2px; background: #ffe48a; }
#dt .dt-tab > .on .dt-ic.f3 { background-position: 100% 0 !important; }
@media (max-width: 370px) { #dt .dt-o span { letter-spacing: -.6px; } }
/* phần của giao diện máy tính: ẩn phần đã có bản dọc, đặt lại phần dùng chung */
body.dt #jxhud .jx-top, body.dt #jxhud .jx-mmbox, body.dt #jxhud .jx-nvbang, body.dt #jxhud .jx-doi, body.dt #fps, body.dt #jxhud .jx-chatbox { display: none !important; }
body.dt #jxhud .jx-stbar { left: 4px !important; top: 118px !important; transform: none !important; } /* dưới hàng FPS / Mạng (#dt .dt-mang) và tên bản đồ (#dt .dt-bd) */
body.dt #jxhud .jx-thuyen { top: 132px; }
/* bảng Mộc nhân luyện công (mocnhan.js — Ba Lăng; anh 30/10: bản trước đè lên bản đồ nhỏ và bảng dưới): chỉ hiện lúc thu gọn (mở bảng Giang hồ /
   cửa sổ / chat thì ẩn), dưới hàng biểu tượng trạng thái, chừa bản đồ nhỏ bên phải; mặc định thu gọn (dienthoai.js — mở ra thì che nhân vật) */
body.dt .mn { top: 152px; left: 4px; max-width: calc(var(--vw100, 100vw) - 114px); }
body.dt-luoi .mn, body.dt-cs .mn, body.dt-chat .mn { display: none !important; }
body.dt #jxhud .jx-bot { left: 0 !important; top: 0 !important; bottom: auto !important; width: 100% !important; height: 100% !important; transform: none !important; background: none !important; }
body.dt #jxhud .jx-bot > * { display: none !important; }
body.dt #jxhud .jx-bot > .dt-o { display: block !important; left: auto !important; right: var(--dt-r) !important; top: calc(var(--dt-day) - var(--dt-y)) !important; width: var(--dt-s, 46px) !important; height: var(--dt-s, 46px) !important;
  background: #0b0f0d; border: 1px solid #6f8f80; box-shadow: inset 0 0 0 1px #000, 0 1px 3px #000a; }
body.dt #jxhud .jx-bot > .dt-o::after { content: attr(data-dt); position: absolute; right: 2px; top: 0; font: 13px/13px var(--jx); color: #ffe48a; text-shadow: 1px 1px 0 #000; pointer-events: none; }
body.dt #jxhud .jx-bot > .dt-o .jx-qi { width: calc(var(--dt-s, 46px) - 8px); height: calc(var(--dt-s, 46px) - 8px); object-fit: contain; }
body.dt.dt-cs #jxhud .jx-bot > .dt-o, body.dt.dt-chat #jxhud .jx-bot > .dt-o, body.dt.dt-thap #jxhud .jx-bot > .dt-o[data-hang="1"] { display: none !important; }
/* bảng Giang hồ mở: chỉ hàng ô dưới (1, 2, T, P) — hàng trên đè lên nhân vật (nhân vật đứng ngay trên bảng) */
body.dt.dt-luoi #jxhud .jx-bot > .dt-o[data-hang="1"] { display: none !important; }
/* Chat (dienthoai.js _xepChat — anh 29/10 "thiếu nút, bố cục chưa đẹp"): thẻ lọc · tin (vuốt cuộn) · hàng gõ chữ: kênh, ô chữ, biểu cảm, gửi */
#dt .dt-chatp { left: 0; right: 0; top: calc(var(--dt-day) + 38px); bottom: 58px; display: none; flex-direction: column; padding: 0 6px 6px; }
body.dt-chat #dt .dt-chatp { display: flex; }
#dt .dt-ctab { flex: none; display: flex; gap: 2px; }
#dt .dt-ctab > span { flex: 1; height: 28px; line-height: 27px; text-align: center; white-space: nowrap; border: 1px solid #4e6a5f; border-bottom: 0; background: linear-gradient(#22302b, #0d1512);
  color: rgb(50,220,173); text-shadow: 1px 1px 0 #000; }
#dt .dt-ctab > span.on { color: #ffe48a; border-color: #8fae9f; background: linear-gradient(#3d564c, #16221d); }
#dt .dt-clist { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 4px 6px; border: 1px solid #8fae9f;
  background: #000b; box-shadow: inset 0 0 8px #000; font: 15px/19px var(--jx); word-break: break-word; scrollbar-width: none; }
#dt .dt-clist::-webkit-scrollbar { display: none; }
#dt .dt-clist > :first-child { margin-top: auto; }
/* ghim của quản trị (anh 03/11 — dienthoai.js _xepChat): dưới thẻ lọc, trên danh sách tin */
#dt .dt-ghim { flex: none; position: relative; padding: 4px 26px 5px 7px; border: 1px solid #8fae9f; border-bottom: 0; background: rgba(36,22,6,.94);
  color: rgb(255,217,78); font: 15px/19px var(--jx); text-shadow: 1px 1px 0 #000; word-break: break-word; }
#dt .dt-ghim b { color: #ff9a3c; font-weight: normal; }
#dt .dt-ghim .x { position: absolute; right: 0; top: 0; padding: 4px 8px; color: #bbb; }
#dt .dt-clist i { display: inline-block; vertical-align: -2px; margin-right: 3px; background-repeat: no-repeat; }
#dt .dt-cin { flex: none; display: flex; align-items: center; gap: 5px; margin-top: 6px; }
#dt .dt-ckenh, #dt .dt-cbtn { flex: none; width: 36px; height: 36px; box-sizing: border-box; border: 1px solid #8fae9f; background: #0b0f0d no-repeat center; box-shadow: inset 0 0 0 1px #000; }
#dt .dt-ckenh { background-size: 26px 26px; }
#dt .dt-cbtn.bieucam { background-image: url(../../assets/ui/hud/btn/face.png); background-size: 56px 28px; background-position: 3px 3px; }
#dt .dt-cbtn.gui { background-image: url(../../assets/ui/hud/btn/sendbtn.png); background-size: 84px 28px; background-position: 3px 3px; }
#dt .dt-cgo { flex: 1; min-width: 0; height: 36px; box-sizing: border-box; padding: 0 8px; border: 1px solid #8fae9f; background: #0b0f0d; box-shadow: inset 0 0 0 1px #000;
  color: rgb(254,255,160); font: 16px/34px var(--jx); outline: none; -webkit-user-select: text; user-select: text; }
#dt .dt-cgo::placeholder { color: #6f7f78; }
#dt .dt-cmenu { position: absolute; left: 6px; bottom: 50px; display: none; padding: 3px; border: 1px solid #8fae9f; background: #0b120fef; box-shadow: 0 2px 12px #000; }
#dt .dt-chatp.mo .dt-cmenu { display: block; }
#dt .dt-cmenu > div { padding: 4px 10px 4px 6px; white-space: nowrap; font: 15px/24px var(--jx); text-shadow: 1px 1px 0 #000, -1px 0 #000, 0 -1px #000; }
#dt .dt-cmenu > div.on { background: #2b3f37; }
#dt .dt-cmenu i { display: inline-block; width: 21px; height: 21px; vertical-align: -5px; margin-right: 6px; background-repeat: no-repeat; }
/* hàng nút việc làm của món (dienthoai.js _hanh): dưới ô xem món, trên cửa sổ client. Nút = nút trống của client cỡ 20 như Khóa / Đính / Tháo
   (_nutClient: hình 53 / 70 / 98 × 20, khung 2 lúc nhấn), chữ client 13 px màu chữ nút 169,211,190; nút đầu (việc của chuột phải: Mặc, Dùng,
   Uống…) chữ vàng 225,213,43 như nút Đồng ý của khung Bang hội; không khung ngoài. Giữa màn, vừa đủ các nút (anh 31/10: "khung Dùng và Đóng dài
   quá" rồi "thô quá, hơi kém thẩm mĩ, mà còn to quá" — bản trước nút vàng / xám cao 36 trong khung viền). Chỗ chạm rộng hơn hình (::before).
   Phóng 1,35 lần cả hàng (anh 31/10: "style oke rồi nhưng phóng to lên 1 tí, tầm 30–40%, đừng lố") — giữ đúng tỉ lệ hình nút client; mép trên
   đứng yên (dienthoai.js _hanh đặt top), windows.js HANH_CAO tính theo cỡ đã phóng */
body.dt #dt-hanh { position: fixed; left: 50%; transform: translateX(-50%) scale(1.35); transform-origin: 50% 0; width: max-content; max-width: calc((100% - 12px) / 1.35); z-index: 8; flex-wrap: wrap; justify-content: center; gap: 4px; }
/* hàng nút việc làm ở máy tính bảng (anh 09/11 — src/game/chamgiu.js), cùng kiểu #dt-hanh của điện thoại */
#cg-hanh { display: none; position: fixed; z-index: 9; transform: translateX(-50%) scale(1.35); transform-origin: 50% 0; width: max-content; max-width: calc((100% - 12px) / 1.35); flex-wrap: wrap; justify-content: center; gap: 4px; cursor: pointer; }
#dt-hanh .dt-hn, #cg-hanh .dt-hn { position: relative; height: 20px; box-sizing: border-box; padding: 0 8px; text-align: center; white-space: nowrap; color: rgb(225,213,43);
  background: no-repeat 0 0; font: 13px/20px "VK Sans Serif 13", monospace; }
#dt-hanh .dt-hn.dt-hphu, #cg-hanh .dt-hn.dt-hphu { color: rgb(169,211,190); }
#dt-hanh .dt-hn:active, #cg-hanh .dt-hn:active { background-position: calc(var(--w) * -2) 0; color: rgb(124,255,125); }
#dt-hanh .dt-hn::before, #cg-hanh .dt-hn::before { content: ""; position: absolute; inset: -9px -2px; }
#dt-hanh .dt-hgo { color: #ffe48a; padding: 0 6px; font: 13px/20px var(--jx); text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000, 1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000; }
/* kéo món (dienthoai.js _cham — anh 30/10): khung vàng = chỗ món sẽ nằm khi nhả, đỏ = lòi ra ngoài lưới (nhả thì món về chỗ cũ); lưới và ô
   trang bị không để trình duyệt nhận kéo làm cuộn trang. #jw-dat: cùng khung khi cầm món bằng chuột trên máy tính (windows.js _oDat — anh 04/11;
   đỏ thêm: ô trang bị món không mặc vào được) */
#dt-dich, #jw-dat { display: none; position: fixed; z-index: 8; pointer-events: none; box-sizing: border-box; border: 2px solid #ffe48a; background: #ffe48a3d; box-shadow: 0 0 0 1px #000, 0 0 8px #ffe48acc; }
#dt-dich.ngoai, #jw-dat.ngoai { border-color: #ff6a5a; background: #ff6a5a3d; box-shadow: 0 0 0 1px #000; }
body.dt #jxwin .jw-box, body.dt #jxwin .jw-slot { touch-action: none; }
/* nút Nói chuyện (dienthoai.js _nutNoi — anh 30/10): NPC / Rương chứa đồ gần nhất; phải phần cảnh, ngay trên 2 hàng ô dùng nhanh (bảng Giang hồ
   mở / màn thấp: trên hàng dưới); hình con trỏ nói chuyện của client + tên NPC. Nút Nhặt (_nutNhat — anh 30/10 "thiếu nút nhặt đồ"): cùng kiểu,
   hình con trỏ nhặt của client + tên vật; cùng chỗ, nút Nói chuyện đang hiện (body.dt-noi-co) thì nằm ngay trên */
/* chỉ dẫn tân thủ trên điện thoại (src/game/tanthu.js — anh 10/11): dòng dưới nút Tự đánh; màn ngang giữa mép trên */
#dt .dt-chidan { position: absolute; left: 6px; right: 6px; top: 196px; box-sizing: border-box; padding: 4px 24px 4px 8px; background: #000b; border: 1px solid #7d6a3a; color: #efe6c8; font: 13px/17px var(--jx); pointer-events: auto; }
#dt .dt-chidan b { color: #ffd84e; font-weight: normal; }
#dt .dt-chidan .bam { text-decoration: underline; }
#dt .dt-chidan-x { position: absolute; right: 0; top: 0; width: 22px; line-height: 25px; text-align: center; font-style: normal; color: #b9b2a0; }
body.dt.dt-ngang #dt .dt-chidan { left: 6px; right: auto; top: auto; bottom: 194px; width: min(320px, 42vw); transform: none; z-index: 2; }
body.dt-cs #dt .dt-chidan, body.dt-chat #dt .dt-chidan, body.dt-luoi #dt .dt-chidan { display: none !important; }
#dt .dt-sap { position: absolute; }
#dt .dt-noi, #dt .dt-nhat, #dt .dt-sap { right: 6px; top: calc(var(--dt-day) - 196px); height: 44px; max-width: 200px; box-sizing: border-box; display: none; align-items: center; gap: 4px; padding: 0 12px 0 4px;
  border: 1px solid #ffe48a; background: linear-gradient(#2c3d35, #0d1512); box-shadow: 0 0 0 1px #000, 0 2px 8px #000c, inset 0 0 8px #ffe48a33; }
body.dt-luoi #dt .dt-noi, body.dt-thap #dt .dt-noi, body.dt-luoi #dt .dt-nhat, body.dt-thap #dt .dt-nhat, body.dt-luoi #dt .dt-sap, body.dt-thap #dt .dt-sap { top: calc(var(--dt-day) - 112px); }
/* xếp từ dưới lên: Nói chuyện, Xem sạp, Nhặt (anh 10/11 — tách Xem sạp khỏi Nói chuyện) */
body.dt-noi-co #dt .dt-nhat, body.dt-noi-co #dt .dt-sap, body.dt-sap-co #dt .dt-nhat { top: calc(var(--dt-day) - 248px); }
body.dt-noi-co.dt-luoi #dt .dt-nhat, body.dt-noi-co.dt-thap #dt .dt-nhat, body.dt-noi-co.dt-luoi #dt .dt-sap, body.dt-noi-co.dt-thap #dt .dt-sap, body.dt-sap-co.dt-luoi #dt .dt-nhat, body.dt-sap-co.dt-thap #dt .dt-nhat { top: calc(var(--dt-day) - 164px); }
body.dt-noi-co.dt-sap-co #dt .dt-nhat { top: calc(var(--dt-day) - 300px); }
body.dt-noi-co.dt-sap-co.dt-luoi #dt .dt-nhat, body.dt-noi-co.dt-sap-co.dt-thap #dt .dt-nhat { top: calc(var(--dt-day) - 216px); }
#dt .dt-noi > i, #dt .dt-nhat > i, #dt .dt-sap > i { flex: none; width: 32px; height: 32px; background: no-repeat center; }
#dt .dt-noi > span, #dt .dt-nhat > span, #dt .dt-sap > span { min-width: 0; display: flex; flex-direction: column; }
#dt .dt-noi b, #dt .dt-nhat b, #dt .dt-sap b { font: 16px/18px "VK Sans Serif 16", monospace; font-weight: normal; color: #ffe48a; text-shadow: 1px 1px 0 #000; white-space: nowrap; }
#dt .dt-noi em, #dt .dt-nhat em, #dt .dt-sap em { font: 13px/15px var(--jx); font-style: normal; color: #cfe9dc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* nút client thừa ở điện thoại dọc (dienthoai.js — Trở lại của bảng Hệ thống: đã có Đóng ✕) */
body.dt .dt-thua { display: none !important; }
/* cửa sổ client: dienthoai.js đặt bằng transform (dịch + co) — bỏ chỗ / tỉ lệ khung 1024 của máy tính; .dt-an: cửa sổ đang bị cửa sổ hiện một
   mình (chọn chân dung) che */
body.dt #jxwin { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; transform: none !important; }
body.dt #jxwin > .jw { left: 0 !important; top: 0 !important; transform-origin: 0 0; }
body.dt #jxwin > .jw.dt-an { visibility: hidden !important; }
/* điện thoại trước khi vào game (anh 01/11 — iPhone bị phóng to): không chạm 2 lần / chụm phóng to; ô nhập chữ 16 px (Safari iOS tự phóng khi chạm ô chữ nhỏ hơn) */
html.dt-bat, html.dt-bat body { touch-action: pan-x pan-y; }
html.dt-bat .screen input { font-size: 16px; }
/* màn chọn nhân vật (trước khi vào game — dienthoai.js đặt html.dt-bat lúc tải trang): 3 ô vừa bề ngang điện thoại dựng dọc, cùng cao (hình nhân
   vật / dấu + chung đáy, tên ngay trên — anh 30/10 "hơi vỡ bố cục": ô có nhân vật thấp hơn ô trống); bảng thông tin 2 cột (4 cột gãy dòng) */
@media (orientation: portrait) {
  html.dt-bat .screen.csel { padding: 14px 10px; }
  html.dt-bat .csel .cs-row { gap: 6px; padding-top: 6px; }
  html.dt-bat .csel .cs-slot { min-width: 0; padding: 0 0 8px; }
  html.dt-bat .csel .cs-head { min-height: 58px; margin-bottom: 4px; }
  html.dt-bat .csel .nm { font-size: 15px; letter-spacing: 0; }
  html.dt-bat .csel .lv { font-size: 12px; }
  html.dt-bat .csel .cs-body { aspect-ratio: 10 / 11; justify-content: flex-end; }
  html.dt-bat .csel .cs-char { width: 100%; max-height: none; }
  html.dt-bat .csel .plus { width: 58px; height: 58px; margin: 0 0 24px; font-size: 36px; }
  html.dt-bat .csel .cs-panel { padding: 10px 12px; }
  html.dt-bat .csel .cs-info { grid-template-columns: auto 1fr; gap: 3px 14px; }
  html.dt-bat .csel .cs-info .wide { grid-column: auto; }
  /* 3 nút 1 hàng, nhỏ lại (anh 30/10: "3 nút này làm cái khung to quá" — bản trước 2 hàng nút to) */
  html.dt-bat .csel .cs-btns { flex-wrap: nowrap; gap: 6px; margin-top: 10px; }
  html.dt-bat .csel .cs-btns button, html.dt-bat .csel .cs-btns button.go { flex: 1 1 auto; min-width: 0; padding: 7px 4px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* màn chọn nhân vật trên điện thoại xoay ngang (chiều cao nhỏ): thu nhỏ 3 ô nhân vật và khung nút để không đè chữ CHỌN NHÂN VẬT */
@media (max-height: 540px) {
  .screen.csel { padding: 6px 12px 8px; justify-content: space-between; }
  .csel h1 { font-size: 20px; letter-spacing: 3px; }
  .csel .cs-row { gap: clamp(10px, 3vw, 32px); padding-top: 2px; align-items: center; }
  .csel .cs-slot { max-width: 155px; padding: 0 2px 2px; }
  .csel .cs-head { min-height: 30px; margin-bottom: 2px; }
  .csel .nm { font-size: 13px; }
  .csel .lv { font-size: 11px; margin-top: 1px; }
  .csel .cs-char { width: clamp(84px, 14vw, 120px); max-height: 28vh; }
  .csel .ped { width: 76%; height: 18px; margin-top: -10px; }
  .csel .plus { width: 42px; height: 42px; margin: 14px 0 10px; font-size: 26px; }
  .csel .cs-panel { max-width: 440px; padding: 6px 12px; margin-top: 4px; }
  .csel .cs-info { font-size: 12px; gap: 2px 10px; }
  .csel .cs-empty { font-size: 12px; }
  .csel .cs-btns { margin-top: 6px; gap: 8px; }
  .csel .cs-btns button, .csel .cs-btns button.go { min-width: 96px; padding: 5px 12px; font-size: 12.5px; }
}

/* ---------- màn NGANG của điện thoại (dienthoai.js — anh 30/10 chọn mẫu 2 "Vòng kỹ năng", mau-dien-thoai/dung-mau-ngang.cjs): body.dt.dt-ngang
   khi xoay ngang mà bề cao ≤ 500. Chơi (dt-gon): thanh trạng thái góc trái trên, hàng icon (Nhận thưởng, Toàn màn hình, 5 thẻ) cạnh bản đồ nhỏ,
   vòng kỹ năng góc phải dưới, cần điều khiển góc trái dưới. Mở thẻ: trang chức năng che cả màn, cột thẻ bên trái (dt-luoi / dt-cs); chat: nửa
   trái. Các luật dưới đè luật màn dọc ở trên ---------- */
/* khung trạng thái 1 hàng ngang trên cùng: [4 Avatar tròn + 5 Cấp] [2 HP] [3 MP] [4 Cấp nhân vật]; bên dưới là thanh buff */
body.dt.dt-ngang #dt .dt-tren { left: 6px; top: 4px; width: clamp(320px, 48vw, 450px); height: 48px; padding: 2px 4px; display: flex; align-items: flex-start; gap: 6px;
  background: none; border: 0; box-shadow: none; pointer-events: none; }
body.dt.dt-ngang #dt .dt-chan { position: relative; left: auto; top: auto; width: 42px; height: 42px; border-radius: 50%; flex: none; pointer-events: auto; }
body.dt.dt-ngang #dt .dt-cap { left: -2px; bottom: -4px; padding: 0 4px; height: 15px; border-radius: 6px; font-size: 13px; line-height: 13px; }
body.dt.dt-ngang #dt .dt-ten, body.dt.dt-ngang #dt .dt-tien { display: none; }
body.dt.dt-ngang #dt .dt-h2 { position: static; flex: 2; min-width: 0; display: flex; gap: 4px; margin-top: 2px; pointer-events: auto; }
body.dt.dt-ngang #dt .dt-h3 { position: static; flex: 1; min-width: 0; display: flex; margin-top: 2px; pointer-events: auto; }
body.dt.dt-ngang #dt .dt-tn { height: 16px; background: rgba(0,0,0,.78); border: 1px solid #6f8f80; }
body.dt.dt-ngang #dt .dt-tn b { font: 11.5px/14px var(--jx); }
/* hàng icon lúc chơi (bản đồ nhỏ ở mép phải): [Toàn màn] [5 thẻ] [Mở rộng / Thu gọn] [bản đồ nhỏ] — Toàn màn cùng hàng, cùng cỡ với thẻ (anh 30/10
   — bản mẫu 2 nút xếp dọc lệch hàng; Nhận thưởng đã vào bảng Giang hồ). Thu lại (mặc định khi vào game — anh 30/10 lần 3 "thu lại đỡ vướng mắt"):
   chỉ còn nút Mở rộng cạnh bản đồ nhỏ */
body.dt.dt-ngang #dt .dt-nt { position: fixed; top: 6px; width: 40px; height: 40px; }
body.dt.dt-ngang #dt .dt-nt[data-a="toan"] { right: 104px !important; }
body.dt.dt-ngang #dt .dt-nt::after { position: absolute; left: 50%; top: 42px; transform: translateX(-50%); white-space: nowrap; font: 12px/14px var(--jx); color: #e9e3cf; text-shadow: 1px 1px 0 #000; }
body.dt.dt-ngang #dt .dt-nt[data-a="toan"]::after { content: "Toàn màn"; }
#dt .dt-mo { display: none; }
body.dt.dt-ngang.dt-gon #dt .dt-mo { display: none !important; }
/* hàng 5 nút (Menu, Nhân vật, Võ công, Hành trang, Auto) + nút GM ở Khung 2 sát bên phải tại đáy màn ngang */
body.dt.dt-ngang #dt .dt-dock {
  position: fixed; left: 46%; right: auto; top: auto; bottom: 4px; transform: translateX(-50%);
  display: flex; align-items: stretch; gap: 6px; z-index: 4; pointer-events: none;
}
body.dt.dt-ngang #dt .dt-tab {
  position: static; left: auto; right: auto; top: auto; bottom: auto; transform: none;
  width: auto; height: auto; display: flex; gap: 6px; padding: 3px 8px;
  background: rgba(10, 15, 13, .76); border: 1px solid #5f7d70; border-radius: 6px;
  box-shadow: 0 2px 10px #000a; pointer-events: auto;
}
#dt .dt-chatdock { display: none; }
body.dt.dt-ngang #dt .dt-chatdock {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1px;
  width: 48px; padding: 3px 6px; box-sizing: border-box;
  background: rgba(10, 15, 13, .76); border: 1px solid #5f7d70; border-radius: 6px;
  box-shadow: 0 2px 10px #000a; pointer-events: auto;
  color: #e9e3cf; text-shadow: 1px 1px 0 #000; font-size: 11px; line-height: 13px; cursor: pointer; user-select: none;
}
body.dt.dt-ngang #dt .dt-chatdock .dt-ic { width: 26px !important; height: 26px !important; }
body.dt.dt-ngang #dt .dt-chatdock:active { transform: scale(.94); filter: brightness(1.15); }
body.dt.dt-ngang #dt .dt-tab > div, body.dt.dt-ngang #dt .dt-gm {
  width: 48px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1px;
  color: #e9e3cf; text-shadow: 1px 1px 0 #000; font-size: 11px; line-height: 13px; cursor: pointer; user-select: none;
}
body.dt.dt-ngang #dt .dt-tic { position: relative; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #7f9f90; background: linear-gradient(#22302b, #0d1512); box-shadow: 0 0 0 1px #000; border-radius: 4px; }
body.dt.dt-ngang #dt .dt-tic .dt-ic { width: 26px !important; height: 26px !important; }
body.dt.dt-ngang #dt .dt-tab > .on .dt-tic { border-color: #ffe48a; box-shadow: 0 0 8px #ffe48a88; }
body.dt.dt-ngang #dt .dt-tab > .on { background: none; color: #ffe48a; }
body.dt.dt-ngang #dt .dt-tab > .on::before { display: none; }
/* Khung 2: nút GM ngay bên phải thanh 5 nút đáy */
body.dt.dt-ngang #dt .dt-gm-wrap {
  position: relative; display: flex; align-items: center; padding: 3px 6px;
  background: rgba(10, 15, 13, .76); border: 1.5px solid #d4af37; border-radius: 6px;
  box-shadow: 0 2px 10px #000a; pointer-events: auto;
}
body.dt.dt-ngang #dt .dt-gm { width: 42px; color: #ffe48a; }
body.dt.dt-ngang #dt .dt-gm-ic { border-color: #d4af37; background: linear-gradient(#2f2916, #141109); }
body.dt.dt-ngang #dt .dt-gm-ic span { font: bold 12px/1 var(--jx); color: #ffe48a; letter-spacing: .5px; }
body.dt.dt-ngang #dt .dt-gm:active { transform: scale(.94); filter: brightness(1.15); }
#dt .dt-gm-pop {
  position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 8;
  display: none; flex-direction: column; gap: 5px; padding: 6px;
  background: rgba(8, 14, 12, .96); border: 1.5px solid #6fa38c; border-radius: 6px;
  box-shadow: 0 0 0 1px #000, 0 8px 22px #000c; pointer-events: auto;
}
#dt .dt-gm-pop.mo { display: flex; }
#dt .dt-gm-pop button {
  padding: 6px 12px; border-radius: 4px; border: 1px solid #3c6e58; background: #16302a;
  color: #ffe48a; font: 12.5px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600; white-space: nowrap; text-align: left; cursor: pointer;
}
#dt .dt-gm-pop button:active { background: #234d42; }
/* Khung 1: 5 nút Hoạt động, Sự kiện, Kỳ Trân Các, Xếp hạng, Chợ Trời dải trên bên trái bản đồ nhỏ */
#dt .dt-top-bar { display: none; }
body.dt.dt-ngang.dt-gon #dt .dt-top-bar {
  position: fixed; right: 100px; top: 4px; z-index: 4;
  display: grid; grid-template-columns: repeat(5, auto); gap: 4px 6px; justify-items: center; pointer-events: auto;
}
body.dt.dt-ngang #dt .dt-tb-btn {
  width: 52px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  cursor: pointer; user-select: none;
}
body.dt.dt-ngang #dt .dt-tb-btn:active { transform: scale(.94); filter: brightness(1.15); }
@keyframes tcRemind {
  0%, 100% { border-color: #ffd94e; box-shadow: 0 0 0 1px #000, 0 0 8px rgba(255,217,78,.85), inset 0 0 6px rgba(255,217,78,.45); transform: scale(1); }
  50% { border-color: #fff3b0; box-shadow: 0 0 0 1px #000, 0 0 16px rgba(255,230,100,1), inset 0 0 10px rgba(255,230,120,.75); transform: scale(1.06); }
}
body.dt.dt-ngang #dt .dt-tb-btn.dt-tb-remind .dt-tb-ic { animation: tcRemind 1.15s ease-in-out infinite; background: rgba(65, 50, 12, .78); }
body.dt.dt-ngang #dt .dt-tb-btn.dt-tb-remind > span { color: #ffe680; font-weight: bold; }
body.dt.dt-ngang #dt .dt-tb-ic {
  position: relative; width: 34px; height: 34px; display: grid; place-items: center;
  background: rgba(10, 15, 13, .65); border: 1px solid #6f8f80; border-radius: 6px;
  box-shadow: 0 0 0 1px #000, 0 2px 6px #000a;
}
body.dt.dt-ngang #dt .dt-tb-ic i {
  display: block; width: 28px; height: 28px;
  background-size: contain; background-repeat: no-repeat; background-position: center;
}
body.dt.dt-ngang #dt .dt-tb-btn > span {
  padding: 0 3px; background: rgba(0, 0, 0, .62); border-radius: 3px;
  color: #f3ecd8; font-size: 10.5px; line-height: 12px; text-shadow: 1px 1px 0 #000;
  white-space: nowrap; text-align: center;
}
@media (max-width: 819px) {
  body.dt.dt-ngang #dt .dt-tren { width: clamp(270px, 42vw, 350px); }
  body.dt.dt-ngang #dt .dt-dock { gap: 4px; }
  body.dt.dt-ngang #dt .dt-tab { gap: 4px; padding: 3px 6px; }
  body.dt.dt-ngang #dt .dt-tab > div, body.dt.dt-ngang #dt .dt-gm { width: 42px; font-size: 10px; }
  body.dt.dt-ngang #dt .dt-gm-wrap { padding: 3px 4px; }
  body.dt.dt-ngang #dt .dt-tic { width: 32px; height: 32px; }
  body.dt.dt-ngang #dt .dt-tic .dt-ic { width: 24px !important; height: 24px !important; }
  body.dt.dt-ngang #dt .dt-nt { width: 36px; height: 36px; }
  body.dt.dt-ngang #dt .dt-nt::after { top: 38px; font-size: 11px; }
  body.dt.dt-ngang #dt .dt-nt[data-a="toan"] { right: 102px !important; }
  body.dt.dt-ngang.dt-gon #dt .dt-top-bar { gap: 4px; }
  body.dt.dt-ngang #dt .dt-tb-btn { width: 46px; }
  body.dt.dt-ngang #dt .dt-tb-ic { width: 32px; height: 32px; }
  body.dt.dt-ngang #dt .dt-tb-ic i { width: 26px; height: 26px; }
  body.dt.dt-ngang #dt .dt-tb-btn > span { font-size: 9.5px; }
}
@media (max-width: 699px) {
  body.dt.dt-ngang #dt .dt-tren { width: clamp(235px, 42vw, 290px); }
  body.dt.dt-ngang #dt .dt-tab > div > span, body.dt.dt-ngang #dt .dt-chatdock > span, body.dt.dt-ngang #dt .dt-gm > span:last-child, body.dt.dt-ngang #dt .dt-nt::after, body.dt.dt-ngang #dt .dt-tb-btn > span { display: none; }
  body.dt.dt-ngang #dt .dt-nt { width: 34px; height: 34px; }
  body.dt.dt-ngang #dt .dt-nt[data-a="toan"] { right: 100px !important; }
  body.dt.dt-ngang #dt .dt-tb-btn { width: 36px; }
}
/* chữ dưới icon: nền tối mỏng (tên quái / NPC vẽ trên cảnh phía sau không lẫn vào chữ); chỉ ẩn Toàn màn khi mở bảng/chat */
body.dt.dt-ngang.dt-gon #dt .dt-tab > div > span, body.dt.dt-ngang.dt-gon #dt .dt-gm > span:last-child, body.dt.dt-ngang #dt .dt-nt::after { padding: 0 2px; background: #0009; white-space: nowrap; }
body.dt.dt-ngang:not(.dt-gon) #dt .dt-nt { display: none; }
/* bấm 5 nút mở popup nổi trực tiếp trên màn game (không che toàn màn hình bởi bảng đen) */
body.dt.dt-ngang.dt-cs #dt .dt-bang { display: none !important; }
body.dt.dt-ngang.dt-luoi #dt .dt-bang {
  left: 50%; right: auto; top: 46%; bottom: auto; transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 82px);
  border: 2px solid #8fae9f; border-radius: 6px;
  box-shadow: 0 0 0 1px #000, 0 10px 32px rgba(0,0,0,.88); z-index: 6;
}
body.dt.dt-ngang.dt-luoi #dt .dt-bang::before { left: 0; top: 0; width: 100%; height: 100%; }
body.dt.dt-ngang.dt-luoi #dt .dt-dau { margin: 6px 10px 0; }
body.dt.dt-ngang.dt-luoi #dt .dt-nutda { width: 32px; height: 26px; padding: 0; text-align: center; font: 16px/24px "VK Sans Serif 16", monospace; }
body.dt.dt-ngang.dt-luoi #dt .dt-luoi { margin: 0; padding: 10px 12px 4px; gap: 10px 0; }
body.dt.dt-ngang.dt-luoi #dt .dt-viec { margin: 8px 12px 10px; }
body.dt.dt-ngang.dt-chat #dt .dt-bang { left: 0; right: auto; top: 0; bottom: 0; width: 46%; box-shadow: 2px 0 0 #7f9f90, 3px 0 0 #000, 6px 0 12px #000c; }
body.dt.dt-ngang.dt-chat #dt .dt-dau { margin-left: 8px; }
body.dt.dt-ngang.dt-chat #dt .dt-dock { display: none; }
body.dt.dt-ngang.dt-chat #dt .dt-chatp { left: 0; right: auto; width: 46%; top: 38px; bottom: 0; }
/* trên cảnh: tên bãi dưới bản đồ nhỏ, dòng tin + nút Chat trên cần điều khiển, nút Nói chuyện giữa đáy */
#dt .dt-kat, #jxhud .jx-katbtn { display: none !important; }
body.dt.dt-ngang #dt .dt-mm { right: 6px; top: 6px; width: 88px; height: 88px; z-index: 1; }
body.dt.dt-ngang #dt .dt-bd { left: auto; right: 6px; top: 6px; width: 88px; height: 88px; padding: 0; background: none; border: 0; transform: none; pointer-events: none; z-index: 2; }
/* Bảng Công cụ thử & Quản trị GM trên mobile vừa màn hình, rộng rãi dễ nhìn */
body.dt .dv { top: 8px; max-width: calc(100vw - 16px); max-height: calc(100vh - 18px); min-height: 180px; }
body.dt .dv.dv-gmtool { width: min(740px, calc(100vw - 16px)); }
body.dt .dv-head { padding: 6px 10px; gap: 4px; }
body.dt .dv-head .dv-tab { padding: 4px 8px; font-size: 12px; }
body.dt .dv-body { padding: 8px 10px 12px; }
body.dt .dv-list { max-height: 170px; }
body.dt .dv.qt { top: 8px; height: calc(100vh - 18px); max-height: calc(100vh - 18px); }
body.dt.dt-ngang #dt .dt-bd span { position: absolute; top: 1px; left: 1px; right: 1px; padding: 0 2px; background: rgba(0,0,0,.55); color: #ffe48a; font-size: 11px; line-height: 14px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.dt.dt-ngang #dt .dt-bd em { position: absolute; bottom: 1px; left: 1px; right: 1px; margin: 0; padding: 0 2px; background: rgba(0,0,0,.68); color: #7dff8a; font-size: 11px; line-height: 14px; text-align: center; }
body.dt.dt-ngang #dt .dt-tin { left: 6px; top: auto !important; bottom: 186px; width: 300px; max-height: 54px; overflow: hidden; z-index: 2; }
body.dt.dt-ngang #dt .dt-nutt { display: none !important; }
/* Bảng nhiệm vụ PC ở góc trái (Khung 6 -> Hình 3): chỉ hiện khi đang ở màn hình chơi chính */
body.dt.dt-ngang.dt-gon #jxhud .jx-nvbang {
  display: block !important; position: fixed !important; left: 6px !important; top: 72px !important;
  width: 248px; z-index: 4; pointer-events: auto;
  font: 12.5px/15.5px var(--jx);
}
body.dt.dt-ngang.dt-gon #jxhud .jx-nv-dau { height: 18px; background: rgba(0,0,0,.58); }
body.dt.dt-ngang.dt-gon #jxhud .jx-nv-than { background: rgba(0,0,0,.38); padding: 2px 6px 5px; }
/* cần điều khiển màn ngang (anh 10/11: "mặc định đưa vào trong và lên tí như các game moba, hiện tại em đang để sát màn hình quá"): tâm vòng cách mép
   trái ~14% bề ngang, cách đáy ~27% bề cao; vùng chạm (không khóa: đặt ngón đâu vòng hiện đó) rộng ra quanh đó. Nút Chat / lời mời tổ đội nằm trên vùng */
body.dt.dt-ngang #dt .dt-can { left: 0; top: auto; bottom: 0; width: clamp(220px, calc(var(--vw100, 100vw) * .34), 360px); height: clamp(180px, calc(var(--vh100, 100vh) * .6), 290px); }
body.dt.dt-ngang #dt .dt-can > b { left: calc(clamp(112px, calc(var(--vw100, 100vw) * .14), 170px) - 53px * var(--dt-cc, 1)); top: auto;
  bottom: calc(clamp(96px, calc(var(--vh100, 100vh) * .27), 136px) - 53px * var(--dt-cc, 1)); }
body.dt.dt-ngang #dt .dt-nutt, body.dt.dt-ngang #dt .dt-moidoi { z-index: 1; }
/* bảng lời mời tổ đội đang mở (anh 11/11 "popup mời pt đang bị icon khác đè" — tắt cần điều khiển: hàng Chat + lời mời sát đáy, ngang hàng ô kỹ năng): lên trên nút
   khóa ô kỹ năng (.dt-okhoa), ô kỹ năng, Tự đánh (≤ 5) — vẫn dưới khung Hành trang / bảng lớn (8, 20). Cả màn dọc lẫn ngang (cùng độ ưu tiên, đứng sau dòng trên) */
body.dt #dt .dt-moidoi.mo { z-index: 6; }
/* nút Nói chuyện đưa sang cạnh cụm kỹ năng (vị trí 6), dùng icon btn_popnpc.png */
body.dt.dt-ngang #dt .dt-noi {
  left: auto; right: 204px; top: auto !important; bottom: 152px; transform: none;
  width: 58px; height: auto; padding: 0; border: 0; background: none; box-shadow: none;
  flex-direction: column; align-items: center; gap: 2px;
}
body.dt.dt-ngang #dt .dt-noi > i { width: 52px; height: 52px; background-size: contain; filter: drop-shadow(0 2px 4px #000); }
body.dt.dt-ngang #dt .dt-noi > span { align-items: center; }
body.dt.dt-ngang #dt .dt-noi > span b { display: none; }
body.dt.dt-ngang #dt .dt-noi > span em { background: #000b; padding: 0 5px; border-radius: 3px; font-size: 11px; line-height: 14px; color: #ffe48a; max-width: 90px; }
body.dt.dt-ngang #dt .dt-nhat, body.dt.dt-ngang #dt .dt-sap { left: 46%; right: auto; top: auto !important; bottom: 68px; transform: translateX(-50%); }
body.dt.dt-ngang.dt-sap-co #dt .dt-nhat { bottom: 116px; }
@media (max-height: 349px) { body.dt.dt-ngang #dt .dt-bd { right: 6px; top: 6px; } } /* giữ tên bãi & tọa độ trên minimap */
/* vòng kỹ năng (dienthoai.js _vong — --ng-r / --ng-b / --ng-s): ô tròn, T to viền vàng; Tự đánh cũng là 1 ô tròn của vòng ngoài */
body.dt.dt-ngang #jxhud .jx-bot > .dt-o { left: auto !important; top: auto !important; right: var(--ng-r) !important; bottom: var(--ng-b) !important; width: var(--ng-s) !important; height: var(--ng-s) !important;
  border-radius: 50%; border: 2px solid #8fae9f; background: radial-gradient(circle at 50% 35%, #22302b, #0b0f0d 70%); box-shadow: 0 0 0 1px #000, 0 2px 6px #000c; }
body.dt.dt-ngang #jxhud .jx-bot > .jx-skill[data-skill="left"] { border-color: #ffe48a; box-shadow: 0 0 0 1px #000, 0 0 10px #ffe48a66; }
body.dt.dt-ngang:not(.dt-gon):not(.dt-chat) #jxhud .jx-bot > .dt-o { display: none !important; }
body.dt.dt-ngang.dt-chat #jxhud .jx-bot > .dt-o { display: block !important; } /* chat nửa trái: vòng kỹ năng vẫn dùng được (vừa nói vừa đánh) */
body.dt.dt-ngang #jxhud .jx-bot > .dt-o::after { left: 50%; right: auto; top: auto; bottom: -5px; transform: translateX(-50%); }
body.dt.dt-ngang #jxhud .jx-bot > .dt-o .jx-qn { right: -4px; bottom: auto; top: -6px; }
body.dt.dt-ngang #jxhud .jx-bot > .dt-o .jx-cd { inset: 0; border-radius: 50%; }
/* hình trong ô tròn (anh 30/10: "hình kỹ năng hình vuông mà ô hình tròn — thô"): kỹ năng cắt tròn, phóng 1,2 lần cho kín ô (viền vuông của hình nằm
   ngoài vòng cắt); thuốc / vật phẩm giữ nguyên hình, nhỏ lại cho gọn trong vòng */
body.dt.dt-ngang #jxhud .jx-bot > .dt-o .jx-qi { width: 72%; height: 72%; object-fit: contain; }
body.dt.dt-ngang #jxhud .jx-bot > .jx-skill .jx-qi, body.dt.dt-ngang #jxhud .jx-bot > .dt-o.ky .jx-qi { width: 120%; height: 120%; object-fit: cover; clip-path: circle(41.6% at 50% 50%); }
/* Tự đánh màn ngang (anh 10/11 lần 2 "chỗ bật/tắt tự đánh chưa có trên màn hình chính ở dạng web ngang"): thanh "Tự đánh: Bật / Tắt" như màn dọc,
   dưới tên bãi (dưới bản đồ nhỏ); màn thấp: bên trái bản đồ nhỏ / dưới bản đồ nhỏ (tên bãi đã dời) cho khỏi đè vòng kỹ năng. Chỗ ô tròn cũ của vòng
   ngoài giờ là nút ngựa */
body.dt.dt-ngang #dt .dt-tudanh { top: 98px; right: 6px; width: 88px; z-index: 1; }
@media (max-height: 349px) { body.dt.dt-ngang #dt .dt-tudanh { top: 98px; right: 6px; } }
/* đang mở trang chức năng (anh 10/11 "xoay ngang không hiển thị nút tắt auto"): thanh vẫn có, dưới nút đóng ✕ */
body.dt.dt-ngang:not(.dt-gon):not(.dt-chat) #dt .dt-tudanh { top: 48px; right: 6px; z-index: 5; }
/* nút ngựa màn ngang: ô tròn vòng ngoài (dienthoai.js NGUA_VONG); ẩn khi mở trang chức năng như vòng kỹ năng */
body.dt.dt-ngang #dt .dt-ngua { top: auto; right: var(--ng-r); bottom: var(--ng-b); width: var(--ng-s); height: var(--ng-s); border-width: 2px; }
body.dt.dt-ngang.dt-chat #dt .dt-ngua.co { display: grid; }
body.dt.dt-ngang:not(.dt-gon):not(.dt-chat) #dt .dt-ngua { display: none; }
/* nút khóa ô kỹ năng màn ngang: ô tròn vòng ngoài dưới ô 1 (dienthoai.js OK_VONG); hiện cùng lúc với vòng kỹ năng */
body.dt.dt-ngang #dt .dt-okhoa { top: auto; right: var(--ng-r); bottom: var(--ng-b); width: var(--ng-s); height: var(--ng-s); border-radius: 50%; border-width: 2px; }
body.dt.dt-ngang.dt-chat #dt .dt-okhoa { display: grid; }
body.dt.dt-ngang:not(.dt-gon):not(.dt-chat) #dt .dt-okhoa { display: none; }
/* ô kỹ năng mở khóa (dienthoai.js datOKhoa — chỉ gắn): viền vàng đứt, sáng nhấp nháy — dễ thấy đang ở chế độ gắn */
body.dt.dt-osua #jxhud .jx-bot > .dt-o { border-color: #ffe48a; border-style: dashed; animation: dt-osua 1.1s ease-in-out infinite alternate; }
@keyframes dt-osua { from { box-shadow: 0 0 0 1px #000, 0 0 2px #ffe48a55; } to { box-shadow: 0 0 0 1px #000, 0 0 10px #ffe48acc; } }
/* biểu tượng trạng thái dời lên dưới thanh HP/MP/Cấp (vị trí 2); bảng Mộc nhân dưới dòng FPS */
body.dt.dt-ngang #jxhud .jx-stbar { left: 56px !important; top: 24px !important; height: 30px; transform: scale(.86) !important; transform-origin: top left !important; }
body.dt.dt-ngang:not(.dt-gon) #jxhud .jx-stbar { display: none !important; }
body.dt.dt-ngang .mn { top: 76px; max-width: 330px; }

/* ---------- boss thế giới máu chung (src/game/bosstg.js — anh 31/10, quái chung bước 1): bảng trên giữa màn — tên vàng + bãi (tọa độ bản đồ
   nhỏ) + giờ còn, thanh máu chung, phần của mình, 5 người đánh nhiều nhất; ở bãi khác chỉ 1 dòng (.gon). Bảng nằm dưới các cửa sổ (z 3 < #jxwin 4
   — khung kết quả đè lên bảng); dòng thông báo của quản trị (.qt-loa, top 92 — "boss xuất hiện") xuống dưới bảng khi bảng nằm trên nó (máy tính,
   điện thoại — bosstg.js đặt --btg-day) ---------- */
#btg { position: fixed; z-index: 3; left: 50%; top: 46px; transform: translateX(-50%); min-width: 260px; max-width: calc(100vw - 16px); box-sizing: border-box; padding: 4px 8px 5px;
  background: rgba(0,0,0,.62); border: 1px solid #6b5a2e; box-shadow: 0 0 0 1px #000; font: 13px/16px var(--jx); color: #e9e3cf; text-shadow: 1px 1px 0 #000; text-align: center; pointer-events: none; }
#btg.gon { min-width: 0; padding: 2px 8px; }
#btg .btg-ten { color: rgb(255,217,78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#btg .btg-ten em { margin-left: 4px; font-style: normal; color: #9fd8ff; }
#btg .btg-mau { position: relative; height: 14px; margin: 3px 0 2px; background: #2a0b0b; border: 1px solid #000; }
#btg .btg-mau i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#e0412f, #8f1d12); }
#btg .btg-mau span { position: relative; font: 12px/14px var(--jx); color: #fff; }
#btg .btg-cua { color: #7dff8a; }
#btg .btg-top { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 10px; margin: 2px 0 0; padding: 0; list-style: none; font-size: 12px; color: #cfc8b0; counter-reset: btgh; }
#btg .btg-top li { counter-increment: btgh; }
#btg .btg-top li::before { content: counter(btgh) ". "; color: #8f8a78; }
#btg .btg-top b { font-weight: normal; color: #fff; }
/* bảng boss mẫu C (anh 17/11 — bosstg.js _veC): chân dung 46 × 46 đúng cỡ hình quái client (không co giãn — đỡ mờ), tên · cấp · hệ · BOSS · giờ còn, thanh máu, trạng thái
   (hình trạng thái client + giây bên cạnh, rê chuột xem tên); bảng chi tiết khi .mo (máy tính: nút "Chi tiết ▾", điện thoại: chạm bảng) */
:is(#btg,#bsat):not(.gon) { width: 430px; padding: 4px 6px 4px 4px; text-align: left; background: rgba(0,0,0,.78); }
:is(#btg,#bsat) .btg-c { display: flex; gap: 6px; align-items: center; }
:is(#btg,#bsat) .btg-anh { flex: none; width: 46px; height: 46px; overflow: hidden; border: 1px solid #8a7440; box-shadow: 0 0 0 1px #000; background: radial-gradient(#2a2418, #0b0906); }
:is(#btg,#bsat) .btg-cv { display: block; width: 46px; height: 46px; image-rendering: pixelated; }
:is(#btg,#bsat) .btg-p { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
:is(#btg,#bsat) .btg-d1 { display: flex; gap: 5px; align-items: center; white-space: nowrap; min-width: 0; }
:is(#btg,#bsat) .btg-tn { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: rgb(255,217,78); }
:is(#btg,#bsat) .btg-lv { flex: none; color: #9fd8ff; }
:is(#btg,#bsat) .btg-he { flex: none; width: 16px; height: 16px; image-rendering: pixelated; vertical-align: -3px; }
:is(#btg,#bsat) .btg-tag { flex: none; padding: 0 4px; font: 12px/14px var(--jx); color: #ffe08a; background: linear-gradient(#b8281a, #6a0d07); border: 1px solid #d9a441; box-shadow: 0 0 0 1px #000; }
:is(#btg,#bsat) .btg-gio { flex: none; margin-left: auto; font-size: 12px; color: #cfc8b0; }
:is(#btg,#bsat):not(.gon) .btg-mau { height: 12px; margin: 0; box-shadow: 0 0 0 1px #6b5a2e; }
:is(#btg,#bsat):not(.gon) .btg-mau i { background: linear-gradient(#ff5a44, #b3200f 55%, #7a0f06); }
:is(#btg,#bsat):not(.gon) .btg-mau span { display: block; text-align: center; font: 11px/12px var(--jx); }
:is(#btg,#bsat) .btg-d3 { display: flex; flex-wrap: wrap; align-items: center; gap: 0 7px; min-height: 18px; }
:is(#btg,#bsat) .btg-st { display: inline-flex; align-items: center; gap: 2px; pointer-events: auto; }
:is(#btg,#bsat) .btg-st img { display: block; width: 18px; height: 18px; }
:is(#btg,#bsat) .btg-st b { font: 12px/14px var(--jx); font-weight: normal; color: rgb(55,231,63); }
:is(#btg,#bsat) .btg-st.chu { height: 18px; padding: 0 3px; line-height: 16px; font-size: 12px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.4); }
:is(#btg,#bsat) .btg-st.doc { color: #86ff6a; } :is(#btg,#bsat) .btg-st.cham { color: #7fd3ff; } :is(#btg,#bsat) .btg-st.hoang { color: #ffb74d; } :is(#btg,#bsat) .btg-st.choang { color: #fff; }
:is(#btg,#bsat) .btg-nut { margin-left: auto; font-size: 12px; color: #9fd8ff; cursor: pointer; pointer-events: auto; }
:is(#btg,#bsat) .btg-nut .mo-o, :is(#btg,#bsat).mo .btg-nut .mo-c { display: none; } :is(#btg,#bsat).mo .btg-nut .mo-o { display: inline; }
:is(#btg,#bsat) .btg-chi { display: none; grid-template-columns: 1fr 1fr; gap: 3px 10px; margin-top: 4px; padding-top: 4px; border-top: 1px solid rgba(107,90,46,.7); font-size: 12px; }
:is(#btg,#bsat).mo .btg-chi { display: grid; }
:is(#btg,#bsat) .btg-kh { grid-column: 1 / 3; display: flex; justify-content: space-between; }
:is(#btg,#bsat) .btg-kh span { white-space: nowrap; } :is(#btg,#bsat) .btg-kh em, :is(#btg,#bsat) .btg-kh i { font-style: normal; } :is(#btg,#bsat) .btg-kh i.giam { color: #7dff8a; } :is(#btg,#bsat) .btg-kh .btg-he { margin-right: 2px; }
:is(#btg,#bsat) .btg-l b { font-weight: normal; } :is(#btg,#bsat) .btg-chi .xanh { color: #7dff8a; } :is(#btg,#bsat) .btg-chi .vang { color: rgb(255,217,78); } :is(#btg,#bsat) .btg-chi .lam { color: #9fd8ff; }
:is(#btg,#bsat):not(.gon) .btg-top { display: block; margin: 0; padding: 0; border: 0; list-style: none; font-size: 12px; }
:is(#btg,#bsat):not(.gon) .btg-top li { display: flex; gap: 4px; }
:is(#btg,#bsat):not(.gon) .btg-top li::before { content: none; }
:is(#btg,#bsat) .btg-top li em { min-width: 18px; text-align: right; font-style: normal; color: #8f8a78; }
:is(#btg,#bsat):not(.gon) .btg-top li b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: normal; color: #fff; }
:is(#btg,#bsat) .btg-top li.minh, :is(#btg,#bsat):not(.gon) .btg-top li.minh b { color: rgb(255,217,78); }
:is(#btg,#bsat) .btg-top li.trong { color: #8f8a78; }
:is(#btg,#bsat) .btg-khac { margin-top: 3px; text-align: center; font-size: 12px; color: #cfc8b0; } :is(#btg,#bsat) .btg-khac em { font-style: normal; color: #9fd8ff; }
/* bảng boss phụ (anh 18/11 — bosstg.js veSat): boss cuối Viêm Đế / Vượt Ải, Boss Sát thủ: cùng kiểu mẫu C với bảng boss thế giới (các luật :is(#btg,#bsat) ở trên), nằm ngay dưới #btg nếu cùng lúc (--btg-day),
   dưới thanh lôi đài (--ld-day); tên cam như tên Boss Sát thủ trên đầu, nhãn "Sát thủ" */
#bsat { position: fixed; z-index: 3; left: 50%; top: max(46px, var(--btg-day, 0px), var(--ld-day, 0px), var(--thuyen-day, 0px)); transform: translateX(-50%); max-width: calc(100vw - 16px); box-sizing: border-box;
  border: 1px solid #6b5a2e; box-shadow: 0 0 0 1px #000; font: 13px/16px var(--jx); color: #e9e3cf; text-shadow: 1px 1px 0 #000; pointer-events: none; }
#bsat .btg-mau { position: relative; background: #2a0b0b; border: 1px solid #000; }
#bsat .btg-mau i { position: absolute; left: 0; top: 0; bottom: 0; }
#bsat .btg-mau span { position: relative; color: #fff; }
#bsat[data-loai="sat"] .btg-tn { color: #ffb74d; } /* Boss Sát thủ: tên cam; boss cuối Viêm Đế / Vượt Ải: vàng như boss thế giới */
#bsat .btg-chi .mo { color: #8f8a78; }
.qt-loa { top: max(92px, var(--btg-day, 0px), var(--bsat-day, 0px)); }
/* điện thoại (anh 31/10 — ảnh mũi tên: "thanh máu boss nếu lên map gặp boss sẽ hiện như kia, bấm vô thì ra bảng xếp hạng sát thương"; thông báo
   boss ra: dòng chữ vàng 10 giây + khung chat là đủ): chỉ hiện ở bãi có boss — thanh gọn 2 dòng (tên + (x/y) · giờ còn; thanh máu) trên cùng;
   dọc: ngay dưới tên bãi (top 116 — giữ tên bãi + tọa độ của mình để đi tới boss; dòng đầu bỏ tên bãi cho đủ chỗ), rộng tới sát cột bản đồ nhỏ;
   ngang: top 70. Chạm thanh (▾): hiện phần của mình + 5 người đánh nhiều nhất, mỗi người 1 dòng (bosstg.js bật lớp .mo), chạm nữa thu lại */
body.dt #btg { top: 116px; width: calc(var(--vw100, 100vw) - 200px); max-width: 320px; min-width: 0; padding: 2px 6px 3px; background: rgba(0,0,0,.78); pointer-events: auto; }
body.dt.dt-ngang #btg { top: 70px; }
body.dt #btg.gon { display: none; }
body.dt:not(.dt-ngang) #btg .btg-bai { display: none; }
body.dt #btg .btg-ten { position: relative; display: flex; justify-content: center; padding-right: 12px; }
body.dt #btg .btg-ten > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
body.dt #btg .btg-ten .btg-gio { flex: none; }
body.dt #btg .btg-ten::after { content: "▾"; position: absolute; right: 0; top: 0; color: #9fd8ff; }
body.dt #btg.mo .btg-ten::after { content: "▴"; }
body.dt #btg:not(.mo) .btg-cua, body.dt #btg:not(.mo) .btg-top { display: none; }
body.dt #btg .btg-top { display: block; margin: 3px 0 0; padding-top: 2px; border-top: 1px solid rgba(107,90,46,.6); text-align: left; }
body.dt #btg .btg-top li { display: flex; gap: 6px; line-height: 15px; }
body.dt #btg .btg-top li::before { flex: none; min-width: 16px; text-align: right; }
body.dt #btg .btg-top li b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* điện thoại — bảng boss mẫu C: hẹp tới sát cột bản đồ nhỏ; chân dung 34 điểm (cắt giữa hình 46, không thu nhỏ), bỏ nhãn BOSS và nút chữ (chạm cả bảng để mở / đóng chi tiết),
   chi tiết 1 cột */
body.dt :is(#btg,#bsat):not(.gon) { width: calc(var(--vw100, 100vw) - 200px); max-width: 320px; padding: 3px 4px; }
body.dt :is(#btg,#bsat) .btg-anh { width: 34px; height: 34px; } body.dt :is(#btg,#bsat) .btg-cv { margin: -6px; }
body.dt :is(#btg,#bsat) .btg-tag, body.dt :is(#btg,#bsat) .btg-nut .mo-c, body.dt :is(#btg,#bsat) .btg-nut .mo-o { display: none; }
body.dt :is(#btg,#bsat) .btg-nut::after { content: "▾"; } body.dt :is(#btg,#bsat).mo .btg-nut::after { content: "▴"; }
body.dt :is(#btg,#bsat) .btg-chi { grid-template-columns: 1fr; }
body.dt :is(#btg,#bsat) .btg-kh { grid-column: 1; flex-wrap: wrap; justify-content: flex-start; gap: 2px 8px; }
body.dt :is(#btg,#bsat):not(.gon) .btg-top { padding-top: 0; border-top: 0; }
body.dt #btg:not(.mo) .btg-khac { display: none; }
body.dt #bsat { top: max(116px, var(--btg-day, 0px), var(--ld-day, 0px), var(--thuyen-day, 0px)); pointer-events: auto; }
body.dt.dt-ngang #bsat { top: max(70px, var(--btg-day, 0px), var(--ld-day, 0px), var(--thuyen-day, 0px)); }

/* ---------- Săn Nhím Béo Phì (src/game/sannhim.js — anh 03/11): 1 dòng trên giữa màn lúc có đợt — còn mấy con, giờ còn, số con mình bắt hôm nay
   (đỏ khi đã đủ); dưới bảng boss thế giới nếu cùng lúc (--btg-day). Điện thoại: chỉ ở thôn / thành có nhím (.tai), ngay dưới tên bãi ---------- */
#snh { position: fixed; z-index: 3; left: 50%; top: max(46px, var(--btg-day, 0px)); transform: translateX(-50%); max-width: calc(100vw - 16px); box-sizing: border-box; padding: 2px 8px;
  background: rgba(0,0,0,.62); border: 1px solid #6b5a2e; box-shadow: 0 0 0 1px #000; font: 13px/16px var(--jx); color: #e9e3cf; text-shadow: 1px 1px 0 #000; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
#snh b { font-weight: normal; color: #ffd54a; }
#snh em { font-style: normal; color: #9fd8ff; }
#snh i { font-style: normal; color: #7dff8a; }
#snh i.du { color: #ff8a80; }
body.dt #snh { top: max(116px, var(--btg-day, 0px)); max-width: calc(var(--vw100, 100vw) - 200px); padding: 2px 6px; background: rgba(0,0,0,.78); font-size: 12px; }
body.dt.dt-ngang #snh { top: max(70px, var(--btg-day, 0px)); }
body.dt #snh:not(.tai) { display: none !important; }
/* ---------- Phong Hỏa Liên Thành (src/game/phonghoa.js ve — anh 04/11): trạng thái lúc ở trận (báo danh / giờ còn, điểm thủ thành, tướng quân, binh
   lực địch, Chủ soái, số mình hạ — đỏ khi nguy) — máy tính .b2 khung dọc dưới bản đồ nhỏ, điện thoại .b3 2 dòng giữa trên có vạch điểm thủ thành + cờ
   tướng quân (anh chọn) — + bảng kết quả lúc xong trận (× để ẩn) ---------- */
#phtt { position: fixed; z-index: 3; left: 50%; top: max(46px, var(--btg-day, 0px)); transform: translateX(-50%); max-width: calc(100vw - 16px); box-sizing: border-box; padding: 2px 8px;
  background: rgba(0,0,0,.62); border: 1px solid #6b5a2e; box-shadow: 0 0 0 1px #000; font: 13px/16px var(--jx); color: #e9e3cf; text-shadow: 1px 1px 0 #000; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
#phtt b { font-weight: normal; color: #ffd54a; }
#phtt em { font-style: normal; color: #9fd8ff; }
#phtt i { font-style: normal; color: #7dff8a; }
#phtt i.du { color: #ff8a80; }
body.dt #phtt { top: 116px; max-width: calc(var(--vw100, 100vw) - 200px); padding: 2px 6px; background: rgba(0,0,0,.78); font-size: 12px; }
body.dt.dt-ngang #phtt { top: 70px; }
#phtt.b2 { left: auto; right: 6px; top: 172px; transform: none; width: 178px; white-space: normal; padding: 3px 7px 4px; }
#phtt.b2 .tt { color: #ffd54a; text-align: center; border-bottom: 1px solid #5a4a26; margin-bottom: 2px; }
#phtt.b2 .d { display: flex; justify-content: space-between; gap: 6px; }
#phtt.b2 .d span { color: #c9b27a; }
body.dt #phtt.b2 { top: 318px; right: 4px; width: 146px; max-width: none; font-size: 11px; line-height: 14px; }
#phtt.b3 { text-align: center; padding: 2px 8px 3px; }
#phtt.b3 .d2 { margin-top: 1px; }
#phtt .vach { display: inline-block; vertical-align: middle; height: 9px; padding: 1px; border: 1px solid #6b5a2e; background: #111; }
#phtt .vach u { display: inline-block; width: 4px; height: 9px; margin-right: 1px; background: #4fd36a; vertical-align: top; }
#phtt .vach u.do { background: #ff6b5b; }
#phtt .vach u.mat { background: #3a3a3a; }
#phtt .co u { display: inline-block; width: 9px; height: 11px; margin: 0 1px; vertical-align: middle; background: linear-gradient(#ffd54a, #c9902a); clip-path: polygon(0 0, 100% 15%, 0 55%); border-left: 2px solid #8a6a2a; }
#phtt .co u.mat { background: #555; }
body.dt #phtt.b3 .vach u { width: 3px; }
/* Tống Kim bãi thử (anh 05/11 — src/game/tongkim.js ve): bảng điểm như bảng Phong Hỏa máy tính (#phtt.b2) — dưới bản đồ nhỏ, màu phe như màu tên engine */
#tktt { position: fixed; z-index: 3; right: 6px; top: 172px; width: 196px; box-sizing: border-box; padding: 3px 7px 4px; background: rgba(0,0,0,.62); border: 1px solid #6b5a2e;
  box-shadow: 0 0 0 1px #000; font: 13px/16px var(--jx); color: #e9e3cf; text-shadow: 1px 1px 0 #000; pointer-events: none; }
#tktt .tt { color: #ffd54a; text-align: center; border-bottom: 1px solid #5a4a26; margin-bottom: 2px; }
#tktt .d { display: flex; justify-content: space-between; gap: 6px; }
#tktt .d span { color: #c9b27a; }
#tktt i { font-style: normal; color: #7dff8a; }
#tktt b { font-weight: normal; }
#tktt .song, #tktt .d span.song { color: #ffa85e; }
#tktt .kim, #tktt .d span.kim { color: #ff92ff; }
#tktt .roi { text-align: center; margin-top: 3px; } /* nút Rời trận (lượt 86) */
#tktt .roi span { pointer-events: auto; display: inline-block; cursor: pointer; padding: 0 12px; border: 1px solid #8a6d2e; background: rgba(70,45,12,.85); color: #ffd54a; line-height: 17px; }
#tktt .roi span:hover { background: rgba(110,70,18,.95); color: #fff1b0; }
#tktt .k { color: #e9e3cf; font-size: 12px; line-height: 14px; border-top: 1px solid #3a3020; margin-top: 2px; padding-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tkls { position: fixed; z-index: 3; right: 58px; top: 340px; min-width: 136px; box-sizing: border-box; padding: 6px 10px 7px; background: rgba(60,44,20,.42); border: 1px solid rgba(190,160,90,.5); pointer-events: none; display: none; transform-origin: 100% 0; white-space: nowrap; }
#tkls.on { display: block; }
#tkls.nhay { animation: tklsNhay .55s ease-out; }
@keyframes tklsNhay { 0% { transform: scale(1.2); box-shadow: 0 0 20px rgba(255,120,40,.9); } 100% { transform: scale(1); box-shadow: none; } }
#tkls .h { display: flex; align-items: center; gap: 8px; }
#tkls .so { font: bold 34px/36px var(--jx); color: #ff6a48; text-shadow: 0 0 8px rgba(255,70,30,.8), 1px 1px 0 #000; }
#tkls .nh { font: bold 11px/14px var(--jx); color: #e6d7a8; letter-spacing: 1px; text-shadow: 1px 1px 0 #000; }
#tkls .ten { font: bold 15px/18px var(--jx); color: #ffe066; text-shadow: 1px 1px 0 #000; }
#tkls .thanh { height: 4px; margin-top: 5px; background: rgba(0,0,0,.45); }
#tkls .thanh i { display: block; height: 100%; background: linear-gradient(90deg, #e0421a, #ffb52e); }
body.dt #tkls { right: 4px; min-width: 120px; padding: 4px 8px 5px; z-index: 2; }
body.dt #tkls .so { font-size: 28px; line-height: 30px; }
body.dt #tkls .ten { font-size: 14px; line-height: 17px; }
body.dt #tktt { top: 318px; right: 4px; width: 150px; font-size: 11px; line-height: 14px; z-index: 2; } /* dưới lớp điện thoại #dt (z 3): không đè hành trang / cửa hàng (thử 06/11) */
/* Chiến báo Tống Kim (src/game/tkchienbao.js — anh 06/11 chọn mẫu: máy tính A đúng client, điện thoại B khung cửa sổ game): nút ngay dưới bảng gọn #tktt.
   A — chiến báo tức thời 即时战报界面.ini (750 × 350 trong suốt bóng 0,30,19, chữ JX ASF 12, màu dòng lẻ / chẵn / tiêu đề / vạch của client — bấm xuyên
   xuống cảnh) + bảng kết thúc 宋金快报.ini (hình client cb_bang.png 250 × 428, ô 框.spr, nút Đóng 3 khung: thường / nhấn / rê chuột).
   B — cửa sổ khung 任务记事 (tin_nen.png, nút "Đóng lại") + kết quả khung 排名 "Xếp hạng" (như kết quả boss thế giới) có 4 ô thưởng */
#tkcb-nut { position: fixed; z-index: 3; right: 6px; top: 0; box-sizing: border-box; padding: 1px 8px; background: linear-gradient(#3b3a2c, #1c1b14); border: 1px solid #8a7440;
  box-shadow: 0 0 0 1px #000; font: 13px/16px var(--jx); color: #ffd54a; text-shadow: 1px 1px 0 #000; white-space: nowrap; cursor: pointer; user-select: none; }
#tkcb-nut:hover { color: #fff1a8; border-color: #c9a85a; }
body.dt #tkcb-nut { z-index: 4; padding: 4px 0; text-align: center; }
#tkcb, #tkkq { position: fixed; left: 0; top: 0; transform-origin: 0 0; text-shadow: 1px 1px 0 #000; }
#tkcb .song, #tkkq .song { color: #ffa85e; }
#tkcb .kim, #tkkq .kim { color: #ff92ff; }
#tkcb.a { z-index: 3; width: 750px; height: 350px; background: rgba(0,30,19,.74); box-shadow: 0 0 0 1px rgba(0,0,0,.5); pointer-events: none;
  font: 12px/14px "JX ASF 12", var(--jx); color: rgb(255,255,255); }
#tkcb.a .ab { position: absolute; left: 2px; right: 2px; display: flex; white-space: nowrap; }
#tkcb.a .ab > span { flex: none; overflow: hidden; text-overflow: ellipsis; }
#tkcb.a .dg { position: absolute; left: 14px; right: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tkcb.a .t { color: rgb(235,231,148); }
#tkcb.a .v { position: absolute; left: 0; right: 0; height: 1px; background: rgb(0,255,255); }
#tkcb.a .g { position: absolute; display: grid; grid-template-columns: 150px 90px; row-gap: 4px; }
#tkcb.a table { position: absolute; left: 2px; width: 746px; border-collapse: collapse; table-layout: fixed; }
#tkcb.a th { height: 15px; padding: 0 4px; font-weight: normal; color: rgb(235,231,148); text-align: center; }
#tkcb.a td { height: 15px; padding: 0 4px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tkcb.a th:first-child, #tkcb.a td:first-child { text-align: left; }
#tkcb.a tr.chan td { color: rgb(255,255,80); }
#tkkq.a { z-index: 5; width: 250px; height: 428px; background: url(../../assets/ui/tongkim/cb_bang.png); }
#tkkq.a .o { position: absolute; width: 111px; height: 17px; background: url(../../assets/ui/tongkim/cb_o.png); font: 12px/17px "JX ASF 12", var(--jx); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgb(228,225,150); }
#tkkq.a .o.ten { color: rgb(200,200,120); }
#tkkq.a .o.song { color: #ffa85e; }
#tkkq.a .o.kim { color: #ff92ff; }
#tkkq.a .o.xanh { color: #7dff8a; } /* phần thưởng nhận được (06/11 — 14 dòng nói thẳng) */
#tkkq.a .o.hep { letter-spacing: -.6px; }
#tkkq.a .dong { position: absolute; left: 64px; top: 394px; width: 120px; height: 30px; background: url(../../assets/ui/tongkim/cb_dong.png) 0 0; cursor: pointer; }
#tkkq.a .dong:hover { background-position: -240px 0; }
#tkkq.a .dong:active { background-position: -120px 0; }
#tkcb.b, #tkkq.b { z-index: 4; font: 13px/16px var(--jx); color: #e9e3cf; }
/* khung 任务记事 trong 75% (cửa sổ Tin cập nhật có thêm trang trong — chiến báo không có): lót tối dưới phần trong cho cảnh / bảng gọn sau lưng khỏi lộ qua chữ */
#tkcb.b { width: 433px; height: 300px; background: url(../../assets/ui/win/img/tin_nen.png) 0 0 no-repeat, linear-gradient(rgba(8,8,6,.72), rgba(8,8,6,.72)) 4px 4px / 425px 292px no-repeat; }
#tkkq.b { z-index: 5; width: 480px; height: 300px; background: url(../../assets/ui/win/img/x_28e872de.png); }
#tkcb.b .tieu { position: absolute; left: 0; right: 0; top: 2px; text-align: center; font: 16px/16px "VK Sans Serif 16", monospace; color: rgb(255,217,78); letter-spacing: 1px; }
#tkcb.b .dai { position: absolute; left: 24px; right: 24px; top: 24px; height: 16px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tkcb.b .than { position: absolute; left: 26px; top: 44px; width: 380px; }
#tkcb.b .lu { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
#tkcb.b .r, #tkkq.b .r { display: flex; height: 16px; white-space: nowrap; }
#tkcb.b .r > span, #tkkq.b .r > span { flex: none; overflow: hidden; text-overflow: ellipsis; }
#tkcb.b .h, #tkkq.b .h { margin: 2px 0; padding-bottom: 1px; border-bottom: 1px solid #5a5340; color: rgb(255,253,122); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tkcb.b .toi, #tkkq.b .toi { color: rgb(255,217,78); }
#tkcb.b .xam, #tkkq.b .xam { color: #a9a39a; }
#tkcb.b .xanh, #tkkq.b .xanh { color: #7dff8a; }
#tkcb.b .thanh { position: relative; height: 6px; margin: 4px 0 2px; background: #2a2618; box-shadow: inset 0 0 0 1px #000; }
#tkcb.b .thanh u { position: absolute; left: 1px; top: 1px; bottom: 1px; background: linear-gradient(#ffe27a, #c9902a); }
#tkcb.b .minh { border-top: 1px solid #5a5340; }
#tkcb.b .dong { position: absolute; left: 114px; top: 277px; width: 205px; height: 19px; background: url(../../assets/ui/win/img/x_12262bbe.png) 0 0; cursor: pointer; }
#tkcb.b .dong:active { background-position: -205px 0; }
#tkkq.b .cot1 { position: absolute; left: 22px; top: 25px; width: 162px; height: 248px; overflow: hidden; }
#tkkq.b .cot2 { position: absolute; left: 198px; top: 25px; width: 260px; height: 248px; overflow: hidden; }
#tkkq.b .dau { margin: 2px 0 0 4px; font: 16px/18px "VK Sans Serif 16", monospace; }
#tkkq.b .dg { padding-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tkkq.b .h { margin-left: 4px; }
#tkkq.b .qua { display: flex; gap: 4px; padding: 2px 4px; }
#tkkq.b .oT { position: relative; flex: none; width: 44px; height: 44px; box-sizing: border-box; display: grid; place-items: center; background: rgba(0,0,0,.45);
  box-shadow: inset 0 0 0 1px #5a5340, 0 0 0 1px #000; text-align: center; font: 11px/12px var(--jx); }
#tkkq.b .oT img { display: block; max-width: 40px; max-height: 40px; }
#tkkq.b .oT b { position: absolute; right: 2px; bottom: 1px; font: 13px/13px var(--jx); font-weight: normal; color: #fff; }
#tkkq.b .oT.rong { width: 96px; }
#tkkq.b .oT.rong em { display: block; font: 16px/18px "VK Sans Serif 16", monospace; font-style: normal; color: #7dff8a; }
#tkkq.b .oT.rong span { color: #c9b27a; }
#tkkq.b .oT.mat { opacity: .4; }
#tkkq.b .dong { position: absolute; left: 164px; top: 277px; width: 151px; height: 19px; background: url(../../assets/ui/win/img/x_a1013727.png) 0 0; cursor: pointer; }
#tkkq.b .dong:active { background-position: -151px 0; }
#phkq { position: fixed; z-index: 6; left: 50%; top: 96px; transform: translateX(-50%); min-width: 360px; max-width: calc(100vw - 16px); max-height: 60vh; overflow: auto; box-sizing: border-box;
  padding: 6px 10px 8px; background: rgba(8,8,8,.88); border: 1px solid #8a7440; box-shadow: 0 0 0 1px #000; font: 13px/18px var(--jx); color: #e9e3cf; text-shadow: 1px 1px 0 #000; }
#phkq .tt { color: #ffd54a; text-align: center; padding: 0 18px 2px; position: relative; }
#phkq .x { position: absolute; right: 0; top: -2px; cursor: pointer; color: #e9e3cf; padding: 0 4px; }
#phkq .ly { color: #9fd8ff; text-align: center; margin-bottom: 4px; }
#phkq table { border-collapse: collapse; width: 100%; }
#phkq th { font-weight: normal; color: #c9b27a; border-bottom: 1px solid #5a4a26; padding: 1px 6px; text-align: right; }
#phkq td { padding: 1px 6px; text-align: right; white-space: nowrap; }
#phkq th:first-child, #phkq td:first-child { text-align: left; }
#phkq tr.toi td { color: #7dff8a; }
body.dt #phkq { top: 140px; font-size: 12px; min-width: 0; }
/* kết quả boss thế giới (windows.js ketQuaBoss — khung 排名.ini, cửa sổ "btgkq"): cột phải — tên boss, hạng của mình, phần thưởng ô 48 × 48 (kinh
   nghiệm: hình PictureList của client; món: icon + số góc dưới phải như ô dùng nhanh) */
#jxwin .bk-dau { margin: 2px 0 2px 4px; font: 16px/18px "VK Sans Serif 16", monospace; color: rgb(255,217,78); text-shadow: 1px 1px 0 #000; }
#jxwin .bk-dong { padding-left: 4px; line-height: 16px; }
#jxwin .bk-day { margin-top: 4px; color: #ff6a5a; }
#jxwin .bk-tieu { margin: 5px 4px 2px; padding-bottom: 2px; border-bottom: 1px solid #5a5340; color: rgb(255,253,122); }
#jxwin .bk-kn { display: flex; align-items: center; gap: 8px; padding-left: 4px; }
#jxwin .bk-kn span { line-height: 16px; color: #7dff8a; }
#jxwin .bk-luoi { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px 4px 1px; }
#jxwin .bk-o { position: relative; width: 44px; height: 44px; display: grid; place-items: center; background: rgba(0,0,0,.45); box-shadow: inset 0 0 0 1px #5a5340, 0 0 0 1px #000; }
#jxwin .bk-o img { display: block; max-width: 44px; max-height: 44px; }
#jxwin .bk-o b { position: absolute; right: 2px; bottom: 1px; font: 13px/13px var(--jx); font-weight: normal; color: #fff;
  text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000, 1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000; }
#jxwin .bk-cho .bk-o { opacity: .55; }
#jxwin .bk-khong { color: #a9a39a; }
#jxwin .bk-tieu em { font-style: normal; color: #7dff8a; }
/* ngắm chiêu trên điện thoại (dienthoai.js _ngam — anh 31/10 "đè vào ô kĩ năng hiển thị vùng thi triển như Liên Quân"): vòng điều khiển quanh
   chỗ đặt ngón + núm theo ngón; ô Hủy phía trên (kéo vào: đỏ, nhả = thôi). Vùng thi triển vẽ trên cảnh (World.veNgam). Lần 3 (anh: bản trước "thật
   sự rất khó chấp nhận" — chọn kiểu 1 "Liên Quân" trong ảnh so): vòng mảnh trắng trong mờ, núm tròn viền trắng sáng, ô Hủy tròn gọn chỉ ✕ */
body.dt #jxhud .jx-slot { touch-action: none; }
.dt-ngam { position: fixed; z-index: 40; width: 124px; height: 124px; margin: -62px 0 0 -62px; box-sizing: border-box; border-radius: 50%; border: 2px solid rgba(255,255,255,.42);
  background: radial-gradient(rgba(0,0,0,0) 58%, rgba(0,0,0,.28)); pointer-events: none; }
.dt-ngam i { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; box-sizing: border-box; border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(255,255,255,.9); background: #000; box-shadow: 0 0 12px rgba(190,230,255,.7); }
.dt-ngam i img { display: block; width: 100%; height: 100%; }
.dt-ngam-huy { position: fixed; z-index: 40; width: 46px; height: 46px; margin: -23px 0 0 -23px; box-sizing: border-box; border-radius: 50%; border: 2px solid rgba(255,255,255,.55);
  background: rgba(0,0,0,.35); color: #fff; display: flex; align-items: center; justify-content: center; text-shadow: 1px 1px 0 #000; pointer-events: none; }
.dt-ngam-huy b { font: 20px/20px var(--jx); font-weight: normal; }
.dt-ngam-huy span { display: none; }
.dt-ngam-huy.on { background: rgba(200,60,44,.85); border-color: #ffb0a8; }

/* ---------- số phần thưởng đang chờ nhận trên nút Nhận thưởng — cột icon dưới bản đồ nhỏ (anh 03/11 chọn "chấm đỏ có số" như số đỏ thẻ điện
   thoại; hud.js datThuong, main.js capNhatThuong) ---------- */
.jx-ntso { position: absolute; right: -7px; top: -7px; z-index: 2; min-width: 15px; height: 15px; padding: 0 3px; box-sizing: border-box; border-radius: 8px;
  background: #c6281d; border: 1px solid #000; color: #fff; font: 11px/13px var(--jx); font-weight: normal; text-align: center; pointer-events: none; }
/* ---------- Hướng dẫn hoạt động (CSS thuần Dark Jade & Gold — src/game/huongdan.js) ---------- */
#jxwin .hd-khung { color: rgb(188,224,205); font: 13px/14px "VK Sans Serif 13", "IBM Plex Mono", monospace;
  background-image: none !important; background: linear-gradient(180deg, #18221d 0%, #0d1310 100%) !important;
  border: 1.5px solid #b59449; border-radius: 7px; box-sizing: border-box;
  box-shadow: 0 0 0 1px #000, 0 14px 36px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,228,138,.12); }
#jxwin .hd-khung::before { content: "HƯỚNG DẪN HOẠT ĐỘNG"; position: absolute; left: 0; right: 0; top: 0; height: 36px;
  line-height: 36px; text-align: center; font: bold 15px/36px var(--jx); letter-spacing: .6px; color: #ffe699;
  background: linear-gradient(180deg, #27362e, #151d19); border-bottom: 1px solid #6b582c; border-radius: 6px 6px 0 0;
  text-shadow: 1px 1px 0 #000; pointer-events: none; }
#jxwin .hd-khung .hd-ngay { position: absolute; left: auto !important; right: 44px; top: 10px !important; width: auto !important; height: 18px;
  white-space: nowrap; font: 13px/18px var(--jx); color: #d8cdb0; pointer-events: none; text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000; }
#jxwin .hd-khung .jw-i[data-n="Close"] { left: auto !important; right: 8px !important; top: 5px !important; width: 26px !important; height: 26px !important;
  background-image: none !important; background: linear-gradient(180deg, #422723, #241311) !important;
  border: 1px solid #9e6b48; border-radius: 4px; box-sizing: border-box; cursor: pointer; }
#jxwin .hd-khung .jw-i[data-n="Close"]:hover { filter: brightness(1.22); border-color: #ffd94e; }
#jxwin .hd-khung .jw-i[data-n="Close"]::after { content: "×"; position: absolute; inset: 0; display: grid; place-items: center;
  font: bold 18px/24px var(--jx); color: #ffe48a; text-shadow: 1px 1px 0 #000; pointer-events: none; }
#jxwin .hd-khung .jw-i[data-n="Close"] .jw-t { display: none; }
#jxwin .hd-trang { position: absolute; left: 10px; top: 42px; width: 940px; height: 494px; overflow: hidden; box-sizing: border-box;
  border: 1px solid #4c5f52; border-radius: 5px; background-color: rgba(13,17,15,.96);
  text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000; }
#jxwin .hd-trang.hd-t0 { background: linear-gradient(180deg, rgba(20,26,22,.98), rgba(11,15,13,.98)); }
/* Bố cục 5 vùng Lịch trình hoạt động (940×494): (1) Cá nhân/Tổ đội/Theo giờ, (2) Nội dung, (3) Phần thưởng, (4) Danh sách, (5) Việc hằng ngày + Rương mốc */
#jxwin .hd-t0 .hd-v1 { position: absolute; left: 0; top: 0; width: 124px; height: 416px; box-sizing: border-box; padding: 10px 8px; border-right: 1px solid #45594d; background: rgba(12,18,15,.92); display: flex; flex-direction: column; gap: 8px; z-index: 2; }
#jxwin .hd-cat-btn { width: 100%; height: 44px; box-sizing: border-box; padding: 0 10px; border: 1px solid #3c5045; border-radius: 5px; background: linear-gradient(180deg, #1b2822, #111915); color: #b5cfc0; font: bold 15px/42px var(--jx); text-align: left; cursor: pointer; text-shadow: 1px 1px 0 #000; transition: border-color .14s, background .14s; }
#jxwin .hd-cat-btn:hover { border-color: #7da690; color: #eefaf3; }
#jxwin .hd-cat-btn.on { border-color: #d6b665; background: linear-gradient(180deg, #355848, #1d3228); color: #ffe58f; box-shadow: inset 3px 0 0 #ffd94e; }
#jxwin .hd-t0 .hd-v2 { position: absolute; left: 124px; top: 0; width: 386px; height: 306px; box-sizing: border-box; padding: 10px 14px 8px; border-right: 1px solid #45594d; border-bottom: 1px solid #45594d; display: flex; flex-direction: column; gap: 8px; background: rgba(17,22,19,.82); z-index: 1; }
#jxwin .hd2-dau { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-bottom: 6px; border-bottom: 1px solid #4d5f53; }
#jxwin .hd2-ten { color: rgb(255,217,78); font: bold 18px/22px var(--jx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#jxwin .hd2-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font: 14px/19px var(--jx); color: rgb(210,224,214); background: rgba(10,13,11,.55); border: 1px solid #39483e; border-radius: 5px; padding: 7px 10px; }
#jxwin .hd2-meta > div { display: flex; gap: 5px; min-width: 0; }
#jxwin .hd2-meta > div.hd2-full { grid-column: 1 / -1; }
#jxwin .hd2-meta b { flex: none; font-weight: normal; color: rgb(255,217,78); }
#jxwin .hd2-meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#jxwin .hd2-mota { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #4b6e5d #111613; font: 14.5px/21px var(--jx); color: rgb(222,240,228); padding-right: 4px; }
#jxwin .hd2-mota p { margin: 0 0 6px; }
#jxwin .hd-t0 .hd-v3rw { position: absolute; left: 124px; top: 306px; width: 386px; height: 110px; box-sizing: border-box; padding: 8px 14px; border-right: 1px solid #45594d; background: rgba(14,19,16,.88); display: flex; flex-direction: column; justify-content: center; gap: 7px; z-index: 1; }
.hd2-th-lbl { color: rgb(255,217,78); font: bold 14px/17px var(--jx); }
.hd2-th-ds { display: flex; flex-wrap: wrap; gap: 8px; }
.hd2-it { width: 48px; height: 48px; padding: 3px; border: 1px solid #8c7748; border-radius: 5px; background: radial-gradient(circle, #2a342e, #121714); box-shadow: inset 0 0 0 1px rgba(0,0,0,.6); display: grid; place-items: center; cursor: pointer; }
.hd2-it:hover { border-color: #ffd94e; box-shadow: 0 0 6px rgba(255,217,78,.55); transform: scale(1.04); }
.hd2-it img { width: 38px; height: 38px; object-fit: contain; image-rendering: pixelated; }
.hd-itip { position: absolute; z-index: 25; width: 280px; box-sizing: border-box; padding: 10px 12px; border: 1.5px solid #c9a95a; border-radius: 5px; background: rgba(12,16,14,.97); box-shadow: 0 0 0 1px #000, 0 8px 20px rgba(0,0,0,.85); color: #dcece2; font: 13.5px/19px var(--jx); text-shadow: 1px 1px 0 #000; }
.hd-itip-dau { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid #3c4f44; }
.hd-itip-dau img { width: 38px; height: 38px; padding: 2px; border: 1px solid #7a6840; border-radius: 4px; background: #17201b; object-fit: contain; flex: none; }
.hd-itip-dau > div { flex: 1; min-width: 0; }
.hd-itip-dau b { display: block; font: bold 14.5px/18px var(--jx); }
.hd-itip-dau span { display: block; font-size: 12px; color: #9fc4b0; margin-top: 2px; }
.hd-itip-x { flex: none; width: 22px; height: 22px; border: 1px solid #586a5e; border-radius: 3px; background: #1d2822; color: #ffe48a; font: 12px/20px var(--jx); padding: 0; cursor: pointer; }
.hd-itip-x:hover { border-color: #ffd94e; }
.hd-itip-mo { color: #e6efe9; white-space: normal; line-height: 19px; }
#hd-dt .hd-dt-meta { font-size: 13px; color: #c7d9ce; margin-bottom: 6px; line-height: 18px; }
#jxwin .hd-t0 .hd-v4list { position: absolute; left: 510px; top: 0; width: 430px; height: 416px; box-sizing: border-box; padding: 8px 10px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #4b6e5d #111613; display: flex; flex-direction: column; gap: 7px; z-index: 1; }
#jxwin .hd3-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #394b40; border-radius: 5px; background: rgba(24,33,28,.86); cursor: pointer; flex: none; }
#jxwin .hd3-row:hover { border-color: #6f947f; background: rgba(33,47,40,.92); }
#jxwin .hd3-row.on { border-color: #d6b665; background: linear-gradient(90deg, rgba(46,78,66,.92), rgba(29,48,40,.92)); box-shadow: inset 0 0 0 1px rgba(255,217,78,.28); }
#jxwin .hd3-row.dang { border-color: #5bc879; }
#jxwin .hd3-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 1px solid #6b6346; border-radius: 5px; background: radial-gradient(circle, #2a342e, #121714); }
#jxwin .hd3-ic img { width: 36px; height: 36px; object-fit: contain; image-rendering: pixelated; }
#jxwin .hd3-ic .hd3-def { width: 28px; height: 28px; background: url(../../assets/ui/win/img/hd_kn.png) center/contain no-repeat; display: block; }
#jxwin .hd3-mid { flex: 1; min-width: 0; }
#jxwin .hd3-ten { font: bold 15.5px/20px var(--jx); color: rgb(255,244,196); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#jxwin .hd3-row.dang .hd3-ten { color: #8aff9a; }
#jxwin .hd3-sub { font: 13.5px/18px var(--jx); color: #b5c9bd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
#jxwin .hd3-phai { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
#jxwin .hd3-st { font: 13px/16px var(--jx); white-space: nowrap; }
.hd-nut-go { padding: 6px 14px; border: 1px solid #88bfa8; border-radius: 4px; background: linear-gradient(180deg, #2d6f5d, #194439); color: #ffe99d; font: bold 13.5px/16px var(--jx); cursor: pointer; white-space: nowrap; text-shadow: 1px 1px 0 #000; }
.hd-nut-go:hover { filter: brightness(1.16); border-color: #ffd94e; }
.hd-nut-go:active { transform: scale(.96); }
#jxwin .hd-t0 .hd-v5 { position: absolute; left: 0; bottom: 0; width: 940px; height: 78px; box-sizing: border-box; padding: 6px 14px; border-top: 1px solid #586b5e; background: linear-gradient(180deg, #1a231e, #0f1512); display: flex; align-items: center; gap: 14px; z-index: 2; }
#jxwin .hd4-trai { flex: none; display: flex; align-items: center; gap: 10px; min-width: 162px; }
#jxwin .hd4-bieu { width: 34px; height: 32px; display: block; flex: none; background: url(../../assets/ui/win/img/hd_bieu.png) center/contain no-repeat; }
#jxwin .hd4-trai b { display: block; color: rgb(255,217,78); font: bold 14px/17px var(--jx); }
#jxwin .hd4-trai span { display: block; color: #b7d3c2; font: 13px/16px var(--jx); }
#jxwin .hd4-giua { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
#jxwin .hd4-bar { position: relative; height: 11px; border: 1px solid #6a5a35; border-radius: 6px; background: #0a0d0b; overflow: hidden; }
#jxwin .hd4-bar > i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #32946d, #74d97c, #ffd94e); border-radius: 5px; transition: width .2s ease; }
.hd5-ruong { display: flex; justify-content: space-around; align-items: center; gap: 10px; }
.hd-moc-btn { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid #4c5a50; border-radius: 5px; background: #141c18; color: #a7b8ae; font: bold 13px/16px var(--jx); cursor: pointer; }
.hd-moc-btn img { width: 34px; height: 34px; object-fit: contain; image-rendering: pixelated; }
.hd-moc-btn.can { border-color: #ffd94e; background: linear-gradient(180deg, #3b3016, #1d1709); color: #ffe680; box-shadow: 0 0 8px rgba(255,217,78,.55); }
.hd-moc-btn.open { border-color: #3d634d; background: #122119; color: #79d99a; opacity: .88; }
#jxwin .hd4-phai { flex: none; min-width: 84px; text-align: center; padding: 4px 10px; border: 1px solid #526e5e; border-radius: 6px; background: radial-gradient(circle, #21342c, #121b17); }
#jxwin .hd4-phai b { display: block; color: #8aff9a; font: bold 18px/20px var(--jx); }
#jxwin .hd4-phai span { display: block; color: #c7d9ce; font: 12px/14px var(--jx); }
#jxwin .hd-trang.hd-t1, #jxwin .hd-trang.hd-t2 { background: linear-gradient(90deg, rgba(42,40,34,.97) 0 188px, #0b0a07 188px 192px, rgba(42,40,34,.97) 192px); }
#jxwin .hd-trang > * { position: absolute; }
#jxwin .hd-bieu { left: 0; top: 0; width: 42px; height: 36px; background: url(../../assets/ui/win/img/hd_bieu.png) no-repeat; }
#jxwin .hd-tien { left: 52px; top: 10px; color: rgb(240,127,80); white-space: nowrap; }
#jxwin .hd-thanh { left: 310px; top: 13px; width: 285px; height: 11px; background: url(../../assets/ui/win/img/hd_thanh0.png) no-repeat; }
#jxwin .hd-thanh > i { position: absolute; left: 0; top: 0; height: 11px; background: url(../../assets/ui/win/img/hd_thanh.png) no-repeat; }
#jxwin .hd-nhan { left: 0; width: 388px; text-align: center; color: rgb(240,127,80); white-space: nowrap; }
#jxwin .hd-cot { left: 0; width: 388px; display: flex; color: rgb(255,250,0); white-space: nowrap; }
#jxwin .hd-ds { left: 0; width: 388px; overflow: hidden auto; scrollbar-width: none; color: rgb(218,255,165); }
#jxwin .hd-ds::-webkit-scrollbar, #jxwin .hd-ct::-webkit-scrollbar, #jxwin .hd-noi::-webkit-scrollbar { display: none; }
#jxwin .hd-r { display: flex; height: 17px; line-height: 17px; white-space: nowrap; cursor: pointer; }
#jxwin .hd-r:hover { color: rgb(255,253,122); }
#jxwin .hd-r.on { background: rgba(110,110,90,.55); color: rgb(240,127,80); }
/* hằng ngày 9 dòng trong 141 px (anh 05/11 "hơi lệch lúc bấm": dòng 17 px thì dòng cuối bị che, bấm vào danh sách cuộn lên lấp ló dòng tiêu đề) */
#jxwin .hd-ngay2 .hd-r { height: 15px; line-height: 15px; }
#jxwin .hd-r > span, #jxwin .hd-cot > span { overflow: hidden; text-overflow: ellipsis; }
#jxwin .hd-r .c1, #jxwin .hd-cot .c1 { width: 146px; padding-left: 2px; box-sizing: border-box; flex: none; }
#jxwin .hd-r .c2, #jxwin .hd-cot .c2 { width: 129px; flex: none; }
#jxwin .hd-r .c3, #jxwin .hd-cot .c3 { width: 113px; flex: none; }
#jxwin .hd-ten { left: 405px; width: 207px; color: rgb(240,127,80); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#jxwin .hd-ct { left: 405px; top: 58px; width: 193px; height: 142px; overflow: hidden auto; scrollbar-width: none; font: 13px/17px "VK Sans Serif 13", monospace; white-space: normal;
  overflow-wrap: anywhere; }
#jxwin .hd-ct p { margin: 0 0 3px; }
#jxwin .hd-o { left: 406px; width: 203px; height: 35px; background: url(../../assets/ui/win/img/hd_o.png) no-repeat; cursor: pointer; }
#jxwin .hd-o > i { position: absolute; left: 5px; top: 5px; width: 24px; height: 24px; background: url(../../assets/ui/win/img/hd_kn.png) no-repeat; }
#jxwin .hd-o > b { position: absolute; left: 36px; top: 4px; right: 4px; font-weight: normal; color: rgb(255,250,196); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#jxwin .hd-o > em { position: absolute; left: 36px; top: 19px; right: 4px; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#jxwin .hd-y, #hd-dt .hd-y { color: rgb(255,255,0); }
#jxwin .hd-g, #jxwin .hd-dang, #hd-dt .hd-g, #hd-dt .hd-dang { color: rgb(110,255,110); }
#jxwin .hd-c, #hd-dt .hd-c { color: rgb(240,127,80); }
#jxwin .hd-sap, #hd-dt .hd-sap { color: rgb(255,217,78); }
#jxwin .hd-qua, #jxwin .hd-du, #hd-dt .hd-qua, #hd-dt .hd-du { color: rgb(150,150,140); }
#jxwin .hd-mo, #hd-dt .hd-mo { color: #c9bfa5; padding: 4px; white-space: normal; }
#jxwin .hd-mo-giua { left: 0; top: 170px; width: 612px; text-align: center; }
#jxwin .hd-xem { color: rgb(255,217,78); cursor: pointer; }
#jxwin .hd-xem:hover { color: #fff; }
/* Tra cứu / Phần thưởng: ô tìm, mục bên trái, nội dung bên phải */
#jxwin .hd-o-tim { left: 90px; top: 5px; width: 300px; height: 22px; box-sizing: border-box; padding: 0 6px; background: #0e0c08; border: 1px solid #6a5a35; color: #fff;
  font: 13px/20px "VK Sans Serif 13", monospace; outline: none; user-select: text; text-shadow: none; }
#jxwin .hd-o-tim:focus { border-color: #c9a95a; }
#jxwin .hd-idx { top: 38px; width: 186px; height: 323px; } /* 19 dòng × 17 — không dòng nào bị cắt ngang */
#jxwin .hd-idx .hd-r { padding-left: 4px; display: block; overflow: hidden; text-overflow: ellipsis; }
#jxwin .hd-idx .hd-r.n { color: rgb(255,250,0); padding-left: 2px; cursor: default; background: none; margin-top: 3px; }
#jxwin .hd-noi { left: 198px; top: 38px; width: 408px; height: 335px; overflow: hidden auto; scrollbar-width: none; font: 13px/17px "VK Sans Serif 13", monospace;
  white-space: normal; overflow-wrap: anywhere; color: rgb(169,211,190); user-select: text; -webkit-user-select: text; }
#jxwin .hd-noi p, #hd-dt .hd-dt-ct2 p { margin: 2px 0 5px; }
#jxwin .hd-noi ul, #hd-dt .hd-dt-ct2 ul { margin: 2px 0 5px; padding-left: 16px; }
.hd-noi-ten { color: rgb(240,127,80); margin: 0 0 3px; }
.hd-noi-ten img { width: 24px; height: 24px; object-fit: contain; vertical-align: middle; margin-right: 5px; image-rendering: pixelated; }
.hd-tom { color: rgb(160,160,150); margin-bottom: 4px; }
.hd-h { color: rgb(255,217,78); margin: 7px 0 2px; }
.hd-bang { width: 100%; border-collapse: collapse; margin: 2px 0 6px; }
.hd-bang td { padding: 1px 4px; border-bottom: 1px solid rgba(0,0,0,.5); vertical-align: top; }
.hd-bang td.r { text-align: right; }
.hd-bang td.n { white-space: nowrap; }
.hd-bang tr.h td { color: rgb(255,250,0); border-bottom-color: #6a5a35; }
.hd-bang tr:not(.h) td.r:nth-child(2) { color: rgb(110,255,110); }
/* điện thoại dọc (anh 05/11 chọn chữ 16 px): lớp hết màn dưới cửa sổ client (#jxwin cùng z-index, đứng sau trong trang) */
#hd-dt { position: fixed; inset: 0; z-index: 4; display: flex; flex-direction: column; background: rgba(12,10,6,.97); color: rgb(169,211,190);
  font: 16px/21px "VK Sans Serif 16", "IBM Plex Mono", monospace; text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000; touch-action: pan-y; user-select: none; }
#hd-dt .hd-dt-dau { position: relative; flex: none; height: 40px; line-height: 40px; text-align: center; color: rgb(255,250,196); border-bottom: 1px solid #6a5a35;
  background: linear-gradient(#3c3420, #1c170e); }
#hd-dt .hd-dt-x { position: absolute; right: 8px; top: 5px; width: 30px; height: 30px; line-height: 28px; box-sizing: border-box; border: 1px solid #c9a95a; color: #ffe48a; font-weight: normal; }
#hd-dt .hd-dt-the { flex: none; display: flex; gap: 4px; padding: 6px; }
#hd-dt .hd-dt-the > span { flex: 1; text-align: center; line-height: 34px; border: 1px solid #6a5a35; background: #1a1610; }
#hd-dt .hd-dt-the > span.on { color: rgb(255,250,0); border-color: #c9a95a; background: linear-gradient(#5a4a26, #2a2214); }
#hd-dt .hd-dt-noi { flex: 1; overflow: hidden auto; -webkit-overflow-scrolling: touch; padding-bottom: 24px; }
#hd-dt .hd-dt-nh { color: rgb(240,127,80); padding: 8px 8px 3px; }
#hd-dt .hd-dt-v4 { margin: 8px; padding: 8px 10px; border: 1px solid #6a5a35; border-radius: 5px; background: #161d19; }
#hd-dt .hd-dt-v4top { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 14px; }
#hd-dt .hd-dt-v4top b { color: #ffd94e; font-weight: normal; }
#hd-dt .hd-dt-v4top span { color: #8aff9a; }
#hd-dt .hd-dt-bar { height: 10px; border: 1px solid #6a5a35; border-radius: 5px; background: #0a0d0b; overflow: hidden; }
#hd-dt .hd-dt-bar > i { display: block; height: 100%; background: linear-gradient(90deg, #32946d, #ffd94e); }
#hd-dt .hd-dt-moc { display: flex; justify-content: space-between; gap: 6px; margin-top: 8px; }
#hd-dt .hd-dt-cat { display: flex; gap: 6px; padding: 0 8px 6px; }
#hd-dt .hd-dt-cat button { flex: 1; height: 34px; border: 1px solid #3c5045; border-radius: 4px; background: #141c18; color: #b5cfc0; font: bold 14px/32px var(--jx); }
#hd-dt .hd-dt-cat button.on { border-color: #d6b665; background: #264234; color: #ffe58f; }
#hd-dt .hd-dt-r { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-bottom: 1px solid #2a2418; }
#hd-dt .hd-dt-info { flex: 1; min-width: 0; }
#hd-dt .hd-dt-info b { display: block; font-weight: normal; color: #fff3cc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hd-dt .hd-dt-info em { display: block; font-style: normal; font-size: 13px; color: #b5c9bd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
#hd-dt .hd-dt-r.on { background: rgba(110,110,90,.45); }
#hd-dt .hd-dt-ct { margin: 4px 8px 8px; padding: 8px; border: 1px solid #4a4030; background: #14110b; white-space: normal; overflow-wrap: anywhere; }
#hd-dt .hd-dt-ct p { margin: 0 0 6px; }
#hd-dt .hd-dt-ten { color: rgb(240,127,80); margin-bottom: 4px; }
#hd-dt .hd-xem { color: rgb(255,217,78); }
#hd-dt .hd-dt-tim { padding: 6px 8px 4px; }
#hd-dt .hd-dt-tim input { width: 100%; height: 40px; box-sizing: border-box; padding: 0 10px; background: #0e0c08; border: 1px solid #6a5a35; color: #fff;
  font: 16px/38px "VK Sans Serif 16", monospace; outline: none; user-select: text; }
#hd-dt .hd-dt-chip { display: flex; flex-wrap: wrap; gap: 5px; padding: 2px 8px 8px; }
#hd-dt .hd-dt-chip > span { padding: 0 10px; line-height: 32px; border: 1px solid #4a4030; background: #14110b; }
#hd-dt .hd-dt-chip > span.on { color: rgb(255,250,0); border-color: #c9a95a; background: #2a2214; }
#hd-dt .hd-dt-m { display: flex; align-items: center; padding: 8px; border-bottom: 1px solid #2a2418; }
#hd-dt .hd-dt-m > div { flex: 1; min-width: 0; }
#hd-dt .hd-dt-m b { display: block; font-weight: normal; color: rgb(255,217,78); }
#hd-dt .hd-dt-m em { display: block; font: 13px/16px var(--jx); font-style: normal; color: rgb(160,160,150); }
#hd-dt .hd-dt-m > i { font-style: normal; color: #c9a95a; font-size: 20px; padding-left: 8px; }
#hd-dt .hd-dt-lui { padding: 9px 8px; color: #c9a95a; border-bottom: 1px solid #4a4030; }
#hd-dt .hd-dt-ct2 { padding: 6px 8px 16px; white-space: normal; overflow-wrap: anywhere; }
#hd-dt .hd-noi-ten { font-size: 16px; }
#hd-dt .hd-tom { font: 13px/17px var(--jx); }
#hd-dt .hd-bang td { padding: 5px 6px; }
/* Trợ Thủ → Tiện ích → Tra cứu (anh 05/11 — trothu.js _traCuu): ô tìm + kết quả (bấm mở bảng lớn của Hướng dẫn hoạt động) */
#jxwin .tt-tim { margin: 2px 0 4px; }
#jxwin .tt-tim input { width: 100%; height: 20px; box-sizing: border-box; padding: 0 5px; background: #0e0c08; border: 1px solid #6a5a35; color: #fff; font: 12px/18px var(--jx); outline: none; user-select: text; }
#jxwin .tt-tcm { padding: 3px 2px; border-bottom: 1px solid #2a2418; cursor: pointer; white-space: normal; }
#jxwin .tt-tcm:hover b { color: #fff; }
#jxwin .tt-tcm b { display: block; font-weight: normal; color: rgb(255,217,78); }
#jxwin .tt-tcm em { display: block; font: 12px/14px var(--jx); font-style: normal; color: rgb(160,160,150); }
/* F10 → Lịch hoạt động (anh 05/11 — quantri.js veLich) */
.qt-lich-o { border: 1px solid #4a4030; background: rgba(20,17,11,.6); padding: 4px 8px; margin: 6px 0; }
.qt-lich-o.tat { opacity: .75; }
.qt-lich-o .r { margin: 3px 0; }
.qt-thu { display: inline-flex; align-items: center; gap: 2px; margin-right: 6px; cursor: pointer; }
/* Nhóm Zalo (anh 09/11 — src/game/nhomzalo.js, mẫu A): giữ được ảnh trên iOS để lưu */
#jxwin .tt.zl-qr { top: 44px; height: 372px; text-align: center; white-space: normal; }
#jxwin .zl-qr img { display: block; width: 272px; height: 272px; margin: 4px auto 0; border-radius: 4px; border: 1px solid #6a5a35; -webkit-touch-callout: default; }
#jxwin .zl-qr p { margin: 8px 0 6px; font-size: 13px; line-height: 16px; color: rgb(255,246,180); }
#jxwin .zl-qr .tt-b { display: inline-block; padding: 3px 16px; }
/* Phân Thân (anh 05/11 — src/game/phanthan.js, Kiểu 2: bố cục khung Lập nhóm, nền pt_nen.png đã che chữ in sẵn — chữ mới viết ở đây) */
#jxwin .pt-khung > div:not(.jw-i):not(.jw-page) { position: absolute; box-sizing: border-box; font: 13px/13px "VK Sans Serif 13", "IBM Plex Mono", monospace; white-space: nowrap; overflow: hidden; }
#jxwin .pt-khung .pt-tieude { display: flex; align-items: center; justify-content: center; font-weight: bold; color: #3a2208; letter-spacing: 1px; }
#jxwin .pt-khung .pt-dau { display: flex; align-items: center; padding-left: 4px; color: #ffe9b0; text-shadow: 1px 1px #000; }
#jxwin .pt-khung .pt-nhan { display: flex; align-items: center; padding-left: 4px; color: #ffe9b0; text-shadow: 1px 1px #000; }
#jxwin .pt-khung .pt-gt { display: flex; align-items: center; padding-left: 4px; }
#jxwin .pt-khung .pt-nut { display: flex; align-items: center; justify-content: center; color: #fff6c8; text-shadow: 1px 1px #000; cursor: pointer; user-select: none; }
#jxwin .pt-khung .pt-nut:hover { color: #fffd7a; background: rgba(255, 253, 122, .08); }
#jxwin .pt-khung .pt-nut:active { transform: translate(1px, 1px); }
#jxwin .pt-khung .pt-nut.tat { color: #7d8a80; cursor: default; }
#jxwin .pt-khung .pt-nut.tat:hover { background: none; }
#jxwin .pt-khung .pt-hd { color: #2e2a14; text-shadow: none; font-weight: bold; }
#jxwin .pt-khung .pt-hd:hover { color: #6a1c00; background: rgba(255, 255, 255, .12); }
#jxwin .pt-ds { color: rgb(218, 255, 165); }
#jxwin .pt-ds .pt-dong, #jxwin .pt-ds .pt-dong1 { padding: 1px 3px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#jxwin .pt-ds .pt-dong { padding-bottom: 3px; }
#jxwin .pt-ds .chon { color: rgb(255, 253, 122); background: rgba(150, 142, 105, .55); }
#jxwin .pt-ds .da { color: #8a9a8a; }
#jxwin .pt-ds .pt-ph { font-weight: bold; }
#jxwin .pt-ds .pt-cap { color: #fff6c8; }
#jxwin .pt-ds .chon .pt-cap, #jxwin .pt-ds .da .pt-cap { color: inherit; }
#jxwin .pt-ds .pt-ten { line-height: 15px; overflow: hidden; text-overflow: ellipsis; }
#jxwin .pt-ds .pt-tt { line-height: 13px; padding-left: 8px; color: #9aa79a; }
#jxwin .pt-ds .pt-tt.theo { color: #55ff91; }
#jxwin .pt-ds .pt-trong { padding: 2px 3px; color: #8a8a8a; line-height: 15px; white-space: normal; }
#jxwin .pt-ds.pt-ta { overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #6a5a35 transparent; } /* thuê nhiều phân thân (anh 18/11): cột trái cuộn */
#jxwin .pt-ta .pt-tt { padding-left: 4px; } #jxwin .pt-ta .pt-dong { padding-right: 1px; }
#jxwin .pt-khung .pt-vang { color: #ffd94e; }
#jxwin .pt-khung .pt-xanh { color: #cfe6ab; }
/* Bầu Cua — bàn cược (anh 10/11 chọn mẫu B "Bàn cược riêng" — src/game/baucua.js): 6 cửa 3 × 2, đồng hồ, 3 con ván trước, mức đặt, Luật chơi / Đóng */
#jxwin .bcua-khung { background: #14100be8; border: 2px ridge #a5824a; box-sizing: border-box; color: #e8dcc0; font: 13px/20px var(--jx); }
#jxwin .bcua-khung .bcua-noi { padding: 6px 10px 8px; }
#jxwin .bcua-khung .bcua-tieude { text-align: center; font: bold 15px/22px var(--jx); color: #ffd84e; border-bottom: 1px solid #6b5230; padding-bottom: 3px; cursor: move; }
#jxwin .bcua-khung .bcua-hang { display: flex; align-items: center; justify-content: space-between; margin: 6px 0; min-height: 26px; cursor: move; }
#jxwin .bcua-khung .bcua-xx { display: inline-block; width: 40px; margin-left: 4px; text-align: center; background: #efe3c5; color: #5a1a10; font: bold 13px/24px var(--jx); border-radius: 4px; box-shadow: 0 1px 2px #000; }
#jxwin .bcua-khung .bcua-gio { color: #7fe06a; white-space: nowrap; }
#jxwin .bcua-khung .bcua-gio b { font-size: 17px; color: #ffe48a; font-weight: normal; }
#jxwin .bcua-khung .bcua-van { color: #e8dcc0; margin-right: 2px; }
#jxwin .bcua-khung .bcua-mo { color: #a89a80; }
#jxwin .bcua-khung .bcua-o { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 7px; }
#jxwin .bcua-khung .bcua-cua { position: relative; height: 68px; box-sizing: border-box; border: 1px solid #8a6a3a; background: radial-gradient(circle at 50% 35%, #6e2318, #2a0f0a 80%); text-align: center; cursor: pointer; }
#jxwin .bcua-khung .bcua-cua:not(.khoa):hover { border-color: #ffd84e; }
#jxwin .bcua-khung .bcua-cua:not(.khoa):active { transform: translate(1px, 1px); }
#jxwin .bcua-khung .bcua-cua.khoa { cursor: default; }
#jxwin .bcua-khung .bcua-cua.co { border-color: #ffd84e; box-shadow: 0 0 7px #ffc94e inset; }
#jxwin .bcua-khung .bcua-cua.ra { border-color: #fff27a; box-shadow: 0 0 10px #ffe14e inset, 0 0 6px #ffcf3e; }
#jxwin .bcua-khung .bcua-cua.mo { opacity: .5; }
#jxwin .bcua-khung .bcua-ten { font: bold 22px/42px var(--jx); color: #ffe48a; text-shadow: 0 1px 0 #000, 0 0 6px #b5661a; }
#jxwin .bcua-khung .bcua-dat { font: 12px/18px var(--jx); color: #fff; white-space: nowrap; }
#jxwin .bcua-khung .bcua-cua:not(.co) .bcua-dat { color: #a89a80; }
#jxwin .bcua-khung .bcua-ra { position: absolute; right: 4px; top: 2px; font: bold 13px/16px var(--jx); font-style: normal; color: #fff27a; text-shadow: 1px 1px #000; }
#jxwin .bcua-khung .bcua-muc { white-space: nowrap; }
#jxwin .bcua-khung .bcua-nut { display: inline-block; padding: 0 7px; margin-left: 4px; border: 1px solid #7d6a3a; color: #e8dcc0; background: #2a2017; font: 13px/22px var(--jx); cursor: pointer; }
#jxwin .bcua-khung .bcua-nut:hover { color: #fffd7a; }
#jxwin .bcua-khung .bcua-nut.on { border-color: #ffd84e; color: #ffd84e; }
#jxwin .bcua-khung .bcua-day { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; white-space: nowrap; }
#jxwin .bcua-khung .bcua-tui b { font-weight: normal; color: #ffe48a; }
#jxwin .bcua-khung .bcua-kq { margin-top: 6px; padding-top: 4px; border-top: 1px solid #3e3020; color: #cfc3a6; font: 12px/18px var(--jx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#jxwin .bcua-khung .bcua-thang { color: #7fe06a; }
#jxwin .bcua-khung .bcua-thua { color: #ff8f66; }
/* biểu tượng Bầu Cua (anh 10/11 lần 3 "icon đặt mọi nơi" — hud.js setBauCua / dienthoai.js setBauCua, nhịp "bcua"): hiện từ 5 phút trước giờ mở
   tới hết giờ. Máy tính: ô 6 cột icon (xúc xắc) + chữ đếm ngược bên trái; điện thoại: thanh dưới nút Tự đánh. Bấm: bàn cược */
#jxhud .jx-mmbox > .jx-bcbtn { display: none; box-sizing: border-box; place-items: center; border: 1px solid #a5824a; background: radial-gradient(circle at 50% 35%, #6e2318, #2a0f0a 80%); cursor: pointer; }
#jxhud .jx-mmbox > .jx-bcbtn.hien { display: grid; }
#jxhud .jx-mmbox > .jx-bcbtn:hover { border-color: #ffd84e; }
#jxhud .jx-mmbox > .jx-bcbtn svg { display: block; width: 17px; height: 17px; }
#jxhud .jx-mmbox > .jx-bcchu { display: none; transform: translateX(-100%); white-space: nowrap; padding: 0 5px; font: 13px/17px var(--jx); color: #cfc3a6; background: #000b; border: 1px solid #6b5230; cursor: pointer; text-shadow: 1px 1px #000; }
#jxhud .jx-mmbox > .jx-bcchu.hien { display: block; }
#jxhud .jx-mmbox > .jx-bcchu.dat { color: #7fe06a; }
#dt .dt-bcua { right: 6px; top: 202px; height: 24px; min-width: 92px; box-sizing: border-box; display: none; align-items: center; justify-content: center; gap: 4px; padding: 0 6px;
  border: 1px solid #a5824a; background: linear-gradient(#3a1a12, #160907); color: #cfc3a6; font: 13px/22px var(--jx); text-shadow: 1px 1px 0 #000; white-space: nowrap; }
#dt .dt-bcua.hien { display: flex; }
#dt .dt-bcua.dat { color: #7fe06a; }
#dt .dt-bcua svg { flex: none; width: 16px; height: 16px; }
body.dt.dt-ngang #dt .dt-bcua { top: 158px; z-index: 1; }
@media (max-height: 387px) { body.dt.dt-ngang #dt .dt-bcua { top: 94px; right: 100px; } }
@media (max-height: 349px) { body.dt.dt-ngang #dt .dt-bcua { top: 100px; right: 106px; } }
body.dt.dt-ngang:not(.dt-gon):not(.dt-chat) #dt .dt-bcua.hien { display: none; }
/* Khóa an toàn — mật khẩu cấp 2 (anh 10/11 "Duyệt hết a" — src/game/khoaantoan.js): lớp riêng trên cùng trang (dùng cả ở màn chọn nhân vật), khung như
   bàn cược Bầu Cua (nền tối, viền ridge vàng, tiêu đề vàng); bàn phím số: hình + chỗ phím của client 数字键盘.ini (dải 3 khung: thường / nhấn / rê) */
#kat { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.35); font: 13px/19px var(--jx), Tahoma, sans-serif; }
#kat.on { display: flex; }
#kat .kat-hop { display: flex; flex-direction: column; align-items: stretch; width: min(320px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow: auto; box-sizing: border-box;
  background: #14100bf2; border: 2px ridge #a5824a; color: #e8dcc0; box-shadow: 0 6px 24px rgba(0,0,0,.6); }
#kat .kat-hop.kat-chiphim { width: auto; min-width: 214px; max-width: calc(100vw - 24px); align-items: center; }
#kat .kat-tieu { text-align: center; font: bold 15px/22px var(--jx), Tahoma, sans-serif; color: #ffd84e; border-bottom: 1px solid #6b5230; padding: 4px 10px 3px; align-self: stretch; }
#kat .kat-noi { padding: 6px 12px 2px; align-self: stretch; }
#kat .kat-chiphim .kat-noi { max-width: 236px; box-sizing: border-box; }
#kat .kat-noi > div + div { margin-top: 4px; }
#kat .kat-nho { color: #b9ad92; font-size: 12px; line-height: 17px; }
#kat .kat-loi { min-height: 18px; padding: 0 12px; color: #ff8f66; font-size: 12px; line-height: 17px; align-self: stretch; }
#kat .kat-loi:empty { min-height: 4px; }
#kat .kat-loi.tot { color: #7fe06a; }
#kat .kat-nuts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 4px 10px 10px; align-self: stretch; }
#kat .kat-nut { display: inline-block; padding: 0 10px; border: 1px solid #7d6a3a; color: #e8dcc0; background: #2a2017; font: 13px/24px var(--jx), Tahoma, sans-serif; cursor: pointer; white-space: nowrap; user-select: none; }
#kat .kat-nut:hover { color: #fffd7a; border-color: #ffd84e; }
#kat .kat-nut[data-k="ok"], #kat .kat-nut[data-k="dat"], #kat .kat-nut[data-k="mo"] { border-color: #ffd84e; color: #ffd84e; }
#kat .ban { opacity: .75; } #kat .ban .kat-nut:not([data-k="huy"]), #kat .ban .kat-pn:not([data-p="huy"]), #kat .ban .kat-o { pointer-events: none; } /* đang chờ máy chủ: vẫn Hủy được */
#kat .kat-form { margin: 6px 0 0; }
#kat .kat-form label { display: block; color: #cfc3a6; font-size: 12px; margin-top: 4px; }
#kat .kat-form input { margin-top: 2px; padding: 5px 8px; font: 14px/18px Tahoma, sans-serif; background: #0d0c0a; border: 1px solid #6a5a35; border-radius: 0; color: #fff; box-sizing: border-box; }
#kat .kat-form input:focus { outline: none; border-color: #ffd84e; }
#kat .kat-o { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding: 4px 8px; border: 1px solid #6a5a35; background: #0d0c0a; cursor: pointer; }
#kat .kat-o:hover { border-color: #ffd84e; }
#kat .kat-o span { color: #cfc3a6; font-size: 12px; }
#kat .kat-o b { font-weight: normal; color: #8a7f68; letter-spacing: 1px; }
#kat .kat-o.co b { color: rgb(255,253,122); letter-spacing: 3px; }
#kat .kat-tt { display: flex; align-items: center; gap: 8px; margin: 2px 0 4px; }
#kat .kat-ic { flex: none; width: 19px; height: 23px; background: url("../../assets/ui/hud/btn/khoa_mo.png") 0 0 no-repeat; }
#kat .kat-ic.dong { background-image: url("../../assets/ui/hud/btn/khoa_dong.png"); }
#kat .kat-chua { color: #ff8f66; font-weight: normal; } #kat .kat-mo { color: #7fe06a; font-weight: normal; } #kat .kat-khoa { color: #ffd84e; font-weight: normal; }
#kat .kat-phimw { display: flex; justify-content: center; padding: 4px 0 8px; }
#kat .kat-phim { position: relative; flex: none; background-repeat: no-repeat; }
#kat .kat-so { position: absolute; color: rgb(255,253,122); font: 16px/20px var(--jx), Tahoma, sans-serif; text-align: center; letter-spacing: 4px; text-shadow: 1px 1px 0 #000; pointer-events: none; }
#kat .kat-pn { position: absolute; background-repeat: no-repeat; background-position: 0 0; cursor: pointer; }
#kat .kat-pn:hover { background-position: calc(var(--w) * -2) 0; }
#kat .kat-pn:active { background-position: calc(var(--w) * -1) 0; }
#kat .kat-phim.tho { display: grid; grid-template-columns: repeat(3, 52px); gap: 4px; padding: 30px 8px 8px; background: #1b1610; border: 1px solid #6a5a35; }
#kat .kat-phim.tho .kat-so { left: 0; right: 0; top: 6px; }
#kat .kat-phim.tho .kat-pn { position: static; height: 38px; display: grid; place-items: center; border: 1px solid #6a5a35; background: #2a2017; color: #ffe48a; font: 16px var(--jx), Tahoma, sans-serif; }
@media (pointer: coarse) { #kat .kat-phim { zoom: 1.3; } #kat .kat-nut { line-height: 30px; } }
/* màn thấp (điện thoại ngang — rà soát 10/11): bàn phím cỡ gốc, bỏ dòng giải thích của khung chỉ bàn phím — nút Đồng ý / Hủy luôn trong màn hình */
@media (max-height: 480px) { #kat .kat-phim { zoom: 1; } #kat .kat-chiphim .kat-nho { display: none; } #kat .kat-chiphim .kat-noi { padding-top: 2px; } #kat .kat-phimw { padding: 2px 0 4px; } }
/* ổ khóa an toàn trên màn hình (anh 10/11 chọn trong 3 kiểu t120/anh/mau-khoa.jpg): máy tính — kiểu 1, sát trái bản đồ nhỏ (hud.js, đúng chỗ client);
   điện thoại dọc — dưới nút Tự đánh (thanh Bầu Cua dời xuống dưới ổ khóa); điện thoại ngang — kiểu 3, cạnh trái nút Mở rộng (mở trang chức năng: ẩn như
   nút Mở rộng). Hình client 19 × 23 phóng 1,3; vùng chạm rộng hơn hình */
#jxhud .jx-mmbox > .jx-katbtn { cursor: pointer; }
#jxhud .jx-mmbox > .jx-cot-ic { box-sizing: border-box; border: 1px solid rgba(140, 119, 72, .75); border-radius: 3px; background-color: rgba(10, 15, 13, .72); cursor: pointer; }
#jxhud .jx-mmbox > .jx-cot-ic:hover { filter: brightness(1.18); border-color: #ffd84e; }
#jxhud .jx-mmbox > .jx-tcbtn.tc-remind { animation: tcRemind 1.15s ease-in-out infinite; border-color: #ffd94e; }
#dt .dt-kat { right: 6px; top: 200px; width: 25px; height: 30px; cursor: pointer; z-index: 1; background: url("../../assets/ui/hud/btn/khoa_mo.png") 0 0 / 50px 30px no-repeat; filter: drop-shadow(0 0 1px #000); }
#dt .dt-kat::before { content: ""; position: absolute; inset: -6px -8px; }
#dt .dt-kat.dong { background-image: url("../../assets/ui/hud/btn/khoa_dong.png"); }
#dt .dt-kat.chua::after { content: ""; position: absolute; right: -3px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: rgb(230,40,40); box-shadow: 0 0 0 1px #000; }
body.dt:not(.dt-ngang) #dt .dt-bcua { top: 236px; }
body.dt.dt-ngang #dt .dt-kat { top: 10px; right: 152px; }
body.dt.dt-ngang:not(.dt-gon) #dt .dt-kat { display: none; }
@media (max-height: 387px) { body.dt.dt-ngang #dt .dt-kat { top: 8px; right: 146px; } }
/* Bầu Cua — Luật chơi (anh 10/11 lần 4 "cái giải thích bầu cua lỗi form" — baucua.js _luat): hiện trong bàn cược thay 6 cửa, nút Quay lại */
#jxwin .bcua-khung .bcua-luat { display: none; padding: 2px 0 0; }
#jxwin .bcua-khung.xem-luat .bcua-luat { display: block; }
#jxwin .bcua-khung.xem-luat .bcua-hang, #jxwin .bcua-khung.xem-luat .bcua-o, #jxwin .bcua-khung.xem-luat .bcua-muc, #jxwin .bcua-khung.xem-luat > .bcua-noi > .bcua-day, #jxwin .bcua-khung.xem-luat .bcua-kq { display: none; }
#jxwin .bcua-khung .bcua-luat p { margin: 6px 0 0; padding-left: 10px; text-indent: -10px; font: 13px/19px var(--jx); color: #e8dcc0; white-space: normal; }
#jxwin .bcua-khung .bcua-luat p::before { content: "• "; color: #ffd84e; }
#jxwin .bcua-khung .bcua-luat .bcua-day { margin-top: 8px; }

/* ấn ký bản gốc (src/game/an-ky.js — anh 11/11: logo Đồ Xanh + chữ ký Heo Búy + cảnh báo bản nhái). Anh chọn kiểu 2: màn đăng nhập logo trái,
   khung phải (màn hẹp / điện thoại dọc: logo trên, khung dưới; điện thoại ngang: chữ ký dưới logo) + trong game B: logo mờ góc phải (máy tính) */
.ak-logo { position: relative; z-index: 1; display: block; width: min(46vw, 620px); max-width: 92vw; object-fit: contain; pointer-events: none; user-select: none;
  -webkit-user-drag: none; filter: drop-shadow(0 6px 18px rgba(0,0,0,.55)); }
.ak-chan { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); width: min(980px, calc(100vw - 24px)); text-align: center; z-index: 1;
  font-size: 12px; line-height: 1.5; color: #e9dcc0; text-shadow: 0 1px 2px #000, 0 0 6px #000; user-select: text; }
.ak-chan b { color: #ffd36b; font-weight: 600; }
.ak-chan .ak-canh { color: #ff9b86; font-size: 11.5px; }
#s-login { flex-direction: row; gap: 3vw; }
#s-login #lg-form > h1 { display: none; }
/* màn nhỏ (anh 14/11 — điện thoại thấp: chữ "Tự nguyện…" dưới nút Ủng hộ đè lên dòng chữ ký): cả màn cuộn được, không phần nào nằm ngoài tầm
   với; lớp tối mờ ::before đứng yên theo màn hình lúc cuộn. Chỉ đổi bố cục — chữ ký / cảnh báo giữ nguyên chữ (an-ky.js) */
@media (max-width: 760px) and (min-height: 521px), (max-height: 520px) {
  #s-login { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
  #s-login::before { position: fixed; }
}
@media (max-width: 760px) and (min-height: 521px), (max-width: 500px) {
  /* dọc: logo — khung — chữ ký xếp theo dòng chảy (trước: chữ ký nằm tuyệt đối ở đáy, chừa cứng 72 px -> màn thấp / chữ to / dòng lỗi dài thì
     khung đè chữ ký). Đủ chỗ: khoảng trống chia đều trên logo và giữa khung - chữ ký, chữ ký sát đáy như cũ; thiếu chỗ: logo thu dần (tối
     thiểu 64 px), vẫn thiếu thì cuộn. Màn hẹp ≤ 500 px dù thấp (điện thoại dọc đang mở bàn phím ở trình duyệt trong app — Zalo, Facebook — co
     màn còn ~350 px) cũng xếp dọc: trước rơi vào kiểu ngang, logo + khung ép một hàng, chữ ký đè ô nhập */
  #s-login { flex-direction: column; justify-content: flex-start; gap: 0; padding: 8px 0 10px; }
  #s-login .ak-logo { width: min(62vw, 270px); margin: auto 0 -2px; flex: 0 1 auto; min-height: 64px; } /* màn dọc: logo nhỏ cho thấy ảnh nền (anh 11/11 tối) */
  #s-login > #lg-form { flex-shrink: 0; }
  #s-login > .ak-chan { position: relative; left: auto; bottom: auto; transform: none; flex-shrink: 0; margin-top: auto; padding-top: 10px; }
}
@media (max-height: 520px) and (min-width: 501px) {
  /* ngang: lưới 2 cột — trái: logo trên, chữ ký dưới (logo thu vừa phần còn lại, không đè chữ ký); phải: khung đăng nhập giữa màn, cao hơn màn
     thì cuộn. Trước: hàng flex, chữ ký nằm tuyệt đối góc trái dưới rộng 44vw — màn ngang thấp (máy thật trừ thanh địa chỉ ~290–340 px) chữ ký đè
     đáy logo, máy ngang hẹp < 664 px đè cả mép khung; khung cao hơn màn lòi cả trên lẫn dưới, không với tới */
  #s-login.on { display: grid; grid-template-columns: minmax(0, min(42vw, 400px)) minmax(0, 360px); grid-template-rows: minmax(0, 1fr) auto;
    gap: 0 2vw; justify-content: center; align-items: start; padding: 4px 0; }
  #s-login > .ak-logo { grid-area: 1 / 1; width: 100%; height: 100%; min-height: 0; }
  #s-login > #lg-form { grid-area: 1 / 2 / 3 / 3; width: auto; margin: auto 0; }
  #s-login > .ak-chan { grid-area: 2 / 1; position: relative; left: auto; bottom: auto; transform: none; width: auto; padding: 4px 4px 0; font-size: 9.5px; }
  #s-login > .ak-chan .ak-canh { font-size: 9px; }
}
/* màn thấp (màn hẹp ≤ 760 px cao ≤ 760 px, điện thoại ngang cao ≤ 460 px): khung đăng nhập gọn hơn — bớt lề trong / khoảng cách, chữ giữ nguyên */
@media (max-width: 760px) and (max-height: 760px), (max-height: 460px) {
  #s-login .login { padding: 18px 22px; }
  #s-login .lg-sv { margin-bottom: 10px; }
  #s-login .login label { margin-bottom: 8px; }
  #s-login .lg-note { margin-top: 8px; }
  #s-login .lg-ungho { margin-top: 10px; padding-top: 8px; }
}
/* màn chờ: logo nhỏ ở góc trên trái (anh 11/11 tối: giữa trên che mặt nhân vật trong tranh — "đưa cái này ra góc này") */
.ak-cho { display: none !important; }
@media (max-width: 760px) { .ak-cho { height: min(10vh, 84px); top: 8px; left: 8px; } }
.ak-ky-cho { margin-top: 8px; text-align: center; font-size: 11px; color: rgba(233,220,192,.85); text-shadow: 0 1px 2px #000; }
/* trong game: logo mờ góc phải trên thanh kỹ năng — dưới lớp giao diện (#jxhud z 3, khung cửa sổ đè lên), không chặn bấm; điện thoại không hiện */
.ak-goc { display: none; position: fixed; right: 16px; bottom: 112px; width: 110px; opacity: .5; z-index: 2; pointer-events: none; user-select: none; }
#hud.on ~ .ak-goc { display: block; }
body.dt .ak-goc { display: none !important; }
/* khóa màn hình ngang trên điện thoại: khi cầm dọc hiện thông báo xoay ngang */
.xoay-ngang { display: none; position: fixed; inset: 0; z-index: 2147483646; background: rgba(8,10,12,.96); color: #f1e6cc;
  align-items: center; justify-content: center; padding: 24px; text-align: center; }
.xoay-ngang .xn-box { max-width: 360px; background: rgba(20,24,27,.95); border: 1px solid rgba(201,154,74,.6); border-radius: 12px; padding: 24px 20px; }
.xoay-ngang h2 { margin: 0 0 10px; font-size: 18px; color: #f3cf7a; }
.xoay-ngang p { margin: 0 0 16px; font-size: 13px; color: #cfc6b4; line-height: 1.5; }
/* @media (orientation: portrait) {
  html.dt-bat .xoay-ngang { display: flex; }
} */
/* màn chặn khi ấn ký bản gốc bị gỡ / sửa (an-ky.js voKy) */
.ak-vo { position: fixed; inset: 0; z-index: 2147483647; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(6,7,8,.94); color: #f1e6cc; text-align: center; font-size: 15px; line-height: 1.6; }
.ak-vo > div { max-width: 640px; border: 1px solid rgba(201,154,74,.6); border-radius: 10px; padding: 24px 28px; background: rgba(20,18,14,.92); }
.ak-vo h2 { color: #ff8a6a; margin: 0 0 12px; font-size: 20px; }
.ak-vo b, .ak-vo a { color: #ffd36b; }

/* Popup Đồ họa (mở kế bên bảng Tùy chọn — làm game nét hơn như bản gốc jxwebvn) */
#gfx-pop { display: none; position: fixed; z-index: 10; width: 256px; max-width: calc(100vw - 16px); box-sizing: border-box;
  background: linear-gradient(180deg, rgba(24,28,26,.96), rgba(12,15,14,.97)); border: 2px solid #8fae9f;
  box-shadow: 0 0 0 1px #000, 0 8px 26px rgba(0,0,0,.85); border-radius: 4px; padding: 8px 10px;
  font: 13px/16px var(--jx); color: #ece4d4; pointer-events: auto; }
#gfx-pop.on { display: block; }
#gfx-pop .gfx-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 5px; margin-bottom: 7px;
  border-bottom: 1px solid #4e6a5f; color: #ffe48a; font-weight: 700; font-size: 14px; }
#gfx-pop .gfx-x { cursor: pointer; padding: 0 5px; color: #cfbf9a; font-style: normal; }
#gfx-pop .gfx-x:hover { color: #fff; }
#gfx-pop .gfx-row { margin-bottom: 8px; }
#gfx-pop .gfx-lbl { display: flex; justify-content: space-between; color: #cfe9dc; margin-bottom: 3px; font-size: 12.5px; }
#gfx-pop .gfx-lbl b { color: #ffe48a; font-weight: normal; }
#gfx-pop select { width: 100%; padding: 4px 6px; background: #0d1210; color: #f5ebd2; border: 1px solid #6f8f80; border-radius: 3px; font: 12.5px/16px var(--jx); }
#gfx-pop input[type="range"] { width: 100%; accent-color: #d9a441; cursor: pointer; }
#gfx-pop .gfx-chk { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; cursor: pointer; color: #e2dccb; font-size: 12.5px; }
#gfx-pop .gfx-chk input { width: auto; accent-color: #d9a441; }
#gfx-pop .gfx-foot { display: flex; justify-content: space-between; gap: 6px; margin-top: 8px; }
#gfx-pop button { flex: 1; padding: 4px 8px; font: 12.5px/16px var(--jx); color: #ffe48a; background: linear-gradient(#2c3d35, #141e1a); border: 1px solid #6f8f80; border-radius: 3px; cursor: pointer; }
#gfx-pop button:hover { border-color: #ffe48a; filter: brightness(1.15); }
#gfx-pop .gfx-fbtns { display: flex; gap: 6px; }
#gfx-pop .gfx-fbtns button.on { border-color: #ffd94e; background: linear-gradient(180deg, #3c6b58, #1d4235); color: #fff4b8; box-shadow: 0 0 6px rgba(255,217,78,.45); font-weight: bold; }

/* bảng quản trị → Cấu hình (src/game/qt-cauhinh.js — anh 11/11): cột mục bên trái, ô sửa bên phải */
/* thẻ Cấu hình lấp đầy thân bảng: dòng nút trên cùng cố định, cột mục + trang sửa cuộn riêng bên dưới (trước: thân bảng cuộn + 2 cột cuộn — 2 thanh cuộn chồng nhau) */
.dv.qt > .dv-body > .qch { height: 100%; display: flex; flex-direction: column; }
.qch-tren { flex: none; }
.qch-giua { display: flex; gap: 8px; align-items: stretch; flex: 1 1 auto; min-height: 0; }
.qch button { white-space: nowrap; }
.qch-o.doc { flex-direction: column; gap: 1px; }
.qch-o.doc > .qch-k { flex-basis: auto; color: #b8dccb; }
.qch-o.doc > .qch-v { width: 100%; }
.qch-nhom .qch-k { flex-basis: 160px; } /* 17/11 lần 2: nhãn con giờ là chữ tiếng Việt (dài hơn tên khóa) — 110 -> 160, khung hẹp vẫn 110 */
@media (max-width: 620px) { .qch-nhom .qch-k { flex-basis: 110px; } }
.qch-dong .qch-k { flex-basis: 90px; }
.qch-mon .r { flex-wrap: nowrap; }
.qch-mon-ten { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.qch-trai { flex: 0 0 190px; min-height: 0; overflow: auto; border-right: 1px solid #3c6e58; padding-right: 6px; }
.qch-trai input { width: 100%; margin-bottom: 4px; }
.qch-m { padding: 3px 4px; cursor: pointer; border-bottom: 1px solid rgba(60,110,88,.35); font: 12px/14px var(--font); position: relative; }
.qch-m b { color: #e8f4ee; font-weight: normal; display: block; }
.qch-m small { color: #8fb8a4; display: block; font-size: 10.5px; line-height: 12px; }
.qch-m:hover { background: rgba(31,74,58,.35); }
.qch-m.on { background: #1f4a3a; }
.qch-m.on b { color: rgb(255,217,78); }
.qch-dau { position: absolute; right: 3px; top: 3px; font-style: normal; color: rgb(255,217,78); font-size: 10px; }
.qch-dau.qt-do { right: 14px; color: #ff8a7a; }
.qch-phai { flex: 1; min-width: 0; min-height: 0; overflow: auto; }
.qch-tieu { color: rgb(255,217,78); margin: 2px 0 4px; }
.qch-ghi { white-space: pre-wrap; margin: 2px 0 6px; }
.qch-hl { font: 12px/16px var(--font); margin: 0 0 4px; } /* mục lưu là ăn ngay / cần khởi động lại / cần F5 (soát 14/11) */
.qch-h { color: rgb(255,217,78); margin: 10px 0 3px; font: 13px/15px var(--jx); border-bottom: 1px solid rgba(60,110,88,.5); padding-bottom: 2px; }
.qch-o { display: flex; gap: 6px; align-items: flex-start; padding: 2px 0; border-bottom: 1px dotted rgba(60,110,88,.35); }
.qch-k { flex: 0 0 170px; color: #9fc9b5; font: 12px/18px var(--font); word-break: break-word; }
.qch-k small { display: block; color: #7d9e8f; font-size: 10.5px; line-height: 12px; }
.qch-v { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.qch-v > input:not([type="checkbox"]):not(.qch-so), .qch-v > textarea { flex: 1; min-width: 160px; }
.qch-so { width: 110px; }

/* bảng quản trị F10 — soát 17/11 (anh: "xem lại bố cục kích thước các tab … tránh vỡ form … lúc dùng dt thao tác bảng admin có lệch form hay k") */
/* hàng thẻ: tiêu đề + ✕ dòng trên, 12 thẻ lưới đều 6 cột bên dưới (trước xuống hàng tự do: dòng dưới lẻ 2 thẻ + ✕); khung hẹp / điện thoại 4 cột */
.dv.qt .qt-tabs { flex-basis: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; margin-top: 2px; } /* bản chia sẻ: 8 thẻ, 4 + 4 */
.dv.qt .qt-tabs .dv-tab { min-width: 0; overflow: hidden; text-overflow: ellipsis; padding: 3px 4px; }
/* thẻ Khảm nạm (src/game/qt-khamnam.js): cột nhãn cố định, số bên phải */
.qkn-so { display: grid; gap: 3px; margin: 6px 0; }
/* bản chia sẻ Võ Lâm Idle - HuyHuyy: câu cảm ơn ở màn đăng nhập + chọn nhân vật (ẩn trên giao diện mobile / APK) */
.lg-chiase { margin-top: 10px; padding: 8px 10px; border: 1px solid rgba(255, 211, 107, .35); border-radius: 4px; background: rgba(0, 0, 0, .35); color: #ffd36b; font-size: 13px; line-height: 1.45; text-align: center; }
.cs-chiase { margin: 6px auto 0; max-width: 640px; padding: 6px 12px; border: 1px solid rgba(255, 211, 107, .35); border-radius: 4px; background: rgba(0, 0, 0, .45); color: #ffd36b; font-size: 13px; line-height: 1.45; text-align: center; }
html.dt-bat .lg-chiase, html.dt-bat .cs-chiase,
body.dt .lg-chiase, body.dt .cs-chiase { display: none !important; }
@media (max-width: 900px), (pointer: coarse) {
  .lg-chiase, .cs-chiase { display: none !important; }
}
/* F10 → Tìm món (anh 18/11 tối — src/game/qt-timmon.js) */
.qtm .r input[data-in="q"] { width: 210px; }
.qtm-kq { border: 1px solid #24443a; max-height: calc(100vh - 300px); overflow: auto; margin: 4px 0; }
.qtm-r { display: grid; grid-template-columns: 110px 110px 92px minmax(0, 1.3fr) minmax(0, 1.4fr); gap: 6px; padding: 2px 6px; align-items: baseline; }
.qtm-r:nth-child(odd) { background: rgba(31,74,58,.15); }
.qtm-r.dau { color: #9fc9b5; position: sticky; top: 0; background: #0e2620; z-index: 1; }
.qtm-r > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qtm-r .mn { color: #8fb8ff; cursor: help; border-bottom: 1px dotted currentColor; }
.qtm-r .mx { color: rgb(255,217,78); }
.qtm-r .ng-x { color: #ff6b5b; font-weight: bold; } .qtm-r .ng-qt { color: rgb(255,217,78); } .qtm-r .ng-cu { color: #8a9a92; }
.qtm-tr { margin: 6px 0; } .qtm-tr b { color: #ff6b5b; }
@media (max-width: 760px) { .qtm-r { grid-template-columns: 80px 80px minmax(0, 1fr); } .qtm-r .no, .qtm-r .ng { display: none; } }
.qkn-so > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.qkn .k { color: #9fc9b5; }
.qkn-tt b { color: #fff; font-weight: normal; margin-right: 8px; }
/* khung hẹp (điện thoại dọc / cửa sổ hẹp): thẻ 4 cột; Người chơi: Tài khoản | Nhân vật | IP dòng trên, Trạng thái cả dòng dưới (trước 4 cột cố định 120 / 240 / 112 điểm:
   cột Nhân vật bị ép còn 1 chữ mỗi dòng, IP tràn ra ngoài bảng); Cấu hình: cột mục lên trên (thấp lại), ô sửa hẹp lại cho vừa (trước ô số lòi ra mép phải) */
@media (max-width: 620px) {
  .dv.qt .qt-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dv.qt .qt-row { grid-template-columns: 92px minmax(0, 1fr) 88px; row-gap: 1px; }
  .dv.qt .qt-row .c3 { grid-column: 1 / -1; grid-row: 2; white-space: normal; }
  .dv.qt .qt-row .c4 { grid-column: 3; grid-row: 1; }
  .qch-giua { flex-direction: column; }
  .qch-trai { flex: none; width: 100%; max-height: 150px; border-right: 0; border-bottom: 1px solid #3c6e58; padding: 0 0 4px; }
  .qch-phai { width: 100%; flex: 1 1 auto; }
  .qch-k { flex-basis: 128px; }
  .qch-so { width: 92px; }
  .qch-v > input:not([type="checkbox"]):not(.qch-so), .qch-v > textarea { min-width: 0; }
  .qkn-so > div { grid-template-columns: 104px minmax(0, 1fr); }
}
body.dt .dv.qt .qt-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.qch-mac { color: #e0b46a; font-size: 10.5px; }
/* danh sách món / các dòng chiếm trọn hàng, "mặc định" xuống 1 dòng riêng bên dưới (anh 14/11: chữ mặc định đè lên các dòng món) */
.qch-v > .qch-mon, .qch-v > .qch-dongs { flex: 1 1 100%; }
.qch-v > .qch-mac.dong, .qch-v > .qch-dongs + .qch-mac { flex: 0 0 100%; word-break: break-word; }
.qch-bat { display: inline-flex; align-items: center; gap: 3px; color: #e8f4ee; }
/* Cấu hình → Quà & thưởng (anh 17/11 lần 2 — src/game/qt-qua.js): nút ← Quay lại, danh sách nguồn quà, bảng có tiêu đề cột, danh sách số có nhãn, số dễ đọc */
.qch-lui { margin: 0 0 4px; }
.qch-lui button { color: rgb(255,217,78); }
.qch-qua { display: flex; gap: 8px; align-items: baseline; padding: 3px 0; border-bottom: 1px dotted rgba(60,110,88,.35); font: 12px/16px var(--font); color: #b8dccb; }
.qch-qua > button { flex: 0 0 180px; text-align: left; overflow: hidden; text-overflow: ellipsis; }
.qch-qua > span { flex: 1; min-width: 0; }
.qch-doc { color: #7d9e8f; font-size: 10.5px; white-space: nowrap; }
.qch-doc:empty { display: none; }
.qch-them { margin-top: 8px; }
.qch-v > .qch-bang-w, .qch-v > .qch-sonhan, .qch-v > .qch-tong, .qch-v > .qch-bang-them, .qch-v > .qch-mon { flex: 1 1 100%; }
.qch-bang-w { max-width: 100%; overflow-x: auto; }
.qch-bang { border-collapse: collapse; font: 12px/16px var(--font); }
.qch-bang th { color: #9fc9b5; font-weight: normal; text-align: left; padding: 1px 6px 2px 2px; border-bottom: 1px solid rgba(60,110,88,.5); white-space: nowrap; }
.qch-bang td { padding: 2px 6px 2px 2px; border-bottom: 1px dotted rgba(60,110,88,.35); vertical-align: middle; white-space: nowrap; }
.qch-bang td input[type="number"] { width: 96px; }
.qch-bang td input:not([type]) { width: 120px; }
.qch-bang .qch-mon-ten { display: inline-block; vertical-align: middle; color: #e8f4ee; max-width: 280px; }
.qch-bang .qch-1trong { white-space: normal; max-width: 360px; }
.qch-bang .qch-loai { color: rgb(255,217,78); }
.qch-bang .qch-x { padding: 0 5px; }
.qch-bang-tong td { color: #b8dccb; border-bottom: 0; }
.qch-sonhan { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 3px 10px; }
.qch-sonhan label { display: flex; align-items: center; gap: 4px; min-width: 0; }
.qch-sonhan span { color: #9fc9b5; font: 12px/16px var(--font); flex: 0 0 auto; min-width: 48px; }
.qch-sonhan input { width: 70px; min-width: 0; }
.qch-tong { color: #b8dccb; font-size: 11px; }
@media (max-width: 620px) {
  .qch-qua { flex-wrap: wrap; }
  .qch-qua > button { flex: 1 1 100%; }
  .qch-sonhan { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .qch-bang td input[type="number"] { width: 78px; }
}
.qch-nhom { flex: 1; min-width: 0; border-left: 2px solid rgba(60,110,88,.45); padding-left: 6px; }
.qch-dongs { flex: 1; min-width: 0; }
.qch-dong { border: 1px solid rgba(60,110,88,.55); padding: 2px 6px; margin: 4px 0; background: rgba(31,74,58,.12); }
.qch-mon { flex: 1; min-width: 0; }
.qch-mon .r { margin: 2px 0; }
.qch-mon-ten { color: #e8f4ee; min-width: 150px; }
.qch-mon small { color: #7d9e8f; }
.qch-tim { display: flex; flex-wrap: wrap; gap: 3px; margin: 3px 0; }
.dv textarea { font: 12px/15px var(--font); padding: 3px 5px; border-radius: 2px; background: #0b1512; border: 1px solid #3c6e58; color: #fff; resize: vertical; }
.qch-json { width: 100%; min-height: 260px; font-family: Consolas, monospace !important; }
.dv .loi, .dv textarea.loi { border-color: #ff8a7a !important; }
.qch-nut { position: sticky; bottom: 0; background: rgba(12,26,22,.96); padding: 4px 0; margin-top: 8px; border-top: 1px solid #3c6e58; }
.qch-nut button:disabled { opacity: .45; cursor: default; }
.qch-phai-o { border-bottom: 1px dotted rgba(60,110,88,.45); padding: 1px 0; }
.qch-chieu { margin-left: 18px; }
.qch-chieu .qch-k { flex-basis: 200px; }
.qch-ls { border-bottom: 1px dotted rgba(60,110,88,.45); padding: 3px 0; font: 12px/15px var(--font); color: #e8f4ee; }
.qch-ls div { color: #9fc9b5; font-size: 11px; margin-left: 10px; word-break: break-word; }
/* Người chơi → Xem hoạt động (src/game/qt-hoatdong.js) */
.qhd-ds { max-height: 360px; overflow: auto; }
/* điện thoại (anh 18/11 — "xem hoạt động bị kẹt, không kéo xuống được"): vùng nhìn thấy của bảng F10 chỉ ~250 điểm, danh sách 360 / 220 điểm che hết chỗ vuốt —
   vuốt chỉ cuộn danh sách, bảng ngoài đứng im. Danh sách thấp hơn vùng nhìn thấy, luôn còn chỗ (dòng lọc, tiêu đề) để vuốt bảng ngoài */
body.dt .qhd-ds { max-height: max(140px, calc(100vh - 340px)); }
body.dt .qt-ds { max-height: max(120px, calc(100vh - 330px)); }
.qhd-dong { display: flex; gap: 6px; align-items: baseline; padding: 2px 0; border-bottom: 1px dotted rgba(60,110,88,.35); font: 12px/15px var(--font); color: #e8f4ee; }
.qhd-dong > span:last-child { word-break: break-word; }
.qhd-loai { flex: 0 0 auto; font-style: normal; color: #8fb8ff; min-width: 74px; }
.qhd-mua, .qhd-ktc, .qhd-xu { color: #ffb36b; } .qhd-ban { color: #7ee07e; } .qhd-nhat { color: #9fc9b5; } .qhd-nhan, .qhd-hiem { color: rgb(255,217,78); } .qhd-gd, .qhd-cho { color: #e8a0ff; } .qhd-huy, .qhd-dung { color: #ff8a7a; }
.qhd-nv { color: #9fc9b5; flex: 0 0 auto; }
/* thanh nhắc tải lại trang (main.js thanhTl — bắt cả máy chủ F5 / có bản mới) */
.tl-bao { position: fixed; z-index: 9500; top: 6px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 16px);
  padding: 6px 10px; background: rgba(20,16,8,.94); border: 1px solid #c99a4a; border-radius: 4px; color: rgb(255,217,78); font: 13px/16px var(--jx); box-shadow: 0 4px 16px rgba(0,0,0,.6); }
.tl-bao span { flex: 1; }
.tl-bao button { font: 12px/12px var(--jx); padding: 4px 8px; border-radius: 2px; background: #2a2010; border: 1px solid #c99a4a; color: #fff; white-space: nowrap; }
.tl-bao .tl-x { padding: 4px 6px; }
/* thanh kéo của bảng quản trị / công cụ (.dv — anh 11/11: "mấy cái thanh kéo màu trắng a không thích, làm đồng bộ màu khác"): màu viền xanh của bảng trên
   nền tối; Chrome / Edge / Firefox dùng scrollbar-color (có thì bỏ qua ::-webkit-scrollbar), Safari dùng ::-webkit-scrollbar */
.dv, .dv * { scrollbar-width: thin; scrollbar-color: #3c6e58 #0b1512; }
.dv ::-webkit-scrollbar { width: 9px; height: 9px; }
.dv ::-webkit-scrollbar-track, .dv ::-webkit-scrollbar-corner { background: #0b1512; }
.dv ::-webkit-scrollbar-thumb { background: #3c6e58; border: 2px solid #0b1512; border-radius: 5px; }
.dv ::-webkit-scrollbar-thumb:hover { background: #5f9c82; }

/* nút Mua lại ở khung cửa hàng (lượt 88 — windows.js _shop; anh chọn mẫu B 13/11): hoa văn tròn giữa nút Sửa và Đóng tự sáng khi rê / đang mở; số món còn mua lại
   được ở góc dưới phải như số chồng của ô đồ (trắng viền đen), 0 món thì ẩn */
.jw-mualai { position: absolute; left: 132px; top: 373px; width: 21px; height: 21px; border-radius: 50%; cursor: pointer; z-index: 2; }
.jw-mualai:hover, .jw-mualai.on { backdrop-filter: brightness(1.6) saturate(1.3); -webkit-backdrop-filter: brightness(1.6) saturate(1.3); }
.jw-mualai i { position: absolute; left: 11px; top: 11px; font: 13px/13px var(--jx); font-style: normal; color: #fff; white-space: nowrap; pointer-events: none;
  text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000, 1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000; }
.jw-mualai i:empty { display: none; }
/* bảng chỉ số: kháng thật cộng thêm khi vượt trần ("75%+1%" — windows.js khangO, anh 13/11 "số 1 màu xanh lá như client") */
.kh-du { color: rgb(0, 255, 0); }
.jw-ml-trong { position: absolute; left: 0; right: 0; top: 46%; text-align: center; color: #c9b27a; font: 12px/16px var(--jx); text-shadow: 1px 1px 0 #000; pointer-events: none; }

/* ---------- Bang phái — Bang hội đợt 1 (anh 14/11, src/game/windows.js _faction / _bhPhu; khung client 帮会主窗口.ini + cong-cu/dung-khung-bang-hoi.mjs) ---------- */
/* nút của đợt sau: xám (bấm vẫn được — báo "Đợt sau mới mở"); nút "?" bật: chế độ hỏi, con trỏ dấu hỏi trên cả khung */
#jxwin .bh-xam { filter: grayscale(1) brightness(.72); }
#jxwin .jw.bh-hoi, #jxwin .jw.bh-hoi * { cursor: help !important; }
#jxwin .bh-note { font: 13px/16px var(--jx); color: rgb(255,237,165); z-index: 3; }
#jxwin .bh-trong { padding: 6px 4px; color: #9aa79f; font: 12px/15px var(--jx); white-space: normal; text-align: center; }
/* danh sách thành viên (MemberList 212 × 340, dòng 14): Hạng (cấp) · Tên · Chức vị — cột theo tiêu đề TxtRank / TxtTitle / TxtType của ini */
#jxwin .bh-tvds { pointer-events: auto; }
#jxwin .bh-tv { display: flex; text-align: left; cursor: pointer; }
#jxwin .bh-tv span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#jxwin .bh-tv span:nth-child(1) { width: 40px; flex: 0 0 40px; text-align: center; }
#jxwin .bh-tv span:nth-child(2) { width: 84px; flex: 0 0 84px; padding-left: 14px; box-sizing: border-box; }
#jxwin .bh-tv span:nth-child(3) { flex: 1 1 auto; padding-left: 4px; }
/* danh sách đơn xin vào (ApplyerList, dòng 16 = chữ 13 + RowInterval 3): tên trái, cấp phải như tiêu đề "Tên gamer xin gia nhập … Đẳng cấp" */
#jxwin .bh-don { pointer-events: auto; }
#jxwin .bh-don-d { display: flex; justify-content: space-between; height: 16px; line-height: 16px; padding: 0 22px 0 10px; cursor: pointer; white-space: nowrap; }
#jxwin .bh-don-d span { overflow: hidden; text-overflow: ellipsis; }
#jxwin .bh-don-d b { font-weight: normal; }
/* ô chữ nhiều dòng (tin chiêu mộ, công cáo): chữ trái, tự xuống dòng, không kéo giãn, cuộn bằng bánh xe / nút kéo của client */
#jxwin .bh-ta { text-align: left; resize: none; white-space: pre-wrap; word-break: break-word; overflow-y: auto; scrollbar-width: none; padding: 2px 4px; font: 13px/15px var(--jx); }
#jxwin .bh-ta::-webkit-scrollbar { display: none; }
#jxwin .bh-ta:disabled, #jxwin .jw-num:disabled { opacity: .85; cursor: default; }
/* Ký lục: công cáo / sự kiện / lịch sử (RecordList_List 541 × 310) */
#jxwin .bh-kl { pointer-events: auto; color: rgb(218,255,165); text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000; }
#jxwin .bh-kl-d { padding: 1px 4px; line-height: 15px; white-space: normal; word-break: break-word; }
#jxwin .bh-kl-d i { font-style: normal; color: rgb(255,237,165); margin-right: 4px; }
#jxwin .bh-cc-xem { padding: 2px 4px; line-height: 15px; white-space: normal; word-break: break-word; }
/* chiêu mộ của bang khác: tên / tin 1 dòng cắt "…"; tin nhắn / hoạt động nhiều dòng cắt theo ô */
#jxwin .bh-oz-1 { white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis; }
#jxwin .bh-oz-n { white-space: normal !important; overflow: hidden !important; word-break: break-word; }
/* khung Danh sách bang (帮会列表窗口.ini): tên bang, dòng 16 */
#jxwin .bh-dsb { pointer-events: auto; text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000; }
#jxwin .bh-dsb-d { line-height: 16px; padding-left: 4px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#jxwin .bh-dsb-d:hover { filter: brightness(1.25); }
/* menu sắp xếp / khuynh hướng / hoạt động: mục của đợt sau xám */
.jx-menu.bh-menu .xam { color: #6f7a74; }
.jx-menu.bh-menu small { color: #6f7a74; font: inherit; }
body.dt .jx-menu.bh-menu { font: 15px/15px var(--jx); }
body.dt .jx-menu.bh-menu div { padding: 9px 16px; }
/* lời mời vào bang ở ô tin hệ thống / bảng cạnh biểu tượng: tên bang xanh nhạt như tên người ở bảng điện thoại */
#jxhud .jx-sys .moi .bh, #jxhud .jx-moip .moi .bh { color: #9fd8ff; }
/* thời gian chờ sau khi rời bang (trang chiêu mộ của bang khác — máy chủ cho) */
#jxwin .bh-cho { font: 12px/13px var(--jx); color: rgb(255,170,110); }
/* ô số cấp tự nhận / từ chối (trang Chiêu mộ): nền tối che đường "______" vẽ sẵn của câu */
#jxwin .bh-so { background: rgba(0,0,0,.72); border-bottom: 1px solid rgba(255,237,165,.45); }
/* F10 → thẻ Bang hội (src/game/qt-banghoi.js): khoảng cách cột bảng */
.qbh td { padding: 1px 8px 1px 0; vertical-align: top; }

/* ---------- Bang hội đợt 2 (anh 14/11 — HOP-DONG-DOT-2 mục 10; windows.js _faction, qt-banghoi.js) ---------- */
/* trang Tác phường: ô biểu tượng trong khung trống của nền (x 10–308, y 22–248). Mẫu A: lưới 4 + 3 hình client 33 × 33 + tên + cấp; mẫu B: danh sách 7 dòng
   hình nhỏ. Đang chọn: viền vàng; loại đợt sau: mờ; dưới cùng: tóm tắt tác phường đang chọn (3 dòng) */
#jxwin .bh-tp { position: absolute; left: 10px; top: 22px; width: 298px; height: 226px; box-sizing: border-box; pointer-events: auto; background: radial-gradient(ellipse at 50% 40%, rgb(34,36,30), rgb(14,15,12) 75%);
  font: 13px/14px var(--jx); color: rgb(255,237,165); text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000; }
#jxwin .bh-tp-o { cursor: pointer; box-sizing: border-box; }
#jxwin .bh-tp-o i { display: block; width: 33px; height: 33px; background-size: 33px 33px; background-repeat: no-repeat; }
#jxwin .bh-tp-o span, #jxwin .bh-tp-o b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: normal; }
#jxwin .bh-tp-o b { color: rgb(218,139,77); }
#jxwin .bh-tp-o:hover i { filter: brightness(1.2); }
#jxwin .bh-tp-o.on i { outline: 1px solid rgb(255,217,78); box-shadow: 0 0 6px rgba(255,217,78,.85); }
#jxwin .bh-tp-o.on span { color: rgb(255,253,122); }
#jxwin .bh-tp-o.xa { opacity: .5; }
#jxwin .bh-tp-o.bh-tp-dung b { color: rgb(255,255,0); }
#jxwin .bh-tp-o.bh-tp-dong b { color: rgb(255,110,90); }
#jxwin .bh-tp-a { display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; padding-top: 8px; column-gap: 2px; row-gap: 4px; }
#jxwin .bh-tp-a .bh-tp-o { width: 72px; height: 64px; display: flex; flex-direction: column; align-items: center; padding-top: 2px; text-align: center; }
#jxwin .bh-tp-a .bh-tp-o span { margin-top: 3px; max-width: 72px; }
#jxwin .bh-tp-a .bh-tp-o b { max-width: 72px; }
#jxwin .bh-tp-b { padding: 4px 6px 0; }
#jxwin .bh-tp-b .bh-tp-o { display: flex; align-items: center; height: 21px; gap: 6px; padding: 0 2px; }
#jxwin .bh-tp-b .bh-tp-o i { width: 19px; height: 19px; background-size: 19px 19px; flex: 0 0 19px; }
#jxwin .bh-tp-b .bh-tp-o span { width: 92px; flex: 0 0 92px; }
#jxwin .bh-tp-b .bh-tp-o b { flex: 1 1 auto; }
#jxwin .bh-tp-b .bh-tp-o.on { background: rgba(110,110,90,.45); }
#jxwin .bh-tp-ct { position: absolute; left: 6px; right: 4px; bottom: 3px; height: 45px; overflow: hidden; color: rgb(218,255,165); }
#jxwin .bh-tp-ct div { line-height: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* thẻ Ký lục → Mục tiêu tuần: tiêu đề mục (ini curWeekDesc / lastWeekDesc), thanh tiến độ cả bang */
#jxwin .bh-mt-t { padding: 4px 4px 1px; color: rgb(153,255,255); }
#jxwin .bh-mt-thanh { display: inline-block; width: 120px; height: 7px; margin-left: 6px; vertical-align: middle; border: 1px solid rgba(255,237,165,.55); background: rgba(0,0,0,.55); }
#jxwin .bh-mt-thanh i { display: block; height: 100%; background: linear-gradient(#e8c25a, #a57a22); }
/* cửa hàng Lễ phẩm: món chưa đổi được (chưa đủ cấp Khu Lễ vật / hết lượt tuần) */
#jxwin .jw-it.bh-lp-mo { opacity: .45; filter: grayscale(.7); }
/* F10 → Bang hội: khối Quỹ, dòng con của thành viên (cống hiến theo nguồn / xóa cống hiến) */
.qbh-quy { border: 1px solid #24443a; padding: 3px 6px; margin: 4px 0; }
.qbh-quy > div { margin: 2px 0; }
.qbh-quy .k { color: #ffd94e; margin-right: 6px; }
.qbh tr.qbh-con td { padding: 2px 0 4px 18px; color: #cfd8d3; font-size: 11px; background: rgba(255,255,255,.03); }

/* ---------- Lôi Đài Công Bình Tử (anh 15/11 — src/game/loidai.js ve, mẫu B anh chọn): thanh tỉ số giữa trên — GIÁP (tím hồng) · ô từng tuyển thủ (sáng = còn) · số |
   đồng hồ + pha | số · ô · ẤT (xanh lục); dòng sân · thể thức · bên của bạn · người xem; 2 tin hạ gần nhất; nút Rời sân (chỉ nút bấm được). Máy tính top 24 (dưới dải
   trên); điện thoại ngang top 2 (giữa ô nhân vật và hàng nút phải), dọc top 116 (dưới tên bãi); 16 vs 16 ô hẹp (.c16 — điện thoại từ 5 vs 5 chỉ số) ---------- */
#ldtt { position: fixed; z-index: 3; left: 50%; top: 24px; transform: translateX(-50%); pointer-events: none; text-align: center; white-space: nowrap; font: 13px/16px var(--jx); color: #e9e3cf; text-shadow: 1px 1px 0 #000; }
#ldtt .b0 { color: #ff92ff; } #ldtt .b1 { color: #55ff91; }
#ldtt .bang { display: inline-flex; align-items: stretch; background: rgba(0,0,0,.62); border: 1px solid #6b5a2e; box-shadow: 0 0 0 1px #000; }
#ldtt .ben { display: flex; align-items: center; gap: 7px; padding: 3px 10px; min-width: 150px; }
#ldtt .ben.p { justify-content: flex-end; }
#ldtt .ben b { font: 16px/18px "VK Sans Serif 16", monospace; font-weight: normal; letter-spacing: 1px; }
#ldtt .ben em { font: 22px/24px "VK Sans Serif 16", monospace; font-style: normal; color: #fff; min-width: 16px; }
#ldtt .pip { display: flex; gap: 2px; } #ldtt .pip u { display: block; width: 8px; height: 12px; background: #3a3a3a; box-shadow: 0 0 0 1px #000; }
#ldtt.c16 .pip u { width: 5px; } #ldtt.c16 .pip { gap: 1px; }
#ldtt .giua { padding: 2px 14px 3px; border-left: 1px solid #5a4a26; border-right: 1px solid #5a4a26; background: rgba(40,28,8,.55); min-width: 74px; }
#ldtt .gio { font: 22px/24px "VK Sans Serif 16", monospace; color: #ffd54a; letter-spacing: 1px; }
#ldtt .pha { font-size: 12px; line-height: 13px; color: #c9b27a; }
#ldtt .phu { margin-top: 2px; font-size: 12px; line-height: 15px; color: #c9b27a; }
#ldtt .k { max-width: 460px; margin: 0 auto; overflow: hidden; text-overflow: ellipsis; font-size: 12px; line-height: 15px; }
#ldtt .roi { margin-top: 3px; }
#ldtt .nut { pointer-events: auto; display: inline-block; cursor: pointer; padding: 0 12px; border: 1px solid #8a6d2e; background: rgba(70,45,12,.85); color: #ffd54a; font: 13px/17px var(--jx); text-shadow: 1px 1px 0 #000; }
#ldtt .nut:hover { background: rgba(110,70,18,.95); color: #fff1b0; }
body.dt #ldtt { top: 2px; font-size: 11px; line-height: 13px; } body.dt #ldtt .ben { min-width: 0; padding: 1px 6px; gap: 4px; }
body.dt #ldtt .ben b { font-size: 13px; line-height: 15px; } body.dt #ldtt .ben em, body.dt #ldtt .gio { font-size: 17px; line-height: 19px; }
body.dt #ldtt .pip u { width: 5px; height: 9px; } body.dt #ldtt .giua { padding: 1px 8px; min-width: 56px; } body.dt #ldtt .pha, body.dt #ldtt .phu { font-size: 10px; line-height: 12px; }
body.dt #ldtt .k, body.dt #ldtt.c16 .pip { display: none; } /* điện thoại: tin hạ đã có ở khung tin bên trái; từ 5 vs 5 chỉ số người (.c16 — loidai.js ve) */
body.dt:not(.dt-ngang) #ldtt { top: 116px; }
/* điện thoại (soát 16/11 — thanh rộng đè bản đồ nhỏ / hàng bùa; ngang mở hàng icon thì đè Toàn màn + thẻ đầu): rộng tối đa tới sát cột bản đồ nhỏ như #btg / #snh, dòng
   phụ cắt "…"; hàng tỉ số luôn ở giữa (rộng hơn khung — cỡ giao diện 100% — thì tràn đều 2 bên, không lệch sang bản đồ nhỏ); ngang mở hàng icon (dt-hang): top 70 như #btg */
body.dt #ldtt { max-width: calc(var(--vw100, 100vw) - 200px); } body.dt #ldtt .phu { overflow: hidden; text-overflow: ellipsis; }
body.dt #ldtt .bang { display: flex; width: max-content; margin-left: 50%; transform: translateX(-50%); }
body.dt.dt-ngang.dt-hang #ldtt { top: 70px; }
/* đang ở sân (--ld-day = đáy thanh + 6 — loidai.js datDay; ngoài sân 0): bảng boss thế giới + dòng thông báo của quản trị xuống dưới thanh */
#btg { top: max(46px, var(--ld-day, 0px)); }
body.dt #btg { top: max(116px, var(--ld-day, 0px)); }
body.dt.dt-ngang #btg { top: max(70px, var(--ld-day, 0px)); }
/* Săn Nhím / Phong Hỏa cũng dưới thanh tỉ số (soát E2E 15/11: #snh đè lên thanh) */
#snh, #phtt:not(.b2) { top: max(46px, var(--btg-day, 0px), var(--ld-day, 0px)); }
body.dt #snh { top: max(116px, var(--btg-day, 0px), var(--ld-day, 0px)); }
body.dt.dt-ngang #snh { top: max(70px, var(--btg-day, 0px), var(--ld-day, 0px)); }
body.dt #phtt:not(.b2) { top: max(116px, var(--ld-day, 0px)); }
body.dt.dt-ngang #phtt:not(.b2) { top: max(70px, var(--ld-day, 0px)); }
.qt-loa { top: max(92px, var(--btg-day, 0px), var(--ld-day, 0px), var(--bsat-day, 0px)); }
/* kết quả lôi đài (windows.js ketQuaLoiDai — khung 排名, cửa sổ "ldkq"; dùng chung bk-dau / bk-tieu của kết quả boss thế giới) */
#jxwin .ldk-h { display: flex; justify-content: space-between; margin: 3px 0 2px 4px; padding: 0 4px 1px 0; border-bottom: 1px solid #5a5340; color: rgb(255,253,122); white-space: nowrap; }
#jxwin .ldk-ben { margin: 3px 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 1px 1px 0 #000; }
#jxwin .ldk-r { display: flex; justify-content: space-between; gap: 6px; padding: 0 4px; height: 16px; line-height: 16px; white-space: nowrap; }
#jxwin .ldk-r span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#jxwin .ldk-to { margin: 4px 0 2px 4px; font: 20px/22px "VK Sans Serif 16", monospace; text-shadow: 1px 1px 0 #000; }
#jxwin .ldk-d { padding-left: 4px; line-height: 16px; }
#jxwin .ldk-xam { color: #8f8a7e; }
#jxwin .ldk-dem { margin-top: 4px; color: #c9b27a; }
/* F10 → Lôi đài (qt-loidai.js): dòng tuyển thủ dưới mỗi sân */
.qld tr.qld-ng td { padding: 0 0 4px; color: #cfd8d3; font-size: 11px; }
/* tỉ thí (anh 17/11 — main.js ttChon / ttHien; anh chọn mẫu C): bảng chọn câu khịa cạnh chỗ bấm (điện thoại: giữa màn) + thẻ CHIẾN THƯ giữa phía trên, thanh đếm ngược */
#ttChon { position: fixed; z-index: 8; left: 50%; top: 80px; width: 430px; max-width: calc(100vw - 16px); box-sizing: border-box; background: rgba(8,14,12,.95); border: 1px solid #3c6e58;
  box-shadow: 0 0 0 1px #000, 0 6px 18px rgba(0,0,0,.7); font: 13px/16px var(--jx); color: #fff; }
#ttChon .dau { padding: 4px 10px; color: rgb(255,217,78); border-bottom: 1px solid #3c6e58; display: flex; justify-content: space-between; gap: 8px; }
#ttChon .dau .x { cursor: pointer; color: #9aa79f; padding: 0 2px; } #ttChon .dau .x:hover { color: #fff; }
#ttChon .ds { max-height: min(470px, calc(100vh - 120px)); overflow: auto; }
#ttChon .c { padding: 3px 10px 3px 30px; cursor: pointer; position: relative; border-bottom: 1px dotted rgba(60,110,88,.35); }
#ttChon .c b { position: absolute; left: 8px; top: 3px; color: #8fb8a4; font-weight: normal; }
#ttChon .c:hover { background: #1f4a3a; color: rgb(255,217,78); }
#ttChon .c.ng { color: #7dd8ff; }
#ttChon .chan { padding: 4px 10px; color: #9aa79f; border-top: 1px solid #3c6e58; font-size: 12px; line-height: 15px; }
#ttC { position: fixed; z-index: 8; left: 50%; top: 96px; transform: translateX(-50%); width: 480px; max-width: calc(100vw - 16px); box-sizing: border-box; padding: 8px 16px 10px; text-align: center;
  background: linear-gradient(rgba(46,12,6,.96), rgba(16,9,5,.96)); border: 1px solid #a8742c; box-shadow: 0 0 0 1px #000, 0 0 22px rgba(255,70,30,.35);
  font: 13px/17px var(--jx); color: #e9e3cf; text-shadow: 1px 1px 0 #000; }
#ttC .tieu { font: 22px/26px "VK Sans Serif 16", monospace; color: #ff6a3c; letter-spacing: 4px; text-shadow: 0 0 8px rgba(255,70,30,.7), 1px 1px 0 #000; }
#ttC .ai { margin-top: 2px; color: #c9b27a; } #ttC .ai span { color: #7dd8ff; }
#ttC .cau { margin: 8px 0 6px; padding: 6px 10px; font-size: 15px; line-height: 20px; color: #ffd54a; border-top: 1px solid #5a3a1a; border-bottom: 1px solid #5a3a1a; word-break: break-word; }
#ttC .luat { font-size: 12px; line-height: 15px; color: #c9b27a; }
#ttC .gio { margin: 7px auto 0; width: 300px; max-width: 90%; height: 6px; background: #2a1a10; box-shadow: 0 0 0 1px #000; }
#ttC .gio i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff4a2a, #ffb43a); }
#ttC .giay { font-size: 12px; color: #c9b27a; margin-top: 2px; }
#ttC .nut { margin-top: 7px; display: flex; gap: 14px; justify-content: center; }
#ttC .tt-nut { display: inline-block; cursor: pointer; padding: 1px 16px; border: 1px solid #8a6d2e; background: rgba(70,45,12,.9); color: #ffd54a; font: 14px/19px var(--jx); text-shadow: 1px 1px 0 #000; user-select: none; }
#ttC .tt-nut:hover { background: rgba(110,72,20,.95); }
#ttC .tt-nut.do { border-color: #6b3a2a; background: rgba(50,20,12,.9); color: #e9c3a8; }
#ttC[data-ban] .tt-nut { opacity: .5; cursor: default; }
#ldtt .phu .st { color: #ffd54a; }
/* điện thoại: bảng câu giữa màn (chạm trúng dễ), thẻ chiến thư hẹp lại, nút to */
body.dt #ttChon { left: 8px !important; right: 8px; top: 40px !important; width: auto; max-width: none; font-size: 14px; line-height: 18px; }
body.dt #ttChon .c { padding: 7px 10px 7px 32px; } body.dt #ttChon .c b { top: 7px; }
body.dt #ttChon .ds { max-height: calc(100vh - 110px); }
body.dt #ttC { top: 40px; padding: 6px 10px 8px; }
body.dt #ttC .tieu { font-size: 18px; line-height: 22px; letter-spacing: 3px; }
body.dt #ttC .cau { margin: 5px 0 4px; padding: 4px 6px; font-size: 14px; line-height: 18px; }
body.dt #ttC .tt-nut { padding: 6px 22px; font-size: 15px; }
/* poster sự kiện lúc vào game (anh 17/11 — src/game/poster.js): nền tối, ảnh vừa màn hình, X nhỏ góc phải trên + ô "Không hiển thị lại hôm nay" ở dải dưới (ảnh chừa trống);
   .to = phóng to cỡ thật, kéo / cuộn để xem */
.poster { position: fixed; inset: 0; z-index: 8000; background: rgba(0,0,0,.66); display: flex; align-items: center; justify-content: center; }
.poster .pt-khung { position: relative; max-width: 96vw; max-height: 94vh; line-height: 0; }
.poster img { display: block; max-width: 96vw; max-height: 94vh; width: auto; height: auto; cursor: zoom-in; border: 1px solid #a8742c; box-shadow: 0 0 0 1px #000, 0 10px 40px rgba(0,0,0,.8); user-select: none; -webkit-user-select: none; }
.poster .pt-x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer;
  background: rgba(60,12,8,.88); border: 1px solid #e0b060; color: #ffe9b0; font: 16px/16px var(--jx); box-shadow: 0 0 0 1px #000; line-height: 1; }
.poster .pt-x:hover { background: rgba(120,24,14,.95); color: #fff; }
.poster .pt-duoi { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 14px; align-items: center; white-space: nowrap; padding: 5px 12px;
  background: rgba(0,0,0,.6); border: 1px solid rgba(224,176,96,.6); border-radius: 4px; font: 13px/16px var(--jx); color: #ffe9b0; text-shadow: 1px 1px 0 #000; line-height: 16px; }
.poster .pt-an { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.poster .pt-an input { width: 15px; height: 15px; margin: 0; accent-color: #c8902c; cursor: pointer; }
.poster .pt-goi { color: #c9b27a; font-size: 12px; }
.poster.to { align-items: flex-start; justify-content: flex-start; }
.poster.to .pt-khung { max-width: none; max-height: none; width: 100vw; height: 100vh; overflow: auto; -webkit-overflow-scrolling: touch; }
.poster.to img { max-width: none; max-height: none; cursor: zoom-out; border: 0; }
.poster.to .pt-x, .poster.to .pt-duoi { position: fixed; }
.poster.to .pt-goi::after { content: " — kéo để xem, bấm để thu nhỏ"; }
.poster.to .pt-khung { touch-action: none; overscroll-behavior: contain; cursor: grab; } /* kéo / vuốt dời ảnh (poster.js — anh 17/11) */
.poster.to .pt-khung.keo, .poster.to .pt-khung.keo img { cursor: grabbing; }
.poster.to img { cursor: grab; }
body.dt .poster .pt-x { width: 36px; height: 36px; font-size: 18px; top: 6px; right: 6px; }
body.dt .poster .pt-duoi { font-size: 13px; gap: 10px; padding: 6px 10px; bottom: 8px; }
body.dt .poster .pt-goi { font-size: 11px; }

/* ---------- khung Nhân vật / xem người khác (anh 17/11 — windows.js _suaNen, soiDo mẫu B): tiêu đề phủ lên chữ "Hướng dẫn hoạt động" in sẵn trong hình nền client,
   nhãn "Xếp hạng" thay chữ "Xếp hàng" in sai; trang Thuộc tính của khung xem người khác: bảng thông tin chung phủ phần chỉ số ---------- */
#jxwin .jw-td { position: absolute; left: 61px; top: 5px; width: 196px; height: 25px; z-index: 2; pointer-events: none; text-align: center; white-space: nowrap;
  font: 15px/24px "VK Sans Serif 16", var(--jx); color: #fff; text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000; will-change: transform; }
#jxwin .jw-xh { position: absolute; left: 199px; top: 53px; width: 57px; height: 17px; box-sizing: border-box; padding-right: 3px; z-index: 1; pointer-events: none; text-align: right;
  font: 13px/17px var(--jx); color: rgb(201,215,163); }
#jxwin .soi-phu { position: absolute; left: 0; top: 78px; width: 314px; height: 278px; z-index: 3; background: #151714; pointer-events: none; }
#jxwin .soi-tt { position: absolute; left: 10px; top: 96px; width: 294px; z-index: 4; box-sizing: border-box; padding: 10px 12px 12px; background: rgba(0,0,0,.45); border: 1px solid #4a4430;
  font: 13px/16px var(--jx); color: #e9e3cf; text-shadow: 1px 1px 0 #000; pointer-events: none; }
#jxwin .soi-bang { display: grid; grid-template-columns: 84px 1fr; gap: 8px 6px; }
#jxwin .soi-bang > span:nth-child(odd) { color: #a9d3be; }
#jxwin .soi-bang img { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; image-rendering: pixelated; }
#jxwin .soi-bang .vang { color: rgb(255,217,78); } #jxwin .soi-bang .lam { color: #9fd8ff; }
#jxwin .soi-chu { margin-top: 14px; text-align: center; font-size: 12px; color: #8f8a78; }
#jxwin .soi-chua { display: flex; align-items: center; justify-content: center; height: 100%; padding: 4px; box-sizing: border-box; text-align: center; font: 12px/14px var(--jx); color: #8f8a78; }
#jxwin .soi-pet-phu { position: absolute; left: 0; top: 0; width: 314px; height: 356px; z-index: 3; background: #151714; pointer-events: none; }
#jxwin .soi-pet { position: absolute; left: 6px; top: 6px; width: 302px; height: 344px; z-index: 4; display: flex; flex-direction: column; gap: 5px; box-sizing: border-box; padding: 6px; background: rgba(0,0,0,.48); border: 1px solid #4a4430; font: 12px/15px var(--jx); color: #e9e3cf; text-shadow: 1px 1px 0 #000; }
#jxwin .soi-pet-empty { margin: auto; padding: 14px; text-align: center; color: #9ab0a2; border: 1px dashed #4a4430; background: rgba(0,0,0,.35); }
#jxwin .soi-p-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 3px 6px; background: rgba(0,0,0,.45); border: 1px solid #3f4a3c; }
#jxwin .soi-p-k1 { display: flex; align-items: center; gap: 4px; min-width: 0; flex: 1; }
#jxwin .soi-p-k1 span, #jxwin .soi-p-k2 span { color: #a9d3be; }
#jxwin .soi-p-k1 b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#jxwin .soi-p-k1 em { font-style: normal; font-size: 10px; color: #b7c8bc; border: 1px solid #4d5f53; padding: 0 3px; border-radius: 2px; }
#jxwin .soi-p-k2 b { color: #ffd94e; }
#jxwin .soi-p-k3 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 4px 8px; background: rgba(12,18,15,.72); border: 1px solid #3f4a3c; font-size: 11.5px; }
#jxwin .soi-p-k3 > div { display: flex; justify-content: space-between; }
#jxwin .soi-p-k3 span { color: #a9d3be; } #jxwin .soi-p-k3 b { color: #ffd94e; }
#jxwin .soi-p-k4 { flex: 1; min-height: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: radial-gradient(ellipse at bottom, rgba(46,66,52,.55), rgba(8,12,10,.88) 78%); border: 1px solid #4a5646; }
#jxwin .soi-p-k4 img { max-width: 68px; max-height: 68px; object-fit: contain; }
#jxwin .soi-p-k4 span { font-size: 10.5px; color: #9fd8ff; }
#jxwin .soi-p-skrow { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 5px; background: rgba(0,0,0,.42); border: 1px solid #3f4a3c; }
#jxwin .soi-p-k5 { flex: none; padding-right: 6px; border-right: 1px dashed #405044; }
#jxwin .soi-p-k6 { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; justify-items: center; }
#jxwin .soi-p-sk { position: relative; width: 38px; height: 38px; display: grid; place-items: center; padding: 2px; box-sizing: border-box; border: 1px solid #594e32; background: #0a0f0c; text-align: center; overflow: hidden; cursor: default; }
#jxwin .soi-p-sk.main { width: 42px; height: 42px; border-color: #d4b25c; }
#jxwin .soi-p-sk.has { border-color: #ffd94e; background: radial-gradient(circle, #213027, #0a0f0c); }
#jxwin .soi-p-sk span { font-size: 8.5px; line-height: 1.08; color: #ffe680; word-break: break-word; padding-bottom: 8px; }
#jxwin .soi-p-sk.main span { color: #7dff8a; padding-bottom: 0; font-size: 9px; }
#jxwin .soi-p-sk b { position: absolute; bottom: 0; left: 0; right: 0; font-size: 8px; line-height: 10px; background: rgba(255,217,78,.88); color: #000; }
#jxwin .soi-p-sk em { font-style: normal; font-size: 9px; color: #5b6d61; }
#jxwin .soi-p-k7 { display: flex; flex-direction: column; gap: 4px; padding: 4px 5px; background: rgba(0,0,0,.45); border: 1px solid #3f4a3c; }
#jxwin .soi-p-eqh { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; color: #ffe699; }
#jxwin .soi-p-eqgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; justify-items: center; }
#jxwin .soi-p-eq { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #6b5d39; background: #090d0b; box-sizing: border-box; overflow: hidden; }
#jxwin .soi-p-eq.has { border-color: #e6b83a; background: radial-gradient(circle, rgba(64,50,18,.55), #090d0b); cursor: pointer; }
#jxwin .soi-p-eq img { width: 24px; height: 24px; object-fit: contain; }
#jxwin .soi-p-eq em { font-style: normal; font-size: 8px; color: #5b6d61; line-height: 1; text-align: center; }

/* ---------- Bách Khoa Võ Lâm (src/game/bachkhoa.js — CSS thuần Dark Jade & Gold) ---------- */
#bk-pop { position: fixed; inset: 0; z-index: 32; display: grid; place-items: center; background: rgba(0,0,0,.55); padding: 12px; box-sizing: border-box; }
#bk-pop .bk-box { width: min(860px, 100%); height: min(556px, calc(100vh - 76px)); display: flex; flex-direction: column;
  background: linear-gradient(180deg, #18221d 0%, #0d1310 100%); border: 1.5px solid #b59449; border-radius: 7px; overflow: hidden;
  box-shadow: 0 0 0 1px #000, 0 14px 36px rgba(0,0,0,.92); font: 13px/18px "VK Sans Serif 13", "IBM Plex Mono", monospace; color: #bce0cd; text-shadow: 1px 1px 0 #000; }
#bk-pop .bk-dau { flex: none; position: relative; height: 36px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #27362e, #151d19); border-bottom: 1px solid #6b582c; font: bold 14px/20px var(--jx); letter-spacing: .6px; color: #ffe699; }
#bk-pop .bk-x { position: absolute; right: 8px; top: 5px; width: 25px; height: 25px; padding: 0; border: 1px solid #9e6b48; border-radius: 4px;
  background: linear-gradient(180deg, #422723, #241311); color: #ffe48a; font: bold 17px/22px var(--jx); cursor: pointer; }
#bk-pop .bk-x:hover { filter: brightness(1.22); border-color: #ffd94e; }
#bk-pop .bk-tim { flex: none; padding: 8px 12px; border-bottom: 1px solid #35473e; background: rgba(15,20,17,.9); }
#bk-pop .bk-inp { width: 100%; height: 30px; box-sizing: border-box; padding: 0 10px; border: 1px solid #4e6659; border-radius: 4px;
  background: #0b0f0d; color: #fff; font: 13px/28px "VK Sans Serif 13", monospace; outline: none; user-select: text; }
#bk-pop .bk-inp:focus { border-color: #d6b665; }
#bk-pop .bk-than { flex: 1; min-height: 0; display: flex; }
#bk-pop .bk-trai { width: 245px; flex: none; overflow-y: auto; border-right: 1px solid #45594d; padding: 6px 8px; background: rgba(17,22,19,.8); scrollbar-width: thin; scrollbar-color: #4b6e5d #111613; }
#bk-pop .bk-nhom { color: #ffd94e; font: bold 12.5px/18px var(--jx); margin: 8px 0 3px; padding: 2px 4px; border-bottom: 1px solid #38493f; }
#bk-pop .bk-nhom:first-child { margin-top: 2px; }
#bk-pop .bk-muc { padding: 4px 6px; border-radius: 3px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #b9d7c6; }
#bk-pop .bk-muc:hover { background: rgba(42,60,50,.65); color: #fff; }
#bk-pop .bk-muc.on { background: linear-gradient(90deg, rgba(46,78,66,.95), rgba(29,48,40,.92)); color: #ffe89a; border-left: 2px solid #ffd94e; }
#bk-pop .bk-phai { flex: 1; min-width: 0; overflow-y: auto; padding: 12px 16px; scrollbar-width: thin; scrollbar-color: #4b6e5d #111613; }
#bk-pop .bk-phai p { margin: 2px 0 6px; }
#bk-pop .bk-phai ul { margin: 2px 0 6px; padding-left: 18px; }
#bk-pop .bk-mo { color: #a9b8af; padding: 14px 8px; text-align: center; }
@media (max-width: 600px) {
  #bk-pop .bk-than { flex-direction: column; }
  #bk-pop .bk-trai { width: auto; height: 150px; border-right: 0; border-bottom: 1px solid #45594d; }
}

/* ---------- Popup Sự Kiện (src/game/sukien.js — gọn gàng, sắc nét) ---------- */
#sk-pop { position: fixed; inset: 0; z-index: 32; display: grid; place-items: center; background: rgba(0,0,0,.58); padding: 8px; box-sizing: border-box; }
#sk-pop .sk-box { width: min(600px, calc(100vw - 36px)); height: min(390px, calc(100vh - 24px)); display: flex; flex-direction: column;
  background: linear-gradient(180deg, #18221d 0%, #0d1310 100%); border: 1.5px solid #b59449; border-radius: 7px; overflow: hidden;
  box-shadow: 0 0 0 1px #000, 0 12px 30px rgba(0,0,0,.92); font: 12px/16px "VK Sans Serif 13", "IBM Plex Mono", monospace; color: #bce0cd; text-shadow: 1px 1px 0 #000; }
#sk-pop .sk-dau { flex: none; position: relative; height: 30px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #27362e, #151d19); border-bottom: 1px solid #6b582c; font: bold 13px/18px var(--jx); letter-spacing: .5px; color: #ffe699; }
#sk-pop .sk-x { position: absolute; right: 6px; top: 4px; width: 22px; height: 22px; padding: 0; border: 1px solid #9e6b48; border-radius: 4px;
  background: linear-gradient(180deg, #422723, #241311); color: #ffe48a; font: bold 15px/20px var(--jx); cursor: pointer; }
#sk-pop .sk-x:hover { filter: brightness(1.22); border-color: #ffd94e; }
#sk-pop .sk-than { flex: 1; min-height: 0; display: flex; }
#sk-pop .sk-k1 { width: 152px; flex: none; overflow-y: auto; border-right: 1px solid #45594d; padding: 6px; background: rgba(17,22,19,.84); display: flex; flex-direction: column; gap: 5px; }
#sk-pop .sk-k1-t { color: #ffd94e; font: bold 11.5px/16px var(--jx); padding: 1px 4px 3px; border-bottom: 1px solid #39483e; }
#sk-pop .sk-item { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border: 1px solid #394b40; border-radius: 5px; background: rgba(24,33,28,.86); cursor: pointer; }
#sk-pop .sk-item:hover { border-color: #6f947f; background: rgba(33,47,40,.92); }
#sk-pop .sk-item.on { border-color: #d6b665; background: linear-gradient(90deg, rgba(46,78,66,.92), rgba(29,48,40,.92)); box-shadow: inset 0 0 0 1px rgba(255,217,78,.25); }
#sk-pop .sk-item.sk-thuong { margin-top: auto; border-color: #7c6738; background: rgba(34,29,18,.86); }
#sk-pop .sk-item b { display: block; font: bold 11.5px/14px var(--jx); color: #fff3cc; }
#sk-pop .sk-k2 { flex: 1; min-width: 0; overflow-y: auto; padding: 6px 9px; display: flex; flex-direction: column; gap: 5px; scrollbar-width: none; }
#sk-pop .sk-k2::-webkit-scrollbar { display: none; }
#sk-pop .sk-k2-dau { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding-bottom: 4px; border-bottom: 1px solid #3c4f44; }
#sk-pop .sk-k2-dau b { display: block; font: bold 13px/16px var(--jx); color: #ffe699; }
#sk-pop .sk-k2-dau span { display: block; font: 10.5px/13.5px var(--jx); color: #b5c9bd; margin-top: 1px; }
#sk-pop .sk-tt { flex: none; font-style: normal; font: bold 11px/15px var(--jx); padding: 2px 7px; border-radius: 4px; border: 1px solid; }
#sk-pop .sk-tt.mo { color: #8aff9a; border-color: #4ca365; background: rgba(24,58,36,.85); }
#sk-pop .sk-tt.dong { color: #ff9c7a; border-color: #9e5440; background: rgba(58,24,20,.85); }
#sk-pop .sk-nl-ds { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; width: 82%; margin: 0 auto; }
#sk-pop .sk-nl { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 3px 2px; border: 1px solid #39483e; border-radius: 4px; background: rgba(14,19,16,.85); text-align: center; }
#sk-pop .sk-nl img { width: 18px; height: 18px; object-fit: contain; image-rendering: auto; }
#sk-pop .sk-nl span { font: 9.5px/11px var(--jx); }
#sk-pop .sk-nl b { font: bold 11px/12px var(--jx); color: #fff; }
#sk-pop .sk-ct-ds { display: flex; flex-direction: column; gap: 5px; }
#sk-pop .sk-ct { padding: 5px 7px; border: 1px solid #44584c; border-radius: 5px; background: rgba(18,24,21,.88); }
#sk-pop .sk-ct-dau { display: flex; align-items: center; gap: 8px; }
#sk-pop .sk-ct-dau img { width: 28px; height: 28px; flex: none; object-fit: contain; image-rendering: auto; }
#sk-pop .sk-ct-info { flex: 1; min-width: 0; }
#sk-pop .sk-ct-info b { display: block; font: bold 12.5px/15px var(--jx); color: #ffe89a; }
#sk-pop .sk-ct-info span { display: block; font: 11px/14px var(--jx); color: #c3d6cb; }
#sk-pop .sk-ct-info em { font-style: normal; }
#sk-pop .sk-ct-act { flex: none; display: flex; align-items: center; gap: 5px; }
#sk-pop .sk-sls { display: flex; gap: 2px; }
#sk-pop .sk-sl { padding: 3px 5px; border: 1px solid #465a4f; border-radius: 3px; background: #121815; color: #b5c9bd; font: 11px/13px var(--jx); cursor: pointer; }
#sk-pop .sk-sl.on { border-color: #d6b665; background: #2d3c2e; color: #ffe89a; }
#sk-pop .sk-go { padding: 4px 10px; border: 1px solid #88bfa8; border-radius: 4px; background: linear-gradient(180deg, #2d6f5d, #194439); color: #ffe99d; font: bold 11.5px/15px var(--jx); cursor: pointer; }
#sk-pop .sk-go:hover { filter: brightness(1.15); border-color: #ffd94e; }
#sk-pop .sk-go.thieu { opacity: .6; border-color: #5b665f; background: #232a26; }
#sk-pop .sk-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; padding-left: 36px; }
#sk-pop .sk-fix { font: 11px/14px var(--jx); color: #9fc4b0; }
#sk-pop .sk-chip { padding: 2px 7px; border: 1px solid #3f5046; border-radius: 3px; background: #121714; color: #9ab0a3; font: 11px/14px var(--jx); cursor: pointer; }
#sk-pop .sk-chip.on { border-color: var(--hc, #ffd94e); color: var(--hc, #ffe89a); background: rgba(38,54,44,.9); }
@media (max-width: 560px) {
  #sk-pop .sk-than { flex-direction: column; }
  #sk-pop .sk-k1 { width: auto; max-height: 96px; border-right: 0; border-bottom: 1px solid #45594d; }
  #sk-pop .sk-nl-ds { grid-template-columns: repeat(3, 1fr); }
  #sk-pop .sk-ct-dau { flex-wrap: wrap; }
  #sk-pop .sk-chips { padding-left: 0; }
}
/* Báo danh hằng ngày (gọn vừa 7x4 không bị bè + icon sắc nét) */
#sk-pop .bd-wrap { display: flex; flex-direction: column; justify-content: space-between; gap: 5px; height: 100%; min-height: 0; }
#sk-pop .bd-grid { flex: none; margin: auto 0 0; display: grid; grid-template-columns: repeat(7, minmax(40px, 50px)); grid-auto-rows: 42px; gap: 4px; justify-content: center; overflow-y: auto; scrollbar-width: none; }
#sk-pop .bd-grid::-webkit-scrollbar { display: none; }
#sk-pop .bd-o { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 2px 2px;
  border: 1px solid #3c4f44; border-radius: 4px; background: rgba(16,22,19,.88); }
#sk-pop .bd-o.nay { border: 1.5px solid #ffd94e; background: linear-gradient(180deg, rgba(46,72,56,.95), rgba(22,38,29,.95)); box-shadow: 0 0 6px rgba(255,217,78,.4); cursor: pointer; }
#sk-pop .bd-o.nay:hover { filter: brightness(1.14); }
#sk-pop .bd-o.cho { opacity: .65; }
#sk-pop .bd-ng { position: absolute; left: 3px; top: 1px; font: bold 9.5px/11px var(--jx); color: #d8cdb0; z-index: 1; }
#sk-pop .bd-o img.bd-ic { width: 22px; height: 22px; object-fit: contain; image-rendering: auto; }
#sk-pop .bd-o img.bd-mark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 32px; height: 32px; object-fit: contain; pointer-events: none; z-index: 2; filter: drop-shadow(0 0 3px rgba(0,0,0,.9)); }
#sk-pop .bd-sl { position: absolute; right: 3px; bottom: 1px; font: bold 9.5px/11px var(--jx); color: #7dff8a; text-shadow: 1px 1px 0 #000; z-index: 1; }
#sk-pop .bd-mid { flex: none; display: flex; justify-content: center; }
#sk-pop .bd-bu-btn { padding: 3px 14px; border: 1px solid #d6b665; border-radius: 4px; background: linear-gradient(180deg, #3a6f59, #1d4435); color: #ffe99d; font: bold 11.5px/15px var(--jx); cursor: pointer; }
#sk-pop .bd-bu-btn:hover:not(:disabled) { filter: brightness(1.14); border-color: #ffd94e; }
#sk-pop .bd-bu-btn.dis, #sk-pop .bd-bu-btn:disabled { opacity: .55; cursor: default; border-color: #4f5f56; background: #1e2521; color: #9ab0a3; }
#sk-pop .bd-k3 { flex: none; display: flex; align-items: center; gap: 10px; padding: 5px 8px; border: 1px solid #586b5e; border-radius: 5px; background: linear-gradient(180deg, #1b241f, #101613); }
#sk-pop .bd-k3-trai { flex: none; min-width: 104px; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
#sk-pop .bd-k3-trai span { font: 10.5px/13px var(--jx); color: #c7d9ce; }
#sk-pop .bd-k3-trai b { font: bold 14px/16px var(--jx); color: #ffe699; }
#sk-pop .bd-btn { margin-top: 2px; padding: 2px 8px; border: 1px solid #ffd94e; border-radius: 3px; background: linear-gradient(180deg, #2d6f5d, #194439); color: #ffe99d; font: bold 11px/14px var(--jx); cursor: pointer; }
#sk-pop .bd-k3-phai { flex: 1; min-width: 0; position: relative; padding-top: 1px; }
#sk-pop .bd-track { position: absolute; left: 8%; right: 8%; top: 17px; height: 6px; border-radius: 3px; border: 1px solid #5a4a26; background: #0a0d0b; overflow: hidden; }
#sk-pop .bd-track > i { display: block; height: 100%; background: linear-gradient(90deg, #32946d, #ffd94e); }
#sk-pop .bd-mocs { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 0 4%; }
#sk-pop .bd-moc { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 2px 4px; border: 1px solid transparent; border-radius: 4px; background: none; cursor: pointer; }
#sk-pop .bd-moc img { width: 28px; height: 28px; object-fit: contain; image-rendering: auto; }
#sk-pop .bd-moc span { min-width: 18px; padding: 0 3px; border-radius: 8px; border: 1px solid #8c7748; background: #1d231f; color: #ffe48a; font: bold 10px/13px var(--jx); text-align: center; }
#sk-pop .bd-moc.du { border-color: #ffd94e; background: rgba(78,66,28,.45); box-shadow: 0 0 6px rgba(255,217,78,.55); animation: lpHom .8s ease-in-out infinite alternate; }
#sk-pop .sk-moc.da, #sk-pop .bd-moc.da { opacity: .78; }
#sk-pop .sk-closed { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 32px; border: 1px dashed #5d6c5f; border-radius: 6px; background: rgba(12,18,15,.85); text-align: center; }
#sk-pop .sk-closed b { font: bold 14px/18px var(--jx); color: #ffe699; }
#sk-pop .sk-closed span { font: bold 13px/18px var(--jx); color: #ff9c7a; }
#sk-pop .sk-rw-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; scrollbar-width: none; }
#sk-pop .sk-rw-list::-webkit-scrollbar { display: none; }
#sk-pop .sk-rw-empty { margin: auto; color: #9db0a4; font-size: 12px; }
#sk-pop .sk-rw-row { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid #3a4b41; border-radius: 4px; background: rgba(16,22,19,.88); }
#sk-pop .sk-rw-row.du { border-color: #d6b665; background: rgba(34,54,42,.9); }
#sk-pop .sk-rw-row.da { opacity: .68; }
#sk-pop .sk-rw-mc { flex: none; min-width: 82px; font: bold 11.5px/15px var(--jx); color: #ffd94e; }
#sk-pop .sk-rw-v { flex: none; width: 22px; height: 20px; display: flex; align-items: center; justify-content: center; }
#sk-pop .sk-rw-v img { width: 20px; height: 20px; object-fit: contain; }
#sk-pop .sk-rw-qt { flex: 1; min-width: 0; font: 11px/14px var(--jx); color: #d5e4db; }
#sk-pop .sk-rw-btn { flex: none; min-width: 78px; padding: 3px 8px; border-radius: 4px; border: 1px solid #4d5d53; background: #1e2521; color: #9db0a4; font: bold 10.5px/14px var(--jx); cursor: default; }
#sk-pop .sk-rw-btn.du { border-color: #6fd488; background: linear-gradient(180deg, #2b6f58, #194436); color: #ffe99d; cursor: pointer; }
#sk-pop .sk-rw-btn.du:hover { filter: brightness(1.15); border-color: #ffd94e; }
#sk-pop .sk-rw-btn.da { border-color: #526358; color: #a7bdb0; background: #181f1b; }
/* Phú Quý Cẩm Hạp (7 khung bên phải Sự Kiện) */
#sk-pop .pq-wrap { display: flex; flex-direction: column; justify-content: space-between; gap: 5px; height: 100%; min-height: 0; }
#sk-pop .pq-box { padding: 5px 8px; border: 1px solid #3c4f44; border-radius: 4px; background: rgba(16,22,19,.88); font: 11px/14px var(--jx); color: #d5e4db; }
#sk-pop .pq-k1 { padding: 4px 8px 5px; border-color: #6c5d39; background: linear-gradient(180deg, rgba(42,52,44,.95), rgba(20,27,23,.95)); }
#sk-pop .pq-k1 b { display: block; font: bold 13px/16px var(--jx); color: #ffe699; }
#sk-pop .pq-k2 { color: #e2ede6; }
#sk-pop .pq-lbl { color: #c7d9ce; margin-bottom: 4px; }
#sk-pop .pq-so { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
#sk-pop .pq-o { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; padding: 0 4px; border: 1px solid #597262; border-radius: 3px; background: rgba(10,15,12,.92); font: bold 12px/14px var(--jx); color: #8aff9a; }
#sk-pop .pq-o.cho { color: #6e8376; border-color: #36453c; }
#sk-pop .pq-o.db { border-color: #e6b83c; background: rgba(58,40,12,.92); color: #ffd94e; box-shadow: inset 0 0 6px rgba(255,217,78,.28); }
#sk-pop .pq-o.db.cho { color: #8c7a49; border-color: #5b4c26; background: rgba(24,20,12,.88); box-shadow: none; }
#sk-pop .pq-sep { font: bold 10.5px/14px var(--jx); color: #ffd94e; margin-left: 4px; }
#sk-pop .pq-chon-dong { margin-top: 4px; font: 11px/14px var(--jx); color: #b5c9bd; }
#sk-pop .pq-chon-dong b { color: #ffe699; font-weight: bold; }
#sk-pop .pq-k5 { text-align: center; display: flex; flex-direction: column; gap: 2px; }
#sk-pop .pq-k5.nhac { border-color: #ffd94e; background: linear-gradient(180deg, rgba(84,54,14,.92), rgba(44,27,8,.94)); color: #fff4c2; animation: pqNhac .75s ease-in-out infinite alternate; }
#sk-pop .pq-k5.nhac b { color: #ffe45c; font: bold 11px/14px var(--jx); }
@keyframes pqNhac { from { box-shadow: 0 0 4px rgba(255,217,78,.35); filter: brightness(1); } to { box-shadow: 0 0 12px rgba(255,196,40,.95); filter: brightness(1.16); } }
#sk-pop .pq-k6 { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 2px 0; }
#sk-pop .pq-btn { min-width: 110px; padding: 5px 14px; border-radius: 4px; border: 1px solid #4d5d53; background: #1e2521; color: #9db0a4; font: bold 11.5px/15px var(--jx); cursor: default; }
#sk-pop .pq-btn.du { border-color: #6fd488; background: linear-gradient(180deg, #2b6f58, #194436); color: #ffe99d; cursor: pointer; box-shadow: 0 0 6px rgba(111,212,136,.35); }
#sk-pop .pq-btn.du:hover { filter: brightness(1.14); border-color: #ffd94e; }
#sk-pop .pq-btn-db { position: relative; overflow: hidden; cursor: pointer; border-color: #ffd94e; background: linear-gradient(180deg, #b87c18, #6e4408); color: #fff9d2; box-shadow: 0 0 12px rgba(255,217,78,.78), inset 0 0 8px rgba(255,244,180,.45); }
#sk-pop .pq-btn-db::after { content: ""; position: absolute; top: -20%; left: -60%; width: 45%; height: 140%; background: linear-gradient(110deg, transparent, rgba(255,255,255,.62), transparent); animation: pqBong 1.8s linear infinite; pointer-events: none; }
@keyframes pqBong { from { left: -60%; } to { left: 140%; } }
#sk-pop .pq-k7 { text-align: center; color: #ffe699; border-color: #5b4f34; background: rgba(24,23,16,.9); }

/* Popup Tiếp nhận tiêu (Vận Tiêu - Map 613) */
#vt-pop { position: fixed; inset: 0; z-index: 260; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.62); padding: 6px; }
#vt-pop .vt-box { width: min(620px, 95vw); max-height: 95vh; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 7px; padding: 0 0 10px;
  border: 2px solid #8c7748; border-radius: 6px; background: linear-gradient(180deg, #161e1a, #0e1310);
  box-shadow: 0 14px 40px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,217,78,.2); color: #e8f2ec; }
#vt-pop .vt-dau { flex: none; position: relative; display: flex; align-items: center; justify-content: center; padding: 5px 34px;
  border-bottom: 1px solid #6c5d39; background: linear-gradient(180deg, #27342c, #17201b); border-radius: 4px 4px 0 0; }
#vt-pop .vt-dau span { font: bold 14px/18px var(--jx); color: #ffe699; letter-spacing: .5px; text-shadow: 0 1px 2px #000; }
#vt-pop .vt-x { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px;
  border: 1px solid #8c7748; border-radius: 4px; background: #261b18; color: #ffd99a; font: bold 15px/18px var(--jx); cursor: pointer; }
#vt-pop .vt-x:hover { background: #4a231c; color: #fff; }
#vt-pop .vt-k1 { flex: none; margin: 0 12px; padding: 5px 10px; border: 1px solid #4d6255; border-radius: 4px;
  background: rgba(16,24,20,.9); font: 11px/15px var(--jx); color: #d8e7de; text-align: center; }
#vt-pop .vt-cards { flex: none; display: flex; justify-content: center; align-items: stretch; gap: clamp(14px, 3.2vw, 28px); margin: 2px 12px; }
#vt-pop .vt-card { width: clamp(108px, 19vw, 138px); height: clamp(160px, 45vh, 228px); flex: none; display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding: clamp(38px, 11.2vh, 56px) 5px 7px; box-sizing: border-box; background-position: center; background-size: 100% 100%; background-repeat: no-repeat;
  cursor: pointer; transition: transform .12s ease, filter .12s ease; filter: brightness(.92); }
#vt-pop .vt-card:hover { transform: translateY(-2px); filter: brightness(1.03); }
#vt-pop .vt-card.on { transform: translateY(-3px); filter: brightness(1.06) drop-shadow(0 0 8px rgba(255,217,78,.85)); }
#vt-pop .vt-k2 { position: relative; flex: 1 1 0; min-height: 54px; width: 60%; overflow: visible; }
#vt-pop .vt-k2 img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; transform: scale(1.14); transform-origin: center center;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.65)); pointer-events: none; }
#vt-pop .vt-k3 { position: relative; z-index: 1; width: 100%; box-sizing: border-box; margin-top: 2px; padding: 3px 4px; border-radius: 3px; border: 1px solid rgba(155,130,72,.7);
  background: rgba(16,22,19,.9); text-align: center; font: bold 10.5px/13px var(--jx); text-shadow: 0 1px 2px #000; white-space: nowrap; }
#vt-pop .vt-chan { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin: 2px 12px 0; min-height: 32px; }
#vt-pop .vt-acts { display: flex; align-items: center; justify-content: center; gap: 12px; }
#vt-pop .vt-btn { min-width: 106px; padding: 6px 14px; border-radius: 4px; font: bold 12.5px/16px var(--jx); cursor: pointer; }
#vt-pop .vt-btn.nhan { border: 1.5px solid #e0be66; background: linear-gradient(180deg, #2e725c, #194538); color: #ffe99d; }
#vt-pop .vt-btn.nhan:hover { filter: brightness(1.15); border-color: #ffd94e; }
#vt-pop .vt-btn.moi { border: 1.5px solid #6c8879; background: linear-gradient(180deg, #27372f, #17211c); color: #d8ece0; }
#vt-pop .vt-btn.moi:hover { filter: brightness(1.15); border-color: #9ec7b0; }
#vt-pop .vt-luot { display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px 4px 10px;
  border: 1px solid #4d6255; border-radius: 4px; background: rgba(14,20,17,.92); font: 11.5px/16px var(--jx); color: #d6e6dc; white-space: nowrap; }
#vt-pop .vt-plus { width: 20px; height: 20px; padding: 0; border: 1px solid #e0be66; border-radius: 3px; background: linear-gradient(180deg, #2e725c, #194538);
  color: #ffe99d; font: bold 14px/18px var(--jx); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
#vt-pop .vt-plus:hover:not(:disabled) { filter: brightness(1.18); border-color: #ffd94e; }
#vt-pop .vt-plus.off, #vt-pop .vt-plus:disabled { opacity: .45; filter: grayscale(.6); cursor: not-allowed; border-color: #55665d; }
#vt-pop .vt-tb { flex: none; margin: 0 12px; padding: 4px 10px; border-radius: 4px; border: 1px solid #597263; background: rgba(14,22,18,.95);
  font: 11px/14px var(--jx); color: #ffe58f; text-align: center; display: none; }
#vt-pop .vt-tb.on { display: block; }
#vt-pop .vt-tb.err { border-color: #9e473b; background: rgba(46,16,14,.95); color: #ff9f94; }
@media (max-width: 620px), (max-height: 440px) {
  #vt-pop .vt-box { gap: 5px; padding: 0 0 8px; }
  #vt-pop .vt-cards { gap: 12px; }
  #vt-pop .vt-k3 { font-size: 9.5px; line-height: 12px; padding: 2px 3px; }
  #vt-pop .vt-acts { gap: 8px; }
  #vt-pop .vt-btn { min-width: 92px; padding: 5px 10px; font-size: 11.5px; }
}

/* Tùy chỉnh cỡ chữ bảng UI trong Cài đặt Đồ họa (13 / 14 / 16) */
html[data-uifont="16"] #jxwin .hd-khung,
html[data-uifont="16"] #hd-dt,
html[data-uifont="16"] #bk-pop,
html[data-uifont="16"] #sk-pop,
html[data-uifont="16"] #vt-pop { --jx: "VK Sans Serif 16", "IBM Plex Mono", monospace; }

html[data-uifont="14"] #jxwin .hd2-ten,
html[data-uifont="16"] #jxwin .hd2-ten { font-size: calc(16px * var(--ui-k, 1)); line-height: 1.3; }
html[data-uifont="14"] #jxwin .hd2-meta,
html[data-uifont="16"] #jxwin .hd2-meta,
html[data-uifont="14"] #jxwin .hd2-mota,
html[data-uifont="16"] #jxwin .hd2-mota,
html[data-uifont="14"] #hd-dt .hd-dt-meta,
html[data-uifont="16"] #hd-dt .hd-dt-meta,
html[data-uifont="14"] #hd-dt .hd-dt-info em,
html[data-uifont="16"] #hd-dt .hd-dt-info em { font-size: calc(13px * var(--ui-k, 1)); line-height: 1.38; }
html[data-uifont="14"] #jxwin .hd2-th-lbl,
html[data-uifont="16"] #jxwin .hd2-th-lbl,
html[data-uifont="14"] #jxwin .hd3-sub,
html[data-uifont="16"] #jxwin .hd3-sub,
html[data-uifont="14"] #jxwin .hd3-st,
html[data-uifont="16"] #jxwin .hd3-st,
html[data-uifont="14"] .hd-itip,
html[data-uifont="16"] .hd-itip { font-size: calc(12px * var(--ui-k, 1)); line-height: 1.35; }
html[data-uifont="14"] #jxwin .hd3-ten,
html[data-uifont="16"] #jxwin .hd3-ten { font-size: calc(14px * var(--ui-k, 1)); line-height: 1.28; }
html[data-uifont="14"] .hd-nut-go,
html[data-uifont="16"] .hd-nut-go,
html[data-uifont="14"] #jxwin .hd-khung .jw-i[data-n^="Tab"] .jw-t,
html[data-uifont="16"] #jxwin .hd-khung .jw-i[data-n^="Tab"] .jw-t { font-size: calc(12.5px * var(--ui-k, 1)); }
html[data-uifont="14"] #jxwin .hd4-trai b,
html[data-uifont="16"] #jxwin .hd4-trai b,
html[data-uifont="14"] #jxwin .hd4-trai span,
html[data-uifont="16"] #jxwin .hd4-trai span { font-size: calc(11.5px * var(--ui-k, 1)); line-height: 1.28; }

html[data-uifont="14"] #bk-pop .bk-box,
html[data-uifont="16"] #bk-pop .bk-box,
html[data-uifont="14"] #bk-pop .bk-inp,
html[data-uifont="16"] #bk-pop .bk-inp { font-size: calc(13px * var(--ui-k, 1)); line-height: 1.4; }
html[data-uifont="14"] #bk-pop .bk-dau,
html[data-uifont="16"] #bk-pop .bk-dau { font-size: calc(14px * var(--ui-k, 1)); }
html[data-uifont="14"] #bk-pop .bk-nhom,
html[data-uifont="16"] #bk-pop .bk-nhom { font-size: calc(12.5px * var(--ui-k, 1)); line-height: 1.35; }

html[data-uifont="14"] #sk-pop .sk-box,
html[data-uifont="16"] #sk-pop .sk-box { font-size: calc(12px * var(--ui-k, 1)); line-height: 1.35; }
html[data-uifont="14"] #sk-pop .sk-dau,
html[data-uifont="16"] #sk-pop .sk-dau { font-size: calc(13px * var(--ui-k, 1)); }
html[data-uifont="14"] #sk-pop .sk-k1-t,
html[data-uifont="16"] #sk-pop .sk-k1-t,
html[data-uifont="14"] #sk-pop .sk-item b,
html[data-uifont="16"] #sk-pop .sk-item b,
html[data-uifont="14"] #sk-pop .sk-ct-info b,
html[data-uifont="16"] #sk-pop .sk-ct-info b,
html[data-uifont="14"] #sk-pop .sk-nl b,
html[data-uifont="16"] #sk-pop .sk-nl b { font-size: calc(12px * var(--ui-k, 1)); line-height: 1.3; }
html[data-uifont="14"] #sk-pop .sk-item span,
html[data-uifont="16"] #sk-pop .sk-item span,
html[data-uifont="14"] #sk-pop .sk-k2-dau span,
html[data-uifont="16"] #sk-pop .sk-k2-dau span,
html[data-uifont="14"] #sk-pop .sk-tt,
html[data-uifont="16"] #sk-pop .sk-tt,
html[data-uifont="14"] #sk-pop .sk-nl span,
html[data-uifont="16"] #sk-pop .sk-nl span,
html[data-uifont="14"] #sk-pop .sk-ct-info span,
html[data-uifont="16"] #sk-pop .sk-ct-info span,
html[data-uifont="14"] #sk-pop .sk-sl,
html[data-uifont="16"] #sk-pop .sk-sl,
html[data-uifont="14"] #sk-pop .sk-go,
html[data-uifont="16"] #sk-pop .sk-go,
html[data-uifont="14"] #sk-pop .sk-fix,
html[data-uifont="16"] #sk-pop .sk-fix,
html[data-uifont="14"] #sk-pop .sk-chip,
html[data-uifont="16"] #sk-pop .sk-chip,
html[data-uifont="14"] #sk-pop .bd-k3-trai span,
html[data-uifont="16"] #sk-pop .bd-k3-trai span,
html[data-uifont="14"] #sk-pop .bd-btn,
html[data-uifont="16"] #sk-pop .bd-btn { font-size: calc(11px * var(--ui-k, 1)); line-height: 1.3; }
html[data-uifont="14"] #sk-pop .sk-k2-dau b,
html[data-uifont="16"] #sk-pop .sk-k2-dau b,
html[data-uifont="14"] #sk-pop .bd-k3-trai b,
html[data-uifont="16"] #sk-pop .bd-k3-trai b { font-size: calc(13.5px * var(--ui-k, 1)); line-height: 1.3; }

html[data-uifont="14"] #vt-pop .vt-dau span,
html[data-uifont="16"] #vt-pop .vt-dau span { font-size: calc(14px * var(--ui-k, 1)); }
html[data-uifont="14"] #vt-pop .vt-k1,
html[data-uifont="16"] #vt-pop .vt-k1,
html[data-uifont="14"] #vt-pop .vt-luot,
html[data-uifont="16"] #vt-pop .vt-luot { font-size: calc(11.5px * var(--ui-k, 1)); line-height: 1.35; }
html[data-uifont="14"] #vt-pop .vt-btn,
html[data-uifont="16"] #vt-pop .vt-btn { font-size: calc(12.5px * var(--ui-k, 1)); line-height: 1.3; }
html[data-uifont="14"] #vt-pop .vt-k3,
html[data-uifont="16"] #vt-pop .vt-k3 { font-size: calc(10px * var(--ui-k, 1)); line-height: 1.25; }

/* Popup Thú Cưng / Đồng Hành */
#tc-pop { position: fixed; inset: 0; z-index: 265; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.64); padding: 6px; }
#tc-pop .tc-box { width: min(680px, 96vw); max-height: 95vh; display: flex; flex-direction: column; overflow: hidden;
  border: 2px solid #8c7748; border-radius: 6px; background: linear-gradient(180deg, #151d19, #0c110f);
  box-shadow: 0 14px 40px rgba(0,0,0,.85), inset 0 0 0 1px rgba(255,217,78,.2); color: #e8f2ec; font-family: var(--jx); }
#tc-pop .tc-dau { flex: none; position: relative; display: flex; align-items: center; justify-content: center; padding: 5px 34px;
  border-bottom: 1px solid #6c5d39; background: linear-gradient(180deg, #27342c, #17201b); }
#tc-pop .tc-dau span { font: bold 13.5px/17px var(--jx); color: #ffe699; text-shadow: 0 1px 2px #000; }
#tc-pop .tc-x { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px;
  border: 1px solid #8c7748; border-radius: 4px; background: #261b18; color: #ffd99a; font: bold 15px/18px var(--jx); cursor: pointer; }
#tc-pop .tc-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; padding: 7px 9px; display: flex; flex-direction: column; gap: 6px; }
#tc-pop .tc-body::-webkit-scrollbar, #tc-pop .tc-eq-baglist::-webkit-scrollbar { display: none; width: 0; height: 0; }
#tc-pop .tc-tb { flex: none; margin: 0 10px 8px; padding: 5px 10px; border-radius: 4px; border: 1px solid #597263; background: rgba(14,22,18,.95);
  font: 11px/15px var(--jx); color: #ffe58f; text-align: center; display: none; }
#tc-pop .tc-tb.on { display: block; }
#tc-pop .tc-tb.err { border-color: #9e473b; background: rgba(46,16,14,.95); color: #ff9f94; }
#tc-pop .tc-empty { text-align: center; padding: 24px 14px; border: 1px dashed #4a5a4e; border-radius: 6px; background: rgba(0,0,0,.22); }
#tc-pop .tc-em-ic { font-size: 32px; margin-bottom: 6px; }
#tc-pop .tc-empty h3 { margin: 0 0 6px; color: #ffd94e; font-size: 15px; }
#tc-pop .tc-empty p { margin: 0; font-size: 12px; color: #c7d4cc; }
#tc-pop .tc-sub-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; color: #cfe0d6; }
#tc-pop .tc-sm-btn { padding: 3px 8px; border: 1px solid #6b7d72; border-radius: 4px; background: #1d2922; color: #d8ece0; font: bold 11px/15px var(--jx); cursor: pointer; }
#tc-pop .tc-sm-btn.on { border-color: #e0be66; background: linear-gradient(180deg, #2e725c, #194538); color: #ffe99d; }
#tc-pop .tc-sm-btn:disabled { opacity: .45; cursor: not-allowed; }
#tc-pop .tc-btn-gold { padding: 6px 12px; border: 1.5px solid #e0be66; border-radius: 4px; background: linear-gradient(180deg, #2e725c, #194538);
  color: #ffe99d; font: bold 12px/15px var(--jx); cursor: pointer; }
#tc-pop .tc-btn-gold:disabled { opacity: .45; filter: grayscale(.6); cursor: not-allowed; }
#tc-pop .tc-req-bar { padding: 6px 8px; border: 1px solid #6b5b34; border-radius: 5px; background: rgba(34,28,15,.85); flex-wrap: wrap; }
#tc-pop .tc-req-left { display: flex; align-items: center; gap: 6px; font-size: 11px; }
#tc-pop .tc-req-left img { width: 22px; height: 22px; object-fit: contain; }
#tc-pop .tc-rec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
#tc-pop .tc-rec-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px; border: 1px solid #4d5f53;
  border-radius: 6px; background: rgba(18,24,21,.95); text-align: center; font-size: 11px; }
#tc-pop .tc-badge { font-size: 9.5px; font-weight: bold; padding: 1px 5px; border: 1px solid; border-radius: 3px; background: rgba(0,0,0,.35); }
#tc-pop .tc-rec-img { width: 54px; height: 54px; display: grid; place-items: center; border: 1.5px solid; border-radius: 6px; background: #0b0f0d; margin-top: 2px; }
#tc-pop .tc-rec-img img { max-width: 46px; max-height: 46px; object-fit: contain; }
#tc-pop .tc-rec-stat { font-size: 10px; color: #cfd8d2; line-height: 1.35; }
#tc-pop .tc-rec-evo { font-size: 9.5px; color: #8ad8a8; line-height: 1.25; background: rgba(0,0,0,.3); padding: 4px; border-radius: 4px; flex: 1; }
#tc-pop .tc-grid { display: grid; grid-template-columns: 235px 1fr; gap: 10px; align-items: start; }
#tc-pop .tc-left, #tc-pop .tc-right { display: flex; flex-direction: column; gap: 6px; }
#tc-pop .tc-head-row, #tc-pop .tc-lv-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11.5px; }
#tc-pop .tc-stage { position: relative; height: 118px; display: grid; place-items: center; border: 1px solid #4b5d50; border-radius: 6px;
  background: radial-gradient(ellipse at bottom, #243129 0%, #0a0e0c 75%); }
#tc-pop .tc-stage img { max-width: 84px; max-height: 84px; object-fit: contain; }
#tc-pop .tc-stage-btn { position: absolute; padding: 3px 7px; border: 1px solid #d4b25c; border-radius: 3px; background: rgba(24,35,29,.92);
  color: #ffe99d; font: bold 10.5px/13px var(--jx); cursor: pointer; }
#tc-pop .tc-stage-btn.tr { top: 6px; right: 6px; border-color: #6b7d72; color: #d6e6dc; }
#tc-pop .tc-stage-btn.br { bottom: 6px; right: 6px; }
#tc-pop .tc-exp-line { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #7dff8a; }
#tc-pop .tc-exp-line .tc-bar { flex: 1; }
#tc-pop .tc-nav-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 2px; }
#tc-pop .tc-nav-btn { padding: 6px 8px; border: 1px solid #556a5c; border-radius: 4px; background: linear-gradient(180deg, #1d2822, #111814); color: #cfe0d6; font: bold 11.5px/15px var(--jx); cursor: pointer; text-align: center; }
#tc-pop .tc-nav-btn:hover { border-color: #9bb8a5; color: #fff; }
#tc-pop .tc-nav-btn.on { border-color: #e0be66; background: linear-gradient(180deg, #2e725c, #194538); color: #ffe99d; box-shadow: inset 0 0 6px rgba(255,217,78,.28); }
#tc-pop .tc-bar { height: 8px; background: #070b09; border: 1px solid #3c4d42; border-radius: 4px; overflow: hidden; }
#tc-pop .tc-bar i { display: block; height: 100%; background: linear-gradient(90deg, #237804, #65d435); }
#tc-pop .tc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; padding: 6px 8px; border: 1px solid #3c4e42; border-radius: 5px; background: rgba(15,22,18,.92); font-size: 11.5px; }
#tc-pop .tc-stats > div { display: flex; justify-content: space-between; align-items: center; }
#tc-pop .tc-stats b { color: #ffd94e; }
#tc-pop .tc-stats em { font-style: normal; font-size: 10px; color: #6bfb9d; }
#tc-pop .tc-sec-box { border: 1px solid #3f5246; border-radius: 5px; background: rgba(16,23,20,.92); padding: 6px 8px; display: flex; flex-direction: column; gap: 5px; }
#tc-pop .tc-pane { min-height: 152px; justify-content: flex-start; }
#tc-pop .tc-sec-h { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: #ffe699; }
#tc-pop .tc-hint { font-size: 10px; color: #9db0a4; }
#tc-pop .tc-evo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
#tc-pop .tc-evo-it { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 3px; border: 1px solid #344239; border-radius: 4px; background: #0b100d; text-align: center; opacity: .55; }
#tc-pop .tc-evo-it.on { opacity: .9; border-color: #55705f; }
#tc-pop .tc-evo-it.cur { opacity: 1; border-color: #ffd94e; background: rgba(255,217,78,.1); box-shadow: inset 0 0 6px rgba(255,217,78,.22); }
#tc-pop .tc-evo-it img { width: 32px; height: 32px; object-fit: contain; }
#tc-pop .tc-evo-it b { font-size: 9.5px; color: #e2ede6; line-height: 1.15; }
#tc-pop .tc-evo-it span { font-size: 8.5px; color: #95b5a2; }
#tc-pop .tc-evo-act { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 7px; border: 1px solid #485e50; border-radius: 4px; background: rgba(10,16,13,.94); }
#tc-pop .tc-evo-act.done { justify-content: center; font-size: 11px; color: #7dff8a; }
#tc-pop .tc-evo-req { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 10.5px; }
#tc-pop .tc-evo-req img { width: 24px; height: 24px; object-fit: contain; flex: none; }
#tc-pop .tc-evo-req > div { display: flex; flex-direction: column; min-width: 0; }
#tc-pop .tc-evo-req b { color: #ffe680; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tc-pop .tc-evo-req span { font-size: 9.5px; color: #b8c7be; }
#tc-pop .tc-evo-btn { flex: none; padding: 5px 10px; font-size: 11px; }
#tc-pop .tc-food-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
#tc-pop .tc-food-card { display: flex; flex-direction: column; gap: 5px; padding: 6px 7px; border: 1px solid #405245; border-radius: 5px; background: #101713; font-size: 11px; }
#tc-pop .tc-food-top { display: flex; align-items: center; gap: 6px; }
#tc-pop .tc-food-top img { width: 28px; height: 28px; object-fit: contain; }
#tc-pop .tc-food-exp { font-size: 9.5px; color: #7dff8a; }
#tc-pop .tc-own { margin-left: auto; font-size: 10.5px; color: #ccc; }
#tc-pop .tc-food-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#tc-pop .tc-sk-layout { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 2px; }
#tc-pop .tc-sk1-wrap, #tc-pop .tc-sk3-wrap { display: flex; justify-content: center; width: 100%; }
#tc-pop .tc-sk5-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; width: 100%; justify-items: center; }
#tc-pop .tc-sk5-col { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 100%; }
#tc-pop .tc-sk-slot { position: relative; width: 48px; height: 48px; display: grid; place-items: center; padding: 3px; border: 1.5px solid #6b5d39; border-radius: 4px; background: radial-gradient(circle, #18201b, #080b09); cursor: pointer; box-shadow: inset 0 0 8px rgba(0,0,0,.8); overflow: hidden; }
#tc-pop .tc-sk-slot.main { border-color: #d4b25c; width: 52px; height: 52px; box-shadow: 0 0 8px rgba(212,178,92,.25), inset 0 0 8px rgba(0,0,0,.85); }
#tc-pop .tc-sk-slot.has, #tc-learn-pop .tc-sk-slot.has { border-color: #ffd94e; background: radial-gradient(circle, #25342b, #0b110d); }
#tc-pop .tc-sk-slot.lock, #tc-learn-pop .tc-sk-slot.lock { border-color: #ff5b5b; }
#tc-pop .tc-sk-slot.sel, #tc-learn-pop .tc-sk-slot.sel { outline: 2px solid #6bfb9d; outline-offset: 1px; }
#tc-pop .tc-sk-slot b, #tc-learn-pop .tc-sk-slot b { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(255,217,78,.9); color: #000; font-size: 8.5px; text-align: center; line-height: 11px; }
#tc-pop .tc-sk-slot i, #tc-learn-pop .tc-sk-slot i { position: absolute; top: 1px; right: 2px; font-style: normal; font-size: 9px; line-height: 1; }
#tc-pop .tc-sk-txt, #tc-learn-pop .tc-sk-txt { font: bold 9.5px/1.15 var(--jx); color: #ffe680; text-align: center; word-break: break-word; padding-bottom: 8px; }
#tc-pop .tc-sk-txt.main, #tc-learn-pop .tc-sk-txt.main { color: #7dff8a; padding-bottom: 0; font-size: 10px; }
#tc-pop .tc-sk-empty, #tc-learn-pop .tc-sk-empty { font-size: 9px; color: #708277; text-align: center; }
#tc-pop .tc-lock-btn, #tc-learn-pop .tc-lock-btn { min-width: 58px; padding: 3px 6px; border: 1.5px solid #8a7b58; border-radius: 3px; background: linear-gradient(180deg, #d7d0be, #8f8878); color: #1d1912; font: bold 10.5px/13px var(--jx); cursor: pointer; text-shadow: 0 1px 0 rgba(255,255,255,.35); }
#tc-pop .tc-lock-btn.on { border-color: #ff6b6b; background: linear-gradient(180deg, #6e2824, #3d1412); color: #ffd9d6; text-shadow: none; }
#tc-learn-pop .tc-lock-btn.learn { border-color: #e0be66; background: linear-gradient(180deg, #2e725c, #194538); color: #ffe99d; text-shadow: none; }
#tc-learn-pop .tc-lock-btn.upg { border-color: #79b8ff; background: linear-gradient(180deg, #254b73, #132a42); color: #d6ecff; text-shadow: none; }
#tc-learn-pop .tc-lock-btn:disabled { opacity: .45; filter: grayscale(.6); cursor: not-allowed; }
#tc-pop .tc-lock-btn.wide { min-width: 118px; padding: 5px 14px; font-size: 11.5px; }
#tc-pop .tc-lock-btn:active, #tc-learn-pop .tc-lock-btn:active { filter: brightness(.92); }
#tc-pop .tc-sk-info, #tc-learn-pop .tc-sk-info { width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 3px; padding: 6px 8px; border: 1px solid #485e50; border-radius: 4px; background: rgba(10,16,13,.92); font-size: 11px; line-height: 1.3; }
#tc-pop .tc-sk-info-top, #tc-learn-pop .tc-sk-info-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
#tc-pop .tc-sk-info-act, #tc-learn-pop .tc-sk-info-act { display: flex; justify-content: flex-end; gap: 6px; margin-top: 2px; }

/* Popup Học Kỹ Năng (tách riêng trên #tc-pop) */
#tc-learn-pop { position: fixed; inset: 0; z-index: 270; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.68); padding: 8px; }
#tc-learn-pop .tc-lbox { width: min(440px, 95vw); max-height: 92vh; display: flex; flex-direction: column; overflow: hidden;
  border: 2px solid #8c7748; border-radius: 6px; background: linear-gradient(180deg, #151d19, #0c110f);
  box-shadow: 0 14px 40px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,217,78,.22); color: #e8f2ec; font-family: var(--jx); }
#tc-learn-pop .tc-dau { flex: none; position: relative; display: flex; align-items: center; justify-content: center; padding: 6px 36px;
  border-bottom: 1px solid #6c5d39; background: linear-gradient(180deg, #27342c, #17201b); }
#tc-learn-pop .tc-dau span { font: bold 14px/18px var(--jx); color: #ffe699; text-shadow: 0 1px 2px #000; }
#tc-learn-pop .tc-x { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px;
  border: 1px solid #8c7748; border-radius: 4px; background: #261b18; color: #ffd99a; font: bold 15px/18px var(--jx); cursor: pointer; }
#tc-learn-pop .tc-lbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; }
#tc-learn-pop .tc-lsec { display: flex; flex-direction: column; gap: 7px; padding: 8px 10px; border: 1px solid #3f5246; border-radius: 5px; background: rgba(16,23,20,.92); }
#tc-learn-pop .tc-ltitle { font: bold 12px/16px var(--jx); color: #ffe699; }
#tc-learn-pop .tc-ltitle small { font-weight: normal; color: #9db0a4; }
#tc-learn-pop .tc-lmain-row { display: flex; align-items: center; gap: 12px; }
#tc-learn-pop .tc-lmain-ctrl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#tc-learn-pop .tc-book-cnt { font-size: 11px; color: #cfe0d6; }
#tc-learn-pop .tc-sk5-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; width: 100%; justify-items: center; }
#tc-learn-pop .tc-sk5-col { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
#tc-learn-pop .tc-sk-slot { position: relative; width: 50px; height: 50px; display: grid; place-items: center; padding: 3px; border: 1.5px solid #6b5d39; border-radius: 4px; background: radial-gradient(circle, #18201b, #080b09); cursor: pointer; overflow: hidden; }
#tc-learn-pop .tc-sk-slot.main { border-color: #d4b25c; width: 54px; height: 54px; }
#tc-learn-pop .tc-book-mini { font-size: 9px; color: #b5c4bb; text-align: center; }
#tc-learn-pop .tc-btn-gold { padding: 6px 14px; border: 1.5px solid #e0be66; border-radius: 4px; background: linear-gradient(180deg, #2e725c, #194538); color: #ffe99d; font: bold 12px/15px var(--jx); cursor: pointer; }
#tc-learn-pop .tc-btn-gold:disabled { opacity: .45; filter: grayscale(.6); cursor: not-allowed; }
#tc-learn-pop .tc-sm-btn { padding: 3px 8px; border: 1px solid #6b7d72; border-radius: 4px; background: #1d2922; color: #d8ece0; font: bold 11px/15px var(--jx); cursor: pointer; }
#tc-learn-pop .tc-sm-btn:disabled { opacity: .45; cursor: not-allowed; }
#tc-learn-pop .tc-tb { flex: none; margin: 0 10px 8px; padding: 5px 10px; border-radius: 4px; border: 1px solid #597263; background: rgba(14,22,18,.95); font: 11px/15px var(--jx); color: #ffe58f; text-align: center; display: none; }
#tc-learn-pop .tc-tb.on { display: block; }
#tc-learn-pop .tc-tb.err { border-color: #9e473b; background: rgba(46,16,14,.95); color: #ff9f94; }
#tc-pop .tc-eq-toprow { display: flex; align-items: center; justify-content: center; gap: 10px; }
#tc-pop .tc-eq10-frame { width: fit-content; margin: 0; padding: 5px 7px; border: 1.5px solid #6d5d38; border-radius: 4px; background: repeating-linear-gradient(45deg, rgba(110,95,55,.08) 0 4px, rgba(0,0,0,.22) 4px 8px), #0a0d0b; }
#tc-pop .tc-eq-side { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; }
#tc-pop .tc-reroll-btn { min-width: 82px; padding: 8px 10px; border: 1.5px solid #e0be66; border-radius: 4px; background: linear-gradient(180deg, #2e725c, #194538); color: #ffe99d; font: bold 11.5px/14px var(--jx); cursor: pointer; box-shadow: 0 0 8px rgba(255,217,78,.22); }
#tc-pop .tc-reroll-btn:hover:not(:disabled) { filter: brightness(1.1); }
#tc-pop .tc-reroll-btn:disabled { opacity: .42; filter: grayscale(.7); box-shadow: none; cursor: not-allowed; }
#tc-reroll-pop { position: fixed; inset: 0; z-index: 275; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.68); padding: 8px; }
#tc-reroll-pop .tc-rbox { width: min(500px, 95vw); max-height: 94vh; display: flex; flex-direction: column; overflow: hidden;
  border: 2px solid #8c7748; border-radius: 6px; background: linear-gradient(180deg, #151d19, #0c110f);
  box-shadow: 0 14px 40px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,217,78,.22); color: #e8f2ec; font-family: var(--jx); }
#tc-reroll-pop .tc-dau { flex: none; position: relative; display: flex; align-items: center; justify-content: center; padding: 6px 36px;
  border-bottom: 1px solid #6c5d39; background: linear-gradient(180deg, #27342c, #17201b); }
#tc-reroll-pop .tc-dau span { font: bold 13.5px/17px var(--jx); color: #ffe699; text-shadow: 0 1px 2px #000; }
#tc-reroll-pop .tc-x { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px;
  border: 1px solid #8c7748; border-radius: 4px; background: #261b18; color: #ffd99a; font: bold 15px/18px var(--jx); cursor: pointer; }
#tc-reroll-pop .tc-rbody { flex: 1 1 auto; min-height: 0; padding: 8px 10px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; scrollbar-width: none; }
#tc-reroll-pop .tc-rbody::-webkit-scrollbar { display: none; }
#tc-reroll-pop .tc-tb { flex: none; margin: 0 10px 8px; padding: 4px 8px; border-radius: 4px; border: 1px solid #597263; background: rgba(14,22,18,.95);
  font: 11px/14px var(--jx); color: #ffe58f; text-align: center; display: none; }
#tc-reroll-pop .tc-tb.on { display: block; }
#tc-reroll-pop .tc-tb.err { border-color: #9e473b; background: rgba(46,16,14,.95); color: #ff9f94; }
#tc-reroll-pop .tc-rr-mat { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid #485e50; border-radius: 4px; background: rgba(12,18,15,.94); }
#tc-reroll-pop .tc-rr-ic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border: 1px solid #d4b25c; border-radius: 3px; background: #070a08; }
#tc-reroll-pop .tc-rr-ic img { width: 24px; height: 24px; object-fit: contain; }
#tc-reroll-pop .tc-rr-mat-info { display: flex; flex-direction: column; font-size: 11px; color: #cfe0d6; }
#tc-reroll-pop .tc-rr-mat-info b { color: #ffd94e; }
#tc-reroll-pop .tc-rr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#tc-reroll-pop .tc-rr-col { min-height: 126px; display: flex; flex-direction: column; gap: 5px; padding: 7px 8px; border: 1px solid #45594c; border-radius: 4px; background: rgba(10,15,12,.92); }
#tc-reroll-pop .tc-rr-col-h { font: bold 11px/14px var(--jx); color: #9db0a4; border-bottom: 1px dashed #324338; padding-bottom: 3px; }
#tc-reroll-pop .tc-rr-col.new .tc-rr-col-h { color: #7dff8a; }
#tc-reroll-pop .tc-rr-lines { display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
#tc-reroll-pop .tc-rr-line { padding: 4px 6px; border: 1px solid #59442c; border-radius: 3px; background: rgba(58,39,22,.45); font-size: 11px; color: #ffe6cc; }
#tc-reroll-pop .tc-rr-line.new { border-color: #2f7068; background: rgba(18,64,74,.55); color: #74ffea; }
#tc-reroll-pop .tc-rr-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#tc-reroll-pop .tc-rr-left { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; }
#tc-reroll-pop .tc-rr-eqic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border: 1.5px solid #e6b83a; border-radius: 3px; background: #070a08; }
#tc-reroll-pop .tc-rr-eqic img { width: 24px; height: 24px; object-fit: contain; }
#tc-reroll-pop .tc-rr-sel { flex: 1; min-width: 0; height: 30px; padding: 2px 6px; border: 1px solid #6b7d72; border-radius: 4px; background: #0d1511; color: #ffe699; font: bold 11px/15px var(--jx); }
#tc-reroll-pop .tc-rr-acts { flex: none; display: flex; align-items: center; gap: 6px; }
#tc-reroll-pop .tc-rr-btn { min-width: 82px; padding: 6px 12px; }
#tc-reroll-pop .tc-btn-gold { padding: 6px 12px; border: 1.5px solid #e0be66; border-radius: 4px; background: linear-gradient(180deg, #2e725c, #194538); color: #ffe99d; font: bold 11.5px/15px var(--jx); cursor: pointer; }
#tc-reroll-pop .tc-btn-gold:disabled, #tc-reroll-pop .tc-sm-btn:disabled { opacity: .42; filter: grayscale(.7); cursor: not-allowed; }
#tc-reroll-pop .tc-sm-btn { padding: 6px 12px; border: 1px solid #6b7d72; border-radius: 4px; background: #1d2922; color: #d8ece0; font: bold 11.5px/15px var(--jx); cursor: pointer; }
#tc-pop .tc-eq10-grid { display: grid; grid-template-columns: repeat(5, 40px); gap: 5px; justify-content: center; }
#tc-pop .tc-eq10-slot { position: relative; width: 40px; height: 40px; display: grid; place-items: center; padding: 2px; border: 1.5px solid #75653d; outline: 1px solid #2b2416; border-radius: 2px; background: rgba(8,11,9,.92); cursor: pointer; text-align: center; box-shadow: inset 0 0 8px rgba(0,0,0,.85); overflow: hidden; }
#tc-pop .tc-eq10-slot:hover { border-color: #d4b25c; }
#tc-pop .tc-eq10-slot.has { border-color: #e6b83a; background: radial-gradient(circle, rgba(64,50,18,.55), rgba(8,11,9,.95)); box-shadow: inset 0 0 8px rgba(255,213,74,.25); }
#tc-pop .tc-eq10-slot.sel { outline: 2px solid #6bfb9d; outline-offset: 0; }
#tc-pop .tc-eq10-slot img { width: 26px; height: 26px; object-fit: contain; }
#tc-pop .tc-eq10-slot .tc-eq10-n { display: none; }
#tc-pop .tc-eq10-slot span { font-size: 8.5px; color: #5f6f65; line-height: 1.05; user-select: none; }
#tc-pop .tc-eq-detail { display: flex; flex-direction: column; gap: 4px; padding: 5px 7px; border: 1px solid #485e50; border-radius: 4px; background: rgba(10,16,13,.94); font-size: 11px; }
#tc-pop .tc-eq-det-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#tc-pop .tc-eq-det-top img { width: 26px; height: 26px; object-fit: contain; }
#tc-pop .tc-eq-det-top > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#tc-pop .tc-eq-det-top > div span { font-size: 10px; color: #9db0a4; }
#tc-pop .tc-eq-lines { display: flex; flex-direction: column; gap: 2px; color: #ffd94e; font-size: 11px; }
#tc-pop .tc-eq-setlines { display: flex; flex-direction: column; gap: 2px; padding-top: 3px; border-top: 1px dashed #34473b; font-size: 10.5px; color: #5b7864; }
#tc-pop .tc-eq-setlines span.on { color: #7dff8a; }
#tc-pop .tc-eq-baglist { display: flex; flex-direction: column; gap: 4px; max-height: 92px; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
#tc-pop .tc-eq-bagit { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px; border: 1px solid #35473c; border-radius: 4px; background: #101814; }
#tc-pop .tc-eq-bagit > div { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 10.5px; }
#tc-pop .tc-eq-bagit small { color: #ffd94e; font-size: 9.5px; line-height: 1.25; }

/* Popup Chế Tạo */
#ct-pop { position: fixed; inset: 0; z-index: 268; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.66); padding: 6px; }
#ct-pop .ct-box { width: min(670px, 96vw); max-height: 95vh; display: flex; flex-direction: column; overflow: hidden;
  border: 2px solid #8c7748; border-radius: 6px; background: linear-gradient(180deg, #151d19, #0c110f);
  box-shadow: 0 14px 40px rgba(0,0,0,.85), inset 0 0 0 1px rgba(255,217,78,.2); color: #e8f2ec; font-family: var(--jx); }
#ct-pop .ct-dau { flex: none; position: relative; display: flex; align-items: center; justify-content: center; padding: 5px 34px;
  border-bottom: 1px solid #6c5d39; background: linear-gradient(180deg, #27342c, #17201b); }
#ct-pop .ct-dau span { font: bold 13.5px/17px var(--jx); color: #ffe699; text-shadow: 0 1px 2px #000; }
#ct-pop .ct-x { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px;
  border: 1px solid #8c7748; border-radius: 4px; background: #261b18; color: #ffd99a; font: bold 15px/18px var(--jx); cursor: pointer; }
#ct-pop .ct-body { flex: 1 1 auto; min-height: 0; padding: 7px 8px; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
#ct-pop .ct-body::-webkit-scrollbar, #ct-pop .ct-col2::-webkit-scrollbar { display: none; width: 0; height: 0; }
#ct-pop .ct-loading { text-align: center; padding: 30px; color: #cfe0d6; }
#ct-pop .ct-tb { flex: none; margin: 0 8px 6px; padding: 4px 8px; border-radius: 4px; border: 1px solid #597263; background: rgba(14,22,18,.95);
  font: 11px/14px var(--jx); color: #ffe58f; text-align: center; display: none; }
#ct-pop .ct-tb.on { display: block; }
#ct-pop .ct-tb.err { border-color: #9e473b; background: rgba(46,16,14,.95); color: #ff9f94; }
#ct-pop .ct-layout { display: grid; grid-template-columns: 112px 190px 1fr; gap: 7px; align-items: stretch; }
#ct-pop .ct-col1 { display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 1px solid #3f5246; border-radius: 5px; background: rgba(16,23,20,.92); }
#ct-pop .ct-cat-btn { padding: 7px 6px; border: 1px solid #556a5c; border-radius: 4px; background: linear-gradient(180deg, #1d2822, #111814); color: #cfe0d6; font: bold 11px/14px var(--jx); cursor: pointer; text-align: center; }
#ct-pop .ct-cat-btn.on { border-color: #e0be66; background: linear-gradient(180deg, #2e725c, #194538); color: #ffe99d; }
#ct-pop .ct-cat-btn:disabled { opacity: .55; cursor: not-allowed; }
#ct-pop .ct-col2 { display: flex; flex-direction: column; gap: 3px; max-height: min(300px, calc(95vh - 54px)); overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; padding: 5px; border: 1px solid #3f5246; border-radius: 5px; background: rgba(13,19,16,.95); }
#ct-pop .ct-item { display: flex; align-items: center; gap: 6px; padding: 4px 5px; border: 1px solid #34443a; border-radius: 4px; background: #0d1410; cursor: pointer; }
#ct-pop .ct-item:hover { border-color: #82a08c; }
#ct-pop .ct-item.on { border-color: #ffd94e; background: rgba(46,114,92,.35); }
#ct-pop .ct-it-ic { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border: 1px solid #8c7748; border-radius: 3px; background: #070a08; }
#ct-pop .ct-it-ic img { max-width: 21px; max-height: 21px; object-fit: contain; }
#ct-pop .ct-it-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#ct-pop .ct-it-txt b { font-size: 11px; color: #ffe680; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ct-pop .ct-it-txt span { font-size: 9.5px; color: #9db0a4; }
#ct-pop .ct-it-txt i { font-style: normal; font-weight: bold; }
#ct-pop .ct-empty-cat { grid-column: 2 / 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; border: 1px dashed #4a5a4e; border-radius: 5px; background: rgba(0,0,0,.22); text-align: center; }
#ct-pop .ct-empty-cat b { color: #ffd94e; font-size: 13px; }
#ct-pop .ct-empty-cat span { color: #b5c6bc; font-size: 11.5px; max-width: 300px; line-height: 1.4; }
#ct-pop .ct-main { display: flex; flex-direction: column; gap: 6px; justify-content: space-between; min-height: 0; }
#ct-pop .ct-k3 { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; border: 1px solid #594e32; border-radius: 5px; background: radial-gradient(circle at center, rgba(66,46,20,.45), #0b100d 78%); text-align: center; }
#ct-pop .ct-k3-head { font: bold 13px/17px var(--jx); color: #ffd94e; }
#ct-pop .ct-k3-head small { font-weight: normal; color: #a7bdb0; }
#ct-pop .ct-k3-slot { width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid #e6b83a; border-radius: 5px; background: #090d0b; box-shadow: 0 0 12px rgba(255,213,74,.32), inset 0 0 8px rgba(255,213,74,.2); }
#ct-pop .ct-k3-slot img { width: 34px; height: 34px; object-fit: contain; }
#ct-pop .ct-preview-desc { display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; color: #d5e4db; }
#ct-pop .ct-rolled { display: flex; flex-direction: column; gap: 2px; padding: 5px 8px; border: 1px solid #5c4e2a; border-radius: 4px; background: rgba(12,18,15,.92); font-size: 10.5px; color: #ffe680; }
#ct-pop .ct-tl-wrap { width: 88%; display: flex; flex-direction: column; align-items: center; gap: 3px; margin-top: 2px; }
#ct-pop .ct-tl-bar { width: 100%; height: 10px; border: 1px solid #b5923e; border-radius: 5px; background: #070b09; overflow: hidden; }
#ct-pop .ct-tl-fill { display: block; height: 100%; background: linear-gradient(90deg, #2d8f4e, #ffd94e); transition: width .05s linear; }
#ct-pop .ct-tl-pct { font-size: 10.5px; color: #ffd94e; font-weight: bold; }
#ct-pop .ct-ok-banner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 2px; background: rgba(0,0,0,.45); pointer-events: none; animation: ct-pop-in .25s ease-out; }
#ct-pop .ct-ok-banner img { height: 54px; width: auto; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,.9)); }
@keyframes ct-pop-in { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: scale(1); } }
#ct-pop .ct-bottom { display: flex; align-items: stretch; gap: 6px; flex: none; }
#ct-pop .ct-k4 { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 5px 7px; border: 1px solid #3f5246; border-radius: 5px; background: rgba(16,23,20,.92); }
#ct-pop .ct-k4-title { font: bold 11px/14px var(--jx); color: #ffe699; }
#ct-pop .ct-mat-row { display: flex; align-items: center; gap: 7px; }
#ct-pop .ct-mat-ic { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border: 1px solid #75653d; border-radius: 4px; background: #070a08; }
#ct-pop .ct-mat-ic img { width: 22px; height: 22px; object-fit: contain; }
#ct-pop .ct-mat-info { display: flex; flex-direction: column; font-size: 10.5px; color: #cfe0d6; }
#ct-pop .ct-mat-info b { color: #ffd94e; }
#ct-pop .ct-k6 { flex: none; display: flex; align-items: center; }
#ct-pop .ct-confirm-btn { height: 100%; min-width: 92px; padding: 6px 12px; border: 1.5px solid #e0be66; border-radius: 5px;
  background: linear-gradient(180deg, #2e725c, #194538); color: #ffe99d; font: bold 12px/15px var(--jx); cursor: pointer; }
#ct-pop .ct-confirm-btn:disabled { opacity: .45; filter: grayscale(.6); cursor: not-allowed; }
@media (max-width: 640px) {
  #ct-pop .ct-layout { grid-template-columns: 1fr; }
  #ct-pop .ct-col1 { flex-direction: row; }
  #ct-pop .ct-col2 { max-height: 140px; }
}
#tc-pop .tc-sub-panel { display: flex; flex-direction: column; gap: 8px; align-items: center; padding: 8px; border: 1px solid #3c4e42; border-radius: 6px; background: rgba(15,21,18,.9); }
#tc-pop .tc-inp { width: min(280px, 85%); padding: 6px 10px; border: 1px solid #c9a64c; border-radius: 4px; background: #0a0f0c; color: #ffd94e; font: bold 13px var(--jx); text-align: center; }
#tc-pop .tc-row-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
@media (max-width: 640px) {
  #tc-pop .tc-grid { grid-template-columns: 1fr; }
  #tc-pop .tc-rec-grid { grid-template-columns: repeat(2, 1fr); }
}
