:root {
  --nen: #0f1420; --the: #182130; --vien: #263248;
  --chu: #e8edf5; --phu: #93a1b5; --xanh: #22c55e; --do: #ef4444; --nhan: #3b82f6;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--nen); color: var(--chu);
  font-family: -apple-system, "Segoe UI", Roboto, system-ui, sans-serif; font-size: 16px;
}
a { color: var(--nhan); text-decoration: none; }

.thanh-tren {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px; background: var(--the); border-bottom: 1px solid var(--vien);
  position: sticky; top: 0; z-index: 30;   /* trên nội dung khi cuộn (nút mờ / ô đồ Võ Lâm từng vẽ đè), dưới toast 40 */
}
.hieu { font-weight: 700; }
.hieu span { color: var(--phu); font-weight: 400; }
.thanh-tren nav { display: flex; gap: 16px; }
.thanh-tren .thoat { color: var(--do); }

main.khung { max-width: 900px; margin: 0 auto; padding: 20px 16px; }
main.giua { min-height: 100vh; display: grid; place-items: center; padding: 16px; }

.the { background: var(--the); border: 1px solid var(--vien); border-radius: 14px; padding: 22px; }
.dang-nhap { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 14px; }
.hieu-lon { font-size: 30px; font-weight: 800; text-align: center; }
.phu { color: var(--phu); }
.dang-nhap .phu { text-align: center; margin: -8px 0 4px; }

label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--phu); }
input {
  padding: 11px 12px; border-radius: 10px; border: 1px solid var(--vien);
  background: var(--nen); color: var(--chu); font-size: 16px;
}
input:focus { outline: none; border-color: var(--nhan); }
button {
  padding: 11px 14px; border: none; border-radius: 10px; cursor: pointer;
  background: var(--nhan); color: #fff; font-size: 16px; font-weight: 600;
}
button:hover { filter: brightness(1.08); }
.loi { background: #3a1620; color: #fecaca; border: 1px solid #7f1d2e; padding: 9px 12px; border-radius: 10px; font-size: 14px; }

h1 { font-size: 22px; margin: 4px 0 18px; }
.the-so { background: var(--the); border: 1px solid var(--vien); border-radius: 14px; padding: 20px; display: inline-block; min-width: 160px; }
.the-so .so { font-size: 34px; font-weight: 800; color: var(--xanh); }
.the-so .nhan { color: var(--phu); font-size: 14px; margin-top: 4px; }

.o-mat-khau { position: relative; display: flex; }
.o-mat-khau input { flex: 1; padding-right: 44px; width: 100%; }
.con-mat {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; padding: 6px 8px; font-size: 18px; cursor: pointer; color: var(--phu);
}
.con-mat:hover { filter: none; background: transparent; }
.o-doc { max-width: 360px; display: flex; flex-direction: column; gap: 14px; }
.ok { background: #10241a; color: #bbf7d0; border: 1px solid #14532d; padding: 9px 12px; border-radius: 10px; font-size: 14px; margin-bottom: 12px; }
.thanh-tren nav a.dang { color: var(--chu); }

/* ── Bố cục menu trái ── */
.nut-menu { display: none; font-size: 22px; cursor: pointer; margin-right: 4px; }
.bo-cuc { display: flex; align-items: stretch; min-height: calc(100vh - 53px); }
.ben-trai { width: 210px; flex-shrink: 0; background: var(--the); border-right: 1px solid var(--vien); padding: 12px 10px; }
.ben-trai nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 65px; }
.ben-trai nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--phu); }
.ben-trai nav a .ic { width: 22px; text-align: center; }
.ben-trai nav a:hover { background: var(--nen); color: var(--chu); }
.ben-trai nav a.dang { background: var(--nhan); color: #fff; }
.ben-trai nav a.thoat { color: var(--do); margin-top: 8px; }
main.khung { flex: 1; max-width: 900px; margin: 0; padding: 20px 18px; }

.hang-the { display: flex; flex-wrap: wrap; gap: 14px; }
.the-so { text-decoration: none; color: inherit; }
a.the-so:hover { border-color: var(--nhan); }

h2 { font-size: 17px; margin: 26px 0 12px; color: var(--phu); }
.quay { display: inline-block; margin-bottom: 10px; color: var(--nhan); }

/* ── Thanh tìm ── */
.thanh-tim { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.thanh-tim input[type=search] { flex: 1; min-width: 200px; }
.thanh-tim .tich { flex: none; white-space: nowrap; }   /* ô tích ngắn cạnh ô tìm: giữ một dòng */
.thanh-tim button { width: auto; }
.nut-phu { background: var(--vien); color: var(--chu); padding: 11px 14px; border-radius: 10px; }
.nut-phu:hover { filter: brightness(1.1); }
/* link dạng nút chữ dài (vd "Sửa hướng dẫn game Đuổi hình bắt chữ") xuống dòng trên điện thoại: inline thì các dòng đè lên nhau */
a.nut-phu { display: inline-block; max-width: 100%; line-height: 1.35; }

/* ── Bảng ── */
.bang-cuon { overflow-x: auto; border: 1px solid var(--vien); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--vien); white-space: nowrap; }
th { color: var(--phu); font-weight: 600; background: var(--the); }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--the); }
td.ma { font-family: ui-monospace, monospace; color: var(--phu); }
.phai { text-align: right; }
.giua { text-align: center; }

.dong { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px solid var(--vien); }
.dong:last-child { border-bottom: none; }
/* số rất dài (hũ tới 30+ chữ số) được bẻ dòng — không thì điện thoại tràn ngang (vấp 26/09/2026 trang Quỹ nhà cái) */
.dong > * { min-width: 0; overflow-wrap: anywhere; }
.o-doc.rong { max-width: 640px; }
textarea { padding: 11px 12px; border-radius: 10px; border: 1px solid var(--vien); background: var(--nen); color: var(--chu); font-size: 15px; font-family: inherit; resize: vertical; width: 100%; }
textarea:focus { outline: none; border-color: var(--nhan); }
.chu-thich { font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
code { background: var(--nen); border: 1px solid var(--vien); border-radius: 5px; padding: 1px 5px; font-size: 12px; }
.hang-nut { display: flex; gap: 10px; }
.hang-nut button { width: auto; }

.the-vai { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.the-vai.chu { background: #7f1d2e; color: #fecaca; }
.the-vai.mod { background: #1e3a5f; color: #bfdbfe; }
.nut-xoa { background: var(--do); width: auto; padding: 6px 12px; font-size: 13px; }

/* ── Điện thoại ── */
@media (max-width: 720px) {
  .nut-menu { display: block; }
  .ben-trai { position: fixed; top: 53px; left: 0; bottom: 0; z-index: 20; transform: translateX(-100%); transition: transform .2s; }
  #mo-menu:checked ~ .bo-cuc .ben-trai { transform: translateX(0); }
  main.khung { padding: 16px; }
}

/* ── Chế độ sáng ── */
:root[data-theme="sang"] {
  --nen: #f4f6fb; --the: #ffffff; --vien: #d8dfea;
  --chu: #1a2332; --phu: #5b6b82; --nhan: #2563eb;
}
.nut-den { background: transparent; border: 1px solid var(--vien); color: var(--chu); width: auto; padding: 7px 12px; font-size: 15px; }
.nut-den:hover { background: var(--the); filter: none; }

/* ── Nút Back ── */
.nut-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px;
  background: var(--the); border: 1px solid var(--vien); color: var(--chu);
  padding: 8px 14px; border-radius: 10px; }
.nut-back:hover { border-color: var(--nhan); color: var(--nhan); }

/* ── Mục cài đặt (viền vừa quanh từng mục) ── */
/* min-width: 0 — fieldset mặc định không co nhỏ hơn bảng bên trong, làm cả trang tràn ngang trên điện thoại */
fieldset.muc { border: 1.5px solid var(--vien); border-radius: 12px; padding: 16px 16px 18px; margin: 0 0 18px; min-width: 0;
  display: flex; flex-direction: column; gap: 14px; }
fieldset.muc legend { padding: 0 8px; color: var(--phu); font-weight: 600; font-size: 14px; }
fieldset.muc.canh-bao { border-color: #7f1d2e; }
.muc-rieng { margin-top: 8px; }

/* ── Nhãn loại câu thoại ── */
.the-loai { font-size: 12px; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.the-loai.tin { background: #14324a; color: #bae6fd; }
.the-loai.popup { background: #3a2a10; color: #fde68a; }
.the-loai.menu { background: #241a3a; color: #ddd6fe; }

/* ── Ô tích tìm Google + đếm dòng ── */
/* Ô tích có chữ dài (vd "Cho quỹ đánh âm (bỏ tích: …)") phải được XUỐNG DÒNG,
   không thì màn điện thoại bị tràn ngang (vấp 21/09/2026 ở trang Quỹ nhà cái). */
.tich { flex-direction: row; align-items: center; gap: 8px; color: var(--chu); font-size: 14px;
  white-space: normal; overflow-wrap: anywhere; min-width: 0; }
.tich input { width: auto; flex: none; padding: 0; margin: 0; width: 18px; height: 18px; }
/* ⚙️ trang Nhóm: các ô tích "game đang mở" của một nhóm (mỗi mã trong nhom.GAME một ô, 26/09/2026) — tên ngắn nên giữ một
   dòng. LƯỚI 4 cột cho 8 ô = 4 + 4 cân nhau (27/09/2026: flex tự xuống hàng để "Hòm Even" đứng lẻ hàng cuối); màn vừa 2 cột,
   điện thoại 1 cột */
.nhom-game { display: grid; grid-template-columns: repeat(4, max-content); gap: 4px 14px; min-width: 0; }
@media (max-width: 1100px) { .nhom-game { grid-template-columns: repeat(2, max-content); } }
/* 💰 Quỹ nhà cái: số viết tắt to cho dễ nhìn, số đủ nhỏ ở dòng dưới (26/09/2026) — số đủ tới 40 chữ số nên cho bẻ dòng */
.quy-gon { font-size: 1.3em; color: var(--chu); overflow-wrap: anywhere; }
@media (max-width: 600px) { .quy-gon { font-size: 1.05em; } }   /* điện thoại: số viết tắt vừa một dòng */
.hu-so { text-align: right; }            /* số hũ canh phải như cột số */
#quy-xem, .quy-du { font-size: 13.5px; overflow-wrap: anywhere; }
.nhom-game .tich { white-space: nowrap; }
.nhom-game .dau-dong { margin-left: 3px; font-size: 12px; }   /* 🔒 anh khoá · ⛔ quản trị nhóm tự đóng (03/10/2026) */
@media (max-width: 600px) {           /* điện thoại: ID + Cập nhật đã ẩn → bảng vừa màn, các ô tích + nút xếp dọc */
  table.bang-nhom { min-width: 0; }
  table.bang-nhom .hang-nut-nho { flex-direction: column; }   /* [Vào game] [Vào nhạc] [Chặn] (4 cột, 03/10/2026) */
  .nhom-game { grid-template-columns: minmax(0, 1fr); }
}
.dem-hang { color: var(--phu); font-size: 13px; align-self: center; }
/* 👮🔒 cột Điều kiện trang Nhóm (03/10/2026): "👮✅ 🔒❌" giữ một dòng (td chung được xuống dòng) */
td.dk-nhom { white-space: nowrap; }
/* 🚪 trang Nhóm: nhóm đã xoá bot (29/09/2026) — nhãn đỏ nhỏ DƯỚI tên, cả hàng mờ đi. Nhãn được XUỐNG DÒNG (không
   nowrap): để một dòng thì cột tên nở ra, bảng "Đang cho chạy" lòi nút [Chặn] ra ngoài khung (đo 1280px: tràn 30px) */
.nhan-roi { display: block; width: fit-content; margin-top: 4px; padding: 1px 8px; border-radius: 6px; font-size: 12px;
  line-height: 1.35; color: #fff; background: var(--do); }
tr.da-roi td { opacity: .7; }

/* ── Nút trong bảng ── */
.hang-nut-nho { display: flex; gap: 6px; }
.hang-nut-nho form { margin: 0; }
/* nút trong bảng giữ MỘT dòng — bảng Nhóm thêm cột Game đang mở (26/09/2026) thì [✕ Chặn] bị ép thành "Chặ / n" */
.hang-nut-nho button { white-space: nowrap; }
.nut-ok { background: var(--xanh); width: auto; padding: 6px 10px; font-size: 13px; }

/* ── Bảng: cho xuống dòng thay vì tràn ngang (trừ cột ID/số) ── */
th, td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
th { white-space: nowrap; }               /* tiêu đề cột không vỡ chữ */
td.ma, td.phai, th.phai { white-space: nowrap; }
table { min-width: 560px; }               /* hẹp quá thì .bang-cuon cuộn ngang, cột không bị bóp */

/* ── Lưới icon ── */
.luoi-icon { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin-top: 6px; }
.o-icon { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px;
  background: var(--the); border: 1px solid var(--vien); border-radius: 12px; cursor: pointer; color: var(--chu); width: auto; }
.o-icon:hover { border-color: var(--nhan); filter: none; }
.o-icon img { width: 44px; height: 44px; object-fit: contain; }
.ten-icon { font-size: 11px; color: var(--phu); word-break: break-all; line-height: 1.2; }
.chep-bao { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--xanh); color: #04240f; padding: 8px 16px; border-radius: 20px; font-size: 14px; z-index: 40; }
.chep-bao code { background: rgba(0,0,0,.15); color: inherit; }
/* Khung báo KHÔNG lưu được: đỏ, rộng vừa chữ (tối đa gần hết màn) cho khỏi gãy chữ vụn */
.chep-bao.loi { background: var(--do); color: #fff; width: max-content; max-width: calc(100vw - 32px);
  border-radius: 12px; text-align: center; line-height: 1.4; }

/* ── Picker icon trong ô sửa câu thoại ── */
details.picker { border: 1px solid var(--vien); border-radius: 10px; padding: 6px 12px; }
details.picker summary { cursor: pointer; color: var(--nhan); }
details.picker .luoi-icon { height: 60vh; min-height: 260px; max-height: none; overflow-y: auto; padding: 8px 2px; resize: vertical; }   /* cao hơn, kéo góc dưới để dài thêm */

/* ── Danh sách so le màu cho dễ phân biệt (xanh lá / xanh lam nhạt) ── */
main.khung fieldset.muc:nth-of-type(odd) {
  border-color: #2f7d4f; background: rgba(34, 197, 94, .06);
}
main.khung fieldset.muc:nth-of-type(odd) legend { color: #4ade80; }
main.khung fieldset.muc:nth-of-type(even) {
  border-color: #2f6d8d; background: rgba(56, 160, 220, .08);
}
main.khung fieldset.muc:nth-of-type(even) legend { color: #67c0ee; }
/* Mục cảnh báo (đổi token) luôn giữ viền đỏ dù ở vị trí nào */
main.khung fieldset.muc.canh-bao { border-color: #7f1d2e; background: rgba(239, 68, 68, .06); }
main.khung fieldset.muc.canh-bao legend { color: #f87171; }

/* ── Lưới ô game (Cài đặt game) ── */
.luoi-game { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; margin-top: 8px; }
.o-game { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 10px;
  background: var(--the); border: 1px solid var(--vien); border-radius: 14px; color: var(--chu); text-decoration: none; }
.o-game:hover { border-color: var(--nhan); }
.o-game .ic { font-size: 34px; }
.o-game .ten { font-weight: 600; text-align: center; }
.o-game.tat { opacity: .5; }
.o-game .sap { font-size: 11px; color: var(--phu); }
hr.ngan { border: none; border-top: 1px solid var(--vien); margin: 12px 0; }

.bang-ct td.stt, .bang-ct th:first-child { width: 1%; white-space: nowrap; text-align: right; color: var(--phu); }

/* Nút lọc (chip): viền mảnh, nhỏ gọn; nút đang chọn tô xanh lá. Dùng button.chip để thắng kiểu `button` chung. */
.bo-loc { margin: 4px 0 18px; display: grid; gap: 10px; }
.hang-loc { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nhan-loc { color: var(--phu); font-size: 13px; min-width: 84px; }
button.chip { width: auto; border: 1.5px solid var(--vien); background: var(--the); color: var(--chu);
        border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 500; line-height: 1.2; }
button.chip:hover { border-color: var(--xanh); filter: none; }
button.chip.bat { background: #16a34a; border-color: #16a34a; color: #fff; font-weight: 600; }
.bang-ct td:nth-child(2) { min-width: 170px; }   /* cột Mô tả không bị bóp còn 1 chữ/dòng */

main.khung { min-width: 0; }   /* khung chính co theo màn hình; bảng rộng thì tự cuộn ngang trong .bang-cuon */
@media (max-width: 600px) { .thanh-tim input[type=search] { flex-basis: 100%; } }
.bang-ct td.ma { white-space: normal; overflow-wrap: anywhere; min-width: 140px; }   /* mã dài được xuống dòng, không bắt cuộn ngang */

/* Ô phiên bản ở trang chủ */
.phien-ban { margin-top: 20px; }
.phien-ban p { margin: 0; }
.so-ban { font-size: 18px; }
table.bang-ban { width: auto; min-width: 0; background: transparent; border: none; }
.bang-ban tr, .bang-ban td { background: transparent !important; border: none; }
.bang-ban td { padding: 6px 16px 6px 0; }
.bang-ban .ban-ok { color: var(--xanh); font-weight: 600; }
.bang-ban .ban-cu { color: var(--do); font-weight: 600; }

/* Hộp hỏi Đồng ý / Huỷ kiểu của app (hop_thoai.js) */
.hop-nen { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center;
           justify-content: center; z-index: 100; padding: 16px; }
.hop { background: var(--the); color: var(--chu); border: 1px solid var(--vien); border-radius: 16px;
       padding: 22px 22px 18px; width: 100%; max-width: 420px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.hop-chu { font-size: 16px; line-height: 1.5; margin-bottom: 20px; white-space: pre-line; }
.hop-nut { display: flex; gap: 10px; justify-content: flex-end; }
.hop-nut button { width: auto; min-width: 96px; }
.hop-nut .hop-huy { background: transparent; border: 1.5px solid var(--vien); color: var(--chu); }
.hop-nut .hop-ok { background: var(--xanh); color: #fff; }
.hop-nut .hop-ok.nguy-hiem { background: var(--do); }

.hang-sua { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hang-sua button { width: auto; }
.hang-sua button:disabled { opacity: .45; cursor: default; }

/* Bảng xếp hạng: trên điện thoại chỉ giữ Hạng · Người chơi · Điểm (ẩn Username, ID) để cột Điểm không bị khuất */
@media (max-width: 600px) { .an-khi-hep { display: none; } table.bang-bxh { min-width: 0; } }
/* 📜 lịch sử giao dịch (trang người chơi, 04/10/2026): điện thoại ẩn Với ai + Ví sau (an-khi-hep), giờ xuống hai dòng
   → cột Vào / Ra hiện ngay, không phải cuộn ngang */
@media (max-width: 600px) { table.bang-ls { min-width: 0; } table.bang-ls td.ma { white-space: normal; } }
table.bang-ls td.ma span { white-space: nowrap; }        /* ngày / giờ không bị bẻ giữa chữ số */

/* ── Võ Lâm: bản xem thử nhân vật (trang /cai-dat-game/volam, 22/09/2026) ── */
:root { --vl-vang: #facc15; }
:root[data-theme="sang"] { --vl-vang: #a16207; }
/* Bản xem thử Võ Lâm: màn rộng xếp 3 cột (nhân vật · chỉ số · đồ) để cả mục vừa MỘT màn hình — chủ chốt
   25/09/2026 "nhìn được chỉ trong 1 màn hình mà không cần di xuống". Hẹp hơn thì rút còn 2 cột rồi 1 cột. */
.vl-luoi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 1180px) { .vl-luoi { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
@media (max-width: 760px) { .vl-luoi { grid-template-columns: minmax(0, 1fr); } }
.vl-the { background: var(--the); border: 1px solid var(--vien); border-radius: 14px; padding: 14px; min-width: 0; }
.vl-dau { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.vl-ten { font-size: 18px; font-weight: 700; }
label.vl-cap { flex-direction: row; align-items: center; gap: 8px; color: var(--chu); }
.vl-cap input { width: 84px; padding: 7px 10px; }
.vl-he { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.vl-he button.chip { padding: 5px 11px; font-size: 13px; }
.vl-nho { font-size: 12px; margin: 6px 0 0; }
.vl-h { font-size: 14px; margin: 18px 0 6px; color: var(--chu); }
.vl-h-dau { margin-top: 2px; }
.vl-h .phu { font-weight: 400; font-size: 12px; }
.vl-tn { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--vien); }
.vl-tn:last-child { border-bottom: none; }
.vl-tn .ten { flex: 1; min-width: 0; font-size: 14px; }
.vl-tn .ten .phu { font-size: 12px; }
.vl-tn .n { min-width: 26px; text-align: center; font-weight: 700; }
button.vl-nut-nho { width: 34px; height: 34px; padding: 0; font-size: 18px; line-height: 1; border-radius: 9px;
  background: var(--nen); color: var(--chu); border: 1px solid var(--vien); flex: none; }
button.vl-nut-nho:disabled { opacity: .35; cursor: default; }
.vl-dong { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 7px 0;
  border-bottom: 1px solid var(--vien); align-items: center; }
.vl-dong:last-child { border-bottom: none; }
.vl-dong .ten { font-size: 14px; min-width: 0; }
.vl-dong .qd { font-size: 12px; color: var(--xanh); }
.vl-dong .so { font-weight: 800; font-size: 18px; text-align: right; white-space: nowrap; }
.vl-dong .giai { grid-column: 1 / -1; font-size: 12px; color: var(--phu); overflow-wrap: anywhere; }
.vl-pct { color: var(--vl-vang); font-weight: 600; }
.vl-hiem { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.vl-hiem .khong { color: var(--phu); opacity: .7; }
.vl-hiem .co b { color: var(--vl-vang); }
.vl-nhom-o { font-size: 12px; color: var(--phu); margin: 10px 0 6px; }
.vl-o-luoi { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.vl-o { aspect-ratio: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; border-radius: 10px; border: 2px solid var(--vien); background: var(--nen); color: var(--chu);
  font-size: 11px; overflow: hidden; }
button.vl-o { width: auto; padding: 2px; font-weight: 500; cursor: pointer; }
button.vl-o:hover { filter: none; border-color: var(--nhan); }
.vl-o .ic { font-size: 22px; line-height: 1; }
.vl-o span:last-child { white-space: nowrap; }
.vl-o.trong { opacity: .5; border-style: dashed; }
.vl-o.trong span:last-child { font-size: 10px; white-space: normal; text-align: center; line-height: 1.1;
  overflow-wrap: anywhere; }   /* "Găng tay", "Thú cưỡi" ô trống: xuống dòng, không bị cắt trên điện thoại */
.vl-o.rong { border-style: dashed; opacity: .35; }
.vl-o.p0 { border-color: #9ca3af; } .vl-o.p1 { border-color: #22c55e; } .vl-o.p2 { border-color: #3b82f6; }
.vl-o.p3 { border-color: #a855f7; } .vl-o.p4 { border-color: #eab308; box-shadow: 0 0 0 1px #eab30855 inset; }
.vl-o.chon { outline: 3px solid var(--nhan); outline-offset: 1px; }
/* Võ Lâm bản xem thử: popup dòng chỉ số khi DI CHUỘT vào ô · menu khi bấm / chuột phải (chủ chốt 23/09/2026) */
.vl-tip, .vl-menu { position: fixed; z-index: 90; border: 1px solid var(--vien); border-radius: 12px; padding: 10px 12px;
  background: var(--nen); box-shadow: 0 8px 24px #0003; max-width: min(340px, calc(100vw - 12px)); }
.vl-tip { pointer-events: none; }
.vl-tip .dau, .vl-menu-dau { font-weight: 700; margin-bottom: 6px; }
.vl-tip ul { margin: 0; padding-left: 18px; font-size: 14px; display: grid; gap: 3px; }
.vl-tip li.vl-an { color: var(--phu); }
.vl-tip li.vl-an .vl-pct { color: var(--phu); }
.vl-menu { padding: 8px; display: grid; gap: 6px; min-width: 200px; }
/* `display: grid` ở trên đè mất [hidden] của trình duyệt → phải tự tắt, không thì menu không bao giờ đóng
   (chủ bắt được 23/09/2026: bỏ đồ xong menu vẫn nằm đó) */
.vl-tip[hidden], .vl-menu[hidden] { display: none; }
/* ── Trang Võ Lâm: mỗi mục là MỘT Ô CÓ HÌNH, bấm ô thì mục hiện ra trong CỬA SỔ (chủ chốt 25/09/2026,
      thay kiểu mở xuôi xuống hồi 23/09). Hình là icon premium thật, lấy qua /icon/anh/<tên icon>. ── */
.luoi-muc { display: grid; grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: 14px; margin: 0 0 20px; }
.o-muc { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 12px;
  background: var(--the); border: 1.5px solid var(--vien); border-radius: 14px; color: var(--chu);
  font-size: 15px; font-weight: 600; text-align: center; min-width: 0; }
.o-muc:hover { border-color: var(--nhan); filter: none; }
.o-muc:focus-visible { outline: 3px solid var(--nhan); outline-offset: 2px; }
.o-anh { position: relative; width: 52px; height: 52px; display: grid; place-items: center; flex: none; }
.o-anh img { width: 100%; height: 100%; object-fit: contain; }
.o-emo { font-style: normal; font-size: 30px; line-height: 1; }
/* Hình tải được thì che emoji lui đi; hình 404 (bot đang tắt) thì <img> tự xoá mình, emoji hiện ra thế chỗ */
.o-anh img ~ .o-emo { display: none; }
.o-muc .o-ten { line-height: 1.3; overflow-wrap: anywhere; }
.o-muc .o-phu { font-size: 11px; font-weight: 400; color: var(--phu); line-height: 1.3; }
.o-muc.that .o-phu { color: var(--xanh); }
.o-muc.canh-bao { border-color: #7f1d2e; background: rgba(239, 68, 68, .06); }
.o-muc.canh-bao .o-phu { color: var(--do); }

/* Cửa sổ. z-index 35: trên thanh trên (30) và menu trái (20), DƯỚI toast "Đã lưu" (40),
   popup món / menu chuột phải (90) và hộp hỏi lại (100) — mấy thứ đó phải đè lên cửa sổ mới dùng được. */
.cua-so { position: fixed; inset: 0; z-index: 35; display: flex; align-items: center; justify-content: center; padding: 10px; }
.cua-so[hidden] { display: none; }
.cua-nen { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.cua { position: relative; display: flex; flex-direction: column; width: min(1500px, 100%); max-height: 100%;
  background: var(--nen); border: 1.5px solid var(--vien); border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45); min-width: 0; }
.cua.canh-bao { border-color: #7f1d2e; }
.cua-dau { display: flex; align-items: center; gap: 12px; padding: 9px 14px; background: var(--the);
  border-bottom: 1px solid var(--vien); flex: none; }
.cua-dau .o-anh { width: 38px; height: 38px; }
.cua-dau .o-emo { font-size: 24px; }
.cua-nhan { flex: 1; min-width: 0; }
.cua-nhan h2 { margin: 0; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.cua-nhan p { margin: 2px 0 0; font-size: 12px; }
.cua-dong { background: transparent; border: 1px solid var(--vien); color: var(--chu); padding: 7px 13px;
  font-size: 16px; flex: none; }
.cua-dong:hover { border-color: var(--do); color: var(--do); filter: none; }
.cua-than { padding: 12px 16px 14px; overflow: auto; overscroll-behavior: contain; }
/* Trong cửa sổ, khung + tên mục của fieldset bỏ đi: tên đã nằm ở đầu cửa sổ rồi */
.cua-than fieldset.muc { border: 0; background: none; padding: 0; margin: 0; }
.cua-than fieldset.muc legend { display: none; }
/* 🧪 Mục gộp Thử đồ (08/10/2026): 3 fieldset chung một cửa sổ — thanh nhảy nhanh dính đầu, mỗi phần hiện lại tên
   làm tiêu đề + vạch ngăn (tên cửa sổ chỉ là tên chung, không thì không biết đang ở phần nào). */
.muc-gop-nhay { display: none; }
.cua-than .muc-gop-nhay { display: flex; flex-wrap: wrap; gap: 8px; position: sticky; top: -12px; z-index: 3;
  margin: -12px -16px 12px; padding: 10px 16px; background: var(--nen); border-bottom: 1px solid var(--vien); }
.cua-than .muc-gop-nhay .chip { text-decoration: none; border: 1.5px solid var(--vien); background: var(--the);
  color: var(--chu); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 500; line-height: 1.2; }
.cua-than .muc-gop-nhay .chip:hover { border-color: var(--xanh); }
.cua-than .muc-gop fieldset.muc { scroll-margin-top: 60px; }
.cua-than .muc-gop fieldset.muc + fieldset.muc { border-top: 1px solid var(--vien); margin-top: 18px; padding-top: 14px; }
.cua-than .muc-gop fieldset.muc legend { display: block; float: left; width: 100%; padding: 0; margin: 0 0 8px;
  font-size: 16px; font-weight: 700; }
.cua-than .muc-gop fieldset.muc legend + * { clear: both; }
/* Cột chữ dài (Cách tính, Ngũ hành) đừng kéo hết 1.500 chấm — đọc mỏi mắt */
.cua-than .vl-giai-thich { max-width: 980px; }
.cua-than .vl-giai-thich p { margin-bottom: 8px; }
/* Bản xem thử nhân vật: bóp cho gọn (chủ chốt 25/09/2026 — phải vừa một màn hình) */
#vl-xem-thu > p { margin: 0 0 8px; font-size: 12.5px; }
#vl-xem-thu .vl-the { padding: 12px; }
#vl-xem-thu .vl-luoi { align-items: stretch; }            /* ba khung cao bằng nhau (chủ chốt 26/09/2026) */
#vl-xem-thu .vl-h { margin: 10px 0 4px; }
#vl-xem-thu .vl-dong { padding: 4px 0; }
/* Kháng: "chặn đòn hệ …" đứng CẠNH tên, một hàng mỗi kháng (26/09/2026 — cột giữa bớt ~100 chấm, ba cột cân) */
#vl-xem-thu .vl-kh .ten { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; }
#vl-xem-thu .vl-tn { padding: 4px 0; }
#vl-xem-thu .vl-nhom-o { margin: 8px 0 4px; }
/* Ba mục CÀI ĐẶT trong cửa sổ: xếp các ô cài đặt thành nhiều cột cho vừa một màn hình (chủ chốt 25/09/2026).
   Mỗi ô = một khoản cài đặt + mấy dòng giải thích của nó, gói trong .o-cai để không bị cắt rời giữa hai cột. */
.cua-than #vl-boss {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(318px, 100%), 1fr)); gap: 10px 16px; align-items: start; }
.cua-than #vl-boss > p { grid-column: 1 / -1; margin: 0; font-size: 13px; }
/* ⚙️ Cài đặt + 💰 Giá bán đồ (chủ chốt 26/09/2026 "bố cục, vị trí cân bằng phù hợp hơn"): ô cùng hàng CAO BẰNG NHAU,
   không ô nào đứng lẻ một mình ở hàng dưới, ô nhập vừa cỡ số (không kéo hết khung), đơn vị đứng ngay sau ô. */
:is(#vl-cai-dat, #vl-gia-ban) > p.phu { margin: 0 0 10px; font-size: 13px; line-height: 1.5; }
.luoi-cai { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.luoi-cai > .ba { grid-column: span 2; }                 /* hàng trên: 3 ô */
.luoi-cai > .hai { grid-column: span 3; }                /* hàng dưới: 2 ô rộng hơn (chữ dài hơn) */
/* Lưới 10 phần (💍 Kết hôn 5 + 5 + 5 · ⚡ Tuyệt kỹ 5 + 5): ô 2 phần (5 ô một hàng), ô rộng 5 phần (2 ô một hàng) */
.luoi-cai.nam-cot { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.luoi-cai.nam-cot > .bon { grid-column: span 2; }
.luoi-cai.nam-cot > .hai { grid-column: span 5; }
/* 🎟 Cửa hàng Ticket (27/09/2026 thêm 📖 quyển nhập môn + 📘 bí kíp cấp 5, rồi ☯️ bán trùng sinh → 8 ô món): lưới 12
   phần — hàng 1 bốn ô (.tu, 3 phần: Ngọc · Bán trùng sinh · Đá · x2 EXP), hàng 2 bốn ô (.tu: premium7 · premium30 ·
   nhập môn · bí kíp cấp 5), hàng 3 hai ô rộng (.hai, 6 phần: Đổi Bon · Đã thu) — không ô nào đứng lẻ (.ba còn để dành) */
.luoi-cai.muoi-hai { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.luoi-cai.muoi-hai > .tu { grid-column: span 3; }
.luoi-cai.muoi-hai > .ba { grid-column: span 4; }
.luoi-cai.muoi-hai > .hai { grid-column: span 6; }
@media (max-width: 900px) {
  /* điện thoại: MỘT cột — lớp lưới mới phải có mặt ở đây với ĐỦ độ ưu tiên (vấp 26/09: đẻ cột 0px) */
  .luoi-cai, .luoi-cai.nam-cot, .luoi-cai.muoi-hai { grid-template-columns: minmax(0, 1fr); }
  .luoi-cai > .ba, .luoi-cai > .hai, .luoi-cai.nam-cot > .bon, .luoi-cai.nam-cot > .hai,
  .luoi-cai.muoi-hai > .tu, .luoi-cai.muoi-hai > .ba, .luoi-cai.muoi-hai > .hai { grid-column: auto; }
}
/* ⚡ Tuyệt kỹ · Bí kíp (27/09/2026): ô theo hệ có 3 ô nhập nhỏ (tên ô nhỏ hơn tên hệ) */
#vl-tuyet-ky .o-cai { gap: 5px; }
#vl-tuyet-ky .tky-nho { font-size: 12.5px; font-weight: 500; }
#vl-tuyet-ky .tky-ten { font-size: 12px; line-height: 1.35; color: var(--phu); }
#vl-tuyet-ky .tky-ic { display: inline-flex; width: 20px; height: 20px; }
#vl-tuyet-ky .tky-ic img { width: 20px; height: 20px; }
#vl-tuyet-ky .tky-ic:empty { display: none; }             /* hình chưa tải được thì bỏ chỗ trống */
.o-cai-ten { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; font-weight: 600;
  color: var(--chu); }
.o-cai-ten small.gioi { font-weight: 400; }
.o-nhap { display: flex; align-items: center; gap: 8px; min-width: 0; }
.o-nhap input { flex: 0 1 280px; width: 100%; min-width: 0; padding: 9px 11px; font-size: 15.5px;
  font-variant-numeric: tabular-nums; }
.o-nhap input.ngan { flex: 0 0 96px; text-align: right; }
.o-nhap .don-vi { color: var(--phu); font-size: 13px; white-space: nowrap; }
/* đơn vị dài trong ô hẹp (⚡ x2 EXP "giờ mỗi lần mua" ở ô 1/4 lưới Ticket, 27/09/2026): cho xuống dòng, khỏi lấn mép */
.o-nhap .don-vi.xuong-dong { white-space: normal; min-width: 0; }
/* 🚫 Bảng "Đã phạt" (trang Cài đặt, 26/09/2026): chỉ 3 cột → co vừa màn điện thoại, tên dài xuống dòng, cột Bon
   luôn thấy ngay (không phải kéo ngang như bảng nhiều cột) */
#bang-phat { min-width: 0; }
#bang-phat td { white-space: normal; overflow-wrap: anywhere; }
/* 📋 bảng "Hôm nay" của ô Nhiệm vụ ngày (26/09/2026): điện thoại ẩn cột chi tiết, 5 cột còn lại phải vừa màn */
#bang-nvh { min-width: 0; }
#bang-nvh th { white-space: normal; overflow-wrap: normal; word-break: normal; }
#bang-nvh td { white-space: normal; overflow-wrap: anywhere; }
/* 💰 Các mức đổi Bon của cửa hàng Ticket (26/09/2026): mỗi mức một dòng [Ticket] = [Bon] [✕], nút [➕ thêm mức] */
.tk-muc { display: flex; flex-direction: column; gap: 8px; }
.tk-muc-dong input[data-gon] { flex: 1 1 150px; }
button.tk-muc-them { width: auto; align-self: flex-start; padding: 7px 12px; font-size: 14px; }
.gb-thanh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-bottom: 12px;
  background: var(--the); border: 1px solid var(--vien); border-radius: 12px; padding: 10px 14px; }
.gb-thanh .gb-pct { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 10px; }   /* một hàng: tên · ô · đơn vị */
.gb-thanh > p.phu { flex: 1 1 320px; margin: 0; font-size: 12.5px; line-height: 1.5; }
.gb-thanh .gb-pct { flex-wrap: wrap; max-width: 100%; min-width: 0; }   /* điện thoại: tên dài thì ô nhập xuống dòng (14/10/2026) */
.gb-thanh [data-gb-mua] { width: 150px; text-align: right; font-weight: 700; }
.gb-luoi { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
@media (max-width: 1100px) { .gb-luoi { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); } }
.gb-cap .o-nhap input { flex: 1 1 auto; text-align: right; font-size: 18px; font-weight: 700; }
.gb-cap .gb-du { margin: 0; font-size: 12px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.gb-cap .gb-lai { margin: auto 0 0; padding-top: 8px; border-top: 1px dashed var(--vien); font-size: 13.5px;
  color: var(--chu); overflow-wrap: anywhere; }
.gb-cap .gb-lai .phu { font-size: 12px; }
.gb-cap .gb-lai b { font-size: 16px; }
.gb-canh { margin: 0 0 12px; padding: 10px 14px; border: 1px solid #7f1d2e; border-radius: 12px; background: rgba(239, 68, 68, .1);
  color: var(--chu); font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.gb-canh[hidden] { display: none; }
/* 📅 Lịch quái & boss (chủ chê "giao diện xấu" 25/09/2026): MỘT thanh số gọn ở trên + lưới THẺ, mỗi con một thẻ có
   ô giờ — thay bảng 3 cột (cột tên rộng thênh, ô giờ dài hết màn). Viền trái theo loại: bé cam · Tứ Linh xanh · Kỳ Lân tím. */
:is(#vl-lich, #vl-phan-thuong, #vl-tan-thu) .li-dau { margin: 0 0 10px; font-size: 13px; line-height: 1.5; }
:is(#vl-lich, #vl-phan-thuong, #vl-tan-thu) .li-thanh { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px;
  background: var(--the); border: 1px solid var(--vien); border-radius: 12px; padding: 10px 12px; }
:is(#vl-lich, #vl-phan-thuong, #vl-tan-thu) .li-so { flex: 1 1 150px; gap: 4px; font-size: 12.5px; min-width: 0; }
:is(#vl-lich, #vl-phan-thuong, #vl-tan-thu) .li-o { display: flex; align-items: center; gap: 6px; color: var(--phu); font-size: 13px; white-space: nowrap; }
:is(#vl-lich, #vl-phan-thuong, #vl-tan-thu) .li-o input { width: 64px; padding: 7px 9px; font-size: 15px; text-align: right; }
#li-xep { flex: 0 0 auto; width: auto; padding: 8px 14px; font-size: 14px; }
:is(#vl-lich, #vl-phan-thuong, #vl-tan-thu) .li-tt { margin: 8px 2px 12px; font-size: 12.5px; }
:is(#vl-lich, #vl-phan-thuong, #vl-tan-thu) .li-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 8px; }
:is(#vl-lich, #vl-phan-thuong, #vl-tan-thu) .li-the { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--chu);
  background: var(--the); border: 1px solid var(--vien); border-left: 4px solid #f59e0b; border-radius: 10px;
  padding: 8px 10px; }
:is(#vl-lich, #vl-phan-thuong, #vl-tan-thu) .li-the.li-linh { border-left-color: #22c55e; }
:is(#vl-lich, #vl-phan-thuong, #vl-tan-thu) .li-the.li-kylan { border-left-color: #a855f7; }
:is(#vl-lich, #vl-phan-thuong, #vl-tan-thu) .li-ten { display: flex; align-items: baseline; gap: 6px; font-size: 14px; min-width: 0; }
:is(#vl-lich, #vl-phan-thuong, #vl-tan-thu) .li-ten b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(#vl-lich, #vl-phan-thuong, #vl-tan-thu) .li-ic { flex: none; }
:is(#vl-lich, #vl-phan-thuong, #vl-tan-thu) .li-loai { margin-left: auto; flex: none; color: var(--phu); font-size: 12px; }
#vl-lich .li-the.li-tat { opacity: .55; }                  /* 🔕 con đang tắt tự ra (09/10/2026) */
#vl-lich .li-tu-ra { font-size: 12px; color: var(--phu); }
:is(#vl-lich, #vl-phan-thuong, #vl-tan-thu) .o-gio-lich { width: 100%; padding: 7px 10px; font-size: 15px; font-variant-numeric: tabular-nums;
  letter-spacing: .2px; }
#vl-lich .li-bat { margin-top: 8px; gap: 6px 18px; align-items: center; }
#vl-lich .li-bat .tich { flex-direction: row; align-items: center; gap: 7px; color: var(--chu); font-size: 13.5px; }
#vl-lich .li-bat .phu { font-size: 12px; }
/* 🏆 Boss rơi ra gì (chủ chốt 25/09/2026): thẻ mỗi con = ô cài đặt (nhãn trái · ô phải) + dòng "rơi ra gì" */
#vl-phan-thuong .pt-dong { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 13px; color: var(--phu); }
#vl-phan-thuong .pt-dong > span:first-child { flex: none; }
#vl-phan-thuong .pt-dong input { width: 100%; max-width: 150px; padding: 6px 9px; font-size: 14.5px; text-align: right;
  font-variant-numeric: tabular-nums; }
#vl-phan-thuong .pt-o { display: flex; align-items: center; gap: 6px; }
#vl-phan-thuong .pt-o input { width: 80px; }
#vl-phan-thuong .pt-roi { margin: 2px 0 0; padding: 6px 0 0 18px; border-top: 1px dashed var(--vien);
  font-size: 12.5px; line-height: 1.5; color: var(--phu); }
#vl-phan-thuong .pt-roi b { color: var(--chu); }
.o-cai { display: flex; flex-direction: column; gap: 7px; min-width: 0;
  background: var(--the); border: 1px solid var(--vien); border-radius: 12px; padding: 10px 12px; }
.o-cai > p.phu { margin: 0; font-size: 12px; line-height: 1.45; }
.o-cai label { gap: 4px; }
.o-cai label.tich { flex-direction: row; align-items: center; gap: 8px; color: var(--chu); }
/* 💪 Bảng sức mạnh quái & boss: 10 con × 8 ô số, phải gọn để cả bảng vừa một màn (chủ chốt 25/09/2026) */
.bang-vl-cs th, .bang-vl-cs td { padding: 4px 6px; }
/* Cột TÊN CON: không bẻ chữ (bảng kê chữ dọc từng chữ cái trên điện thoại) và DÍNH mép trái khi cuộn ngang,
   để chủ luôn biết đang sửa con nào — bảng 9 cột thì điện thoại phải cuộn ngang mới xem hết. */
.bang-vl-cs th:first-child, .bang-vl-cs td:first-child {
  white-space: nowrap; overflow-wrap: normal; position: sticky; left: 0; z-index: 1; background: var(--nen); }
.bang-vl-cs input.so { width: 100%; min-width: 76px; padding: 6px 8px; text-align: right; }
.bang-vl-cs .vl-cs-thu { white-space: nowrap; }
.bang-vl-cs .vl-cs-thu button { width: auto; padding: 5px 9px; font-size: 14px; }
.bang-vl-cs .kq { display: inline-block; margin-left: 8px; font-size: 12px; }
.bang-vl-cs .kq.xau { color: var(--do); }
#vl-ket-hon .lech { color: var(--do); font-weight: 600; }   /* 💍 giá quà lệch món đầu > 2% */
#vl-ket-hon .kh-giai { color: var(--phu, #8a8f98); font-size: 12px; line-height: 1.3; }
#vl-ket-hon .o-cai { gap: 4px; }
#vl-ket-hon .kh-hang { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
#vl-ket-hon .kh-diem { width: 56px; text-align: right; }
body.khoa-cuon { overflow: hidden; }
@media (max-width: 700px) {
  .cua-so { padding: 0; }
  .cua { width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; }
  .cua-than { padding: 12px 12px 18px; }
  .cua-than .muc-gop-nhay { margin: -12px -12px 10px; padding: 8px 12px; gap: 6px; }
  .cua-than .muc-gop-nhay .chip { padding: 5px 10px; font-size: 13px; }
}
.vl-hang-xoa { margin-top: 10px; align-items: center; }
button.vl-xoa { background: var(--do); border-color: var(--do); color: #fff; }
.vl-menu-dau { padding: 2px 6px 0; }
.vl-menu button { width: 100%; text-align: left; padding: 9px 12px; font-size: 14px; }
.vl-menu button.nguy { background: var(--do); border-color: var(--do); color: #fff; }
.vl-hang-nut { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vl-hang-nut button { width: auto; padding: 8px 14px; font-size: 14px; }
@media (max-width: 420px) { .vl-o .ic { font-size: 18px; } .vl-o { font-size: 10px; }
  .vl-o.trong .ic { font-size: 14px; } .vl-o.trong span:last-child { font-size: 9px; } }
.vl-giai-thich p { margin: 0 0 10px; line-height: 1.5; }
.vl-giai-thich p:last-child { margin-bottom: 0; }
/* Võ Lâm — danh mục đồ theo set (bảng mỗi ô một bảng, nút màu tạo món bỏ vào balo) */
.vl-nhom-bang { margin-top: 14px; }
.vl-nhom-bang .vl-h { margin-top: 0; }
table.bang-vl-do { min-width: 640px; }
.bang-vl-do td { font-size: 14px; }
.bang-vl-do th, .bang-vl-do td { padding-left: 8px; padding-right: 8px; }   /* bảng 5 cột vừa khung, khỏi thanh cuộn */
.bang-vl-do td.vl-ten-mon { min-width: 130px; font-weight: 600; }
.bang-vl-do td.vl-ex { font-size: 13px; min-width: 170px; }
.bang-vl-do td.vl-ex .phu { font-size: 12px; }
.vl-tao { display: flex; gap: 4px; flex-wrap: nowrap; }
button.vl-nut-pham { width: 32px; height: 32px; padding: 0; font-size: 16px; line-height: 1; border-radius: 8px;
  background: var(--the); border: 1.5px solid var(--vien); flex: none; }
button.vl-nut-pham:hover { border-color: var(--nhan); filter: none; }
button.vl-nut-pham:disabled { opacity: .4; cursor: wait; }
.bang-vl-do .vl-nw { white-space: nowrap; }     /* "🪖 Kháng bạo +6" không gãy giữa icon, chữ và số */
.bang-vl-do tbody tr { cursor: default; }
/* Điện thoại: mỗi món thành một thẻ (tên + cấp · dòng cơ bản · dòng ex · nút màu) — khỏi vuốt ngang mới thấy nút */
@media (max-width: 600px) {
  table.bang-vl-do { min-width: 0; }
  .bang-vl-do thead { display: none; }
  .bang-vl-do tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px;
    padding: 10px 12px; border-bottom: 1px solid var(--vien); }
  .bang-vl-do tbody tr:last-child { border-bottom: none; }
  .bang-vl-do tbody td { display: block; padding: 0; border: none; min-width: 0; }
  .bang-vl-do td.phai::before { content: "cấp "; color: var(--phu); font-size: 12px; }
  .bang-vl-do td:nth-child(n+3) { grid-column: 1 / -1; }
  .bang-vl-do td.vl-ex { min-width: 0; }
  .bang-vl-do td:nth-child(3)::before { content: "Cơ bản: "; color: var(--phu); font-size: 12px; }
  .bang-vl-do td.vl-ex::before { content: "Mỗi dòng ex:"; display: block; color: var(--phu); font-size: 12px; }
  .bang-vl-do .vl-tao { margin-top: 4px; gap: 8px; }
  button.vl-nut-pham { width: 38px; height: 38px; font-size: 18px; }
}
/* Võ Lâm theo VLTK1: hệ của món (góc ô), dòng ẩn, vòng kích, kháng */
.vl-o { position: relative; }
.vl-he-nho { position: absolute; top: 1px; right: 2px; font-size: 11px; line-height: 1; }
.vl-kich { font-size: 12px; color: var(--phu); white-space: normal; }
.vl-kich.mo { color: var(--xanh); }
.vl-vong { margin: 4px 0 10px; padding-left: 22px; display: grid; gap: 4px; }
.vl-dong.vl-kh.khong .so, .vl-dong.vl-kh.khong .ten { opacity: .55; }
table.bang-vl-kh { min-width: 0; width: auto; }
table.bang-vl-kh td, table.bang-vl-kh th { padding: 6px 12px; }
.vl-giai-thich .bang-cuon { display: inline-block; max-width: 100%; }
.vl-he .vl-nho { margin: 0; align-self: center; }
/* Võ Lâm: đánh thử /pk (22/09/2026) */
.vl-pk-hai { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
/* Hai khung cao bằng nhau, ô 💰 Bon dính ĐÁY khung (chủ chốt 26/09/2026 "cân bằng") */
.pk-ben { display: flex; flex-direction: column; gap: 10px; }
.pk-ben .vl-dau { margin-bottom: 6px; }
.pk-ben .vl-ten .phu { font-size: 14px; font-weight: 400; }       /* "· cấp 30" chữ thường như bên người đánh */
.pk-ben .pk-he { margin: 0; gap: 6px; }
.pk-ben .pk-he button.chip { padding: 4px 10px; font-size: 13px; }
.pk-ben .pk-bon { margin-top: auto; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px 10px;
  padding-top: 10px; border-top: 1px dashed var(--vien); color: var(--chu); font-size: 14px; }
.pk-ben .pk-bon input { width: 180px; padding: 7px 10px; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .vl-pk-hai { grid-template-columns: minmax(0, 1fr); } }
.vl-pk-so { font-size: 14px; display: grid; gap: 4px; overflow-wrap: anywhere; }
.vl-pk-ngat { color: var(--do); font-weight: 600; }
.vl-mau { height: 10px; border-radius: 6px; background: var(--nen); border: 1px solid var(--vien); overflow: hidden; }
.vl-mau span { display: block; height: 100%; background: var(--xanh); }
.vl-mau.it span { background: #f59e0b; }
.vl-mau.nguy span { background: var(--do); }
.vl-pk-nut { margin: 14px 0 10px; justify-content: center; }
.pk-bon-giai { text-align: center; margin: 0 auto 6px; max-width: 1100px; }
.vl-hang-nut button:disabled { opacity: .45; cursor: not-allowed; filter: none; }
#pk-thu { margin-top: 10px; border: 1px solid var(--vien); border-radius: 12px; padding: 10px 12px; font-size: 14px;
  line-height: 1.55; background: var(--the); }
#pk-nhat-ky { display: grid; gap: 8px; align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); }   /* nhiều lần /pk xếp nhiều cột */
.vl-pk-lan { border: 1px solid var(--vien); border-radius: 12px; padding: 10px 12px; background: var(--nen); font-size: 14px;
  min-width: 0; overflow-wrap: anywhere; }
.vl-pk-lan .dau { font-weight: 700; margin-bottom: 4px; }
.vl-pk-lan .dau .phu { font-weight: 400; }
.vl-pk-lan ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; }
.vl-pk-lan .ket { margin-top: 6px; }

/* 🎁 Tạo đồ (chủ chốt 26/09/2026 "cân bằng"): hai khung cao bằng nhau (trái NGƯỜI NHẬN · phải MÓN / cấp / phẩm / hệ),
   danh sách người nhận dài thì cuộn TRONG khung và giãn theo chiều cao khung bên phải; thanh phiếu + bảng xem trước
   rộng cả cửa sổ. */
.td-hai { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 14px; align-items: stretch; }
@media (max-width: 900px) { .td-hai { grid-template-columns: minmax(0, 1fr); } }
.td-o { display: flex; flex-direction: column; min-width: 0; }
.td-o .vl-h { margin: 12px 0 6px; }
.td-o .vl-h.vl-h-dau { margin-top: 0; }
.td-o .bo-loc { margin: 2px 0 8px; }
.td-o > p.phu { margin: 0 0 4px; font-size: 12.5px; line-height: 1.5; }
.td-o .td-ds-ai { flex: 1 1 200px; min-height: 150px; margin-bottom: 0; overflow-y: auto; align-content: start; }
.td-phieu { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px;
  margin: 12px 0 10px; background: var(--the); border: 1px solid var(--vien); border-radius: 12px; padding: 10px 14px; }
.td-phieu .vl-hang-nut { margin: 0; }
.td-tom { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; font-size: 13.5px; min-width: 0; }
.td-tom > div { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.td-tom dt { color: var(--phu); }
.td-tom dt::after { content: ":"; }
.td-tom dd { margin: 0; color: var(--chu); font-weight: 600; overflow-wrap: anywhere; }
.td-tom dd.chua { color: var(--phu); font-weight: 400; }
#vl-phan-thuong .pt-luoi { grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr)); }
/* 🎽 Đồ rơi chủ chỉnh (chủ chốt 25/09/2026): trong thẻ boss bé — % rơi + cấp một hàng · chip món · bảng 5 màu */
#vl-phan-thuong .pt-cap { width: 72px; padding: 6px 8px; font-size: 14.5px; text-align: center; }
#vl-phan-thuong .pt-do { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; border-top: 1px dashed var(--vien); }
#vl-phan-thuong .pt-hang2 { display: flex; gap: 10px; }
#vl-phan-thuong .pt-hang2 .pt-dong { flex: 1 1 auto; min-width: 0; }
#vl-phan-thuong .pt-hang2 .pt-o input { width: 56px; }
#vl-phan-thuong .pt-mon { display: flex; flex-wrap: wrap; gap: 4px; }
#vl-phan-thuong button.pt-chip { padding: 3px 6px; font-size: 15px; line-height: 1.2; border-radius: 8px; opacity: .45; }
#vl-phan-thuong button.pt-chip.bat { opacity: 1; background: color-mix(in srgb, var(--xanh) 22%, var(--the));
  border-color: var(--xanh); color: var(--chu); }
#vl-phan-thuong .pt-mau { display: grid; grid-template-columns: auto repeat(5, minmax(0, 1fr)) 30px; gap: 3px 4px;
  align-items: center; font-size: 12px; color: var(--phu); }
#vl-phan-thuong .pt-mau-dau { text-align: center; font-size: 13px; }
#vl-phan-thuong .pt-mau.sau { grid-template-columns: auto repeat(6, minmax(0, 1fr)) 22px; gap: 3px 2px; }   /* 🌀 ★0…★5 (13/10/2026) */
#vl-phan-thuong .pt-mau.sau input[data-pct] { padding-left: 1px; padding-right: 9px !important; font-size: 12px; background-size: 7px; }
#vl-phan-thuong .pt-mau-ht + .pt-mau-ht { margin-top: 4px; }
#vl-phan-thuong .pt-mau-ten { white-space: nowrap; padding-right: 2px; }
#vl-phan-thuong .pt-mau input { width: 100%; min-width: 0; padding: 4px 2px; font-size: 13px; text-align: center; }
#vl-phan-thuong .pt-tong { font-size: 11px; color: var(--do); text-align: left; }
#vl-phan-thuong .pt-hang2 { display: grid; grid-template-columns: auto auto; justify-content: space-between; gap: 8px; }
#vl-phan-thuong .pt-hang2 .pt-dong { justify-content: flex-start; gap: 6px; }
#vl-phan-thuong .pt-hang2 .pt-o input { width: 50px; }
#vl-phan-thuong .pt-hang2 .pt-cap { width: 56px; }
#vl-phan-thuong .pt-phieu { width: 96px; }
/* Ô % (chủ chốt 25/09/2026: "ô nào là % thì tôi chỉ cần viết số, tự hiện % lên để còn biết"): dấu % vẽ SẴN ở mép
   phải TRONG ô (ảnh nền SVG — không thêm thẻ nào nên luu.js / bảng màu / tổng Σ không bị đụng). Gắn: data-pct. */
input[data-pct] { text-align: right; padding-right: 20px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='14'%3E%3Ctext x='0' y='11' font-family='Arial' font-size='12' fill='%2393a1b5'%3E%25%3C/text%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 6px center; }
#vl-phan-thuong .pt-mau input[data-pct] { padding-right: 13px !important; background-position: right 2px center;
  background-size: 9px 11px; }
#vl-phan-thuong .pt-mau-boss { padding-top: 6px; border-top: 1px dashed var(--vien); }
#vl-phan-thuong .pt-mau-boss input { font-size: 12px; }
#vl-phan-thuong .pt-mau-boss { grid-template-columns: auto repeat(5, minmax(0, 1fr)) 40px; }
#vl-phan-thuong .pt-mau-boss input[data-pct] { font-size: 11.5px; padding-left: 1px; padding-right: 10px !important;
  background-position: right 1px center; background-size: 8px 10px; letter-spacing: -.2px; }
#vl-phan-thuong .pt-tong { font-size: 10.5px; overflow-wrap: anywhere; }
#vl-phan-thuong .pt-mau-boss { grid-template-columns: auto repeat(5, minmax(0, 1fr)) 34px; gap: 3px; }
#vl-phan-thuong .pt-mau-boss .pt-mau-ten { font-size: 11.5px; }
/* Dòng "máy chạy thật" dưới bảng màu khi tổng khác 100 (chủ thấy "sai sai" 25/09/2026) */
#vl-phan-thuong .pt-that { font-size: 11.5px; line-height: 1.5; color: var(--phu);
  background: color-mix(in srgb, var(--do) 10%, transparent); border-radius: 8px; padding: 5px 8px; }
#vl-phan-thuong .pt-that b { color: var(--chu); }
/* Hàng màu không dùng tới (ô % ra hay không = 0) → mờ đi */
#vl-phan-thuong .pt-mau .pt-tat { opacity: .35; }
/* ⚠️ Bảng cảnh báo (chủ chốt 25/09/2026) + chữ giới hạn nhỏ cạnh ô */
.hop.hop-canh-bao { border: 2px solid var(--do); }
.hop-tieu-de { font-size: 17px; font-weight: 700; color: var(--do); margin-bottom: 8px; }
.gioi { font-size: 11px; font-weight: 400; color: var(--phu); margin-left: 4px; white-space: nowrap; }
#vl-phan-thuong .pt-gioi-mau { font-size: 9.5px; margin: 0; white-space: normal; line-height: 1.1; max-width: 44px; }
/* ⚫ Quà tân thủ (chủ chốt 25/09/2026) */
#vl-tan-thu .tt-h { font-size: 15px; margin: 14px 0 6px; color: var(--chu); }
#vl-tan-thu .tt-bat { flex: 1 1 100%; flex-direction: row; align-items: center; gap: 8px; color: var(--chu); font-size: 14px; }
/* 4 ô số: một hàng 4 ô, ≤ 700px 2 + 2 — LƯỚI cố định để không bao giờ ra 3 + 1 ô lẻ (bố cục cân, 27/09/2026) */
#vl-tan-thu .li-thanh:not(.tt-qua) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
#vl-tan-thu .li-thanh:not(.tt-qua) .tt-bat { grid-column: 1 / -1; }
@media (max-width: 700px) { #vl-tan-thu .li-thanh:not(.tt-qua) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#vl-tan-thu .tt-nhom { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 6px 14px; }
#vl-tan-thu .tt-nhom .tich { flex-direction: row; align-items: center; gap: 8px; color: var(--chu); font-size: 14px; }
.bang-tt th, .bang-tt td { padding: 6px 9px; }
/* bảng "Đã nhận" ít cột: bỏ min-width 560px chung để cột "Tân thủ tới" không khuất trên điện thoại (bẫy CSS mục 14) */
#vl-tan-thu .bang-tt { min-width: 0; }
#vl-tan-thu .bang-tt td { overflow-wrap: anywhere; }
#vl-tan-thu > p.phu:not(.li-dau):not(.li-tt) { font-size: 13px; margin: 2px 0 8px; }
/* 🎽 Chỉ số đồ (chủ chốt 25/09/2026): bảng loại × 5 cấp */
.bang-so-do th, .bang-so-do td { padding: 4px 6px; }
.bang-so-do input.so { width: 100%; min-width: 72px; padding: 6px 8px; text-align: right; }
.bang-so-do td:first-child { white-space: nowrap; }
.bang-so-do .nut-phu { width: auto; padding: 5px 9px; font-size: 14px; }
/* 📦 Món trong quà tân thủ + set */
#vl-tan-thu .tt-qua { margin-top: 8px; align-items: center; }
#vl-tan-thu select { padding: 7px 10px; border-radius: 10px; border: 1px solid var(--vien); background: var(--nen);
  color: var(--chu); font-size: 15px; }
#vl-tan-thu .tt-mon { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 6px 10px; }
#vl-tan-thu .tt-o-mon { flex-direction: row; align-items: center; justify-content: space-between; gap: 6px;
  background: var(--the); border: 1px solid var(--vien); border-radius: 10px; padding: 6px 8px; color: var(--chu);
  font-size: 13.5px; }
#vl-tan-thu .tt-o-mon input { width: 52px; padding: 5px 7px; text-align: right; font-size: 14.5px; }
#vl-tan-thu .tt-loc { margin: 6px 0; }
#vl-tan-thu .tt-bang-nhom td, #vl-tan-thu .tt-bang-nhom th { padding: 5px 9px; }
#vl-tan-thu .tt-qua > .phu { font-size: 12.5px; flex: 1 1 200px; }
/* Cột TÊN loại đồ dính mép trái khi cuộn ngang (điện thoại) — y bảng 💪 Sức mạnh */
.bang-so-do th:first-child, .bang-so-do td:first-child { position: sticky; left: 0; z-index: 1; background: var(--nen); }
@media (max-width: 600px) { .bang-so-do td:first-child { white-space: normal; min-width: 120px; max-width: 140px; } }
/* ⚫ Hai nút chọn BỘ SỐ BOSS (nhóm thường / nhóm tân thủ — 25/09/2026) đầu cửa sổ 📅 💪 🏆 */
.bo-chon { margin: 2px 0 10px; }
.bo-chon button.chip { display: inline-flex; align-items: center; gap: 6px; }
.bo-ic { position: relative; width: 20px; height: 20px; display: inline-grid; place-items: center; flex: none; }
.bo-ic img { width: 100%; height: 100%; object-fit: contain; }
.bo-ic .o-emo { font-size: 15px; }
.bo-ic img ~ .o-emo { display: none; }
.bo-chon .bo-giai { font-size: 12.5px; flex: 1 1 200px; min-width: 0; }
.bo-tt-bao { margin: 0 0 10px; padding: 8px 12px; font-size: 13px; line-height: 1.5; border-radius: 8px;
  border-left: 4px solid var(--chu); background: color-mix(in srgb, var(--chu) 8%, transparent); }
fieldset.muc.bo-tt { border-color: color-mix(in srgb, var(--chu) 45%, var(--vien)); }
/* 🧹 🔄 ô Tẩy điểm / Đổi hệ (⚙️ Cài đặt Võ Lâm, 29/09/2026): ba ô nhập Bon · Ticket · ngày một hàng, hẹp thì xuống dòng */
.td-hang { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; min-width: 0; }
.td-hang label { min-width: 0; }
/* 🎲 Úp Ngửa · nhà cái tự điều tiết (02/10/2026): bảng tình hình 2 cột (ít cột → bỏ min-width chung) + lưới 4 ô */
table.bang-dt { min-width: 0; margin: 8px 0 12px; }
table.bang-dt td { overflow-wrap: anywhere; }
table.bang-dt td.so { text-align: right; white-space: nowrap; }
.luoi-dt { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 10px; }
.luoi-dt > label { min-width: 0; }
.luoi-dt.ba { grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* 🥣 Úp Ngửa 3 ô (bỏ ô nhả 11/10/2026) */
@media (max-width: 700px) { .luoi-dt { grid-template-columns: repeat(2, minmax(0, 1fr)); } .luoi-dt.ba { grid-template-columns: minmax(0, 1fr); } }

/* ── 🎵 Bot nhạc (/nhac, bố cục làm lại 03/10/2026 — anh: ô chọn cắt chữ, chữ đè nhau, nút dài hết khung) ── */
.nhac-tinh-trang { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.nhac-tinh-trang .phu { overflow-wrap: anywhere; min-width: 0; }
.nhac-den { width: 11px; height: 11px; border-radius: 50%; flex: none; background: var(--xanh);
            box-shadow: 0 0 0 4px color-mix(in srgb, var(--xanh) 22%, transparent); }
.nhac-den.do { background: var(--do); box-shadow: 0 0 0 4px color-mix(in srgb, var(--do) 22%, transparent); }
.nhac-so { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 12px; }
.nhac-so > div { background: var(--nen); border: 1px solid var(--vien); border-radius: 12px; padding: 10px 14px; min-width: 0; }
.nhac-so b { display: block; font-size: 22px; line-height: 1.2; }
.nhac-so span { color: var(--phu); font-size: 13px; }
table.nhac-bang { min-width: 0; width: 100%; }
table.nhac-bang td { overflow-wrap: anywhere; vertical-align: middle; }
table.nhac-bang .nhan-roi { margin-top: 4px; }
table.nhac-bang .hang-nut-nho { justify-content: flex-end; }
.nhac-nhan { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }   /* tên ô + giới hạn chung MỘT dòng → ô nhập hai cột thẳng hàng */
.nhac-nhan .gioi { margin-left: 0; }
/* ô nhập + nút CÙNG HÀNG: hai ô chia đều, nút vừa chữ, đáy thẳng hàng */
.nhac-hang { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; margin-top: 12px; }
.nhac-hang > label { min-width: 0; }
.nhac-hang input { width: 100%; min-width: 0; }
.nhac-hang > button { width: auto; white-space: nowrap; }
.nhac-khung-ma { margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--vien); border-radius: 12px; }
.nhac-khung-ma p { margin: 0; }
/* hai ô cài đặt chia ĐỀU hai cột, cao bằng nhau */
.nhac-hai { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; margin-top: 10px; }
.nhac-hai > * { min-width: 0; }
.nhac-o { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 12px 14px;
          background: var(--nen); border: 1px solid var(--vien); border-radius: 12px; }
.nhac-o .tich { font-size: 15px; font-weight: 600; }
.nhac-o small.phu { font-size: 12.5px; line-height: 1.4; }
select.nhac-chon { width: 100%; min-width: 0; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--vien);
                   background: var(--nen); color: var(--chu); font-size: 16px; }
select.nhac-chon:focus { outline: none; border-color: var(--nhan); }
.nhac-cach { margin: 12px 0 0; font-size: 13.5px; }
button.nut-phu { width: auto; padding: 6px 12px; font-size: 13px; background: var(--the); color: var(--chu);
                 border: 1px solid var(--vien); }
button.nut-phu:hover { border-color: var(--nhan); filter: none; }
.nhac-so-ghi { max-height: 330px; overflow-y: auto; padding-right: 4px; }
@media (max-width: 900px) {
  .nhac-hang, .nhac-hai { grid-template-columns: minmax(0, 1fr); }
  .nhac-hang > button { width: 100%; }
}
@media (max-width: 600px) {
  .nhac-so { grid-template-columns: minmax(0, 1fr); }
  .nhac-so > div { display: flex; align-items: baseline; gap: 10px; }
  .nhac-so b { display: inline; font-size: 18px; }
  table.nhac-bang .hang-nut-nho { flex-wrap: wrap; }
  /* bảng ca sĩ thành THẺ: tên · tình trạng · hàng nút ngang (bảng 3 cột bóp số điện thoại gãy dòng, nút xếp dọc) */
  table.nhac-ca-si thead { display: none; }
  table.nhac-ca-si, table.nhac-ca-si tbody, table.nhac-ca-si tr, table.nhac-ca-si td { display: block; width: 100%; }
  table.nhac-ca-si tr { padding: 10px 12px; border-bottom: 1px solid var(--vien); }
  table.nhac-ca-si tr:last-child { border-bottom: none; }
  table.nhac-ca-si td { padding: 2px 0; border: none; text-align: left; }
  table.nhac-ca-si .hang-nut-nho { justify-content: flex-start; flex-wrap: nowrap; margin-top: 6px; }
}
table.nhac-ca-si small.ma { white-space: nowrap; }

/* 🏆 Thưởng bảng xếp hạng (04/10/2026) — trang Bảng xếp hạng: mỗi bảng một thẻ, hạng = danh sách quà dạng chip */
.bt-luoi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0 14px; }
@media (max-width: 900px) { .bt-luoi { grid-template-columns: minmax(0, 1fr); } }
.bt-the { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bt-dau { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.bt-ky select { margin-left: 6px; }
.bt-chot { margin: 0; }
.bt-hang { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.bt-mot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px dashed var(--vien); }
.bt-so { min-width: 74px; white-space: nowrap; }
.bt-qua { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 200px; min-width: 0; }
.bt-mon { display: inline-flex; align-items: center; gap: 4px; cursor: default; overflow-wrap: anywhere; }
button.bt-x { width: auto; padding: 0 4px; border: 0; background: none; color: var(--phu); font-size: 12px; cursor: pointer; }
button.bt-x:hover { color: #dc2626; filter: none; }
.bt-form { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; align-items: center; }
.bt-form select, .bt-form input { max-width: 100%; }
.bt-buoc { display: contents; }
.bt-nut { display: flex; gap: 8px; flex-wrap: wrap; }
.bt-dong { margin: 8px 0 0; font-weight: 600; overflow-wrap: anywhere; }

/* 🧥 Phi phong (09/10/2026): ba ô chọn màu · cấp · sao + nút tạo trong hàng nút balo thử; bảng nhật ký nâng ít cột */
.vl-tao-pp { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vl-tao-pp select { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--vien); background: var(--the); color: var(--chu); }
table.bang-pp { min-width: 0; }
table.bang-pp td { white-space: normal; overflow-wrap: anywhere; }
/* ⭐ bảng ví dụ ★0 → ★5 + nhật ký Hỗn Thiên (12/10/2026): số / chữ ngắn KHÔNG bẻ giữa chừng ("18 0", "khả m") — bảng cuộn
   ngang trong .bang-cuon trên điện thoại; riêng cột tên món / người chơi được xuống dòng */
table.bang-pp.bang-ht td, table.bang-pp.bang-ht th { white-space: nowrap; overflow-wrap: normal; }
table.bang-pp.bang-ht td:first-child { white-space: normal; min-width: 7em; }
/* 🧥 bảng giá nâng phi phong (13/10/2026): mỗi bậc một hàng 4 ô nhập (đá · Ticket · Bon · %) — ô hẹp vừa số */
table.bang-pp.bang-gia-pp th, table.bang-pp.bang-gia-pp td { white-space: nowrap; padding: 4px 5px; }
table.bang-pp.bang-gia-pp input { width: 100%; min-width: 3.2em; box-sizing: border-box; }
table.bang-pp.bang-gia-pp td:nth-child(3) input, table.bang-pp.bang-gia-pp td:nth-child(4) input { min-width: 5em; }
@media (max-width: 600px) {          /* điện thoại: 4 ô + cột bậc vừa 375px, khỏi kéo ngang */
  table.bang-pp.bang-gia-pp th, table.bang-pp.bang-gia-pp td { padding: 3px 2px; }
  table.bang-pp.bang-gia-pp input { min-width: 2.2em; padding-left: 4px; padding-right: 4px; }
  table.bang-pp.bang-gia-pp td:nth-child(3) input, table.bang-pp.bang-gia-pp td:nth-child(4) input { min-width: 3.4em; }
  table.bang-pp.bang-gia-pp td:first-child { white-space: normal; }
}
