/* 🧱🃏 THẺ BỘ THỦ (9/10/2026) — giao diện của kho/kho-the-bo-thu.js. Dùng biến màu của kho.css,
   tiền tố .tbt- để không đụng lớp nào khác. Nút ≥ 50px cho học viên lớn tuổi; mọi :hover bọc @media (hover). */
.tbt-ve { border: 0; background: none; color: var(--oliu); font: inherit; font-weight: 800; font-size: 1rem;
  padding: 10px 2px; min-height: 44px; cursor: pointer; }
.tbt-nut { border: 0; border-radius: 999px; padding: 12px 20px; min-height: 52px; font: inherit; font-weight: 800; font-size: 1rem;
  background: var(--oliu); color: #fff; cursor: pointer; box-shadow: 0 2px 0 var(--oliu-dam), 0 8px 18px -10px rgba(70, 82, 31, .7);
  transition: transform .18s cubic-bezier(.34, 1.56, .64, 1); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; }
.tbt-nut small { font-weight: 600; font-size: .8rem; opacity: .9; }
.tbt-nut.phu { background: var(--kem-sau); color: var(--nau); border: 1px solid var(--vien); box-shadow: none; }
.tbt-nut.lon { width: 100%; min-height: 64px; font-size: 1.15rem; margin-top: 14px; }
.tbt-nut:active { transform: scale(.95); }
@media (hover: hover) { .tbt-nut:hover { filter: brightness(1.06); } }
.tbt-hang-nut { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }

/* tổng quan */
.tbt-so { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tbt-so > div { background: var(--kem-sau); border-radius: var(--r-trong); padding: 12px 8px; text-align: center; }
.tbt-so b { display: block; font-size: 1.5rem; color: var(--oliu-dam); }
.tbt-so span { font-size: .85rem; color: var(--nau-nhat); }
/* Bốn chặng — DANH SÁCH như mẫu Zhenyin duyệt 9/10/2026: ô biểu tượng màu bên trái · tên chặng tô màu riêng ·
   dòng phụ · mô tả; % phủ, chữ mẫu, thanh tiến độ và nút học xếp dưới. Mỗi chặng một màu (--c-chu chữ/nét,
   --c-nen ô biểu tượng): ô-liu · vàng nghệ · xanh lam khói · chu sa. Chữ màu đã soát tương phản ≥4,5 trên nền kem. */
.tbt-chang { display: flex; flex-direction: column; }
.tbt-c { --c-chu: #5f6e33; --c-nen: #e9eddb; display: flex; gap: 18px; align-items: flex-start; padding: 18px 12px;
  border-top: 1px solid var(--vien-nhat); border-radius: var(--r-trong); }
.tbt-c:first-child { border-top: 0; }
.tbt-c.c2 { --c-chu: #8a6418; --c-nen: #f6ebcd; }
.tbt-c.c3 { --c-chu: #3b6f80; --c-nen: #deebf0; }
.tbt-c.c4 { --c-chu: #a8452f; --c-nen: #f4e1db; }
.tbt-c.dang { background: var(--oliu-nhat); border-top-color: transparent; }
.tbt-c.dang + .tbt-c { border-top-color: transparent; }
.tbt-c.dang .ic { background: var(--kem-sang); }   /* nền ô-liu nhạt nuốt mất ô biểu tượng cùng tông */
.tbt-c .ic { flex: none; width: 64px; height: 64px; border-radius: 18px; background: var(--c-nen); color: var(--c-chu);
  display: flex; align-items: center; justify-content: center; }
.tbt-c .ic svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tbt-c .than { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tbt-c .ten { font-weight: 900; font-size: 1.3rem; line-height: 1.25; color: var(--c-chu); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tbt-c .nhan { font-size: .78rem; font-weight: 800; color: #fff; background: var(--oliu); border-radius: 999px; padding: 3px 10px; }
.tbt-c .phu { font-size: .95rem; color: var(--nau-nhat); }
.tbt-c .mo { font-size: 1rem; color: var(--nau); line-height: 1.5; }
.tbt-c .dong-mau { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 2px; }
.tbt-c .mau { font-family: var(--khai); font-size: 1.3rem; letter-spacing: 3px; color: var(--do-chu); word-break: break-all; }
.tbt-c .pt { font-size: .85rem; font-weight: 800; color: var(--c-chu); background: var(--c-nen); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.tbt-c .dong-hoc { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 4px; }
.tbt-c .tien { flex: 1 1 180px; min-width: 0; }
.tbt-c .da { font-size: .85rem; color: var(--nau-nhat); margin-top: 5px; }
.tbt-c .dong-hoc .tbt-nut { flex: none; min-width: 168px; }
.tbt-c .thanh, .tbt-thanh { height: 10px; border-radius: 99px; background: var(--kem-sau); overflow: hidden; }
.tbt-c .thanh i { display: block; height: 100%; background: var(--c-chu); border-radius: 99px; }
@media (max-width: 520px) {
  .tbt-c { gap: 12px; padding: 16px 6px; }
  .tbt-c .ic { width: 48px; height: 48px; border-radius: 14px; }
  .tbt-c .ic svg { width: 24px; height: 24px; }
  .tbt-c .ten { font-size: 1.15rem; }
  .tbt-c .dong-hoc .tbt-nut { flex: 1 1 100%; }
}
.tbt-goc { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.tbt-o { border: 1px solid var(--vien); border-radius: 20px; background: linear-gradient(180deg, var(--kem-sang), var(--kem-sau));
  min-height: 108px; padding: 12px 8px; cursor: pointer; font: inherit; color: var(--nau); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; transition: transform .18s cubic-bezier(.34, 1.56, .64, 1); }
.tbt-o .ic { font-size: 1.9rem; } .tbt-o b { font-size: 1rem; } .tbt-o small { color: var(--nau-nhat); font-size: .82rem; }
.tbt-o:active { transform: scale(.95); }
.tbt-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.tbt-chip { border: 1px solid var(--vien); background: var(--kem-sang); border-radius: 999px; padding: 10px 18px; min-height: 48px;
  font: inherit; font-weight: 800; color: var(--nau); cursor: pointer; }
.tbt-chip.on { background: var(--oliu-nhat); border-color: var(--oliu); color: var(--oliu-dam); }

/* lật thẻ */
.tbt-hoc { max-width: 580px; margin: 0 auto; }
.tbt-luot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 2px 2px 10px; color: var(--nau-nhat); font-size: .92rem; }
.tbt-luot b { color: var(--nau); }
.tbt-hoc .san { perspective: 1400px; }
.tbt-hoc .lat { position: relative; min-height: 300px; min-height: max(300px, min(440px, calc(100vh - 360px)));
  min-height: max(300px, min(440px, calc(100dvh - 360px))); transition: transform .55s cubic-bezier(.3, 1.3, .5, 1);
  transform-style: preserve-3d; cursor: pointer; outline: none; }
.tbt-hoc .lat.ngua { transform: rotateY(180deg); }
@media (prefers-reduced-motion: reduce) { .tbt-hoc .lat { transition: none; } }
.tbt-hoc .mat { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 26px;
  background: var(--kem-sang); border: 1px solid var(--vien); box-shadow: var(--bong-nang); padding: 18px; display: flex; flex-direction: column; overflow: hidden; }
.tbt-hoc .mat.sau { transform: rotateY(180deg); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.tbt-hoc .goc { display: flex; justify-content: space-between; gap: 8px; font-size: .84rem; font-weight: 800; color: var(--nau-nhat); }
.tbt-hoc .goc .hang { border-radius: 999px; padding: 2px 10px; background: var(--kem-sau); }
.tbt-hoc .goc .hang.t1 { background: #a8452f; color: #fffdf6; }
.tbt-hoc .goc .hang.t2 { background: var(--vang); color: #2b2a26; }
.tbt-hoc .to { font-family: var(--khai); font-size: clamp(6rem, min(30vw, 22vh), 10.5rem); line-height: 1.1; color: var(--do-chu); text-align: center; margin: auto 0 0; }
.tbt-hoc .bien { text-align: center; font-family: var(--khai); font-size: 1.7rem; color: var(--nau-nhat); min-height: 2.2rem; letter-spacing: 6px; }
.tbt-hoc .goi { text-align: center; color: var(--nau-nhat); font-size: .92rem; margin: auto 0 0; }
.tbt-hoc .dau-sau { display: flex; gap: 14px; align-items: center; }
.tbt-hoc .dau-sau .chu { font-family: var(--khai); font-size: 4.2rem; color: var(--do-chu); line-height: 1; }
.tbt-hoc .dau-sau .ten { font-size: 1.9rem; font-weight: 900; color: var(--nau); }
.tbt-hoc .dau-sau .py { color: var(--nau-nhat); }
.tbt-hoc .loa { margin-left: auto; border: 0; background: var(--kem-sau); border-radius: 999px; width: 50px; height: 50px; font-size: 1.25rem; cursor: pointer; flex: 0 0 auto; }
.tbt-hoc .nghia { font-size: 1.12rem; margin: 10px 0 4px; } .tbt-hoc .nghia b { color: var(--oliu-dam); }
.tbt-hoc .bien-o { background: var(--vang-nhat); border-radius: 14px; padding: 9px 12px; font-size: .95rem; line-height: 1.55; margin: 6px 0; }
.tbt-hoc .bien-o .chu { font-family: var(--khai); font-size: 1.45rem; color: var(--do-chu); }
.tbt-hoc .nhan { font-weight: 800; font-size: .9rem; margin-top: 8px; }
.tbt-hoc .vd { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin: 8px 0; }
.tbt-hoc .vd .o { background: var(--kem-sau); border: 0; border-radius: 14px; padding: 7px 4px; text-align: center; font: inherit; color: var(--nau); }
.tbt-hoc .vd button.o { cursor: pointer; box-shadow: inset 0 0 0 1px var(--vien); }
.tbt-hoc .vd .chu { font-family: var(--khai); font-size: 1.95rem; display: block; line-height: 1.2; }
.tbt-hoc .vd .hv { font-weight: 800; font-size: .86rem; text-transform: capitalize; display: block; }
.tbt-hoc .vd .ng { font-size: .76rem; color: var(--nau-nhat); display: block; }
.tbt-hoc .nho { margin-top: 6px; }
.tbt-hoc .nho label { font-weight: 800; font-size: .9rem; display: block; margin-bottom: 4px; }
.tbt-hoc .nho textarea { width: 100%; box-sizing: border-box; min-height: 54px; border-radius: 14px; border: 1px solid var(--vien);
  background: var(--kem); color: var(--nau); padding: 9px 11px; font: inherit; font-size: 1rem; resize: vertical; }
.tbt-hoc .bon { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.tbt-hoc .bon.an { visibility: hidden; }
.tbt-hoc .bon button { border: 0; border-radius: 18px; min-height: 64px; font: inherit; font-weight: 900; font-size: 1.02rem; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: transform .18s cubic-bezier(.34, 1.56, .64, 1); }
.tbt-hoc .bon button small { font-weight: 700; font-size: .76rem; opacity: .85; }
.tbt-hoc .bon button:active { transform: scale(.94); }
.tbt-hoc .b0 { background: #f7e3dd; color: #a8452f; } .tbt-hoc .b1 { background: var(--vang-nhat); color: #8a6416; }
.tbt-hoc .b2 { background: var(--oliu-nhat); color: var(--oliu-dam); } .tbt-hoc .b3 { background: #e4eff5; color: #2f6a8a; }
.tbt-goiy { text-align: center; color: var(--nau-nhat); font-size: .84rem; margin-top: 10px; }
@media (hover: none) { .tbt-goiy { display: none; } }
.tbt-xong { text-align: center; padding: 30px 10px; background: var(--kem-sang); border: 1px solid var(--vien); border-radius: var(--r-the); }
.tbt-xong .han { font-family: var(--khai); font-size: 4rem; color: var(--oliu); }

/* săn bộ */
.tbt-san .hoi { text-align: center; }
.tbt-san .hoi .chu { font-family: var(--khai); font-size: 7rem; color: var(--nau); line-height: 1.15; display: block; }
/* có tranh gốc (gộp từ Nhìn hình nhớ chữ 15/10/2026): tranh trái · chữ phải, vẫn gọn một màn điện thoại */
.tbt-san .hoi.co-tranh { display: flex; align-items: center; justify-content: center; gap: 18px; }
.tbt-san .hoi .tranh { width: min(168px, 38vw); aspect-ratio: 1; object-fit: cover; border-radius: 18px; border: 1px solid var(--vien);
  background: var(--kem-sang); box-shadow: var(--bong); -webkit-user-drag: none; user-select: none; }
.tbt-san .hoi.co-tranh .chu { font-size: 5.6rem; }
.tbt-san .chon4 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 540px; margin: 10px auto 0; }
.tbt-san .chon4 button { border: 1.5px solid var(--vien); background: var(--kem-sang); border-radius: 20px; min-height: 84px; cursor: pointer;
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-align: left; font: inherit; color: var(--nau);
  transition: transform .18s cubic-bezier(.34, 1.56, .64, 1); }
.tbt-san .chon4 .chu { font-family: var(--khai); font-size: 2.4rem; color: var(--do-chu); width: 52px; text-align: center; flex: 0 0 auto; }
.tbt-san .chon4 b { display: block; font-size: 1.05rem; } .tbt-san .chon4 small { color: var(--nau-nhat); }
.tbt-san .chon4 button.dung { border-color: var(--oliu); background: var(--oliu-nhat); }
.tbt-san .chon4 button.sai { border-color: #a8452f; background: #f7e3dd; }
.tbt-san .chon4 button:active { transform: scale(.96); }
.tbt-giai { max-width: 540px; margin: 12px auto 0; padding: 12px 14px; border-radius: 16px; line-height: 1.6; display: none; }
.tbt-giai.on { display: block; } .tbt-giai.d { background: var(--oliu-nhat); } .tbt-giai.s { background: #f7e3dd; }

/* nối dạng biến */
.tbt-noi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 560px; margin: 12px auto 0; }
.tbt-noi .cot { display: flex; flex-direction: column; gap: 9px; }
.tbt-noi button { border: 1.5px solid var(--vien); background: var(--kem-sang); border-radius: 18px; min-height: 60px; cursor: pointer; font: inherit;
  color: var(--nau); display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 8px;
  transition: transform .18s cubic-bezier(.34, 1.56, .64, 1), opacity .3s; }
.tbt-noi .chu { font-family: var(--khai); font-size: 2rem; color: var(--do-chu); }
.tbt-noi button.chon { border-color: #2f6a8a; background: #e4eff5; }
.tbt-noi button.xong { opacity: .28; pointer-events: none; border-color: var(--oliu); }
.tbt-noi button.lac { animation: tbt-lac .35s; }
@keyframes tbt-lac { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* phương pháp */
/* Vì sao học thế này — 4 giai đoạn (Nhận diện · Khám phá · Ghi nhớ · Ôn tập), cùng dáng danh sách với 4 chặng nhưng ô
   biểu tượng TÔ ĐẶC như mẫu Zhenyin duyệt. Nét trên nền vàng/lam nhạt dùng màu chữ đậm, trên ô-liu/chu sa dùng trắng. */
.tbt-gd { display: flex; flex-direction: column; }
.tbt-gd .hang { --g-nen: #5f6e33; --g-net: #fff; display: flex; gap: 18px; align-items: flex-start; padding: 18px 4px;
  border-top: 1px solid var(--vien-nhat); }
.tbt-gd .hang:first-child { border-top: 0; }
.tbt-gd .g2 { --g-nen: #dba32c; --g-net: #2b2a26; }
.tbt-gd .g3 { --g-nen: #a8452f; }
.tbt-gd .g4 { --g-nen: #93bccd; --g-net: #1f3a45; }
.tbt-gd .ic { flex: none; width: 60px; height: 60px; border-radius: 16px; background: var(--g-nen); color: var(--g-net);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px -10px rgba(60, 45, 20, .6); }
.tbt-gd .ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tbt-gd .than { flex: 1; min-width: 0; }
.tbt-gd .ten { font-weight: 900; font-size: 1.25rem; letter-spacing: .02em; text-transform: uppercase; color: var(--nau); }
.tbt-gd .phu { color: var(--nau-nhat); margin-top: 2px; }
.tbt-gd .ds { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-top: 12px; }
.tbt-gd .muc { background: var(--kem-sau); border-radius: var(--r-trong); padding: 12px 14px; }
.tbt-gd .muc b { color: var(--nau); }
.tbt-gd .muc p { margin: 6px 0 0; line-height: 1.6; color: var(--nau); font-size: .95rem; }
@media (max-width: 520px) {
  /* Điện thoại: tên + dòng phụ đứng cạnh ô biểu tượng, danh sách nguyên tắc tràn hết bề ngang bên dưới. */
  .tbt-gd .hang { display: grid; grid-template-columns: 48px 1fr; gap: 2px 12px; align-items: center; }
  .tbt-gd .than { display: contents; }
  .tbt-gd .ic { grid-row: 1 / span 2; }
  .tbt-gd .ds { grid-column: 1 / -1; }
  .tbt-gd .ic { width: 48px; height: 48px; border-radius: 14px; }
  .tbt-gd .ic svg { width: 24px; height: 24px; }
  .tbt-gd .ten { font-size: 1.1rem; }
  .tbt-gd .ds { grid-template-columns: 1fr; }
}

/* nút 🃏 cạnh 🖨️ trong màn 🧱 Bộ thủ (214) */
.the-dau .them .kh-nut-the-bo { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  background: #a8452f; color: #fff; font-weight: 700; font-size: .92rem; border: 0; font-family: inherit; cursor: pointer; margin-right: 8px;
  transition: transform .12s ease; }
.the-dau .them .kh-nut-the-bo:active { transform: scale(.96); }
@media (hover: hover) { .the-dau .them .kh-nut-the-bo:hover { filter: brightness(1.08); } }

/* ═════════ 🎯 "CÁC PHƯƠNG PHÁP HỌC 214 BỘ THỦ" — tổng quan Thẻ bộ thủ (Zhenyin duyệt mẫu 9/10/2026) ═════════
   Tiền tố .pp- (chỉ ở tệp này). Năm màu nhấn theo bảng màu của mẫu: --pp-ol ô-liu · --pp-va mù tạt · --pp-la xanh
   sương · --pp-do đỏ son · --pp-ti tím nhạt. Mỗi màu có ba mức: -nen (nền ô nhạt) · -chu (chữ/nét trên nền kem) ·
   -nut (nền nút) + -tren (chữ trên nút). Đã soát tương phản: chữ nút ≥4,8 · chữ màu trên kem ≥4,5. */
.pp {
  --pp-ol-nen: #e6eddc; --pp-ol-chu: #4f6a37; --pp-ol-nut: #56743f; --pp-ol-tren: #fff;
  --pp-va-nen: #f8ebcb; --pp-va-chu: #8a6418; --pp-va-nut: #e0a526; --pp-va-tren: #2b2a26;
  --pp-la-nen: #dfecf2; --pp-la-chu: #33687f; --pp-la-nut: #3f7894; --pp-la-tren: #fff;
  --pp-do-nen: #f8dfe0; --pp-do-chu: #b0122a; --pp-do-nut: #c8102e; --pp-do-tren: #fff;
  --pp-ti-nen: #ebe5f5; --pp-ti-chu: #6a529b; --pp-ti-nut: #7a62ad; --pp-ti-tren: #fff;
  --pp-serif: Georgia, "Times New Roman", "Noto Serif", serif;
  color: var(--nau);
}
.pp .han { font-family: var(--khai); }
.pp-the.m-ol, .pp-ct.m-ol { --m-nen: var(--pp-ol-nen); --m-chu: var(--pp-ol-chu); --m-nut: #4f5e2a; --m-tren: #fff; }
.pp-the.m-ol2, .pp-ct.m-ol2 { --m-nen: var(--pp-ol-nen); --m-chu: var(--pp-ol-chu); --m-nut: var(--pp-ol-nut); --m-tren: var(--pp-ol-tren); }
.pp-the.m-va, .pp-ct.m-va { --m-nen: var(--pp-va-nen); --m-chu: var(--pp-va-chu); --m-nut: var(--pp-va-nut); --m-tren: var(--pp-va-tren); }
.pp-the.m-la, .pp-ct.m-la { --m-nen: var(--pp-la-nen); --m-chu: var(--pp-la-chu); --m-nut: var(--pp-la-nut); --m-tren: var(--pp-la-tren); }
.pp-the.m-do, .pp-ct.m-do { --m-nen: var(--pp-do-nen); --m-chu: var(--pp-do-chu); --m-nut: var(--pp-do-nut); --m-tren: var(--pp-do-tren); }
.pp-the.m-ti, .pp-ct.m-ti { --m-nen: var(--pp-ti-nen); --m-chu: var(--pp-ti-chu); --m-nut: var(--pp-ti-nut); --m-tren: var(--pp-ti-tren); }
.pp-ic { display: inline-flex; }
.pp-ic svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* A · bìa */
.pp-bia { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px;
  align-items: center; border-radius: 24px; padding: 26px 26px 24px; margin-bottom: 18px; border: 1px solid var(--vien);
  background: radial-gradient(120% 90% at 85% 10%, #f1ead6 0, transparent 60%), linear-gradient(180deg, #fbf7ec, #f3ead5); box-shadow: var(--bong); }
.pp-bia-chu { display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
.pp-an { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; margin-top: 4px;
  border-radius: 10px; background: #c8102e; color: #fff8ee; font-family: var(--khai); font-size: 1.05rem; line-height: 1.1;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.pp-tieu { font-family: var(--pp-serif); font-weight: 700; font-size: 1.45rem; letter-spacing: .02em; text-transform: uppercase; color: #3a3a3c; }
.pp-lon { margin: 2px 0 8px; font-family: var(--pp-serif); font-weight: 800; font-size: clamp(2.4rem, 5.4vw, 3.6rem); line-height: 1.02;
  letter-spacing: -.01em; text-transform: uppercase; color: #b0122a; }
.pp-mo { margin: 0; font-family: var(--pp-serif); font-size: 1.08rem; line-height: 1.5; color: #4d4639; max-width: 30ch; }
.pp-tinh { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.pp-tinh > span { background: rgba(255, 253, 246, .85); border: 1px solid var(--vien); border-radius: 999px; padding: 6px 12px; font-size: .9rem; color: var(--nau-nhat); }
.pp-tinh b { color: var(--nau); }
.pp-on-nhanh { border: 0; border-radius: 999px; padding: 0 16px; min-height: 44px; font: inherit; font-weight: 800; cursor: pointer;
  background: var(--oliu-nhat); color: var(--oliu-dam); box-shadow: inset 0 0 0 1px rgba(95, 110, 51, .35); }
.pp-bia-hinh { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; min-width: 0; }
.pp-tranh { position: relative; min-height: 210px; border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, #eef0e2 0, #e7e3cf 55%, #ddd3b8 100%); }
.pp-tranh img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.pp-tranh.co-anh { min-height: 0; aspect-ratio: 3 / 2; background: #e7e3cf; }
.pp-tranh.co-anh img { object-position: 50% 40%; }
.pp-may { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 104px; height: 88px; border-radius: 50%;
  background: #fffdf6; box-shadow: 0 10px 24px -14px rgba(60, 45, 20, .55); display: flex; align-items: center; justify-content: center; }
.pp-may .han { font-size: 3.2rem; color: #3a3a3c; line-height: 1; }
.pp-cuon { background: linear-gradient(180deg, #fbf5e4, #f2e6c8); border: 1px solid #e3d4ac; border-radius: 14px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px; box-shadow: 0 8px 18px -14px rgba(60, 45, 20, .6); }
.pp-cuon .dong { display: grid; grid-template-columns: 22px auto; column-gap: 8px; align-items: center; color: #3a3a3c; }
.pp-cuon .pp-ic { grid-row: 1 / span 2; color: #5b4c2c; }
.pp-cuon .han { font-size: 1.15rem; letter-spacing: 3px; line-height: 1.1; }
.pp-cuon .vi { font-size: .74rem; color: var(--nau-nhat); line-height: 1.1; }

/* khối B · C dùng chung */
.pp-khoi { background: var(--kem-sang); border: 1px solid var(--vien); border-radius: 22px; padding: 20px 20px 22px; margin-bottom: 18px; box-shadow: var(--bong); }
.pp-khoi h2 { margin: 0; font-size: 1.15rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: #46521f; }
.pp-khoi h2 + p { margin: 4px 0 0; color: var(--nau-nhat); }
.pp-khoi-dau { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.pp-ghi { background: var(--vang-nhat); border: 1px solid #efe0b6; border-radius: 999px; padding: 8px 14px; font-size: .9rem; color: #5c4a1c; }

/* B · lưới 8 thẻ: 4 cột rộng · 2 cột vừa · 1 cột hẹp */
.pp-luoi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pp-the { display: flex; flex-direction: column; gap: 8px; min-width: 0; border-radius: 18px; padding: 14px 14px 16px;
  background: linear-gradient(180deg, #fffdf8, #fbf6ea); border: 1px solid #efe5cc; }
.pp-the .dau { display: flex; align-items: flex-start; gap: 8px; }
.pp-the .so, .pp-ct .so { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px;
  border-radius: 999px; padding: 0 8px; background: var(--m-nen); color: var(--m-chu); font-weight: 900; }
.pp-hinh { flex: 1; height: 96px; border-radius: 16px; background: var(--m-nen); color: var(--m-chu); display: flex; align-items: center; justify-content: center; }
.pp-hinh .pp-ic svg { width: 46px; height: 46px; stroke-width: 1.6; }
.pp-hinh.co-anh { background: transparent; object-fit: contain; width: 100%; min-width: 0; }
.pp-ct-dau .pp-hinh.lon.co-anh { padding: 8px; }
.pp-the h3 { margin: 4px 0 0; font-size: 1.12rem; font-weight: 900; line-height: 1.3; color: #3a3a3c; }
.pp-the h3 small, .pp-ct h1 small { font-size: .78em; font-weight: 700; color: var(--nau-nhat); }
.pp-nhan { display: inline-block; margin-left: 8px; vertical-align: 2px; font-size: .72rem; font-weight: 800; color: #fff; background: #c8102e; border-radius: 999px; padding: 2px 9px; }
.pp-the .mo { margin: 0; color: #55503f; line-height: 1.55; flex: 1; }
.pp-vd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 40px; }
.pp-vd .nhan { font-size: .85rem; color: var(--nau-nhat); margin-right: 2px; }
.pp-vd .han { font-size: 1.35rem; color: #2f2c25; line-height: 1.1; }
.pp-vd .mui { color: var(--nau-nhat); } .pp-vd .mui.nho { font-size: .72rem; margin: 0 -4px; } .pp-vd .cham { color: var(--vien); }
.pp-vd .hinh { font-size: 1.3rem; color: var(--m-chu); }
.pp-vd .vien { border: 1px solid var(--vien); background: #fffdf6; border-radius: 10px; padding: 3px 8px; font-size: .86rem; white-space: nowrap; }
.pp-vd .vien.on { border-color: var(--m-chu); color: var(--m-chu); font-weight: 800; background: var(--m-nen); }
.pp-vd .o-viet { width: 32px; height: 32px; border: 1px solid #e5d9bb; border-radius: 6px; background: #fffdf6; display: inline-flex;
  align-items: center; justify-content: center; font-size: 1.3rem; color: rgba(47, 44, 37, var(--a)); }
.pp-vd .o-ngay { display: inline-flex; flex-direction: column; align-items: center; border: 1px solid #e5d9bb; border-radius: 8px; background: #fffdf6;
  justify-content: center; padding: 0 4px; min-width: 32px; height: 32px; line-height: 1.1; }
.pp-vd .o-ngay small { font-size: .68rem; color: var(--nau-nhat); } .pp-vd .o-ngay b { font-size: 1rem; }
.pp-xem { margin-top: 4px; border: 0; border-radius: 999px; min-height: 46px; padding: 0 18px; font: inherit; font-weight: 800; cursor: pointer;
  background: var(--m-nut); color: var(--m-tren); box-shadow: 0 2px 0 rgba(0, 0, 0, .12); transition: transform .18s cubic-bezier(.34, 1.4, .64, 1), filter .15s; }
.pp-xem:active, .pp-nut-chinh:active, .pp-nut-phu:active, .pp-chon:active, .pp-bo:active { transform: scale(.965); }
.pp-xem:focus-visible, .pp-nut-chinh:focus-visible, .pp-nut-phu:focus-visible, .pp-chon:focus-visible, .pp-bo:focus-visible,
.pp-on-nhanh:focus-visible, .pp-lien:focus-visible, .pp-cd-ten:focus-visible, .pp-ho-chu:focus-visible { outline: 3px solid #3f7894; outline-offset: 2px; }
@media (hover: hover) {
  .pp-xem:hover, .pp-nut-chinh:hover, .pp-on-nhanh:hover { filter: brightness(1.07); transform: translateY(-1px); }
  .pp-the:hover { border-color: #e4d5ad; }
  .pp-nut-phu:hover, .pp-chon:hover, .pp-bo:hover, .pp-ho-chu:hover { background: #fffaf0; }
}

/* C · mỗi ngày bao nhiêu bộ */
.pp-ngay { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px 22px; align-items: start; }
.pp-muc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.pp-chon { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-height: 128px;
  border: 1.5px solid var(--vien); background: #fffdf8; border-radius: 16px; padding: 14px 10px; font: inherit; color: var(--nau); cursor: pointer;
  transition: transform .18s cubic-bezier(.34, 1.4, .64, 1); }
.pp-chon .tron { position: absolute; left: 12px; top: 12px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cdbf9c; background: #fff; }
.pp-chon.on { border: 2px solid #56743f; background: #f1f5e8; }
.pp-chon.on .tron { border-color: #56743f; background: #56743f; }
.pp-chon.on .tron::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.pp-chon b { font-size: 1.08rem; margin-top: 4px; }
.pp-chon .tuan { background: var(--pp-ol-nen); color: #3f5a28; border-radius: 999px; padding: 2px 10px; font-size: .82rem; font-weight: 800; }
.pp-chon .mo { font-size: .86rem; color: var(--nau-nhat); line-height: 1.45; }
.pp-chon[disabled] { cursor: progress; opacity: .7; }
.pp-loi { color: #b0122a; font-size: .9rem; margin-top: 8px; min-height: 1px; }
.pp-ngay .phai { display: flex; flex-direction: column; gap: 10px; }
.pp-goi-y { display: flex; gap: 10px; background: #edf3e4; border: 1px solid #d8e4c6; border-radius: 16px; padding: 12px 14px; font-size: .92rem; line-height: 1.55; color: #3d4a2a; }
.pp-goi-y .mam { font-size: 1.3rem; line-height: 1.2; }
.pp-goi-y .phu { color: #5d6a48; font-size: .86rem; margin-top: 4px; }
.pp-nut-chinh, .pp-nut-phu { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; min-height: 54px;
  border-radius: 999px; padding: 8px 20px; font: inherit; font-weight: 800; font-size: 1.02rem; cursor: pointer;
  transition: transform .18s cubic-bezier(.34, 1.4, .64, 1), filter .15s; }
.pp-nut-chinh { border: 0; background: #56743f; color: #fff; box-shadow: 0 3px 0 #3f5a28, 0 10px 20px -12px rgba(63, 90, 40, .8); }
.pp-nut-chinh small { flex-basis: 100%; font-weight: 600; font-size: .8rem; opacity: .92; }
.pp-nut-phu { border: 1px solid var(--vien); background: #fffdf8; color: var(--nau); }
.pp-lien { align-self: center; border: 0; background: none; font: inherit; color: var(--oliu); font-weight: 700; text-decoration: underline;
  text-underline-offset: 3px; min-height: 44px; cursor: pointer; }

/* màn chi tiết một phương pháp */
.pp-ct > .the { margin-bottom: 14px; }
.pp-ct-dau { display: flex; gap: 18px; align-items: center; background: var(--m-nen); border-radius: 22px; padding: 18px; margin-bottom: 14px; }
.pp-ct-dau .pp-hinh.lon { flex: none; width: 128px; height: 128px; background: rgba(255, 253, 246, .7); }
.pp-ct-dau .pp-hinh.lon .pp-ic svg { width: 64px; height: 64px; }
.pp-ct-dau .so { height: auto; padding: 4px 12px; background: rgba(255, 253, 246, .8); font-size: .82rem; }
.pp-ct h1 { margin: 8px 0 4px; font-size: 1.6rem; font-weight: 900; color: #3a3a3c; letter-spacing: -.01em; }
.pp-ct-dau p { margin: 0; color: #4d4639; line-height: 1.55; }
.pp-giai p { margin: 0 0 10px; line-height: 1.7; font-size: 1.02rem; } .pp-giai p:last-child { margin-bottom: 0; }
.pp-buoc { margin: 0; padding-left: 22px; line-height: 1.7; font-size: 1.02rem; } .pp-buoc li + li { margin-top: 6px; }
.pp-di { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 14px; }
.pp-dong { margin: 0 0 12px; font-size: 1.02rem; line-height: 1.6; }
.pp-bo-ds { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-bo { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 6px 12px; border: 1px solid var(--vien); border-radius: 14px;
  background: #fffdf8; font: inherit; color: var(--nau); cursor: pointer; transition: transform .18s cubic-bezier(.34, 1.4, .64, 1); }
.pp-bo .han { font-size: 1.5rem; color: var(--do-chu); line-height: 1; }
.pp-bo .ten { font-weight: 800; } .pp-bo .phu { font-size: .82rem; color: var(--nau-nhat); }
.pp-bo.on { border: 2px solid var(--m-chu); background: var(--m-nen); }
.pp-bo-ds.lon { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pp-bo-ds.lon .pp-bo { flex-wrap: wrap; }
.pp-cd { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.pp-cd .nhom { background: var(--kem-sau); border-radius: 16px; padding: 12px; }
.pp-cd-ten { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 8px; border: 0; background: none; padding: 4px 2px 10px;
  font: inherit; font-weight: 900; color: var(--nau); text-align: left; cursor: pointer; min-height: 44px; }
.pp-cd-ten .dem { font-weight: 700; font-size: .8rem; color: var(--nau-nhat); white-space: nowrap; }
.pp-ho { display: flex; gap: 14px; align-items: flex-start; margin: 14px 0 12px; flex-wrap: wrap; }
.pp-ho .goc { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 50%;
  background: var(--pp-ol-nen); color: #3f5a28; font-weight: 800; }
.pp-ho .goc .han { font-size: 2.6rem; line-height: 1; color: #2f4a1c; }
.pp-ho .con { flex: 1; min-width: 220px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pp-ho-chu { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; text-align: left; min-height: 56px; padding: 8px 10px;
  border: 1px solid var(--vien); border-radius: 14px; background: #fffdf8; font: inherit; color: var(--nau); cursor: pointer; }
.pp-ho-chu .han { grid-row: 1 / span 2; font-size: 1.8rem; color: var(--do-chu); line-height: 1; }
.pp-ho-chu .ten { font-weight: 800; text-transform: capitalize; } .pp-ho-chu .phu { font-size: .8rem; color: var(--nau-nhat); line-height: 1.35; }

@media (prefers-reduced-motion: reduce) {
  .pp-xem, .pp-nut-chinh, .pp-nut-phu, .pp-chon, .pp-bo { transition: none; }
}
@media (max-width: 1100px) { .pp-luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .pp-bia { grid-template-columns: 1fr; padding: 20px 18px; }
  .pp-ngay { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pp-luoi { grid-template-columns: 1fr; gap: 10px; }
  /* thẻ nằm ngang: số + ô hình nhỏ bên trái, chữ bên phải, nút trải hết bề ngang — 8 thẻ không dài cả trang */
  .pp-the { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; row-gap: 6px; padding: 12px; }
  .pp-the .dau { grid-row: 1 / span 3; flex-direction: column; align-items: center; gap: 6px; }
  .pp-the .pp-hinh { flex: none; width: 64px; height: 64px; border-radius: 14px; }
  .pp-the .pp-hinh .pp-ic svg { width: 30px; height: 30px; }
  .pp-the .so { min-width: 30px; height: 30px; font-size: .82rem; }
  .pp-the h3 { margin: 0; font-size: 1.05rem; }
  .pp-the .pp-xem { grid-column: 1 / -1; }
  .pp-bia-hinh { grid-template-columns: 1fr; }
  .pp-bia { gap: 12px; padding: 16px 14px; }
  .pp-bia-chu { gap: 10px; }
  .pp-tieu { font-size: 1.1rem; }
  .pp-mo { font-size: 1rem; }
  .pp-tinh { margin-top: 12px; gap: 6px; }
  .pp-tinh > span { padding: 5px 10px; font-size: .84rem; }
  .pp-tranh { min-height: 132px; }
  .pp-tranh.co-anh { min-height: 0; }
  .pp-may { width: 84px; height: 70px; } .pp-may .han { font-size: 2.5rem; }
  .pp-cuon { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 10px 6px; }
  .pp-cuon .han { font-size: 1rem; letter-spacing: 1px; }
  .pp-cuon .vi { font-size: .66rem; }
  .pp-cuon .dong { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .pp-cuon .pp-ic { grid-row: auto; }
  .pp-muc { grid-template-columns: 1fr; }
  .pp-chon { min-height: 0; display: grid; grid-template-columns: 30px 1fr auto; text-align: left; align-items: center; gap: 2px 10px; padding: 12px; }
  .pp-chon .tron { position: static; grid-row: 1 / span 2; }
  .pp-chon b { margin: 0; } .pp-chon .tuan { justify-self: end; } .pp-chon .mo { grid-column: 2 / -1; }
  .pp-ct-dau { flex-direction: column; align-items: flex-start; }
  .pp-ct-dau .pp-hinh.lon { width: 96px; height: 96px; }
  .pp-khoi { padding: 16px 14px 18px; }
}

/* 🔊/🔇 công tắc âm thanh (bìa tổng quan + đầu lượt lật thẻ) — khoá chung `tnhn_sfx_off` */
.tbt-am { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--vien); background: #fffdf8;
  font-size: 1.1rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.tbt-am[aria-pressed="true"] { opacity: .7; }
.tbt-am:active { transform: scale(.94); }
.tbt-am:focus-visible { outline: 3px solid #3f7894; outline-offset: 2px; }
.tbt-luot .phai { display: inline-flex; align-items: center; gap: 10px; }

/* ═══════════ 🎯 LUYỆN 5 CHIỀU (15/10/2026) — kho/kho-bo-thu-luyen.js, tiền tố .tbl-. Đề án: docs/de-an-the-bo-thu-214-thuong-mai.md
   Màu bộ trong chữ = chu sa #a8452f (màu nhấn của dự án), nét còn lại = mực --nau. Nút ≥ 52px, :hover bọc @media (hover). */
.tbl-svg { display: block; width: 100%; height: 100%; }
.tbl-svg path { fill: var(--nau); }
.tbl-svg path.bo { fill: #a8452f; }
.tbl-to { display: inline-flex !important; align-items: center; justify-content: center; }
.tbl-to .tbl-svg { width: 1.15em; height: 1.15em; }
.tbl-mien { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; background: var(--vang-nhat);
  border: 1px solid var(--vien-vang); border-radius: var(--r-trong); padding: 12px 14px; margin: 12px 0; font-weight: 600; color: var(--nau); }

/* khối trên màn tổng quan + phòng luyện */
.tbl-khoi .pp-nut-phu { margin-top: 12px; }
/* 📅 Hôm nay nên luyện + bản đồ kỹ năng (veHomNay) — thay hàng 6 ô đếm cũ: con số phải CHỈ ĐƯỜNG, không chỉ đếm */
.tbl-hn { margin: 4px 0 14px; display: flex; flex-direction: column; gap: 12px; }
.tbl-hn-dau { display: grid; grid-template-columns: minmax(150px, 1fr) 3fr; gap: 12px; }
.tbl-hn-dau .tong { background: var(--oliu-nhat); border-radius: var(--r-trong); padding: 14px 10px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.tbl-hn-dau .tong b { font-size: 2.1rem; color: var(--oliu-dam); line-height: 1.1; }
.tbl-hn-dau .tong span { font-size: .9rem; color: var(--nau-nhat); }
.tbl-hn-dau .viec { background: var(--kem-sau); border-radius: var(--r-trong); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.tbl-hn .nhan { font-weight: 800; font-size: 1rem; }
.tbl-hn .ba { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tbl-hn .ba .o { background: var(--kem-sang); border-radius: 14px; padding: 8px 6px; text-align: center; }
.tbl-hn .ba .o b { display: block; font-size: 1.6rem; line-height: 1.15; color: var(--oliu-dam); }
.tbl-hn .ba .o.sai b { color: #a8452f; }
.tbl-hn .ba .o span { font-size: .84rem; color: var(--nau-nhat); line-height: 1.25; display: block; }
.tbl-hn .viec p { margin: 0; font-size: .95rem; }
.tbl-hn-nut { align-self: flex-start; font-size: 1.05rem; padding: 12px 22px; }
.tbl-ky { background: var(--kem-sau); border-radius: var(--r-trong); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.tbl-ky .dong { display: grid; grid-template-columns: 92px 1fr 56px; align-items: center; gap: 10px; font-size: .95rem; }
.tbl-ky .ten { font-weight: 700; }
.tbl-ky .vach { height: 12px; border-radius: 99px; background: var(--kem-sang); overflow: hidden; }
.tbl-ky .vach i { display: block; height: 100%; background: var(--oliu); border-radius: 99px; }
.tbl-ky .so { text-align: right; color: var(--nau-nhat); font-weight: 700; font-variant-numeric: tabular-nums; }
.tbl-goi-y { border: 1px dashed var(--vien); border-radius: var(--r-trong); padding: 12px 14px; line-height: 1.5; }
.tbl-goi-y .tbt-hang-nut { margin-top: 8px; justify-content: flex-start; }
.tbl-hn-loi { margin-top: 0 !important; align-self: flex-start; }
@media (max-width: 640px) {
  .tbl-hn-dau { grid-template-columns: 1fr; }
  .tbl-hn-nut { align-self: stretch; }
  .tbl-ky .dong { grid-template-columns: 78px 1fr 48px; }
}
/* 📒 Sổ lỗi sai (veSoLoi) */
.tbl-soloi-dau { padding: 18px; } .tbl-soloi-dau h2 { margin: 0 0 6px; } .tbl-soloi-dau p { margin: 0 0 12px; line-height: 1.5; }
.tbl-soloi { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.tbl-soloi .dong { display: flex; align-items: center; gap: 14px; padding: 12px 14px; flex-wrap: wrap; }
.tbl-soloi .bo { width: 64px; height: 64px; flex: none; border: 0; border-radius: 16px; background: var(--kem-sau); color: var(--nau); font-size: 2.4rem; cursor: pointer; }
.tbl-soloi .giua { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; }
.tbl-soloi .chip { display: flex; flex-wrap: wrap; gap: 6px; }
.tbl-soloi .chip span { border-radius: 999px; padding: 4px 11px; font-size: .86rem; font-weight: 700; }
.tbl-soloi .chip .chua { background: #f4e1db; color: #8a3524; }
.tbl-soloi .chip .sua { background: var(--oliu-nhat); color: var(--oliu-dam); }
/* 🔗 Liên thông Kho chữ trong hồ sơ bộ */
.tbl-lien { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--vien); }
.tbl-lien .tbt-hang-nut { justify-content: flex-start; flex-wrap: wrap; }
/* 🔍 Ô tìm + xếp theo số nét trong thẻ «📋 214 bộ thủ» (veBang214 — Zhenyin duyệt demo /demo-tim-bo-thu.html 15/10/2026) */
.tbl-tim-o { position: relative; min-width: min(340px, 100%); flex: 1; max-width: 420px; }
.the-dau .them.tbl-tim-them { flex: 1; display: flex; justify-content: flex-end; }
.tbl-tim-o input { width: 100%; font: inherit; font-size: 1rem; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--nau);
  border: 1.5px solid var(--vien); background: #fff; border-radius: 999px; padding: 10px 40px 10px 40px; outline: none; }
.tbl-tim-o input:focus { border-color: var(--oliu); box-shadow: 0 0 0 3px var(--oliu-nhat); }
.tbl-tim-o .kinh { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 1rem; pointer-events: none; }
.tbl-tim-o .xoa { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: var(--kem-sau); color: var(--nau); font-size: .9rem; cursor: pointer; }
.tbl-tim-o .xoa[hidden] { display: none; }
.tbl-xep { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.tbl-xep .nhan { font-weight: 800; font-size: .92rem; margin-right: 2px; }
.tbl-vien { display: inline-flex; background: var(--kem-sau); border-radius: 999px; padding: 3px; }
.tbl-vien button { border: 0; background: transparent; font: inherit; font-weight: 700; font-size: .92rem; color: var(--nau-nhat); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.tbl-vien button.on { background: var(--kem-sang); color: var(--oliu-dam); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
/* 18 nút (Tất cả + 1→17 nét) xếp LƯỚI 2 hàng × 9 — Zhenyin chốt: không thanh kéo ngang. Điện thoại hẹp: 6 cột × 3 hàng. */
.tbl-net-chip { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; margin: 0 0 12px; }
.tbl-net-chip[hidden] { display: none; }
.tbl-net-chip button { min-width: 0; border: 1px solid var(--vien); background: var(--kem-sang); font: inherit; font-size: .9rem; font-weight: 700; color: var(--nau);
  border-radius: 999px; padding: 6px 4px; cursor: pointer; white-space: nowrap; text-align: center; }
.tbl-net-chip button small { color: var(--nau-nhat); font-weight: 600; margin-left: 3px; }
.tbl-net-chip button.on { background: var(--oliu); border-color: var(--oliu); color: #fff; }
.tbl-net-chip button.on small { color: rgba(255,255,255,.8); }
.tbl-nhom-net { margin-top: 14px; }
.tbl-nhom-net:first-child { margin-top: 0; }
.tbl-nhom-net h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; font-size: 1rem; color: var(--oliu-dam); }
.tbl-nhom-net h3 .so { font-size: 1.5rem; font-weight: 900; line-height: 1; }
.tbl-nhom-net h3 small { color: var(--nau-nhat); font-weight: 600; font-size: .86rem; }
.tbl-tim-kq { font-weight: 700; margin: 0 0 10px; color: var(--nau-nhat); }
.tbl-o .so-net { font-size: .7rem; color: var(--nau-nhat); font-weight: 600; }
.tbl-o mark { background: #f6e3a4; color: inherit; border-radius: 3px; padding: 0 1px; }
.tbl-tim-rong { text-align: center; padding: 22px 10px; color: var(--nau-nhat); line-height: 1.6; }
.tbl-tim-rong b { color: var(--nau); }
.tbl-tim-rong .goi-y { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.tbl-tim-rong .goi-y button { border: 1px solid var(--vien); background: var(--kem-sang); border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 700; cursor: pointer; color: var(--nau); }
@media (max-width: 760px) {
  .tbl-net-chip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tbl-net-chip button { display: flex; flex-direction: column; align-items: center; line-height: 1.15; padding: 5px 2px; border-radius: 14px; }
  .tbl-net-chip button small { margin-left: 0; font-size: .74rem; }
}
@media (max-width: 640px) {
  .the-dau .them.tbl-tim-them { flex-basis: 100%; margin-left: 0; }
  .tbl-tim-o { max-width: none; min-width: 0; }
}

/* 🎯 10 thẻ «Chọn cách luyện» — mockup 3D Zhenyin 20/10/2026: thẻ kem nổi nhiều lớp bóng · số 01–10 · tranh 3D góc phải trên ·
   nút viên thuốc gradient 4 màu (lam · son · la · vang). Cột tính theo bề ngang KHỐI (@container), không theo màn — kho có
   cột trái nên màn 1280px mà khối chỉ ~950px. Cả thẻ là MỘT <button> (bấm đâu cũng vào, phím Tab/Enter dùng được);
   «Xem chi tiết» chỉ là phần trang trí bên trong. Tranh nằm vùng trên, chữ + nút vùng dưới — tranh không bao giờ đè chữ. */
.tbl-tro-vo { container-type: inline-size; position: relative; }
.tbl-tro-vo.co-nen::before { content: ""; position: absolute; inset: auto -20px -10px -20px; height: 46%; pointer-events: none; z-index: 0;
  background: var(--nen-son-thuy) right bottom / contain no-repeat; opacity: .32; }
.tbl-tro-luoi { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
@container (max-width: 900px) { .tbl-tro-luoi { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (max-width: 620px) { .tbl-tro-luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

.tbl-tro { --n1: #4a93c2; --n2: #23628f; --n-bong: 35, 98, 143; --so-nen: #e2eef6; --so-chu: #2b6a93;
  position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-height: 268px; min-width: 0;
  padding: 16px 16px 16px; border-radius: 24px; text-align: left; font: inherit; color: #2e2618; cursor: pointer; overflow: hidden;
  border: 1px solid #eadbb4; background: linear-gradient(170deg, #fffefa 0%, #fffaf0 55%, #fbf2df 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(214, 190, 140, .18), 0 1px 2px rgba(92, 70, 28, .07),
    0 6px 14px -4px rgba(92, 70, 28, .12), 0 18px 34px -16px rgba(92, 70, 28, .26);
  transition: transform .22s cubic-bezier(.34, 1.4, .64, 1), box-shadow .22s ease, border-color .22s ease; -webkit-tap-highlight-color: transparent; }
.tbl-tro.n-son { --n1: #d4603f; --n2: #a33a24; --n-bong: 163, 58, 36; --so-nen: #f8e3dc; --so-chu: #b2402b; }
.tbl-tro.n-la { --n1: #66a24f; --n2: #3e7631; --n-bong: 62, 118, 49; --so-nen: #e3f0dc; --so-chu: #3f7a35; }
.tbl-tro.n-vang { --n1: #c99a2e; --n2: #94680f; --n-bong: 148, 104, 15; --so-nen: #f7ecd0; --so-chu: #94680f; }
.tbl-tro .so { position: absolute; top: 14px; left: 14px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums;
  background: var(--so-nen); color: var(--so-chu); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 2px 5px rgba(92, 70, 28, .12); }
/* vùng tranh: chiếm phần trên, lệch phải để chừa chỗ cho số */
.tbl-tro .hinh, .tbl-tro .ic { align-self: flex-end; flex: none; margin: -4px -6px 6px 0; }
.tbl-tro .hinh { width: 68%; max-width: 168px; aspect-ratio: 1; height: auto; object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(92, 70, 28, .18)); transition: transform .25s cubic-bezier(.34, 1.4, .64, 1); }
.tbl-tro .ic { width: 96px; height: 96px; margin: 4px 0 18px; border-radius: 26px; display: flex; align-items: center; justify-content: center;
  font-family: var(--khai); font-size: 3.1rem; line-height: 1; color: var(--so-chu);
  background: linear-gradient(155deg, #fff 0%, var(--so-nen) 60%, var(--so-nen) 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .95), inset 0 -4px 8px rgba(92, 70, 28, .08), 0 10px 18px -8px rgba(var(--n-bong), .45);
  transition: transform .25s cubic-bezier(.34, 1.4, .64, 1); }
.tbl-tro b { font-size: 1.14rem; font-weight: 800; line-height: 1.22; letter-spacing: -.01em; color: #2b2214; }
.tbl-tro .mo { font-size: .9rem; color: #5d5240; line-height: 1.4; margin-bottom: 12px; }
.tbl-tro-nut { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 14px;
  border-radius: 999px; font-weight: 800; font-size: .98rem; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .22); white-space: nowrap;
  background: linear-gradient(180deg, var(--n1) 0%, var(--n2) 100%); border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42), inset 0 -3px 0 rgba(0, 0, 0, .14), 0 5px 12px -3px rgba(var(--n-bong), .5);
  transition: transform .18s cubic-bezier(.34, 1.4, .64, 1), box-shadow .18s ease, filter .18s ease; }
.tbl-tro-nut span { font-size: 1.05em; transition: transform .2s ease; }
.tbl-tro:focus-visible { outline: 3px solid #3f7894; outline-offset: 3px; }
.tbl-tro:active { transform: translateY(-1px) scale(.985); }
.tbl-tro:active .tbl-tro-nut { transform: translateY(1px) scale(.97);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .2), 0 2px 5px -2px rgba(var(--n-bong), .45); }
@media (hover: hover) {
  .tbl-tro:hover { transform: translateY(-4px); border-color: #e2cc96;
    box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(214, 190, 140, .18), 0 2px 4px rgba(92, 70, 28, .08),
      0 12px 22px -6px rgba(92, 70, 28, .16), 0 28px 44px -18px rgba(92, 70, 28, .32); }
  .tbl-tro:hover .hinh, .tbl-tro:hover .ic { transform: translateY(-3px) scale(1.03); }
  .tbl-tro:hover .tbl-tro-nut { filter: brightness(1.06); }
  .tbl-tro:hover .tbl-tro-nut span { transform: translateX(3px); }
}
/* khối hẹp (điện thoại): thẻ NẰM NGANG một cột — tranh trái, chữ phải, nút dưới — 10 thẻ dọc mà không quá dài */
@container (max-width: 440px) {
  .tbl-tro-luoi { grid-template-columns: 1fr; gap: 12px; }
  .tbl-tro { display: grid; grid-template-columns: 92px 1fr; grid-template-rows: auto auto 1fr auto; column-gap: 14px; row-gap: 2px;
    min-height: 0; padding: 14px; border-radius: 22px; }
  .tbl-tro .so { top: 10px; left: 10px; width: 34px; height: 34px; font-size: .86rem; }
  /* tranh đứng DƯỚI số thứ tự (số ở góc trái trên) — đặt giữa cột thì số đè lên ô hình */
  .tbl-tro .hinh, .tbl-tro .ic { grid-column: 1; grid-row: 1 / 4; align-self: start; justify-self: center; margin: 36px 0 0; }
  .tbl-tro .hinh { width: 92px; max-width: none; }
  .tbl-tro .ic { width: 72px; height: 72px; border-radius: 22px; font-size: 2.4rem; }
  .tbl-tro b { grid-column: 2; grid-row: 1; font-size: 1.08rem; padding-top: 6px; }
  .tbl-tro .mo { grid-column: 2; grid-row: 2; margin-bottom: 6px; }
  .tbl-tro-nut { grid-column: 1 / -1; grid-row: 4; min-height: 44px; margin-top: 8px; }
}
/* hai nút điều hướng màu kem (📒 Sổ lỗi sai · 📋 Bảng 214 bộ) */
.tbl-nav { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 12px; min-height: 58px; padding: 8px 22px 8px 12px; max-width: 100%;
  border-radius: 999px; border: 1px solid #eadbb4; background: linear-gradient(180deg, #fffefa 0%, #fbf3e2 100%); color: #2b2214;
  font-weight: 800; font-size: 1.04rem; text-align: left;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(92, 70, 28, .07), 0 8px 18px -8px rgba(92, 70, 28, .25);
  transition: transform .2s cubic-bezier(.34, 1.4, .64, 1), box-shadow .2s ease; }
.tbl-nav .ic { flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; object-fit: contain; }
.tbl-nav .chu { min-width: 0; }
.tbl-nav .mui { flex: none; font-size: 1.15em; transition: transform .2s ease; }
@media (hover: hover) { .tbl-nav:hover { background: linear-gradient(180deg, #fffefa 0%, #fbf3e2 100%); transform: translateY(-2px);
  box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(92, 70, 28, .08), 0 14px 24px -10px rgba(92, 70, 28, .3); }
  .tbl-nav:hover .mui { transform: translateX(3px); } }
.tbl-khoi .tbl-nav { margin-top: 18px; }
@media (prefers-reduced-motion: reduce) {
  .tbl-tro, .tbl-tro .hinh, .tbl-tro .ic, .tbl-tro-nut, .tbl-tro-nut span, .tbl-nav, .tbl-nav .mui { transition: none; }
  .tbl-tro:hover, .tbl-tro:active, .tbl-tro:hover .hinh, .tbl-tro:hover .ic, .tbl-nav:hover { transform: none; }
}

.tbl-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.tbl-o { border: 1px solid var(--vien); background: var(--kem-sang); border-radius: 16px; padding: 8px 4px; min-height: 104px; font: inherit;
  color: var(--nau); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tbl-o .g { font-size: 2rem; line-height: 1.2; }
.tbl-o .t { font-size: .8rem; font-weight: 700; }
.tbl-o.khoa { opacity: .55; }
.tbl-o .khoa-ic { font-size: .8rem; }
.tbl-o:active { transform: scale(.95); }
@media (hover: hover) { .tbl-o:hover { background: #fffaf0; } }
.tbl-cham { display: flex; gap: 3px; margin-top: 2px; }
.tbl-cham i { width: 8px; height: 8px; border-radius: 50%; background: var(--vien); }
.tbl-cham i.nua { background: #c7cfa6; }
.tbl-cham i.on { background: var(--oliu); }

/* hồ sơ một bộ */
.tbl-ho { padding: 18px; }
.tbl-ho .dau { display: flex; gap: 16px; align-items: center; }
.tbl-ho .to { font-size: 5rem; line-height: 1; min-width: 96px; text-align: center; }
.tbl-ho h2 { margin: 0; font-size: 1.45rem; } .tbl-ho h2 small { font-size: 1rem; color: var(--nau-nhat); font-weight: 600; }
.tbl-ho .ng { font-weight: 700; margin: 2px 0 6px; }
.tbl-ho .nhan { display: flex; flex-wrap: wrap; gap: 6px; }
.tbl-ho .nhan span { background: var(--kem-sau); border-radius: 999px; padding: 4px 11px; font-size: .84rem; font-weight: 700; }
.tbl-bien { margin: 12px 0 4px; display: flex; flex-direction: column; gap: 6px; }
.tbl-bien .dong { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.tbl-bien .g { width: 44px; height: 44px; flex: none; font-size: 2rem; display: flex; align-items: center; justify-content: center; background: var(--kem-sau); border-radius: 12px; padding: 4px; }
.tbl-ho .hang { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; margin: 14px 0; }
.tbl-ho .khung-hh { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tbl-hh { width: 150px; height: 150px; border-radius: 16px; background: #fff; border: 1px solid var(--vien); }
.tbl-ho .nam { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; }
.tbl-ho .nam .dong { display: flex; align-items: center; gap: 10px; font-weight: 700; background: var(--kem-sau); border-radius: 12px; padding: 8px 12px; }
.tbl-ho .nam .dong i { width: 12px; height: 12px; border-radius: 50%; background: var(--vien); flex: none; }
.tbl-ho .nam .dong.nua i { background: #c7cfa6; } .tbl-ho .nam .dong.on i { background: var(--oliu); }
.tbl-ho .nam .dong small { margin-left: auto; font-weight: 600; color: var(--nau-nhat); }
.tbl-ho .nhan-vd { font-weight: 800; font-size: .92rem; margin: 6px 0; }
.tbl-vd { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.tbl-vd .o { background: var(--kem-sau); border: 0; border-radius: 14px; padding: 8px 4px; text-align: center; font: inherit; color: var(--nau);
  display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: default; }
.tbl-vd button.o { cursor: pointer; }
.tbl-vd .chu { font-size: 2.6rem; line-height: 1.1; }
.tbl-vd .hv { font-size: .8rem; font-weight: 800; } .tbl-vd .ng { font-size: .76rem; color: var(--nau-nhat); line-height: 1.25; }

/* mặt sau thẻ lật: ▶ cách viết */
.tbl-sau-viet { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.tbl-hh-nho { width: 0; height: 140px; overflow: hidden; }
.tbl-hh-nho.mo { width: 140px; border-radius: 14px; background: #fff; border: 1px solid var(--vien); }

/* một lượt luyện */
.tbl-luot { max-width: 620px; margin: 0 auto; }
.tbl-dau { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 2px 6px; }
.tbl-dau .phai { display: flex; align-items: center; gap: 8px; color: var(--nau-nhat); font-weight: 700; }
.tbl-thanh { height: 8px; border-radius: 99px; background: var(--kem-sau); overflow: hidden; margin-bottom: 12px; }
.tbl-thanh i { display: block; height: 100%; background: var(--oliu); border-radius: 99px; transition: width .4s; }
.tbl-cau { text-align: center; padding: 18px 16px; }
.tbl-cau .hoi { font-size: 1.1rem; font-weight: 800; line-height: 1.45; margin-bottom: 10px; }
.tbl-chu-nho { font-size: 1.6rem; vertical-align: middle; }
.tbl-chu-giai { font-size: 2rem; width: 1.2em; height: 1.2em; vertical-align: middle; }
.tbl-hinh-lon { font-size: 6.5rem; line-height: 1.15; margin: 4px auto 6px; width: 1.2em; height: 1.2em; display: flex; align-items: center; justify-content: center; }
.tbl-hinh-lon.tbl-to .tbl-svg { width: 100%; height: 100%; }
.tbl-dap { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.tbl-dap button { border: 2px solid var(--vien); background: #fff; border-radius: 18px; min-height: 64px; padding: 10px; font: inherit;
  font-weight: 700; color: var(--nau); cursor: pointer; line-height: 1.3; }
.tbl-dap button .han { font-size: 2.6rem; line-height: 1.1; }
.tbl-dap button.dung { border-color: var(--oliu); background: var(--oliu-nhat); }
.tbl-dap button.sai { border-color: #a8452f; background: #f4e1db; }
.tbl-dap button:disabled { cursor: default; color: var(--nau); }
.tbl-dap button:active:not(:disabled) { transform: scale(.97); }
@media (hover: hover) { .tbl-dap button:hover:not(:disabled) { border-color: var(--oliu); } }
.tbl-giai { display: none; text-align: left; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--kem-sau); line-height: 1.5; }
.tbl-giai.on { display: block; }
.tbl-giai.d b:first-child { color: var(--oliu-dam); } .tbl-giai.s b:first-child { color: #a8452f; }
.tbl-cau .tbt-hang-nut.an { display: none; }
.tbl-o-viet { width: min(300px, 78vw); height: min(300px, 78vw); margin: 0 auto; background: #fff; border: 1px solid var(--vien); border-radius: 20px;
  overflow: hidden; touch-action: none; }
.tbl-o-viet.luoi { background-image: linear-gradient(var(--vien-nhat), var(--vien-nhat)), linear-gradient(var(--vien-nhat), var(--vien-nhat));
  background-size: 100% 1px, 1px 100%; background-position: center; background-repeat: no-repeat; }
.tbl-cham-chu { width: min(300px, 80vw); height: min(300px, 80vw); margin: 0 auto 6px; background: #fff; border: 1px solid var(--vien); border-radius: 20px; }
.tbl-svg.cham path { transition: fill .15s; }
.tbl-svg.cham path.chon { fill: #3b6f80; }
.tbl-svg.cham path.thua { fill: var(--vang); }
.tbl-svg.cham path.sai { fill: #c0392b; }
.tbl-svg.cham path.goi-y { animation: tblGoiY .9s ease-in-out infinite; }
@keyframes tblGoiY { 50% { fill: #a8452f; } }
.tbl-cham-bao { text-align: center; min-height: 1.5em; margin: 6px 0 2px; font-weight: 600; color: var(--nau-nhat); }
.tbl-cham-bao.sai { color: #a8452f; }
.tbl-svg.cham path.cham-vung { fill: transparent; stroke: transparent; stroke-width: 70; cursor: pointer; }
.tbl-tong { text-align: center; padding: 22px 16px; }
.tbl-tong .diem { font-size: 3rem; font-weight: 900; color: var(--oliu-dam); }
.tbl-sai { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin: 10px 0; }

/* 🖼️ Tranh bộ thủ bung ra sau khi trả lời (kho-bo-thu-luyen.js · bungTranh) */
.tbl-tranh-nen { position: fixed; inset: 0; z-index: 1200; background: rgba(30, 24, 16, .55); display: flex; align-items: flex-start; padding: 16px; overflow: auto; animation: tbl-hien .18s ease-out; }
.tbl-tranh { position: relative; margin: auto; width: min(440px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; gap: 12px; background: var(--kem-sang); color: var(--nau); border-radius: 22px; padding: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.25); }
.tbl-tranh .giua { flex: 1; min-height: 0; overflow-y: auto; }
.tbl-tranh img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: #f6e9d4; }
.tbl-tranh .ten { display: flex; align-items: center; gap: 14px; margin-top: 12px; text-align: left; }
.tbl-tranh .ten .han { font-size: 3.2rem; line-height: 1; color: var(--do-chu); }
.tbl-tranh .ten b { display: block; font-size: 1.2rem; }
.tbl-tranh .ten span:not(.han) { color: var(--nau-nhat); }
.tbl-tranh .tbt-nut { width: 100%; }
.tbl-tranh-x { position: absolute; top: 20px; right: 20px; z-index: 1; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--kem-sang); color: var(--nau); font-size: 1.1rem; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.tbl-tranh-nho { display: flex; align-items: center; gap: 10px; margin-top: 10px; border: 1px solid var(--vien); border-radius: 999px; padding: 4px 14px 4px 4px; background: var(--kem-sang); color: var(--nau); font: inherit; font-weight: 600; cursor: pointer; }
.tbl-tranh-nho img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
@keyframes tbl-hien { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tbl-tranh-nen { animation: none; } }

/* 📚 Bộ thủ của buổi học (10/11/2026) — khối ở trang tổng quan Thẻ bộ thủ */
.tbt-buoi-tab { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.tbt-buoi-tab button { border: 1px solid var(--vien); background: var(--kem-sau); color: var(--nau); border-radius: 999px; padding: 10px 18px; min-height: 44px; font: inherit; font-weight: 800; cursor: pointer; }
.tbt-buoi-tab button.on { background: var(--oliu); border-color: transparent; color: #fff; }
.tbt-buoi-bo { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tbt-buoi-bo .o { border: 1px solid var(--vien); border-radius: 16px; background: var(--kem-sang); padding: 10px 8px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.tbt-buoi-bo .o.moi { border-color: #c9a227; background: #fffbea; }
.tbt-buoi-bo .o.den-han { border-color: #c4623b; background: #fff3ee; }
.tbt-buoi-bo .chu { font-size: 2rem; line-height: 1.15; font-family: "Noto Serif TC", "Songti TC", serif; }
.tbt-buoi-bo .hv { font-weight: 800; }
.tbt-buoi-bo .ng { font-size: .8rem; color: var(--nau-nhat); }
.tbt-buoi .tbt-hang-nut a.tbt-nut { text-decoration: none; display: inline-flex; align-items: center; }
