/* ===== Ba menu chính làm lại (js/menus.js) trên nền UI kit (ui/ui-kit.css) =====
   Màu hệ ngũ hành của nhân vật: --el (đặt trên .k-dialog). Màu độ hiếm của món đồ: --rc (đặt trên ô). */

/* ---------- Nhân vật: một màn hình, hai cột ---------- */
.cm-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:start}
.cm-left,.cm-right{display:flex;flex-direction:column;gap:10px;min-width:0}
.cm-box{padding:12px 14px;border-radius:16px;background:var(--k-card);box-shadow:inset 0 0 0 1px var(--k-line)}
.cm-box h4{margin:0 0 8px;font:600 11px/1.4 var(--font);letter-spacing:.8px;text-transform:uppercase;color:var(--k-dim)}
.cm-box h5{margin:0 0 6px;font:600 10.5px/1.4 var(--font);letter-spacing:.8px;text-transform:uppercase}

/* tên + danh hiệu + 2 nút */
.cm-name{display:flex;align-items:center;justify-content:center;gap:4px;min-height:30px}
.cm-name b{font:600 17px/1.2 var(--font);letter-spacing:.2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-ren{width:30px;height:30px}.cm-ren svg{width:16px;height:16px}
/* danh hiệu đang đeo: huy hiệu viên thuốc vàng giữa hai đường ruy băng mờ dần */
.cm-title{display:flex;align-items:center;gap:10px;margin-top:-4px}
.cm-title::before,.cm-title::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,transparent,rgba(255,193,7,.45))}
.cm-title::after{background:linear-gradient(90deg,rgba(255,193,7,.45),transparent)}
.cm-tchip{display:inline-flex;align-items:center;gap:6px;max-width:80%;height:26px;padding:0 13px 0 9px;border:0;border-radius:999px;cursor:pointer;
  background:rgba(255,193,7,.14);box-shadow:inset 0 0 0 1px rgba(255,193,7,.45),0 2px 8px rgba(255,193,7,.12);
  color:var(--k-acc-lt);font:600 12.5px/1 var(--font);letter-spacing:.3px;transition:background-color .15s,box-shadow .15s}
.cm-tchip svg{flex:none;width:15px;height:15px;fill:currentColor}
.cm-tchip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-tchip:hover{box-shadow:inset 0 0 0 1px rgba(255,213,79,.8),0 2px 10px rgba(255,193,7,.22)}
.cm-tchip:focus-visible{outline:2px solid var(--k-acc-lt);outline-offset:2px}
.cm-acts{display:grid;grid-template-columns:1fr 1fr;gap:8px}

/* người giấy JX: lưới 3 cột × 5 hàng, áo và vũ khí ô cao; nhân vật động mờ phía sau */
.cm-doll{position:relative;display:grid;grid-template-columns:repeat(5,58px);grid-template-rows:repeat(5,54px);gap:8px;justify-content:space-between;
  padding:14px 20px;border-radius:18px;overflow:hidden;
  background:radial-gradient(70% 40% at 50% 96%,rgba(var(--sp,255,214,140),.2),transparent 70%),radial-gradient(120% 90% at 50% 70%,transparent 40%,rgba(0,0,0,.45)),#0d1210;box-shadow:inset 0 0 0 1px var(--k-line)}
/* đèn chiếu vào hình nhân vật (2026-10-23): vệt sáng hình thang từ đỉnh khung xuống chân nhân vật, nền và ô đồ tối đi để nhân vật nổi bật; tĩnh, không filter */
.cm-doll::before{content:"";position:absolute;left:50%;top:0;bottom:30px;width:300px;transform:translateX(-50%);pointer-events:none;z-index:0;background:conic-gradient(from 166deg at 50% -110px,transparent,rgba(var(--sp,255,226,160),.17) 9deg,rgba(var(--sp,255,226,160),.17) 19deg,transparent 28deg);-webkit-mask-image:linear-gradient(to bottom,transparent,rgba(0,0,0,.35) 20%,#000 70%,#000 88%,transparent);mask-image:linear-gradient(to bottom,transparent,rgba(0,0,0,.35) 20%,#000 70%,#000 88%,transparent)}
.cm-fx{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}   /* trước hình nhân vật, sau các ô đồ (ô đứng sau trong DOM) */
/* hình nhân vật ở đáy cột giữa (chỗ Thắt lưng / Ngựa cũ): không bị ô che nên rõ, mép mờ dần */
.cm-hero{position:absolute;left:50%;bottom:4px;width:240px;height:190px;transform:translateX(-50%);opacity:.95;pointer-events:none;z-index:0;-webkit-mask-image:linear-gradient(to bottom,transparent,#000 22%);mask-image:linear-gradient(to bottom,transparent,#000 22%)}
/* ô một ô nằm giữa khoảng hai hàng (Thắt lưng, Ngựa) */
.cm-slot.cm-mid{align-self:center;height:calc(50% - 4px)}
.cm-slot{position:relative;z-index:1;width:100%;height:100%;padding:0;border:0;border-radius:14px;cursor:pointer;display:grid;place-items:center;
  background:rgba(8,11,10,.72);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--rc,#fff) 55%,transparent);transition:background-color .15s,box-shadow .15s,transform .1s}
.cm-slot:hover{background:rgba(26,33,30,.92);box-shadow:inset 0 0 0 2px var(--rc,#fff)}
.cm-slot:active{transform:scale(.96)}
.cm-slot:focus-visible{outline:2px solid var(--k-acc-lt);outline-offset:2px}
.cm-slot img{max-width:42px;max-height:42px;object-fit:contain;pointer-events:none}
.cm-tall img{max-width:52px;max-height:100px}

.cm-enh{position:absolute;right:6px;top:4px;font:700 10px/1 var(--font);color:var(--k-acc-lt);text-shadow:0 1px 2px #000}

.cm-bad{box-shadow:inset 0 0 0 2px var(--k-danger)!important}
.cm-bad img{opacity:.45;filter:grayscale(.6)}
.cm-warn{position:absolute;left:50%;top:-6px;transform:translateX(-50%);width:16px;height:16px;border-radius:50%;display:grid;place-items:center;
  background:var(--k-danger);color:#fff;font:700 11px/1 var(--font);text-decoration:none}
.cm-empty{background:rgba(0,0,0,.22);box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.08)}
.cm-empty span{font:500 10px/1.15 var(--font);color:var(--k-faint);text-align:center;padding:0 3px}
.cm-empty:hover{box-shadow:inset 0 0 0 1.5px var(--k-line2)}
.cm-alert{display:flex;gap:10px;align-items:center;padding:9px 12px;border-radius:14px;background:var(--k-danger-tone);font-size:12px;line-height:1.4;color:#f2b8b5}
.cm-alert svg{flex:none;width:18px;height:18px;fill:var(--k-danger)}
.cm-alert b{color:#ffdad6;font-weight:500}

/* kháng: 5 ô màu hệ · may mắn / phúc duyên / kinh nghiệm */
.cm-rts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.cm-rt{display:flex;flex-direction:column;align-items:center;gap:2px;padding:7px 2px;border-radius:12px;background:var(--k-input);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c) 40%,transparent)}
.cm-rt span{font-size:11px;color:var(--c)}
.cm-rt b{font:600 14px/1.1 var(--font);font-variant-numeric:tabular-nums}
.cm-neg{color:#ff8a80}




/* đầu cột phải: phái · hệ · cấp · EXP · lực chiến */














/* lực tay trái / phải */

.cm-hands>.cm-box{min-width:0}




/* tiềm năng */
.cm-bh{display:flex;align-items:center;gap:8px;margin-bottom:4px}
.cm-bh h4{flex:1;margin:0}
.cm-bh h4 b{margin-left:4px;font-size:13px;letter-spacing:0;color:var(--k-text)}
.cm-haspts{box-shadow:inset 0 0 0 1.5px rgba(255,193,7,.45)}
.cm-haspts .cm-bh h4 b{color:var(--k-acc-lt)}
.cm-bh .k-btn{height:30px;padding:0 13px;font-size:12px}
.cm-at{display:grid;grid-template-columns:1fr auto auto auto auto;align-items:center;gap:6px;padding:5px 0}   /* tên · X · giá trị · − · + */
.cm-at+.cm-at{border-top:1px solid var(--k-line)}
.cm-at span{font-size:14px}
.cm-at>b{min-width:40px;margin-right:2px;text-align:right;font:600 15px/22px var(--font);font-variant-numeric:tabular-nums}
.cm-pmb{width:22px;height:22px;margin-top:2px;padding:0;border:0;border-radius:50%;display:grid;place-items:center;cursor:pointer;background:var(--k-input);box-shadow:inset 0 0 0 1px var(--k-line2);color:#cfd8d3;transition:background-color .15s}
.cm-pmb svg{width:13px;height:13px;fill:currentColor}
.cm-pmb.cm-clr{background:rgba(255,255,255,.05);box-shadow:inset 0 0 0 1px var(--k-line2);color:#c9d3cd}
.cm-pmb.cm-clr:hover:not(:disabled){background:var(--k-danger-tone);color:#ff8a80}
.cm-pmb.cm-clr:disabled{opacity:0}   /* chưa cộng điểm: ẩn hẳn, giữ chỗ cho thẳng cột */
.cm-pmb.cm-plus{background:var(--k-acc-tone);box-shadow:none;color:var(--k-acc-lt)}
.cm-pmb:hover:not(:disabled){background:var(--k-hover)}
.cm-pmb.cm-plus:hover:not(:disabled){background:var(--k-acc-tone2)}
.cm-pmb:disabled{opacity:.3;cursor:default}
.cm-pmb:focus-visible{outline:2px solid var(--k-acc-lt);outline-offset:2px}

/* chỉ số: sinh tồn / tấn công */
.cm-stats{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.cm-stats>div:first-child h5{color:#81c784}
.cm-stats>div:last-child h5{color:#ffb74d}
.cm-kv{display:flex;align-items:baseline;gap:6px;padding:3px 0}
.cm-kv span{flex:1;min-width:0}
.cm-kv span{font-size:12.5px;color:var(--k-dim)}
.cm-kv b{font:600 13.5px var(--font);font-variant-numeric:tabular-nums;text-align:right}
.cm-kv em{font-style:normal;font-size:11px;color:#81c784;font-variant-numeric:tabular-nums}   /* hồi phục mỗi giây, ngay sau giá trị */

/* khung hẹp: một cột */
.k-narrow .cm-wrap{grid-template-columns:1fr}
.k-narrow .cm-doll{padding:12px 14px}

/* ---------- Danh hiệu (js/menus.js openTitles) ---------- */
.tl-ic{flex:none;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--k-input);color:var(--k-faint);box-shadow:inset 0 0 0 1px var(--k-line)}
.tl-ic svg{width:22px;height:22px;fill:currentColor}
/* đang đeo */
.tl-cur{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:18px;background:var(--k-acc-tone);box-shadow:inset 0 0 0 1px rgba(255,193,7,.4)}
.tl-cur .tl-ic{width:48px;height:48px;border-radius:14px;background:rgba(255,193,7,.22);color:var(--k-acc-lt);box-shadow:none}
.tl-cur .tl-ic svg{width:26px;height:26px}
.tl-cur>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.tl-cur small{font-size:11.5px;color:var(--k-dim)}
.tl-cur b{font:600 17px/1.25 var(--font);color:var(--k-acc-lt)}
.tl-cur span{font-size:12.5px;color:#dfe7e2}
.tl-cur.tl-none{background:var(--k-card);box-shadow:inset 0 0 0 1px var(--k-line)}
.tl-cur.tl-none .tl-ic{background:var(--k-input);color:var(--k-faint)}
.tl-cur.tl-none b{color:var(--k-text)}
.tl-cur.tl-none span{color:var(--k-dim)}
/* thanh: số đã mở + lọc */
.tl-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.tl-bar>span{font-size:13px;color:var(--k-dim)}
.tl-bar>span b{font-size:15px;color:var(--k-text)}
/* danh sách */
.tl-list{display:flex;flex-direction:column;gap:8px}
.tl-row{display:flex;align-items:center;gap:12px;padding:10px 12px 10px 10px;border-radius:16px;background:var(--k-card);box-shadow:inset 0 0 0 1px var(--k-line)}
.tl-row:not(.tl-lock) .tl-ic{background:rgba(129,199,132,.14);color:#81c784;box-shadow:none}
.tl-wear{box-shadow:inset 0 0 0 1.5px rgba(255,193,7,.55)}
.tl-wear .tl-ic{background:var(--k-acc-tone)!important;color:var(--k-acc-lt)!important}
.tl-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.tl-t b{font:500 14px/1.3 var(--font)}
.tl-bonus{font-size:12.5px;color:#81c784}
.tl-lock .tl-bonus{color:var(--k-dim)}
.tl-t small{font-size:11.5px;line-height:1.4;color:var(--k-dim)}
.tl-t .tl-rw{color:var(--k-faint)}
.tl-lock .tl-t b{color:#c9d3cd}
.tl-prog{display:flex;align-items:center;gap:8px;margin-top:3px}
.tl-prog i{flex:1;height:6px;border-radius:999px;background:var(--k-input);overflow:hidden}
.tl-prog i b{display:block;height:100%;border-radius:999px;background:var(--k-acc)}
.tl-prog span{flex:none;font-size:11px;color:var(--k-dim);font-variant-numeric:tabular-nums}
.tl-row .k-btn{height:32px;padding:0 16px}
/* trạng thái (không bấm được): chữ + biểu tượng, không nền / viền để không bị nhầm là nút */
.tl-on{flex:none;display:inline-flex;align-items:center;gap:4px;padding:0 4px;color:var(--k-acc-lt);font:600 12.5px var(--font)}
.tl-on svg{width:16px;height:16px;fill:currentColor}
.tl-off{flex:none;display:inline-flex;align-items:center;padding:0 4px;color:var(--k-faint);font:500 12px var(--font)}

/* ---------- Hoạt động (js/menus.js openActs) ---------- */
/* nút "Hoạt động" thay 4 nút cũ ở góc trái (PC) */
.acbtn{display:none}
html.nu #jxActs #svBtn,html.nu #jxActs #actSiege,html.nu #jxActs #actTongKim,html.nu #jxActs #actTower{display:none!important}
html.nu .acbtn{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 10px 0 8px;border:0;border-radius:999px;cursor:pointer;pointer-events:auto;   /* chữ như nút Nhân vật; nền trong để thấy sân */
  background:rgba(20,26,24,.5);color:#eef3f0;box-shadow:0 1px 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.12);font:500 9px/1 var(--font);letter-spacing:.1px;text-shadow:0 1px 2px rgba(0,0,0,.6);transition:background-color .15s,color .15s}
html.nu .acbtn svg{width:15px;height:15px;fill:#ffd54f}
html.nu .acbtn:hover,html.nu .acbtn.on{background:rgba(255,193,7,.2);color:#ffd54f}
html.nu .acbtn em{display:grid;place-items:center;min-width:16px;height:16px;padding:0 4px;text-shadow:none;border-radius:999px;background:#ffc107;color:#1f1600;font:700 9.5px/1 var(--font);font-style:normal}
html.nu .acbtn em[hidden]{display:none}
html.nu .acbtn:focus-visible{outline:2px solid #ffd54f;outline-offset:2px}

/* thẻ chính của từng hoạt động */
.acmenu .ac-hero{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:18px;background:var(--k-card);box-shadow:inset 0 0 0 1px var(--k-line)}
   
.ac-hero{background:radial-gradient(90% 120% at 0% 0%,color-mix(in srgb,var(--ac) 14%,transparent),transparent 60%),var(--k-card)!important}
.ac-ic{flex:none;width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:color-mix(in srgb,var(--ac) 18%,transparent);color:var(--ac)}
.ac-ic svg{width:28px;height:28px;fill:currentColor}
.ac-ht{flex:1;min-width:0}
.ac-ht>b{display:block;font:600 16px/1.3 var(--font)}
.ac-ht>p{margin:2px 0 0;font-size:12.5px;line-height:1.45;color:var(--k-dim)}
.ac-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.ac-chips span{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:999px;background:rgba(0,0,0,.22);font-size:11.5px;color:#dfe7e2;font-variant-numeric:tabular-nums}
.ac-chips .ac-live{background:color-mix(in srgb,var(--ac) 20%,transparent);color:var(--ac);box-shadow:none}
.ac-hero>.k-btn{flex:none}
.ac-note{flex:none;font-size:12.5px;color:var(--k-dim);padding:0 6px}
/* luật tuần */
.ac-week{display:flex;gap:12px;align-items:flex-start;padding:11px 14px;border-radius:14px;background:rgba(255,183,77,.08);box-shadow:inset 0 0 0 1px rgba(255,183,77,.25)}
.ac-week svg{flex:none;width:18px;height:18px;margin-top:1px;fill:#ffb74d}
.ac-week small{display:block;font:600 11px/1.4 var(--font);letter-spacing:.6px;text-transform:uppercase;color:#ffb74d}
.ac-week p{margin:2px 0 0;font-size:12.5px;line-height:1.5;color:#dfe7e2}
/* luật chi tiết (gập) */
.ac-more{border-radius:14px;background:var(--k-card);box-shadow:inset 0 0 0 1px var(--k-line)}
.ac-more summary{display:flex;align-items:center;gap:8px;height:42px;padding:0 16px;cursor:pointer;list-style:none;font:600 11px var(--font);letter-spacing:.8px;text-transform:uppercase;color:var(--k-dim)}
.ac-more summary::-webkit-details-marker{display:none}
.ac-more summary::after{content:"";margin-left:auto;width:8px;height:8px;border-right:2px solid var(--k-dim);border-bottom:2px solid var(--k-dim);transform:rotate(45deg) translateY(-2px);transition:transform .2s}
.ac-more[open] summary::after{transform:rotate(-135deg) translateY(-2px)}
.ac-more>div{padding:0 16px 14px;font-size:12.5px;line-height:1.6;color:#dfe7e2}
.ac-list{margin:2px 0 0;padding-left:18px;font-size:12.5px;line-height:1.65;color:#dfe7e2}
/* thành (công thành) */
.ac-cities{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.ac-city{display:flex;flex-direction:column;gap:3px;padding:12px;border-radius:16px;background:var(--k-card);box-shadow:inset 0 0 0 1px var(--k-line)}
.ac-cn{display:flex;flex-direction:column;gap:2px;margin-bottom:2px}
.ac-cn b{font:600 13.5px var(--font)}
.ac-lv{font-size:11px;letter-spacing:1px;color:#ffb74d}.ac-lv i{font-style:normal;color:var(--k-line2)}
.ac-city small{font-size:11.5px;color:var(--k-dim)}
.ac-best{display:flex;align-items:center;gap:6px;margin:4px 0 8px}
.ac-best i,.ac-tower i{flex:1;height:6px;border-radius:999px;background:var(--k-input);overflow:hidden}
.ac-best i b,.ac-tower i b{display:block;height:100%;border-radius:999px;background:#ffb74d}
.ac-best span{font-size:11px;color:var(--k-dim);font-variant-numeric:tabular-nums}
.ac-city .k-btn{width:100%;height:30px;padding:0 8px;font-size:12px}
/* tiến trình tháp */



/* cửa hàng đổi lệnh */
.ac-bal{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 10px;border-radius:999px;background:var(--k-acc-tone);color:var(--k-acc-lt);font-size:12px}
.ac-bal svg{width:14px;height:14px;fill:currentColor}
.ac-bal b{font-variant-numeric:tabular-nums}
.ac-shop{display:flex;flex-direction:column}
.ac-item{display:flex;align-items:center;gap:12px;padding:8px 0}
.ac-item+.ac-item{border-top:1px solid var(--k-line)}
.ac-item .t{flex:1;min-width:0;font-size:13px;line-height:1.4}
.ac-item .t small{display:block;font-size:11px;color:var(--k-faint)}
.ac-cost{flex:none;font-size:12px;color:var(--k-dim);font-variant-numeric:tabular-nums}
.ac-item .k-btn{height:30px;padding:0 14px;font-size:12px}
/* hết lượt đổi (2026-10-29): cả hàng xám, nút trung tính */
.ac-item.ac-out .t,.ac-item.ac-out .ac-cost{opacity:.4}
.ac-item.ac-out .k-btn,.ac-item.ac-out .k-btn:disabled{background:rgba(255,255,255,.06)!important;color:rgba(255,255,255,.38)!important;box-shadow:none!important;border-color:transparent!important;opacity:1}
.k-narrow .ac-cities{grid-template-columns:1fr 1fr}
.k-narrow .ac-hero{flex-wrap:wrap}

/* ---------- Nhật ký sự kiện (js/eventlog.js): khung chat nổi góc dưới trái ---------- */
.ev-btn,.ev-box{display:none}
html.nu #jxChat{display:none!important}                         /* thay bằng khung nhật ký */
html.nu #t-log #logBox{display:none!important}                  /* ô nhật ký trùng trong bảng Giang hồ */
html.nu .acbtn[hidden]{display:none}
html.nu .ev-box:not([hidden]){position:absolute;left:10px;top:170px;z-index:30;display:flex;flex-direction:column;width:min(380px,calc(100% - 20px));height:340px;   /* left/top/height do eventlog.js đặt theo nút */
  border-radius:18px;background:rgba(27,34,32,.94);/* không blur: nền 94% đục nên blur gần như không thấy mà GPU phải làm lại mỗi khung khi bảng mở (2026-10-21) */box-shadow:0 12px 32px rgba(0,0,0,.5),inset 0 0 0 1px rgba(255,255,255,.08);
  color:#eef3f0;font-family:var(--font);color-scheme:dark;overflow:hidden;animation:evIn .18s cubic-bezier(.2,.8,.2,1)}
@keyframes evIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.ev-box{animation:none!important}}
.ev-h{display:flex;align-items:center;gap:8px;padding:8px 8px 6px 10px}
.ev-tabs{flex:1;display:flex;gap:4px;padding:3px;border-radius:999px;background:rgba(0,0,0,.25);box-shadow:inset 0 0 0 1px rgba(255,255,255,.07)}
.ev-tabs button{flex:1;height:28px;border:0;border-radius:999px;background:none;color:#9fb0a7;font:500 12.5px var(--font);cursor:pointer}
.ev-tabs button:hover{color:#eef3f0}
.ev-tabs button[aria-selected=true]{background:rgba(255,193,7,.18);color:#ffd54f;box-shadow:inset 0 0 0 1px rgba(255,193,7,.35)}
.ev-x{width:30px!important;height:30px!important}.ev-x svg{width:16px;height:16px}
.ev-body{flex:1;min-height:0;overflow-y:auto;padding:4px 12px 12px;scrollbar-width:thin;scrollbar-color:#3d4945 transparent;outline:none}
.ev-feed{display:flex;flex-direction:column;gap:2px}
.ev-line{padding:4px 8px;border-radius:8px;font-size:12.5px;line-height:1.45;color:#dfe7e2;overflow-wrap:anywhere}
.ev-line:nth-child(odd){background:rgba(255,255,255,.025)}
.ev-line:last-child{background:rgba(255,193,7,.07)}
.ev-empty{margin:16px 0;text-align:center;font-size:12.5px;color:#6f7d77}
.ev-jump{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 12px 0 8px;border:0;border-radius:999px;cursor:pointer;
  background:#ffc107;color:#1f1600;font:600 12px var(--font);box-shadow:0 4px 12px rgba(0,0,0,.45)}
.ev-jump svg{width:16px;height:16px;fill:currentColor}
.ev-jump[hidden]{display:none}
/* Sổ tay */
.ev-note{margin:2px 0 10px;font-size:11.5px;line-height:1.45;color:#9fb0a7}
.ev-day{padding:10px 12px;margin-bottom:8px;border-radius:14px;background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 1px rgba(255,255,255,.07)}
.ev-dh{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:8px}
.ev-dh b{font:600 13.5px var(--font)}
.ev-dh span{font-size:11.5px;color:#9fb0a7}
.ev-tiles{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.ev-tiles>div{padding:6px 10px;border-radius:10px;background:rgba(0,0,0,.22)}
.ev-tiles small{display:block;font-size:10.5px;color:#9fb0a7}
.ev-tiles b{display:block;font:600 14px/1.3 var(--font);font-variant-numeric:tabular-nums}
.ev-tiles .ev-bad{color:#ff8a80}
.ev-drops{display:flex;gap:6px;margin-top:8px}
.ev-drops span{display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:999px;font-size:11.5px;background:rgba(0,0,0,.22)}
.ev-drops .r2{color:#ffd24a}.ev-drops .r3{color:#c77bff}.ev-drops .rs{color:#ffe082}
.ev-sub{margin:12px 0 6px;font:600 11px/1.4 var(--font);letter-spacing:.8px;text-transform:uppercase;color:#9fb0a7}
.ev-deaths{display:flex;flex-direction:column;gap:4px}
.ev-death{display:flex;align-items:center;gap:10px;padding:6px 10px;border-radius:10px;background:rgba(239,83,80,.07)}
.ev-death time{flex:none;width:42px;font:600 12.5px var(--font);font-variant-numeric:tabular-nums;color:#ff8a80}
.ev-death time small{display:block;font-weight:400;font-size:10.5px;color:#9fb0a7}
.ev-death span{min-width:0;display:flex;flex-direction:column}
.ev-death span b{font:500 12.5px var(--font);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ev-death span small{font-size:11px;color:#9fb0a7}

/* Nhật ký > Hôm nay (thay nút + hộp thoại "Hôm nay") */
html.nu #jxToday{display:none!important}
html.nu .ev-btn.ev-has::after{content:"";position:absolute;top:2px;left:22px;width:8px;height:8px;border-radius:50%;background:#66bb6a;box-shadow:0 0 0 2px rgba(20,26,24,.9)}
html.nu .ev-btn{position:relative}
.ev-buff{margin:2px 0 8px;padding:7px 12px;border-radius:999px;background:rgba(129,199,132,.12);color:#a5d6a7;font-size:12px}
.ev-buff b{color:#c8e6c9}
.ev-today{display:flex;flex-direction:column;gap:6px}
.ev-trow{display:flex;align-items:center;gap:10px;padding:8px 8px 8px 12px;border-radius:12px;background:rgba(255,255,255,.035);box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
.ev-trow .t{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.ev-trow .t b{font:500 13px/1.3 var(--font);color:#9fb0a7}
.ev-trow .t small{font-size:11.5px;color:#6f7d77}
.ev-trow.ev-ready{background:rgba(255,193,7,.07);box-shadow:inset 0 0 0 1px rgba(255,193,7,.25)}
.ev-trow.ev-ready .t b{color:#eef3f0}
.ev-trow.ev-ready .t small{color:#9fb0a7}
.ev-trow .k-btn{height:28px;padding:0 14px;font-size:12px}

/* ---------- Võ công: dải điểm + thang cấp (màu loại chiêu: --lc) ---------- */
/* dải điểm: một dòng */
.vc-strip{display:flex;align-items:center;gap:8px;padding:6px 6px 6px 14px;border-radius:999px;background:var(--k-card);box-shadow:inset 0 0 0 1px var(--k-line)}
.vc-left{flex:none;font-size:12px;color:var(--k-dim);white-space:nowrap}
.vc-left b{font:600 15px var(--font);color:var(--k-text);font-variant-numeric:tabular-nums}
.vc-left.on b{color:var(--k-acc-lt)}
.vc-fcs{flex:1;min-width:0;display:flex;gap:5px;overflow:hidden}
.vc-fc{flex:0 1 auto;min-width:0;display:inline-flex;align-items:center;gap:5px;height:30px;padding:0 10px 0 8px;border:0;border-radius:999px;cursor:pointer;
  background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 1px var(--k-line2);color:var(--k-dim);font:500 12px var(--font);transition:background-color .15s,box-shadow .15s,color .15s}
.vc-fc svg{flex:none;width:15px;height:15px;fill:var(--lc)}
.vc-fc span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vc-fc b{font-weight:600;font-variant-numeric:tabular-nums;color:color-mix(in srgb,var(--lc) 60%,#fff)}
.vc-fc:hover{color:var(--k-text);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--lc) 60%,transparent)}
.vc-fc.on{background:color-mix(in srgb,var(--lc) 20%,transparent);box-shadow:inset 0 0 0 1.5px var(--lc);color:#fff}
.vc-fc:focus-visible{outline:2px solid var(--k-acc-lt);outline-offset:2px}
.vc-strip>.k-btn{flex:none;height:30px;padding:0 14px;font-size:12.5px}
.vc-reset{flex:none;width:30px;height:30px}
.vc-reset svg{width:17px;height:17px}
.vc-reset:disabled{opacity:.35;cursor:default}

/* thang cấp: rãnh dọc bên trái, mỗi bậc một mốc */
.vc-ladder{position:relative;margin-top:14px}
.vc-ladder::before{content:"";position:absolute;left:21px;top:14px;bottom:14px;width:2px;border-radius:2px;background:var(--k-line2)}
.vc-tier{position:relative;display:grid;grid-template-columns:56px minmax(0,1fr);gap:10px;align-items:start}
.vc-tier+.vc-tier{margin-top:12px}
.vc-tm{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding-top:8px}
.vc-tm i{width:16px;height:16px;margin-left:14px;border-radius:50%;display:grid;place-items:center;background:var(--k-surface);box-shadow:inset 0 0 0 2px var(--k-line2)}
.vc-tm i svg{width:10px;height:10px;fill:var(--k-faint)}
.vc-tm b{font:600 11.5px/1.2 var(--font);color:var(--k-faint);white-space:nowrap;font-variant-numeric:tabular-nums}
.vc-tier.open .vc-tm i{background:var(--k-acc);box-shadow:0 0 0 3px var(--k-surface)}
.vc-tier.open .vc-tm b{color:var(--k-acc-lt)}
.vc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:8px 18px}

/* thẻ chiêu: biểu tượng chiêu + huy hiệu loại đứng riêng, nổi bật (không khung); bên phải là khung mềm chứa tên / loại / điểm / nút.
   đã học: biểu tượng có quầng màu loại, khung ngả nhẹ màu loại · chưa học: khung xám trung tính · chưa đủ cấp: cả thẻ xám
   học tối đa: quầng vàng kim quanh biểu tượng + dấu MAX · sai vũ khí: biểu tượng xám, chữ đỏ */
.vc-sk{position:relative;display:flex;align-items:center;gap:0;min-width:0;cursor:pointer;border-radius:12px}
.vc-sk:focus-visible{outline:2px solid var(--k-acc-lt);outline-offset:2px}
.vc-body{flex:1;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:0 8px;margin-left:-21px;padding:6px 8px 6px 29px;border-radius:12px;
  background:color-mix(in srgb,var(--lc) 5%,rgba(255,255,255,.025));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--lc) 28%,transparent);transition:background-color .15s,box-shadow .15s}
.vc-sk:hover .vc-body{background:color-mix(in srgb,var(--lc) 9%,rgba(255,255,255,.04));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--lc) 50%,transparent)}
/* tên chiêu đã học: màu hệ ngũ hành của nhân vật (--el đặt trên .k-dialog) */
.vc-sk .vc-tx>b{color:color-mix(in srgb,var(--el,#f4f7f5) 85%,#fff)}
.vc-sk.vc-off .vc-body{background:rgba(255,255,255,.018);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.vc-sk.vc-off:hover .vc-body{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--lc) 40%,transparent)}
.vc-sk.vc-off .vc-tx>b{color:var(--k-dim);font-weight:500}
.vc-sk.vc-off .vc-type{color:var(--k-faint);font-weight:500}
.vc-sk.vc-off .vc-pt b{color:var(--k-faint)}
.vc-sk.vc-lock{filter:grayscale(1);opacity:.45}
.vc-sk.vc-lock:hover{opacity:.6}
.vc-sk.vc-nowp .vc-ic img{filter:grayscale(1);opacity:.5}
/* biểu tượng: không viền; đã học có quầng màu loại, học tối đa quầng vàng kim */
.vc-ic{position:relative;z-index:1;flex:none;width:42px;height:42px;display:grid;place-items:center}
.vc-ic img{width:38px;height:38px;border-radius:9px;pointer-events:none;filter:drop-shadow(0 2px 4px rgba(0,0,0,.6))}
.vc-sk:not(.vc-off) .vc-ic img{filter:drop-shadow(0 0 6px color-mix(in srgb,var(--lc) 60%,transparent)) drop-shadow(0 2px 3px rgba(0,0,0,.6))}
.vc-sk.vc-maxed .vc-ic img{filter:drop-shadow(0 0 7px rgba(255,200,60,.75)) drop-shadow(0 2px 3px rgba(0,0,0,.6))}
.vc-ic .vc-b{position:absolute;right:-6px;bottom:-6px;width:20px;height:20px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.7))}
.vc-tx{min-width:0;display:flex;flex-direction:column;gap:3px}
.vc-tx>b{display:flex;align-items:center;gap:5px;min-width:0;font:600 12.5px/1.25 var(--font)}
.vc-tx>b>span{min-width:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}/* 2026-11-13: tên chiêu xuống tối đa 2 dòng, không cắt "…" */
.vc-mainic{flex:none;width:14px;height:14px;display:grid;place-items:center;font-style:normal}
.vc-mainic svg{display:block;width:14px;height:14px;fill:var(--k-acc)}
/* dòng 2: loại (chữ màu loại, không viền) · DPS */
.vc-meta{display:flex;align-items:baseline;gap:8px;min-width:0;white-space:nowrap}
.vc-type{min-width:0;overflow:hidden;text-overflow:ellipsis;font:600 10.5px/1.3 var(--font);color:color-mix(in srgb,var(--lc) 75%,#fff)}
.vc-type.vc-wbad{color:#ff6e6e}
.k-narrow .vc-meta .vc-type:not(.vc-wbad):has(+ .vc-dps){display:none}
.vc-dps{flex:none;font:600 11px/1.3 var(--font);font-style:normal;color:var(--k-text);font-variant-numeric:tabular-nums}
.vc-dps small{font-size:10.5px;font-weight:500;color:var(--k-faint)}
/* điểm đã học / tối đa */
.vc-pt{display:flex;align-items:baseline;gap:1px;min-width:44px;justify-content:flex-end;font-variant-numeric:tabular-nums}
.vc-pt b{font:600 14px/1 var(--font)}
.vc-pt small{font-size:11px;color:var(--k-faint)}
.vc-pt em{margin-left:3px;font:600 10.5px var(--font);font-style:normal;color:#81c784}
/* học tối đa: dấu MAX vàng kim + viền vàng quanh biểu tượng */
.vc-max{display:flex;align-items:center;gap:3px;min-width:44px;justify-content:flex-end}
.vc-max svg{width:18px;height:18px;fill:#e9b949;fill:url(#jxGoldG);filter:drop-shadow(0 0 4px rgba(255,193,7,.45))}
.vc-max b{font:800 11px/1 var(--font);letter-spacing:.6px;background:linear-gradient(135deg,#fff3c4,#e9b949 45%,#9c6b1d);-webkit-background-clip:text;background-clip:text;color:transparent}
.vc-pm{display:flex;gap:6px}
.vc-pm .cm-pmb{width:24px;height:24px;margin:0}
.vc-pm .cm-pmb svg{width:14px;height:14px}
.vc-pm .cm-pmb:disabled{opacity:1;cursor:default;background:rgba(255,255,255,.03);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);color:#4f5b56}
/* dải điểm: huy hiệu loại trên viên lọc */
.vc-fc .vc-fcb{flex:none;width:17px;height:17px}

/* thanh nhỏ trong Bộ võ học */
.vc-bar{display:flex;gap:2px;height:6px;margin-top:6px;max-width:260px;border-radius:999px;overflow:hidden;background:var(--k-input)}
.vc-bar i{min-width:4px;background:rgba(255,255,255,.06)}

/* Bộ võ học */
.vc-bd{display:flex;align-items:center;gap:12px;padding:10px 0}
.vc-bd+.vc-bd{border-top:1px solid var(--k-line)}
.vc-bi{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.vc-bi b{font:600 13.5px var(--font)}
.vc-bi small{font-size:11.5px;color:var(--k-dim)}
.vc-bd .k-btns{flex-wrap:nowrap;margin:0}

.k-narrow .vc-grid{grid-template-columns:1fr}
.k-narrow .vc-tier{grid-template-columns:46px minmax(0,1fr)}

/* ---------- Hoạt động › Tài Xỉu ---------- */
.tx-table{margin-top:12px;padding:14px;border-radius:16px;background:var(--k-card);box-shadow:inset 0 0 0 1px var(--k-line);display:flex;flex-direction:column;gap:12px}
.tx-res{display:flex;align-items:center;gap:14px;padding:10px 14px;border-radius:14px;background:var(--k-input)}
.tx-res p{flex:1;margin:0;font-size:12.5px;color:var(--k-dim)}
.tx-res p b{color:var(--k-text)}
.tx-res.win{box-shadow:inset 0 0 0 1px rgba(129,199,132,.55);background:rgba(129,199,132,.08)}
.tx-res.win p{color:#a5d6a7}
.tx-res.lose{box-shadow:inset 0 0 0 1px rgba(239,83,80,.35)}
.tx-res.idle .tx-die{opacity:.45}
.tx-dice{display:flex;gap:8px}
.tx-dice.roll .tx-die{animation:txRoll .6s cubic-bezier(.2,.8,.2,1)}
.tx-dice.roll .tx-die:nth-child(2){animation-delay:.06s}.tx-dice.roll .tx-die:nth-child(3){animation-delay:.12s}
@keyframes txRoll{0%{transform:rotate(-200deg) scale(.6);opacity:0}70%{transform:rotate(12deg) scale(1.05)}100%{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.tx-dice.roll .tx-die{animation:none}}
.tx-die{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:2px;width:38px;height:38px;padding:6px;box-sizing:border-box;border-radius:9px;background:#f4efe6;box-shadow:0 2px 4px rgba(0,0,0,.45),inset 0 -2px 0 rgba(0,0,0,.12)}
.tx-die i{border-radius:50%}
.tx-die i.on{background:#1b2220}
.tx-die.red i.on{background:#d32f2f}
.tx-sum{display:flex;flex-direction:column;align-items:center;min-width:44px}
.tx-sum b{font:700 22px/1 var(--font);font-variant-numeric:tabular-nums}
.tx-sum small{font-size:11px;color:var(--k-dim)}
.tx-bet{display:flex;align-items:center;gap:10px;justify-content:space-between}
.tx-bet>span{font-size:12px;color:var(--k-dim)}
.tx-doors{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}
.tx-door{display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 6px;border:0;border-radius:16px;cursor:pointer;color:var(--k-text);
  background:rgba(255,255,255,.05);box-shadow:inset 0 0 0 1px var(--k-line2);transition:background-color .15s,box-shadow .15s,transform .1s}
.tx-door b{font:700 15px/1.1 var(--font)}
.tx-door small{font-size:11px;color:var(--k-dim)}
.tx-door em{font:600 12px var(--font);font-style:normal;color:var(--k-acc-lt)}
.tx-door:hover:not(:disabled){box-shadow:inset 0 0 0 1.5px var(--k-acc);background:var(--k-acc-tone)}
.tx-door:active:not(:disabled){transform:scale(.97)}
.tx-door:disabled{opacity:.4;cursor:default}
.tx-door.tx-boba{background:rgba(239,83,80,.08);box-shadow:inset 0 0 0 1px rgba(239,83,80,.35)}
.tx-door.tx-boba em{color:#ff8a80}
.tx-door:focus-visible{outline:2px solid var(--k-acc-lt);outline-offset:2px}
.tx-log{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--k-dim)}
.tx-log .w{color:#a5d6a7}

/* ---------- Bản đồ (bấm bản đồ nhỏ) ---------- */
.mp-cur{display:flex;align-items:center;gap:12px;margin-bottom:8px}
.mp-ct{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.mp-ct>b{font:600 16px var(--font)}
.mp-ct>span{font-size:12.5px;color:var(--k-dim)}
.mp-ct>span b{color:var(--k-text)}
.mp-boss{margin-left:6px;font-style:normal;font-weight:600;color:#ff8a80}
.mp-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:11.5px;color:var(--k-dim)}
.mp-el{font-weight:600;color:var(--c);white-space:nowrap}
.mp-nav{display:flex;gap:8px}
.mp-nav .k-iconbtn:disabled{opacity:.35;cursor:default}
.mp-zs{display:flex;flex-direction:column}
.mp-z{display:flex;align-items:center;gap:10px;min-height:40px;padding:4px 0}
.mp-z+.mp-z{border-top:1px solid var(--k-line)}
.mp-z .t{flex:1;min-width:0;display:flex;align-items:baseline;gap:8px}
.mp-z .t b{font:500 13.5px var(--font)}
.mp-z .t small{font-size:11.5px;color:var(--k-dim)}
.mp-z .k-btn{height:28px;padding:0 14px;font-size:12px}
.mp-z.here .t b{color:var(--k-acc-lt)}
.mp-here{font-size:11.5px;color:var(--k-acc-lt)}
.mp-z.lock .t b{color:var(--k-faint)}
.mp-lock{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;color:var(--k-faint)}
.mp-lock svg{width:12px;height:12px;fill:currentColor}

/* ---------- Nhật ký › Sổ tay › Việc cần làm ---------- */
.ev-sub0{margin-top:0}
.ev-todo{display:flex;flex-direction:column;gap:5px;margin-bottom:12px}
.ev-tdo{display:flex;align-items:center;gap:10px;width:100%;min-height:36px;padding:4px 8px 4px 6px;border:0;border-radius:999px;cursor:pointer;text-align:left;color:#eef3f0;
  background:rgba(255,193,7,.07);box-shadow:inset 0 0 0 1px rgba(255,193,7,.28);transition:background-color .15s,box-shadow .15s}
.ev-tdo:hover{background:rgba(255,193,7,.14);box-shadow:inset 0 0 0 1px rgba(255,193,7,.6)}
.ev-tdo:focus-visible{outline:2px solid #ffd54f;outline-offset:2px}
.ev-tdo .ic{flex:none;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:rgba(255,193,7,.16)}
.ev-tdo .ic svg{width:15px;height:15px;fill:#ffd54f}
.ev-tdo .t{flex:1;min-width:0;font:500 12.5px/1.3 var(--font);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ev-tdo .chev{flex:none;width:18px;height:18px;fill:#9fb0a7}

/* ---------- Túi: Hành trang · Nguyên liệu · Kho chung (js/menus.js openInv) ---------- */
.iv-bar{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.iv-cap{flex:none;display:grid;grid-template-columns:auto auto;align-items:baseline;gap:0 8px;min-width:120px}
.iv-cap>span{font-size:11.5px;color:var(--k-dim)}
.iv-cap>b{justify-self:end;font:600 14px var(--font);font-variant-numeric:tabular-nums}
.iv-cap>b small{font-size:11px;font-weight:500;color:var(--k-faint)}
.iv-cap>i{grid-column:1 / -1;height:4px;margin-top:4px;border-radius:999px;background:var(--k-input);overflow:hidden}
.iv-cap>i b{display:block;height:100%;border-radius:999px;background:#81c784}
.iv-cap.warn>i b{background:var(--k-acc)}.iv-cap.full>i b{background:var(--k-danger)}
/* tìm kiếm + sắp xếp: biểu tượng đứng riêng trước ô; ô nhập chỉ một viền pill */
.iv-ico{flex:none;width:20px;height:20px;display:grid;place-items:center}
.iv-ico svg{width:19px;height:19px;fill:var(--k-dim)}
.iv-bar .iv-kw{flex:1;min-width:0;height:34px;padding:0 14px!important;border:0!important;border-image:none!important;border-radius:999px!important;
  background:var(--k-input)!important;box-shadow:inset 0 0 0 1px var(--k-line2)!important;outline:none;color:var(--k-text);font:13px var(--font)}
.iv-bar .iv-kw:focus{box-shadow:inset 0 0 0 1.5px var(--k-acc)!important}
.iv-cap+.iv-ico{margin-left:6px}
.iv-bar .k-select,.iv-bar select{flex:none;width:150px}
.iv-filt{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.iv-chip{display:inline-flex;align-items:center;gap:4px;height:30px;padding:0 13px;border:0;border-radius:999px;cursor:pointer;font:500 12px var(--font);color:var(--k-dim);
  background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 1px var(--k-line2);transition:background-color .15s,box-shadow .15s,color .15s}
.iv-chip:hover{color:var(--k-text)}
.iv-chip.on{background:var(--k-acc-tone);box-shadow:inset 0 0 0 1px rgba(255,193,7,.55);color:var(--k-acc-lt)}
.iv-chip svg{width:16px;height:16px;fill:#81c784}
.iv-grid{display:grid;grid-template-columns:repeat(auto-fill,56px);grid-auto-rows:56px;justify-content:space-between;gap:12px 14px;padding:7px 7px 2px}

.iv-it{position:relative;width:100%;height:100%;padding:0;border:0;border-radius:12px;cursor:pointer;display:grid;place-items:center;
  background:rgba(14,19,17,.78);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--rc,#fff) 55%,transparent);transition:background-color .15s,box-shadow .15s,transform .1s}
.iv-it:hover{background:rgba(26,33,30,.92);box-shadow:inset 0 0 0 2px var(--rc,#fff)}
.iv-it:active{transform:scale(.96)}
.iv-it:focus-visible{outline:2px solid var(--k-acc-lt);outline-offset:2px}
.iv-it img{position:absolute;left:11%;top:11%;width:78%;height:78%;object-fit:contain;pointer-events:none}
.iv-it.bad{box-shadow:inset 0 0 0 2px var(--k-danger)}
.iv-it.bad img{opacity:.5;filter:grayscale(.6)}
.iv-enh{position:absolute;right:4px;bottom:3px;font:700 10px/1 var(--font);color:var(--k-acc-lt);text-shadow:0 1px 2px #000}
.iv-it .iv-el{position:absolute;left:-6px;top:-6px;width:21px;height:21px;z-index:1;filter:drop-shadow(0 1px 2px rgba(0,0,0,.7))}
.iv-up{position:absolute;right:-6px;top:-6px;z-index:1;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;text-decoration:none;background:#2e7d32;box-shadow:0 0 0 2px var(--k-surface),0 1px 3px rgba(0,0,0,.6)}
.iv-up svg{width:20px;height:20px;fill:#fff;transform:translateY(-1px)}
.iv-lk{position:absolute;left:4px;bottom:4px;width:12px;height:12px;text-decoration:none}
.iv-lk svg{width:12px;height:12px;fill:#cfd8d3;filter:drop-shadow(0 1px 1px #000)}
.iv-empty{margin:8px 2px;font-size:12.5px;color:var(--k-faint)}

.iv-sp{flex:1}
/* nguyên liệu */

.iv-mr+.iv-mr{border-top:1px solid var(--k-line)}



.iv-n{font:600 13px var(--font);font-variant-numeric:tabular-nums;min-width:36px;text-align:right}
.iv-ns{font-size:11px;color:var(--k-faint);min-width:52px;text-align:right;font-variant-numeric:tabular-nums}




/* kho chung */


.iv-ch{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:8px}
.iv-ch b{font:600 13px var(--font)}
.iv-ch span{font-size:12px;color:var(--k-dim);font-variant-numeric:tabular-nums}

.iv-hint{display:block;margin-top:8px;font-size:11px;color:var(--k-faint)}

.iv-gold>span{font-size:12px;color:var(--k-dim)}
.iv-gold>span b{color:var(--k-text);font-variant-numeric:tabular-nums}


/* hộp chi tiết món đồ */
.iv-det{display:flex;gap:12px;align-items:flex-start}
.iv-big{flex:none;width:64px;height:64px;border-radius:14px;display:grid;place-items:center;background:rgba(14,19,17,.8);box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--rc) 70%,transparent),0 0 12px color-mix(in srgb,var(--rc) 25%,transparent)}
.iv-big img{max-width:48px;max-height:48px}
.iv-lines{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;font-size:12px;line-height:1.45}
.iv-l.b{color:#dfe7e2}
.iv-l.m,.iv-l.on{color:#8fb4ff}
.iv-l.h{color:var(--k-faint)}   /* dòng ẩn chưa kích hoạt: xám, không tác dụng */
.iv-l.h.on{color:#8fb4ff}
.iv-l.off,.iv-l.dim{color:var(--k-faint)}
.iv-l.seal{color:#ffb74d;font-weight:600}
.iv-l.g{color:#a5d6a7}




.iv-c{display:flex;flex-direction:column;align-items:center;gap:1px;padding:5px 2px;border-radius:10px;background:rgba(255,255,255,.03)}
.iv-c small{font-size:10px;color:var(--k-faint)}
.iv-c b{font:600 12px var(--font);font-variant-numeric:tabular-nums}
.iv-c.up b{color:#81c784}.iv-c.dn b{color:#ff8a80}.iv-c.eq b{color:var(--k-dim)}
.ivitem .cm-alert{margin-top:10px}
.ivitem .k-foot{flex-wrap:wrap}

/* Túi: ngân lượng trên phụ đề (biểu tượng money2.png như HUD) */
.iv-gsub{display:inline-flex;align-items:center;gap:4px;font-variant-numeric:tabular-nums;color:#ffe082}
.iv-gsub img{width:15px;height:15px;object-fit:contain;transform:translateY(1px)}

/* Túi › Kho nguyên liệu (STG 2) */
.iv-msub{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}

/* Túi › Hành trang: Bộ lọc nhặt / Lò rèn — nút nhỏ có biểu tượng, cuối hàng lọc loại */
.iv-filt{align-items:center}
.iv-tool{display:inline-flex;align-items:center;gap:5px;height:30px;padding:0 12px 0 9px;border:0;border-radius:999px;cursor:pointer;
  background:rgba(255,255,255,.05);box-shadow:inset 0 0 0 1px var(--k-line2);color:#cfd8d3;font:500 11.5px var(--font);transition:background-color .15s,box-shadow .15s,color .15s}
.iv-tool svg{width:15px;height:15px;fill:var(--k-acc-lt)}
.iv-tool:hover{color:#fff;box-shadow:inset 0 0 0 1px rgba(255,213,79,.55)}
.iv-tool:focus-visible{outline:2px solid var(--k-acc-lt);outline-offset:2px}

/* Hộp chi tiết món: huy hiệu hệ, tiêu đề nhỏ + cấp yêu cầu, chip yêu cầu dưới ảnh */
.ivitem .k-badge.iv-elb{background:none;padding:0}
.ivitem .k-badge.iv-elb svg{width:30px;height:30px}
.ivitem .k-titles h2{font-size:13.5px}
.iv-hlv{display:inline-block;margin-right:8px;color:#dfe7e2;font-weight:600}
.iv-hlv.bad{color:#ff6e6e}
.iv-side{flex:none;width:64px;display:flex;flex-direction:column;gap:5px}
.iv-rq{display:flex;align-items:center;gap:5px;font-size:11.5px;color:#dfe7e2;white-space:nowrap;overflow:hidden}
.iv-rq svg{flex:none;width:14px;height:14px;fill:var(--qc)}
.iv-rq b{font-weight:600;overflow:hidden;text-overflow:ellipsis}
.iv-rq.bad b{color:#ff6e6e}
.iv-side .iv-big{margin-bottom:3px}

/* Nhân vật: biểu tượng hệ đè góc trên trái ô trang bị (giống ô Túi); không hiện cấp món */
.cm-slot .iv-el{position:absolute;left:-5px;top:-5px;width:19px;height:19px;z-index:2;filter:drop-shadow(0 1px 2px rgba(0,0,0,.7))}

/* Hộp chi tiết món: chip thao tác phụ nhỏ hơn, mỗi chip một màu; cảnh báo sát hàng nút */
.ivitem .k-foot{padding-top:6px}
.ivitem .cm-alert{margin-top:10px;margin-bottom:0}
.ivitem .k-foot .k-ico{width:30px;height:30px}
.ivitem .k-foot .k-ico svg{width:15px;height:15px}
.ivitem .k-foot .k-ico.ic-box{color:#64b5f6;box-shadow:inset 0 0 0 1px rgba(100,181,246,.45)}
.ivitem .k-foot .k-ico.ic-forge{color:#ffb74d;box-shadow:inset 0 0 0 1px rgba(255,183,77,.45)}
.ivitem .k-foot .k-ico.ic-lock{color:#b0bec5;box-shadow:inset 0 0 0 1px rgba(176,190,197,.4)}
.ivitem .k-foot .k-ico.ic-lock.k-on{color:#ffd54f;background:rgba(255,213,79,.14);box-shadow:inset 0 0 0 1px rgba(255,213,79,.55)}
.ivitem .k-foot .k-ico.ic-keep{color:#ce93d8;box-shadow:inset 0 0 0 1px rgba(206,147,216,.4)}
.ivitem .k-foot .k-ico.ic-keep.k-on{background:rgba(206,147,216,.14)}

/* ===== Nhiệm vụ (PC): nút dưới dải ải + hộp thoại ===== */
html.nu .pcquest{position:absolute;z-index:5;height:30px;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 10px;box-sizing:border-box;
  border:0;border-radius:999px;cursor:pointer;pointer-events:auto;background:rgba(20,26,24,.88);color:#eef3f0;font:600 11.5px var(--font);
  box-shadow:0 2px 8px rgba(0,0,0,.45),inset 0 0 0 1px rgba(255,255,255,.12);transition:box-shadow .15s}
html.nu .pcquest svg{flex:none;width:15px;height:15px;fill:#ffd54f}
html.nu .pcquest:hover,html.nu .pcquest.on{box-shadow:0 2px 8px rgba(0,0,0,.45),inset 0 0 0 1px rgba(255,213,79,.55)}
html.nu .pcquest:focus-visible{outline:2px solid #ffd54f;outline-offset:2px}
html.nu .pcquest em{position:absolute;right:-4px;top:-6px;min-width:16px;height:16px;padding:0 4px;box-sizing:border-box;border-radius:999px;background:#43a047;color:#fff;
  font:700 10px/16px var(--font);font-style:normal;text-align:center;box-shadow:0 0 0 2px rgba(14,19,17,.9)}
.pcquest[hidden],.pcquest em[hidden],html:not(.nu) .pcquest{display:none!important}

.qs-bar{display:block;height:5px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden}
.qs-bar i{display:block;height:100%;border-radius:inherit;background:#ffd54f;transition:width .3s}
.qs-list{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.qs-row{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;background:var(--k-input)}
.qs-row.ready{box-shadow:inset 0 0 0 1px rgba(129,199,132,.55)}
.qs-row.ready .qs-bar i{background:#81c784}
.qs-row.done{opacity:.6}
.qs-row.lock{opacity:.5}
.qs-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.qs-t b{font:500 12.5px/1.35 var(--font);color:#eef3f0}
.qs-t small{font-size:11px;line-height:1.35;color:var(--k-dim)}
.qs-n{flex:none;font:600 11.5px var(--font);color:var(--k-dim);font-variant-numeric:tabular-nums;white-space:nowrap}
.qs-ok,.qs-lock{flex:none;display:inline-flex;align-items:center;gap:4px;font-size:11.5px;color:#81c784;white-space:nowrap}
.qs-lock{color:var(--k-faint)}
.qs-ok svg,.qs-lock svg{width:14px;height:14px;fill:currentColor}
.qs-lv{flex:none;width:34px;height:34px;border-radius:999px;display:grid;place-items:center;background:var(--k-acc-tone);color:var(--k-acc-lt);font:700 12px var(--font)}
.qs-row.lock .qs-lv{background:rgba(255,255,255,.06);color:var(--k-faint)}
.qs-days{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.qs-day{position:relative;display:flex;flex-direction:column;gap:4px;padding:8px 6px;border-radius:12px;background:var(--k-input);text-align:center;min-height:72px}
.qs-day b{font:600 11px var(--font);color:var(--k-dim)}
.qs-day small{font-size:10.5px;line-height:1.3;color:#dfe7e2}
.qs-day.cur{box-shadow:inset 0 0 0 1.5px #ffd54f}
.qs-day.cur b{color:#ffd54f}
.qs-day.got{opacity:.55}
.qs-day b{display:inline-flex;align-items:center;justify-content:center;gap:3px}
.qs-day svg{flex:none;width:12px;height:12px;fill:#81c784}   /* dấu đã nhận nằm cạnh "Ngày N", không đè chữ trên ô hẹp */
.qs-ms{display:flex;flex-direction:column;gap:9px}
.qs-mrow{display:grid;grid-template-columns:60px 1fr 90px 60px;align-items:center;gap:10px;font-size:11.5px}
.qs-mrow b{color:#eef3f0;font-weight:600}
.qs-mrow small{color:var(--k-dim)}
.qs-mrow>span:last-child{text-align:right;color:var(--k-dim);font-variant-numeric:tabular-nums}
.qs-mrow.got>span:last-child{color:#81c784}
.qs-odds{display:flex;flex-direction:column;gap:8px}
.qs-odd{display:grid;grid-template-columns:1fr 110px 38px;align-items:center;gap:10px;font-size:12px;color:#dfe7e2}
.qs-odd b{text-align:right;font-weight:600;color:var(--k-dim);font-variant-numeric:tabular-nums}
.k-narrow .qs-days{grid-template-columns:repeat(4,1fr)}
.k-narrow .qs-mrow{grid-template-columns:52px 1fr 52px}
.k-narrow .qs-mrow .qs-bar{display:none}
     
/* số trên nút Nhiệm vụ: nằm trong viên thuốc (nút sát mép phải màn hình, góc ngoài sẽ bị cắt) */
html.nu .pcquest em{position:static;margin-left:2px;box-shadow:none}

/* ===== Thông báo (PC): cùng kiểu đỏ nổi bật với .k-dot / .k-cnt (ui-kit.css) ===== */
html.nu .acbtn em,html.nu .pcquest em{background:var(--k-noti);color:#fff;box-shadow:var(--k-noti-ring)}
html.nu .ev-btn em{background:rgba(255,255,255,.14);color:#dfe7e2;box-shadow:none}   /* số dòng nhật ký chưa đọc: chỉ thông tin, không cần làm gì */
html.nu .ev-btn.ev-has::after{width:9px;height:9px;background:var(--k-noti);box-shadow:var(--k-noti-ring);animation:kNoti 2.4s ease-in-out infinite}
/* bản cập nhật đang chờ (eventlog.js .ev-upn): huy hiệu riêng, ưu tiên hơn chấm đỏ thông báo thường — vòng hổ phách có mũi tên lên */
html.nu .ev-btn.ev-upn::after{content:"";position:absolute;top:-3px;left:19px;width:14px;height:14px;border-radius:50%;background:#ffc107 url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 5l-6 7h4v7h4v-7h4z%27 fill=%27%231b1b1b%27/%3E%3C/svg%3E") center/11px no-repeat;box-shadow:0 0 0 2px rgba(20,26,24,.9),0 0 8px rgba(255,193,7,.7);animation:evUpn 1.6s ease-in-out infinite}
@keyframes evUpn{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
@media (prefers-reduced-motion:reduce){html.nu .ev-btn.ev-upn::after{animation:none}}
body.saver html.nu .ev-btn.ev-upn::after,html.nu body.saver .ev-btn.ev-upn::after{animation:none}
html.nu #giftBtn.on::after,html.nu #jxToday.on::after{width:9px;height:9px;border:0;background:var(--k-noti);box-shadow:var(--k-noti-ring);animation:kNoti 2.4s ease-in-out infinite}
html.nu #giftTabs .gdot{width:8px;height:8px;border:0;background:var(--k-noti);box-shadow:var(--k-noti-ring)}
html.nu #tabs .tray .dot{width:9px;height:9px;border:0;background:var(--k-noti);box-shadow:var(--k-noti-ring)}
.ev-tabs .k-cnt{margin-left:5px}
@media (prefers-reduced-motion:reduce){html.nu .ev-btn.ev-has::after,html.nu #giftBtn.on::after,html.nu #jxToday.on::after{animation:none}}
.k-md.qsmenu{width:min(740px,100%)}/* 7 thẻ từ khi có Truyền thừa (2026-10-30): 630 cắt mất thẻ Sự kiện và chấm đỏ */   /* 6 thẻ + chấm thông báo vừa một hàng, không phải cuộn */
/* Ô món: ảnh giữ kích thước gốc, chỉ thu nhỏ khi lớn hơn ô (không phóng to: nhẫn / ám khí 24px bị nhòe khi kéo lên ~44px).
   Căn giữa bằng grid (không dùng translate -50% để tránh nửa điểm ảnh làm mờ). */
.iv-it{display:grid;place-items:center}
.iv-it img{position:static;left:auto;top:auto;width:auto;height:auto;max-width:78%;max-height:78%;object-fit:contain}
.iv-it{grid-template:100% / 100%;overflow:hidden}   /* hàng/cột xác định để max-height 78% có hiệu lực (vũ khí dài ~100px không tràn ô) */
.iv-it img{min-width:0;min-height:0}
/* Biểu tượng hệ / ▲ nâng cấp nằm gọn TRONG ô (ô cắt phần tràn), nhỏ hơn; viền độ hiếm dịu hơn */
.iv-it{box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--rc,#fff) 38%,transparent)}
.iv-it:hover{box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--rc,#fff) 75%,transparent)}
.iv-it.bad{box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--k-danger) 70%,transparent)}
.iv-it .iv-el{left:3px;top:3px;width:14px;height:14px;filter:drop-shadow(0 1px 1px rgba(0,0,0,.8))}
.iv-up{right:3px;top:3px;width:14px;height:14px;box-shadow:0 1px 2px rgba(0,0,0,.6)}
.iv-up svg{width:14px;height:14px}
.cm-slot .iv-el{left:3px;top:3px;width:14px;height:14px;filter:drop-shadow(0 1px 1px rgba(0,0,0,.8))}

.iv-why{margin-top:6px;font-size:11px;color:var(--k-faint)}   /* lý do hệ thống tự xử lý giữ món ở hành trang */

/* Hàng thao tác cuối thẻ (Nguyên liệu, Đồ rác): cùng kiểu .iv-tool với Bộ lọc nhặt / Lò rèn, dồn phải */

.iv-tool img{width:16px;height:16px;object-fit:contain}
.iv-tool:disabled{opacity:.42;cursor:default;box-shadow:inset 0 0 0 1px var(--k-line2);color:#cfd8d3}
.iv-tool.danger{color:#ff8a80}
.iv-tool.danger:hover:not(:disabled){color:#ffb4ab;box-shadow:inset 0 0 0 1px rgba(255,138,128,.6)}

/* Đồ Tím: ô dòng trống; nút gửi Kho nguyên liệu; hộp Luyện Tím */
.iv-l.iv-slot{color:#b388ff;opacity:.75}
.ivitem .k-foot .k-ico.ic-mat{color:#b388ff;box-shadow:inset 0 0 0 1px rgba(179,136,255,.45)}
.vm-lead{margin:0 0 12px;font-size:12px;line-height:1.5;color:var(--k-dim)}
.vm-lead b{color:#eef3f0}
.vm-res{display:flex;gap:10px;margin:12px 0}
.vm-res span{flex:1;display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:12px;background:var(--k-input)}
.vm-res small{font-size:11px;color:var(--k-faint)}
.vm-res b{font:600 15px var(--font);color:#b388ff}

/* ===== Nguyên liệu dạng ô: biểu tượng, cấp góc trên trái, số lượng góc dưới phải ===== */
.mt-sec+.mt-sec{margin-top:14px}
.mt-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 2px 2px;font:600 11px var(--font);letter-spacing:.6px;text-transform:uppercase;color:var(--k-dim)}
.mt-h small{font:400 11px var(--font);letter-spacing:0;text-transform:none;color:var(--k-faint)}
.mt-it .mt-ic{width:36px;height:36px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.6))}
.mt-it.mt-pot{cursor:default}
.mt-it.mt-pot img{max-width:60%;max-height:60%}
.mt-it.off .mt-ic{opacity:.45}
.mt-lv{position:absolute;left:4px;top:3px;min-width:14px;height:14px;padding:0 3px;box-sizing:border-box;border-radius:999px;background:rgba(14,19,17,.85);
  font:700 9.5px/14px var(--font);text-align:center;color:var(--rc);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rc) 55%,transparent)}
.mt-n{position:absolute;right:4px;bottom:3px;font:700 10.5px/1 var(--font);color:#eef3f0;text-shadow:0 1px 2px #000,0 0 2px #000}
.mt-st{position:absolute;left:5px;bottom:5px;width:6px;height:6px;border-radius:50%;background:#90a4ae;box-shadow:0 0 0 1.5px rgba(14,19,17,.9)}
.mt-det{display:flex;gap:14px;align-items:center}
.mt-big{flex:none;width:64px;height:64px;border-radius:14px;display:grid;place-items:center;background:rgba(14,19,17,.8);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--rc) 55%,transparent)}
.mt-big .mt-ic{width:46px;height:46px}
.mt-det p{margin:0 0 6px;font-size:12px;line-height:1.45;color:#dfe7e2}
.mt-det .mt-cnt{color:var(--k-dim)}
.mt-det .mt-cnt b{color:#eef3f0}

.mt-it .mt-el,.mt-big .mt-el{position:absolute;left:4px;bottom:4px;width:13px;height:13px;filter:drop-shadow(0 1px 1px rgba(0,0,0,.8))}
.mt-big{position:relative}
.mt-big .mt-el{width:18px;height:18px}
.mt-st{left:auto;right:5px;bottom:auto;top:5px}

.mt-det .mt-attr{font-weight:600;font-size:12.5px}


/* ===== Túi gọn hơn: điều khiển 30px, khoảng cách nhỏ, thanh công cụ trên cùng mỗi thẻ ===== */
.ivmenu .iv-bar{margin-bottom:8px;gap:8px}
.ivmenu .iv-bar .iv-kw{height:30px;font-size:12.5px}
.ivmenu .iv-bar .k-select,.ivmenu .iv-bar select{width:136px}
.ivmenu .iv-bar .k-sel-btn,.ivmenu .iv-bar .k-selbtn{height:30px}
.ivmenu .iv-cap{min-width:104px}
.ivmenu .iv-filt{margin-bottom:8px;gap:5px}
.ivmenu .iv-chip{height:28px;padding:0 11px;font-size:11.5px}
.ivmenu .iv-tool{height:28px;font-size:11px}
.ivmenu .iv-grid{gap:10px 12px;padding:5px 5px 2px}
.ivmenu .iv-msub{margin-bottom:8px;gap:8px}
.ivmenu .iv-msub .k-seg{height:30px}
.ivmenu .iv-msub .k-seg button{height:24px;font-size:12px}


.ivmenu .iv-ch{margin-bottom:4px}




.ivmenu .mt-sec+.mt-sec{margin-top:10px}
.ivmenu .mt-h{margin-bottom:0}
.ivmenu .iv-empty{margin:6px 2px}
.ivmenu .iv-bar button.k-select{height:30px!important;font-size:12.5px}

.cm-slot .iv-lk{left:5px;bottom:5px;z-index:2}   /* khóa ở ô trang bị Nhân vật, như ô Túi */

/* ===== Xã hội / Đồng hành / Chuyển sinh (PC) ===== */
html.nu #giftBtn{display:none!important}   /* hộp Quà cũ bỏ ở PC: nội dung chuyển sang Nhiệm vụ, Xã hội, Đồng hành, Chuyển sinh */


html.nu .pcsoc>svg{width:22px;height:22px;fill:#ffd54f;filter:drop-shadow(0 1px 2px rgba(0,0,0,.7))}
html:not(.nu) #tabs .tray[data-t="pet"]{display:none!important}
#dotPet{display:none}#dotPet.on{display:block}
  .ac-pet{--ac:#81c784} 
.so-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.so-kv{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:8px 12px;border-radius:12px;background:var(--k-input);font-size:12px;color:var(--k-dim)}
.so-kv b{font:600 13px var(--font);color:#eef3f0}
.so-prog{display:flex;flex-direction:column;gap:6px;margin-bottom:10px}
.so-prog small{font-size:11.5px;color:var(--k-dim)}
.so-slots{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.so-slot{display:flex;flex-direction:column;gap:2px;padding:9px 12px;border-radius:12px;background:var(--k-input)}
.so-slot small{font-size:10.5px;color:var(--k-faint)} .so-slot b{font:600 12.5px var(--font);color:#eef3f0} .so-slot span{font-size:11px;color:var(--k-dim)}
.so-slot.off b{color:var(--k-faint);font-weight:500}
.so-list{margin-top:0}

.pet-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px}
.pet-c{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 6px;border:0;border-radius:12px;cursor:pointer;background:var(--k-input);box-shadow:inset 0 0 0 1px var(--k-line);color:#dfe7e2;font:500 11.5px var(--font)}
.pet-c img{width:52px;height:52px;object-fit:contain}
.pet-c:hover{box-shadow:inset 0 0 0 1px rgba(255,213,79,.5)}
.pet-c.on{background:var(--k-acc-tone);box-shadow:inset 0 0 0 1.5px rgba(255,193,7,.6);color:var(--k-acc-lt)}

/* Góp ý trong Xã hội; nút Góp ý ở menu ⋯ ẩn ở PC */
html.nu #jxFb{display:none!important}
.ac-fb{--ac:#4fc3f7}
.fb-ta{display:block;width:100%;box-sizing:border-box;margin:10px 0 4px;padding:10px 14px!important;border:0!important;border-image:none!important;border-radius:12px!important;resize:vertical;min-height:110px;
  background:var(--k-input)!important;box-shadow:inset 0 0 0 1px var(--k-line2);color:#eef3f0;font:13px/1.5 var(--font)}
.fb-ta:focus{outline:none;box-shadow:inset 0 0 0 1.5px var(--k-acc)}
.fb-cnt{display:block;margin-bottom:6px;font-size:11px;color:var(--k-faint);text-align:right}
.fb-in{width:min(320px,100%);height:30px;padding:0 14px!important;border:0!important;border-image:none!important;border-radius:999px!important;background:var(--k-input)!important;box-shadow:inset 0 0 0 1px var(--k-line2);color:#eef3f0;font:12.5px var(--font)}
.fb-in:focus{outline:none;box-shadow:inset 0 0 0 1.5px var(--k-acc)}
.fb-act{display:flex;align-items:center;gap:12px;margin-top:12px}
.fb-act small{flex:1;font-size:11px;color:var(--k-faint)}
.fb-ok{display:flex;gap:10px;align-items:center;margin-top:12px;padding:9px 12px;border-radius:14px;background:rgba(129,199,132,.14);font-size:12px;color:#a5d6a7}
.fb-ok svg{width:16px;height:16px;fill:currentColor;flex:none}

/* Cột tray PC: Xã hội, Đồng hành, Nhân vật, Võ công, Túi (44px). Tray data-pc không có ở Mobile. */
html:not(.nu) #tabs .tray[data-pc]{display:none!important}
html.nu #tabs .tray{border-radius:13px}
html.nu #tabs .tray .pctray-ic{width:19px;height:19px}


/* ===== Nhân vật gọn hơn; đáy hai cột thẳng hàng (thẻ cuối mỗi cột giãn hết chiều cao còn lại) ===== */
.cm-wrap{gap:12px;align-items:stretch}
.cm-left,.cm-right{gap:8px}
.cm-left>.cm-box:last-child,.cm-right>.cm-box:last-child{flex:1}
.cm-box{padding:10px 12px;border-radius:14px}
.cm-box h4{margin-bottom:6px}
.cm-acts{display:flex;justify-content:center;gap:8px}
.cm-name{min-height:28px}
.cm-name b{font-size:16px}
.cm-doll{grid-template-columns:repeat(5,54px);grid-template-rows:repeat(5,50px);gap:6px}
.cm-tall img{max-height:92px}
.cm-rt{padding:5px 2px}






.cm-at{padding:3px 0}
.cm-bh .k-btn{height:28px}
.cm-stats{gap:14px}
.cm-kv{padding:2px 0}
.cm-left>*,.cm-right>*{flex-shrink:0}   /* chỉ thẻ cuối giãn; không ô nào bị co (người giấy cắt mất ô Ngựa) */

.ac-ic.pet-ic{overflow:hidden}
.ac-ic.pet-ic img{width:46px;height:46px;object-fit:contain;filter:drop-shadow(0 2px 3px rgba(0,0,0,.6))}
.ac-ic.pet-ic.empty{background:none;box-shadow:inset 0 0 0 1.5px var(--k-line2);border:0}

.ac-ic.pet-ic{width:72px;height:72px;background:none;box-shadow:none}
.ac-ic.pet-ic img{width:72px;height:72px}

/* ===== Hệ thống (PC) ===== */
.sy-sub{margin:6px 0 0;font-size:11.5px;line-height:1.45;color:var(--k-dim)}
.sy-sub code{padding:1px 6px;border-radius:6px;background:var(--k-input);color:#eef3f0;word-break:break-all}
.sy-acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px}
.sy-grow{flex:1;margin:0}

.sy-range{-webkit-appearance:none;appearance:none;width:min(240px,100%);height:6px;border-radius:999px;cursor:pointer;
  background:linear-gradient(90deg,var(--k-acc) var(--v,50%),var(--k-input) var(--v,50%));box-shadow:inset 0 0 0 1px var(--k-line)}
.sy-range::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;border-radius:50%;background:#ffd54f;box-shadow:0 1px 3px rgba(0,0,0,.5)}
.sy-range::-moz-range-thumb{width:16px;height:16px;border:0;border-radius:50%;background:#ffd54f}

/* ===== Màn hẹp (Mobile dọc) ===== */
.k-narrow .ac-hero{flex-wrap:wrap}
.k-narrow .ac-hero .ac-ht{flex:1 1 180px;min-width:0}
.k-narrow .ac-hero>.k-btn,.k-narrow .ac-hero>.ac-note,.k-narrow .ac-hero>.qs-ok{flex:1 1 100%;justify-content:center}
.k-narrow .iv-cap>span{display:none}
.k-narrow .iv-cap{min-width:56px}
.k-narrow .iv-bar .k-select,.k-narrow .iv-bar select{width:112px}
.k-narrow .iv-bar .iv-ico+.iv-ico,.k-narrow .iv-bar .iv-ico[title]{display:none}
html.nu.nu-narrow #evBox{width:auto!important;right:64px!important}   /* chừa cột ô bên phải */

html.nu .pcquest span{white-space:nowrap}
html.nu.nu-narrow .pcquest{font-size:11px;padding:0 8px}

.sy-pw{width:100%;box-sizing:border-box;margin-bottom:10px}
.sy-err{margin:0;color:var(--k-danger);font-size:12px}
/* Túi › Hành trang: màn hẹp (lớp hộp thoại < 520px: Mobile, cửa sổ PC nhỏ) dùng ô chọn loại đồ thay hàng chip */
.iv-ksel{display:none}
.k-layer.k-narrow .iv-filt .iv-chip{display:none}
.k-layer.k-narrow .iv-ksel{display:block;min-width:0;flex:0 1 150px}
.k-layer.k-narrow .iv-filt{flex-wrap:nowrap}
/* Nhân vật: biểu tượng phái (giống huy hiệu dưới bình EXP) trước tên; cấp và lực chiến ở hai ô trống cuối lưới trang bị */
.cm-fic{flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;margin-right:4px;
 background:color-mix(in srgb,var(--c) 24%,#121816);box-shadow:inset 0 0 0 1.5px var(--c)}
.cm-fic svg{width:15px;height:15px;fill:none;stroke:var(--c);stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
/* cấp và lực chiến: dạng nhãn (không khung như ô trang bị), bám góc dưới của ô; lực chiến bấm được nên có chip mũi tên có viền */
.cm-dlv,.cm-dpw{position:relative;z-index:1;grid-row:5;display:flex;flex-direction:column;justify-content:flex-end;gap:4px;padding:0 0 2px;border:0;background:none;font-family:var(--font);filter:drop-shadow(0 1px 2px rgba(0,0,0,.9))}
.cm-dlv{grid-column:1;align-items:flex-start}
.cm-dpw{grid-column:5;align-items:flex-end;cursor:pointer;color:inherit}
.cm-dlv span,.cm-dpw span{font-size:10.5px;line-height:1.2;color:var(--k-dim);white-space:nowrap}
.cm-dlv b{font:700 24px/1 var(--font);color:#f4f8f5}
.cm-dpw b{display:inline-flex;align-items:center;gap:4px;font:700 18px/1 var(--font);color:var(--k-acc-lt);white-space:nowrap}
.cm-dchev{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:rgba(255,193,7,.12);box-shadow:inset 0 0 0 1px rgba(255,193,7,.55)}
.cm-dchev svg{width:13px;height:13px;fill:var(--k-acc-lt)}
.cm-dpw:hover .cm-dchev{background:var(--k-acc-tone2);box-shadow:inset 0 0 0 1px var(--k-acc)}
/* Túi gọn hơn (mọi thẻ): ô xếp sát từ trái, khe 8px thay vì giãn đều cả hàng */
.ivmenu .iv-grid{justify-content:start;gap:8px}
/* Nguyên liệu: ô Huyền Tinh / Khoáng thạch / thuốc nhỏ hơn (46px) */
.ivmenu .mt-sec .iv-grid{grid-template-columns:repeat(auto-fill,46px);grid-auto-rows:46px;gap:7px}
.ivmenu .mt-it .mt-ic{width:30px;height:30px}
.ivmenu .mt-lv{left:3px;top:2px;min-width:13px;height:13px;font-size:9px;line-height:13px}
.ivmenu .mt-pos{position:absolute;right:3px;top:2px;min-width:13px;height:13px;padding:0 3px;box-sizing:border-box;border-radius:999px;background:rgba(14,19,17,.85);color:#ffd54f;font:700 9px/13px var(--font,sans-serif);text-align:center;box-shadow:0 0 0 1px rgba(255,213,79,.45)}
.mt-it .mt-pos{position:absolute;right:4px;top:3px;min-width:14px;height:14px;padding:0 3px;box-sizing:border-box;border-radius:999px;background:rgba(14,19,17,.85);color:#ffd54f;font:700 9.5px/14px var(--font,sans-serif);text-align:center;box-shadow:0 0 0 1px rgba(255,213,79,.45)}
.ivmenu .mt-n{right:3px;bottom:2px;font-size:10px}
.ivmenu .mt-it .mt-el{left:3px;bottom:3px;width:11px;height:11px}
/* hộp chi tiết Huyền Tinh / khoáng: hai nút bán chia đều chân hộp, không tràn trên điện thoại */
.mtdlg .k-foot .mt-sell{flex:1 1 0;min-width:0;padding:0 10px}
/* Nhật ký › Cập nhật (js/eventlog.js, dữ liệu js/changelog.js) */
.ev-cl{padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
.ev-cl+.ev-cl{margin-top:8px}
.ev-cl.new{background:rgba(255,193,7,.07);box-shadow:inset 0 0 0 1px rgba(255,193,7,.32)}
.ev-clh{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.ev-clh b{font:600 13px var(--font);color:#eef3f0}
.ev-clh small{margin-left:auto;font-size:11px;color:#6f7d77}
.ev-cln{display:inline-flex;align-items:center;height:18px;padding:0 7px;border-radius:999px;background:var(--k-noti);color:#fff;font:700 10px/1 var(--font)}
.ev-cl ul{margin:6px 0 0;padding-left:16px}
.ev-cl li{font-size:12px;line-height:1.5;color:#cfd8d3}
.ev-cl li+li{margin-top:3px}
.ev-tabs button{white-space:nowrap}
/* Nhật ký: thẻ có biểu tượng + nhãn. Rộng: chỉ nhãn. Hẹp (nu-narrow, như thẻ Hoạt động / Nhiệm vụ): biểu tượng, thẻ đang chọn thêm nhãn */
.ev-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:0;padding:0 8px}
.ev-ti{display:none}
.ev-ti svg{width:16px;height:16px;fill:currentColor;display:block}
.ev-tabs .k-cnt[hidden]{display:none}
html.nu-narrow .ev-ti{display:inline-flex}
html.nu-narrow .ev-tabs button:not([aria-selected=true]) .ev-tl{display:none}
html.nu-narrow .ev-tabs button:not([aria-selected=true]){flex:0 0 auto;padding:0 10px}
html.nu-narrow .ev-tabs button[aria-selected=true]{flex:1 1 auto}
/* Nhật ký trên điện thoại hẹp: thanh thẻ được co (không đẩy nút Đóng ra ngoài khung); nhãn thẻ đang chọn cắt "…" nếu thiếu chỗ */
.ev-h{min-width:0}
.ev-tabs{min-width:0;overflow:hidden}
.ev-x{flex:none}
.ev-tl{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.nu-narrow .ev-tabs{gap:2px}
/* màn hẹp: thẻ đang mở không hiện số (danh sách bên dưới đã cho thấy), nhãn "Hôm nay" không bị cắt khi cỡ chữ lớn (2026-10-29) */
html.nu-narrow .ev-tabs button[aria-selected=true] .k-cnt{display:none}
html.nu-narrow .ev-tabs button:not([aria-selected=true]){padding:0 7px}
html.nu-narrow .ev-tabs button[aria-selected=true]{min-width:0;padding:0 8px}
html.nu-narrow .ev-tabs .k-cnt{margin-left:2px}
/* Võ công trên màn hẹp: dải loại chiêu xuống hàng riêng, các chip chia đều (không bị bóp mất số / biểu tượng) */
.k-layer.k-narrow .vc-strip{flex-wrap:wrap;row-gap:8px;border-radius:18px;padding:8px 8px 8px 14px}
.k-layer.k-narrow .vc-strip .vc-left{flex:1 1 auto}
.k-layer.k-narrow .vc-fcs{order:3;flex:1 1 100%;overflow:visible;gap:4px}
.k-layer.k-narrow .vc-fc{flex:1 1 0;justify-content:center;padding:0 6px;gap:4px}
.k-layer.k-narrow .vc-fc.on{flex:2 1 0}
/* Phôi: món cực hiếm chờ tách nhưng Tự tách khoáng tắt */
.iv-hint{display:flex;align-items:center;gap:8px;width:100%;margin:0 0 10px;padding:8px 12px;border:0;border-radius:12px;cursor:pointer;text-align:left;
 background:rgba(255,193,7,.08);box-shadow:inset 0 0 0 1px rgba(255,193,7,.35);color:#dfe7e2;font:500 12px/1.4 var(--font)}
.iv-hint svg{flex:none;width:16px;height:16px;fill:#ffd54f}
.iv-hint b{color:#ffd54f;font-weight:600}
.iv-hint:hover{background:rgba(255,193,7,.14)}
/* Túi › sắp theo Hệ: hàng tiêu đề nhóm trải hết lưới */
.iv-grid .iv-grp{grid-column:1 / -1;display:flex;align-items:center;gap:6px;height:22px;margin-top:4px;font:600 11.5px var(--font);color:var(--k-dim);letter-spacing:.3px}
.iv-grid .iv-grp:first-child{margin-top:0}
.iv-grid .iv-grp small{font-weight:500;color:var(--k-faint)}
.iv-grid .iv-grpe{width:16px;height:16px}
.iv-grid.iv-gel{grid-auto-rows:auto}
.iv-grid.iv-gel .iv-it{height:56px}
/* Hệ thống › Trợ giúp › Phím tắt */
.sy-keys{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 14px}
.sy-key{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--k-dim)}
.sy-key kbd{flex:none;min-width:30px;padding:2px 7px;border-radius:7px;background:var(--k-input);box-shadow:inset 0 0 0 1px var(--k-line2),0 1px 0 rgba(0,0,0,.4);font:600 11.5px var(--font);color:#eef3f0;text-align:center}
.k-layer.k-narrow .sy-keys{grid-template-columns:1fr}

/* chiêu luyện (SK.xs): thanh thuần thục thay −/+ */
.vc-pm.vc-xs{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:2px;width:52px}
.vc-pm.vc-xs i{position:relative;display:block;height:5px;border-radius:999px;background:rgba(255,255,255,.12);overflow:hidden}
.vc-pm.vc-xs i::after{content:"";position:absolute;inset:0 auto 0 0;width:var(--p);border-radius:inherit;background:var(--k-acc,#ffc83d)}
.vc-pm.vc-xs small{font-size:9.5px;line-height:1;color:var(--k-dim,#9fb0a7);text-align:center}

/* Phôi: nút Lọc + hàng chọn hệ / loại */
.iv-tool.on{box-shadow:inset 0 0 0 1px var(--k-acc,#ffc83d);color:var(--k-acc-lt,#ffe082)}
.iv-tool .iv-pfn{margin-left:4px;min-width:16px;padding:0 5px;border-radius:999px;background:var(--k-acc,#ffc83d);color:#1d1606;font-size:10.5px;line-height:16px}
.iv-pf{display:flex;flex-wrap:nowrap;align-items:center;gap:6px;margin:0 0 10px}
.iv-pf .iv-pfes{display:flex;gap:4px;flex:none}
.iv-pf .iv-pfe{display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:999px;background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);cursor:pointer}
.iv-pf .iv-pfe .iv-pfei{width:20px;height:20px}
.iv-pf .iv-pfe.on{background:rgba(255,200,61,.16);box-shadow:inset 0 0 0 2px var(--k-acc,#ffc83d)}
.iv-pf .iv-pfe:disabled{opacity:.3;cursor:default}
.iv-pf .k-sel,.iv-pf .k-field{flex:1;min-width:0}
.iv-pf .iv-pfx{flex:none;width:30px;height:30px}

/* Khoáng thạch: icon lớn thẳng hàng với dòng chữ đầu; hàng "Gắn được" bằng ảnh loại trang bị; nút gọn, Lên cấp ở hàng riêng */
.mtdlg .mt-det{align-items:flex-start}
.mtdlg .mt-kinds{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin:2px 0 8px}
.mtdlg .mt-kinds>span{font-size:11px;color:var(--k-dim);margin-right:4px}
.mtdlg .mt-kinds em{font-size:11px;color:var(--k-faint)}
.mtdlg .mt-kd{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;background:rgba(255,255,255,.05);box-shadow:inset 0 0 0 1px rgba(255,255,255,.1);font-style:normal;font-size:11px;color:#dfe7e2}
.mtdlg .mt-kd img{max-width:24px;max-height:24px;image-rendering:auto}
.mtdlg .k-foot{flex-wrap:wrap;gap:6px}
.mtdlg .k-foot .mt-sell{height:30px;font-size:12px;padding:0 8px;gap:4px;white-space:nowrap}
.mtdlg .k-foot .mt-sell img{width:16px;height:16px}
.mtdlg .k-foot .mt-up{flex:1 1 100%;order:3;margin-left:0}

/* hàng loại trang bị: biểu tượng phẳng, không nhãn; tiêu đề hộp nhỏ hơn (nhỏ nữa trên màn hẹp) */
.mtdlg .mt-kd{width:26px;height:26px;border-radius:999px;background:rgba(255,255,255,.06);box-shadow:none;color:#c9d4ce}
.mtdlg .mt-kd svg{width:16px;height:16px;fill:currentColor}
.mtdlg .k-titles h2{font-size:14px}
.k-narrow .mtdlg .k-titles h2,.k-narrow.mtdlg .k-titles h2,html.nu-narrow .mtdlg .k-titles h2{font-size:13px}

/* Đồ Hoàng Kim (.ghk trên ô túi, ô búp bê, ảnh chi tiết): viền vàng kim + vệt sáng chạy quanh viền.
   Tài nguyên tách theo nền: Mobile / tiết kiệm pin / giảm chuyển động chỉ giữ viền tĩnh (không chạy ảnh động, đỡ tốn pin);
   vệt sáng chỉ bật ở khung PC (html.dm-pc). Trình duyệt không hỗ trợ @property cũng tự rơi về viền tĩnh. */
@property --ghka{syntax:"<angle>";inherits:false;initial-value:0deg}
.ghk{position:relative;--rc:#ffcf4d!important;box-shadow:inset 0 0 0 1.5px rgba(255,205,80,.95),0 0 9px rgba(255,180,40,.3)}
.ghk::after{content:"";position:absolute;inset:0;border-radius:inherit;padding:2px;pointer-events:none;
 background:conic-gradient(from var(--ghka),transparent 0 80%,rgba(255,242,190,.95) 91%,transparent 100%);
 -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
html.dm-pc .ghk::after{animation:ghkSpin 2.6s linear infinite}
html.dm-mobile .ghk::after,body.saver .ghk::after{animation:none;background:linear-gradient(135deg,transparent 55%,rgba(255,242,190,.75) 72%,transparent 86%)}
@media (prefers-reduced-motion:reduce){.ghk::after{animation:none!important}}
@keyframes ghkSpin{to{--ghka:360deg}}

/* Đồ Hoàng Kim › khối bộ (itemLines "sg" / "se" / "sb" / "sn"): tên bộ vàng kim nổi bật, rồi các món của bộ:
   đang mặc = dấu ✓ + sáng; có trong Hành trang = sáng, không dấu; chưa có = xám */
.iv-l.sg{margin-top:8px;color:#ffd54f;font-weight:700;font-size:13px;letter-spacing:.2px;text-shadow:0 0 8px rgba(255,190,40,.35)}
.iv-l.sg.pl{color:#e3edf7;text-shadow:0 0 8px rgba(214,228,246,.45)}
.iv-l.se,.iv-l.sb,.iv-l.sn{position:relative;padding-left:18px;font-size:12px}
.iv-l.se{color:#ffe28a}
.iv-l.se::before{content:"";position:absolute;left:2px;top:50%;width:11px;height:11px;transform:translateY(-55%);background:#8bd48e;
 -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat}
.iv-l.sb{color:#e8d48a}
.iv-l.sn{color:var(--k-faint,#6d7a73)}

/* Huy hiệu môn phái trên ảnh món (thay chip "Thiếu Lâm"): giống .hfac cạnh quả cầu EXP, góc dưới phải, đè lên viền */
.iv-big{position:relative}
.iv-big .iv-fac{position:absolute;right:-7px;bottom:-7px;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;z-index:2;
 background:color-mix(in srgb,var(--c) 24%,#121816);box-shadow:0 0 0 2px #121816,inset 0 0 0 1.5px var(--c)}
.iv-big .iv-fac svg{width:15px;height:15px;fill:none;stroke:var(--c);stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.iv-big .iv-fac.bad{box-shadow:0 0 0 2px #121816,inset 0 0 0 1.5px #ef5350}

/* Danh hiệu: biểu tượng riêng từng danh hiệu (JXTitle, màu theo loại chỉ số); chưa mở thì xám + ổ khóa nhỏ */
.tl-ic.tl-tl{position:relative;background:none!important;box-shadow:none!important}
.tl-ic.tl-tl svg.jxtl{width:36px;height:36px;fill:initial}
.tl-cur .tl-ic.tl-tl svg.jxtl{width:44px;height:44px}
.tl-lock .tl-ic.tl-tl svg.jxtl{filter:grayscale(1);opacity:.45}
.tl-ic .tl-lk{position:absolute;right:-2px;bottom:-2px;width:16px;height:16px;border-radius:50%;display:grid;place-items:center;background:#141a18;box-shadow:0 0 0 1px var(--k-line);color:var(--k-faint)}
.tl-ic .tl-lk svg{width:10px;height:10px;fill:currentColor}
.tl-wear .tl-ic.tl-tl svg.jxtl{filter:drop-shadow(0 0 5px rgba(255,213,79,.55))}

/* Đồ đặc biệt nổi bật hơn (2026-10-19): viền 2px đậm + nền ánh màu + quầng ngoài; không đủ yêu cầu thì thêm vòng đỏ mảnh bên trong
   (trước đây .iv-it.bad 2 lớp thắng .ghk nên đồ Hoàng Kim chưa mặc được trông như đồ thường). Tím tĩnh (không hoạt ảnh: nhẹ cho điện thoại). */
.iv-it.ghk,.cm-slot.ghk,.iv-big.ghk{background:radial-gradient(circle at 50% 58%,rgba(255,196,40,.26),rgba(14,19,17,.85) 72%);
 box-shadow:inset 0 0 0 2px #ffcf4d,0 0 10px rgba(255,180,40,.45)}
.iv-it.gvi,.cm-slot.gvi,.iv-big.gvi{--rc:#c77dff!important;background:radial-gradient(circle at 50% 58%,rgba(186,104,255,.26),rgba(14,19,17,.85) 72%);
 box-shadow:inset 0 0 0 2px #b46cff,0 0 9px rgba(170,90,255,.45)}
/* Bạch Kim: bạch kim sáng — trắng bạc, hơi xanh (người dùng 2026-11-06) */.iv-it.gpl,.cm-slot.gpl,.iv-big.gpl{--rc:#e6eef7!important;background:radial-gradient(circle at 50% 58%,rgba(225,236,250,.24),rgba(14,19,17,.85) 72%);
 box-shadow:inset 0 0 0 2px #dfe8f2,0 0 11px rgba(214,228,246,.5)}
.gpl::after{background:conic-gradient(from var(--ghka),transparent 0 78%,rgba(255,255,255,.98) 90%,rgba(205,225,250,.6) 94%,transparent 100%)}
.iv-it.ghk:hover,.iv-it.gvi:hover,.iv-it.gpl:hover{filter:brightness(1.12)}
.iv-it.bad.ghk{box-shadow:inset 0 0 0 2px #ffcf4d,inset 0 0 0 3.5px var(--k-danger),0 0 10px rgba(255,180,40,.35)}
.iv-it.bad.gvi{box-shadow:inset 0 0 0 2px #b46cff,inset 0 0 0 3.5px var(--k-danger),0 0 9px rgba(170,90,255,.35)}
.iv-it.bad.gpl{box-shadow:inset 0 0 0 2px #dfe8f2,inset 0 0 0 3.5px var(--k-danger),0 0 10px rgba(120,190,255,.35)}
.cm-slot.cm-bad.ghk,.cm-slot.cm-bad.gvi,.cm-slot.cm-bad.gpl{outline:1.5px solid var(--k-danger);outline-offset:-4px}

/* Nhân vật › Chỉ số (2026-10-19): biểu tượng màu cho từng chỉ số, Tấn công theo chiêu đang dùng, Sinh tồn có giảm trạng thái; thẻ giãn phủ hết chỗ trống */
.cm-ico{flex:none;width:16px;height:16px;align-self:center;display:grid;place-items:center}
.cm-ico svg{width:14px;height:14px;fill:var(--c)}
.cm-kv{align-items:center}
.cm-stbox{display:flex;flex-direction:column}
.cm-stbox .cm-stats{flex:1;grid-template-rows:1fr}
.cm-stats>div{display:flex;flex-direction:column;justify-content:space-between;gap:2px}
.cm-sk{display:flex;align-items:center;gap:8px;padding:4px 6px;margin:2px 0 4px;border-radius:10px;background:rgba(255,183,77,.08)}
.cm-sk img{width:26px;height:26px;border-radius:6px;flex:none}
.cm-sk span{display:flex;flex-direction:column;min-width:0}
.cm-sk b{font:600 12.5px/1.25 var(--font);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cm-sk small{font-size:10.5px;color:var(--k-faint)}
/* nút đổi tên: cách tên, mờ, không hút mắt */
.cm-name .cm-ren{margin-left:8px;width:24px;height:24px;opacity:.45;transition:opacity .15s}
.cm-name .cm-ren svg{width:13px;height:13px}
.cm-name .cm-ren:hover,.cm-name .cm-ren:focus-visible{opacity:1}

/* Võ công: kỹ năng cấp 150 chưa mở (js/pc_skills150.js): xám như thẻ khóa + dải "Chưa mở" ở góc phải trên */
.vc-sk.vc-soon{position:relative;overflow:hidden}
.vc-rb{position:absolute;top:0;right:0;z-index:3;padding:2px 9px;border-radius:0 10px 0 10px;background:#c62828;color:#fff;font:700 9.5px/14px var(--font);letter-spacing:.2px;pointer-events:none}
.vc-sk.vc-soon .vc-pm,.vc-sk.vc-soon .vc-pt{display:none}
/* Nhân vật › Chỉ số trên màn hẹp: hai cột chồng thành một (cột Tấn công bị tràn ra ngoài thẻ) */
.k-narrow .cm-stats{grid-template-columns:minmax(0,1fr)!important;gap:10px}
.cm-stats{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.cm-kv span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Nguyên liệu › Khoáng: hàng bộ lọc gọn (ô khảm · loại đồ · độ hiếm) */
.mt-flt{display:flex;flex-wrap:nowrap;gap:6px;align-items:center;margin:2px 0 10px}
.mt-flt .k-select{flex:1 1 0;min-width:0;width:auto!important;height:30px;padding:0 8px 0 12px;font-size:12px}
.mt-flt .k-select .k-sel-v{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mt-flt .mt-fx{flex:none;width:30px;height:30px}

/* Cửa hàng trong thành (js/shops.js): cột biểu tượng mép trái + danh sách hàng */
#townShops{position:absolute;left:calc(var(--safe-l,0px) + 8px);z-index:21;display:flex;flex-direction:column;gap:8px;pointer-events:auto}
#townShops[hidden]{display:none}
.tsh{display:flex;flex-direction:column;align-items:center;gap:2px;width:58px;padding:0;border:0;background:none;color:#f1ead8;cursor:pointer;font:600 10.5px/1.2 var(--font,sans-serif);text-shadow:0 1px 2px #000}
.tsh-ic{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 50% 38%,color-mix(in srgb,var(--c) 38%,#1c2420),#121815 72%);box-shadow:0 0 0 2px color-mix(in srgb,var(--c) 75%,transparent),0 3px 8px rgba(0,0,0,.55),0 0 12px color-mix(in srgb,var(--c) 35%,transparent);transition:transform .12s}
.tsh-ic img{max-width:34px;max-height:34px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.7))}
.tsh-ic svg{width:24px;height:24px;fill:var(--c)}
.tsh:hover .tsh-ic,.tsh:focus-visible .tsh-ic{transform:scale(1.08)}
#townBar #bBack.tb-back{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:38px;padding:0 18px;border:0!important;border-image:none!important;border-radius:999px;background:linear-gradient(#ffd54f,#f0b429)!important;color:#2a1d05!important;font:700 14px/1 var(--font,sans-serif);box-shadow:0 3px 10px rgba(0,0,0,.45),0 0 14px rgba(255,200,60,.35);cursor:pointer}
#townBar #bBack.tb-back svg{width:18px;height:18px;fill:currentColor}

/* lọc hàng cửa hàng: chip ngũ hành + ô chọn loại + bỏ lọc (2026-10-21) */
.shdlg .sh-flt{display:flex;align-items:center;gap:8px;margin:0 0 10px}
.shdlg .sh-tyw{flex:1;min-width:0}
.shdlg .sh-tyw .k-select{width:100%}
.shdlg .sh-fx{flex:none;width:30px;height:30px}
.k-narrow .shdlg .sh-flt{gap:6px}
.sh-gold{display:inline-flex;align-items:center;gap:4px;font-weight:700;color:var(--k-acc-lt,#ffd54f)}
.sh-gold img,.sh-buy img{width:16px;height:16px}
.sh-ref{font-size:11.5px;color:var(--k-faint)}


.sh-row{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:12px;background:var(--k-card);box-shadow:inset 0 0 0 1px var(--k-line)}
.sh-it{position:relative;flex:none;width:46px;height:46px;border-radius:10px;border:0;display:grid;place-items:center;background:rgba(14,19,17,.8);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--rc) 60%,transparent);cursor:pointer}
.sh-it img{max-width:38px;max-height:38px}
.sh-it .sh-el{position:absolute;left:2px;top:2px;width:13px;height:13px}
.sh-tx{flex:1;min-width:0;border:0;background:none;text-align:left;color:inherit;cursor:pointer;display:flex;flex-direction:column;gap:1px;padding:0}
.sh-tx b{font-size:13px;color:var(--rc);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sh-tx small{font-size:11px;color:var(--k-faint)}
.sh-tx em{font-style:normal;color:#ffb74d}
.sh-row.bad .sh-tx b{opacity:.75}
.sh-buy{flex:none;gap:4px;height:30px!important;padding:0 12px!important;font-size:12px!important}
/* thanh thành chỉ còn nút Trở lại ải: bỏ khung tối cũ, nút viên thuốc vàng ở giữa */
html.nu #townBar{background:none!important;border:0!important;border-image:none!important;box-shadow:none!important;padding:0!important;display:flex!important;justify-content:center;pointer-events:none}
html.nu #townBar.hidden{display:none!important}
html.nu #townBar #townName{display:none}
html.nu #townBar #bBack{pointer-events:auto;width:auto!important}
html.nu #townBar{left:50%!important;right:auto!important;width:auto!important;top:auto!important;bottom:calc(var(--safe-b,0px) + 120px)!important;transform:translateX(-50%)}

/* cửa hàng: lưới 2 cột thẻ gọn (Vũ khí / Trang bị / Trang sức) */








/* Dược phẩm: lưới 3 cột gọn */
.dg-med .dg-medgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.dg-med .dg-medgrid .dg-shop{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding:8px 6px;margin:0}
.dg-med .dg-medgrid .dg-shop .dg-st{display:flex;flex-direction:column;align-items:center;min-width:0;width:100%}
.dg-med .dg-medgrid .dg-shop .dg-st b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.dg-med .dg-medgrid .dg-shop .dg-st small{font-size:10px;line-height:1.25}
.dg-med .dg-medgrid .dg-shop button{width:100%;height:28px!important;font-size:11.5px!important;padding:0 6px!important}
/* nhãn cột cửa hàng trong thành: phẳng, chữ in hoa, nền viên thuốc đặc */
.tsh{text-shadow:none;gap:4px}
.tsh-ic{background:#1d2622;box-shadow:0 0 0 2px var(--c),0 2px 6px rgba(0,0,0,.45)}
.tsh-n{display:block;padding:2px 7px;border-radius:999px;background:rgba(20,26,24,.88);color:#eef2ee;font:700 9.5px/1.3 var(--font,sans-serif);letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}

/* Chỉ số › Hệ: nhãn giữ nguyên, phần hệ xuống dòng khi dài (mỗi hệ không bị cắt) */
.cm-kv:has(.cm-mx)>span{flex:none}
.cm-kv:has(.cm-mx)>b{flex:1;min-width:0;font-size:12.5px;line-height:1.35}
.cm-mx{font-style:normal;white-space:nowrap}

/* Mobile / cửa sổ hẹp: hàng công cụ Nguyên liệu (thẻ con · số món · Lọc · Cài đặt) xuống dòng thay vì tràn ngang */
.k-narrow .iv-msub{flex-wrap:wrap;row-gap:6px}
.k-narrow .iv-msub .k-seg{min-width:0;flex:0 1 auto}
.k-narrow .ivmenu{overflow-x:hidden}

/* Mảnh Hoàng Kim đủ để ghép: viền vàng sáng nhấp nháy nhẹ + dấu ✓ */
.mt-it.mt-ready{box-shadow:0 0 0 2px #ffd54f,0 0 12px rgba(255,213,79,.55);animation:mtRdy 1.6s ease-in-out infinite}
.mt-it .mt-rdy{position:absolute;top:2px;right:2px;width:15px;height:15px;border-radius:50%;background:#ffd54f;display:grid;place-items:center;box-shadow:0 0 0 1.5px rgba(0,0,0,.6)}
.mt-it .mt-rdy svg{width:11px;height:11px;fill:#1b1b1b}
@keyframes mtRdy{50%{box-shadow:0 0 0 2px #ffe082,0 0 18px rgba(255,213,79,.85)}}
@media (prefers-reduced-motion:reduce){.mt-it.mt-ready{animation:none}}
body.saver .mt-it.mt-ready{animation:none}
.mt-pot{cursor:pointer}
.mt-big img{max-width:70%;max-height:70%;object-fit:contain}

/* Cửa hàng trong thành (2026-10-20): lưới như Dược phẩm (3 cột; ngựa 2 cột), thẻ: hình · tên · số dòng / cấp cần · nút mua */
.shdlg.dg-med .dg-medgrid.sh-g2{grid-template-columns:repeat(2,minmax(0,1fr))}
.shdlg .dg-shop .dg-iti{position:relative;cursor:pointer}
.shdlg .dg-shop .dg-iti .sh-el{position:absolute;left:2px;top:2px;width:13px;height:13px}
.shdlg .dg-shop .dg-st{cursor:pointer}
.shdlg .dg-shop .k-btn img{width:14px;height:14px}
.shdlg .dg-shop.bad .dg-st small{color:#ef9a9a}
/* biểu tượng cửa hàng: gọn, trong, vòng mảnh ôm nửa dưới hình */
#townShops{gap:12px}
.tsh{width:52px;gap:3px}
.tsh-ic{position:relative;width:32px;height:32px;margin-top:12px;background:rgba(12,16,14,.3);box-shadow:0 0 0 1.5px color-mix(in srgb,var(--c) 75%,transparent),0 0 10px color-mix(in srgb,var(--c) 25%,transparent);overflow:visible}
.tsh-ic img{position:absolute;left:50%;bottom:4px;transform:translateX(-50%);max-width:40px;max-height:42px;filter:drop-shadow(0 2px 3px rgba(0,0,0,.6))}
.tsh-n{padding:1px 6px;background:rgba(20,26,24,.55);font-size:9px}
.tsh:hover .tsh-ic,.tsh:focus-visible .tsh-ic{transform:scale(1.06)}
/* Trở lại ải: nút chính chuẩn của giao diện (như k-primary) */
#townBar #bBack.tb-back{height:var(--k-ctl,34px);padding:0 18px;background:var(--k-acc,#ffc107)!important;color:var(--k-on-acc,#1b1b1b)!important;font:500 13px/1 var(--font,sans-serif);box-shadow:0 2px 6px rgba(255,193,7,.25)}
#townBar #bBack.tb-back:hover{background:var(--k-acc-lt,#ffd54f)!important}
#townBar #bBack.tb-back svg{width:16px;height:16px}

/* cửa hàng đồ: tên trắng dễ đọc; món 5–6 dòng: số dòng nổi bật (ngựa giữ màu cũ) */
.shdlg .dg-shop.sh-w .dg-st b{color:#eef3f0}
.shdlg .dg-shop.sh-hot .dg-st small{color:#ffd54f;font-weight:700}
.shdlg .dg-shop.bad.sh-hot .dg-st small{color:#ffb74d}
/* Trở lại ải: cùng kiểu nút Nhật ký (viên trong, chữ trắng, biểu tượng vàng), lớn hơn một chút */
#townBar #bBack.tb-back{height:34px;padding:0 16px 0 12px;gap:6px;background:rgba(20,26,24,.55)!important;color:#eef3f0!important;font:500 12.5px/1 var(--font,sans-serif);text-shadow:0 1px 2px rgba(0,0,0,.6);box-shadow:0 1px 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.14)}
#townBar #bBack.tb-back svg{width:17px;height:17px;fill:#ffd54f}
#townBar #bBack.tb-back:hover{background:rgba(255,193,7,.22)!important;color:#ffd54f!important}
/* biểu tượng cửa hàng Thuốc: ảnh nhỏ (pixel) phóng nét */
.tsh[data-shop="med"] .tsh-ic img{width:22px;height:auto;image-rendering:pixelated}
/* nút mua trong cửa hàng thành: viên trong như nút Nhật ký (không còn cả rừng nút vàng); đủ tiền = viền vàng mảnh, thiếu tiền = mờ */
.shdlg .dg-shop .k-btn{background:rgba(20,26,24,.55)!important;color:#eef3f0!important;font-weight:500;box-shadow:0 1px 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.14)!important}
.shdlg .dg-shop .k-btn.k-primary{box-shadow:0 1px 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,213,79,.45)!important}
.shdlg .dg-shop .k-btn.k-primary:hover{background:rgba(255,193,7,.22)!important;color:#ffd54f!important}
.shdlg .dg-shop .k-btn:disabled{opacity:.45}

/* So sánh trang bị trong hộp chi tiết món đang mặc (menus.js cmpHTML, 2026-10-21) */
.cp-box{margin-top:12px;padding-top:10px;border-top:1px solid var(--k-line);display:grid;gap:8px}
.cp-sub{font-weight:600;font-size:12.5px;color:var(--k-text);display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.cp-sub small{font-weight:400;font-size:11px;color:var(--k-dim)}
.cp-cands{display:flex;flex-wrap:wrap;gap:8px}
.cp-cands .iv-it{width:50px;height:50px;border-radius:10px;padding:0;cursor:pointer;background:var(--k-card);border:0;position:relative}
.cp-cands .iv-it img{max-width:78%;max-height:78%}
.cp-cands .iv-it.cp-on{box-shadow:inset 0 0 0 2px var(--k-acc),0 0 0 2px color-mix(in srgb,var(--k-acc) 35%,transparent)}
.cp-out:empty{display:none}
.cp-out{display:grid;gap:8px;padding:10px;border-radius:12px;background:var(--k-card)}
.cp-tab{display:grid}
.cp-r{display:grid;grid-template-columns:18px minmax(0,1fr) minmax(64px,auto) minmax(64px,auto);align-items:center;column-gap:8px;padding:4px 0;font-size:12px;border-bottom:1px solid color-mix(in srgb,var(--k-line) 55%,transparent);font-variant-numeric:tabular-nums}
.cp-tab .cp-r:last-child{border-bottom:0}
.cp-r>span{color:var(--k-dim);min-width:0;line-height:1.3}
.cp-v{font-weight:600;color:var(--k-text);text-align:right;line-height:1.3;min-width:0}
.cp-v.cp-hi{color:#81c784}.cp-v.cp-lo{color:#e57373}.cp-v.cp-off,.cp-v.cp-none{color:var(--k-faint);font-weight:400}
.cp-hd{border-bottom:1px solid var(--k-line);padding-bottom:6px;align-items:end}
.cp-hd .cp-v{display:grid;gap:2px;font-size:12.5px}
.cp-hd small{font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--k-dim);font-weight:500}
.cp-ic{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--c,#9fb0a7) 18%,transparent)}
.cp-ic svg{width:12px;height:12px;fill:var(--c,#9fb0a7)}
.cp-ic.cp-dot::after{content:"";width:5px;height:5px;border-radius:50%;background:var(--k-faint)}
.k-narrow .cp-r{grid-template-columns:18px minmax(0,1fr) minmax(54px,auto) minmax(54px,auto);column-gap:6px;font-size:11.5px}
.k-narrow .cp-r>span{font-size:10.5px}
.cp-act{display:flex;justify-content:flex-end}

/* Thu gọn nút Hoạt động / Nhật ký / Nhiệm vụ (js/pillfold.js, 2026-10-21): chữ co lại mượt, còn biểu tượng + chấm / số đỏ */
html.nu :is(#jxActsBtn,#evBtn,#pcQuest)>span{display:inline-block;max-width:120px;overflow-x:clip;overflow-y:visible;white-space:nowrap;vertical-align:middle;transition:max-width .32s var(--k-ease,ease),opacity .22s,margin .32s}
html.nu :is(#jxActsBtn,#evBtn,#pcQuest){transition:min-width .32s var(--k-ease,ease),padding .32s var(--k-ease,ease),gap .32s,background-color .15s}
html.nu :is(#jxActsBtn,#evBtn,#pcQuest).pf-fold>span{max-width:0;opacity:0;margin:0}
html.nu :is(#jxActsBtn,#evBtn,#pcQuest).pf-fold{gap:4px;padding-inline:9px}
html.nu #evBtn.pf-fold>em{display:none}   /* số dòng chưa đọc (xám, chỉ thông tin); chấm đỏ "có việc" vẫn giữ */
@media (prefers-reduced-motion:reduce){html.nu :is(#jxActsBtn,#evBtn,#pcQuest),html.nu :is(#jxActsBtn,#evBtn,#pcQuest)>span{transition:none}}
/* dải trạng thái dưới thanh MP: không vượt mép phải thanh HP / MP (độ rộng do pillfold.js đặt) */
html.nu .hud1 #jxStat{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Hệ thống › Nhân vật (2026-10-21): tài khoản ở đầu, danh sách nhân vật, nút biểu tượng */
.sy-acc{display:flex;align-items:center;gap:10px;min-width:0}
.sy-av{flex:none;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--k-acc) 18%,transparent);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--k-acc) 55%,transparent)}
.sy-av svg{width:20px;height:20px;fill:var(--k-acc)}
.sy-an,.sy-cn{flex:1;min-width:0;display:grid;gap:1px}
.sy-an b,.sy-cn b{font-size:14px;color:var(--k-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sy-an small,.sy-cn small{font-size:11.5px;color:var(--k-dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sy-an small.bad{color:#ef5350}
.sy-cn small em{font-style:normal;color:#81c784;font-weight:600}
.sy-ib{flex:none;width:34px;height:34px}
.sy-ib svg{width:17px;height:17px}
.sy-ib-out{color:#ef9a9a}
.sy-ib-go{color:var(--k-acc)}
.sy-chs{display:grid;gap:6px}
.sy-ch{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:12px;background:color-mix(in srgb,var(--k-text) 4%,transparent);min-width:0}
.sy-ch.on{background:color-mix(in srgb,var(--k-acc) 10%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--k-acc) 40%,transparent)}
.sy-cf{flex:none;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:rgba(10,14,12,.55);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--c,#9fb0a7) 70%,transparent)}
.sy-cf svg{width:20px;height:20px;fill:none;stroke:var(--c,#9fb0a7);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sy-ch-empty .sy-cf{box-shadow:inset 0 0 0 1.5px var(--k-line)}
.sy-ch-empty .sy-cf svg{width:18px;height:18px;fill:var(--k-faint);stroke:none}
.sy-ch-empty .sy-cn b{color:var(--k-dim);font-weight:500}

/* Hệ thống › Hiển thị & âm thanh gọn (2026-10-21): biểu tượng · nhãn · nút trên một dòng */
.sy-cmp .k-card{padding:8px 14px 8px}
.sy-cmp .k-sw,.sy-cmp .k-row{padding:5px 0;min-height:38px;flex-wrap:nowrap;gap:10px}
.sy-cmp .sy-tip+.sy-tip .k-sw,.sy-cmp .k-row+.sy-tip .k-sw,.sy-cmp .sy-tip+.k-row{border-top:1px solid var(--k-line)}
.sy-cmp .k-sw-t b,.sy-vl{display:flex;align-items:center;gap:10px;font:500 14px/1.3 var(--font);color:var(--k-text);white-space:nowrap;min-width:0}
.sy-vl{flex:1}
.sy-vi{flex:none;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:rgba(255,213,79,.1)}
.sy-vi svg{width:16px;height:16px;fill:#e7c66a}
.sy-cmp .k-seg button{min-height:30px;padding:0 10px;font-size:12.5px}

.sy-cmp .sy-range{flex:1;width:auto;min-width:60px;max-width:150px}
.sy-swo{padding:0!important;min-height:0!important;border:0!important}
.sy-cmp .k-seg{flex:none}
.sy-cmp .k-seg button{white-space:nowrap}
.sy-vl{overflow:hidden;text-overflow:ellipsis}
html.nu-narrow .sy-cmp .k-seg button{padding:0 8px;font-size:12px}
.sy-cmp{display:flex;flex-direction:column;gap:12px}
.sy-hint{margin:6px 0 2px;font:400 12px/1.45 var(--font);color:var(--k-dim)}
.sy-hint b{font-weight:600;color:var(--k-text)}
.sy-cmp .iv-tool{flex:none}
/* Săn bộ Hoàng Kim (js/hkhunt.js, Hoạt động › Leo tháp) */
.hk-sel select{width:100%}
.hk-grid{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 6px}
.hk-pc{position:relative;width:44px;height:44px;border-radius:10px;display:grid;place-items:center;background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 1px var(--k-line)}
.hk-pc img{max-width:34px;max-height:34px;filter:grayscale(1) brightness(.6)}
.hk-pc.on{background:rgba(255,213,79,.1);box-shadow:inset 0 0 0 2px rgba(255,213,79,.75)}
.hk-pc.on img{filter:none}
.hk-pc i{position:absolute;right:2px;top:1px;font:700 11px/1 var(--font);font-style:normal;color:#7ee787}
.hk-pc b{position:absolute;left:3px;bottom:2px;font:700 10px/1 var(--font);color:#ffd54f;text-shadow:0 1px 2px #000}


/* điện thoại / chữ lớn: hàng có nút chọn (seg) xuống dòng thay vì tràn; hàng âm thanh giữ đủ nhãn, thanh trượt co lại (2026-10-21) */
.sy-cmp .k-row:not(.sy-vr){flex-wrap:wrap;row-gap:6px}
.sy-cmp .k-row:not(.sy-vr)>.sy-vl{flex:1 1 auto}
.sy-cmp .k-row:not(.sy-vr)>.k-seg{margin-left:auto;max-width:100%}
.sy-cmp .sy-vr>.sy-vl{flex:0 0 auto;overflow:visible}
.sy-cmp .sy-vr .sy-range{min-width:40px}

/* Điểm danh gọn (2026-10-21): ô ngày nhỏ hơn, "Ngày N" một dòng, dấu đã nhận là huy hiệu tròn xanh ở góc */
.qs-day{padding:7px 5px 6px;min-height:56px;gap:3px}
.qs-day b{white-space:nowrap;font-size:10.5px}
.qs-day small{font-size:10px;line-height:1.25}
.qs-day.got{opacity:.6}
.qs-day .qs-ck{position:absolute;top:-5px;right:-5px;width:16px;height:16px;border-radius:50%;background:#43a047;display:grid;place-items:center;box-shadow:0 0 0 2px var(--k-card,#1e2523)}
.qs-day .qs-ck svg{width:11px;height:11px;fill:#fff}
.qs-days{padding-top:4px}

/* Điểm danh: đầu thẻ một hàng; tổng ngày có thanh tiến độ (2026-10-21) */
.qs-hero{display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:16px;background:var(--k-card);box-shadow:inset 0 0 0 1px var(--k-line)}
.qs-hi{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:rgba(129,199,132,.16)}
.qs-hi svg{width:22px;height:22px;fill:#a5d6a7}
.qs-ht{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.qs-ht>b{font:600 14.5px/1.25 var(--font);color:var(--k-text)}
.qs-ht small{font-size:12px;color:var(--k-dim)}
.qs-ht small b{color:var(--k-text)}
.qs-done{flex:none;display:inline-flex;align-items:center;gap:5px;height:30px;padding:0 12px;border-radius:999px;background:rgba(67,160,71,.16);color:#81c784;font:600 12px var(--font)}
.qs-done svg{width:14px;height:14px;fill:currentColor}
.qs-mtot{display:flex;align-items:center;gap:10px;margin:2px 0 10px}
.qs-mtot .qs-bar{flex:1;height:6px}
.qs-mtot span{font-size:11.5px;color:var(--k-dim);font-variant-numeric:tabular-nums}
.qs-mrow .qs-bar{display:none}
.qs-mrow{grid-template-columns:52px 1fr 52px}
.qs-mrow>span:last-child svg{width:16px;height:16px;fill:#81c784;vertical-align:middle}

/* Nhiệm vụ: đầu thẻ một hàng cho mọi thẻ (2026-10-21) */
.qs-hero{flex-wrap:wrap}
.qs-hero>.k-btn{flex:none;height:32px;padding:0 14px}
.qh-quest .qs-hi{background:rgba(255,213,79,.14)}.qh-quest .qs-hi svg{fill:#ffd54f}
.qh-yt .qs-hi{background:rgba(188,170,164,.14)}.qh-yt .qs-hi svg{fill:#bcaaa4}
.qh-lvms .qs-hi{background:rgba(79,195,247,.14)}.qh-lvms .qs-hi svg{fill:#4fc3f7}
.qh-chest .qs-hi{background:rgba(240,98,146,.14)}.qh-chest .qs-hi svg{fill:#f06292}
.qh-event .qs-hi{background:rgba(229,57,53,.14)}
.qh-event .qs-hi svg.lion{width:26px;height:26px}
.qs-st{flex:none;height:30px;display:inline-flex;align-items:center;padding:0 12px;border-radius:999px;background:var(--k-input);color:var(--k-dim);font:600 12px var(--font)}
.qs-num{flex:none;min-width:40px;height:32px;display:inline-grid;place-items:center;padding:0 10px;border-radius:999px;background:rgba(240,98,146,.18);color:#f8bbd0;font:800 16px var(--font);box-shadow:inset 0 0 0 1.5px rgba(240,98,146,.55)}
.qs-num.z{opacity:.45}
.qs-bal{flex:none;display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px 0 6px;border-radius:999px;background:rgba(229,57,53,.14);box-shadow:inset 0 0 0 1.5px rgba(255,213,79,.45)}
.qs-bal svg{width:24px;height:24px}
.qs-bal b{font:800 17px var(--font);color:#ffd54f}
.qs-tok svg{width:18px;height:18px;vertical-align:-4px}

.qs-ht{min-width:140px}
.qs-ha{flex:none;display:flex;align-items:center;gap:8px;margin-left:auto}
.qs-ha .k-btn{height:32px;padding:0 14px}
.qs-ht{min-width:100px}

/* liên kết kích hoạt dòng ẩn trên búp bê Nhân vật (2026-10-21) */
.cm-slot.cm-lk-sel{outline:2px solid #ffd54f;outline-offset:2px}
.cm-slot.cm-lk-on{outline:2px solid #66bb6a;outline-offset:2px}
.cm-slot.cm-lk-off{outline:2px dashed #9aa49f;outline-offset:2px}
.cm-lkchip{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:3px 10px;min-height:42px;margin-top:6px;padding:6px 10px;border-radius:12px;background:var(--k-input);font:500 11.5px/1.3 var(--font);color:var(--k-text)}
.cm-lkchip .lk-h{color:var(--k-dim);font-size:11px;text-align:center}
.cm-lkchip>b{flex-basis:100%;text-align:center;font-weight:600;display:inline-flex;justify-content:center;align-items:center;gap:4px}
.cm-lkchip .lk-p{display:inline-flex;align-items:center;gap:3px;color:var(--k-dim)}
.cm-lkchip svg,.cm-lkchip .lk-el{width:13px;height:13px}
.cm-lkchip i{font-style:normal;font-weight:800}
.cm-lkchip i.y{color:#66bb6a}.cm-lkchip i.n{color:#9aa49f}
/* dòng liên kết: chiều cao cố định (2 dòng chữ) để các thẻ bên dưới không nhảy khi rê chuột (2026-10-21) */
.cm-lkchip{height:52px;min-height:0;box-sizing:border-box;overflow:hidden;align-content:center;flex-wrap:wrap;row-gap:2px}
.cm-lkchip .lk-p{white-space:nowrap}

/* Hoạt động gọn: hàng chip phần thưởng (2026-10-21) */
.ac-rw{display:flex;flex-wrap:wrap;gap:6px}
.ac-rc{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px 0 9px;border-radius:999px;background:var(--k-input);font:500 12px var(--font);color:var(--k-text)}
.ac-rc svg{width:15px;height:15px;fill:#e7c66a;flex:none}
.ac-live2{color:#81c784;font-weight:600}
.qh-sv .qs-hi{background:rgba(129,199,132,.16)}.qh-sv .qs-hi svg{fill:#a5d6a7}
.qh-tower .qs-hi{background:rgba(255,213,79,.14)}.qh-tower .qs-hi svg{fill:#ffd54f}
.qh-siege .qs-hi,.qh-tk .qs-hi,.qh-tx .qs-hi{background:rgba(255,255,255,.07)}
.qh-siege .qs-hi svg,.qh-tk .qs-hi svg,.qh-tx .qs-hi svg{fill:#cfd8d4}


/* Thẻ đầu Hoạt động / Nhiệm vụ trên màn hẹp gọn lại (2026-10-23): nút chính nằm cùng hàng với tiêu đề thay vì xuống một hàng riêng,
   biểu tượng 40px, đệm nhỏ hơn, hàng chip trống không chiếm chỗ; ghi chú / "Đã nhận" dài vẫn xuống hàng */
.ac-chips:empty{display:none}
.k-narrow .ac-hero{flex-wrap:wrap;gap:10px;padding:10px 12px;border-radius:14px}
.k-narrow .ac-hero .ac-ht{flex:1 1 0}
.k-narrow .ac-hero>.k-btn{flex:none;padding:0 14px}
.k-narrow .ac-ic{width:40px;height:40px;border-radius:12px}
.k-narrow .ac-ic svg{width:22px;height:22px}
.k-narrow .ac-ic.pet-ic img{width:36px;height:36px}
.k-narrow .ac-ht>b{font-size:15px}
.k-narrow .ac-ht>p{font-size:12px;line-height:1.35}
.k-narrow .ac-chips{margin-top:6px}

/* Đồng hành 2.0 (2026-10-23): sao tư chất, hàng kỹ năng (giá trị hiệu quả bên phải, gốc / khoảng / trạng thái bên dưới) */
.pt-st{color:#ffd54f;letter-spacing:1px;margin-left:8px;font-size:.82em;white-space:nowrap}
.pt-st i{color:rgba(255,255,255,.2);font-style:normal}



.pt-v{color:#ffd54f;font-weight:700;font-size:15px;font-variant-numeric:tabular-nums}

.pt-on{grid-column:1/-1;font-style:normal;font-size:11.5px;color:var(--k-dim)}
.pt-on.on{color:#66bb6a}

/* đầu thẻ hoạt động luôn một hàng, nút bên phải (2026-10-23, giao diện gọn) */
.qs-hero{flex-wrap:nowrap}
.qs-ht{min-width:0}
.qs-ht>b,.qs-ht small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ac-week p{margin:2px 0 0}
.ac-week p b{margin-right:4px}
/* săn bộ Hoàng Kim: một hàng chip có biểu tượng thay đoạn văn */






/* săn bộ Hoàng Kim: xem trước rồi mới săn (2026-10-23) */
.hk-sel{display:flex;align-items:center;gap:8px}
.hk-sel .k-sel,.hk-sel select{flex:1;min-width:0}
.hk-sel>.k-btn{flex:none;height:34px;padding:0 14px}
.hk-on{flex:none;display:inline-flex;align-items:center;gap:4px;font-size:12.5px;font-weight:600;color:#81c784}
.hk-on svg{width:16px;height:16px;fill:currentColor}
button.hk-pc{border:0;padding:0;cursor:pointer;font:inherit}
button.hk-pc:hover{box-shadow:inset 0 0 0 2px rgba(255,255,255,.35)}






/* ô Áo ngắn lại một chút (2026-10-23): chừa khoảng phía dưới cho hình nhân vật */
.cm-doll .cm-slot[data-slot="armor"]{align-self:start;height:calc(100% - 22px)}

/* săn bộ: chi tiết món ngay dưới hàng món (2026-10-23) */
.hk-pc.sel{box-shadow:inset 0 0 0 2px #ffd54f}
.hk-det{margin-top:6px;padding:10px 12px;border-radius:12px;background:rgba(0,0,0,.22);box-shadow:inset 0 0 0 1px var(--k-line)}
.hk-dh{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.hk-dh b{flex:0 1 auto;min-width:0;font-size:13px;color:#ffd54f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hk-dh small{flex:1;min-width:0;font-size:11.5px;color:var(--k-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hk-dh .hk-open{flex:none;width:28px;height:28px}
.hk-dh .hk-open svg{width:16px;height:16px}

.hk-kind{margin-bottom:8px}
.hk-kind .k-seg{width:100%}
.hk-kind .k-seg button{flex:1}

/* dòng ẩn đã kích hoạt nổi hơn dòng thường (2026-10-23): cùng màu xanh nhưng sáng hơn, đậm, quầng nhẹ và chấm sáng phía trước */
.iv-lines .iv-l.h.on{position:relative;padding-left:12px;color:#b8d0ff;font-weight:600;text-shadow:0 0 8px rgba(110,160,255,.45)}
.iv-lines .iv-l.h.on::before{content:"";position:absolute;left:1px;top:.55em;width:6px;height:6px;border-radius:50%;background:#8fb4ff;box-shadow:0 0 6px #8fb4ff}

/* Nhân vật trên điện thoại hẹp (2026-10-23): 5 cột co theo bề ngang khung (cột cố định 54 px tràn mép phải trên máy ~360 px) */
.k-narrow .cm-doll{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px 5px;padding:12px 10px}
.k-narrow .cm-slot img{max-width:min(42px,80%);max-height:42px}
.k-narrow .cm-dpw,.k-narrow .cm-dlv{min-width:0}

/* Đồng hành gọn (2026-10-23) */
.pt-sub{margin:4px 0 2px;font-size:11px;font-weight:600;letter-spacing:.3px;color:var(--k-faint);text-transform:uppercase}
.pt-sub:first-child{margin-top:0}
.pt-r{display:flex;align-items:center;gap:10px;padding:6px 0;border-bottom:1px solid var(--k-line)}
.pt-r:last-child{border-bottom:0}
.pt-ic{flex:none;width:22px;height:22px;border-radius:6px;display:grid;place-items:center;background:rgba(30,38,34,.55);box-shadow:inset 0 0 0 1px var(--c);opacity:.85}
.pt-ic svg{width:13px;height:13px;fill:var(--c)}
.pt-n{flex:1;min-width:0;display:flex;flex-direction:column}
.pt-n b{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pt-n .pt-on{font-style:normal;font-size:11px;color:var(--k-faint)}
.pt-n .pt-on.on{color:#81c784}
.pt-r .pt-v{flex:none;font-size:16px;font-weight:700;color:#ffd54f}

/* biểu tượng kỹ năng đồng hành như thẻ Chỉ số, lớn hơn chút cho dễ thấy */
/* như hàng tác dụng của chi tiết võ công (.dg-effi): vòng 32 px ánh màu chỉ số, hình 20 px */
.pt-r .cm-ico.pt-ic{width:32px;height:32px;border-radius:50%;background:color-mix(in srgb,var(--c) 16%,transparent);box-shadow:none;opacity:1}
.pt-r .cm-ico.pt-ic svg{width:20px;height:20px;fill:var(--c)}
.pt-r{gap:12px;padding:8px 0}
.pt-n b{font-size:14px}
.pt-r .pt-v{font-size:17px}

/* Cửa hàng trong thành: một nút (2026-10-23), biểu tượng nét cổ phong màu vàng */
.tsh-one .tsh-ic{width:50px;height:50px;color:#ffd54f}
.tsh-one .tsh-ic svg{width:28px;height:28px}
.sh-hseg{margin:4px 0 8px}
.sh-hseg .k-seg{width:100%}
.sh-hseg .k-seg button{flex:1}

/* lưới cửa hàng: không kẻ đường ngăn giữa các ô (2026-10-23) */
.dg-med .dg-medgrid .dg-shop{border-bottom:0}

/* nút Cửa hàng như các ô khay (Xã hội · Pet · Nhân vật…): ô vuông bo 14px nền trong, biểu tượng vàng + nhãn bên trong; giữ cỡ cũ (~56px) */
.tsh.tsh-one{width:56px;height:56px;justify-content:center;gap:3px;border-radius:14px;background:rgba(20,26,24,.5);box-shadow:0 1px 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.12);color:#dfe7e2;text-shadow:0 1px 2px rgba(0,0,0,.6);transition:background-color .15s}
.tsh.tsh-one:hover{background:#2f3b36}
.tsh.tsh-one .tsh-ic{width:auto;height:auto;border-radius:0;background:none;box-shadow:none;color:#ffd54f;transform:none}
.tsh.tsh-one .tsh-ic svg{width:26px;height:26px}
.tsh.tsh-one .tsh-n{padding:0;background:none;color:#dfe7e2;font:500 10px/1 var(--font,sans-serif);letter-spacing:.1px;text-transform:none}

/* chân hộp Cửa hàng: ngân lượng + đồng hồ nhập hàng (2026-10-23) */
.k-finfo{display:inline-flex;align-items:center;gap:12px;min-width:0;font-size:12.5px;color:var(--k-dim)}
.shdlg .k-finfo .sh-ref{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:var(--k-dim);white-space:nowrap}
.shdlg .k-finfo .sh-ref svg{width:14px;height:14px;fill:currentColor}

/* rê chuột như nút Hoạt động / Nhật ký (.acbtn): nền vàng nhạt, chữ vàng — cho nút Cửa hàng và các ô khay (2026-10-23) */
.tsh.tsh-one:hover,.tsh.tsh-one:focus-visible{background:rgba(255,193,7,.2)}
.tsh.tsh-one:hover .tsh-n,.tsh.tsh-one:focus-visible .tsh-n{color:#ffd54f}
html.nu #tabs .tray:hover{background-color:rgba(255,193,7,.2)!important;color:#ffd54f!important}

/* Nhiệm vụ và nút thu / mở khay: cùng kiểu nút trên sân như Hoạt động / Nhật ký (.acbtn) — 28px, nền trong, chữ 9px, rê chuột nền vàng nhạt (2026-10-23) */
html.nu .pcquest{height:28px;gap:5px;padding:0 10px 0 8px;background:rgba(20,26,24,.5);box-shadow:0 1px 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.12);font:500 9px/1 var(--font);letter-spacing:.1px;text-shadow:0 1px 2px rgba(0,0,0,.6);transition:background-color .15s,color .15s}
html.nu.nu-narrow .pcquest{font-size:9px;padding:0 10px 0 8px}
html.nu .pcquest:hover,html.nu .pcquest.on{background:rgba(255,193,7,.2);color:#ffd54f;box-shadow:0 1px 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.12)}
html.nu .pctray-tg:hover{background:rgba(255,193,7,.2);color:#ffd54f}

/* Trở lại ải = dải như Leo tháp / Luyện công (hud.css :is(#towerBar,#caveBar)) (2026-10-23) */
#townBar #bBack.tb-back{height:auto;display:inline-flex;align-items:center;gap:8px;padding:4px 4px 4px 10px!important;border-radius:999px;background:rgba(20,26,24,.5)!important;box-shadow:0 0 0 1px rgba(255,213,79,.3),0 4px 12px rgba(0,0,0,.25)!important;color:#e8eee9!important;font:12.5px/1.2 var(--font,sans-serif);text-shadow:0 1px 2px rgba(0,0,0,.8);white-space:nowrap}
#townBar #bBack.tb-back:hover{background:rgba(20,26,24,.62)!important;color:#e8eee9!important}
#townBar #bBack .tb-ic{display:grid;place-items:center;color:#ffd54f}
#townBar #bBack .tb-ic svg{width:16px;height:16px;fill:none}
#townBar #bBack .tb-nm{color:#ffd54f;font-weight:700}
#townBar #bBack .tb-quit{display:inline-flex;align-items:center;height:28px;padding:0 12px;border-radius:999px;background:#d32f2f;color:#fff;font:700 12px/1 var(--font,sans-serif);text-shadow:none;box-shadow:0 2px 6px rgba(0,0,0,.35)}
#townBar #bBack.tb-back:hover .tb-quit{background:#e53935}
/* ---- Bảng xếp hạng hoạt động + danh hiệu xếp hạng (js/rank.js, 2026-10-23) ---- */
html.nu .rk-bar{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
html.nu .rk-bar .k-seg{flex:1 1 auto;min-width:max-content;display:flex}
html.nu .rk-bar .k-seg button{flex:1 1 auto;min-width:0;padding:0 6px;overflow:hidden;text-overflow:ellipsis}
html.nu .rk-list{display:flex;flex-direction:column;gap:4px}
html.nu .rk-row{display:grid;grid-template-columns:26px 22px 1fr auto;align-items:center;gap:8px;padding:5px 10px;border-radius:12px;background:rgba(255,255,255,.035)}
html.nu .rk-row.rk-me{background:rgba(255,193,7,.14);box-shadow:inset 0 0 0 1px rgba(255,193,7,.45)}
html.nu .rk-n{text-align:center;font-weight:700;color:var(--k-mut,#9aa);font-size:12px}
html.nu .rk-med svg{display:block;width:24px;height:24px}
html.nu .rk-fac svg{display:block;width:20px;height:20px;fill:none;stroke:var(--el,#ffd54f);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
html.nu .rk-bar .k-seg button{white-space:nowrap}
html.nu .rk-nm,html.nu .rk-v{display:flex;flex-direction:column;min-width:0;line-height:1.2}
html.nu .rk-nm b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px}
html.nu .rk-v{text-align:right}
html.nu .rk-v b{font-size:12.5px;color:#ffd54f}
html.nu .rk-nm small,html.nu .rk-v small{font-size:10.5px;color:var(--k-mut,#9aa)}
html.nu .rk-gap{text-align:center;color:var(--k-mut,#9aa);line-height:.8}
html.nu .rk-empty,html.nu .rk-note{margin:4px 2px;font-size:11px;color:var(--k-mut,#9aa)}
html.nu .rk-tls{margin:0 0 10px}
html.nu .rk-tls .tl-row{margin-top:6px}
html.nu .rk-ic svg{display:block;width:40px;height:40px;filter:drop-shadow(0 0 6px rgba(255,213,79,.35))}
html.nu .rk-tn{text-shadow:0 0 8px currentColor}
/* ---- Xem nhân vật (js/inspect.js, 2026-10-23) ---- */
html.nu .rk-who{all:unset;cursor:pointer;font-weight:700;font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-bottom:1px dashed rgba(255,213,79,.45)}
html.nu .rk-who:hover{color:#ffd54f}
html.nu .rk-who:focus-visible{outline:2px solid var(--k-acc-lt);outline-offset:2px;border-radius:4px}
.insmenu .ins-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;min-height:34px}
.insmenu .ins-pw{display:flex;flex-direction:column;line-height:1.1}
.insmenu .ins-pw small{font-size:10.5px;color:var(--k-mut,#9aa)}
.insmenu .ins-pw b{font-size:18px;color:#ffd54f}
.insmenu .ins-tl{display:flex;align-items:center;gap:6px;min-width:0;font-size:12.5px}
.insmenu .ins-tl svg{width:22px;height:22px;flex-shrink:0}
.insmenu .ins-tl b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.insmenu .ins-doll{display:grid;grid-template-columns:repeat(5,1fr);grid-auto-rows:54px;gap:8px;margin:0 auto 10px;max-width:330px}
.insmenu .ins-c{position:relative;border-radius:10px;min-width:0}
.insmenu .ins-e{background:rgba(255,255,255,.03);box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
.insmenu .iv-it{background:rgba(20,26,24,.6);border:0;cursor:pointer}
.insmenu .iv-it .iv-el{left:3px;top:3px;width:14px;height:14px}
.insmenu .iv-enh{position:absolute;right:4px;bottom:2px;font-size:10px;color:#ffd54f}
.insmenu .ins-pet{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:12px}
.insmenu .ins-star{color:#ffd54f;letter-spacing:1px}

.insmenu .ins-note{margin:6px 2px;font-size:12px;color:var(--k-mut,#9aa)}
/* ---- Chat Thế giới (js/chat.js, 2026-10-23) ---- */
html.nu #chatBtn{position:absolute;z-index:31;gap:6px}
html.nu #chatBtn svg{width:18px;height:18px;color:#ffd54f;fill:none}
html.nu #chatBtn .ch-n,html.nu #chatBtn.acbtn em.ch-n{font:700 9.5px/16px var(--font);font-style:normal;color:#fff;background:#2e7d32;box-shadow:none;border-radius:999px;min-width:0;height:16px;padding:0 6px}   /* số người online: thông tin, chip xám (không phải thông báo đỏ có viền) */
html.nu #chatBtn .ch-n:empty{display:none}
html.nu #chatBtn .ch-dot{display:none;position:absolute;right:-2px;top:-2px}
html.nu #chatBtn.ch-has .ch-dot{display:block}
html.nu #chatBtn.ch-off{opacity:.55}
html.nu #chatBtn.on{background:rgba(255,193,7,.2)}
html.nu .ch-box{position:absolute;z-index:32;display:flex;flex-direction:column;background:rgba(14,19,17,.9);border-radius:14px;box-shadow:0 6px 24px rgba(0,0,0,.45),inset 0 0 0 1px rgba(255,255,255,.08);overflow:hidden;color:#e8eee9}
html.nu .ch-box[hidden]{display:none}
html.nu .ch-box.ch-kb{z-index:37}
html.nu .ch-h{display:flex;align-items:center;gap:8px;padding:4px 5px 4px 12px;border-bottom:1px solid rgba(255,255,255,.07);flex-shrink:0}
html.nu .ch-h>svg{width:18px;height:18px;color:#ffd54f;fill:none}
html.nu .ch-h b{font-size:13px}
html.nu .ch-h .ch-on{font-style:normal;margin-right:auto;display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:4px;background:#2e7d32;color:#fff;font-size:10.5px;font-weight:600}
html.nu .ch-h .ch-on:empty{visibility:hidden;padding:0;min-width:0}   /* giữ chỗ (đẩy nút đóng sang phải) cả khi chưa đủ 5 người online */
html.nu .ch-h .ch-x{width:28px;height:28px}
html.nu .ch-list{flex:1;min-height:0;overflow-y:auto;padding:5px 10px;font-size:12px;line-height:1.45;overscroll-behavior:contain}
html.nu .ch-l{padding:2px 0;word-break:break-word}
html.nu .ch-l.ch-me .ch-t{color:#fff3c4}
html.nu .ch-who{all:unset;cursor:pointer;display:inline-flex;align-items:baseline;gap:3px;vertical-align:baseline;margin-right:5px;font-weight:700;color:#9fd3ff}/* căn theo dòng chữ của tên (2026-11-01: lệch với tin nhắn khi thẻ bắt đầu bằng dải / biểu tượng); biểu tượng và dải căn giữa */
html.nu .ch-who:focus-visible{outline:2px solid var(--k-acc-lt);border-radius:4px}
html.nu .ch-who b::after{content:":";color:var(--k-mut,#9aa)}
html.nu .ch-who svg{width:16px;height:16px;flex-shrink:0;align-self:center}
html.nu .ch-who .ch-fac{width:14px;height:14px;fill:none}
/* nhân vật thử nghiệm / quản trị (2026-11-01, người dùng): dải "Tester" / "Admin" (đuôi én) trước tên trên thẻ chat */
html.nu .ch-who .ch-gm{align-self:center;font-size:9px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;line-height:1;color:#1a1408;padding:2px 9px 2px 5px;clip-path:polygon(0 0,100% 0,calc(100% - 5px) 50%,100% 100%,0 100%);margin-right:2px}
html.nu .ch-who .ch-gm.g1{background:linear-gradient(90deg,#4dd0e1,#80deea)}
html.nu .ch-who .ch-gm.g2{background:linear-gradient(90deg,#ffa726,#ffd54f)}
html.nu .ch-sys{display:flex;gap:6px;align-items:flex-start;color:#ffd54f}
html.nu .ch-sysb{display:inline-flex;align-items:center;gap:3px;flex-shrink:0;padding:0 7px 0 5px;border-radius:999px;background:rgba(255,193,7,.18);box-shadow:inset 0 0 0 1px rgba(255,193,7,.45);font-size:10.5px;font-weight:700;line-height:18px;color:#ffd54f;margin-top:1px}
html.nu .ch-sysb svg{width:13px;height:13px;fill:#ffd54f}
html.nu .ch-empty,html.nu .ch-why{margin:8px 2px;font-size:12px;color:var(--k-mut,#9aa)}
html.nu .ch-f{flex-shrink:0;padding:5px 7px 7px;border-top:1px solid rgba(255,255,255,.07)}
html.nu .ch-form{display:flex;gap:6px}
html.nu .ch-in{flex:1;min-width:0;height:30px;padding:0 14px;border-radius:999px!important;border:0;border-image:none!important;background:rgba(255,255,255,.08)!important;color:#fff;font:13px var(--font)}
html.nu .ch-in:focus{outline:2px solid rgba(255,193,7,.5)}
html.nu .ch-send{all:unset;cursor:pointer;width:30px;height:30px;border-radius:999px;flex-shrink:0;display:grid;place-items:center;background:rgba(0,0,0,.78);box-shadow:inset 0 0 0 1.5px rgba(255,213,79,.7);color:#ffd54f}
html.nu .ch-send:hover{background:rgba(255,193,7,.2)}
html.nu .ch-send:focus-visible{outline:2px solid var(--k-acc-lt);outline-offset:2px}
html.nu .ch-send svg{width:19px;height:19px;fill:none}
html.nu .ch-pop{position:absolute;z-index:2;display:flex;flex-direction:column;min-width:150px;padding:4px;border-radius:12px;background:#1b2421;box-shadow:0 6px 18px rgba(0,0,0,.5),inset 0 0 0 1px rgba(255,255,255,.1)}
html.nu .ch-pop button{all:unset;cursor:pointer;display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:8px;font-size:12.5px;color:#e8eee9}
html.nu .ch-pop button:hover,html.nu .ch-pop button:focus-visible{background:rgba(255,193,7,.16)}
html.nu .ch-pop svg{width:16px;height:16px;fill:#cfd8d3}
html.nu .ch-pop .ch-rep{color:#ff8a80}
html.nu .ch-pop .ch-rep svg{fill:#ff8a80}
html.afk-on #chatBtn,html.afk-on #chatBox{display:none!important}
html.nu.ch-open #toast{top:64px!important;bottom:auto!important}

.insmenu .ins-mid{align-self:center;height:54px}
/* xem nhân vật (2026-10-23, người dùng): nền đen đậm hơi trong suốt, chỉ thanh đầu (không chân hộp) */
.k-dialog.insmenu{background:rgba(6,8,7,.92)!important;box-shadow:0 10px 32px rgba(0,0,0,.6),inset 0 0 0 1px rgba(255,255,255,.07)!important}
.k-dialog.insmenu .k-head{background:rgba(0,0,0,.5)}
.k-dialog.insmenu .k-foot{display:none}
.k-dialog.insmenu .k-card{background:rgba(255,255,255,.04);box-shadow:none}
.k-dialog.insmenu .ins-e{background:rgba(255,255,255,.03);box-shadow:inset 0 0 0 1px rgba(255,255,255,.07)}
.k-dialog.insmenu .iv-it{background:rgba(0,0,0,.45)}
.k-dialog.insmenu .k-body{padding-bottom:16px}
/* chữ khung Chat: Be Vietnam Pro (người dùng chọn #6, 2026-10-23; fonts/font.css) */
html.nu .ch-box,html.nu .ch-box :is(b,span,em,p,input,button){font-family:'Be Vietnam Pro','Noto Sans',sans-serif}
html.nu .ch-who b{font-weight:700}html.nu .ch-who:has(.ch-cl){vertical-align:baseline}/* thẻ bậc phi phong đứng đầu (chữ): căn theo dòng chữ, không lệch 3 px như khi biểu tượng đứng đầu (2026-10-29) */
/* biểu cảm kiếm hiệp trong chat (js/chat.js EMO, 2026-10-23) */
html.nu .ch-form{position:relative}
html.nu .ch-emo-i{width:1.45em;height:1.45em;vertical-align:-.36em;margin:0 1px;fill:none}/* cùng dòng chữ, không đẩy dòng xuống (2026-10-25) */   /* 2026-10-24: biểu cảm to hơn (18 → 26 px), dòng vẫn gọn nhờ lề âm */
html.nu .ch-emo{all:unset;cursor:pointer;width:30px;height:30px;border-radius:999px;flex-shrink:0;display:grid;place-items:center;background:rgba(255,255,255,.08)}
html.nu .ch-emo:hover,html.nu .ch-emo[aria-expanded=true]{background:rgba(255,193,7,.2)}
html.nu .ch-emo:focus-visible{outline:2px solid var(--k-acc-lt);outline-offset:2px}
html.nu .ch-emo-b{width:20px;height:20px;fill:none}
html.nu .ch-emp{position:absolute;right:0;bottom:38px;display:grid;grid-template-columns:repeat(5,36px);gap:4px;padding:6px;border-radius:12px;background:#1b2421;box-shadow:0 6px 18px rgba(0,0,0,.5),inset 0 0 0 1px rgba(255,255,255,.1);z-index:3}
html.nu .ch-emp[hidden]{display:none}
html.nu .ch-emp button{all:unset;cursor:pointer;width:36px;height:36px;border-radius:10px;display:grid;place-items:center}
html.nu .ch-emp button:hover,html.nu .ch-emp button:focus-visible{background:rgba(255,193,7,.16)}
html.nu .ch-emp svg{width:26px;height:26px;fill:none}
/* Bách khoa › Trò chuyện: bảng biểu cảm */
.cx-emo{display:grid;grid-template-columns:repeat(5,1fr);gap:8px 4px;margin:2px 0 6px}
.cx-emo span{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:10.5px;color:var(--k-mut,#9aa);text-align:center}
.cx-emo span svg{width:30px!important;height:30px!important;fill:none}
/* chat: kéo thanh đầu để đổi chiều cao */
html.nu .ch-h{position:relative;cursor:ns-resize;touch-action:none;user-select:none}
html.nu .ch-h .ch-x{cursor:pointer}
html.nu .ch-grip{position:absolute;top:3px;left:50%;transform:translateX(-50%);width:34px;height:4px;border-radius:2px;background:rgba(255,255,255,.28)}
html.nu .ch-h.drag .ch-grip,html.nu .ch-h:hover .ch-grip{background:rgba(255,213,79,.8)}
/* Tài Xỉu gọn (2026-10-23): xúc xắc + tổng một hàng, kết quả một dòng đủ rộng bên dưới; cược đủ rộng; cửa thấp */
.tx-table{margin-top:0!important;padding:10px!important;gap:10px!important}
.tx-res{flex-wrap:wrap;gap:6px 14px!important;padding:8px 12px!important;justify-content:center}
.tx-res p{flex:1 1 100%!important;text-align:center;font-size:12.5px}
.tx-die{width:34px!important;height:34px!important;padding:5px!important}
.tx-bet{gap:8px!important}
.tx-bet>img{width:22px;height:22px;flex-shrink:0}
.tx-bet .k-seg{flex:1;display:flex}
.tx-bet .k-seg button{flex:1;padding:0 6px}
.tx-door{padding:7px 4px!important;gap:1px!important}
.tx-door small{white-space:nowrap}
.tx-lr{display:flex;align-items:baseline;gap:10px;white-space:nowrap;overflow:hidden}
.tx-lr .tx-ld{font-variant-numeric:tabular-nums;color:var(--k-dim)}
.tx-lr b{font-weight:700;color:#ef9a9a}
.tx-lr.w b{color:#a5d6a7}
.tx-lr small{font-size:11.5px;color:var(--k-dim);overflow:hidden;text-overflow:ellipsis}
/* chat: thông báo hệ thống mới khi khung đóng (huy hiệu loa vàng, nhịp nhẹ) */
html.nu #chatBtn .ch-sysdot{display:none;position:absolute;right:-7px;top:-8px;width:20px;height:20px;border-radius:50%;background:#ffc107;box-shadow:0 0 0 2px rgba(10,14,12,.9),0 0 10px rgba(255,193,7,.7);place-items:center}
html.nu #chatBtn .ch-sysdot svg{width:13px;height:13px;fill:#1b1500}
html.nu #chatBtn.ch-sysnew .ch-sysdot{display:grid;animation:chSys 1.6s ease-in-out infinite}
html.nu #chatBtn.ch-sysnew{box-shadow:inset 0 0 0 1.5px rgba(255,193,7,.75)}
@keyframes chSys{0%,100%{transform:scale(1)}50%{transform:scale(1.15)}}
@media (prefers-reduced-motion:reduce){html.nu #chatBtn.ch-sysnew .ch-sysdot{animation:none}}
body.saver #chatBtn.ch-sysnew .ch-sysdot{animation:none}

/* Tỷ thí (2026-10-23, js/duelui.js): hộp mời + thanh máu hai bên */
html.nu .dv-vs{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px}
html.nu .dv-side{display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center;min-width:0}
html.nu .dv-side b{font-size:13.5px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.nu .dv-side span{font-size:11px;color:var(--k-dim,#9aa7a1)}
html.nu .dv-side .dv-pw{font-size:17px;font-weight:700;color:#ffd54f}
html.nu .dv-side .dv-pw small{display:block;font-size:10px;font-weight:400;color:var(--k-dim,#9aa7a1)}
html.nu .dv-fac{width:30px;height:30px}
html.nu .dv-x,html.nu .dh-vs{font-style:normal;font-weight:800;color:#ff7043;font-size:15px}
html.nu .dv-bar{margin-top:12px;height:4px;border-radius:999px;background:rgba(255,255,255,.1);overflow:hidden}
html.nu .dv-bar i{display:block;height:100%;background:#ffc107;transform-origin:left;transition:transform .1s linear}
html.nu #duelHud{position:absolute;left:50%;top:calc(var(--safe-t,0px) + 10px);transform:translateX(-50%);z-index:30;display:flex;align-items:center;gap:8px;padding:6px 10px;border-radius:14px;background:rgba(20,26,24,.72);box-shadow:inset 0 0 0 1px rgba(255,255,255,.1);pointer-events:none;width:min(420px,calc(100% - 24px));box-sizing:border-box}
html.nu #duelHud[hidden]{display:none}
html.nu .dh-s{flex:1;display:flex;align-items:center;gap:6px;min-width:0}

html.nu .dh-fac{width:22px;height:22px;flex-shrink:0}
html.nu .dh-m{flex:1;min-width:0}
html.nu .dh-m b{display:block;font-size:11.5px;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.nu .dh-bar{height:7px;border-radius:999px;background:rgba(255,255,255,.12);overflow:hidden;margin-top:2px}
html.nu .dh-bar i{display:block;height:100%;background:linear-gradient(90deg,#e53935,#ff7043);transform-origin:left;transition:transform .15s}


/* Tỷ thí: ẩn Hoạt động / Nhật ký / Nhiệm vụ, thẻ ải, cột khay (giữ HUD, thanh chiêu, Chat) */
html.duel-on :is(#jxActs,.stg,#pcQuest,.pctray-tg,#tabs .tray,#jxR,#evBox,#townShops,#zoomBtn){visibility:hidden!important;pointer-events:none!important}

/* Chat: nút + danh sách người đã chặn (2026-10-23) */
html.nu .ch-h .ch-bl{margin-left:auto;width:auto;height:22px;min-width:0;padding:0 8px;display:inline-flex;align-items:center;justify-content:center;border-radius:4px;background:#d32f2f;box-shadow:none;border:0;color:#fff;font-size:10.5px;font-weight:600;cursor:pointer}
html.nu .ch-h .ch-bl:hover,html.nu .ch-h .ch-bl:focus-visible{background:#e53935}
html.nu .ch-h .ch-bl[hidden]{display:none}
html.nu .ch-h .ch-bl svg{display:none}
html.nu .ch-h .ch-bl+.ch-x{margin-left:6px}
html.nu .ch-bls{min-width:200px;max-height:60%;overflow:auto}
html.nu .ch-blh{font-size:11px;color:#9aa7a1;padding:4px 8px 2px;font-weight:600}
html.nu .ch-blr{display:flex;align-items:center;gap:8px;padding:2px 2px 2px 8px}
html.nu .ch-blr span{flex:1;min-width:0;font-size:12.5px;color:#e8eee9;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.nu .ch-pop .ch-blr button{padding:3px 9px;border-radius:4px;background:#d32f2f;color:#fff;font-size:10.5px;font-weight:600}
html.nu .ch-pop .ch-blr button:hover,html.nu .ch-pop .ch-blr button:focus-visible{background:#e53935}

/* thanh cuộn mảnh tối như hộp thoại (2026-10-23): Chat, danh sách đã chặn, Nhật ký, Túi; trình duyệt PC hiện thanh trắng mặc định */
html.nu :is(.ch-list,.ch-bls,.ch-emp,.ev-body,.iv-col .iv-grid){scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.24) transparent}
html.nu :is(.ch-list,.ch-bls,.ch-emp,.ev-body,.iv-col .iv-grid)::-webkit-scrollbar{width:6px;height:6px}
html.nu :is(.ch-list,.ch-bls,.ch-emp,.ev-body,.iv-col .iv-grid)::-webkit-scrollbar-track{background:transparent}
html.nu :is(.ch-list,.ch-bls,.ch-emp,.ev-body,.iv-col .iv-grid)::-webkit-scrollbar-thumb{background:rgba(255,255,255,.24);border-radius:6px}
html.nu :is(.ch-list,.ch-bls,.ch-emp,.ev-body,.iv-col .iv-grid)::-webkit-scrollbar-button{display:none;height:0}

/* Xem nhân vật › Đồng hành: kỹ năng bằng biểu tượng (bị động tròn; chủ động vuông bo, viền vàng, dấu tia) */
.insmenu .ins-pg{display:inline-flex;gap:6px;align-items:center}
.insmenu .ins-pk{position:relative;display:inline-flex;align-items:center;gap:4px;height:26px;padding:0 9px 0 4px;border-radius:999px;background:rgba(255,255,255,.06);font-size:11.5px;cursor:default}
.insmenu .ins-pk>svg{width:18px;height:18px;flex-shrink:0}
.insmenu .ins-pk b{font-weight:700;color:#e8eee9}
.insmenu .ins-pk.act{border-radius:7px;background:rgba(255,193,7,.1);box-shadow:inset 0 0 0 1px rgba(255,193,7,.55)}
.insmenu .ins-bolt{position:absolute;top:-5px;right:-5px;width:13px;height:13px;border-radius:50%;background:#ffc107;display:grid;place-items:center;box-shadow:0 0 0 1.5px #141a18}
.insmenu .ins-bolt svg{width:9px;height:9px;fill:#1f1600}

/* Tỷ thí trực tiếp: cần điều khiển nổi (hiện ở chỗ ngón cái chạm, js/duelui.js) */
html.nu #duelJoy{position:absolute;z-index:31;width:112px;height:112px;margin:-56px 0 0 -56px;border-radius:50%;background:rgba(20,26,24,.35);box-shadow:inset 0 0 0 2px rgba(255,255,255,.22);pointer-events:none;touch-action:none}
html.nu #duelJoy[hidden]{display:none}
html.nu #duelJoy i{position:absolute;left:50%;top:50%;width:46px;height:46px;border-radius:50%;background:rgba(255,193,7,.55);box-shadow:0 0 0 2px rgba(255,255,255,.35)}
html.duel-on #arena,html.duel-on #battle{touch-action:none}

/* Tỷ thí: chỉ còn ô kỹ năng + nút xoay chiêu; thuốc, Thổ Địa Phù, Hệ thống, Tự luyện, Tự nhặt mờ đi và không bấm được (cài đặt giữ như lúc vào trận) */
html.duel-on :is(#hudSys,.sys-fl,#hudDisp,#giftBtn,#jxOverflow,#jxMenu,#jxDisp){display:none!important}
html.duel-on #pad :is(#bHp,#bMp,#bTp,.pcspot,#pcTrain,#pcCollect,#pcPush,#pcPick){display:none!important}
html.duel-on #bb{background:none!important;box-shadow:none!important}

/* Tỷ thí: thanh hai bên ở trên cùng, ẩn mọi thứ ở phần trên màn hình (HUD, vàng, tên, dải trạng thái…); phái của mình to, nổi bật */
html.duel-on :is(#top,.hud1,.hname,#jxStat,#hudTools,.hgold,#zoomBtn,#townShops,.pctray-tg,#tabs .tray){visibility:hidden!important;pointer-events:none!important}
html.nu #duelHud .dh-s.me .dh-fac{width:34px;height:34px;padding:4px;border-radius:50%;background:rgba(255,255,255,.08);box-shadow:0 0 0 2px var(--c),0 0 14px var(--c);filter:drop-shadow(0 0 4px var(--c))}
html.nu #duelHud .dh-s.me .dh-m b{color:#ffd54f}

/* Tỷ thí: nội lực + hàng trạng thái dưới tên mỗi bên */
html.nu .dh-mana{height:3px;border-radius:999px;background:rgba(255,255,255,.1);overflow:hidden;margin-top:2px}
html.nu .dh-mana i{display:block;height:100%;background:#42a5f5;transform-origin:left;transition:transform .15s}

html.nu .dh-st{display:flex;gap:4px;height:13px;margin-top:3px;align-items:center}

html.nu .dh-si{display:inline-flex;align-items:center;gap:2px;font-size:9px;line-height:1;color:#fff;font-style:normal}
html.nu .dh-si svg{width:12px;height:12px;fill:var(--c)}
html.nu .dh-si b{font-weight:600;color:var(--c)}

/* Chuyển sinh (2026-10-24, js/menus.js openReborn): hàng điều kiện / thay đổi / bảng kỹ năng — biểu tượng tròn tô màu, giá trị bên phải, dấu đạt / chưa đạt */
.rbmenu .rb-list{display:flex;flex-direction:column;gap:6px}
.rbmenu .rb-row{display:grid;grid-template-columns:28px 1fr auto auto;align-items:center;gap:10px;padding:7px 10px;border-radius:12px;background:var(--k-input,rgba(255,255,255,.05));margin-top:6px}
.rbmenu .rb-list .rb-row{margin-top:0}
.rbmenu .rb-row>span:not(.rb-ic){font-size:13px;color:var(--k-mut,#c9cfcb);display:flex;flex-direction:column;line-height:1.25}
.rbmenu .rb-row>span small{font-size:11px;opacity:.75}
.rbmenu .rb-row>b{font-size:13.5px;text-align:right;display:flex;flex-direction:column;align-items:flex-end;line-height:1.2}
.rbmenu .rb-row>b small{font-size:10.5px;font-weight:600;opacity:.7}
.rbmenu .rb-row.no>b{color:#ff8a80}.rbmenu .rb-row.ok>b{color:#c5e1a5}
.rbmenu .rb-ic{width:28px;height:28px;border-radius:999px;display:grid;place-items:center;background:color-mix(in srgb,var(--c,#ffd54f) 18%,transparent)}
.rbmenu .rb-ic svg{width:16px;height:16px;fill:var(--c,#ffd54f)}
.rbmenu .rb-ic.money img{width:18px;height:18px;object-fit:contain}
.rbmenu .rb-st svg{width:16px;height:16px;fill:#9ccc65}.rbmenu .rb-row.no .rb-st svg{fill:#ff8a80}
.rbmenu .rb-row:not(.ok):not(.no){grid-template-columns:28px 1fr auto}
.rbmenu .rb-row.sk:not(.ok):not(.no){grid-template-columns:28px 1fr auto 30px}
.rbmenu .rb-add{width:30px;height:30px}
/* trần chỉ số (2026-10-24): giới hạn hiện mờ sau giá trị; chạm trần thì giá trị + giới hạn chuyển vàng */
.cm-cap{font-size:10.5px;font-weight:500;color:var(--k-dim);opacity:.75;font-variant-numeric:tabular-nums;margin-left:1px}
.cm-box h4 .cm-cap{margin-left:6px;font-size:11px}
.cm-kv b.cm-vb{display:flex;flex-direction:column;align-items:flex-end;line-height:1.15}
.cm-vb .cm-cap{margin:0;font-size:10px;line-height:1.1}
.cm-atcap>b,.cm-atcap .cm-cap,.cm-misc .cm-atcap b{color:#ffc107!important;opacity:1}
.cm-rt.cm-atcap{box-shadow:inset 0 0 0 1.5px #ffc107}

/* Kháng › giảm thời gian trạng thái (2026-10-24): 4 ô gọn dưới ô kháng hệ */
.cm-sth{margin:10px 0 6px;font-size:11px;color:var(--k-dim)}
.cm-stt{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}/* 5 ô một hàng (Bỏng, 2026-11-02) */
.cm-st{display:flex;flex-direction:column;align-items:center;gap:2px;padding:5px 2px;border-radius:12px;background:var(--k-input);min-width:0}
.cm-st span{display:flex;align-items:center;gap:3px;font-size:10.5px;color:var(--k-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.cm-st .cm-ico{width:12px;height:12px;flex:none}
.cm-st .cm-ico svg{width:12px;height:12px}
.cm-st b{display:flex;align-items:center;gap:3px;font:600 14px/1.1 var(--font);font-variant-numeric:tabular-nums}
.cm-st.cm-atcap{box-shadow:inset 0 0 0 1.5px #ffc107}
.cm-st.cm-atcap b{color:#ffc107}
/* Túi thú (Đồng hành, 2026-10-24) */
.pb-bar{margin-bottom:8px}







.pb-d{width:28px;height:28px;flex:none;color:#f48fb1}

/* Đồng hành gọn (2026-10-24): kỹ năng và túi thú là lưới ô */
.pt-grid{display:grid;grid-template-columns:repeat(var(--n,4),minmax(0,1fr));gap:6px}
.pt-c{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 3px 5px;border-radius:12px;background:var(--k-input);min-width:0;text-align:center}
.pt-c.act{box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--c) 70%,transparent)}
.pt-c .cm-ico.pt-ic{width:20px;height:20px;background:none;box-shadow:none;border-radius:0;opacity:1}.pt-c .cm-ico.pt-ic svg{width:18px;height:18px;fill:var(--c)}.pt-c b{font:600 13.5px/1.1 var(--font);color:#ffd54f;font-variant-numeric:tabular-nums}
.pt-c small{font-size:10px;line-height:1.2;color:var(--k-dim);max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.pt-c .pt-on{font-style:normal;font-size:9.5px;line-height:1.2;color:var(--k-dim);display:inline-flex;align-items:center;gap:2px;white-space:nowrap}.pt-c .pt-on svg{width:10px;height:10px;fill:currentColor}.pt-c .pt-on.on{color:#81c784}

.pb-bar{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.pb-bar>.k-sel,.pb-bar>select,.pb-bar>.k-selw{flex:1 1 160px}.pb-bar>.k-seg{flex:1 1 auto;display:flex}.pb-bar>.k-seg>button{flex:1 1 0}
.pb-g{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:8px}
.pb-c{position:relative;width:100%;aspect-ratio:1;padding:0;border:0;border-radius:12px;background:var(--k-input);display:grid;place-items:center;cursor:pointer;box-shadow:inset 0 0 0 1.5px var(--rc,#607d6b)}
.pb-c.s4{--rc:#9575cd}.pb-c.s5{--rc:#ffd54f;background:radial-gradient(circle at 50% 40%,rgba(255,213,79,.16),var(--k-input) 70%)}
.pb-c img{max-width:44px;max-height:44px}.pb-c:hover{filter:brightness(1.15)}
.pb-st{position:absolute;left:4px;top:3px;font:700 10px var(--font);color:var(--rc,#cfd8d3)}
.pb-dots{position:absolute;left:0;right:0;bottom:3px;display:flex;justify-content:center;gap:1px}.pb-dots i{width:11px;height:11px;color:var(--c);display:inline-flex}.pb-dots svg{width:11px;height:11px;fill:currentColor}
.pd-top{display:grid;place-items:center;margin-bottom:8px}.pd-top img{max-height:72px}
.pd-free{color:#ef5350}
.pt-subl{display:inline-flex;align-items:center;gap:6px}

/* tên đồng hành (2026-10-24): sao một dòng phía trên tên; bút đổi tên giống thẻ Nhân vật (.cm-name .cm-ren) */
.pt-stl{display:block;line-height:1;margin-bottom:2px}.pt-stl .pt-st{font-size:12px;margin:0!important;padding:0}
.pt-subl .cm-ren{margin-left:8px;width:24px;height:24px;padding:0;opacity:.45;transition:opacity .15s;flex:none}.pt-subl .cm-ren svg{width:13px;height:13px}.pt-subl .cm-ren:hover,.pt-subl .cm-ren:focus-visible{opacity:1}

/* hành trang đồng hành + kỹ năng khóa theo cấp (2026-10-24) */
.pt-c.lk{opacity:.45;filter:grayscale(.7)}
.pi-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:8px}.pi-bar>*:not(.pi-e){flex:1 1 96px;min-width:96px}
.pi-e{width:30px;height:30px;padding:0;border:0;border-radius:999px;background:var(--k-input);display:grid;place-items:center;opacity:.45;cursor:pointer}.pi-e.on{opacity:1;box-shadow:0 0 0 1.5px #ffd54f}.pi-e svg{width:22px;height:22px}
.pi-g{display:grid;grid-template-columns:repeat(auto-fill,50px);gap:6px}
.pi-c{position:relative;width:50px;height:50px;padding:0;border:0;border-radius:10px;background:var(--k-input);display:grid;place-items:center;cursor:pointer;box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--rc) 55%,transparent)}
.pi-c img{max-width:36px;max-height:36px}.pi-el{position:absolute;left:3px;top:3px;width:13px;height:13px}.pi-n{position:absolute;right:4px;bottom:2px;font:700 10px var(--font);color:#8ecbff}
.pi-lines{display:flex;flex-direction:column;gap:3px;font-size:12.5px}

/* xem nhân vật: thẻ Đồng hành giống hộp Đồng hành (2026-10-24) */
.ins-ph{display:flex;align-items:center;gap:12px;margin-bottom:10px}.ins-pim{width:56px;height:56px;display:grid;place-items:center;flex:0 0 auto}.ins-pim img{max-width:56px;max-height:56px}
.ins-pt{display:flex;flex-direction:column;gap:1px;min-width:0}.ins-pt .ins-star{color:#ffd54f;font-size:13px;letter-spacing:1px}.ins-pn{font-size:15px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ins-pt small{font-size:11.5px;color:var(--k-dim)}

/* Nhật ký › Cập nhật: bản mới chờ lúc yên (js/update.js) */
.ev-upd{display:block;width:100%;height:34px;margin:2px 0 6px;border:0;border-radius:999px;background:#ffc107;color:#1b1b1b;font:600 13px var(--font,inherit);cursor:pointer}.ev-upd:hover{background:#ffd54f}

/* nút túi trên thẻ đồng hành (2026-10-25) */
.pt-bagbtn{position:relative;width:40px;height:40px;color:#ffd54f}.pt-bagbtn svg{width:22px;height:22px}.pt-bagbtn .pt-bagn{position:absolute;top:-4px;right:-4px;min-width:16px;height:16px;padding:0 4px;font-size:10px;line-height:16px;border-radius:999px;background:#3a4a43;color:#fff;box-shadow:none}

/* khoảng giá trị kỹ năng đồng hành (min–max, đã nhân sao) sau con số, mờ như /N của chỉ số có trần (2026-10-25) */
.pt-c b{white-space:nowrap}
.pt-c .pt-rg{display:block;margin:-1px 0 1px;font:500 10px/1.1 var(--font);color:var(--k-dim);font-variant-numeric:tabular-nums;white-space:nowrap}

/* bộ lọc giữ thú theo sao (2026-10-25) */
.pb-keep{display:flex;align-items:center;gap:6px;margin:0 0 10px;font-size:12px;color:var(--k-dim)}
.pb-keep span{margin-right:2px}
.pb-k{height:28px;min-width:44px;padding:0 10px;border-radius:999px;border:0;background:var(--k-input);box-shadow:inset 0 0 0 1px var(--k-line2);color:var(--k-dim);font:600 12px var(--font);cursor:pointer}
.pb-k.on{background:rgba(255,193,7,.18);box-shadow:inset 0 0 0 1px rgba(255,193,7,.6);color:#ffd54f}

/* Linh Thú Đan: nút đổi kỹ năng cùng biểu tượng / màu vật phẩm; hộp chọn bộ cũ / mới */
.petmenu .k-btn.pd-pill{color:#f48fb1}
.petmenu .rr-h{font-size:11.5px;color:var(--k-mut,#9aa5a0);margin:2px 2px 6px}
.petmenu .rr-h.new{color:#f48fb1;margin-top:12px}
/* chip thú 5 sao mới trên nút Pet: cùng kiểu đếm đỏ của thông báo (.k-cnt) */
#tabs .tray .pet5{position:absolute;top:-5px;right:-7px;min-width:22px;height:16px;padding:0 4px;border-radius:999px;background:var(--k-noti,#ef5350);color:#fff;font-weight:700;font-size:10px;line-height:16px;text-align:center;box-shadow:var(--k-noti-ring,0 0 0 2px #1b2220);pointer-events:none;z-index:2}#tabs .tray .pet5[hidden]{display:none}

/* Túi (2026-10-26): Kho ở cuối thẻ Hành trang; thẻ Đồ rác chỉ biểu tượng đỏ */
.ivmenu .iv-stash{margin-top:14px;padding-top:10px;border-top:1px solid var(--k-line,rgba(255,255,255,.08))}
/* tab Đồ rác chỉ có biểu tượng: viên thuốc cùng chiều cao với tab đang chọn (đối xứng với Hành trang bên trái), nền đỏ nhạt, không viền (2026-10-26) */.ivmenu .k-tabs .k-tio{flex:0 0 auto;align-self:stretch;width:46px;min-width:46px;padding:0;margin-left:4px;border-radius:999px;display:grid;place-items:center;background:rgba(239,83,80,.14);box-shadow:none}.ivmenu .k-tabs .k-tio svg{width:17px;height:17px;fill:#ff6e6b}.ivmenu .k-tabs .k-tio:hover{background:rgba(239,83,80,.24)}.ivmenu .k-tabs .k-tio[aria-selected=true]{background:rgba(239,83,80,.3)}

/* phần vượt giới hạn ở ô Kháng / Giảm thời gian trạng thái (2026-10-26) */
.cm-rt,.cm-st{position:relative}.cm-ov{position:absolute;top:-10px;right:-8px;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:#3a2f12;color:#ffd54f;box-shadow:0 0 0 1.5px rgba(255,193,7,.55);font:700 10px/16px var(--font,system-ui);font-style:normal;text-align:center;font-variant-numeric:tabular-nums;z-index:1}
/* Bạn hữu (js/friends.js, 2026-10-26): một dòng mỗi người — huy hiệu phái, tên, chấm xanh khi đang chơi, cấp, nút biểu tượng; hộp chọn bạn hữu vào Tống Kim */
.fr-row{display:flex;align-items:center;gap:8px;min-height:38px;padding:4px 6px 4px 8px;border-radius:12px;background:rgba(255,255,255,.04)}
.fr-row+.fr-row{margin-top:6px}
.fr-fac{width:26px;height:26px;flex:0 0 auto;border-radius:50%;display:grid;place-items:center;background:rgba(0,0,0,.35);box-shadow:inset 0 0 0 1.5px currentColor}
.fr-fac svg{width:17px;height:17px}
.fr-n{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:#e8eaed}
.fr-l{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:11px;color:var(--k-dim,#9aa59e)}
.fr-on{width:7px;height:7px;border-radius:50%;background:#66bb6a;box-shadow:0 0 6px rgba(102,187,106,.7)}
.fr-b{display:flex;gap:6px;flex:0 0 auto}
.fr-ib{width:30px;height:30px;padding:0;display:grid;place-items:center}
.fr-ib svg{width:16px;height:16px;fill:currentColor}
.fr-yes{color:#66bb6a}
.fr-pick .fr-p{width:100%;border:0;cursor:pointer;text-align:left;font:inherit;color:inherit;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.fr-pick .fr-p.sel{background:rgba(255,193,7,.16);box-shadow:inset 0 0 0 1.5px rgba(255,193,7,.6)}
.fr-ck{width:22px;height:22px;flex:0 0 auto;border-radius:50%;display:grid;place-items:center;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.25)}
.fr-ck svg{width:14px;height:14px;fill:#1b1b1b;opacity:0}
.fr-p.sel .fr-ck{background:#ffc107;box-shadow:none}.fr-p.sel .fr-ck svg{opacity:1}

/* ô Phi phong khóa (2026-10-26): như ô trống, mờ hơn, có ổ khóa */
.cm-lock{background:rgba(0,0,0,.28);box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.06);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:default}
.cm-lock svg{width:15px;height:15px;fill:var(--k-faint);opacity:.75}
.cm-lock span{font:500 10px/1.15 var(--font);color:var(--k-faint);opacity:.85}

/* Phi phong (2026-10-26): hộp Phi phong, ô Nhân vật */
.cm-cloak img{image-rendering:pixelated;width:32px;height:32px}
.cl-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-top:1px solid var(--k-line)}
.cl-row:first-child{border-top:0}
.cl-row svg{width:16px;height:16px;fill:#ffd54f;flex:none}
.cl-row i.ic{display:flex}.cl-row i.ic svg{fill:currentColor}
.cl-row span{flex:1;font-size:12.5px;color:var(--k-dim)}
.cl-row b{font-size:15px;font-variant-numeric:tabular-nums}
.cl-row b i{font-style:normal;color:#ffc107;font-size:13px}
.cl-row b.txt{font-size:12.5px;font-weight:600;text-align:right;max-width:62%}
.cl-abs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.cl-pick{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 6px;border-radius:12px;border:1px solid var(--k-line2);background:rgba(255,255,255,.04);color:var(--k-text);cursor:pointer;text-align:center}
.cl-pick svg{width:20px;height:20px;fill:#ffd54f}
.cl-pick b{font-size:12.5px}
.cl-pick small{font-size:10.5px;color:var(--k-dim);line-height:1.25}
.cl-pick:hover{border-color:#ffc107;background:rgba(255,193,7,.12)}
.cl-cost{font-size:12px;color:var(--k-dim)}
.cl-cost.bad{color:#ef5350}
.insmenu .ins-cl img{image-rendering:pixelated;width:32px;height:32px}

/* Nhân vật › Chỉ số › Từ trang bị (2026-10-29): dòng gọn như các dòng chỉ số phía trên (không số to, không đĩa biểu tượng) */
.cm-gear{margin-top:6px}
.cm-gear>summary{display:flex;align-items:center;gap:6px;cursor:pointer;list-style:none;font-size:11.5px;font-weight:600;letter-spacing:.3px;color:#9fb0a7;padding:4px 0}
.cm-gear>summary::-webkit-details-marker{display:none}
.cm-gear>summary::before{content:"";width:6px;height:6px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(-45deg);transition:transform .15s}
.cm-gear[open]>summary::before{transform:rotate(45deg)}
.cm-gear>summary b{min-width:18px;padding:0 6px;border-radius:999px;background:rgba(255,255,255,.08);color:#cfd8d3;font-size:10.5px;line-height:16px;text-align:center}
.k-layer .cm-gear .dg-eff{gap:8px;padding:2px 0;border-bottom:0;font-size:12.5px}
.k-layer .cm-gear .dg-effi{width:18px;height:18px;background:none}
.k-layer .cm-gear .dg-effi svg{width:15px;height:15px}
.k-layer .cm-gear .dg-effl{color:#b9c6bf}
.k-layer .cm-gear .dg-effv{font-size:13px;font-weight:600}
.k-layer .cm-gear .dg-effv .dg-vs,.k-layer .cm-gear .dg-effv .dg-vu{font-size:10.5px}

/* túi đồng hành (2026-10-29): Lấy hết · Bán nhanh · Bán hết chung một hàng */
.pi-acts{flex-wrap:nowrap}.pi-acts .k-btn{flex:1 1 auto;min-width:0;padding:0 10px;white-space:nowrap}

/* Trang bị & kỹ năng: chỉ số có giới hạn (2026-10-29), chạm / vượt giới hạn thì vàng như các hàng Chỉ số */
.cm-gear .dg-eff.gr-cap .dg-effv,.cm-gear .dg-eff.gr-cap .cm-cap{color:#ffc107!important;opacity:1}.cm-gear .cm-cap{margin-left:4px}

/* Tủ đồ (2026-10-29): nút móc áo trên ô trang bị + hộp đổi hình */
.cm-wd{position:absolute;right:3px;bottom:3px;z-index:2;width:16px;height:16px;padding:0;border-radius:999px;display:grid;place-items:center;background:rgba(20,26,24,.85);box-shadow:0 0 0 1px rgba(255,255,255,.22);color:#9aa5a0;cursor:pointer;font-style:normal;filter:drop-shadow(0 1px 1px rgba(0,0,0,.8))}.cm-wd.on{box-shadow:0 0 0 1px rgba(255,213,79,.7);color:#ffd54f}
.cm-wd svg{width:11px;height:11px;fill:currentColor}.cm-wd:hover{background:rgba(255,193,7,.25)}
.wd-2{display:grid;grid-template-columns:150px 1fr;gap:12px;align-items:start}.wd-l{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}.wd-cv{width:170px;height:172px;border-radius:14px;background:radial-gradient(ellipse at 50% 85%,rgba(255,213,79,.12),transparent 65%)}.wd-n{font-size:13px;text-align:center;line-height:1.3;max-width:100%;overflow-wrap:anywhere}.wd-r{display:flex;flex-direction:column;gap:10px;min-width:0}.wd-r>.k-btn{align-self:stretch}.wd-hint{font-size:11.5px;color:var(--k-dim)}

.wd-g{display:grid;grid-template-columns:repeat(auto-fill,52px);gap:8px}
.wd-t{position:relative;width:52px;height:60px;border-radius:12px;border:0;padding:4px 0 0;background:rgba(255,255,255,.05);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);display:flex;flex-direction:column;align-items:center;justify-content:space-between;cursor:pointer}
.wd-t img{max-width:36px;max-height:36px}.wd-t small{font-size:9.5px;color:var(--k-dim);padding-bottom:3px}
.wd-t.own small{color:#ffd54f}.wd-t.on{box-shadow:inset 0 0 0 2px #ffc107;background:rgba(255,193,7,.12)}.wd-t.now::after{content:"";position:absolute;top:3px;right:3px;width:7px;height:7px;border-radius:50%;background:#66bb6a;box-shadow:0 0 0 2px rgba(0,0,0,.6)}

/* Tủ đồ: hộp cao cố định, nút ở chân hộp, chỉ lưới hình cuộn (2026-10-30) */.k-dialog.wd-dlg{height:560px}.wd-dlg .k-body{overflow:hidden}.wd-dlg .wd-2{flex:1;min-height:0;align-items:stretch}.wd-dlg .wd-r{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:2px 2px 6px}.wd-dlg .k-foot .wd-go{flex:1}
.wd-gold{display:inline-flex;align-items:center;gap:5px;margin-top:6px;font-size:12.5px;font-weight:600;color:#ffd54f}.wd-gold img{width:16px;height:16px}.wd-gold.low{color:#ef5350}.wd-t small{display:inline-flex;align-items:center;gap:2px}.wd-t small img{width:12px;height:12px}.wd-go img{width:16px;height:16px;vertical-align:-3px;margin:0 3px 0 4px}
/* thanh theo dõi Dã Tẩu (2026-10-30): kiểu nút trên sân, dải tiến độ nền --p */html.nu .yttrk{position:absolute;z-index:5;height:22px;display:flex;align-items:center;gap:5px;padding:0 9px 0 7px;border:0;border-radius:999px;box-sizing:border-box;cursor:pointer;color:#e8eaea;background:linear-gradient(90deg,rgba(255,193,7,.22) var(--p,0%),rgba(20,26,24,.5) var(--p,0%));box-shadow:0 1px 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.12);font:500 9px/1 var(--font);text-shadow:0 1px 2px rgba(0,0,0,.6);white-space:nowrap;max-width:46vw}html.nu .yttrk svg{flex:none;width:13px;height:13px;fill:#ffd54f;color:#ffd54f}html.nu .yttrk b{color:#ffd54f;font-weight:700}html.nu .yttrk span{overflow:hidden;text-overflow:ellipsis;max-width:120px;transition:max-width .25s,opacity .2s}html.nu .yttrk.pf-fold span{max-width:0;opacity:0}html.nu .yttrk .k-dot{position:absolute;top:-2px;right:-2px}html.nu .yttrk:hover{background:linear-gradient(90deg,rgba(255,193,7,.3) var(--p,0%),rgba(255,193,7,.2) var(--p,0%))}.yttrk[hidden],html:not(.nu) .yttrk{display:none!important}

/* Dã Tẩu gộp vào nút Nhiệm vụ (2026-10-31): nền tô theo tiến độ việc đang làm (--p), chip n/20 vàng; thu gọn (pillfold) thì ẩn chip */
html.nu .pcquest.qyt{position:absolute;background:linear-gradient(90deg,rgba(255,193,7,.24) var(--p,0%),rgba(20,26,24,.5) var(--p,0%))}
html.nu .pcquest.qyt:hover,html.nu .pcquest.qyt.on{background:linear-gradient(90deg,rgba(255,193,7,.34) var(--p,0%),rgba(255,193,7,.2) var(--p,0%))}
html.nu .pcquest .qy{color:#ffd54f;font-weight:700;white-space:nowrap;transition:max-width .25s,opacity .2s;max-width:60px;overflow:hidden}
html.nu .pcquest.pf-fold .qy{max-width:0;opacity:0}
html.nu .pcquest .qyd{position:absolute;top:-2px;right:-2px}
.pcquest .qy[hidden],.pcquest .qyd[hidden]{display:none!important}

/* Sự kiện thu thập (2026-11-01): hình vật phẩm 30 px trên nền tối, viền vàng nhạt — vật phẩm nổi bật */
html .qh-event .qs-hi{background:rgba(6,8,7,.62);box-shadow:inset 0 0 0 1px rgba(255,213,79,.22)}

/* Tẩy Tủy Kinh / Võ Lâm Mật Tịch (2026-11-01): hình bản PC, cỡ gốc */
.mt-it .mt-pic,.mt-big .mt-pic{max-width:78%;max-height:78%;image-rendering:auto}

/* Dã Tẩu › lối tắt (2026-11-01): tên hoạt động vàng + nút tròn nhỏ › ngay sau chữ của bước */
.qs-gold{color:#ffd54f}
.qs-go{display:inline-grid;place-items:center;width:24px;height:24px;margin-left:8px;padding:0;vertical-align:middle;border-radius:999px;border:1px solid rgba(255,193,7,.55);background:rgba(255,193,7,.16);color:#ffd54f;cursor:pointer}.qs-go:hover{background:rgba(255,193,7,.3)}.qs-go svg{width:16px;height:16px;fill:currentColor}

/* Tài Xỉu › Quà (2026-11-01) */
.tx-pz svg{width:18px;height:18px;fill:#ffd54f}
.tp-pay{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}.tp-pay span{padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.05);font-size:12px;color:var(--k-dim,#9aa5a0)}.tp-pay b{color:#ffd54f;margin-left:2px}
.tp-list{display:flex;flex-direction:column}.tp-r{display:flex;align-items:center;gap:10px;padding:6px 0;border-top:1px solid rgba(255,255,255,.06)}.tp-r:first-child{border-top:0}.tp-ic{flex:none;width:30px;height:30px;display:grid;place-items:center}.tp-ic svg,.tp-ic img{max-width:30px;max-height:30px}.tp-n{flex:1;display:flex;flex-direction:column;font-size:13px}.tp-n small{color:var(--k-dim,#9aa5a0);font-size:11px}.tp-p{font-size:15px;color:#ffd54f}

/* huy hiệu vượt giới hạn (+N) không đè tiêu đề phía trên (2026-11-01): chừa chỗ phía trên hàng ô, huy hiệu nằm sát góc trong */
.cm-rts:has(.cm-ov),div:has(>.cm-st .cm-ov){padding-top:9px}.cm-ov{top:-9px;right:-4px}

/* Tiềm năng › sách đã dùng (2026-11-01) */
.cm-tomes{display:flex;gap:8px;margin-top:8px;padding-top:8px;border-top:1px solid rgba(255,255,255,.06)}.cm-tome{flex:1;min-width:0;display:flex;align-items:center;gap:6px;height:30px;padding:0 10px 0 6px;border-radius:999px;background:var(--k-input,rgba(0,0,0,.25));font-size:12px}.cm-tome img{flex:none;max-width:20px;max-height:20px}.cm-tome .n{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--k-dim,#9aa5a0)}.cm-tome b{font-variant-numeric:tabular-nums}.cm-tome small{color:#81c784;font-variant-numeric:tabular-nums}.cm-tome.full b{color:#ffd54f}

/* Chat › Link item (2026-11-01): tên món bấm được, màu theo độ hiếm */
.ch-it{background:none;border:0;padding:0;margin:0;font:inherit;font-weight:700;cursor:pointer;text-decoration:underline dotted 1px;text-underline-offset:3px}.ch-r-white{color:#e6ebe8}.ch-r-blue{color:#7db8ff}.ch-r-vio{color:#ce93d8}.ch-r-hk{color:#ffd54f}.ch-r-bk{color:#81d4fa}.ch-r-mat{color:#a5d6a7}.ch-r-ht{color:#b39ddb}.ch-r-shard{color:#ffd54f}
.ivitem .k-foot .k-ico.ic-link,.mtdlg .k-foot .k-ico.ic-link,.petmenu .k-foot .k-ico.ic-link{color:#4fc3f7;box-shadow:inset 0 0 0 1px rgba(79,195,247,.45)}

/* Tài Xỉu — kết quả kiểu con dấu (2026-11-02, phương án C) */
html .tx-res.tx-c{position:relative;justify-content:flex-start!important;flex-wrap:wrap;padding:10px 88px 10px 12px!important;min-height:76px;overflow:hidden}
.tx-res.tx-c.win{background:rgba(76,175,80,.10);box-shadow:inset 0 0 0 1.5px rgba(129,199,132,.65)}
.tx-res.tx-c.lose{background:rgba(229,57,53,.09);box-shadow:inset 0 0 0 1.5px rgba(239,83,80,.55)}
.tx-c .tx-out{flex:1 1 100%;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;min-width:0}
.tx-c .tx-amt{font:800 20px/1.1 var(--font);font-variant-numeric:tabular-nums}
.tx-c.win .tx-amt{color:#a5d6a7}.tx-c.lose .tx-amt{color:#ff8a80}
.tx-c .tx-gift{font-size:12px;color:var(--k-acc-lt);min-width:0;overflow-wrap:anywhere}
.tx-seal{position:absolute;right:10px;top:50%;width:66px;height:66px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;
 font:900 14px/1 var(--font);letter-spacing:1px;border:3px double currentColor;transform:translateY(-50%) rotate(-14deg);pointer-events:none}
.tx-seal small{font:700 9px/1.1 var(--font);letter-spacing:0;margin-top:3px;text-align:center;max-width:58px}
.tx-c.win .tx-seal{color:#81c784;background:rgba(27,94,32,.35)}
.tx-c.lose .tx-seal{color:#ef5350;background:rgba(127,20,20,.35)}
.tx-seal.stamp{animation:txStamp .45s cubic-bezier(.2,1.4,.4,1) .55s both}
@keyframes txStamp{from{opacity:0;transform:translateY(-50%) rotate(-14deg) scale(1.8)}to{opacity:1;transform:translateY(-50%) rotate(-14deg) scale(1)}}
body.saver .tx-seal.stamp{animation:none}
@media (prefers-reduced-motion:reduce){.tx-seal.stamp{animation:none}}

/* Link đồng hành (2026-11-02): chip có chân thú */
.ch-it.ch-pet{display:inline-flex;align-items:center;gap:3px}
.ch-it .ch-paw{width:12px;height:12px;fill:currentColor;flex-shrink:0}
.ch-pown{margin:-4px 0 8px;text-align:center;font-size:12px;color:var(--k-dim)}
/* nút link đồng hành (2026-11-02): cạnh nút đổi tên, cùng cỡ 24 px, kiểu nút link của món (viền + biểu tượng xanh) */
.pt-subl .pt-link{width:24px;height:24px;padding:0;flex:none;color:#4fc3f7;box-shadow:inset 0 0 0 1px rgba(79,195,247,.45)}
.pt-subl .pt-link svg{width:13px;height:13px;fill:currentColor}
.pt-subl .pt-link:hover,.pt-subl .pt-link:focus-visible{background:rgba(79,195,247,.14)}

/* Chợ Võ Lâm (js/market.js, 2026-11-02) */
.ahdlg .ah-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:10px}
.ahdlg .ah-bar>input{flex:1 1 150px}
.ahdlg .ah-bar>.k-select,.ahdlg .ah-bar>select{flex:1 1 120px;width:auto}
.ahdlg .ah-bar>.k-sw{flex:none}
.ahdlg .ah-list{display:flex;flex-direction:column;gap:6px;margin-bottom:8px}
.ahdlg .ah-row{display:flex;align-items:center;gap:10px;padding:6px 10px 6px 6px;border-radius:12px;background:rgba(255,255,255,.04);cursor:pointer}
.ahdlg .ah-row:hover{background:rgba(255,255,255,.07)}
.ahdlg .ah-row>.iv-it{width:46px;height:46px;flex:0 0 46px}
.ahdlg .ah-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.ahdlg .ah-t>b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ahdlg .ah-t>small{font-size:11px;opacity:.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ahdlg .ah-t>input{margin-top:2px}
.ahdlg .ah-p{display:flex;align-items:center;gap:8px;flex-shrink:0}
.ahdlg .ah-m{display:inline-flex;align-items:center;gap:3px;font-weight:700;color:#ffd54f;font-size:13px;white-space:nowrap}
.ahdlg .ah-m img{width:14px;height:14px}
.ahdlg .ah-mine{font-size:11px;opacity:.6}
.ahdlg .ah-cnt{display:flex;gap:14px;font-size:12px;opacity:.75;margin:0 2px 8px}
.ahdlg .ah-sum{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px;margin-top:10px}
.ahdlg .ah-sum>span{display:inline-flex;align-items:center;gap:4px}
.ahdlg .ah-gold{width:46px;height:46px;flex:0 0 46px;display:grid;place-items:center;border-radius:12px;background:rgba(255,213,79,.12)}
.ahdlg .ah-gold img{width:24px;height:24px}
.ahdlg .ah-qp{margin:8px 0}

.dh-si.dh-cu img{width:12px;height:12px;border-radius:3px;display:block}

/* Chợ: chờ tải + phân trang (2026-11-03) */
.ahdlg .ah-load{display:flex;align-items:center;gap:8px;font-size:12px;opacity:.75;margin:2px 0 8px}
.ahdlg .ah-spin{width:14px;height:14px;border-radius:50%;border:2px solid rgba(255,213,79,.25);border-top-color:#ffd54f;animation:ahSpin .8s linear infinite;flex:none}
@keyframes ahSpin{to{transform:rotate(360deg)}}
body.saver .ahdlg .ah-spin{animation:none}@media (prefers-reduced-motion:reduce){.ahdlg .ah-spin{animation:none}}
.ahdlg .ah-sk{height:58px;border-radius:12px;background:rgba(255,255,255,.04);margin-bottom:6px}
.ahdlg .ah-pg{display:flex;align-items:center;justify-content:center;gap:12px;margin:2px 0 6px;font-size:12px;opacity:.9}
.ahdlg .ah-pg .k-iconbtn{width:30px;height:30px}
.ahdlg .ah-pg .k-iconbtn svg{width:18px;height:18px;fill:currentColor}
.ahdlg .ah-pg .k-iconbtn:disabled{opacity:.35}

/* Kho: ngân lượng dư (vượt 999,9 tỷ) — chip gọn trên dòng tiêu đề, bấm rút phần còn vừa (2026-11-03) */
.iv-ch{align-items:center;gap:8px}.iv-ch>b{flex:1}
.iv-khog{display:inline-flex;align-items:center;gap:4px;height:26px;padding:0 10px 0 6px;border-radius:999px;border:1px solid rgba(255,213,79,.35);background:rgba(255,213,79,.1);color:#ffd54f;font-weight:700;font-size:12px;font-variant-numeric:tabular-nums;cursor:pointer}
.iv-khog img{width:16px;height:16px;object-fit:contain}
.iv-khog:disabled{opacity:.55;cursor:default}

/* Nguồn nguyên liệu (js/matsrc.js, 2026-11-04) */
.ms-box{margin-top:10px;padding:8px 10px;border-radius:12px;background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}.ms-box h4{margin:0 0 4px;font-size:10.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--k-dim)}.ms-r{display:flex;align-items:center;gap:8px;min-height:28px;font-size:12.5px;border-top:1px solid rgba(255,255,255,.06)}.ms-box h4+.ms-r{border-top:0}.ms-r b{font-weight:600;color:#ffd54f;white-space:nowrap}.ms-r span{flex:1;min-width:0;text-align:right;color:var(--k-dim);font-size:11.5px}.ms-r b:last-child{flex:1}.ms-none{color:var(--k-dim);font-size:12px}.ms-go{flex:none;width:24px;height:24px;border-radius:50%;border:0;padding:0;display:grid;place-items:center;background:rgba(20,26,24,.5);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);color:#ffd54f;cursor:pointer}.ms-go:hover{background:rgba(255,193,7,.2)}.ms-go svg{width:14px;height:14px}.ms-r b+.ms-go{margin-left:auto}
/* Bạn hữu: dòng bấm được mở menu chung (2026-11-04) */

.fr-row.fr-m{cursor:pointer}
.fr-row.fr-m:hover,.fr-row.fr-m:focus-visible{background:rgba(255,193,7,.12);outline:none}
.fr-more{width:30px;height:30px;display:grid;place-items:center;border-radius:999px;background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
.fr-more svg{width:16px;height:16px;fill:none;stroke:#cfd8d3;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
html.nu .pm-pop{z-index:50;pointer-events:auto}   /* gắn vào lớp hộp thoại (.k-layer) để không bị khung hộp thoại cắt */
/* Chợ › Đăng bán: chạm hình món để xem chỉ số (2026-11-04) */
.ahdlg .ah-see{position:relative;flex:0 0 46px;cursor:pointer;border-radius:10px}
.ahdlg .ah-see>.iv-it{width:46px;height:46px}
.ahdlg .ah-see:focus-visible{outline:2px solid var(--k-acc,#ffc107);outline-offset:2px}
.ahdlg .ah-mag{position:absolute;right:-5px;bottom:-5px;width:20px;height:20px;display:grid;place-items:center;border-radius:999px;background:#1b2421;box-shadow:inset 0 0 0 1px rgba(255,193,7,.6),0 1px 3px rgba(0,0,0,.5)}
.ahdlg .ah-mag svg{width:13px;height:13px;fill:#ffd54f}
/* Tách Hoàng Kim hàng loạt (2026-11-05) */
.hbdlg .hb-c{position:relative;display:block;cursor:pointer;border-radius:12px}
.hbdlg .hb-c.on{box-shadow:0 0 0 2px #ef5350}
.hbdlg .hb-c.on .iv-it{opacity:.75}
.hbdlg .hb-ck{position:absolute;right:-4px;top:-4px;width:16px;height:16px;border-radius:999px;background:#ef5350;box-shadow:0 0 0 2px #1b2421}
.hbdlg .hb-ck::after{content:"";position:absolute;left:5px;top:2px;width:4px;height:8px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.hbdlg .hb-q{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.hbdlg .hb-up{position:absolute;left:3px;bottom:3px;width:15px;height:15px;display:grid;place-items:center;border-radius:999px;background:#2e7d32;color:#fff;font:700 9px/1 var(--font);font-style:normal;box-shadow:0 0 0 1.5px #1b2421}
/* Tách Hoàng Kim: danh sách hàng (2026-11-05) */
.hbdlg .hb-list{display:flex;flex-direction:column;gap:6px}
.hbdlg .hb-r{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:12px;background:rgba(255,255,255,.035);box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);cursor:pointer}
.hbdlg .hb-r.on{background:rgba(239,83,80,.12);box-shadow:inset 0 0 0 1.5px rgba(239,83,80,.7)}
.hbdlg .hb-r>.iv-it{width:44px;height:44px;flex:none}
.hbdlg .hb-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.hbdlg .hb-tx b{font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hbdlg .hb-tx>span{font-size:11px;color:var(--k-dim,#9aa);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hbdlg .hb-tags{display:flex;flex-wrap:wrap;gap:4px}
.hbdlg .hb-t{font-style:normal;font-size:10px;line-height:16px;padding:0 6px;border-radius:999px;background:rgba(255,255,255,.08);color:#cfd8dc}
.hbdlg .hb-t-better{background:rgba(46,125,50,.35);color:#a5d6a7}.hbdlg .hb-t-dup,.hbdlg .hb-t-full{background:rgba(255,193,7,.16);color:#ffd54f}.hbdlg .hb-t-useless{background:rgba(239,83,80,.18);color:#ef9a9a}
.hbdlg .hb-i{flex:none;width:28px;height:28px}.hbdlg .hb-i svg{width:16px;height:16px;fill:currentColor}
.hbdlg .hb-r .hb-ck{position:relative;right:auto;top:auto;flex:none;width:20px;height:20px;background:none;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.3)}
.hbdlg .hb-r .hb-ck.on{background:#ef5350;box-shadow:none}.hbdlg .hb-r .hb-ck:not(.on)::after{display:none}.hbdlg .hb-r .hb-ck::after{left:7px;top:3px}
/* Võ công: thanh trên — phương án A (2026-11-05) */
.vc-strip2{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;padding:8px 10px;border-radius:16px;background:var(--k-card);box-shadow:inset 0 0 0 1px var(--k-line)}
.vc-r1{display:flex;align-items:center;gap:8px}.vc-sp{flex:1}
.vc-pt{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 10px;border-radius:999px;background:rgba(255,255,255,.06);color:var(--k-dim);font-size:12px;white-space:nowrap}
.vc-pt b{font:600 14px var(--font);font-variant-numeric:tabular-nums;color:var(--k-text)}
.vc-pt.on{background:rgba(255,193,7,.16);color:var(--k-acc-lt)}.vc-pt.on b{color:var(--k-acc-lt)}
.vc-sug,.vc-strip2 .vc-reset{flex:none;width:30px;height:30px}.vc-sug svg,.vc-strip2 .vc-reset svg{width:17px;height:17px}
.vc-sug.on{color:var(--k-acc-lt);background:rgba(255,193,7,.16);box-shadow:inset 0 0 0 1.5px rgba(255,213,79,.55)}.vc-sug.on svg{fill:var(--k-acc-lt)}
.vc-tabs{display:grid;gap:4px;flex:1 1 100%}.vc-cap{flex:1 1 0}.k-layer.k-narrow .vc-cap{order:9;flex:1 1 100%}.vc-sug{margin-left:auto}
.vc-tab{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 0 7px;border:0;border-radius:12px;background:transparent;cursor:pointer;color:var(--k-dim)}
.vc-tab .vc-fcb{width:20px;height:20px}
.vc-tab b{font:600 13px var(--font);font-variant-numeric:tabular-nums;color:color-mix(in srgb,var(--lc) 70%,#fff)}
.vc-tab:hover{background:rgba(255,255,255,.04)}
.vc-tab.on{background:color-mix(in srgb,var(--lc) 16%,transparent)}
.vc-tab.on::after{content:"";position:absolute;left:30%;right:30%;bottom:2px;height:2px;border-radius:2px;background:var(--lc)}
.vc-tab:focus-visible{outline:2px solid var(--k-acc-lt);outline-offset:1px}
.vc-cap{display:flex;align-items:center;gap:8px;min-height:24px;font-size:12px;color:var(--k-dim)}.vc-cap>span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vc-cap b{font-weight:600}
.vc-clr{flex:none;height:24px;padding:0 10px;font-size:11.5px}
/* Võ công không nhảy khi lọc (2026-11-05, người dùng): hộp giữ chiều cao đầy đủ, thanh nhánh dính trên đầu khi cuộn */
/* neo trên cố định (người dùng 2026-11-05): hộp bám mép trên, cao theo nội dung — lọc nhánh chỉ co mép dưới, đầu hộp không đổi chỗ */.k-wrap:has(>.k-dialog.vcmenu){place-items:start center}.vc-strip2 .vc-tab,.vc-strip2 .vc-tab .vc-fcb{transition:padding .15s ease,width .15s ease,height .15s ease}.vc-strip2.vc-cmp{row-gap:4px;padding-block:6px}.vc-strip2.vc-cmp .vc-cap{display:none}.vc-strip2.vc-cmp .vc-tab{flex-direction:row;justify-content:center;gap:5px;padding:4px 0 5px}.vc-strip2.vc-cmp .vc-tab .vc-fcb{width:16px;height:16px}.vc-strip2.vc-cmp .vc-tab.on::after{bottom:0}
/* chỉ thang chiêu cuộn; thanh nhánh nằm ngoài vùng cuộn nên không gì trượt dưới nó (người dùng: không gì đi dưới thanh) */.vcmenu .k-body{overflow:hidden}.vcmenu .vc-strip2{flex:none}.vcmenu .vc-ladder{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#3d4945 transparent;margin-right:-10px;padding-right:10px;padding-bottom:10px}/* 2026-11-06: huy hiệu loại chiêu (.vc-b, lệch −6px) và bóng thẻ cuối nằm ngoài thẻ — không có đệm dưới thì vùng cuộn cắt mất, một thẻ duy nhất hiện không đủ */
/* ô kỹ năng đồng hành: dòng phụ (Chí mạng → sát thương chí mạng, 2026-11-05) */
.pt-sub{display:block;margin:0 0 1px;font:600 9.5px/1.1 var(--font);color:#ffb74d;white-space:nowrap;text-transform:none;letter-spacing:0;overflow:hidden;text-overflow:ellipsis;max-width:100%}
/* Hoàn Mỹ (2026-11-06, js/hoanmy.js): cam đồng, khác vàng Hoàng Kim và trắng bạc Bạch Kim */.iv-it.ghm,.cm-slot.ghm,.iv-big.ghm{--rc:#ff9f6e!important;background:radial-gradient(circle at 50% 58%,rgba(255,159,110,.22),rgba(14,19,17,.85) 72%);box-shadow:inset 0 0 0 2px #ff9f6e,0 0 11px rgba(255,140,80,.45)}
.ghm::after{background:conic-gradient(from var(--ghka),transparent 0 78%,rgba(255,235,215,.98) 90%,rgba(255,170,120,.6) 94%,transparent 100%)}
.iv-it.ghm:hover{filter:brightness(1.12)}.iv-it.bad.ghm{box-shadow:inset 0 0 0 2px #ff9f6e,inset 0 0 0 3.5px var(--k-danger),0 0 10px rgba(255,140,80,.35)}.cm-slot.cm-bad.ghm{outline:1.5px solid var(--k-danger);outline-offset:-4px}
/* nhóm nguồn chỉ số trong Nhân vật › Chỉ số (2026-11-07): Trang bị & kỹ năng / Phi phong / Danh hiệu / Đồng hành */
.cm-gear .cm-gsub{margin:8px 0 2px;font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--k-acc,#ffc107);opacity:.85}
.cm-gear .cm-gsub:first-of-type{margin-top:4px}
/* dòng chỉ số mở Bách khoa (Né tránh, 2026-11-08): chạm được — chữ số có gạch chấm mảnh */
.cm-kv[data-cx]{cursor:pointer}.cm-kv[data-cx] b{text-decoration:underline dotted rgba(255,255,255,.35);text-underline-offset:3px}.cm-kv[data-cx]:hover span{color:#ffd54f}
/* dòng điều kiện của nguồn quái (cấp, số viên): chữ phụ, không phải tên nguồn (2026-11-09) */
.ms-r.ms-note{color:var(--k-dim);font-size:11.5px;min-height:22px}
/* Bang hội (2026-11-12, js/guild.js): dùng lại dòng .fr-row của Bạn hữu */
.gd-hero{--ac:#ffb74d}.gd-hero .ac-ic{color:#ffb74d}.gd-hero .ac-ic svg{fill:currentColor}
.gd-pos{font-size:11px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:40%}
.gd-row .gd-fl{color:#ffb74d}.gd-row .gd-fl svg{fill:currentColor}
.gd-row .k-btn{height:30px;min-height:30px;padding:0 12px;font-size:12px}
.gd-leave{color:#ef9a9a}
/* dòng thành viên: tên một dòng riêng, chức vị · trạng thái · cấp ở dòng dưới (tên không bị cắt, 2026-11-14) */
.gd-nm{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.gd-nm .fr-n{flex:none}
.gd-sub{display:flex;align-items:center;gap:8px;min-width:0}
/* quỹ / kỹ năng bang (giai đoạn 2, 2026-11-14) */
.gd-fr .gd-ic svg{fill:currentColor}.gd-ct svg{width:12px;height:12px;fill:#ffd54f}.gd-ct{gap:3px}.gd-max{color:#ffd54f;font-weight:700}.gd-fr .gd-sub .fr-l{flex:1 1 auto;min-width:0;white-space:normal;line-height:1.25}
.gd-tip{margin:8px 2px 0;font-size:11px;color:var(--k-dim,#9aa59e)}
/* Đua bố già trong Bang hội (2026-11-15) */
.gd-pk .gd-ck{display:grid;place-items:center;width:22px;height:22px;border-radius:999px;box-shadow:inset 0 0 0 1.5px var(--k-line,#4a5a52)}.gd-pk.on .gd-ck{background:#ffc107;box-shadow:none}.gd-pk .gd-ck svg{width:14px;height:14px;fill:#1b1b1b}.gd-pk.on{background:rgba(255,193,7,.1)}
.gd-rk{width:22px;text-align:center;font-size:15px;flex:0 0 auto}.gd-sc{font-size:13px;color:#ffd54f}.gd-br.me{background:rgba(255,193,7,.12)}.gd-tfs{display:flex;gap:2px}.gd-tf svg{width:13px;height:13px;fill:none;stroke:currentColor}.gd-amts{margin-bottom:8px}.gd-fr .k-btn{height:30px;min-height:30px;padding:0 12px;font-size:12px}.gd-sub .gd-pos{max-width:none;flex:0 1 auto;min-width:0}.gd-sub .fr-l{flex:0 0 auto}
.gd-q{display:flex;align-items:center;gap:8px;height:34px;padding:0 12px;margin-bottom:8px;border-radius:999px;background:rgba(0,0,0,.28);box-shadow:inset 0 0 0 1px var(--k-line)}
.gd-q svg{width:16px;height:16px;fill:#9fb3ab;flex:0 0 auto}
.k-wrap .k-body .gd-q input#gdQ{flex:1;min-width:0;background:none!important;border:0!important;border-image:none!important;outline:none;color:inherit;font:inherit;font-size:13px;padding:0!important;height:auto!important;box-shadow:none!important}
.gd-needs{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.gd-need{display:flex;align-items:center;gap:8px;font-size:12.5px;color:#ef9a9a}
.gd-need.ok{color:#a5d6a7}
.gd-need svg{width:15px;height:15px;fill:currentColor;flex:0 0 auto}
/* thẻ đầu Nhiệm vụ có 2 nút (Phúc Duyên: Mở · Mở hết) trên màn hẹp: nút xuống hàng riêng, tên không bị cắt "36 Ph…" (2026-11-13) */
.k-narrow .qs-hero:has(.qs-ha>.k-btn+.k-btn){flex-wrap:wrap}
.k-narrow .qs-hero:has(.qs-ha>.k-btn+.k-btn) .qs-ha{flex:1 1 100%;margin-left:0}
.k-narrow .qs-hero:has(.qs-ha>.k-btn+.k-btn) .qs-ha .k-btn{flex:1 1 0;justify-content:center}
/* Võ công trên màn hẹp / chữ lớn (2026-11-13, video người dùng): cột tên bị ô điểm và nút −/+ ép còn vài chữ → thẻ cao lên, thang chiêu dài hơn khung vài px và chỉ rung khi vuốt.
   Thu cột mốc cấp, bỏ nền ô điểm, sát nút lại: tên có thêm ~40 px */
.k-narrow .vc-tier{grid-template-columns:40px minmax(0,1fr);gap:6px}
.k-narrow .vc-tm i{margin-left:10px}.k-narrow .vc-ladder::before{left:17px}
.k-narrow .vc-tm b{font-size:10.5px}
.k-narrow .vc-body{gap:0 4px;padding-right:6px}
.k-narrow .vc-sk .vc-pt{min-width:0;height:22px;padding:0 2px;background:none}
.k-narrow .vc-pm{gap:4px}
.k-narrow .vc-tier+.vc-tier{margin-top:8px}
/* Bang hội: số tiền có biểu tượng ngân lượng */
.gd-m{display:inline-flex;align-items:center;gap:4px;font-variant-numeric:tabular-nums}
.gd-m img{width:15px;height:15px;object-fit:contain;flex:none}
.k-btn .gd-m img{width:16px;height:16px}
/* iPhone / iPad Safari: thanh nhập chat ghim trên bàn phím (js/chat.js barOpen) */
#chKbBar{position:absolute;left:0;right:0;bottom:0;z-index:80;display:flex;align-items:center;gap:8px;box-sizing:border-box;padding:6px 8px;background:#121614;border-top:1px solid rgba(255,213,79,.35)}
#chKbBar[hidden]{display:none}
#chKbBar .ch-kbin{flex:1;min-width:0;height:34px;padding:0 14px;border-radius:999px!important;border:0;border-image:none!important;background:rgba(255,255,255,.1)!important;color:#fff;font:16px var(--font);outline:none}
#chKbBar>button{all:unset;cursor:pointer;height:34px;padding:0 14px;border-radius:999px;font:600 14px var(--font);display:grid;place-items:center;flex-shrink:0}
#chKbBar .ch-kbok{background:rgba(255,193,7,.22);box-shadow:inset 0 0 0 1.5px rgba(255,213,79,.75);color:#ffd54f}
#chKbBar .ch-kbx{background:rgba(255,255,255,.08);color:#cfd8dc}
html.nu .ch-in.ch-ios{cursor:text}
#chatBox.ch-kbon .ch-f{display:none}
#chKbBar .ch-kbemo{width:34px;padding:0;background:rgba(255,255,255,.08)}
#chKbBar .ch-kbemo svg{width:22px;height:22px;fill:none}
#chKbBar .ch-kbemp{right:8px;bottom:calc(100% + 6px)}
#chKbBar .ch-kbemp[hidden]{display:none}
/* Đua bố già: bảng sát thương từng thành viên (hộp kết quả + chi tiết bảng tuần, js/wbrace.js dmgList) */
.wr-card{display:grid;gap:10px}
.wr-top{display:flex;align-items:flex-end;justify-content:space-between;gap:10px}
.wr-top small{display:block;font-size:11px;color:var(--k-dim,#9fb0a7)}
.wr-tot{font-size:26px;line-height:1.1;font-weight:700;color:#ffd54f}
/* Đua bố già thua (cả đội gục / hết hồi sinh, 2026-11-18) */
.wr-card.lost{border-color:rgba(239,83,80,.55)}
.wr-card.lost .wr-tot{color:#ef9a9a}
.wr-chip{font-size:12px;color:var(--k-dim,#9fb0a7);white-space:nowrap;padding-bottom:3px}.wr-chip.on{color:#a5d6a7;font-weight:600}
.wr-list{display:grid;gap:4px}
.wr-row{position:relative;display:grid;grid-template-columns:16px 20px minmax(0,1fr) auto 34px;align-items:center;gap:8px;height:34px;padding:0 10px;border-radius:10px;background:rgba(255,255,255,.04);overflow:hidden;isolation:isolate}
.wr-row::before{content:"";position:absolute;inset:0 auto 0 0;width:var(--p,0%);background:rgba(255,193,7,.13);z-index:-1}
.wr-row.me{box-shadow:inset 0 0 0 1px rgba(255,213,79,.45)}
.wr-k{font-size:12px;color:var(--k-dim,#9fb0a7);text-align:center}
.wr-fac{width:20px;height:20px;display:grid;place-items:center}.wr-fac svg{width:18px;height:18px;fill:none;stroke:var(--c,#9fb0a7);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.wr-n{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wr-d{font-size:14px;font-weight:700;white-space:nowrap}
.wr-p{font-size:11px;color:var(--k-dim,#9fb0a7);text-align:right}
.wr-sub{color:var(--k-dim,#9fb0a7);font-size:11px}
/* Bang hội gọn (2026-11-15): thẻ thông tin bang (huy hiệu · tên · cấp / thành viên · chức · nút quản lý) + hàng Đua bố già */
.gd-info{display:grid;gap:10px}
.gd-top{display:flex;align-items:center;gap:12px}
.gd-emb{flex:0 0 auto;width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:rgba(255,183,77,.14);box-shadow:inset 0 0 0 1.5px rgba(255,183,77,.45);color:#ffb74d}
.gd-emb svg{width:26px;height:26px;fill:currentColor}
.gd-it{flex:1;min-width:0;display:grid;gap:1px}
.gd-gn{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gd-il{font-size:12px;color:var(--k-dim,#9fb0a7)}
.gd-it .gd-pos{max-width:100%}
.gd-race{border-top:1px solid rgba(255,255,255,.08);padding-top:8px}.gd-race .fr-row{padding-left:0;padding-right:0;background:none}
.k-btn.gd-lv,.gd-lv{color:#ef9a9a}
.wr-old .wr-d,.wr-old .wr-p,.wr-old .wr-k{visibility:hidden}.wr-old .wr-row::before{display:none}
.gd-top{font-size:10.5px;font-weight:600;color:#a5d6a7;white-space:nowrap}
.gd-left{margin:0 0 10px;font-size:13px;color:#b9c6c0;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.gd-slv{margin-left:10px;padding:1px 7px;border-radius:999px;background:rgba(255,255,255,.07);font-size:11.5px;font-weight:600;color:#9fb3ab;white-space:nowrap}.k-note .gd-m{vertical-align:-.2em}
/* Võ công: dải đầu một chiều cao cố định (2026-11-16) — thẻ nhánh một hàng (biểu tượng + số), chú thích ở hàng đầu cả trên màn hẹp, không hiệu ứng thu gọn */
.vc-strip2{row-gap:4px;padding-block:6px}.vc-strip2 .vc-tab{flex-direction:row;justify-content:center;gap:5px;padding:4px 0 5px;transition:none}.vc-strip2 .vc-tab .vc-fcb{width:16px;height:16px;transition:none}.vc-strip2 .vc-tab.on::after{bottom:0}
.k-layer.k-narrow .vc-cap{order:0;flex:1 1 0;min-width:0}
.vcmenu .vc-ladder{margin-top:8px}
/* đua bố già: cờ người đua (gửi kết quả) */
.gd-ld{display:inline-flex;align-items:center;gap:3px;color:#ffd54f}.gd-ld svg{width:12px;height:12px;fill:#ffd54f;flex:none}
.wr-ld{display:inline-flex;vertical-align:-1px;margin-right:4px}.wr-ld svg{width:12px;height:12px;fill:#ffd54f}
/* bảng kết quả Tỷ thí (2026-11-18): hai hàng (phái · tên · thanh máu cuối, không số) + sát thương / số đòn; bên thắng viền vàng */
html.nu .dr{display:flex;flex-direction:column;gap:8px}
html.nu .dr-s{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:12px;background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
html.nu .dr-s.win{box-shadow:inset 0 0 0 1.5px rgba(255,213,79,.7);background:rgba(255,213,79,.07)}
html.nu .dr-fac{width:26px;height:26px;flex-shrink:0}
html.nu .dr-m{flex:1;min-width:0}
html.nu .dr-m b{display:block;font-size:12.5px;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.nu .dr-s.me .dr-m b{color:#ffd54f}
html.nu .dr-bar{height:7px;margin-top:5px;border-radius:999px;background:rgba(0,0,0,.45);overflow:hidden}
html.nu .dr-bar i{display:block;height:100%;transform-origin:left;background:linear-gradient(90deg,#e53935,#ef5350);border-radius:999px}
html.nu .dr-st{display:flex;flex-direction:column;align-items:flex-end;gap:2px;font-size:11px;color:rgba(255,255,255,.7);white-space:nowrap}
html.nu .dr-st span{display:flex;align-items:center;gap:4px}
html.nu .dr-st svg{width:14px;height:14px}
html.nu .dr-st b{font-size:13px;color:#fff;font-variant-numeric:tabular-nums}
/* Đệ tử (2026-11-18, js/discui.js): thẻ đệ tử + ứng viên chiêu mộ */
.dz-top,.dz-cand{display:flex;align-items:center;gap:10px}
.dz-cand{padding:8px 0;border-top:1px solid rgba(255,255,255,.07)}
.dz-cand:first-child{border-top:0}
.dz-cand .k-btn{margin-left:auto;flex:none}
.dz-gone{opacity:.5;justify-content:center;font-size:12px}
.dz-pic{width:48px;height:48px;flex:none;object-fit:contain;border-radius:999px;background:rgba(255,255,255,.06)}
.dz-id{display:grid;gap:2px;min-width:0}
.dz-id b{font-size:15px}
.dz-id small{color:#9fb3ab;font-size:11.5px;line-height:1.35}
.dz-tier{display:inline-block;padding:0 8px;border-radius:999px;font-size:11px;font-weight:700;color:var(--c);border:1px solid var(--c);line-height:17px}
.dz-ty{font-size:12px;color:#cfd8d3}
.dz-cost{color:#ffd54f!important}
.dz-h{margin:12px 0 4px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#9fb3ab}
.dz-ak{display:flex;align-items:center;gap:8px}
.dz-ak small,.dz-ps small{color:#9fb3ab;font-size:11.5px}
.dz-ak .k-btn{margin-left:auto}
.dz-hint{display:block;color:#9fb3ab;font-size:11px;margin-top:2px}
.dz-ps{display:grid;grid-template-columns:1fr auto;gap:2px 8px;margin:4px 0}
.dz-bar{grid-column:1/-1;height:4px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden}
.dz-bar b{display:block;height:100%;background:#81c784}
.dz-note{color:#9fb3ab;font-size:12px;margin:10px 0 6px}
.dz-cost{display:flex;flex-wrap:wrap;gap:4px;margin-top:3px}
.dz-mc{display:inline-flex;align-items:center;gap:3px;padding:0 7px 0 3px;height:20px;border-radius:999px;background:rgba(255,255,255,.07);font-size:11.5px;color:#ffd54f}
.dz-mc i{display:inline-flex;width:16px;height:16px}
.dz-mc i svg,.dz-mc i img{width:16px;height:16px}
.dz-g{padding-left:7px}
/* Đệ tử › trang bị (2026-11-18): 10 ô, 5 cột */
.dz-life{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:2px 0 8px}
.dz-eq{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.dz-slot{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0}
.dz-slot small{color:#9fb3ab;font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.dz-empty{border:1px dashed rgba(159,179,171,.45)!important;background:rgba(255,255,255,.03)!important}
.dz-slot .iv-it{width:100%;height:auto;aspect-ratio:1}
.dz-ak .iv-it{width:52px;height:52px;flex:none}
/* Tửu quán: đệ tử hiện tại một dòng */
.dz-cur{display:flex;align-items:center;gap:10px;padding:6px 4px 10px}.dz-cur .dz-pic{width:44px;height:44px}.dz-cur>small{margin-left:auto;color:#9fb3ab;font-size:11px;max-width:40%;text-align:right}
.dz-mc.dz-lack{color:#ef9a9a!important;box-shadow:inset 0 0 0 1px rgba(239,83,80,.55)}
.dz-life .dz-mc{height:24px;padding:0 10px;font-size:12.5px;color:#f1ead8}

/* Tửu quán kiểu Cửa hàng (2026-11-19): ô dg-shop, biểu tượng kiểu ở góc chân dung, kính lúp = Xem, nguyên liệu nhỏ dưới tên */
.dzdlg .dz-iti{width:56px!important;height:56px!important;cursor:pointer}
.dzdlg .dz-iti img{max-width:92%!important;max-height:92%!important;object-fit:contain}
.dzdlg .dz-tyb{position:absolute;left:2px;top:2px;width:16px;height:16px;padding:2px;border-radius:999px;background:rgba(18,24,21,.85);color:#f1ead8}
.dzdlg .dz-mag{position:absolute;right:2px;bottom:2px;width:16px;height:16px;padding:2px;border-radius:999px;background:rgba(18,24,21,.85);display:grid;place-items:center}
.dzdlg .dz-mag svg{width:12px;height:12px;fill:#f1ead8}
.dzdlg .dz-mats{display:flex;flex-wrap:wrap;justify-content:center;gap:3px;margin-top:2px}
.dz-mm{display:inline-flex;align-items:center;gap:1px;font-size:10.5px;color:#f1ead8}.dz-mm img{width:14px;height:14px}
.dz-mm.dz-lack{color:#ef9a9a}
.dz-ty{display:inline-flex;align-items:center;gap:4px}.dz-tyi{width:15px;height:15px;color:#f1ead8}
.dzdlg .dz-gone{opacity:.45}
.dz-pic.dz-big{width:64px;height:64px}
.dz-mc img{width:16px;height:16px}
/* Đệ tử 2026-11-19 (ảnh xem trước đã duyệt): thẻ kiểu Nhân vật, Võ công kiểu hộp Võ công, Tửu quán kiểu Cửa hàng */
/* huy hiệu kiểu đệ tử theo kiểu huy hiệu phái (.cm-fic, 2026-11-20): đĩa tối pha màu kiểu, viền màu, hình màu */
.dzb{position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:999px;background:color-mix(in srgb,var(--bc) 24%,#121816);display:grid;place-items:center;box-shadow:inset 0 0 0 1.5px var(--bc),0 0 0 2px #141a18;z-index:2}.dzb svg{width:12px;height:12px;fill:var(--bc)}
.dz-nm{display:flex;align-items:center;justify-content:center;gap:8px;margin:2px 0 6px}.dz-nm b{font:700 18px var(--font)}.dz-nm .dzb{position:static}
.dz-psl{margin:0 0 6px;font-size:13px;color:#cfe3da}
/* tên + dòng chữ trên đầu một dòng (2026-11-20: gọn phần đầu thẻ đệ tử) */
/* hai dòng (người dùng 2026-11-20): huy hiệu + tên, dưới là dòng chữ; không vạch kẻ */
.dz-nm1{flex-wrap:wrap;gap:4px 7px;margin:0 0 8px;min-width:0}.dz-br{flex-basis:100%;height:0}.dz-nm1 b{font-size:16px;white-space:nowrap;flex:none}.dz-nm1 .dzb{width:24px;height:24px;box-shadow:inset 0 0 0 1.5px var(--bc)}.dz-nm1 .dzb svg{width:15px;height:15px}
.dz-tchip{height:22px;padding:0 9px 0 8px;font-size:12px;max-width:80%;min-width:0;flex:0 1 auto}.dz-tchip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dz-tchip svg{order:2;width:12px;height:12px;opacity:.8}
.dz-tagw{margin:0 0 10px}.dz-tagw .cm-tchip svg{order:2;width:14px;height:14px;opacity:.8}
.cm-doll.dz-doll{position:relative;grid-template-rows:repeat(4,58px) 66px!important;height:auto!important}
.dz-doll .dz-eqs{height:58px!important;z-index:1}.dz-doll .dz-eqs.cm-empty{box-shadow:none;border:1px dashed rgba(159,179,171,.35);background:rgba(255,255,255,.03)}.dz-sl{font-size:10px;color:#7f948c}
.dz-doll .dz-hero{position:absolute;left:50%;bottom:38px;transform:translateX(-50%);width:250px;height:262px;pointer-events:none;z-index:0}
.cm-doll.dz-stage{position:relative;grid-template-columns:1fr 1fr!important;grid-template-rows:1fr auto!important;height:230px!important;min-height:0!important}.dz-stage .cm-dlv{grid-row:2;grid-column:1}.dz-stage .cm-dpw{grid-row:2;grid-column:2}
.dz-stage .dz-hero{position:absolute;left:50%;bottom:6px;transform:translateX(-50%);width:170px;height:200px;pointer-events:none}
.dz-nop{pointer-events:none}.dz-nop b{font-size:15px}
.dz-sks .vc-sk{margin:6px 0}.dz-sk .vc-ic img{width:100%;height:100%}
.dz-lv{margin-left:auto;margin-right:8px;color:#ffd54f;font-weight:700;font-size:13px;white-space:nowrap}
.dz-pl{width:30px;height:30px;flex:none;border-radius:999px;border:1px solid #6b5a2a;background:#2a2615;color:#ffd54f;display:grid;place-items:center;cursor:pointer}.dz-pl svg{width:18px;height:18px;fill:currentColor}.dz-pl:disabled{opacity:.35;cursor:default}
.dz-st{color:#e9b949;font-size:12px}
.dz-meta{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:#eef3f0}.dz-meta b{font-weight:600;margin-right:8px}.dzk{width:14px;height:14px;fill:currentColor;flex:none}
.dz-sk .dz-bar{width:64px;display:inline-block;margin-left:6px;vertical-align:middle}
.dzdlg .dz-row .dz-iti{width:52px!important;height:52px!important;position:relative;cursor:pointer}.dzdlg .dz-row .dz-iti img{max-width:92%!important;max-height:92%!important}
.dzdlg .dz-row .dg-st{cursor:pointer}.dzdlg .dz-row .dg-st b{font-size:14px!important}
.dz-mm{display:inline-flex;align-items:center;gap:1px;margin-right:6px;color:#f1ead8}.dz-mm img{width:15px;height:15px;vertical-align:-3px}.dz-mm.dz-lack{color:#ef9a9a}
.dz-cost{display:flex;gap:12px;align-items:center;font-size:14px}.dz-cost img{width:18px;height:18px}
.dz-end{justify-content:flex-end}
.dz-sk[data-dz="sk"]{cursor:pointer}
.dz-skh{display:flex;align-items:center;gap:12px;margin:0 0 10px}.dz-skh .vc-ic{position:relative;width:48px;height:48px;flex:none}.dz-skv{display:flex;flex-direction:column;gap:2px}.dz-skv>b{font:700 18px var(--font);display:flex;align-items:center;gap:4px}.dz-skv>b small{font-size:12px;color:var(--k-dim)}.dz-skv>small{color:#e9b949;font-size:12.5px}.dz-skh .vc-ic img{width:100%;height:100%;border-radius:10px}
.dz-sk .dz-mi{margin-right:6px;border-color:#3a443f;background:#1b211e;color:#cfd8d3}
/* đồ đệ tử (js/discui.js pick, 2026-11-19): món đệ tử không mặc được (sai vũ khí / thiếu điều kiện) mờ, xếp sau */
.cp-cands [data-no]{opacity:.45}
/* nút − + chiêu đệ tử chung một ô lưới, tên dài rút gọn (2026-11-19) */
.dz-pm{display:flex;gap:6px;flex:none}
.dz-sk .dz-mi{margin-right:0}
.dz-sk .vc-tx>b>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* màn hẹp (2026-11-19, người dùng: "UI space"): dòng võ công đệ tử gọn — nút 28px, dòng phụ cắt, cấp sát nút; tiêu đề Tiềm năng một dòng */
.dz-sk .dz-pl{width:28px;height:28px}
.dz-sk .dz-pl svg{width:16px;height:16px}
.dz-pm{gap:4px}
.dz-sk .dz-lv{margin-right:2px}
.dz-sk .vc-meta{overflow:hidden;text-overflow:ellipsis}
.dz-sk .vc-meta>*{flex:none}
.dz-sk .vc-meta .dz-st{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.cm-bh h4{white-space:nowrap}
/* đồ đệ tử không còn đủ điều kiện (không tác dụng): viền đỏ, ảnh mờ như ô túi (2026-11-19) */
.cm-slot.dz-eqs.bad{box-shadow:inset 0 0 0 2px var(--k-danger)}
.cm-slot.dz-eqs.bad img{opacity:.5;filter:grayscale(.6)}
/* đệ tử chưa cầm vũ khí hợp chiêu (2026-11-19) */
.dz-nw{color:#ff8a80;font-weight:600}
/* Tửu quán (2026-11-19): nguyên liệu thẳng hàng — biểu tượng và số cùng tâm dọc; bỏ chữ lớp / hạng trùng (huy hiệu lớp trên ảnh, màu tên = hạng) */
.dz-row .dz-mats{display:flex;align-items:center;justify-content:flex-start;align-self:stretch;flex-wrap:wrap;gap:2px 8px;margin-top:3px;line-height:1}
.cm-at .dz-ath{display:block;font-size:11px;line-height:1.2;color:var(--k-dim,#a9a08c);margin-top:1px}   /* Thân pháp / Nội công → tốc độ (đệ tử, 2026-11-20) */
.dz-row .dz-mats .dz-mm{margin-right:0;gap:3px;line-height:1}
.dz-row .dz-mats .dz-mm img{vertical-align:0;display:block}
