: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 .card { background: rgba(27,24,20,.78); }
.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-sv { color: var(--muted); margin: -8px 0 16px; }
.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: 16px 12px 18px;
  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(24px, 4vw, 36px); letter-spacing: 4px; 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(16px, 4vw, 56px); justify-content: center; align-items: flex-end; width: 100%; max-width: 960px; flex: 1; min-height: 0; padding-top: 10px; }
.csel .cs-slot { flex: 1; max-width: 270px; display: flex; flex-direction: column; align-items: center; cursor: pointer; position: relative; padding: 0 4px 10px;
  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(-8px) scale(1.03); }
.csel .cs-head { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 52px; width: 100%; text-align: center; margin-bottom: 6px; pointer-events: none; }
.csel .nm { font-weight: bold; font-size: clamp(14px, 3.2vw, 18px); 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(11.5px, 2.6vw, 13px); color: #ded2b2; text-shadow: 0 1px 3px #000; line-height: 1.25; margin-top: 3px; }
.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(160px, 24vw, 260px); aspect-ratio: 1 / 1; max-height: 48vh; 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: 82%; height: 32px; margin-top: -20px; 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: 68px; height: 68px; border-radius: 50%; margin: 60px 0 30px; display: flex; align-items: center; justify-content: center;
  font-size: 42px; 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: 600px; background: linear-gradient(135deg, rgba(28,20,12,.95), rgba(12,16,14,.95)); border: 2px solid #b58c48; border-radius: 8px;
  box-shadow: 0 0 0 2px #0a0805, 0 8px 30px rgba(0,0,0,.85); padding: 12px 16px; margin-top: 10px; }
.csel .cs-info { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 4px 14px; font-size: 13.5px; }
.csel .cs-info .k { color: #caa868; }
.csel .cs-empty { text-align: center; color: #d5c5a0; font-size: 13.5px; }
.csel .cs-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.csel .cs-btns button { min-width: 120px; padding: 9px 16px; font-weight: bold; border-radius: 5px; border: 1px solid #a07a34; background: linear-gradient(#5a3f1c, #2e1f0d);
  color: #f3dfae; font-size: 14px; 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: 160px; font-size: 15px; 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ử (src/game/devtool.js, chỉ máy dev) — cùng kiểu khung menu client ---------- */
.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(8,14,12,.94); border: 1px solid #3c6e58; box-shadow: 0 0 0 1px #000, 0 8px 24px rgba(0,0,0,.7); font: 13px/16px var(--jx); color: #fff; }
.dv.on { display: flex; }
.dv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; padding: 4px 6px; border-bottom: 1px solid #3c6e58; background: rgba(31,74,58,.45); }
.dv-head .dv-tab { white-space: nowrap; } /* 7 thẻ (thêm Phong Lăng Độ, Dã Tẩu 27/10): xuống hàng cả thẻ, không ngắt chữ */
.dv-head b { color: rgb(255,217,78); margin-right: auto; font-weight: normal; }
.dv-body { overflow: auto; padding: 4px 8px 8px; }
.dv button { font: 13px/13px var(--jx); padding: 3px 7px; border-radius: 2px; background: #16302a; border: 1px solid #3c6e58; color: #fff; }
.dv button:hover { color: rgb(255,217,78); border-color: #6aa88c; }
.dv button.on, .dv .dv-tab.on { color: rgb(255,217,78); border-color: #8fd0b0; background: #1f4a3a; }
.dv input, .dv select { font: 12px/14px var(--font); padding: 2px 4px; border-radius: 2px; background: #0b1512; border: 1px solid #3c6e58; color: #fff; width: auto; }
.dv input[type=checkbox] { width: auto; margin: 0 2px 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: 2px 4px; } .quh-bang button { padding: 0 6px; margin-left: 2px; }
.dv .r { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin: 5px 0; }
.dv .k { color: #9fc9b5; min-width: 78px; }
.dv label { display: inline-flex; align-items: center; cursor: pointer; margin-left: 4px; }
.dv-sel { width: 100%; margin: 4px 0; }
.dv-note { color: #9fc9b5; font: 11px/14px var(--font); }
.dv-list { border: 1px solid #24443a; max-height: 230px; overflow: auto; margin: 4px 0; }
.dv-it { display: flex; align-items: center; gap: 6px; padding: 2px 4px; cursor: pointer; }
.dv-it:hover, .dv-it.on { background: #1f4a3a; }
.dv-it img { width: 28px; height: 28px; object-fit: contain; image-rendering: pixelated; flex: none; }
.dv-it small { display: block; color: #9fc9b5; font: 11px/13px var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-it button { flex: none; }
.dv-detail { border: 1px solid #24443a; padding: 4px 6px; white-space: pre-line; min-height: 20px; }
.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; padding: 2px 6px; margin: 6px 0; background: rgba(31,74,58,.18); }
.dv-dong:empty { display: none; }
.dv-dong .k small { color: #6f9785; }
.dv-detail .t1 { color: #fff; } .dv-detail .t2 { color: #8fb8ff; } .dv-detail .t3 { color: #ff9a8a; }
.dv-head { cursor: move; user-select: none; }
/* 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; }
/* 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); }
/* 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; }

/* 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-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: 612px; height: 373px; }
#jxwin .hd-nh > .tt-r { position: absolute; left: 14px; top: 12px; width: 344px; justify-content: center; }
#jxwin .hd-nh-bang { position: absolute; left: 14px; top: 48px; width: 344px; height: 296px; }
#jxwin .hd-nh-bang .tt-nh1 { position: absolute; left: 0; top: 0; margin: 0; transform-origin: 0 0; transform: scale(1.16); }
#jxwin .hd-nh-ds { position: absolute; left: 376px; top: 12px; width: 224px; }
.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; }

/* 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: #f3cf7a; font-weight: 600;
  text-shadow: 0 1px 2px #000, 0 0 6px #000; font-size: 15px; }
.zl-p { color: #fff6e0; font-variant-numeric: tabular-nums; }
.zl-bar { height: 12px; border: 1px solid #c79a4a; border-radius: 3px; background: rgba(10, 8, 6, .8); box-shadow: 0 0 0 1px #000, inset 0 1px 3px #000; overflow: hidden; }
.zl-bar i { display: block; height: 100%; width: 0; background: linear-gradient(#f6d77e, #c88a2a 55%, #9a6418); 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: linear-gradient(#ff9b8d, #d9281c 50%, #8a110b); }
#dt .dt-mp i { background: linear-gradient(#97b8ff, #2f5fd8 50%, #152f86); }
#dt .dt-ex i { background: linear-gradient(#ffe9a0, #d9a521 50%, #7c5a0a); }
#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 { color: #ffd36b; } /* chữ ký bản gốc (an-ky.js) */
body.dt.dt-ngang #dt .dt-mang { left: 6px; top: 68px; }
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 rgba(226, 185, 98, .78); background: radial-gradient(circle, rgba(16, 28, 24, .35) 0%, rgba(11, 22, 18, .68) 62%, rgba(0, 0, 0, .82) 100%);
  box-shadow: 0 0 0 1px #000, 0 0 14px rgba(226, 185, 98, .22), inset 0 0 14px rgba(0, 0, 0, .85); opacity: .68; transition: opacity .2s, left .18s, top .18s, border-color .18s; }
#dt .dt-can.dang > b { opacity: .98; border-color: #ffe48a; box-shadow: 0 0 0 1px #000, 0 0 18px rgba(255, 220, 120, .45), inset 0 0 14px rgba(0, 0, 0, .85); }
#dt .dt-can > b > .j-a { position: absolute; width: 0; height: 0; border: 5px solid transparent; opacity: .65; pointer-events: none; }
#dt .dt-can > b > .j-u { left: 50%; top: 5px; transform: translateX(-50%); border-bottom-color: #f3d38a; border-top: 0; }
#dt .dt-can > b > .j-d { left: 50%; bottom: 5px; transform: translateX(-50%); border-top-color: #f3d38a; border-bottom: 0; }
#dt .dt-can > b > .j-l { top: 50%; left: 5px; transform: translateY(-50%); border-right-color: #f3d38a; border-left: 0; }
#dt .dt-can > b > .j-r { top: 50%; right: 5px; transform: translateY(-50%); border-left-color: #f3d38a; border-right: 0; }
#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: 1.5px solid #ffd36b;
  background: radial-gradient(circle at 36% 30%, #fff4cf, #d8ab54 38%, #6d4f22 76%, #261b0c); box-shadow: 0 3px 8px #000d, inset 0 0 0 2px rgba(255, 240, 190, .45); }
/* 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(7, 1fr); gap: 3px 0; padding: 6px 2px 0; } /* 13 ô (anh 05/11 thêm Hoạt động) — 7 cột vẫn 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: 50%; right: auto; top: 6px; width: min(420px, 48vw); transform: translateX(-50%); }
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 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 ---------- */
body.dt.dt-ngang #dt .dt-tren { left: 6px; top: 6px; width: 318px; height: 58px; border: 1px solid #7f9f90; box-shadow: 0 0 0 1px #000, 0 3px 8px #000c; }
body.dt.dt-ngang #dt .dt-chan { left: 4px; top: 4px; width: 48px; height: 48px; }
body.dt.dt-ngang #dt .dt-ten { left: 60px; top: 2px; right: 6px; }
body.dt.dt-ngang #dt .dt-h2 { left: 60px; top: 22px; right: 6px; }
body.dt.dt-ngang #dt .dt-h3 { left: 60px; top: 39px; right: 6px; }
/* 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: 454px !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: grid; place-items: center; right: 104px; top: 6px; width: 40px; height: 40px; border: 1px solid #ffe48a; background: linear-gradient(#2c3d35, #0d1512); box-shadow: 0 0 0 1px #000; }
#dt .dt-mo > i { font: 24px/24px "VK Sans Serif 16", monospace; font-style: normal; color: #ffe48a; text-shadow: 1px 1px 0 #000; }
#dt .dt-mo > i::before { content: "«"; }
body.dt-hang #dt .dt-mo > i::before { content: "»"; }
#dt .dt-mo::after { content: "Mở rộng"; position: absolute; left: 50%; top: 42px; transform: translateX(-50%); font: 12px/14px var(--jx); color: #e9e3cf; text-shadow: 1px 1px 0 #000; }
body.dt-hang #dt .dt-mo::after { content: "Thu gọn"; }
body.dt.dt-ngang.dt-gon:not(.dt-hang) #dt .dt-tab, body.dt.dt-ngang:not(.dt-hang) #dt .dt-nt { display: none; }
/* hàng 5 thẻ lúc chơi */
body.dt.dt-ngang.dt-gon #dt .dt-tab { left: auto; right: 150px; top: 6px; bottom: auto; width: 296px; height: 58px; grid-template-columns: repeat(5, 56px); gap: 0 4px; background: none; box-shadow: none; }
body.dt.dt-ngang.dt-gon #dt .dt-tab > div { justify-content: flex-start; color: #e9e3cf; text-shadow: 1px 1px 0 #000; font-size: 12px; line-height: 14px; }
body.dt.dt-ngang.dt-gon #dt .dt-tic { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #7f9f90; background: linear-gradient(#22302b, #0d1512); box-shadow: 0 0 0 1px #000; }
body.dt.dt-ngang.dt-gon #dt .dt-tab > .on { background: none; }
body.dt.dt-ngang.dt-gon #dt .dt-tab > .on::before { display: none; }
/* máy hẹp hơn (Galaxy S22 / S23 ngang 780, máy cũ 640): thanh trạng thái hẹp lại, ô icon nhỏ lại; dưới 700 bỏ chữ dưới icon */
@media (max-width: 819px) {
  body.dt.dt-ngang #dt .dt-tren { width: 260px; }
  body.dt.dt-ngang.dt-gon #dt .dt-tab { right: 146px; width: 262px; grid-template-columns: repeat(5, 50px); gap: 0 3px; }
  body.dt.dt-ngang.dt-gon #dt .dt-tab > div { font-size: 11px; }
  body.dt.dt-ngang.dt-gon #dt .dt-tic { width: 38px; height: 38px; }
  body.dt.dt-ngang #dt .dt-nt, body.dt.dt-ngang.dt-gon #dt .dt-mo { width: 36px; height: 36px; }
  body.dt.dt-ngang #dt .dt-nt::after, #dt .dt-mo::after { top: 38px; font-size: 11px; }
  body.dt.dt-ngang #dt .dt-nt[data-a="toan"] { right: 414px !important; }
}
@media (max-width: 699px) {
  body.dt.dt-ngang #dt .dt-tren { width: 220px; }
  body.dt.dt-ngang.dt-gon #dt .dt-tab { right: 144px; width: 202px; height: 40px; grid-template-columns: repeat(5, 38px); }
  body.dt.dt-ngang.dt-gon #dt .dt-tab > div > span, body.dt.dt-ngang #dt .dt-nt::after, #dt .dt-mo::after { display: none; }
  body.dt.dt-ngang #dt .dt-nt, body.dt.dt-ngang.dt-gon #dt .dt-mo { width: 34px; height: 34px; }
  body.dt.dt-ngang #dt .dt-nt[data-a="toan"] { right: 352px !important; }
}
/* 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ữ); mở trang / chat: ẩn 2 nút */
body.dt.dt-ngang.dt-gon #dt .dt-tab > div > span, body.dt.dt-ngang #dt .dt-nt::after, #dt .dt-mo::after { padding: 0 2px; background: #0009; white-space: nowrap; }
body.dt.dt-ngang:not(.dt-gon) #dt .dt-nt { display: none; }
/* trang chức năng (mở thẻ): che cả màn, cột thẻ bên trái; chat: nửa trái, không cột thẻ. Nền hoa văn phóng 1,8 lần, dời cho dải trên của nền Kỳ
   Trân Các (2 ô xanh ở y 78–97 của hình gốc) nằm ngoài màn — bản dọc hẹp chỉ lấy phần trái của hình nên không lộ; bề ngang phủ tới ~1000 */
body.dt.dt-ngang #dt .dt-bang { top: 0; bottom: 0; left: 0; right: 0; box-shadow: none; }
body.dt.dt-ngang #dt .dt-bang::before { left: -40px; top: -180px; width: 1042px; height: 943px; }
body.dt.dt-ngang:not(.dt-gon):not(.dt-chat) #dt .dt-tab { left: 0; top: 0; bottom: 0; right: auto; width: 72px; height: auto; grid-template-columns: 1fr; grid-template-rows: repeat(5, 1fr);
  background: linear-gradient(90deg, #2a3b35, #101a16 60%, #0a100e); box-shadow: 2px 0 0 #8fae9f, 3px 0 0 #000; }
body.dt.dt-ngang:not(.dt-gon):not(.dt-chat) #dt .dt-tab > .on::before { left: 0; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }
body.dt.dt-ngang #dt .dt-dau { margin: 6px 6px 0 80px; }
body.dt.dt-ngang.dt-cs #dt .dt-bien { visibility: hidden; }
body.dt.dt-ngang.dt-cs #dt .dt-nutda { width: 36px; height: 36px; padding: 0; text-align: center; font: 20px/34px "VK Sans Serif 16", monospace; }
body.dt.dt-ngang #dt .dt-luoi { margin-left: 80px; padding: 14px 16px 0 0; gap: 12px 0; }
body.dt.dt-ngang #dt .dt-viec { margin: 16px 16px 0 80px; }
body.dt.dt-ngang.dt-chat #dt .dt-bang { right: auto; 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-tab { 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 */
body.dt.dt-ngang #dt .dt-mm { right: 6px; top: 6px; width: 88px; height: 88px; }
body.dt.dt-ngang #dt .dt-bd { left: auto; right: 6px; top: 100px; transform: none; max-width: 260px; font-size: 14px; }
body.dt.dt-ngang #dt .dt-tin { left: 6px; top: auto !important; bottom: 190px; width: 300px; }
body.dt.dt-ngang #dt .dt-nutt { left: 6px; top: auto !important; bottom: 156px; }
/* 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; }
body.dt.dt-ngang #dt .dt-noi, body.dt.dt-ngang #dt .dt-nhat, body.dt.dt-ngang #dt .dt-sap { left: 50%; right: auto; top: auto !important; bottom: 10px; transform: translateX(-50%); }
body.dt.dt-ngang.dt-noi-co #dt .dt-nhat, body.dt.dt-ngang.dt-noi-co #dt .dt-sap, body.dt.dt-ngang.dt-sap-co #dt .dt-nhat { bottom: 60px; }
body.dt.dt-ngang.dt-noi-co.dt-sap-co #dt .dt-nhat { bottom: 110px; }
@media (max-height: 349px) { body.dt.dt-ngang #dt .dt-bd { right: 104px; top: 66px; } } /* màn thấp (thanh trình duyệt): tên bãi dưới hàng thẻ, vòng ngoài khỏi đè */
/* 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: 128px; right: 6px; width: 96px; z-index: 1; }
@media (max-height: 387px) { body.dt.dt-ngang #dt .dt-tudanh { top: 66px; right: 100px; } }
@media (max-height: 349px) { body.dt.dt-ngang #dt .dt-tudanh { top: 100px; 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 thanh trạng thái; bảng Mộc nhân dưới nữa (hàng nút việc làm của món: giữa, vừa chữ — như dựng dọc) */
body.dt.dt-ngang #jxhud .jx-stbar { top: 86px !important; }
body.dt.dt-ngang:not(.dt-gon) #jxhud .jx-stbar { display: none !important; }
body.dt.dt-ngang .mn { top: 116px; 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 (anh 05/11 — src/game/huongdan.js): khung client uiactivityguide\activityguide.ini 650 × 450 (hình: cong-cu/
   dung-huong-dan.mjs); chỗ các phần trong trang lịch theo activitycalendar.ini (gốc 19, 54). Chữ client cỡ 12 -> VK Sans Serif 13, viền đen ---------- */
#jxwin .hd-khung { color: rgb(169,211,190); font: 13px/13px "VK Sans Serif 13", "IBM Plex Mono", monospace; }
#jxwin .hd-khung .hd-ngay { position: absolute; left: 440px; top: 12px; width: 200px; height: 16px; white-space: nowrap; color: rgb(255,250,196); pointer-events: none;
  text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000; }
/* 612 × 373 ở (19, 54) = đúng ô trong suốt của hình khung hd_nen.png (đo 13/11: hàng 54–426 trong suốt, 427 viền tối của thanh Đóng) — không thu nhỏ (lượt 88 thử
   364 thì hở 9 hàng lộ mặt đất). Danh sách cao đúng bội số dòng để không có dòng bị cắt ngang (anh 13/11 "bị lệch giao diện, bấm vào rồi nó cũng bị che") */
#jxwin .hd-trang { position: absolute; left: 19px; top: 54px; width: 612px; height: 373px; overflow: hidden; background-color: rgba(14,12,8,.94);
  text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000; }
#jxwin .hd-trang.hd-t0 { background: url(../../assets/ui/win/img/hd_trang.png) no-repeat, rgba(14,12,8,.9); }
#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-r { display: flex; gap: 6px; padding: 7px 8px; border-bottom: 1px solid #2a2418; }
#hd-dt .hd-dt-r > span:nth-child(1) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#hd-dt .hd-dt-r > span:nth-child(2) { width: 82px; white-space: nowrap; }
#hd-dt .hd-dt-r > span:nth-child(3) { width: 112px; text-align: right; white-space: nowrap; }
#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; }
#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ý JX WEB By Hùng */
.ak-logo { position: relative; z-index: 1; display: block; width: min(35vw, 410px); max-width: 86vw; aspect-ratio: 1 / 1; object-fit: contain; pointer-events: none; user-select: none;
  -webkit-user-drag: none; filter: drop-shadow(0 10px 26px rgba(0,0,0,.7)); }
.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: #f6cb78; font-size: 11.5px; }
#s-login { flex-direction: row; gap: 3.5vw; }
#s-login #lg-card > h1 { display: none; }
#s-login .login { width: min(410px, calc(100vw - 24px)); }
/* Chọn máy chủ ngay trên màn đăng nhập */
.lg-sv-box { margin: 0 0 11px; padding: 7px 8px; border-radius: 6px; background: rgba(0,0,0,.44); border: 1px solid rgba(201,154,74,.4); }
.lg-sv-head { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: #e2cfa1; font-weight: 600; margin-bottom: 6px; }
.lg-sv-rf { background: transparent; border: 1px solid rgba(201,154,74,.45); color: #ffd36b; border-radius: 4px; padding: 1px 6px; font-size: 12px; cursor: pointer; line-height: 1.2; }
.lg-sv-rf:hover { background: rgba(201,154,74,.2); }
.lg-sv-list { display: flex; flex-direction: column; gap: 5px; max-height: 132px; overflow-y: auto; }
.lg-sv-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 6px 8px; border-radius: 5px; border: 1px solid rgba(255,255,255,.12); background: rgba(18,22,19,.75); color: #e5ddc8; text-align: left; font: inherit; cursor: pointer; transition: all .15s; }
.lg-sv-item:hover { border-color: rgba(244,203,110,.55); background: rgba(45,38,22,.65); }
.lg-sv-item.on { border-color: #f4cb6e; background: linear-gradient(90deg, rgba(184,131,44,.32), rgba(35,28,16,.8)); box-shadow: inset 0 0 0 1px rgba(255,232,162,.25); }
.lg-sv-item.off { opacity: .72; }
.lg-sv-item .sv-nm { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.lg-sv-item .sv-nm b { font-size: 12.5px; color: #fff6dc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-sv-item.on .sv-nm b { color: #ffd970; }
.lg-sv-item .sv-nm small { font-size: 10.5px; color: #aba18b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-sv-item .sv-st { flex: 0 0 auto; font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 99px; white-space: nowrap; }
.lg-sv-item .sv-st.on { background: rgba(56,214,136,.18); color: #6cf5ad; border: 1px solid rgba(56,214,136,.45); }
.lg-sv-item .sv-st.maint { background: rgba(245,170,66,.18); color: #ffd27d; border: 1px solid rgba(245,170,66,.45); }
.lg-sv-item .sv-st.full { background: rgba(240,101,93,.2); color: #ff9c95; border: 1px solid rgba(240,101,93,.5); }
.lg-sv-item .sv-st.off { background: rgba(150,150,150,.18); color: #b5b5b5; border: 1px solid rgba(150,150,150,.35); }
/* Thanh chuyển tab Đăng nhập / Đăng ký / Quên mật khẩu */
.lg-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0 0 14px; padding: 3px; border-radius: 6px; background: rgba(0,0,0,.45); border: 1px solid rgba(201,154,74,.35); }
.lg-tab { background: transparent; border: 0; color: #c7bba1; font: inherit; font-size: 13px; font-weight: 600; padding: 7px 6px; border-radius: 4px; cursor: pointer; transition: background .15s, color .15s; }
.lg-tab:hover { color: #ffe7a8; background: rgba(201,154,74,.14); }
.lg-tab.on { background: linear-gradient(180deg, #b8832c, #7b5317); color: #fff8e2; box-shadow: inset 0 1px 0 rgba(255,234,170,.45), 0 1px 4px rgba(0,0,0,.5); }
.lg-pane { display: none; }
.lg-pane.on { display: block; }
.lg-ok { color: #6ef09c; font-size: 13px; min-height: 0; margin: 4px 0 8px; line-height: 1.4; }
.lg-ok:empty { display: none; }
.lg-full { width: 100%; padding: 9px 14px; font-weight: 700; }
.lg-links { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 10px; font-size: 12.5px; color: #9c8f73; flex-wrap: wrap; }
.lg-links a { color: #ffd36b; text-decoration: none; }
.lg-links a:hover { text-decoration: underline; color: #ffeaad; }
#s-login .lg-pane label { margin-bottom: 8px; }
@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) {
  #s-login { flex-direction: column; justify-content: flex-start; gap: 8px; padding: 10px 0 14px; }
  #s-login .ak-logo { width: min(50vw, 200px); margin: 4px 0 0; flex: 0 1 auto; min-height: 64px; }
  #s-login > #lg-card { 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) {
  #s-login.on { display: grid; grid-template-columns: minmax(0, min(36vw, 280px)) minmax(0, 380px); grid-template-rows: minmax(0, 1fr) auto;
    gap: 0 2.5vw; justify-content: center; align-items: start; padding: 6px 0; }
  #s-login > .ak-logo { grid-area: 1 / 1; width: 100%; height: auto; max-height: 75vh; margin: auto 0; }
  #s-login > #lg-card { 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 { position: absolute; top: 10px; left: 12px; height: min(15vh, 128px); z-index: 2; pointer-events: none; filter: drop-shadow(0 4px 12px rgba(0,0,0,.6)); }
@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; }
/* 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; }

/* 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; }
/* dòng giới thiệu JX WEB By Hùng ở màn đăng nhập */
.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; }
/* 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; background: #3c4a3e; text-align: center; white-space: nowrap;
  font: 16px/25px "VK Sans Serif 16", var(--jx); color: #e8f6ea; 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; }
