/* Hang Trùm — bản xem trước ẩn (QĐ-19 Đ24). Nạp SAU ../tai-nguyen/tz.css: màu, chữ, nút, thanh điều hướng, hộp giải thích,
   thẻ trùm (.tr-*, .thanh-no, .tr-cuoc, .chip-viec, .anh-tam) và chân trang đều lấy từ đó; tệp này chỉ thêm phần riêng.
   Luật chung: chữ nhỏ nhất 12px, ô chạm ≥ 44px, chuyển động chỉ transform/opacity, "giảm chuyển động" thì đứng yên
   (luật chung trong tz.css). Không hình sòng bạc, không đếm ngược, không đỏ báo động.
   Lớp đổi theo địa chỉ (đoạn nhỏ trong <head> đặt thuộc tính lên <html>, không chớp):
   ?tran=dang → data-tran="dang" (đang đấu Miu). */
:root:not([data-tran="dang"]) .khi-dang, :root[data-tran="dang"] .khi-chua { display: none !important; }

.trang-hang main { max-width: 1180px; margin: 0 auto; padding: 0 20px 24px; }
.trang-hang h1 { font-size: clamp(2.5rem, 6vw, 3.8rem); }

/* ------------------------------------------------------------------ đầu trang */
.ht-dau { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 24px; align-items: center; padding: 40px 0 8px; }
.ht-dau .lede { max-width: 50ch; margin: 14px 0 20px; }
.ht-vi-hang { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.ht-vi {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; min-height: 52px; padding: 8px 16px 8px 12px;
  border-radius: 18px; border: 1px solid rgb(246 217 139 / .45); background: rgb(246 217 139 / .1); color: var(--chu); text-align: left;
  transition: background-color .25s;
}
.ht-vi:hover { background: rgb(246 217 139 / .18); }
.ht-vi .sao-ar { width: 30px; height: 30px; }
.ht-vi-so { font-size: .9rem; color: #F9E6B5; text-decoration: underline dotted rgb(246 217 139 / .6); text-underline-offset: 4px; }
.ht-vi-so b { margin-right: 4px; font: 800 1.3rem var(--f-hien); color: #FFF3C4; }
.ht-vi-giu { flex-basis: 100%; padding-left: 40px; font-size: .82rem; color: var(--chu-2); }
.ht-dau-hinh { position: relative; height: 270px; }
.ht-mat {
  position: absolute; display: grid; place-items: center; width: 196px; height: 196px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--mau) 36%, #2A1D40), #1E1430 70%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--mau) 40%, transparent), 0 30px 60px -30px rgb(0 0 0 / .8);
}
.ht-mat img { width: 80%; height: 80%; }
.ht-mat.m1 { left: 2%; top: 0; }
.ht-mat.m2 { right: 0; bottom: 0; width: 150px; height: 150px; }

/* ------------------------------------------------------------------ tiêu đề mục + các bước */
.ht-cach, .ht-ds, .ht-luat, .ht-qua { margin-top: 48px; }
.ht-cach h2, .ht-muc-dau h2, .ht-qua h2 { margin: 0 0 12px; font: 700 clamp(1.4rem, 2.6vw, 1.85rem)/1.2 var(--f-hien); font-stretch: 110%; }
.ht-muc-dau p { max-width: 66ch; margin: -4px 0 18px; color: var(--chu-2); }
.ht-buoc { list-style: none; counter-reset: buoc; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; }
.ht-buoc li {
  counter-increment: buoc; position: relative; padding: 16px 16px 16px 58px; border-radius: var(--r);
  background: var(--mat); border: 1px solid var(--vien);
}
.ht-buoc li::before {
  content: counter(buoc); position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font: 800 1rem var(--f-hien); color: #2A1B38; background: linear-gradient(180deg, #FFB6CD, var(--hong));
}
.ht-buoc b { display: block; margin-bottom: 2px; font: 700 1rem var(--f-hien); }
.ht-buoc span { font-size: .88rem; color: var(--chu-2); }

/* ------------------------------------------------------------------ thẻ trùm */
.ht-luoi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ht-luoi.sap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ht-sap-dau { margin: 32px 0 12px; font: 700 1.12rem var(--f-hien); color: var(--chu-2); }
.trum-the {
  position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 20px; scroll-margin-top: 90px;
  border-radius: var(--r-lon); border: 1px solid color-mix(in srgb, var(--mau) 38%, transparent);
  background: radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--mau) 20%, transparent), transparent 55%), var(--mat);
  box-shadow: 0 30px 60px -36px rgb(0 0 0 / .85);
}
.trum-hinh { position: relative; width: 150px; height: 150px; align-self: start; }
.trum-hao {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--mau) 36%, #2A1D40), #1E1430 70%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--mau) 40%, transparent);
}
.trum-hinh img { position: relative; width: 100%; height: 100%; padding: 12px; }
.trum-hinh .anh-tam { left: 0; top: 0; }
.trum-tt {
  position: absolute; left: 50%; bottom: -8px; translate: -50% 0; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  padding: 3px 10px; border-radius: 999px; font: 700 .75rem/1.4 var(--f-hien); letter-spacing: .04em; color: #0F3B30; background: var(--bac-ha);
}
.trum-tt .ic { width: 13px; height: 13px; }
.tt-khoa .trum-tt { color: #2E2200; background: #F6D98B; }
.tt-sap .trum-tt { color: var(--chu-2); background: var(--mat-2); }
.tt-khoa .trum-hinh img { filter: saturate(.6) brightness(.82); }
.tt-sap .trum-hinh img { filter: grayscale(.65) brightness(.62); }
.trum-kicker { margin: 0; font: 700 .75rem var(--f-hien); letter-spacing: .1em; text-transform: uppercase; color: var(--hong-chu); }
.trum-the h3 { margin: 4px 0 6px; font: 700 1.42rem/1.2 var(--f-hien); font-stretch: 108%; }
.trum-the h3 small { margin-left: 4px; font: 600 .9rem var(--f-than); color: var(--chu-3); }
.trum-mo { margin: 0 0 12px; color: var(--chu-2); }
.trum-tt-ds { display: grid; gap: 10px; margin: 0 0 16px; }
.trum-tt-ds > div { display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid var(--vien); }
.trum-tt-ds dt { font: 700 .76rem var(--f-hien); letter-spacing: .06em; text-transform: uppercase; color: var(--chu-3); }
.trum-tt-ds dd { margin: 0; font-size: .92rem; }
.trum-tt-ds .tr-viec { margin: 8px 0 6px; }
.phut { display: block; font-size: .82rem; color: var(--chu-3); }
.bb { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.bb-co, .bb-khoa { display: inline-flex; align-items: center; gap: 6px; }
.bb-co { color: #CFF5EA; }
.bb-co .ic, .bb-khoa .ic { width: 15px; height: 15px; flex: none; }
.bb .so-giai { margin: 0; }
.trum-nut { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.trum-nut .nut .ic { width: 18px; height: 18px; }
.nut:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.ly-do { flex: 1 1 200px; margin: 0; font-size: .84rem; color: var(--chu-3); }
.ly-do a { color: var(--chu); text-underline-offset: 3px; }
.trum-the > .trum-chu > .ly-do { margin-top: 8px; }
.tran-dang {
  display: grid; gap: 10px; padding: 14px; border-radius: 18px;
  background: rgb(255 255 255 / .04); border: 1px solid color-mix(in srgb, var(--mau) 40%, transparent);
}
.tran-dong {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: 0;
  font: 700 .76rem var(--f-hien); letter-spacing: .08em; text-transform: uppercase; color: var(--hong-chu);
}
.tran-dong .so-giai { margin: 0; font-size: .92rem; letter-spacing: .01em; text-transform: none; }
.tran-cuoc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.tran-dang .nut { justify-self: start; }

/* Cách làm (chi-so/cach-lam.json) */
.cach-lam { margin-top: 14px; border-top: 1px solid var(--vien); scroll-margin-top: 90px; }
.cach-lam summary { display: flex; align-items: center; gap: 8px; min-height: 48px; cursor: pointer; list-style: none; font: 700 1rem var(--f-hien); }
.cach-lam summary::-webkit-details-marker { display: none; }
.cach-lam summary .ic { width: 18px; height: 18px; margin-left: auto; color: var(--chu-3); transition: transform .3s; }
.cach-lam[open] summary .ic { transform: rotate(180deg); }
.cach-lam-than { padding-bottom: 4px; }
.cach-lam-than h4 { margin: 12px 0 4px; font: 700 .8rem var(--f-hien); letter-spacing: .06em; text-transform: uppercase; color: var(--hong-chu); }
.cach-lam-than h4:first-child { margin-top: 2px; }
.cach-lam-than p, .cach-lam-than li { font-size: .9rem; color: var(--chu-2); }
.cach-lam-than p { margin: 0 0 6px; }
.cach-lam-than ul { margin: 0; padding-left: 20px; }
.cach-lam-than li { margin-bottom: 4px; }

/* trùm sắp mở: thẻ gọn */
.ht-luoi.sap .trum-the { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 16px; }
.ht-luoi.sap .trum-hinh { width: 96px; height: 96px; }
.ht-luoi.sap .trum-hinh img { padding: 8px; }
.ht-luoi.sap .trum-the h3 { font-size: 1.14rem; }
.ht-luoi.sap .trum-mo { font-size: .9rem; }

/* ------------------------------------------------------------------ mức cược + luật */
.muc-luoi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }   /* QĐ-35 CH-08: bốn mức 50 / 100 / 150 / 200 */
.muc-the { padding: 18px; border-radius: var(--r); background: var(--mat); border: 1px solid var(--vien); }
.muc-the.chon-san { border-color: rgb(246 217 139 / .5); }
.muc-the-ten { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 1.1rem var(--f-hien); }
.muc-the-ten small { padding: 1px 8px; border-radius: 999px; font: 600 .75rem/1.5 var(--f-hien); color: #2E2200; background: #F6D98B; }
.muc-the-so { display: flex; align-items: center; gap: 6px; margin: 8px 0 12px; font: 800 2rem/1 var(--f-hien); color: #FFF3C4; }
.muc-the-so .sao-ar { width: 30px; height: 30px; }
.muc-the ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: .88rem; color: var(--chu-2); }
.muc-the li { position: relative; padding-left: 16px; }
.muc-the li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--hong); }
.ht-luat-ds {
  display: grid; gap: 8px; margin: 18px 0 0; padding: 18px 18px 18px 38px; border-radius: var(--r);
  background: rgb(255 255 255 / .03); border: 1px solid var(--vien); font-size: .92rem; color: var(--chu-2);
}
.ht-qua { padding: 18px 20px; border-radius: var(--r); background: rgb(255 255 255 / .03); border: 1px dashed var(--vien-2); }
.ht-qua h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 1.2rem; }
.ht-qua h2 small { font: 600 .8rem var(--f-than); color: var(--chu-3); }
.ht-qua p { margin: 0; color: var(--chu-2); }

/* ------------------------------------------------------------------ QĐ-45: khối "Xem thử hoạt cảnh thuần" (CHỈ bản xem trước)
   Hiện khi có JS + ES module (đoạn nạp HCT_NAP bỏ hidden). Lớp phủ và khối "Đã thuần" trên thẻ trùm ở hoat-canh.css (tải khi cần). */
.hct-thu[hidden] { display: none !important; }
.hct-thu { margin-top: 24px; padding: 18px 20px; border-radius: var(--r); background: rgb(246 217 139 / .05); border: 1px dashed rgb(246 217 139 / .45); scroll-margin-top: 90px; }
.hct-thu h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 6px; font: 700 1.2rem/1.2 var(--f-hien); }
.hct-thu h2 small { padding: 1px 9px; border-radius: 999px; font: 700 .75rem/1.5 var(--f-hien); color: #2E2200; background: #F6D98B; }
.hct-thu > p { max-width: 66ch; margin: 0 0 12px; font-size: .9rem; color: var(--chu-2); }
.hct-thu-hang { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.hct-thu-hang .nut { min-height: 44px; padding: 8px 16px 8px 12px; font-size: .92rem; gap: 8px; }
.hct-thu-hang .cham { width: 12px; height: 12px; border-radius: 50%; background: var(--mau); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mau) 30%, transparent); }
.hct-thu-hang small { font: 600 .75rem var(--f-than); color: var(--chu-3); }
.hct-thu-chon { display: flex; flex-wrap: wrap; gap: 8px 12px; }

/* ------------------------------------------------------------------ hộp đặt cược (dialog) */
.hop-cuoc {
  width: min(560px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; overflow: auto; overscroll-behavior: contain;
  border: 1px solid var(--vien-2); border-radius: 26px; background: var(--mat-dac); color: var(--chu);
  box-shadow: 0 40px 90px -30px rgb(0 0 0 / .9);
}
.hop-cuoc::backdrop { background: rgb(6 2 14 / .62); backdrop-filter: blur(3px); }
.hc-khung { position: relative; padding: 20px 20px 18px; }
.hc-x {
  position: absolute; right: 8px; top: 8px; z-index: 2; width: var(--cham); height: var(--cham); border: 0; border-radius: 50%;
  display: grid; place-items: center; background: none; color: var(--chu-2);
}
.hc-x:hover { background: rgb(245 139 175 / .14); }
.hc-dau { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding-right: 40px; }
.hc-anh { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #4A3570, #241836 72%); }
.hc-anh img { width: 88%; height: 88%; }
.hc-anh.lon { width: 104px; height: 104px; margin: 6px auto 10px; }
.hc-kicker { margin: 0; font: 700 .75rem var(--f-hien); letter-spacing: .1em; text-transform: uppercase; color: var(--hong-chu); }
.hop-cuoc h2 { margin: 2px 0 0; font: 700 1.16rem/1.3 var(--f-hien); font-stretch: 104%; }
.hc-vi { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 16px 0 10px; font-size: .92rem; color: var(--chu-2); }
.hc-vi .sao-ar { width: 22px; height: 22px; }
.hc-vi b { font-family: var(--f-hien); color: #FFF3C4; }
.hc-muc { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.hc-muc legend { margin-bottom: 6px; padding: 0; font: 700 .78rem var(--f-hien); letter-spacing: .08em; text-transform: uppercase; color: var(--chu-3); }
/* ô chọn: nút radio thật phủ kín cả thẻ (trong suốt) nên chạm chỗ nào cũng chọn được, bàn phím dùng mũi tên như thường */
.muc { position: relative; display: block; border-radius: 16px; }
.muc input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.muc input:disabled { cursor: not-allowed; }
.muc-than {
  position: relative; display: grid; gap: 2px; padding: 12px 14px 12px 46px; border-radius: 16px;
  border: 1px solid var(--vien-2); background: rgb(255 255 255 / .03); transition: border-color .25s, background-color .25s;
}
.muc-than::before {
  content: ""; position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--chu-3);
}
.muc input:checked + .muc-than { border-color: var(--hong); background: rgb(245 139 175 / .1); }
.muc input:checked + .muc-than::before { border-color: var(--hong); background: radial-gradient(circle, var(--hong) 0 42%, transparent 47%); }
.muc input:focus-visible + .muc-than { outline: 3px solid var(--hong-chu); outline-offset: 2px; }
.muc input:disabled + .muc-than { opacity: .55; }
.muc-dau { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.muc-ten { font: 700 1rem var(--f-hien); }
.muc-so { font: 800 1.12rem var(--f-hien); color: #FFF3C4; white-space: nowrap; }
.muc-phu { font-size: .84rem; color: var(--chu-2); }
.muc-ly-do { font-size: .8rem; color: #F9E6B5; }
.hc-dong {
  display: grid; gap: 8px; margin: 14px 0; padding: 12px 14px; list-style: none; border-radius: 16px;
  background: rgb(255 255 255 / .03); border: 1px solid var(--vien); font-size: .9rem; color: var(--chu-2);
}
.hc-dong li { position: relative; padding-left: 22px; }
.hc-dong li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; border-radius: 50%; }
.hc-dong .duoc::before { background: var(--bac-ha); }
.hc-dong .khep::before { background: var(--oai); }
.hc-dong .giu::before { background: #F6D98B; }
.hc-dong .huy::before { background: var(--hong); }
.hc-hieu {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border-radius: 14px;
  border: 1px solid var(--vien-2); font-weight: 600; transition: border-color .25s, background-color .25s;
}
.hc-hieu input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.hc-o { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--chu-3); color: transparent; }
.hc-o .ic { width: 16px; height: 16px; }
.hc-hieu input:checked + .hc-o { color: #2A1B38; background: var(--hong); border-color: var(--hong); }
.hc-hieu:has(input:checked) { border-color: var(--hong); background: rgb(245 139 175 / .08); }
.hc-hieu input:focus-visible + .hc-o { outline: 3px solid var(--hong-chu); outline-offset: 2px; }
.hc-nut { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.hc-nut .nut { flex: 1 1 auto; }
.hc-ghi { margin: 10px 0 0; font-size: .78rem; color: var(--chu-3); }
.hc-xong { text-align: center; }
.hc-xong h2 { font-size: 1.3rem; outline: none; }
.hc-xong p { margin: 8px 0 0; color: var(--chu-2); }
@media (prefers-reduced-motion: no-preference) {
  .hop-cuoc[open] { animation: hc-vao .28s cubic-bezier(.16, 1, .3, 1); }
}
@keyframes hc-vao { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ------------------------------------------------------------------ màn hẹp */
@media (max-width: 1179.98px) { .muc-luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }   /* bốn thẻ mức: 2 × 2 */
@media (max-width: 899.98px) {
  .ht-dau { grid-template-columns: 1fr; padding-top: 18px; gap: 8px; }
  .ht-dau-hinh { order: -1; height: 150px; }
  .ht-mat { width: 132px; height: 132px; }
  .ht-mat.m1 { left: calc(50% - 150px); }
  .ht-mat.m2 { right: calc(50% - 140px); width: 104px; height: 104px; }
  .ht-buoc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ht-luoi, .ht-luoi.sap { grid-template-columns: 1fr; }
  .muc-luoi { grid-template-columns: 1fr; }
}
@media (max-width: 559.98px) {
  .trang-hang main { padding: 0 12px 20px; }
  .ht-cach, .ht-ds, .ht-luat, .ht-qua { margin-top: 36px; }
  .ht-buoc { grid-template-columns: 1fr; }
  .trum-the { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .trum-hinh { width: 132px; height: 132px; justify-self: center; }
  .ht-vi-giu { padding-left: 0; }
  .hop-cuoc { width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 26px 26px 0 0; border-bottom: 0; }
  .hc-khung { padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); }
  .ht-luat-ds { padding: 16px 14px 16px 32px; }
}

/* bộ lọc trùm khi quá 8 thẻ (QĐ-46 Q34) — chip cao ≥ 44 px, cuộn ngang trên màn hẹp, không tràn trang */
.ht-loc { display: flex; gap: 8px; margin: 0 0 16px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.ht-loc::-webkit-scrollbar { display: none; }
.ht-loc button { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22);
  background: transparent; color: inherit; font: inherit; font-size: .9rem; cursor: pointer; }
.ht-loc button[aria-pressed="true"] { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); font-weight: 700; }
.ht-loc button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ht-loc .dem { opacity: .7; margin-left: 4px; font-variant-numeric: tabular-nums; }
.ht-loc button[hidden], .trum-the[hidden] { display: none; }

/* QĐ-78 Đợt 2 (27/09): nút loa trên thanh điều hướng (am-thanh.js dùng lại nút có sẵn, như Training: tai-nguyen/phong/pt-phong.css) và
   nút Nghe Ari (200 đầu trang, 201 bảo bối, 210–214 "Nghe Ari kể" trên thẻ trùm). Kiểu nút + khung "Lời Ari": ../../giong-ari.css; ở đây
   chỉ ẩn khi không có JS, màu hợp nền tím, ô chạm >= 44 px. */
.topnav .sndfab { margin-left: auto; }
.topnav .sndfab + .btn { margin-left: 10px; }
@media (min-width: 1024px) { .topnav .links + .sndfab { margin-left: 0; } }
.sndfab { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgb(245 139 175 / .32); background: rgb(255 255 255 / .04); color: var(--hong); padding: 0; cursor: pointer;
  transition: color .4s, border-color .4s, background-color .4s; }
.sndfab:hover { background: rgb(245 139 175 / .12); border-color: var(--hong); }
.sndfab:focus-visible { outline: 2px solid var(--hong); outline-offset: 3px; }
.sndfab svg { width: 20px; height: 20px; fill: currentColor; }
.sndfab .wave { opacity: 1; transition: opacity .3s; }
.sndfab .slash { opacity: 0; transition: opacity .3s; }
.sndfab.off { color: var(--chu-3); border-color: rgb(245 237 232 / .18); }
.sndfab.off .wave { opacity: 0; }
.sndfab.off .slash { opacity: 1; }
.sndfab.waiting::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--hong); opacity: .6; }
.sndfab .tip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ht-giong { display: none; margin: 14px 0 0; }
.co-js .ht-giong:not([hidden]) { display: block; }
.ht-giong .giong-nut { min-height: var(--cham); font-size: .88rem; color: var(--chu); border-color: var(--vien-2); background: rgb(245 139 175 / .1); }
.ht-giong .giong-nut.dang-bat { border-color: var(--hong); background: rgb(245 139 175 / .2); }
.ht-giong .giong-khung { max-width: 64ch; background: var(--mat-dac); border-color: var(--vien-2); }
.ht-giong .giong-loi { max-height: min(14em, 40vh); overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.ht-giong .giong-ghi, .ht-giong .giong-khung-gio { font-size: .78rem; }
.ht-giong .giong-an { min-width: 44px; padding: 0 10px; }
.ht-ke { margin: 10px 0 4px; }

/* rà soát web thật 05/10/2026: lúc đang có trận (?tran=dang) trang rộng 463px trên màn 390, chữ trong thẻ đang đấu không chịu xuống dòng */
.trum-chu, .tran-dang { min-width: 0; }
.tran-dang > *, .tran-dong, .tran-cuoc, .tr-no { max-width: 100%; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.tr-no, .tran-dong { flex-wrap: wrap; }
.tran-dong .so-giai, .tran-cuoc .so-giai { max-width: 100%; }
/* rà UI 11/10: thanh trên cố định mà trong suốt, cuộn xuống là chữ trang chồng lên nút Về và tên trang (cùng lỗi A1 ở các ứng dụng).
   Lót nền tối mờ dần như body[data-tool] trong tools/vutru.css. */
.vt-bar::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; bottom: -16px; pointer-events: none;
  background: linear-gradient(rgb(11 7 20 / .97) 0, rgb(11 7 20 / .94) 74%, rgb(11 7 20 / 0)); }
