/* Toán Tiểu học – nguyenquangkhanh.com
   Ý tưởng: trang vở ô li + mực tím của học trò, bài tập diễn ra trên chiếc bảng con màu xanh, thưởng bằng bông hoa điểm mười. */
:root {
  /* dùng chung mọi bảng màu */
  --trang: #ffffff; --den: #1f2a44;                       /* --den: chữ đậm cố định, dùng trên nền vàng/phấn (không đổi khi sang chế độ tối) */
  --phan: #fcfcf2; --phan-vang: #ffe27a; --phan-mo: rgba(252, 252, 242, .38);
  --do: #e5484d; --vang-dam: #e0a400; --la: #2f9e56; --cam: #d9480f;
  --chu-hoa: "Baloo 2", ui-rounded, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --chu: "Lexend", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --chu-web: "Segoe UI", Roboto, Arial, sans-serif;       /* phông của thanh menu chung và chân trang */
  --emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
/* ---------- bảng màu: chọn bằng <html data-tth-mau="…"> (hằng MAU trong _tools/build_toan_tieu_hoc.py) ---------- */
:root[data-tth-mau="bien"] {             /* Biển xanh: cùng tông xanh với menu chung của web */
  --muc: #1c5fc4; --muc-dam: #17335f; --muc-nhat: #a8c5ee; --muc-nen: #e9f1fd; --mo: #4f6384;
  --giay: #fafcff; --oli: #e7f0fa; --oli-dam: #c8dcf2; --vang: #ffc93c;
  --bang: #1e5b47; --bang-dam: #164434; --khung: #e0b06a; --khung-dam: #b98443;
}
:root[data-tth-mau="cam"] {              /* Cam nắng */
  --muc: #c8470d; --muc-dam: #4a2110; --muc-nhat: #f4c4a4; --muc-nen: #fff1e7; --mo: #7a5a48;
  --giay: #fffbf5; --oli: #f7eddf; --oli-dam: #eed9be; --vang: #ffd24a;
  --bang: #175c63; --bang-dam: #0f444a; --khung: #e9c48a; --khung-dam: #c39a5a;
}
:root[data-tth-mau="la"] {               /* Lá non */
  --muc: #18794e; --muc-dam: #123f2c; --muc-nhat: #a6dbbd; --muc-nen: #e8f7ee; --mo: #4b6b5a;
  --giay: #fbfef9; --oli: #e7f3e5; --oli-dam: #cbe5ca; --vang: #ffbf47;
  --bang: #27406b; --bang-dam: #1b2f52; --khung: #d9dee8; --khung-dam: #a9b3c4;
}
:root, :root[data-tth-mau="tim"] {       /* Mực tím: màu thầy chọn (28/11/2026), cũng là màu mặc định */
  --muc: #4b2fa0; --muc-dam: #2e1d6b; --muc-nhat: #b9acdf; --muc-nen: #efeafb; --mo: #5a4d86;
  --giay: #fbfbf4; --oli: #e4f0f8; --oli-dam: #c3ddef; --vang: #ffc93c;
  --bang: #1e5b47; --bang-dam: #164434; --khung: #e0b06a; --khung-dam: #b98443;
}
/* chế độ tối (nút Sáng/Tối của menu chung đặt data-theme="dark" lên <html>) */
:root[data-theme="dark"] {
  color-scheme: dark;
  --trang: #1a202c; --giay: #12161f; --oli: #161b26; --oli-dam: #1e2533;
  --muc: #8fb8ff; --muc-dam: #e6eaf2; --muc-nhat: #3b4860; --muc-nen: #232c3d; --mo: #9aa5ba;
  --la: #4cc47a; --cam: #ff9166; --khung: #b98f55; --khung-dam: #8a6a3d;
}
:root[data-theme="dark"][data-tth-mau="cam"] { --muc: #ffab73; }
:root[data-theme="dark"][data-tth-mau="la"] { --muc: #7fd6a3; --khung: #8e99ad; --khung-dam: #6c768a; }
:root[data-theme="dark"], :root[data-theme="dark"][data-tth-mau="tim"] { --muc: #b8a6ff; }
:root[data-theme="dark"][data-tth-mau="bien"] { --muc: #8fb8ff; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--muc-dam); font: 400 17px/1.6 var(--chu);
  background-color: var(--giay);
  background-image:
    linear-gradient(var(--oli-dam) 1px, transparent 1px), linear-gradient(90deg, var(--oli-dam) 1px, transparent 1px),
    linear-gradient(var(--oli) 1px, transparent 1px), linear-gradient(90deg, var(--oli) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
}
[hidden] { display: none !important; }
/* thanh menu chung + chân trang giữ đúng phông của các trang khác trên web */
.topbar, body > footer { font-family: var(--chu-web); }
.topbar { font-size: 17px; line-height: 1.65; }
body.tth-trang-bai .topbar { position: static; }      /* trang bài học: menu cuộn theo trang, nhường chỗ cho bảng trên điện thoại */
/* trung hoà các quy tắc chung của assets/style.css trong phần nội dung */
main.tth-main { max-width: 1180px; margin: 0 auto; padding: 18px 16px 36px; }
.tth-main a { color: var(--muc); }
.tth-main h1, .tth-main h2, .tth-main h3 { font-family: var(--chu-hoa); color: var(--muc); line-height: 1.2; margin: 0; padding: 0; border: 0; }
.tth-main li { margin: 0; }
.tth-main :focus-visible { outline: 3px solid var(--cam); outline-offset: 2px; }

/* ---------- bông hoa điểm mười ---------- */
.tth-hoa { width: 22px; height: 22px; display: block; }
.tth-hoa .c { fill: none; stroke: var(--muc-nhat); stroke-width: 1.6; stroke-dasharray: 3 3; }
.tth-hoa .n { fill: var(--trang); stroke: var(--muc-nhat); stroke-width: 1.6; }
.co > .tth-hoa .c, .tth-ten .tth-hoa .c, .xong > .tth-hoa .c { fill: var(--do); stroke: #b92a30; stroke-dasharray: none; }
.co > .tth-hoa .n, .tth-ten .tth-hoa .n, .xong > .tth-hoa .n { fill: var(--vang); stroke: var(--vang-dam); }
.tth-hoa3 { display: inline-flex; gap: 2px; flex: 0 0 auto; }

/* ---------- trang chủ: nhãn vở ---------- */
.tth-nhanvo {
  background: var(--trang); border: 3px solid var(--muc); border-radius: 14px; padding: 6px; max-width: 720px;
  box-shadow: 6px 6px 0 var(--muc-nhat);
}
.tth-nhanvo-trong { border: 1.5px solid var(--muc); border-radius: 9px; padding: 20px 22px 22px; }
.tth-nhanvo h1 { font-size: clamp(38px, 9vw, 64px); font-weight: 800; letter-spacing: -.01em; }
.tth-dong { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; font-size: 18px; }
.tth-dong > span:first-child { flex: 0 0 auto; color: var(--muc); font-weight: 500; }
.tth-dong input, .tth-dong .tth-cham-cham {
  flex: 1 1 auto; min-width: 0; border: 0; border-bottom: 2px dotted var(--muc); background: transparent;
  font: 700 22px/1.3 var(--chu-hoa); color: var(--muc-dam); padding: 0 4px; border-radius: 0;
}
.tth-dong input::placeholder { color: var(--muc-nhat); font-weight: 600; }
.tth-main .sub { margin: 18px 0 0; max-width: 62ch; color: var(--mo); }
.tth-muc { margin-top: 34px; }
.tth-muc > h2 { font-size: 26px; margin-bottom: 12px; }
.tth-lop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.tth-lop a, .tth-lop div {
  display: flex; flex-direction: column; justify-content: space-between; min-height: 150px; padding: 14px 16px; border-radius: 16px;
  text-decoration: none; color: var(--muc-dam); background: var(--trang); border: 2.5px solid var(--muc-nhat);
}
.tth-lop li { display: flex; }                                       /* mọi ô lớp cao bằng nhau (cả ô Mầm non) */
.tth-lop li > a, .tth-lop li > div { flex: 1 1 auto; }
.tth-lop b { font: 800 60px/1 var(--chu-hoa); color: var(--muc-nhat); }
.tth-lop span { font-size: 15px; line-height: 1.35; }
.tth-main .tth-lop a { background: var(--vang); color: var(--den); border-color: var(--muc); box-shadow: 0 6px 0 var(--muc); transition: translate .08s, box-shadow .08s; }
.tth-lop a b { color: var(--den); }
.tth-lop a span { font-weight: 600; }
.tth-lop a:active { translate: 0 4px; box-shadow: 0 2px 0 var(--muc); }
.tth-ba { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: ba; }
.tth-ba li { background: var(--trang); border-radius: 14px; padding: 14px 16px; border: 2px solid var(--muc-nhat); counter-increment: ba; }
.tth-ba h3 { font-size: 21px; margin-bottom: 4px; }
.tth-ba h3::before { content: counter(ba) ". "; }
.tth-main .tth-ba p { margin: 0; font-size: 16px; }
.tth-giay { background: var(--trang); border: 2px solid var(--muc-nhat); border-radius: 14px; padding: 16px 18px; max-width: 760px; }
.tth-giay h2 { font-size: 22px; margin-bottom: 6px; }
.tth-main .tth-giay ul { margin: 6px 0 0; padding-left: 22px; }
.tth-main .tth-giay li { margin: 4px 0; }
.tth-main .tth-giay p { margin: 6px 0 0; }
.tth-main .tth-giay .sub { margin-top: 0; max-width: none; }
.tth-giay.rong { max-width: none; }                                  /* trang chủ: khung phụ huynh rộng bằng hàng "Mỗi bài có ba phần" */
@media (min-width: 900px) { .tth-main .tth-giay.rong ul { columns: 2; column-gap: 36px; } .tth-main .tth-giay.rong li { break-inside: avoid; margin: 0 0 8px; } }

/* ---------- trang lớp: danh sách bài ---------- */
.tth-tieude { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 20px; }
.tth-tieude h1 { font-size: clamp(36px, 8vw, 54px); font-weight: 800; }
.tth-tong { display: inline-flex; align-items: center; gap: 8px; background: var(--trang); border: 2px solid var(--muc); border-radius: 999px; padding: 4px 14px 4px 8px; font: 700 18px/1.2 var(--chu-hoa); }
.tth-tong .tth-hoa { width: 26px; height: 26px; }
.tth-main .tth-tap { font-size: 24px; margin: 30px 0 10px; }
.tth-chude { margin: 0 0 16px; max-width: 780px; }
details.tth-chude { margin: 0; }
details.tth-chude[open] { margin-bottom: 14px; }
.tth-chude > h3, .tth-chude > summary { font: 700 20px/1.3 var(--chu-hoa); color: var(--muc); margin: 0 0 8px; }
.tth-chude > summary { cursor: pointer; padding: 7px 0; margin: 0; font-size: 18px; }
.tth-chude > summary small { font: 400 14px var(--chu); color: var(--mo); margin-left: 8px; white-space: nowrap; }
.tth-dsbai { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tth-bai {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; text-decoration: none;
  background: var(--trang); border: 2.5px solid var(--muc); box-shadow: 0 4px 0 var(--muc); min-height: 60px;
  transition: translate .08s, box-shadow .08s;
}
.tth-main .tth-bai { color: var(--muc-dam); }
.tth-main a.tth-bai:hover, .tth-main a.tth-nut:hover, .tth-main .tth-lop a:hover { text-decoration: none; }
a.tth-bai:active { translate: 0 3px; box-shadow: 0 1px 0 var(--muc); }
.tth-bai .tth-stt { flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--vang); border: 2px solid var(--muc); display: grid; place-items: center; font: 800 20px/1 var(--chu-hoa); color: var(--den); }
.tth-bai .tth-tenbai { flex: 1 1 auto; font: 600 18px/1.3 var(--chu-hoa); }
.tth-bai .tth-hoa { width: 26px; height: 26px; }
.tth-bai.cho { border: 2px dashed var(--muc-nhat); box-shadow: none; background: transparent; min-height: 0; padding: 8px 14px; }
.tth-bai.cho .tth-stt { background: transparent; border-color: var(--muc-nhat); color: var(--mo); flex-basis: 32px; height: 32px; font-size: 16px; }
.tth-bai.cho .tth-tenbai { font-weight: 500; font-size: 16px; color: var(--mo); }
.tth-xoa { border: 0; background: none; font: inherit; font-size: 15px; color: var(--muc); text-decoration: underline; cursor: pointer; padding: 6px 0; }
.tth-xoa.hoi { color: var(--cam); font-weight: 600; }

/* ---------- trang bài học ---------- */
.tth-dau-bai { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.tth-main .tth-bai-h1 { font-size: clamp(19px, 4.8vw, 28px); }
.tth-lui { flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 2.5px solid var(--muc); background: var(--trang); box-shadow: 0 3px 0 var(--muc); font: 800 26px/1 var(--chu-hoa); text-decoration: none; padding-bottom: 3px; }
.tth-lui:hover { text-decoration: none; }
.tth-lui:active { translate: 0 2px; box-shadow: 0 1px 0 var(--muc); }
.tth-truocsau { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 16px; flex-wrap: wrap; }

/* ---------- máy chạy bài học ---------- */
.tth-may {
  position: relative; background: var(--trang); border: 2.5px solid var(--muc); border-radius: 20px; padding: 10px;
  box-shadow: 0 6px 0 var(--muc-nhat); -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.tth-may button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tth-thanh { display: flex; align-items: stretch; gap: 8px; margin-bottom: 10px; }
.tth-buoc { flex: 1 1 auto; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tth-buoc-nut {
  width: 100%; height: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 4px 6px;
  border: 2px solid var(--muc-nhat); border-radius: 12px; background: var(--trang); color: var(--muc); font: 700 15px/1.1 var(--chu-hoa);
}
.tth-buoc-nut .tth-hoa { flex: 0 0 auto; width: 20px; height: 20px; }
.tth-buoc-nut.dang { background: var(--muc); border-color: var(--muc); color: var(--trang); }
.tth-am { flex: 0 0 48px; border: 2px solid var(--muc-nhat); border-radius: 12px; background: var(--trang); font: 22px/1 var(--emoji); }
.tth-than { display: grid; gap: 10px; }
.tth-ben { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tth-loi { display: flex; align-items: center; gap: 8px; min-height: 52px; }
.tth-loi p { margin: 0; font: 700 clamp(20px, 5.4vw, 26px)/1.25 var(--chu-hoa); color: var(--muc-dam); }
.tth-doc { display: none; flex: 0 0 44px; height: 44px; border-radius: 50%; border: 2px solid var(--muc); background: var(--vang); font: 20px/1 var(--emoji); align-items: center; justify-content: center; }
.tth-co-giong .tth-doc { display: inline-flex; }
.tth-bao { margin: 0; min-height: 1.5em; font-weight: 600; font-size: 17px; line-height: 1.4; }
.tth-bao.dung { color: var(--la); }
.tth-bao.sai { color: var(--cam); }
.tth-khay { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tth-the-hop { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tth-the {
  position: relative; min-width: 52px; height: 58px; padding: 0 6px; border-radius: 12px; border: 2.5px solid var(--muc); background: var(--trang);
  color: var(--muc); font: 800 30px/1 var(--chu-hoa); box-shadow: 0 4px 0 var(--muc); transition: translate .06s, box-shadow .06s;
}
.tth-the:active { translate: 0 3px; box-shadow: 0 1px 0 var(--muc); }
.tth-the-hop.chu .tth-the { font-size: 21px; padding: 0 16px; }
.tth-the-hop.dau .tth-the { min-width: 68px; font-size: 36px; }
.tth-the.dung { background: var(--la); border-color: #1f7a40; box-shadow: 0 4px 0 #1f7a40; color: #fff; }
.tth-the.sai { opacity: .32; box-shadow: none; translate: 0 3px; }
.tth-the.chon { background: var(--vang); color: var(--den); }
.tth-the.xem::after { content: ""; position: absolute; right: 5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--la); }
.tth-the.goi { animation: tth-lac .5s 2; }
.tth-nut {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 999px; text-decoration: none;
  border: 2.5px solid var(--muc); background: var(--trang); color: var(--muc); font: 700 19px/1 var(--chu-hoa); box-shadow: 0 4px 0 var(--muc);
  transition: translate .06s, box-shadow .06s;
}
.tth-nut.chinh { background: var(--vang); color: var(--den); }
.tth-nut:active { translate: 0 3px; box-shadow: 0 1px 0 var(--muc); }
.tth-chan-may { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 20px; }
.tth-tiendo { display: flex; gap: 6px; flex-wrap: wrap; }
.tth-tiendo i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--muc-nhat); }
.tth-tiendo i.xong { background: var(--la); border-color: var(--la); }
.tth-tiendo i.dang { border-color: var(--muc); background: var(--vang); }
.tth-vet { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-height: 36px; }
.tth-vet span { min-width: 32px; height: 36px; padding: 0 6px; border-radius: 8px; background: var(--muc-nen); border: 2px solid var(--muc-nhat); font: 800 20px/32px var(--chu-hoa); text-align: center; color: var(--muc); }
.tth-chinh { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; }
.tth-chinh-nhan { min-width: 104px; text-align: right; font: 600 17px/1.2 var(--chu), var(--emoji); }
.tth-chinh-nhan.hinh { min-width: 48px; font: 34px/1 var(--emoji); text-align: center; }
.tth-chinh b { min-width: 1.5em; text-align: center; font: 800 30px/1 var(--chu-hoa); color: var(--muc); }
.tth-pm { width: 54px; height: 54px; border-radius: 50%; border: 2.5px solid var(--muc); background: var(--vang); color: var(--den); font: 800 30px/1 var(--chu-hoa); box-shadow: 0 4px 0 var(--muc); transition: translate .06s, box-shadow .06s; }
.tth-pm:active { translate: 0 3px; box-shadow: 0 1px 0 var(--muc); }

/* ---------- bảng con ---------- */
.tth-bang {
  display: flex; min-height: clamp(210px, 34vh, 400px); border: 9px solid var(--khung); border-radius: 18px; background: var(--bang);
  background-image: radial-gradient(120% 90% at 20% 10%, rgba(255, 255, 255, .09), transparent 60%), radial-gradient(90% 70% at 85% 95%, rgba(0, 0, 0, .16), transparent 60%);
  box-shadow: inset 0 0 0 2px var(--bang-dam), 0 3px 0 var(--khung-dam);
}
.tth-bang.rung { animation: tth-rung .32s; }
.tth-bang-trong {
  flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 12px 10px;
  container-type: inline-size; color: var(--phan); font-family: var(--chu-hoa);
}
.tth-bang-trong button { color: inherit; }
.tth-vat {
  position: relative; display: inline-block; padding: 0; border: 0; background: none; line-height: 1.15; text-align: center;
  font-family: var(--emoji); font-size: clamp(28px, 9vw, 60px); animation: tth-no .28s both;
}
@supports (width: 1cqw) { .tth-vat { font-size: clamp(28px, 14cqw, 62px); } }
.tth-vat.an { visibility: hidden; }
.tth-nhom { display: grid; grid-template-columns: repeat(var(--cot, 5), auto); gap: 4px 10px; justify-content: center; }
.tth-nhom.ron { gap: 0 6px; }
@supports (width: 1cqw) { .tth-nhom.ron .tth-vat { font-size: clamp(26px, 12cqw, 52px); } }
[data-so] { position: relative; }
[data-so]::after {
  content: attr(data-so); position: absolute; right: -7px; top: -5px; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 11px;
  background: var(--phan-vang); color: var(--den); font: 800 14px/22px var(--chu-hoa); text-align: center; rotate: 0deg; animation: tth-no .2s both;
}
.tth-dia { display: grid; place-items: center; min-width: 62%; min-height: 96px; padding: 10px 22px; border: 3px solid var(--phan); border-radius: 50%; background: rgba(255, 255, 255, .07); }
.tth-kho { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 8px; }
.tth-kho .tth-vat, .tth-ro .tth-vat { font-size: clamp(30px, 10vw, 46px); animation: none; }
@supports (width: 1cqw) { .tth-kho .tth-vat, .tth-ro .tth-vat { font-size: clamp(28px, 11.5cqw, 48px); } }
.tth-ro { position: relative; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 2px 8px; width: 94%; min-height: 92px; padding: 6px 40px 6px 10px; border: 3px dashed var(--phan-vang); border-radius: 16px; }
.tth-ro-nhan { position: absolute; right: 6px; bottom: 4px; font: 28px/1 var(--emoji); }
.tth-ro[data-dem]::after { right: auto; left: 10px; top: -13px; border-radius: 8px; font-size: 14px; padding: 0 8px; }
.tth-xucxac { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: 104px; height: 104px; padding: 12px; border-radius: 18px; background: var(--phan); box-shadow: 0 4px 0 rgba(0, 0, 0, .25); }
.tth-xucxac i { border-radius: 50%; }
.tth-xucxac i.c { background: var(--den); }
.tth-cham { display: flex; gap: 12px; }
.tth-dayso { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tth-phanso { width: 48px; height: 56px; border: 3px solid var(--phan); border-radius: 10px; font: 800 32px/50px var(--chu-hoa); text-align: center; }
@supports (width: 1cqw) { .tth-phanso { width: min(48px, 13cqw); } }
.tth-phanso.trong { border-style: dashed; border-color: var(--phan-vang); color: var(--phan-vang); animation: tth-tho 1.2s infinite; }
.tth-phanso.day { background: var(--phan-vang); border-color: var(--phan-vang); color: var(--den); }
.tth-noiso { display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 10px 6px; width: 100%; justify-items: center; }
.tth-bong { width: 58px; height: 58px; border-radius: 50%; border: 3px solid var(--phan); background: rgba(255, 255, 255, .08); font: 800 30px/1 var(--chu-hoa); }
.tth-bong.xong { background: var(--phan-vang); border-color: var(--phan-vang); color: var(--den); opacity: .55; }
.tth-bong.rung, .tth-hang-nut.rung { animation: tth-rung .32s; }
.tth-hainhom { display: grid; gap: 18px; width: 100%; }
.tth-hang { display: grid; grid-template-columns: repeat(var(--cot, 5), 1fr); justify-items: center; align-items: center; font-size: clamp(20px, calc(62vw / var(--cot, 5)), 52px); }
@supports (width: 1cqw) { .tth-hang { font-size: clamp(20px, calc(80cqw / var(--cot, 5)), 56px); } }
.tth-hang .tth-vat { font-size: inherit; }
.tth-hainhom.lech .tth-hang.gian { display: flex; justify-content: space-between; padding: 0 3%; }
.tth-hainhom.lech .tth-hang.gian:has(> :only-child) { justify-content: center; }
.tth-hainhom.noi > :first-child .tth-vat:not(.du):not(.an)::before { content: ""; position: absolute; left: 50%; top: 96%; height: 26px; border-left: 3px dashed var(--phan-vang); }
.tth-hainhom.noi .tth-vat.du { border-radius: 50%; box-shadow: 0 0 0 3px #ff9fb2; }
.tth-hang-nut { display: block; width: 100%; padding: 6px 4px; border: 3px dashed var(--phan-mo); border-radius: 16px; background: rgba(255, 255, 255, .05); }
.tth-hang-nut.dung { border: 3px solid var(--phan-vang); background: rgba(255, 226, 122, .16); }
.tth-hang-nut.sai { opacity: .45; }
.tth-sosanh { display: flex; align-items: flex-end; justify-content: center; gap: 16px; }
.tth-cotso { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 64px; }
.tth-thap { display: none; flex-direction: column-reverse; gap: 2px; }
.tth-sosanh.hien .tth-thap { display: flex; }
.tth-thap i { width: 34px; height: 11px; border-radius: 3px; background: var(--phan-vang); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18); animation: tth-no .2s both; }
.tth-so { font: 800 68px/1 var(--chu-hoa); }
.tth-o { display: inline-grid; place-items: center; min-width: 1.5em; padding: 0 .2em; border: 3px dashed var(--phan-vang); border-radius: 12px; color: var(--phan-vang); }
.tth-o.day { border-style: solid; background: var(--phan-vang); color: var(--den); animation: tth-no .25s both; }
.tth-sosanh > .tth-o { font: 800 52px/1.25 var(--chu-hoa); margin-bottom: 2px; }
.tth-cau { margin: 0; text-align: center; font: 700 clamp(20px, 5.6vw, 28px)/1.35 var(--chu-hoa); text-wrap: balance; }
.tth-cau.to { font-size: clamp(44px, 13vw, 64px); font-weight: 800; }
.tth-gop { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.tth-gop .tth-dia { min-width: 0; flex: 1 1 0; padding: 8px 4px; min-height: 84px; border-radius: 18px; }
.tth-gop .tth-nhom { gap: 2px 6px; }
.tth-gop .tth-vat { font-size: clamp(20px, 7vw, 38px); }
@supports (width: 1cqw) { .tth-gop .tth-vat { font-size: clamp(20px, 8.4cqw, 40px); } }
.tth-va { font: 700 22px/1 var(--chu-hoa); color: var(--phan-vang); }
.tth-chuoi { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; }
.tth-quan { position: relative; display: inline-block; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 3px solid rgba(0, 0, 0, .22); animation: tth-no .22s both; }
@supports (width: 1cqw) { .tth-quan { width: min(34px, 7.6cqw); height: min(34px, 7.6cqw); } }
.tth-quan.vang { background: var(--vang); }
.tth-quan.xanh { background: #7cc8ff; }
.tth-chuoi.bam .tth-quan { width: 42px; height: 42px; }
@supports (width: 1cqw) { .tth-chuoi.bam .tth-quan { width: min(44px, 12.5cqw); height: min(44px, 12.5cqw); } }
.tth-khe { width: 0; height: 46px; margin: 0 8px; border-left: 3px dashed var(--phan); }
.tth-hop { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; min-width: 84px; min-height: 58px; padding: 6px 10px; border: 3px solid var(--phan); border-radius: 10px; background: var(--khung-dam); font: 800 34px/1 var(--chu-hoa); color: var(--phan); }
.tth-hop.mo { background: rgba(255, 255, 255, .08); max-width: 60%; }
.tth-hop.mo-nhat .tth-quan { opacity: .5; }
.tth-tiaso { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.tth-tiaso span { min-width: 26px; height: 30px; border-bottom: 3px solid var(--phan-mo); font: 700 18px/28px var(--chu-hoa); text-align: center; animation: tth-no .2s both; }
.tth-tiaso span.moc { background: var(--phan-vang); color: var(--den); border-radius: 6px 6px 0 0; border-color: var(--phan-vang); }
.tth-khung10 { display: grid; grid-template-columns: repeat(var(--cot, 5), 1fr); gap: 6px; }
.tth-okhung { display: grid; place-items: center; width: 54px; height: 54px; border: 2.5px solid var(--phan-mo); border-radius: 10px; font: 34px/1 var(--emoji); }
@supports (width: 1cqw) { .tth-okhung { width: min(56px, 16cqw); height: min(56px, 16cqw); font-size: min(36px, 10.5cqw); } }
.tth-okhung.co { animation: tth-no .25s both; border-color: var(--phan); }
.tth-sobig { display: flex; align-items: baseline; gap: 14px; min-height: 84px; }
.tth-sobig b { font: 800 84px/1 var(--chu-hoa); color: var(--phan-vang); }
.tth-sobig span { font: 700 32px/1 var(--chu-hoa); }
.tth-sobig.nhay b { animation: tth-no .25s both; }
.tth-dathay { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tth-dathay span { padding: 2px 10px; border: 2px dashed var(--phan-mo); border-radius: 999px; font: 600 15px/1.5 var(--chu-hoa); color: rgba(252, 252, 242, .75); }
.tth-dathay span.co { border: 2px solid var(--phan-vang); background: var(--phan-vang); color: var(--den); }
.tth-dathay span.co::before { content: "✓ "; }
.tth-dathay.dau span { font-size: 20px; font-weight: 800; padding: 0 12px; }

/* ---------- hình phẳng ---------- */
.tth-hinh { display: block; width: 100%; height: 100%; overflow: visible; }
.tth-hinh *, .tth-xep * { stroke: rgba(0, 0, 0, .28); stroke-width: 2; stroke-linejoin: round; }
.tth-hinh-to { width: 140px; width: clamp(110px, 40cqw, 170px); aspect-ratio: 1; animation: tth-no .25s both; }
.tth-luoi-hinh { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; max-width: 420px; }
.tth-nut-hinh { aspect-ratio: 1; padding: 8%; border: 3px dashed var(--phan-mo); border-radius: 16px; background: rgba(255, 255, 255, .05); animation: tth-no .25s both; }
.tth-nut-hinh.dung { border: 3px solid var(--phan-vang); background: rgba(255, 226, 122, .2); }
.tth-nut-hinh.sai { opacity: .35; }
.tth-nut-hinh.goi { border-color: var(--phan-vang); animation: tth-tho 1s infinite; }
.tth-xep { display: block; width: 100%; max-width: 440px; max-height: 300px; overflow: visible; }
.tth-xep .o { fill: rgba(255, 255, 255, .04); stroke: var(--phan-mo); stroke-width: 2.5; stroke-dasharray: 6 5; }
.tth-xep .o.dang { fill: rgba(255, 226, 122, .28); stroke: var(--phan-vang); stroke-width: 3.5; animation: tth-tho 1s infinite; }
.tth-xep .xong { animation: tth-no .25s both; transform-box: fill-box; transform-origin: center; }
.tth-xep .sang { stroke: var(--phan); stroke-width: 5; }
.tth-xep .mo { opacity: .28; }
.tth-day-hinh { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; width: 100%; }
.tth-day-hinh .tth-hinh { width: clamp(30px, 10.62vw, 60px); width: clamp(30px, 12.5cqw, 60px); height: clamp(30px, 10.62vw, 60px); height: clamp(30px, 12.5cqw, 60px); }
.tth-day-hinh .tth-o { width: clamp(34px, 10.2vw, 58px); width: clamp(34px, 12cqw, 58px); height: clamp(34px, 10.2vw, 58px); height: clamp(34px, 12cqw, 58px); min-width: 0; padding: 3px; font: 800 24px/1 var(--chu-hoa); }
.tth-day-hinh .tth-o.hinh { background: rgba(255, 226, 122, .25); }
.tth-day-hinh.doc .tth-hinh:nth-child(odd) { translate: 0 -5px; }
.tth-day-hinh.vidu .tth-hinh { width: clamp(40px, 12.75vw, 70px); width: clamp(40px, 15cqw, 70px); height: clamp(40px, 12.75vw, 70px); height: clamp(40px, 15cqw, 70px); }
.tth-day-hinh.vidu { gap: 14px; }
.tth-the-hop.hai { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 420px; }
.tth-the-hop.hinh .tth-the { width: 64px; height: 64px; padding: 8px; }
.tth-the-hop.hinh .tth-hinh * { stroke: rgba(0, 0, 0, .35); }
.tth-the.rung { animation: tth-rung .32s; }
/* ---------- phép cộng, phép trừ ---------- */
.tth-khung-quan { display: grid; grid-template-columns: repeat(5, auto); gap: 7px; justify-content: center; }
.tth-quan.bo { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .28); }
.tth-quan.bo::before { content: ""; position: absolute; left: -14%; right: -14%; top: 50%; height: 5px; margin-top: -2.5px; border-radius: 3px; background: #ff8fa3; rotate: -45deg; }
.tth-quan.rong { background: transparent; border: 3px dashed var(--phan-vang); }
.tth-quan.an { visibility: hidden; }
.tth-cau.vua { font-size: clamp(34px, 10vw, 46px); font-weight: 800; }
.tth-cau.nho { font-size: clamp(18px, 5vw, 22px); color: var(--phan-vang); }
.tth-sosanh.bt { align-items: center; gap: 10px; flex-wrap: wrap; }
.tth-sosanh.bt .tth-so { font-size: clamp(34px, 10.5vw, 50px); white-space: nowrap; }
.tth-sosanh.bt > .tth-o { font-size: clamp(30px, 9vw, 42px); margin: 0; }
@supports (width: 1cqw) {
  .tth-cau.vua { font-size: clamp(30px, 12cqw, 48px); }
  .tth-sosanh.bt .tth-so { font-size: clamp(30px, 11.5cqw, 52px); }
}

/* ---------- lớp phủ khi xong một phần ---------- */
.tth-phu { display: none; position: absolute; inset: 0; z-index: 5; padding: 16px; border-radius: 17px; background: var(--trang); }
.tth-phu.mo { display: grid; place-items: center; }
.tth-phu-hop { text-align: center; max-width: 440px; }
.tth-phu-hop h2 { font-size: 28px; margin: 12px 0 6px; }
.tth-phu-hop p { margin: 0 0 16px; }
.tth-phu-hoa { display: flex; justify-content: center; gap: 8px; }
.tth-phu-hoa .tth-hoa { width: 64px; height: 64px; }
.tth-phu-hoa .moi { animation: tth-hoa-no .7s cubic-bezier(.2, 1.6, .4, 1) both; }
.tth-phu-nut { display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* ---------- màn hình rộng (máy tính, tivi lớp học) ---------- */
@media (min-width: 860px) {
  .tth-may { padding: 14px; }
  .tth-than { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "bang loi" "bang ben"; gap: 14px 18px; }
  .tth-bang { grid-area: bang; min-height: clamp(340px, 52vh, 520px); }
  .tth-loi { grid-area: loi; align-self: end; padding-top: 18px; }
  .tth-ben { grid-area: ben; gap: 16px; padding-right: 4px; }
  .tth-buoc-nut { font-size: 18px; min-height: 48px; }
  .tth-the { min-width: 60px; height: 66px; font-size: 34px; }
  .tth-phu-nut { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 520px) {
  main.tth-main { padding: 12px 12px 30px; }
  .tth-may { padding: 8px; }
  .tth-the-hop { gap: 6px; }
  .tth-the { min-width: 45px; height: 54px; font-size: 28px; }
  .tth-the-hop.dau .tth-the { min-width: 72px; }
  .tth-buoc-nut { font-size: 14px; gap: 5px; }
}
@media (max-width: 380px) {
  .tth-buoc-nut { font-size: 13px; gap: 4px; }
  .tth-buoc-nut .tth-hoa { width: 16px; height: 16px; }
  .tth-the { min-width: 41px; }
  .tth-chinh-nhan { min-width: 88px; font-size: 15px; }
}

@keyframes tth-no { from { scale: .4; opacity: 0; } }
@keyframes tth-rung { 20% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 80% { transform: translateX(-3px); } }
@keyframes tth-lac { 25% { rotate: -6deg; } 75% { rotate: 6deg; } }
@keyframes tth-tho { 50% { opacity: .5; } }
@keyframes tth-hoa-no { from { scale: 0; rotate: -120deg; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print { .tth-may { display: none; } }

/* ---------- hình khối, vị trí trong không gian (Lớp 1 Chủ đề 4) ---------- */
.tth-khoi { display: block; width: 100%; height: 100%; overflow: visible; }
.tth-khoi polygon, .tth-khoi rect, .tth-khoi path, .tth-khoi ellipse, .tth-khoi circle { stroke: rgba(0, 0, 0, .42); stroke-width: 1.4; stroke-linejoin: round; }
.tth-khoi .ch { stroke: none; }
.tth-khoi .vach { stroke: rgba(0, 0, 0, .42); stroke-width: 1.2; }
.tth-khoi .ong { stroke: #ff5a8a; stroke-width: 4; stroke-linecap: round; fill: none; }
.tth-khoi .ray { stroke: var(--phan-mo); stroke-width: 3; stroke-linecap: round; }
.tth-khoi text { stroke: none; }
.tth-khoi text.so { font: 800 20px/1 var(--chu-hoa); fill: #1f2a44; text-anchor: middle; stroke: #fff; stroke-width: 3px; paint-order: stroke; }
.tth-khoi text.so.toa { font-size: 18px; stroke: none; }
.tth-khoi text.vat { font: 50px/1 var(--emoji); text-anchor: middle; }
.tth-khoi text.nhan { font: 700 19px/1 var(--chu-hoa); fill: var(--phan); text-anchor: middle; }
.tth-khoi text.nhan.trai { text-anchor: start; }
.tth-khoi text.nhan.sang { fill: var(--phan-vang); font-size: 23px; }
.tth-khoi .cham { cursor: pointer; }
.tth-khoi-to { display: flex; justify-content: center; width: 100%; max-width: 400px; animation: tth-no .25s both; }
.tth-khoi-to .tth-khoi { width: 100%; height: auto; max-height: clamp(150px, 32vh, 270px); }
.tth-khoi-to.hep { max-width: 150px; }
.tth-dovat { gap: 10px; }
.tth-dovat .tth-nut-hinh { display: block; width: clamp(64px, 18.7vw, 104px); width: clamp(64px, 22cqw, 104px); height: clamp(64px, 18.7vw, 104px); height: clamp(64px, 22cqw, 104px); padding: 6px; }
.tth-dovat .tth-nut-hinh .tth-khoi { width: 100%; height: 100%; }
.tth-day-khoi { align-items: flex-end; gap: 4px; }
.tth-day-khoi .tth-khoi.nho { width: auto; height: clamp(56px, 17vw, 96px); height: clamp(56px, 20cqw, 96px); }
.tth-day-khoi .tth-o { align-self: center; }
.tth-the-hop.khoi .tth-the { height: auto; min-height: 58px; padding: 6px 12px; font-size: 19px; line-height: 1.15; }
.tth-the-hop.vat .tth-the { min-width: 66px; font: 36px/1 var(--emoji); }
.tth-the-hop.hinh .tth-the .tth-khoi { width: 100%; height: 100%; }
.tth-mau-the { display: inline-flex; align-items: center; gap: 8px; }
.tth-mau-the i { flex: 0 0 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .3); }
.tth-hai-khoi { display: flex; justify-content: center; align-items: flex-end; gap: 16px; width: 100%; }
.tth-mot-khoi { flex: 1 1 0; max-width: 190px; display: flex; flex-direction: column; align-items: center; gap: 8px; animation: tth-no .25s both; }
.tth-mot-khoi .tth-khoi { width: 100%; height: auto; max-height: 170px; }
.tth-mot-khoi b { font: 800 20px/1 var(--chu-hoa); color: var(--phan-vang); }
.tth-dong { display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 4.25vw, 30px); gap: clamp(10px, 5cqw, 30px); width: 100%; max-width: 420px; padding: 0 8px 4px; border-bottom: 3px solid var(--phan-mo); }
.tth-dong-vat { position: relative; display: block; font: clamp(44px, 14.45vw, 78px)/1.1 var(--emoji); font: clamp(44px, 17cqw, 78px)/1.1 var(--emoji); animation: tth-no .28s both; }
.tth-dong.hinh .tth-dong-vat { width: clamp(50px, 16.15vw, 82px); width: clamp(50px, 19cqw, 82px); height: clamp(50px, 16.15vw, 82px); height: clamp(50px, 19cqw, 82px); margin-bottom: 6px; }
.tth-dong.so { margin-bottom: 28px; }
.tth-dong.so .tth-dong-vat::after { left: 50%; right: auto; top: 100%; translate: -50% 10px; height: 24px; padding: 0 8px; border-radius: 12px; font: 800 16px/24px var(--chu-hoa); white-space: nowrap; }
.tth-dong.hinh.so .tth-dong-vat::after { translate: -50% 16px; }

/* ---------- các số đến 100 (Lớp 1 Chủ đề 6): que tính, bảng chục – đơn vị, bảng các số 1–100 ---------- */
.tth-que-khung { display: flex; justify-content: center; width: 100%; min-height: 64px; }
.tth-que { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 8px 6%; width: 100%; }
.tth-que-nhom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 4px 1.36vw; gap: 4px 1.6cqw; }
.tth-que .bo, .tth-que .le { position: relative; display: block; animation: tth-no .25s both; }
.tth-que svg { display: block; width: auto; height: min(var(--caovw, 26vw), 130px); }
@supports (width: 1cqw) { .tth-que svg { height: min(var(--cao, 30cqw), 130px); } }
.tth-que .q { fill: #f6c76a; stroke: #b9822a; stroke-width: .8; }
.tth-que .day { fill: #e5484d; stroke: #9e2a2e; stroke-width: .8; }
.tth-que [data-so]::after { right: 50%; translate: 50% 0; top: -12px; }
.tth-bang-trong .tth-bangchuc { border-collapse: collapse; background: transparent; min-width: 0; font-family: var(--chu-hoa); text-align: center; max-width: 100%; }
.tth-bang-trong .tth-bangchuc th, .tth-bang-trong .tth-bangchuc td { border: 2px solid var(--phan-mo); padding: 2px 7px; background: transparent; }
.tth-bang-trong .tth-bangchuc th { font: 600 14px/1.3 var(--chu-hoa); color: rgba(252, 252, 242, .8); white-space: nowrap; }
.tth-bang-trong .tth-bangchuc td { font: 800 26px/1.3 var(--chu-hoa); color: var(--phan-vang); }
.tth-bang-trong .tth-bangchuc td:last-child { font-size: 17px; font-weight: 700; color: var(--phan); min-width: 7em; }
.tth-cau.gom { font-size: clamp(24px, 7vw, 36px); }
@supports (width: 1cqw) { .tth-cau.gom { font-size: clamp(22px, 8.4cqw, 38px); } }
.tth-cau.gom .tth-o { margin: 4px 0; }
.tth-loidoc { color: var(--phan-vang); }
.tth-dayso.rong { gap: 6px; }
.tth-dayso.rong .tth-phanso { width: 56px; font-size: 28px; }
@supports (width: 1cqw) { .tth-dayso.rong .tth-phanso { width: min(60px, 14.5cqw); font-size: min(30px, 7.6cqw); } }
.tth-sosanh.so100 { align-items: flex-start; gap: 12px; }
.tth-sosanh.so100 > .tth-o { margin-top: 4px; }
.tth-sotach { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 84px; }
.tth-sotach span { font: 600 16px/1.2 var(--chu-hoa); color: var(--phan-vang); white-space: nowrap; animation: tth-no .2s both; }
.tth-chinh.so100 { gap: 8px; }
.tth-chinh.so100 .tth-chinh-nhan { min-width: 0; width: 3.2em; }
.tth-chinh.so100 .tth-pm { width: 46px; height: 46px; font-size: 19px; }
.tth-chinh.so100 .tth-pm.muoi { background: var(--trang); color: var(--muc); }
.tth-chinh.so100 b { min-width: 1.8em; }
.tth-the-hop.lo { gap: 12px; }
.tth-the-hop.lo .tth-the {
  min-width: 70px; height: 84px; padding: 14px 8px 0; border: 3px solid var(--phan); border-radius: 10px 10px 18px 18px;
  background: rgba(255, 255, 255, .12); color: var(--phan); box-shadow: 0 4px 0 rgba(0, 0, 0, .25); font-size: 34px;
}
.tth-the-hop.lo .tth-the::before { content: ""; position: absolute; left: 14%; right: 14%; top: -11px; height: 10px; border-radius: 4px 4px 0 0; background: var(--khung); }
.tth-the-hop.lo .tth-the.dung { background: var(--la); border-color: var(--phan-vang); color: #fff; }
.tth-lo-so i { font-style: normal; }
.tth-the-hop.lo.goi .tth-lo-so i { color: #ff9fb2; }
.tth-bong.goi { border-color: var(--phan-vang); animation: tth-tho 1s infinite; }
.tth-bang100 { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; width: 100%; max-width: 520px; }
.tth-o100 {
  display: grid; place-items: center; aspect-ratio: 1; min-width: 0; padding: 0; border: 1.5px solid var(--phan-mo); border-radius: 6px;
  background: rgba(255, 255, 255, .05); font: 700 14px/1 var(--chu-hoa); color: var(--phan);
}
@supports (width: 1cqw) { .tth-o100 { font-size: clamp(12px, 4.3cqw, 24px); } }
button.tth-o100.xem { background: rgba(255, 226, 122, .2); }
button.tth-o100.chon { background: var(--phan-vang); border-color: var(--phan-vang); color: var(--den); }
.tth-manh { display: grid; grid-template-columns: repeat(var(--cot, 4), 1fr); gap: 4px; width: 100%; max-width: 300px; }
.tth-manh .tth-o100 { border-width: 2px; font-size: 26px; background: rgba(255, 255, 255, .08); }
@supports (width: 1cqw) { .tth-manh .tth-o100 { font-size: clamp(20px, 8cqw, 32px); } }
.tth-manh .tth-o100.an { visibility: hidden; }
.tth-manh .tth-o100.hoi { border: 3px dashed var(--phan-vang); color: var(--phan-vang); animation: tth-tho 1.2s infinite; }
.tth-manh .tth-o100.hoi.day { border-style: solid; background: var(--phan-vang); color: var(--den); animation: tth-no .25s both; }
.tth-luoi-hinh.so { grid-template-columns: repeat(4, 1fr); max-width: 380px; }
.tth-luoi-hinh.so .tth-nut-hinh { padding: 0; font: 800 30px/1 var(--chu-hoa); }
@supports (width: 1cqw) { .tth-luoi-hinh.so .tth-nut-hinh { font-size: clamp(24px, 9cqw, 40px); } }
.tth-phanso.the-giay { background: var(--phan); color: var(--den); border-color: var(--phan); box-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.tth-sosanh.so100 .tth-so { font-size: 58px; }
.tth-sosanh.so100 > .tth-o { font-size: 44px; }
@supports (width: 1cqw) {
  .tth-sosanh.so100 { gap: 3cqw; }
  .tth-sosanh.so100 .tth-so { font-size: clamp(40px, 15cqw, 70px); }
  .tth-sosanh.so100 > .tth-o { font-size: clamp(32px, 11cqw, 52px); }
  .tth-sotach { min-width: 0; }
  .tth-sotach span { font-size: clamp(12px, 3.9cqw, 17px); }
}
.tth-the-hop.lo { gap: 14px 10px; }
.tth-the-hop.lo .tth-the { min-width: 62px; }
.tth-bang100 { max-width: min(520px, 60vh); }

/* ---------- độ dài và đo độ dài (Lớp 1 Chủ đề 7) ---------- */
.tth-dodai-to { display: flex; justify-content: center; width: 100%; max-width: 560px; animation: tth-no .25s both; }
.tth-dodai-to .tth-khoi { width: 100%; height: auto; max-height: clamp(150px, 38vh, 300px); }
.tth-dodai-to.hep { max-width: 340px; }
.tth-khoi .luoi { stroke: rgba(252, 252, 242, .2); stroke-width: 1; }
.tth-khoi .luoi.o { stroke: rgba(252, 252, 242, .45); stroke-width: 1.2; }
.tth-khoi .net { stroke: var(--phan-vang); stroke-width: 2; stroke-dasharray: 5 4; fill: none; }
.tth-khoi .dat { stroke: var(--phan-mo); stroke-width: 3; stroke-linecap: round; }
.tth-khoi .mui { stroke: var(--phan); stroke-width: 2.5; stroke-linecap: round; }
.tth-khoi .thuoc .vach { stroke: #5a2b3a; stroke-width: 1.2; }
.tth-khoi text.thuoc { font: 700 12px/1 var(--chu-hoa); fill: #5a2b3a; text-anchor: middle; }
.tth-khoi text.thuoc.to { font-size: 16px; }
.tth-khoi text.nhan.nho { font-size: 13px; }
.tth-khoi text.nhan.buoc { font-size: 16px; fill: var(--phan); stroke: var(--bang); stroke-width: 4px; paint-order: stroke; }
.tth-khoi text.vat.nho { font-size: 30px; }
.tth-khoi text.vat.vua { font-size: 40px; }
.tth-khoi text.vat.tay { font-size: 38px; dominant-baseline: central; }
.tth-khoi .que1 { fill: #f6c76a; stroke: #b9822a; stroke-width: .8; }
.tth-khoi .kep { fill: none; stroke: #dfe3ea; stroke-width: 2.2; stroke-linecap: round; }
.tth-khoi .duong { fill: none; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.tth-khoi .duong.vang { stroke: #ffd23a; }
.tth-khoi .duong.xanh { stroke: #4fb3ff; }
.tth-khoi .dem { animation: tth-no .25s both; transform-box: fill-box; transform-origin: center; }
.tth-khoi .dem circle { fill: var(--phan-vang); stroke: none; }
.tth-khoi .dem text { font: 800 10px/1 var(--chu-hoa); fill: var(--den); text-anchor: middle; }
.tth-khay-con { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.tth-khay-con:empty { display: none; }
.tth-uoc { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tth-uoc .e { font: 76px/1.1 var(--emoji); animation: tth-no .25s both; }
@supports (width: 1cqw) { .tth-uoc .e { font-size: clamp(64px, 28cqw, 118px); } }
.tth-uoc .ten { font: 700 26px/1.2 var(--chu-hoa); color: var(--phan-vang); }
.tth-the-hop.dovat .tth-the { height: auto; min-height: 80px; padding: 6px 12px; }
.tth-dovat-the { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tth-dovat-the .e { font: 34px/1 var(--emoji); }
.tth-dovat-the .cm { font: 800 19px/1 var(--chu-hoa); }

/* ---------- cộng, trừ (không nhớ) trong phạm vi 100: đặt tính dọc, chuỗi phép tính, bài toán có lời văn ---------- */
.tth-dtinh { display: grid; grid-template-columns: auto repeat(var(--cot, 2), minmax(1em, auto)); align-items: center; justify-items: center; gap: 2px 6px; font: 800 52px/1.08 var(--chu-hoa); color: var(--phan); }
@supports (width: 1cqw) { .tth-dtinh { font-size: clamp(36px, 13cqw, 64px); } }
.tth-dtinh .s { min-width: 1em; padding: 0 .1em; border-radius: 10px; text-align: center; transition: background .2s; }
.tth-dtinh .p { padding-right: .12em; color: var(--phan-vang); font-size: .85em; }
.tth-dtinh .ten { font: 600 14px/1.2 var(--chu-hoa); color: rgba(252, 252, 242, .8); white-space: nowrap; }
.tth-dtinh .gach { grid-column: 2 / -1; justify-self: stretch; height: 0; margin: 2px 0 4px; border-top: 4px solid var(--phan); border-radius: 2px; }
.tth-dtinh .kq { color: var(--phan-vang); min-height: 1.08em; }
.tth-dtinh .s.o { display: inline-grid; place-items: center; min-width: .95em; border: 3px dashed var(--phan-vang); color: var(--phan-vang); font-size: .8em; line-height: 1.3; }
.tth-dtinh .s.day { background: var(--phan-vang); color: var(--den); animation: tth-no .25s both; }
.tth-dtinh .s.sang { background: rgba(255, 226, 122, .25); box-shadow: 0 0 0 2px var(--phan-vang); }
.tth-dtinh .s.sang.day { background: var(--phan-vang); }
.tth-dtinh .s[data-nho] { position: relative; }
.tth-dtinh .s[data-nho]::before { content: attr(data-nho); position: absolute; right: 100%; top: 50%; transform: translateY(-50%); margin-right: 2px; padding: 1px 6px; border-radius: 8px; background: var(--phan-vang); color: var(--den); font: 800 13px/1.3 var(--chu-hoa); white-space: nowrap; animation: tth-no .25s both; }
.tth-dtinh-que .tth-que.moi { outline: 3px dashed var(--phan-vang); outline-offset: 3px; border-radius: 10px; }
.tth-dtinh.goi { font-size: 30px; opacity: .92; animation: tth-no .25s both; }
.tth-dtinh.nho { font-size: 24px; gap: 0 3px; color: var(--muc); }
.tth-dtinh.nho .p { color: var(--muc); }
.tth-dtinh.nho .gach { border-top-width: 3px; border-color: var(--muc); margin: 1px 0 2px; }
.tth-the-hop.dtinh .tth-the { height: auto; min-width: 0; padding: 8px 12px; }
.tth-the-hop.dtinh .tth-the.dung .tth-dtinh, .tth-the-hop.dtinh .tth-the.dung .tth-dtinh .p { color: #fff; }
.tth-the-hop.dtinh .tth-the.dung .tth-dtinh .gach { border-color: #fff; }
.tth-dtinh-que { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.tth-dtinh-que .tth-que svg, .tth-que-khung.nho .tth-que svg { height: min(var(--caovw, 26vw), 58px); }
@supports (width: 1cqw) { .tth-dtinh-que .tth-que svg, .tth-que-khung.nho .tth-que svg { height: min(var(--cao, 30cqw), 58px); } }
.tth-que .gach { opacity: .22; }
.tth-dtinh-khung { display: flex; justify-content: center; }
.tth-chuoi100 { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; }
.tth-chuoi100 .vong { display: grid; place-items: center; flex: 0 0 auto; width: 70px; height: 70px; border: 3px solid var(--phan); border-radius: 50%; font: 800 30px/1 var(--chu-hoa); color: var(--phan); }
@supports (width: 1cqw) { .tth-chuoi100 .vong { width: min(76px, 20cqw); height: min(76px, 20cqw); font-size: min(32px, 8.6cqw); } }
.tth-chuoi100 .vong.o { border-style: dashed; border-color: var(--phan-vang); color: var(--phan-vang); }
.tth-chuoi100 .vong.day { border-style: solid; border-color: var(--phan-vang); background: var(--phan-vang); color: var(--den); animation: tth-no .25s both; }
.tth-chuoi100 .mui { position: relative; flex: 1 1 0; min-width: 0; max-width: 110px; height: 4px; margin-top: 26px; background: var(--phan); border-radius: 2px; }
.tth-chuoi100 .mui::after { content: ""; position: absolute; right: -2px; top: -7px; border: 9px solid transparent; border-left: 12px solid var(--phan); border-right: 0; }
.tth-chuoi100 .mui b { position: absolute; left: 50%; bottom: 8px; translate: -50% 0; font: 800 22px/1 var(--chu-hoa); color: var(--phan-vang); white-space: nowrap; }
@supports (width: 1cqw) { .tth-chuoi100 .mui b { font-size: clamp(16px, 6cqw, 24px); } }
.tth-the-hop.phep { gap: 12px; }
.tth-the-hop.phep .tth-the { height: auto; min-height: 60px; padding: 8px 18px; border-radius: 999px; border-color: var(--khung-dam); background: var(--phan-vang); color: var(--den); box-shadow: 0 4px 0 var(--khung-dam); font-size: 28px; white-space: nowrap; }
@supports (width: 1cqw) { .tth-the-hop.phep .tth-the { font-size: clamp(22px, 8cqw, 32px); } }
.tth-the-hop.phep .tth-the.dung { background: var(--la); color: #fff; }
.tth-the-hop.phep.goi .tth-the:not(.sai) { animation: tth-lac .5s 2; }
.tth-loivan { display: flex; align-items: flex-start; gap: 10px; width: 100%; max-width: 560px; }
.tth-loivan-e { flex: 0 0 auto; font: 44px/1.1 var(--emoji); }
.tth-loivan p { margin: 0; font: 600 19px/1.45 var(--chu-hoa); color: var(--phan); text-align: left; }
@supports (width: 1cqw) { .tth-loivan p { font-size: clamp(17px, 5.4cqw, 23px); } }

/* ---------- thời gian: đồng hồ, các ngày trong tuần, tờ lịch (Lớp 1 Chủ đề 9) ---------- */
.tth-dh-to { display: flex; justify-content: center; animation: tth-no .25s both; }
.tth-dh-to .tth-khoi { width: min(230px, 58vw); height: auto; max-height: 36vh; }
@supports (width: 1cqw) { .tth-dh-to .tth-khoi { width: min(230px, 56cqw); } }
.tth-dh-to.nho .tth-khoi { width: min(170px, 40vw); }
@supports (width: 1cqw) { .tth-dh-to.nho .tth-khoi { width: min(170px, 40cqw); } }
.tth-khoi.dongho .vien { stroke: rgba(0, 0, 0, .28); stroke-width: 1.5; }
.tth-khoi.dongho .mat { fill: #fffdf4; stroke: rgba(0, 0, 0, .2); stroke-width: 1; }
.tth-khoi.dongho .vach { stroke: #a3abbb; stroke-width: .8; }
.tth-khoi.dongho .vach.to { stroke: #1f2a44; stroke-width: 1.7; }
.tth-khoi.dongho text.so { font: 800 12.5px/1 var(--chu-hoa); fill: #1f2a44; text-anchor: middle; transition: fill .2s; }
.tth-khoi.dongho text.so.sang { fill: #e5484d; font-size: 16px; }
.tth-khoi.dongho .kim path { stroke-linejoin: round; stroke-width: .8; }
.tth-khoi.dongho .kim.ngan path { fill: #1f2a44; stroke: #1f2a44; }
.tth-khoi.dongho .kim.dai path { fill: #e5484d; stroke: #b3262b; }
.tth-khoi.dongho .tam { fill: #1f2a44; stroke: #fffdf4; stroke-width: 1.4; }
.tth-khoi.dongho.quay .kim { transition: transform 1.1s cubic-bezier(.45, .05, .3, 1); }
.tth-khoi.dongho .dem circle { fill: #ffd23a; }
.tth-dh-chu { display: flex; justify-content: center; gap: 18px; font: 600 16px/1.3 var(--chu-hoa); color: var(--phan); }
.tth-dh-chu i { display: inline-block; width: 26px; height: 6px; margin-right: 6px; border-radius: 3px; vertical-align: middle; }
.tth-dh-chu i.ngan { width: 18px; height: 9px; background: #1f2a44; outline: 2px solid #fffdf4; }
.tth-dh-chu i.dai { background: #ff7a73; }
.tth-dh-kp { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; }
.tth-canh { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; }
.tth-canh-e { display: flex; flex-direction: column; align-items: center; gap: 4px; animation: tth-no .25s both; }
.tth-canh-e.an { display: none; }
.tth-canh-e .e { font: 68px/1.1 var(--emoji); }
@supports (width: 1cqw) { .tth-canh-e .e { font-size: clamp(48px, 18cqw, 84px); } }
.tth-canh-e .buoi { padding: 2px 12px; border-radius: 999px; background: var(--phan-vang); color: var(--den); font: 700 17px/1.4 var(--chu-hoa); white-space: nowrap; }
.tth-the-hop.dh { gap: 10px; }
.tth-the-hop.dh .tth-the { height: auto; min-width: 0; padding: 4px; border-radius: 16px; }
.tth-the-hop.dh .tth-khoi { display: block; width: clamp(78px, 24vw, 112px); height: auto; }
@supports (width: 1cqw) { .tth-the-hop.dh .tth-khoi { width: clamp(76px, 27cqw, 120px); } }
.tth-the-hop.viec .tth-the { min-width: 58px; font-size: 32px; }
.tth-ten-the { display: inline-flex; align-items: center; gap: 6px; }
.tth-ten-the .e { font: 24px/1 var(--emoji); }
.tth-the-hop.chu .tth-the:has(.tth-ten-the) { height: auto; min-height: 54px; padding: 6px 14px; font-size: 19px; line-height: 1.2; }
.tth-the-hop.ngay .tth-the { min-width: 98px; padding: 0 10px; }
/* bảng giờ (tiết mục, chuyến bay) */
.tth-bgio { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 440px; }
.tth-bgio .hang { display: flex; align-items: center; gap: 10px; padding: 4px 10px; border-radius: 14px; background: rgba(252, 252, 242, .1); }
.tth-bgio .hang.hoi { background: rgba(255, 226, 122, .2); box-shadow: 0 0 0 2px var(--phan-vang); }
.tth-bgio .e { font: 30px/1 var(--emoji); }
.tth-bgio .ten { flex: 1 1 auto; font: 700 19px/1.2 var(--chu-hoa); color: var(--phan); text-align: left; }
.tth-bgio .tth-khoi { flex: 0 0 auto; width: 68px; height: 68px; }
.tth-bgio .gio { font: 800 16px/1 var(--chu-hoa); color: var(--phan-vang); white-space: nowrap; animation: tth-no .25s both; }
/* dãy ngày: hôm qua – hôm nay – ngày mai */
.tth-dayngay { display: flex; align-items: flex-start; justify-content: center; gap: 8px; width: 100%; }
.tth-ongay { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 0 1 112px; min-width: 0; animation: tth-no .25s both; }
.tth-ongay b { display: grid; place-items: center; width: 100%; min-height: 58px; padding: 4px; border-radius: 14px; background: var(--phan); color: var(--den); font: 800 21px/1.15 var(--chu-hoa); text-align: center; }
@supports (width: 1cqw) { .tth-ongay b { font-size: clamp(16px, 5.6cqw, 23px); } }
.tth-ongay span { font: 600 16px/1.2 var(--chu-hoa); color: var(--phan); white-space: nowrap; }
.tth-ongay.hoi b { background: transparent; border: 3px dashed var(--phan-vang); color: var(--phan-vang); font-size: 30px; }
.tth-ongay.trong b { background: rgba(252, 252, 242, .14); color: var(--phan-mo); }
.tth-ongay.nay b { background: var(--phan-vang); }
.tth-dayngay.mui .tth-ongay + .tth-ongay { position: relative; }
.tth-tuan { display: flex; justify-content: center; gap: 4px; width: 100%; animation: tth-no .25s both; }
.tth-tuan span { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 1 48px; min-width: 0; height: 46px; border-radius: 10px; background: rgba(252, 252, 242, .14); color: var(--phan); }
.tth-tuan span small { font: 600 11px/1 var(--chu-hoa); opacity: .8; }
.tth-tuan span b { font: 800 16px/1.15 var(--chu-hoa); }
.tth-tuan span.sang { background: var(--phan-vang); color: var(--den); }
.tth-tuan-kp { width: 100%; }
.tth-cau.nho2 { font-size: clamp(18px, 5vw, 24px); }
/* bảng theo ngày trong tuần (lịch chơi thể thao, số cà rốt) */
.tth-btuan { display: grid; grid-template-columns: 1fr; gap: 3px; width: 100%; max-width: 380px; }
.tth-btuan .hang { display: grid; grid-template-columns: 7.2em 1fr; align-items: center; gap: 8px; padding: 2px 10px; border-radius: 10px; background: rgba(252, 252, 242, .1); font: 700 18px/1.5 var(--chu-hoa); color: var(--phan); }
.tth-btuan .hang .ngay { text-align: left; }
.tth-btuan .hang .gt { display: flex; align-items: center; gap: 8px; }
.tth-btuan .hang .gt i { font: normal 22px/1 var(--emoji); }
.tth-btuan.so .hang .gt b { min-width: 1.4em; color: var(--phan-vang); font-size: 21px; }
.tth-btuan .hang.hoi { box-shadow: 0 0 0 2px var(--phan-vang); }
.tth-btuan .hang.sang { background: var(--phan-vang); color: var(--den); }
.tth-btuan.so .hang.sang .gt b { color: var(--den); }
/* tờ lịch */
.tth-daylich { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; flex-wrap: wrap; }
.tth-daylich.nho { gap: 6px; margin-top: 4px; }
.tth-lich-o { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tth-lich-o .nhan { font: 700 16px/1.2 var(--chu-hoa); color: var(--phan); }
.tth-lich { display: flex; flex-direction: column; align-items: center; width: 104px; overflow: hidden; border-radius: 10px; background: #fffdf4; box-shadow: 0 4px 0 rgba(0, 0, 0, .22); color: #1f2a44; animation: tth-no .25s both; }
.tth-lich .th { align-self: stretch; padding: 3px 0; background: #e5484d; color: #fff; font: 700 15px/1.2 var(--chu-hoa); text-align: center; }
.tth-lich .ng { font: 800 50px/1.05 var(--chu-hoa); }
.tth-lich .thu { padding-bottom: 6px; font: 700 15px/1.2 var(--chu-hoa); color: #4b2fa0; }
.tth-lich.cn .thu, .tth-lich.cn .ng { color: #e5484d; }
.tth-lich.hoi .ng, .tth-lich.hoi .thu:only-child { color: #c98a00; }
.tth-lich.to { width: 150px; }
.tth-lich.to .th { font-size: 18px; }
.tth-lich.to .ng { font-size: 74px; }
.tth-lich.to .thu { font-size: 19px; }
.tth-lich.nho { width: 60px; border-radius: 7px; box-shadow: 0 2px 0 rgba(0, 0, 0, .22); }
.tth-lich.nho .th { font-size: 10px; padding: 1px 0; }
.tth-lich.nho .ng { font-size: 26px; }
.tth-lich.nho .thu { font-size: 10px; padding-bottom: 3px; }
.tth-lich.nho.sang { outline: 3px solid var(--phan-vang); }
.tth-lich-nut { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
/* hết mấy giờ */
.tth-hetgio { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.tth-hetgio .o { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tth-hetgio .nhan { font: 700 17px/1.2 var(--chu-hoa); color: var(--phan); white-space: nowrap; }
.tth-hetgio .tth-khoi { width: min(140px, 36vw); height: auto; }
@supports (width: 1cqw) { .tth-hetgio .tth-khoi { width: min(150px, 37cqw); } }
.tth-hetgio .mui { font: 800 30px/1 var(--chu-hoa); color: var(--phan-vang); }

/* ---------- Lớp 2 Chủ đề 1: tia số, liền trước – liền sau, viết số thành tổng, thành phần phép tính, hơn kém ---------- */
.tth-tia-khung { display: flex; justify-content: center; width: 100%; }
.tth-tia { position: relative; display: grid; grid-template-columns: repeat(var(--n, 11), minmax(0, 1fr)); width: 100%; max-width: 600px; padding: 0 24px 0 2px; animation: tth-no .25s both; }
.tth-tia.co-nhan { margin-top: 22px; }
.tth-tia.nho { max-width: 330px; }
.tth-tia .truc { position: absolute; left: 0; right: 6px; top: 20px; border-top: 3px solid var(--phan); }
.tth-tia .truc::after { content: ""; position: absolute; right: -6px; top: -10px; border-style: solid; border-width: 8.5px 0 8.5px 15px; border-color: transparent transparent transparent var(--phan); }
.tth-tia-o { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding-top: 12px; min-width: 0; }
.tth-tia-o .vach { display: block; width: 3px; height: 17px; border-radius: 2px; background: var(--phan); }
.tth-tia-so { min-width: 1.2em; padding: 0 .12em; border: 2.5px solid transparent; border-radius: 8px; font: 800 22px/1.2 var(--chu-hoa); text-align: center; white-space: nowrap; }
@supports (width: 1cqw) { .tth-tia-so { font-size: clamp(14px, 6cqw, 28px); } }
.tth-tia-so.hoi { border: 2.5px dashed var(--phan-vang); color: var(--phan-vang); animation: tth-tho 1.2s infinite; }
.tth-tia-so.day { background: var(--phan-vang); border-color: var(--phan-vang); color: var(--den); animation: tth-no .25s both; }
.tth-tia-so.mo { color: var(--phan-vang); opacity: .85; animation: tth-no .25s both; }
.tth-tia-o.moc::before { content: ""; position: absolute; top: 11px; left: 50%; width: 19px; height: 19px; margin-left: -9.5px; border-radius: 50%; background: var(--phan-vang); box-shadow: 0 0 0 4px rgba(255, 226, 122, .3); z-index: 1; }
.tth-tia-o.moc .tth-tia-so { color: var(--phan-vang); }
.tth-tia-o.truoc .tth-tia-so { background: #ff9fb2; border-color: #ff9fb2; color: var(--den); }
.tth-tia-o.sau .tth-tia-so { background: #8fd3ff; border-color: #8fd3ff; color: var(--den); }
.tth-tia-o[data-nhan]::after { content: attr(data-nhan); position: absolute; top: -20px; left: 50%; translate: -50% 0; font: 700 13px/1.2 var(--chu-hoa); white-space: nowrap; color: #ff9fb2; }
.tth-tia-o.sau[data-nhan]::after { color: #8fd3ff; }
.tth-tia.chon { padding-bottom: 2px; }
.tth-tia-nut { aspect-ratio: auto; width: 100%; max-width: 50px; min-width: 0; height: 46px; padding: 0; border-width: 2.5px; border-radius: 10px; font: 800 22px/1 var(--chu-hoa); }
@supports (width: 1cqw) { .tth-tia-nut { font-size: clamp(15px, 6cqw, 28px); } }
.tth-tia-nut.dung { background: var(--phan-vang); color: var(--den); }
.tth-bang-trong .tth-lien td, .tth-bang-trong .tth-lien td:last-child, .tth-bang-trong .tth-tpbang td, .tth-bang-trong .tth-tpbang td:last-child { min-width: 2.4em; font: 800 30px/1.3 var(--chu-hoa); color: var(--phan-vang); }
.tth-bang-trong .tth-lien th { white-space: normal; }
.tth-bang-trong .tth-tpbang th { text-align: left; font-size: 17px; padding: 2px 12px; }
.tth-bangchuc td.hoi { color: var(--phan-vang); background: rgba(255, 226, 122, .12); animation: tth-tho 1.2s infinite; }
.tth-bangchuc td.day { background: var(--phan-vang); color: var(--den) !important; animation: tth-no .25s both; }
.tth-sodo-to { display: flex; justify-content: center; width: 100%; max-width: 250px; }
.tth-sodo { width: 100%; height: auto; max-height: clamp(110px, 22vh, 150px); overflow: visible; }
.tth-sodo .net { stroke: var(--phan); stroke-width: 3; }
.tth-sodo .vong circle { fill: var(--bang); stroke: var(--phan); stroke-width: 3; }
.tth-sodo .vong text { font: 800 27px/1 var(--chu-hoa); fill: var(--phan); text-anchor: middle; }
.tth-sodo .vong.hoi circle { stroke: var(--phan-vang); stroke-dasharray: 7 5; }
.tth-sodo .vong.hoi text { fill: var(--phan-vang); }
.tth-sodo .vong.day circle { fill: var(--phan-vang); stroke: var(--phan-vang); }
.tth-sodo .vong.day text { fill: var(--den); }
.tth-tp { display: flex; align-items: flex-start; justify-content: center; gap: 4px 6px; flex-wrap: nowrap; }
.tth-tp-dau { font: 800 44px/1.2 var(--chu-hoa); color: var(--phan-vang); }
.tth-tp-o { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; padding: 2px 6px 6px; border: 3px solid transparent; border-radius: 14px; transition: background .2s, border-color .2s; }
.tth-tp-so { font: 800 44px/1.2 var(--chu-hoa); color: var(--phan); }
.tth-tp-ten { font: 700 16px/1.15 var(--chu-hoa); color: rgba(252, 252, 242, .82); text-align: center; white-space: nowrap; }
@supports (width: 1cqw) {
  .tth-tp-dau, .tth-tp-so { font-size: clamp(28px, 10cqw, 52px); }
  .tth-tp-o { min-width: clamp(48px, 18cqw, 92px); padding-inline: 2px; }
  .tth-tp-ten { font-size: clamp(13px, 4.2cqw, 17px); }
}
.tth-tp-o.sang { border-color: var(--phan-vang); background: rgba(255, 226, 122, .18); }
.tth-tp-o.sang .tth-tp-so { color: var(--phan-vang); }
.tth-tp.an .tth-tp-ten { visibility: hidden; }
.tth-tp.an .tth-tp-o.lo .tth-tp-ten { visibility: visible; color: var(--phan-vang); animation: tth-no .25s both; }
.tth-tp-bam { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 12px; background: none; cursor: pointer; }
.tth-tp.bam .tth-tp-o { border-style: dashed; border-color: var(--phan-mo); }
.tth-tp.bam .tth-tp-o.sang { border-style: solid; border-color: var(--phan-vang); }
.tth-tp-khung { display: flex; justify-content: center; width: 100%; }
.tth-tp-the { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.tth-tp-the .tth-tp-o { border: 3px solid var(--phan-mo); background: rgba(255, 255, 255, .06); padding: 4px 10px 8px; }
.tth-tp-the .tth-tp-ten { font-size: 15px; }
.tth-bangmau { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 520px; }
.tth-bangmau-hang { display: flex; align-items: center; gap: 10px; }
.tth-bangmau-hang i { display: block; height: 30px; border-radius: 4px; box-shadow: 0 3px 0 rgba(0, 0, 0, .25); animation: tth-no .3s both; }
.tth-bangmau-hang span { font: 800 22px/1 var(--chu-hoa); color: var(--phan); white-space: nowrap; }

/* ===== Lớp 2 Chủ đề 2: cộng, trừ qua 10 trong phạm vi 20; bài toán thêm, bớt, nhiều hơn, ít hơn ===== */
.tth-k20 { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tth-k20-o { display: grid; grid-template-columns: repeat(5, auto); gap: 3px; padding: 4px; border: 3px solid var(--phan-mo); border-radius: 9px; transition: border-color .2s; }
.tth-k20-c { display: grid; place-items: center; width: 31px; height: 31px; border: 1.5px dashed var(--phan-mo); border-radius: 5px; }
@supports (width: 1cqw) { .tth-k20-c { width: min(31px, 7.4cqw); height: min(31px, 7.4cqw); } }
.tth-k20 .tth-quan { width: 84%; height: 84%; border-width: 2px; }
.tth-k20 .tth-quan.chuyen { box-shadow: 0 0 0 3px var(--phan-vang); }
.tth-k20.tach .tth-k20-o:first-child, .tth-k20.sang1 .tth-k20-o:first-child, .tth-k20.sang2 .tth-k20-o:last-child { border-color: var(--phan-vang); }
.tth-k20-khung.nho .tth-k20-c { width: 24px; height: 24px; }
@supports (width: 1cqw) { .tth-k20-khung.nho .tth-k20-c { width: min(24px, 6cqw); height: min(24px, 6cqw); } }
.tth-q10-tach { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tth-q10-tach .tth-cau { margin: 0; }
.tth-q10-tach .tth-cau.hien { animation: tth-no .35s both; }
.tth-cau.nho.goi:empty { display: none; }
.tth-bang-trong .tth-b20 th { text-align: left; font-size: 15px; padding: 2px 8px; }
.tth-bang-trong .tth-b20 td, .tth-bang-trong .tth-b20 td:last-child { min-width: 1.9em; padding: 2px 6px; font: 800 26px/1.3 var(--chu-hoa); color: var(--phan-vang); }
.tth-bang-trong .tth-b20 td.dang { outline: 3px solid var(--phan-vang); outline-offset: -4px; }
.tth-tomtat { width: 100%; max-width: 560px; padding: 4px 12px 6px; border: 2px dashed var(--phan-mo); border-radius: 10px; text-align: left; }
.tth-tomtat-ten { display: block; font: 700 15px/1.4 var(--chu-hoa); color: var(--phan-vang); }
.tth-tomtat p { margin: 0; font: 600 17px/1.4 var(--chu-hoa); color: var(--phan); }
.tth-tomtat p span { margin-right: 4px; color: var(--phan-vang); }
.tth-baigiai { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tth-baigiai-lg { margin: 0; font: 600 17px/1.4 var(--chu-hoa); color: var(--phan); }
.tth-baigiai > .tth-cau:not(.nho) { font-size: clamp(24px, 7vw, 32px); }
.tth-b20-luoi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; max-width: 520px; }
.tth-b20-o { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 54px; padding: 4px 2px; border: 2px solid var(--phan-mo); border-radius: 10px; background: rgba(255, 255, 255, .05); font: 700 18px/1.2 var(--chu-hoa); white-space: nowrap; cursor: pointer; }
.tth-b20-o b { color: var(--phan-vang); }
.tth-b20-o.da { border-color: var(--phan-vang); }
.tth-b20-o.sang { background: var(--phan-vang); color: var(--den); }
.tth-b20-o.sang b { color: var(--den); }
.tth-hainhom .tth-vat.bot { opacity: .4; }
.tth-hainhom .tth-vat.bot::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: #ff8fa3; rotate: -40deg; }
.tth-hainhom.them .tth-hang.moi .tth-vat { border-radius: 50%; box-shadow: 0 0 0 3px #7cc8ff; }
.tth-bt-thieu { justify-self: center; font: 700 17px/1.2 var(--chu-hoa); color: #ff9fb2; }
.tth-bt-kp { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.tth-bt-kp .tth-hainhom { gap: 10px; }
.tth-cau.nho.tth-bt-de { color: var(--phan); }

/* ===== Lớp 2 Chủ đề 3 – cân đĩa, cân đồng hồ, ca – bình (khối lượng, dung tích) ===== */
.tth-kl-to { display: flex; justify-content: center; width: 100%; max-width: 420px; animation: tth-no .25s both; }
.tth-kl-to .tth-khoi { width: 100%; height: auto; max-height: clamp(150px, 34vh, 280px); }
.tth-kl-to.hep { max-width: 230px; }
.tth-kl-to.rong { max-width: 560px; }
.tth-kl-hai { display: flex; justify-content: center; align-items: flex-end; gap: 10px; width: 100%; max-width: 640px; }
.tth-kl-hai .tth-kl-to { flex: 1 1 0; min-width: 0; }
.tth-kl-hai .tth-kl-to.hep { flex: 0 1 34%; }
.tth-kl-hai .tth-kl-to .tth-khoi { max-height: clamp(110px, 26vh, 230px); }
.tth-khoi .donca { stroke: #c9ccd3; stroke-width: 7; stroke-linecap: round; }
.tth-khoi .day { stroke: var(--phan-mo); stroke-width: 1.6; }
.tth-khoi .kimcan { stroke: #ff5a5a; stroke-width: 3; stroke-linecap: round; }
.tth-khoi .quai { fill: none; stroke: #e8f2ff; stroke-width: 4; stroke-linecap: round; }
.tth-khoi .nuoc { fill: #5ab8ff; stroke: none; opacity: .92; }
.tth-khoi .vienbinh { fill: none; stroke: #e8f2ff; stroke-width: 2.2; stroke-linejoin: round; }
.tth-khoi .thuytinh { stroke: none; }
.tth-khoi .dai { stroke: #e8f2ff; stroke-width: 2; }
.tth-khoi text.kl { font: 800 14px/1 var(--chu-hoa); fill: #1f2a44; text-anchor: middle; stroke: #fff; stroke-width: 3px; paint-order: stroke; }
.tth-khoi text.kl.nho { font-size: 11px; }
.tth-khoi text.kgc { font: 800 10.5px/1 var(--chu-hoa); fill: #1f2a44; text-anchor: middle; }
.tth-khoi text.dhso { font: 800 11px/1 var(--chu-hoa); fill: #1f2a44; text-anchor: middle; }
.tth-khoi text.dhso.nho { font-size: 9px; fill: #6b7280; }
.tth-khoi text.vat.kl0 { font-size: 34px; }
.tth-kl-hai.doc { flex-direction: column; align-items: center; gap: 4px; }
.tth-kl-hai.doc .tth-kl-to { flex: 0 0 auto; width: 100%; }
.tth-kl-hai.doc .tth-kl-to .tth-khoi { max-height: clamp(110px, 22vh, 190px); }

/* ---------- hình phẳng (Lớp 2 Chủ đề 5): điểm, đoạn thẳng, đường thẳng, đường cong, đường gấp khúc, hình tứ giác ---------- */
.tth-khoi .hp-doan { stroke: var(--phan); stroke-width: 3; stroke-linecap: round; fill: none; }
.tth-khoi .hp-doan.sang { stroke: var(--phan-vang); stroke-width: 5.5; }
.tth-khoi .hp-doan.mo { stroke: var(--phan-mo); stroke-dasharray: 4 5; }
.tth-khoi .hp-doan.cong { stroke-width: 3.5; }
.tth-khoi .hp-doan.duong { stroke: #ffd23a; stroke-width: 5; }
.tth-khoi .hp-diem .cham { fill: var(--phan); stroke: var(--bang); stroke-width: 1.5; }
.tth-khoi .hp-diem.nho .cham { r: 3.6px; }
.tth-khoi .hp-diem.bam { cursor: pointer; }
.tth-khoi .hp-diem.bam .cham { r: 7px; fill: var(--phan-vang); }
.tth-khoi .hp-diem.chon .cham { r: 9px; fill: var(--phan-vang); stroke: var(--phan); stroke-width: 3; }
.tth-khoi text.hp-ten { font: 800 18px/1 var(--chu-hoa); fill: var(--phan); text-anchor: middle; pointer-events: none; }
.tth-khoi text.hp-ten.ban { font-size: 14px; fill: var(--phan-vang); }
.tth-khoi text.hp-so { font: 700 14px/1 var(--chu-hoa); fill: var(--phan-vang); text-anchor: middle; }
.tth-khoi .hp-da { stroke: var(--den); stroke-width: 2; stroke-linejoin: round; }
.tth-khoi .hp-da.sang { stroke: var(--phan-vang); stroke-width: 5; }
.tth-khoi .hp-da.chia { opacity: .55; stroke: none; }
.tth-khoi .hp-sang { fill: rgba(255, 226, 122, .7); stroke: var(--phan-vang); stroke-width: 6; }
.tth-khoi .hp-thuoc { fill: rgba(255, 208, 220, .9); }
.tth-khoi .duong.do { stroke: #ff6b6b; }
.hp-to .tth-khoi { max-height: clamp(160px, 40vh, 320px); }
.hp-to.cao .tth-khoi { max-height: clamp(220px, 52vh, 420px); }
.hp-to.hep { max-width: 300px; }
.tth-hp-luoi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 420px; }
.tth-hp-luoi .tth-nut-hinh { min-height: 44px; }
.tth-hp-luoi .tth-khoi.nho { width: 100%; height: auto; }
.tth-hang-nut-hp { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tth-the-hop.diem .tth-the { min-width: 56px; font-size: 24px; }
/* ---------- Lớp 2 Chủ đề 6: đồng hồ có phút, 24 giờ, đồng hồ điện tử, tờ lịch tháng ---------- */
.tth-dhdt { display: inline-flex; align-items: center; justify-content: center; padding: 5px 12px; border-radius: 12px; background: #13261c; border: 3px solid #3d5a4a; box-shadow: inset 0 0 0 2px #0b1711; animation: tth-no .25s both; }
.tth-dhdt b { font: 800 26px/1.05 var(--chu-hoa); color: #7dffa0; letter-spacing: .06em; font-variant-numeric: tabular-nums; text-shadow: 0 0 6px rgba(125, 255, 160, .55); }
.tth-dhdt.to { padding: 8px 20px; border-radius: 16px; }
.tth-dhdt.to b { font-size: 54px; }
@supports (width: 1cqw) { .tth-dhdt.to b { font-size: clamp(40px, 15cqw, 66px); } }
.tth-the-hop.dt { gap: 10px; }
.tth-the-hop.dt .tth-the { height: auto; padding: 6px; border-radius: 16px; }
.tth-the-hop.dt .tth-dhdt b { font-size: 25px; }
.tth-the-hop.gp .tth-the { font-size: 19px; padding: 0 12px; }
.tth-buoi { display: inline-flex; align-items: center; gap: 4px; padding: 2px 12px; border-radius: 999px; background: var(--phan-vang); color: var(--den); font: 700 17px/1.4 var(--chu-hoa); white-space: nowrap; }
.tth-buoi i { font: normal 18px/1 var(--emoji); }
.tth-gp-dich { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 14px; border-radius: 14px; border: 2px dashed var(--phan-vang); background: rgba(252, 252, 242, .1); color: var(--phan); font: 800 21px/1.25 var(--chu-hoa); text-align: center; animation: tth-no .25s both; }
.tth-gp-dich i { font: normal 26px/1 var(--emoji); }
.tth-gp-dich.to { font-size: 28px; padding: 10px 18px; }
.tth-gp-dich.to i { font-size: 34px; }
.tth-gp-dt { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tth-gp-kim .tth-chinh-nhan { min-width: 86px; }
.tth-24 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; width: 100%; max-width: 430px; }
.tth-24.an { display: none; }
.tth-24 span { display: grid; place-items: center; height: 24px; border-radius: 6px; font: 800 12.5px/1 var(--chu-hoa); color: #1f2a44; transition: transform .15s; }
.tth-24 .b-sang { background: #ffeeb0; } .tth-24 .b-trua { background: #ffcf5a; } .tth-24 .b-chieu { background: #ffad86; }
.tth-24 .b-toi { background: #a9b0ff; } .tth-24 .b-dem { background: #4f5596; color: #fff; }
.tth-24 span.nay { transform: scale(1.18); box-shadow: 0 0 0 3px #fff, 0 0 0 5px #e5484d; position: relative; z-index: 1; }
/* tờ lịch cả tháng */
.tth-thang { width: 100%; max-width: 400px; padding: 0 6px 6px; overflow: hidden; border-radius: 12px; background: #fffdf4; color: #1f2a44; box-shadow: 0 4px 0 rgba(0, 0, 0, .22); animation: tth-no .25s both; }
.tth-thang .ten { display: block; margin: 0 -6px 5px; padding: 3px 0; background: #e5484d; color: #fff; font: 800 18px/1.25 var(--chu-hoa); text-align: center; }
.tth-thang .luoi { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.tth-thang .th { display: flex; flex-direction: column; align-items: center; padding: 1px 0; border-radius: 6px; color: #4b2fa0; line-height: 1.05; }
.tth-thang .th small { font: 600 10px/1.1 var(--chu-hoa); }
.tth-thang .th b { font: 800 13px/1.15 var(--chu-hoa); }
.tth-thang .th.cn { color: #e5484d; }
.tth-thang .th.sang { background: #ffe27a; color: #1f2a44; }
.tth-thang .ng { display: grid; place-items: center; height: 34px; padding: 0; border: 0; border-radius: 7px; background: #f0ece0; color: #1f2a44; font: 800 17px/1 var(--chu-hoa); }
@supports (width: 1cqw) { .tth-thang .ng { height: clamp(28px, 8.4cqw, 38px); } }
.tth-thang .ng.cn { color: #e5484d; }
.tth-thang .ng.cot { background: #fff1b8; }
.tth-thang .ng.an { background: transparent; box-shadow: inset 0 0 0 2px #d9b46a; color: #b07a00; }
.tth-thang .ng.hoi { background: #fff3c4; box-shadow: inset 0 0 0 3px #e0a400; animation: tth-lac .5s 2; }
.tth-thang .ng.sang { background: #ffe27a; }
.tth-thang .ng.vua { background: #c9f2d4; }
.tth-thang .ng.nay { box-shadow: inset 0 0 0 3px #e5484d; border-radius: 50%; }
.tth-thang .ng.dan { display: flex; flex-direction: column; justify-content: center; gap: 0; line-height: 1; }
.tth-thang .ng.dan i { font: normal 18px/1 var(--emoji); }
.tth-thang .ng.dan small { font: 800 11px/1 var(--chu-hoa); }
.tth-thang button.ng { cursor: pointer; height: 42px; }
.tth-thang-o { display: flex; justify-content: center; width: 100%; }
.tth-noiden { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tth-noiden span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: rgba(252, 252, 242, .14); color: var(--phan); font: 700 16px/1.4 var(--chu-hoa); }
.tth-noiden i { font: normal 18px/1 var(--emoji); }
.tth-le { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--phan); text-align: center; animation: tth-no .25s both; }
.tth-le .e { font: 72px/1.1 var(--emoji); }
.tth-le b { font: 800 24px/1.25 var(--chu-hoa); }
/* các bạn và giờ đến (đi học muộn, giờ mở cửa bảo tàng) */
.tth-the-hop.ban { gap: 8px; }
.tth-the-hop.ban .tth-the { height: auto; min-width: 96px; padding: 6px 8px; border-radius: 16px; }
.tth-ban-gio { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.tth-ban-gio .e { font: 32px/1 var(--emoji); }
.tth-ban-gio .ten { font: 800 17px/1.1 var(--chu-hoa); }
.tth-ban-gio .tth-khoi.dongho { width: 64px; height: 64px; }
.tth-ban-gio .tth-dhdt b { font-size: 22px; }
.tth-ban-gio .tth-buoi { padding: 0 8px; font-size: 14px; }
.tth-ban-gio .gio { font: 800 13px/1.15 var(--chu-hoa); color: var(--la); }
.tth-the.dung .tth-ban-gio .gio { color: #fff; }
.tth-the-hop.ban .tth-the { color: var(--den); }
.tth-the-hop.ban .tth-the.dung { color: #fff; }
.tth-the-hop.ngle .tth-the { font-size: 18px; padding: 0 10px; }
.tth-thang .ng.dan i { font-size: 20px; }
/* ---------- Lớp 2 Chủ đề 8: phép nhân, phép chia (nhóm bằng nhau, thẻ chấm, chia đều) ---------- */
.tth-nc-khung { display: flex; justify-content: center; width: 100%; }
.tth-nc-nhom { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; max-width: 100%; }
.tth-nc-hop { display: grid; justify-content: center; align-content: center; gap: 0 2px; min-width: 44px; min-height: 44px; padding: 6px 10px; border: 2px solid var(--phan-mo); border-radius: 14px; background: rgba(255, 255, 255, .07); }
.tth-nc-hop.dia { border-radius: 50%; padding: 8px 16px; background: rgba(252, 252, 242, .16); border-color: rgba(252, 252, 242, .55); }
.tth-nc-hop.lo { border-radius: 10px 10px 24px 24px; border-color: #9ad0ff; background: rgba(154, 208, 255, .14); }
.tth-nc-hop.be { border-radius: 8px; border-color: #7cc8ff; background: rgba(124, 200, 255, .24); }
.tth-nc-hop.gio { border-radius: 8px 8px 22px 22px; border-color: var(--khung); background: rgba(224, 176, 106, .22); }
.tth-nc-hop.la { border-radius: 50% 6px 50% 6px; border-color: #8be28b; background: rgba(139, 226, 139, .22); }
.tth-nc-hop.ban { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; max-width: 120px; border-radius: 14px; }
.tth-nc-hop.the { gap: 4px; min-width: 0; min-height: 0; padding: 7px; border: 0; border-radius: 9px; background: var(--phan); box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.tth-nc-vat { font: 30px/1.15 var(--emoji); text-align: center; }
@supports (width: 1cqw) { .tth-nc-vat { font-size: clamp(18px, 6.6cqw, 34px); } }
.tth-nc-cham { display: block; width: 13px; height: 13px; border-radius: 50%; background: var(--do); }
.tth-nc-nhom.nho { gap: 5px 6px; }
.tth-nc-nhom.nho .tth-nc-hop.the { padding: 5px; gap: 3px; }
.tth-nc-nhom.nho .tth-nc-cham { width: 10px; height: 10px; }
.tth-nc-ban { flex: 0 0 100%; font: 30px/1.1 var(--emoji); text-align: center; }
.tth-nc-chia { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.tth-nc-dong { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 2px; max-width: 360px; min-height: 30px; }
.tth-nc-dong.het { min-height: 0; }
.tth-nc-hop.mau { position: relative; border-style: dashed; }
.tth-nc-hop.mau::after { content: attr(data-nhan); position: absolute; left: 50%; top: 100%; translate: -50% 2px; padding: 0 8px; border-radius: 8px; background: var(--phan-vang); color: var(--den); font: 700 13px/1.4 var(--chu-hoa); white-space: nowrap; }
.tth-nc-hop.hien { animation: tth-no .3s both; }
.tth-nc-tong, .tth-nc-tich { white-space: normal; }
.tth-nc-nhan { font-size: clamp(22px, 6.4vw, 30px); color: var(--phan-vang); }
.tth-nc-luoi { grid-template-columns: repeat(5, 1fr); gap: 4px; }
.tth-nc-luoi .tth-b20-o { min-height: 46px; padding: 3px 1px; font-size: 17px; }
@supports (width: 1cqw) { .tth-nc-luoi .tth-b20-o { font-size: clamp(12px, 4.3cqw, 18px); } }

/* Lớp 2 Chủ đề 9 – khối trụ, khối cầu (đèn lồng, hình xếp, tháp hộp, tháp vòng, khối gỗ) */
.tth-khoi text.so.nho { font-size: 14px; stroke: none; }
.tth-khoi text.nhan.kg { font-size: 15px; fill: #1f2a44; }
.tth-khoi-to.cao { max-width: 440px; }
.tth-khoi-to.cao .tth-khoi { max-height: clamp(180px, 46vh, 340px); }
.tth-the-hop.hinh.vong .tth-the { width: 76px; height: 64px; padding: 6px; }

/* ---------- các số trong phạm vi 1 000 (Lớp 2 Chủ đề 10) ---------- */
.tth-k3, .tth-k3-khung { display: flex; justify-content: center; align-items: flex-end; max-width: 100%; }
.tth-k3-svg { display: block; max-width: 100%; height: auto; max-height: 30vh; overflow: visible; }
.tth-k3.nho .tth-k3-svg { max-height: 16vh; }
.tth-k3-g { transform-box: fill-box; transform-origin: center bottom; animation: tth-no .25s both; }
.tth-k3 .k-tr { fill: #9cc9ff; stroke: #1f5fa8; stroke-width: 1.3; }
.tth-k3 .k-ch { fill: #9be3a9; stroke: #237a3d; stroke-width: 1.3; }
.tth-k3 .k-dv { fill: #ffd84d; stroke: #b88a00; stroke-width: 1.3; }
.tth-k3 .k-luoi { fill: none; stroke: rgba(20, 40, 80, .42); stroke-width: .7; }
.tth-k3-hang { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; width: 100%; }
.tth-k3-hang.doc { flex-direction: column; }
.tth-k3-bang { font: 800 44px/1 var(--chu-hoa); color: var(--phan-vang); }
.tth-k3-sau { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tth-k3-sau b { font: 800 26px/1.1 var(--chu-hoa); color: var(--phan-vang); }
.tth-k3-sau span { font: 700 20px/1.1 var(--chu-hoa); color: var(--phan); }
.tth-k3-hang.doc .tth-k3-sau { flex-direction: row; gap: 12px; }
.tth-bang-trong .tth-bang3 td:last-child { min-width: 6.5em; font-size: 16px; }
.tth-bang-trong .tth-bang3 th, .tth-bang-trong .tth-bang3 td { padding: 2px 4px; }
.tth-k3-pt { white-space: normal; }
.tth-cau.vua.tth-k3-pt { font-size: clamp(26px, 7.4vw, 40px); }
.tth-k3-goi.to { font: 800 clamp(36px, 10vw, 52px)/1.2 var(--chu-hoa); color: var(--phan); }
.tth-ss3 { align-items: flex-end; gap: 8px; }
.tth-ss3 .tth-so3 { flex: 1 1 0; min-width: 0; }
.tth-ss3 .tth-so { font-size: clamp(34px, 10vw, 54px); white-space: nowrap; }
.tth-ss3 .tth-so.bieu { font-size: clamp(18px, 5.4vw, 36px); }
.tth-ss3 > .tth-o { font-size: clamp(32px, 9vw, 44px); margin-bottom: 6px; flex: 0 0 auto; }
.tth-so3 span { white-space: normal; text-align: center; font-size: 13px; }
.tth-chinh.so100 .tth-pm.tram { background: var(--muc-nen); color: var(--muc); font-size: 16px; }
.tth-chinh.so100.k3 { flex-wrap: wrap; gap: 4px 5px; }
.tth-chinh.so100.k3 .tth-chinh-nhan { flex: 0 0 100%; width: auto; text-align: center; font: 700 17px/1.2 var(--chu-hoa); color: var(--muc); }
.tth-chinh.so100.k3 .tth-pm { width: 44px; height: 44px; font-size: 16px; }
.tth-chinh.so100.k3 b { min-width: 2.3em; font-size: 26px; }
.tth-tia.tia3 .tth-tia-so { font-size: clamp(13px, 3.74vw, 24px); font-size: clamp(13px, 4.4cqw, 24px); }
.tth-day3 .tth-phanso { width: auto; min-width: 58px; padding: 0 4px; font-size: 26px; }
.tth-goi3 { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 8px; max-width: 520px; }
.tth-goi3-hop { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 60px; padding: 4px 6px 2px; border: 2.5px solid var(--khung); border-radius: 10px; background: rgba(255, 255, 255, .1); animation: tth-no .25s both; }
.tth-goi3-hop.to { min-width: 80px; padding: 8px 8px 4px; border-width: 3px; }
.tth-goi3-hop .e { font: 18px/1.1 var(--emoji); letter-spacing: -3px; }
.tth-goi3-hop.to .e { font-size: 24px; }
.tth-goi3-hop b { font: 800 20px/1.2 var(--chu-hoa); color: var(--phan-vang); }
.tth-goi3-hop i { font: 600 12px/1.1 var(--chu-hoa); font-style: normal; color: var(--phan-mo); }
.tth-goi3-hop[data-so]::after { top: -14px; right: 50%; translate: 50% 0; }
.tth-the-hop.lb3 { gap: 10px; }
.tth-the-hop.lb3 .tth-the { height: auto; min-width: 74px; padding: 6px 8px; border-radius: 16px; }
.tth-lb3 { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tth-lb3 .e { font: 34px/1.1 var(--emoji); }
.tth-lb3 b { font: 800 22px/1.1 var(--chu-hoa); }
.tth-lb3 b.the-so { padding: 0 6px; border-radius: 8px; background: var(--phan); color: var(--den); }
.tth-lb3 i { font: 600 13px/1.1 var(--chu); font-style: normal; }
.tth-the-hop.lb3.so .tth-the { min-width: 84px; }
.tth-the-hop.lb3.so .tth-lb3 b { font-size: 30px; }
.tth-the-hop.lb3.goi .tth-the:not(.sai) { animation: tth-lac .5s 2; }
.tth-o.dang { border-style: solid; animation: tth-tho 1.2s infinite; }
.tth-sosanh.tth-ss3 { align-items: flex-end; }
.tth-chinh.so100 .tth-pm.tram, .tth-chinh.so100.k3 .tth-pm { font-size: 14px; letter-spacing: -.5px; }
.tth-tia.tia3 .tth-tia-so { font-size: clamp(14px, 4.76vw, 26px); font-size: clamp(14px, 5.6cqw, 26px); }
.tth-the-hop.lb3 .tth-the { color: var(--den); }
.tth-the-hop.lb3 .tth-the.dung { color: #fff; }

/* ===== Lớp 2 Chủ đề 11: đề-xi-mét, mét, ki-lô-mét; tiền Việt Nam (30/11/2026) ===== */
.tth-tien { display: inline-block; animation: tth-no .25s both; border-radius: 6px; }
.tth-tien-svg { display: block; width: clamp(88px, 26vw, 128px); height: auto; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
@supports (width: 1cqw) { .tth-tien-svg { width: clamp(84px, 25cqw, 128px); } }
.tth-tien-svg text { stroke: none; font-family: var(--chu-hoa); }
.tth-tien-svg text.ts { font-size: 10px; font-weight: 800; }
.tth-tien-svg text.to { font-size: 21px; font-weight: 800; text-anchor: middle; }
.tth-tien-svg text.chu { font-size: 6.2px; font-weight: 700; text-anchor: middle; letter-spacing: .2px; }
.tth-tien-hang { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; max-width: 560px; }
.tth-tien-hang.to .tth-tien-svg { width: clamp(180px, 58vw, 290px); }
@supports (width: 1cqw) { .tth-tien-hang.to .tth-tien-svg { width: clamp(170px, 58cqw, 290px); } }
.tth-tien-hang.nho { gap: 6px; justify-content: flex-start; }
.tth-tien-hang.nho .tth-tien-svg { width: clamp(64px, 19vw, 92px); }
@supports (width: 1cqw) { .tth-tien-hang.nho .tth-tien-svg { width: clamp(60px, 19cqw, 92px); } }
.tth-tien-dong { display: flex; flex-wrap: wrap; gap: 8px 6px; justify-content: center; max-width: 560px; }
.tth-tien-dong .tth-tien-svg { width: clamp(70px, 21vw, 104px); }
@supports (width: 1cqw) { .tth-tien-dong .tth-tien-svg { width: clamp(66px, 21cqw, 104px); } }
.tth-tien.sang { outline: 3px solid var(--phan-vang); outline-offset: 2px; }
.tth-tien[data-so]::after { top: -10px; right: -6px; }
.tth-tien-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 50px; height: 30px; padding: 0 6px; border: 2px solid; border-radius: 5px; font: 800 16px/1 var(--chu-hoa); white-space: nowrap; }
.tth-tien-bo { display: inline-flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.tth-tien-bo.goi { margin-top: 14px; gap: 8px 6px; max-width: 520px; }
.tth-tien-bo.goi .tth-tien-chip[data-so]::after { top: -13px; right: 50%; translate: 50% 0; }
.tth-the-hop.tien { gap: 8px; }
.tth-the-hop.tien .tth-the { height: auto; min-height: 54px; padding: 6px 10px; }
.tth-tien-ss { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 560px; }
.tth-tien-ban { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tth-tien-ban > b { font: 800 22px/1.2 var(--chu-hoa); color: var(--phan-vang); min-width: 2.6em; text-align: left; }
.tth-tien-ban .tong { font: 700 19px/1.2 var(--chu-hoa); color: var(--phan); }
.tth-dv-vach { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tth-dv-vach .tth-cau { margin: 0; font-size: clamp(20px, 5.6vw, 26px); }
.tth-dv-vach .tth-cau.dang { color: var(--phan-vang); }
.tth-bang-trong .tth-dv-bang td { font-size: 19px; }
.tth-bang-trong .tth-dv-bang td:first-child { text-align: left; color: var(--phan); font-weight: 700; }
.tth-bang-trong .tth-dv-bang td:last-child { min-width: 0; color: var(--phan-vang); font-weight: 800; }
.tth-the-hop.chu.xa { gap: 8px; }
.tth-the-hop.chu.xa .tth-the { font-size: 17px; padding: 0 10px; }
.tth-khoi text.thuoc.dm { font-size: 19px; }
.tth-khoi text.kgc { pointer-events: none; }

/* ----- Lớp 2 Chủ đề 12: đặt tính ba chữ số (Trăm | Chục | Đơn vị) ----- */
.tth-dtinh.ba .s[data-nho]::before { right: auto; left: 50%; top: auto; bottom: 92%; transform: translateX(-50%); margin: 0; font-size: 11px; padding: 0 5px; }
.tth-dtinh .nh { min-height: 15px; font: 800 12px/15px var(--chu-hoa); color: var(--den); white-space: nowrap; }
.tth-dtinh .nh.co { padding: 0 5px; border-radius: 8px; background: var(--phan-vang); animation: tth-no .25s both; }
.tth-dtinh.ba.nho .s[data-nho]::before { display: none; }
.tth-k3-g.gach { opacity: .35; }
.tth-k3-g.gach rect { stroke: #c0392b; stroke-dasharray: 3 2; }
.tth-k3-dau { font: 800 28px/1 var(--chu-hoa); color: var(--phan-vang); align-self: center; }
.tth-dt3-khoi { gap: 4px 10px; }
.tth-dt3-khoi .tth-k3-svg { max-height: 17vh; }

/* ----- Lớp 2 Chủ đề 13: kiểm đếm, biểu đồ tranh, chắc chắn – có thể – không thể ----- */
.tth-tk-i { display: inline-grid; place-items: center; width: 1.2em; height: 1.2em; font-family: var(--emoji); line-height: 1; flex: 0 0 auto; }
.tth-tk-i svg { width: 100%; height: 100%; display: block; overflow: visible; }
.tth-tk-i .tth-hinh { width: 86%; height: 86%; }
.tth-tk-i.cham::before { content: ""; width: 72%; height: 72%; border-radius: 50%; background: #4fc3f7; box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .18); }
.tth-tk-canh { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; width: 100%; max-width: 560px; padding: 6px; border-radius: 14px; font-size: clamp(22px, 7vw, 40px); }
@supports (width: 1cqw) { .tth-tk-canh { font-size: clamp(22px, 9.6cqw, 46px); } }
.tth-tk-canh.nen-co { background: linear-gradient(#88cf6a33, #4f9a3a44); }
.tth-tk-canh.nen-san { background: rgba(255, 255, 255, .07); }
.tth-tk-canh.nen-phong { background: linear-gradient(#f6e7c833, #c9a77a40); }
.tth-tk-canh.nen-bep { background: linear-gradient(#ffffff1a, #e9d3b240); }
.tth-tk-o { min-height: 1.15em; }
.tth-tk-vat { position: relative; display: grid; place-items: center; min-height: 1.15em; padding: 0; border: 0; background: none; font: inherit; animation: tth-no .28s both; }
button.tth-tk-vat { cursor: pointer; border-radius: 10px; }
.tth-tk-vat .tth-tk-i { width: 1.1em; height: 1.1em; }
.tth-tk-vat.mo { opacity: .25; }
.tth-tk-vat.sang { outline: 2px solid var(--phan-vang); outline-offset: -1px; border-radius: 10px; }
.tth-tk-vat.goi { animation: tth-lac .5s 2; }
.tth-tk-vat.xong { opacity: .55; }
.tth-tk-vat.di { visibility: hidden; }
.tth-tk-canh .tth-tk-vat.tth-nut-hinh { aspect-ratio: auto; padding: 0; border: 2px dashed transparent; border-radius: 10px; background: none; }
.tth-tk-canh .tth-tk-vat.tth-nut-hinh.dung { border: 2px solid var(--phan-vang); background: rgba(255, 226, 122, .18); }
.tth-tk-canh .tth-tk-vat.tth-nut-hinh.sai { opacity: .3; }
.tth-tk-canh .tth-tk-vat.tth-nut-hinh.goi { border-color: var(--phan-vang); animation: tth-tho 1s infinite; }
.tth-tk-vat[data-so]::after { right: -4px; top: -6px; }
.tth-bang-trong .tth-tk-bang th { white-space: normal; font-size: clamp(12px, 2.72vw, 16px); font-size: clamp(12px, 3.2cqw, 16px); line-height: 1.15; padding: 3px 5px; vertical-align: bottom; }
.tth-bang-trong .tth-tk-bang th .tth-tk-i { display: block; margin: 0 auto 2px; font-size: clamp(22px, 5.1vw, 34px); font-size: clamp(22px, 6cqw, 34px); }
.tth-bang-trong .tth-tk-bang td, .tth-bang-trong .tth-tk-bang td:last-child { min-width: 54px; font-size: clamp(20px, 4.59vw, 28px); font-size: clamp(20px, 5.4cqw, 28px); color: var(--phan-vang); font-weight: 800; }
.tth-tk-bang .tth-o { min-width: 1.6em; }
.tth-tk-bang .tth-o.dang { border-color: var(--phan-vang); animation: tth-tho 1s infinite; }
.tth-tk-menh { margin: 0; text-align: center; font-size: clamp(19px, 5.4vw, 25px); color: var(--phan-vang); max-width: 30em; }
.tth-the-hop.chu.tk .tth-the { height: auto; min-height: 58px; padding: 6px 12px; font-size: 18px; line-height: 1.15; }
.tth-tk-nhan { display: inline-flex; align-items: center; gap: 6px; }
.tth-tk-nhan .tth-tk-i { font-size: 26px; }
/* thời khoá biểu */
.tth-tk-tkb-hop { width: 100%; max-width: 600px; overflow-x: auto; }
.tth-tk-tkb { width: 100%; border-collapse: collapse; table-layout: fixed; background: transparent; font: 600 12px/1.15 var(--chu); color: var(--phan); }
.tth-bang-trong .tth-tk-tkb th, .tth-bang-trong .tth-tk-tkb td { position: relative; border: 1.5px solid var(--phan-mo); padding: 4px 2px; background: transparent; color: var(--phan); text-align: center; word-break: break-word; hyphens: auto; font: 600 12px/1.15 var(--chu); }
.tth-bang-trong .tth-tk-tkb thead th { color: var(--phan-vang); font: 700 12px/1.1 var(--chu-hoa); }
.tth-bang-trong .tth-tk-tkb thead th:first-child { width: 3.6em; }
.tth-bang-trong .tth-tk-tkb tbody th { color: var(--phan-vang); font: 700 11px/1.1 var(--chu-hoa); }
.tth-bang-trong .tth-tk-tkb td.sang { background: var(--phan-vang); color: var(--den); }
.tth-tk-tkb td.mo { opacity: .35; }
.tth-tk-tkb td[data-so]::after { right: -3px; top: -7px; min-width: 18px; height: 18px; font-size: 12px; line-height: 18px; }
@media (min-width: 560px) { .tth-bang-trong .tth-tk-tkb td { font-size: 14px; } .tth-bang-trong .tth-tk-tkb thead th { font-size: 14px; } }
/* biểu đồ tranh */
.tth-bd { width: 100%; max-width: 560px; border: 2px solid var(--phan-mo); border-radius: 12px; overflow: hidden; }
.tth-bd-tieu { padding: 3px 8px; background: var(--phan-vang); color: var(--den); font: 800 clamp(12px, 2.89vw, 16px)/1.25 var(--chu-hoa); font: 800 clamp(12px, 3.4cqw, 16px)/1.25 var(--chu-hoa); text-align: center; letter-spacing: .02em; }
.tth-bd.doc .tth-bd-luoi { display: grid; grid-template-columns: repeat(var(--n), 1fr); }
.tth-bd.doc .tth-bd-cot { display: flex; flex-direction: column; border-left: 1.5px dashed var(--phan-mo); }
.tth-bd.doc .tth-bd-cot:first-child { border-left: 0; }
.tth-bd.doc .tth-bd-icon { display: flex; flex-direction: column-reverse; align-items: center; justify-content: flex-start; gap: 1px; padding: 5px 0 4px; font-size: clamp(20px, 7.2vw, 34px); min-height: calc(var(--max) * 1.22em + 9px); }
@supports (width: 1cqw) { .tth-bd.doc .tth-bd-icon { font-size: clamp(20px, 8cqw, 34px); } }
.tth-bd.doc .tth-bd-nhan { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 30px; padding: 3px 2px; border-top: 2px solid var(--phan-mo); font: 700 13px/1.15 var(--chu-hoa); text-align: center; color: var(--phan); }
.tth-bd.ngang .tth-bd-luoi { display: flex; flex-direction: column; }
.tth-bd.ngang .tth-bd-cot { display: grid; grid-template-columns: minmax(70px, 24%) 1fr; border-top: 1.5px dashed var(--phan-mo); }
.tth-bd.ngang .tth-bd-cot:first-child { border-top: 0; }
.tth-bd.ngang .tth-bd-nhan { order: -1; display: flex; align-items: center; gap: 4px; padding: 3px 6px; border-right: 2px solid var(--phan-mo); font: 700 13px/1.15 var(--chu-hoa); color: var(--phan); }
.tth-bd.ngang .tth-bd-icon { display: flex; flex-wrap: nowrap; align-items: center; gap: 1px; padding: 4px 6px; font-size: clamp(17px, 6.2vw, 34px); min-height: 1.4em; }
@supports (width: 1cqw) { .tth-bd.ngang .tth-bd-icon { font-size: clamp(17px, 6.8cqw, 34px); } }
.tth-bd-nhan .tth-tk-i { font-size: 22px; }
.tth-bd-icon .tth-tk-i { animation: tth-no .28s both; }
.tth-bd-icon .tth-tk-i[data-so]::after { right: -6px; top: -6px; min-width: 18px; height: 18px; font-size: 11px; line-height: 18px; }
.tth-bd-ghi { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 0; padding: 3px 6px; border-top: 1.5px solid var(--phan-mo); font: 700 14px/1.2 var(--chu-hoa); color: var(--phan-vang); }
.tth-bd-ghi .tth-tk-i { font-size: 22px; }
/* chắc chắn – có thể – không thể */
.tth-kn-hop { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tth-kn-hop .trong { display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-end; gap: 2px; width: clamp(120px, 40vw, 190px); min-height: 70px; padding: 8px 6px 6px; border: 3px solid rgba(200, 235, 255, .75); border-top-style: dashed; border-radius: 6px 6px 14px 14px; background: rgba(190, 230, 255, .14); font-size: clamp(26px, 8vw, 38px); }
.tth-kn-hop .ten { font: 700 15px/1.2 var(--chu-hoa); color: var(--phan-vang); }
.tth-kn-hop .tth-tk-i.bi { animation: tth-no .28s both; }
.tth-kn-hop .tth-tk-i.bi.lay { translate: 0 -10px; filter: drop-shadow(0 0 6px #fff); }
.tth-kn-hang { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; }
.tth-kn-hang .trong { width: clamp(88px, 27vw, 150px); min-height: 56px; font-size: clamp(20px, 6vw, 30px); }
.tth-kn-xx { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tth-kn-xx .tth-xucxac { width: 46px; height: 46px; padding: 6px; gap: 2px; border-radius: 9px; }
.tth-kn-the { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.tth-kn-the .tui { font: 40px/1 var(--emoji); }
.tth-kn-the b { min-width: 46px; padding: 8px 6px; border-radius: 8px; background: var(--phan); color: var(--den); font: 800 26px/1 var(--chu-hoa); text-align: center; box-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.tth-kn-tao { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; font-size: clamp(26px, 8vw, 40px); }
.tth-kn-tao .gio, .tth-kn-tao .ban { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; max-width: 7.5em; }
.tth-kn-tao .gio { padding: 4px 6px; border-radius: 0 0 16px 16px; border: 3px solid #c8925a; border-top: 0; }
.tth-kn-cho { display: flex; justify-content: center; min-height: 100px; }

/* ===== Lớp 3 Chủ đề 1 – tìm thành phần (timtp) ===== */
.tth-tp-o.hoi .tth-tp-so { color: var(--phan-vang); }
.tth-tp-o.lo .tth-tp-so { color: var(--phan-vang); }
.tth-tim-hinh { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 8px 12px; width: 100%; }
.tth-tim-o { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 96px; max-width: 46%; padding: 6px 10px 8px; border: 2px solid var(--phan-mo); border-radius: 14px; background: rgba(255, 255, 255, .07); }
.tth-tim-o.do { border-color: rgba(255, 140, 140, .7); }
.tth-tim-nhan { font: 700 16px/1.2 var(--chu-hoa); color: var(--phan); white-space: nowrap; }
.tth-tim-vat { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 2px; max-width: 190px; font-size: 24px; line-height: 1.25; }
.tth-tim-o.gach .tth-tim-vat span { opacity: .45; text-decoration: line-through; }
.tth-tim-hoi { font: 800 34px/1.1 var(--chu-hoa); color: var(--phan-vang); }
.tth-tim-tong { flex-basis: 100%; margin: 0; text-align: center; font: 700 17px/1.2 var(--chu-hoa); color: var(--phan-vang); }
.tth-tim-qt { color: var(--phan-vang); }
@supports (font-size: 1cqw) {
  .tth-tim-vat { font-size: clamp(18px, 5.5cqw, 26px); }
  .tth-tim-nhan { font-size: clamp(14px, 4cqw, 17px); }
}

/* ===== Lớp 3 Chủ đề 2 (30/11/2026): bảng nhân 1–9 × 1–10, tìm thừa số / số bị chia / số chia bằng tranh, một phần mấy ===== */
.tth-nc-bcc { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; width: 100%; max-width: 460px; font: 700 clamp(11px, 3.1vw, 17px)/1 var(--chu-hoa); }
@supports (width: 1cqw) { .tth-nc-bcc { font-size: clamp(11px, 3.7cqw, 18px); } }
.tth-nc-bcc span { display: flex; align-items: center; justify-content: center; aspect-ratio: 1.15; border-radius: 5px; background: rgba(255, 255, 255, .05); color: var(--phan); }
.tth-nc-bcc span.dau { background: rgba(255, 255, 255, .16); font-weight: 800; }
.tth-nc-bcc span.duong { background: rgba(255, 226, 122, .3); }
.tth-nc-bcc span.sang { background: var(--phan-vang); color: var(--den); }
.tth-nc-bcc span.hoi { outline: 2px dashed var(--phan-vang); outline-offset: -2px; color: var(--phan-vang); }
.tth-nc-bcc span.hoi.lo { background: var(--phan-vang); color: var(--den); outline: 0; }
.tth-tim-o.dia, .tth-tim-o.lo { flex: 0 1 auto; min-width: 0; max-width: 23%; padding: 4px 3px 6px; }
.tth-tim-hinh:has(.dia, .lo) { gap: 8px 6px; }
.tth-tim-o.dia .tth-tim-vat, .tth-tim-o.lo .tth-tim-vat { max-width: 78px; font-size: 18px; }
.tth-tim-o.dia .tth-tim-nhan, .tth-tim-o.lo .tth-tim-nhan { font-size: 13px; white-space: nowrap; }

.tth-pm-hang { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 22px; width: 100%; }
.tth-pm-hinh { display: block; width: clamp(120px, 40vw, 190px); height: auto; aspect-ratio: 1; overflow: visible; }
@supports (width: 1cqw) { .tth-pm-hinh { width: clamp(120px, 46cqw, 200px); } }
.tth-pm-hinh path, .tth-pm-hinh rect, .tth-pm-hinh polygon, .tth-pm-hinh circle { fill: #fbf8ec; stroke: #1f3327; stroke-width: 1.4; stroke-linejoin: round; }
.tth-pm-hinh .to { fill: #4aa8e0; }
.tth-pm-hinh.bam path, .tth-pm-hinh.bam rect, .tth-pm-hinh.bam polygon { cursor: pointer; }
.tth-pm-hinh.bam .to { animation: tth-no .25s both; transform-box: fill-box; transform-origin: center; }
.tth-ps { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1.05; font-weight: 800; font-family: var(--chu-hoa); }
.tth-ps .mau { border-top: .12em solid currentColor; padding: 0 .18em; min-width: 1.1em; text-align: center; }
.tth-ps.to { font-size: clamp(34px, 10vw, 54px); color: var(--phan-vang); }
.tth-pm-viet .tth-ps { font-size: 1.15em; margin-left: 4px; color: var(--phan-vang); }
.tth-the-hop.ps .tth-the { min-width: 64px; height: auto; min-height: 66px; padding: 4px 12px; }
.tth-the-hop.ps .tth-ps { font-size: 26px; }
.tth-pm-hang.nho { gap: 8px 12px; }
.tth-pm-hang.nho .tth-ps.to { font-size: clamp(28px, 8vw, 40px); }
.tth-pm-ke { font: 800 clamp(17px, 5vw, 24px)/1.2 var(--chu-hoa); color: var(--phan); }
.tth-pm-luoi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; width: 100%; max-width: 440px; justify-items: center; }
.tth-pm-luoi.ba { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tth-pm-o { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 6px; border-radius: 12px; border: 2px solid transparent; }
.tth-pm-o.dung { border-color: var(--phan-vang); background: rgba(255, 226, 122, .14); }
.tth-pm-luoi .tth-pm-hinh { width: clamp(78px, 25vw, 124px); }
@supports (width: 1cqw) { .tth-pm-luoi .tth-pm-hinh { width: clamp(78px, 30cqw, 128px); } }
.tth-pm-chu { font: 800 20px/1 var(--chu-hoa); color: var(--phan); }
.tth-pm-vat { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 4px; max-width: 100%; font: 24px/1.2 var(--emoji); }
.tth-pm-o.vat { width: 100%; }
.tth-pm-o.vat .tth-pm-vat { font-size: clamp(18px, 5.4vw, 26px); }
.tth-pm-vat .khoanh { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; padding: 2px 6px; border: 3px dashed var(--phan-vang); border-radius: 22px; }
.tth-pm-vat.luoi { display: grid; gap: 4px 6px; font-size: clamp(20px, 6.4vw, 34px); }
@supports (width: 1cqw) { .tth-pm-vat.luoi { font-size: clamp(20px, 7.6cqw, 36px); } }
.tth-pm-vat.luoi span { padding: 1px 2px; border-radius: 8px; }
.tth-pm-vat.luoi span.sang { background: rgba(255, 226, 122, .38); }

@supports not (width: 1cqw) { .tth-cau.vua.tth-nc-tong, .tth-cau.vua.tth-nc-tich { font-size: clamp(22px, 7.5vw, 46px); } }
/* ===== Lớp 3 Chủ đề 3: hình phẳng, hình khối (30/11/2026) ===== */
.tth-khoi .v3-vuong { fill: none; stroke: var(--phan-vang); stroke-width: 2.2; }
.tth-khoi .v3-eke polygon { fill: rgba(255, 214, 90, .58); stroke: #b98a12; stroke-width: 1.4; }
.tth-khoi .v3-eke polygon.lo { fill: var(--bang); stroke: #b98a12; opacity: .85; }
.tth-khoi .hp-doan.v3-day { stroke: #f0a95e; stroke-width: 6; }
.tth-khoi .v3-ve { stroke-dasharray: 1000; animation: tth-v3ve 1.3s ease both; }
@keyframes tth-v3ve { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
.tth-khoi circle.v3-tron { fill: none; }
.tth-khoi circle.v3-tron.to { fill-opacity: .5; stroke: var(--phan); stroke-width: 2.5; }
.tth-khoi text.v3-nen { stroke: var(--bang); stroke-width: 4px; paint-order: stroke; }
.tth-khoi .v3-da { fill: rgba(255, 226, 122, .2); stroke: var(--phan); stroke-width: 3; stroke-linejoin: round; }
.tth-khoi .v3-ao { fill: rgba(79, 179, 255, .45); stroke: var(--phan); stroke-width: 3; }
.tth-khoi .v3-que { stroke: #f6c76a; stroke-width: 6; stroke-linecap: round; }
.tth-khoi .v3-nut { fill: transparent; stroke: none; cursor: pointer; }
@media (hover: hover) { .tth-khoi .v3-nut:hover { fill: rgba(255, 226, 122, .3); } }
.tth-khoi .v3-nut.da { fill: rgba(255, 226, 122, .35); }
.tth-khoi .v3-mat { fill: rgba(124, 200, 255, .38); stroke: none; }
.tth-khoi .v3-mat.trong { fill: rgba(252, 252, 242, .07); }
.tth-khoi .v3-mat.sang { fill: rgba(255, 226, 122, .8); }
.tth-khoi .v3-canh { stroke: var(--phan); stroke-width: 3; stroke-linecap: round; }
.tth-khoi .v3-canh.an { stroke-dasharray: 5 6; opacity: .8; }
.tth-khoi .v3-canh.xanh { stroke: #4fb3ff; stroke-width: 4.5; }
.tth-khoi .v3-canh.do { stroke: #ff6b6b; stroke-width: 4.5; }
.tth-khoi .v3-canh.sang { stroke: var(--phan-vang); stroke-width: 8; }
.tth-khoi .v3-dinh { fill: var(--phan); stroke: none; }
.tth-khoi .v3-dinh.sang { fill: var(--phan-vang); stroke: var(--den); stroke-width: 2; }
.tth-khoi .v3-cam { stroke: #ff9a2e; stroke-width: 7; stroke-linecap: round; }
.tth-khoi .v3-compa .chan { stroke: #d5d8de; stroke-width: 5; stroke-linecap: round; }
.tth-khoi .v3-compa circle { fill: #d5d8de; stroke: none; }
.tth-v3-luoi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; width: 100%; max-width: 440px; justify-items: center; }
.tth-v3-luoi.ba { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tth-v3-o { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; padding: 4px; border-radius: 12px; border: 2px solid transparent; }
.tth-v3-o.dung { border-color: var(--phan-vang); background: rgba(255, 226, 122, .14); }
.tth-v3-o .tth-khoi { width: 100%; height: auto; max-height: clamp(70px, 16vh, 130px); }
.tth-v3-o .tth-khoi { width: clamp(84px, 26vw, 130px); max-height: none; }
@supports (width: 1cqw) { .tth-v3-o .tth-khoi { width: clamp(84px, 28cqw, 132px); } }
.tth-v3-luoi:not(.ba) .tth-v3-o .tth-khoi { width: clamp(100px, 36vw, 160px); }
@supports (width: 1cqw) { .tth-v3-luoi:not(.ba) .tth-v3-o .tth-khoi { width: clamp(100px, 40cqw, 160px); } }

/* ===== Lớp 3 Chủ đề 4 – phép nhân, phép chia trong phạm vi 100 (đặt tính chia, sơ đồ đoạn thẳng, chia táo) ===== */
.tth-chia4 { display: grid; grid-template-columns: .62em .62em auto; align-items: center; justify-items: center; gap: 0; font: 800 44px/1.12 var(--chu-hoa); color: var(--phan); }
@supports (width: 1cqw) { .tth-chia4 { font-size: clamp(30px, 10cqw, 52px); } }
.tth-chia4 .s { min-height: 1.1em; border-radius: 8px; text-align: center; }
.tth-chia4 .s.chiaso { justify-self: stretch; min-width: 2.2em; margin-left: .28em; padding: 0 .3em; border-left: 4px solid var(--phan); border-bottom: 4px solid var(--phan); }
.tth-chia4 .s.thuong { justify-self: stretch; min-width: 2.2em; margin-left: .28em; padding: 0 .3em; border-left: 4px solid var(--phan); color: var(--phan-vang); }
.tth-chia4 .s.o { display: inline-grid; place-items: center; min-width: .8em; border: 3px dashed var(--phan-vang); color: var(--phan-vang); font-size: .8em; }
.tth-chia4 .s.day { padding: 0 .08em; background: var(--phan-vang); color: var(--den); animation: tth-no .25s both; }
.tth-chia4.goi { font-size: 26px; opacity: .9; }
.tth-chia4-loi { max-width: 560px; text-wrap: pretty; }
.tth-sodo4 { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 560px; box-sizing: border-box; }
.tth-sodo4.co-ngoac { padding-right: 96px; }
.tth-sodo4 .h4 { display: flex; align-items: flex-end; gap: 8px; padding: 24px 0 20px; }
.tth-sodo4 .nhan4 { flex: 0 0 auto; width: 5.4em; font: 600 15px/1.15 var(--chu-hoa); color: var(--phan); text-align: right; }
.tth-sodo4 .thanh4 { position: relative; flex: 1 1 0; min-width: 0; display: flex; height: 14px; }
.tth-sodo4 .p4 { position: relative; height: 100%; border-left: 3px solid var(--phan); border-bottom: 3px solid var(--phan); box-sizing: border-box; }
.tth-sodo4 .p4:last-of-type { border-right: 3px solid var(--phan); }
.tth-sodo4 .p4.mo { border-bottom-style: dashed; border-bottom-color: var(--phan-vang); }
.tth-sodo4 .p4 b { position: absolute; left: 50%; bottom: 100%; translate: -50% -2px; font: 700 16px/1.1 var(--chu-hoa); color: var(--phan-vang); white-space: nowrap; }
.tth-sodo4 .p4.hoi b { font-size: 19px; }
.tth-sodo4 .duoi4 { position: absolute; left: 0; right: 0; top: 100%; margin-top: 3px; text-align: center; font: 700 16px/1.1 var(--chu-hoa); font-style: normal; color: var(--phan-vang); white-space: nowrap; }
.tth-sodo4 .duoi4::before { content: ""; position: absolute; left: 0; right: 0; top: -3px; height: 6px; border: 2px solid var(--phan-mo); border-top: 0; border-radius: 0 0 6px 6px; }
.tth-sodo4 .ngoac4 { position: absolute; top: 30px; bottom: 26px; right: 84px; width: 12px; border: 3px solid var(--phan); border-left: 0; border-radius: 0 14px 14px 0; }
.tth-sodo4 .ngoac4 b { position: absolute; left: 100%; top: 50%; translate: 8px -50%; width: 72px; font: 700 16px/1.15 var(--chu-hoa); color: var(--phan-vang); }
.tth-c4-gap { width: 100%; display: flex; justify-content: center; }
.tth-c4-hai { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.tth-baigiai.hai4 .tth-cau:not(.nho) { font-size: clamp(20px, 6vw, 26px); }
.tth-chuoi100.c4 .mui b { text-align: center; line-height: 1.05; font-size: 17px; }
@supports (width: 1cqw) { .tth-chuoi100.c4 .mui b { font-size: clamp(13px, 4.4cqw, 19px); } }
.tth-chuoi4 { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.tth-chuoi4 .vong { display: grid; place-items: center; flex: 0 0 auto; width: 70px; height: 70px; border: 3px solid var(--phan); border-radius: 50%; font: 800 30px/1 var(--chu-hoa); color: var(--phan); }
.tth-chuoi4 .vong.o { border-style: dashed; border-color: var(--phan-vang); color: var(--phan-vang); }
.tth-chuoi4 .vong.day { border-style: solid; border-color: var(--phan-vang); background: var(--phan-vang); color: var(--den); animation: tth-no .25s both; }
.tth-chuoi4 .nhanh4 { display: flex; flex-direction: column; gap: 14px; }
.tth-chuoi4 .nh4 { display: flex; align-items: center; gap: 8px; }
.tth-chuoi4 .mui4 { position: relative; display: block; min-width: 120px; padding: 0 16px 6px 4px; border-bottom: 4px solid var(--phan); font: 800 18px/1.1 var(--chu-hoa); color: var(--phan-vang); text-align: center; white-space: nowrap; }
.tth-chuoi4 .mui4::after { content: ""; position: absolute; right: -4px; bottom: -11px; border: 9px solid transparent; border-left: 12px solid var(--phan); border-right: 0; }
.tth-c4-dia { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; width: 100%; }
.tth-c4-dia .dia-hang { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tth-c4-dia .dia { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 0 2px; width: 96px; min-height: 64px; padding: 6px 8px; border: 3px solid var(--phan); border-radius: 50%; box-sizing: border-box; }
.tth-c4-dia .tao { font: 22px/1.15 var(--emoji); }
.tth-c4-dia .du4 { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; max-width: 120px; padding: 4px 8px; border: 2px dashed var(--phan-vang); border-radius: 12px; }
.tth-c4-dia .du4 b { width: 100%; font: 700 14px/1.2 var(--chu-hoa); color: var(--phan-vang); text-align: center; }
.tth-n4-khoi .tth-k3-svg { max-height: 16vh; }

/* ===== Lớp 3 Chủ đề 5: mi-li-mét, gam, mi-li-lít, nhiệt độ (dv3) ===== */
.tth-khoi text.dhso.g5 { font-size: 7.6px; }
.tth-khoi .vachca { stroke: #e8f2ff; stroke-width: 1.6; }
.tth-khoi text.ca5 { font: 700 11px/1 var(--chu-hoa); fill: var(--phan); }
.tth-khoi text.ca5.nho { font-size: 9px; }
.tth-kl-to.g5 { max-width: 260px; }
.tth-kl-to.nk5 { max-width: 170px; }
.tth-kl-to.nk5 .tth-khoi { max-height: clamp(160px, 30vh, 260px); }
.tth-kl-to.nk3 .tth-khoi { max-height: clamp(130px, 26vh, 220px); }
.tth-g5-ds { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 480px; }
.tth-g5-hang { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 6px 12px; border: 2px dashed var(--phan-mo); border-radius: 14px; font: 700 20px/1.3 var(--chu-hoa); color: var(--phan); animation: tth-no .25s both; }
.tth-g5-hang .e { font: 30px/1 var(--emoji); }
.tth-g5-hang b { color: var(--phan-vang); font-size: 24px; }
.tth-g5-hang .qc { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.tth-g5-hang .qc i { font-style: normal; padding: 2px 8px; border-radius: 8px 8px 4px 4px; background: #c9b06a; color: var(--den); font-size: 17px; }
.tth-g5-tranh { display: flex; flex-direction: column; align-items: center; gap: 2px; font: 700 19px/1.3 var(--chu-hoa); color: var(--phan); text-align: center; }
.tth-g5-tranh .e { font: 52px/1.1 var(--emoji); }
.tth-g5-tranh .e.to { font-size: 84px; }
.tth-bnd5 { border-collapse: collapse; font: 700 18px/1.3 var(--chu-hoa); color: var(--phan); max-width: 100%; }
.tth-bnd5 th, .tth-bnd5 td { border: 2px solid var(--phan-mo); padding: 6px 9px; text-align: center; }
.tth-bnd5 th { color: var(--phan-vang); }
.tth-bnd5 td { white-space: nowrap; }
@supports (width: 1cqw) { .tth-bnd5 { font-size: clamp(14px, 4.4cqw, 20px); } .tth-bnd5 th, .tth-bnd5 td { padding: 5px min(9px, 1.8cqw); } }
.tth-chuoi100.c5 .vong { font-size: 19px; }
@supports (width: 1cqw) { .tth-chuoi100.c5 .vong { font-size: min(20px, 5.2cqw); } }
.tth-the-hop.phep.g5 .tth-the { font-size: 19px; white-space: normal; }
@supports (width: 1cqw) { .tth-the-hop.phep.g5 .tth-the { font-size: clamp(16px, 4.8cqw, 21px); } }
.tth-bnd5, .tth-bang-trong .tth-bnd5 { min-width: 0; background: transparent; }
.tth-bang-trong .tth-bnd5 th, .tth-bang-trong .tth-bnd5 td, .tth-bnd5 th, .tth-bnd5 td { background: transparent; color: var(--phan); }
.tth-bang-trong .tth-bnd5 th, .tth-bnd5 th { color: var(--phan-vang); }
.tth-khoi text.dhso.yt5 { font-size: 15px; }
.tth-kl-to.qc5 { max-width: 110px; }

/* Lớp 3 Chủ đề 6 – nhân, chia số có ba chữ số; biểu thức số; gấp mấy lần */
.tth-chia6 { grid-template-columns: .62em .62em .62em auto; font-size: 34px; line-height: 1.06; }
@supports (width: 1cqw) { .tth-chia6 { font-size: clamp(24px, 7.6cqw, 40px); } }
.tth-chia6.goi { font-size: 22px; }
.tth-bt6 { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tth-bt6 .bt6-d { font-size: clamp(26px, 7.6vw, 40px); font-weight: 800; white-space: nowrap; }
@supports (width: 1cqw) { .tth-bt6 .bt6-d { font-size: clamp(24px, 8.4cqw, 42px); } }
.tth-bt6 .bt6-d.moi { color: var(--phan-vang); animation: tth-no .25s both; }
.tth-bt6-kp { display: flex; justify-content: center; width: 100%; }
.tth-luoi6 { display: grid; grid-template-columns: repeat(var(--cot, 6), auto); gap: 6px 8px; justify-content: center; font-size: 28px; line-height: 1.1; }
.tth-luoi6 span { font-size: inherit; line-height: inherit; }
@supports (width: 1cqw) { .tth-luoi6 { font-size: clamp(22px, 7.4cqw, 40px); } }
.tth-bnd5.tth-bang6 { font-size: 22px; }
@supports (width: 1cqw) { .tth-bnd5.tth-bang6 { font-size: clamp(18px, 6.2cqw, 28px); } }
.tth-bang6 td.o { color: var(--phan-vang); border-style: dashed; }
.tth-bang6 td.day { background: var(--phan-vang); color: var(--den); }

/* ---------- các số đến 10 000, chữ số La Mã, làm tròn số (Lớp 3 Chủ đề 8) ---------- */
.tth-k8, .tth-k8-khung { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 6px 14px; max-width: 100%; }
.tth-k8 .tth-k3 { max-width: 100%; }
.tth-k8.nho .tth-k3-svg { max-height: 15vh; }
.tth-k8-svg { max-height: 26vh; }
.tth-k3 .k-ng { fill: #ffb3c7; stroke: #a3264d; stroke-width: 1.3; }
.tth-k3 .k-ng2 { fill: #ffd6e1; stroke: #a3264d; stroke-width: 1.3; }
.tth-k3 .k-ng3 { fill: #f28aa6; stroke: #a3264d; stroke-width: 1.3; }
.tth-bang-trong .tth-bang8 th { font-size: 12.5px; padding: 2px 4px; white-space: normal; line-height: 1.15; }
.tth-bang-trong .tth-bang8 td { font-size: 26px; padding: 2px 6px; min-width: 2em; }
.tth-bang-trong .tth-bang8 td:last-child { font: 800 24px/1.3 var(--chu-hoa); color: var(--phan-vang); min-width: 3.4em; white-space: nowrap; }
.tth-bang-trong .tth-bang8.the8 td, .tth-bang-trong .tth-bang8.the8 td:last-child { vertical-align: top; min-width: 0; width: 25%; padding: 4px 3px; }
.tth-bang8.the8 td { line-height: 0; }
.tth-bang8 .chip { display: inline-block; margin: 2px; padding: 3px 5px; border-radius: 6px; font: 800 14px/1.1 var(--chu-hoa); color: var(--den); white-space: nowrap; animation: tth-no .25s both; }
.tth-bang8 .chip.c0 { background: #ffb3c7; } .tth-bang8 .chip.c1 { background: #9cc9ff; } .tth-bang8 .chip.c2 { background: #9be3a9; } .tth-bang8 .chip.c3 { background: #ffd84d; }
.tth-doc8 { margin-top: 2px; }
.tth-gom8 { font-size: clamp(19px, 5.4vw, 28px); line-height: 1.6; }
.tth-k8-pt { white-space: normal; }
.tth-cau.vua.tth-k8-pt { font-size: clamp(22px, 6.4vw, 38px); }
.tth-the-hop.k8 .tth-the { font-size: 26px; padding: 0 8px; }
.tth-the-hop.k8.chu .tth-the { font-size: 19px; padding: 0 12px; }
.tth-the-hop.k8.dau .tth-the { font-size: 36px; }
.tth-the .sang8 { color: #e5484d; text-decoration: underline; }
.tth-ss8 .tth-so { font-size: clamp(28px, 8.4vw, 50px); }
.tth-lb8 b { font-size: 19px; white-space: nowrap; }
.tth-the-hop.lb3.so .tth-lb8 b { font-size: 25px; }
.tth-xep8 { align-items: center; }
.tth-xep8 .tth-phanso { min-width: 64px; font-size: 22px; }
.tth-xep8-dau { font: 800 24px/1 var(--chu-hoa); color: var(--phan-vang); }
.tth-lama { display: block; text-align: center; font: 800 clamp(48px, 15vw, 76px)/1.15 Georgia, "Times New Roman", serif; letter-spacing: .06em; color: var(--phan); }
.tth-the-hop.lama .tth-the { font: 700 26px/1 Georgia, "Times New Roman", serif; letter-spacing: .04em; padding: 0 10px; }
.tth-the-hop.lama .lm-so { font: 700 15px/1 var(--chu-hoa); }
.tth-daylm .tth-phanso { width: auto; min-width: 50px; padding: 0 4px; font: 700 22px/50px Georgia, "Times New Roman", serif; }
.tth-daylm.nho .tth-phanso { height: 34px; min-width: 40px; font: 800 18px/28px var(--chu-hoa); border-style: dotted; }
.tth-khoi.dongho.lama text.so { font: 700 9.5px/1 Georgia, "Times New Roman", serif; }
.tth-khoi.dongho.lama text.so.sang { font-size: 12px; }
.tth-que8 { display: block; margin: 4px auto; max-width: 100%; height: auto; }
.tth-que8 .que { stroke: #e0a85a; stroke-width: 5; stroke-linecap: round; }
.tth-lm-bang { display: flex; justify-content: center; gap: 14px; font: 700 17px/1.2 var(--chu-hoa); color: var(--phan); }
.tth-lm-bang b { font-family: Georgia, "Times New Roman", serif; color: var(--phan-vang); }
.tth-lm-khung { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tth-lm-hang { display: flex; align-items: center; gap: 12px; }
.tth-lm-hang .tth-cau.to { margin: 0; }
.tth-tron8-khung { width: 100%; max-width: 560px; margin: 0 auto; }
.tth-tron8 { display: block; width: 100%; height: auto; overflow: visible; }
.tth-tron8 .truc { stroke: var(--phan); stroke-width: 3; }
.tth-tron8 .vach { stroke: var(--phan); stroke-width: 2.5; stroke-linecap: round; }
.tth-tron8 .vach.to { stroke-width: 3.5; }
.tth-tron8 .nhan { font: 800 17px/1 var(--chu-hoa); fill: var(--phan); text-anchor: middle; }
.tth-tron8 .nhan.nho { font-size: 13px; opacity: .8; }
.tth-tron8 .nhan.so { fill: var(--phan-vang); font-size: 18px; }
.tth-tron8 .diem8 circle { fill: var(--phan-vang); }
.tth-tron8 .gan { stroke: var(--phan-vang); stroke-width: 7; stroke-linecap: round; opacity: .55; }
.tth-bt8 { display: flex; align-items: center; gap: 10px; max-width: 520px; }
.tth-bt8 .e { font: 46px/1 var(--emoji); }
.tth-bt8 .tth-cau { text-align: left; margin: 0; }
.tth-ai8 { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.tth-ss8b td.so { font-size: 20px !important; color: var(--phan) !important; min-width: 3.4em; }
.tth-o8 { width: 40px; height: 44px; border: 2px dashed var(--phan-mo); border-radius: 8px; background: transparent; color: var(--phan-vang); font: 800 26px/1 var(--chu-hoa); cursor: pointer; }
.tth-o8:active { background: rgba(255, 226, 122, .15); }
.tth-goi8 { color: var(--muc); }
.tth-goi8 { margin: 4px 0 0; text-align: center; font: 600 15px/1.3 var(--chu); color: var(--muc); }
.tth-k8.nho .tth-k3-svg { max-height: 20vh; }
.tth-bang-trong .tth-bang8.the8 { table-layout: fixed; width: 100%; max-width: 460px; }
.tth-dayso.rong.tth-day8 .tth-phanso { width: auto; min-width: 74px; padding: 0 5px; font-size: 23px; }
.tth-dayso.rong.tth-daylm .tth-phanso { width: auto; min-width: 50px; padding: 0 5px; font: 700 22px/50px Georgia, "Times New Roman", serif; }
.tth-dayso.rong.tth-daylm.nho .tth-phanso { height: 34px; min-width: 40px; font: 800 18px/28px var(--chu-hoa); }
.tth-dayso.rong.tth-xep8 .tth-phanso { width: auto; min-width: 70px; padding: 0 5px; font-size: 22px; }
.tth-tia.tia8 .tth-tia-so { font-size: clamp(10px, 2.9vw, 18px); padding: 0; }
@supports (width: 1cqw) { .tth-tia.tia8 .tth-tia-so { font-size: clamp(10px, 3.3cqw, 18px); } }
.tth-ss8 .tth-so { font-size: clamp(22px, 7vw, 46px); }
@supports (width: 1cqw) { .tth-ss8 .tth-so { font-size: clamp(22px, 8.4cqw, 46px); } }
/* Lớp 3 Chủ đề 9 – chu vi, diện tích */
.tth-khoi .cv9-o { stroke: rgba(31, 42, 68, .55); stroke-width: 1.2; }
.tth-khoi .cv9-o.m1, .tth-khoi .cv9-o.vang { fill: #ffd34d; }
.tth-khoi .cv9-o.m2, .tth-khoi .cv9-o.la { fill: #8fd16a; }
.tth-khoi .cv9-o.m3, .tth-khoi .cv9-o.lam, .tth-khoi .cv9-o.xanh { fill: #6cc4f0; }
.tth-khoi .cv9-o.m4 { fill: #f59bb5; }
.tth-khoi .cv9-o.do { fill: #ef5a4f; }
.tth-khoi .cv9-o.nau { fill: #c9824a; }
.tth-khoi .cv9-hcn { fill: rgba(255, 226, 122, .16); }
.tth-khoi .cv9-vien { fill: none; stroke: var(--phan); stroke-width: 3; }
.tth-khoi text.cv9-nho { font: 700 8px/1 var(--chu-hoa); fill: var(--den); text-anchor: middle; }
.tth-khoi text.cv9-ten { font-size: 17px; }
.tth-khoi text.cv9-H { font: italic 700 26px/1 Georgia, "Times New Roman", serif; fill: var(--phan); text-anchor: middle; }
.tth-khoi .cv9-canh { stroke-width: 3; }
.tth-khoi .cv9-canh.sang { stroke: var(--phan-vang); stroke-width: 5.5; transition: stroke .2s; }
.tth-khoi .cv9-thuyen { fill: #f4f1e6; stroke: none; }
.tth-khoi .cv9-buom { fill: #fcfcf2; opacity: .85; }
.tth-khoi .cv9-vuon { fill: rgba(143, 209, 106, .28); }
.tth-khoi .cv9-rao { fill: none; stroke: #e0a85a; stroke-width: 4; stroke-linejoin: round; }
.tth-khoi .cv9-coc { fill: #8a5a2b; stroke: #f6c76a; stroke-width: 1.5; }
.tth-khoi .cv9-gach { fill: #b9d86a; stroke: #4d6b1f; stroke-width: 2; }
.tth-khoi .cv9-banh { fill: #8a5a3c; stroke: var(--phan); stroke-width: 3; }
.tth-khoi .cv9-cat { fill: none; stroke: var(--phan-vang); stroke-width: 2.5; stroke-dasharray: 5 5; }
.tth-khoi .cv9-tron { fill: #ef5a4f; stroke: var(--phan); stroke-width: 3; }
.tth-khoi .cv9-trong { fill: #fcfcf2; }
.tth-khoi text.cv9-hoa { font-size: 22px; }
.tth-tt9 { align-items: center; }
.tth-tt9-ds { display: flex; flex-direction: column; gap: 2px; }
.tth-tt9-ds .tth-cau { margin: 0; }
.tth-khoi text.cv9-to { font-size: 17px; }
.tth-khoi .cv9-ke { stroke: rgba(31, 42, 68, .28); stroke-width: 1; }
.tth-the-hop.hai.cv9 { max-width: 360px; }
.tth-the-hop.hai.cv9 .tth-the { font-size: 26px; padding: 0 8px; }
.tth-the-hop.hai.chu.cv9 .tth-the { font-size: 22px; }

/* ===== Lớp 3 Chủ đề 10 – cộng, trừ, nhân, chia trong phạm vi 10 000 (Đợt 31) ===== */
.tth-dtinh.bon { font-size: 46px; }
@supports (width: 1cqw) { .tth-dtinh.bon { font-size: clamp(32px, 10.5cqw, 56px); } }
.tth-dtinh.bon.goi { font-size: 28px; }
.tth-dtinh.bon .ten { font-size: 13px; }
.tth-chia10 { grid-template-columns: .62em .62em .62em .62em auto; font-size: 34px; line-height: 1.04; }
@supports (width: 1cqw) { .tth-chia10 { font-size: clamp(24px, 9cqw, 50px); } }
.tth-chia10.goi { font-size: 20px; }
.tth-chuoi10 { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 4px; font: 800 26px/1.2 var(--chu-hoa); color: var(--phan); }
@supports (width: 1cqw) { .tth-chuoi10 { font-size: clamp(18px, 6.2cqw, 28px); } }
.tth-chuoi10 .so { min-width: 3.1em; padding: 4px 8px; border: 3px solid var(--phan); border-radius: 12px; text-align: center; white-space: nowrap; }
.tth-chuoi10 .so.o { border-style: dashed; border-color: var(--phan-vang); color: var(--phan-vang); }
.tth-chuoi10 .so.day { background: var(--phan-vang); border-color: var(--phan-vang); color: var(--den); animation: tth-no .25s both; }
.tth-chuoi10 .mui { position: relative; padding: 0 6px 12px; font-size: .72em; color: var(--phan-vang); white-space: nowrap; }
.tth-chuoi10 .mui::after { content: ''; position: absolute; left: 2px; right: 2px; bottom: 4px; height: 0; border-top: 3px solid var(--phan-vang); }
.tth-bang10 td.o { color: var(--phan-vang); }
.tth-bang10 td.day { background: var(--phan-vang); color: var(--den); }
.tth-the-hop.hai.chu .tth-the { white-space: nowrap; }
/* Lớp 3 Chủ đề 11 – các số đến 100 000 */
.tth-bang8 .chip.c5 { background: #d9b8ff; }
.tth-bang-trong .tth-bang8.the8.nam td, .tth-bang-trong .tth-bang8.the8.nam td:last-child { width: 20%; padding: 3px 2px; }
.tth-bang8.the8.nam .chip { font-size: 12px; padding: 2px 3px; margin: 1px; }
.tth-bang-trong .tth-bang11 th { font-size: 11.5px; padding: 2px 3px; }
.tth-bang-trong .tth-bang11 td { font-size: 24px; padding: 2px 4px; min-width: 1.4em; }
.tth-bang-trong .tth-bang11 td:last-child { min-width: 3.6em; }
.tth-bang-trong .tth-bang11.the8 td:last-child { min-width: 0; }
.tth-the-hop.k11 .tth-the { font-size: clamp(18px, 5.2vw, 24px); padding: 0 6px; }
.tth-the-hop.k11.chu .tth-the { font-size: 16px; padding: 0 10px; }
.tth-the-hop.k11.dau .tth-the { font-size: 36px; }
.tth-dayso.rong.tth-day11 { gap: 4px; }
.tth-dayso.rong.tth-day11 .tth-phanso { min-width: 0; padding: 0 3px; font-size: clamp(13px, 3.8vw, 21px); }
.tth-dayso.rong.tth-xep11 .tth-phanso { min-width: 0; padding: 0 4px; font-size: clamp(14px, 4.2vw, 20px); }
.tth-xep11 .tth-xep8-dau { font-size: 18px; }
.tth-tia.tia11 .tth-tia-so { font-size: clamp(11px, 3vw, 16px); white-space: nowrap; }
@supports (width: 1cqw) { .tth-tia.tia11 .tth-tia-so { font-size: clamp(11px, 3.4cqw, 16px); } }
.tth-ss11 .tth-so { font-size: clamp(20px, 6vw, 40px); }
@supports (width: 1cqw) { .tth-ss11 .tth-so { font-size: clamp(20px, 7cqw, 40px); } }
.tth-cau.vua.tth-k11-pt { font-size: clamp(19px, 5.4vw, 34px); }
.tth-gom11 { font-size: clamp(17px, 4.8vw, 26px); }
.tth-ss11b .tth-o8 { width: 32px; }
.tth-ss11b th { font-size: 11px !important; }
.tth-ss11b td.so { font-size: 17px !important; min-width: 3.6em; }
.tth-viet11 { margin: 4px 0 0; }
.tth-chinh.so100.k11 { gap: 6px 3px; flex-wrap: wrap; }
.tth-chinh.so100.k11 .tth-pm { width: auto; min-width: 44px; height: 46px; border-radius: 23px; padding: 0 4px; font-size: 12px; letter-spacing: 0; white-space: nowrap; }
.tth-bang-trong .tth-ss11b td, .tth-bang-trong .tth-ss11b td:last-child { min-width: 0; padding: 2px 1px; font-size: 20px; }
.tth-bang-trong .tth-ss11b th { padding: 2px 1px; }
.tth-bang-trong .tth-ss11b td.so { min-width: 0; padding: 2px 4px; white-space: nowrap; }
.tth-sosanh.so100.tth-ss11 .tth-so { font-size: clamp(20px, 6vw, 40px); }
@supports (width: 1cqw) { .tth-sosanh.so100.tth-ss11 .tth-so { font-size: clamp(20px, 7.4cqw, 42px); } }
.tth-dayso.rong.tth-day11 .tth-phanso.trong { min-width: 2.4em; }
/* Lớp 3 Chủ đề 12 – đặt tính năm cột (tinh5, datinh5) */
.tth-dtinh.bon.nam { font-size: clamp(30px, 8.6vw, 50px); gap: 2px 4px; }
@supports (width: 1cqw) { .tth-dtinh.bon.nam { font-size: clamp(28px, 9cqw, 50px); } }
.tth-dtinh.bon.nam.goi { font-size: 26px; }
.tth-dtinh.nam .ten { white-space: pre-line; text-align: center; font-size: 12px; line-height: 1.1; }
.tth-the-hop.phep.ss5 .tth-the { padding: 8px 14px; font-size: clamp(17px, 5.2vw, 28px); }
@supports (width: 1cqw) { .tth-the-hop.phep.ss5 .tth-the { font-size: clamp(16px, 6.4cqw, 28px); } }
/* trang bài: khung "Dành cho phụ huynh" rộng bằng khung bài học phía trên (thầy dặn 01/12/2026) */
body.tth-trang-bai .tth-giay { max-width: none; }
@media (min-width: 900px) { body.tth-trang-bai .tth-main .tth-giay ul { columns: 2; column-gap: 36px; } body.tth-trang-bai .tth-main .tth-giay li { break-inside: avoid; margin: 0 0 8px; } }

/* ===== Lớp 3 Chủ đề 13 – xem đồng hồ, tháng – năm, tiền Việt Nam (01/12/2026) ===== */
.tth-kim13 { flex-wrap: wrap; gap: 6px 8px; }
.tth-kim13 .tth-chinh-nhan { min-width: 0; flex: 0 0 100%; text-align: center; font: 700 16px/1.2 var(--chu-hoa); }
.tth-kim13 .tth-nut { min-width: 0; min-height: 44px; padding: 0 12px; font-size: 16px; }
.tth-kt13 { margin-top: 4px; }
.tth-kp13 { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.tth-namtay { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 16px; }
.tth-namtay .tay { display: flex; align-items: flex-end; gap: 2px; padding: 0 6px 8px; border-radius: 10px 10px 22px 22px; background: #f2c49b; box-shadow: inset 0 -6px 0 #d99d6c; }
.tth-namtay .gu, .tth-namtay .khe { display: grid; place-items: center; width: 36px; padding: 0; border: 0; border-radius: 18px 18px 6px 6px; background: #f8d6b4; color: #5a3416; font: 800 16px/1 var(--chu-hoa); cursor: pointer; }
.tth-namtay .gu { height: 54px; box-shadow: inset 0 3px 0 #fff1e2; }
.tth-namtay .khe { height: 34px; background: #e8b183; border-radius: 8px 8px 4px 4px; }
.tth-namtay .chon { outline: 3px solid var(--vang); outline-offset: 1px; background: #ffe27a; color: #1f2a44; }
.tth-namtay span.gu, .tth-namtay span.khe { cursor: default; }
.tth-namtay.nho { margin-top: 6px; }
.tth-namtay.nho .gu, .tth-namtay.nho .khe { width: 26px; font-size: 13px; }
.tth-namtay.nho .gu { height: 40px; }
.tth-namtay.nho .khe { height: 26px; }
@media (max-width: 420px) { .tth-namtay .gu, .tth-namtay .khe { width: 32px; } }
.tth-uoc .ten.nho13 { font-size: clamp(18px, 5.2vw, 24px); text-align: center; }
.tth-g13-hai { display: flex; justify-content: center; gap: 18px; width: 100%; }
.tth-g13-hai .o { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tth-g13-hai .tth-khoi.dongho { width: clamp(96px, 30vw, 140px); height: auto; }
.tth-g13-hai b { font: 800 18px/1.2 var(--chu-hoa); color: var(--phan-vang); }
.tth-g13-day { display: flex; justify-content: center; align-items: center; gap: 4px; width: 100%; flex-wrap: nowrap; }
.tth-g13-day .tth-khoi.dongho { width: clamp(52px, 17vw, 96px); height: auto; flex: 0 1 auto; min-width: 0; }
@supports (width: 1cqw) { .tth-g13-day .tth-khoi.dongho { width: clamp(50px, 18cqw, 96px); } }
.tth-g13-day .hoi { display: grid; place-items: center; width: clamp(52px, 17vw, 96px); aspect-ratio: 1; border: 3px dashed var(--phan-vang); border-radius: 50%; font: 800 28px/1 var(--chu-hoa); color: var(--phan-vang); flex: 0 0 auto; }
.tth-bgio.g13 .ten { font-size: 18px; }
.tth-bgio.g13 .hang.da { background: rgba(92, 207, 110, .22); box-shadow: 0 0 0 2px var(--la); }
.tth-bgio.g13 .tth-dhdt b { font-size: 21px; }
.tth-dhdt-khoang { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.tth-dhdt-khoang i { font-style: normal; color: var(--phan); font-weight: 800; }
.tth-dhdt-khoang .tth-dhdt { padding: 3px 7px; }
.tth-dhdt-khoang .tth-dhdt b { font-size: 17px; }
@media (max-width: 420px) { .tth-bgio.g13 .ten { font-size: 15px; } .tth-dhdt-khoang .tth-dhdt b { font-size: 14px; } .tth-dhdt-khoang .tth-dhdt { padding: 2px 4px; border-width: 2px; } }
.tth-the-hop.chu.tien13 .tth-the, .tth-the-hop.tien13 .tth-the { font-size: 19px; padding: 0 12px; }
.tth-tien-hang.n13 { gap: 5px; }
.tth-tien-hang.n13 .tth-tien-svg { width: clamp(64px, 19vw, 96px); }
@supports (width: 1cqw) { .tth-tien-hang.n13 .tth-tien-svg { width: clamp(60px, 19cqw, 96px); } }
.tth-the-hop.heo13 { gap: 8px; flex-wrap: nowrap; width: 100%; }
.tth-the-hop.heo13 .tth-the { flex: 1 1 0; min-width: 0; height: auto; padding: 6px 4px; border-radius: 16px; }
.tth-heo13 { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tth-heo13 b { font: 800 20px/1.2 var(--chu-hoa), var(--emoji); }
.tth-heo13 .tth-tien-hang { flex-direction: column; gap: 3px; }
.tth-heo13 .tth-tien-svg { width: clamp(56px, 22vw, 96px); }
.tth-heo13 .tong13 { font: 800 15px/1.2 var(--chu-hoa); }
.tth-doi13 { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; font: 700 22px/1.3 var(--chu-hoa); color: var(--phan); }
.tth-doi13 .tth-cau { margin: 0; }
.tth-doi13 .bang { font-size: 28px; color: var(--phan-vang); }
.tth-gia13 { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
.tth-gia13 .vat { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 70px; padding: 6px 8px; border-radius: 14px; background: rgba(252, 252, 242, .1); }
.tth-gia13 .vat i { font: normal 40px/1.1 var(--emoji); }
.tth-gia13 .vat small { font: 700 15px/1.2 var(--chu-hoa); color: var(--phan); }
.tth-gia13.ro .vat small.gia { padding: 2px 8px; border-radius: 999px; background: var(--phan-vang); color: var(--den); font-size: 16px; }
.tth-goi13 { margin: 4px 0 0; padding-left: 22px; text-align: left; font: 600 18px/1.45 var(--chu-hoa); color: var(--phan); }
.tth-ghi13 { margin: 0; max-width: 520px; font: 600 16px/1.4 var(--chu-hoa); color: var(--phan); text-align: center; }

.tth-the-hop.dh.ba13 { flex-wrap: nowrap; gap: 8px; }
.tth-the-hop.dh.ba13 .tth-the { flex: 0 1 auto; min-width: 0; }
.tth-the-hop.dh.ba13 .tth-khoi { width: clamp(70px, 26vw, 112px); }
@supports (width: 1cqw) { .tth-the-hop.dh.ba13 .tth-khoi { width: clamp(68px, 26cqw, 116px); } }
.tth-heo13 .tth-tien-hang.n13 .tth-tien-svg { width: 100%; min-width: 64px; max-width: 100px; }
.tth-the-hop.chu.gp.kem13 .tth-the { font-size: 16px; padding: 0 10px; }
@media (max-width: 420px) {
  .tth-bgio.g13.khoang .hang { flex-wrap: wrap; gap: 2px 8px; }
  .tth-bgio.g13.khoang .tth-dhdt-khoang { flex: 1 0 100%; justify-content: flex-end; }
  .tth-bgio.g13.khoang .tth-dhdt-khoang .tth-dhdt b { font-size: 17px; }
}
.tth-heo13 b { color: var(--muc); }
.tth-the.dung .tth-heo13 b, .tth-the.dung .tth-heo13 .tong13 { color: #fff; }

/* trang chủ: nhãn vở và dòng giới thiệu rộng bằng hàng ô lớp bên dưới (thầy dặn 01/12/2026) */
.tth-nhanvo { max-width: none; margin-right: 6px; }
.tth-nhanvo + .sub { max-width: none; }
@media (min-width: 760px) {
  .tth-nhanvo-trong { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; }
  .tth-nhanvo-trong .tth-dong { flex: 0 1 540px; max-width: none; margin-top: 0; }
}

/* Lớp 3 Chủ đề 14 – nhân, chia trong phạm vi 100 000 (01/12/2026) */
.tth-chia14 { grid-template-columns: .62em .62em .62em .62em .62em auto; font-size: 26px; line-height: 1; }
@supports (width: 1cqw) { .tth-chia14 { font-size: clamp(20px, 7.4cqw, 32px); } }
.tth-chia14.goi { font-size: 18px; }
.tth-bang14 td, .tth-bang14 th { white-space: nowrap; }

/* trang chủ trên điện thoại: "Tên của em:" nằm trên, ô tên rộng hết khung, chữ nhỏ lại để tên dài bốn chữ vẫn hiện đủ (thầy dặn 01/12/2026) */
@media (max-width: 559px) {
  .tth-nhanvo-trong { padding: 16px 14px 16px; }
  .tth-nhanvo .tth-dong { flex-wrap: wrap; gap: 2px 8px; }
  .tth-nhanvo .tth-dong > span:first-child { flex: 1 1 100%; font-size: 16px; }
  .tth-nhanvo .tth-dong input { flex: 1 1 100%; width: 100%; font-size: clamp(17px, 5.4vw, 22px); padding: 0 2px; }
}

/* Lớp 3 Chủ đề 15 – thống kê, xác suất: bảng số liệu, kiểm đếm bằng vạch, ghi chép × / O, khả năng xảy ra (01/12/2026) */
.tth-bsl-hop { width: 100%; max-width: 620px; overflow-x: auto; display: flex; flex-direction: column; align-items: center; }
.tth-bsl-tieu { margin: 0 0 4px; font: 700 15px/1.3 var(--chu-hoa); color: var(--phan-vang); text-align: center; }
.tth-bang-trong .tth-bsl { border-collapse: collapse; background: transparent; max-width: 100%; font-family: var(--chu-hoa); text-align: center; }
.tth-bang-trong .tth-bsl th, .tth-bang-trong .tth-bsl td { position: relative; border: 2px solid var(--phan-mo); padding: 3px 6px; background: transparent; vertical-align: middle; }
.tth-bang-trong .tth-bsl th { font: 700 clamp(13px, 3.9vw, 17px)/1.2 var(--chu-hoa); color: var(--phan); }
@supports (width: 1cqw) { .tth-bang-trong .tth-bsl th { font-size: clamp(13px, 4.6cqw, 17px); } }
@media (max-width: 559px) { .tth-bang-trong .tth-bsl { width: 100%; } .tth-bang-trong .tth-bsl th, .tth-bang-trong .tth-bsl td { padding: 3px 3px; } }
.tth-bang-trong .tth-bsl tr:first-child th { color: var(--phan-vang); }
.tth-bang-trong .tth-bsl tr > th:first-child { max-width: 8.5em; text-align: left; }
.tth-bang-trong .tth-bsl td { min-width: 2.6em; font: 800 clamp(18px, 4.8vw, 26px)/1.25 var(--chu-hoa); color: var(--phan-vang); white-space: nowrap; }
@supports (width: 1cqw) { .tth-bang-trong .tth-bsl td { font-size: clamp(18px, 5.4cqw, 26px); } }
.tth-bang-trong .tth-bsl td.tong { background: rgba(255, 226, 122, .1); }
.tth-bang-trong .tth-bsl .sang { background: rgba(255, 226, 122, .3); outline: 2px solid var(--phan-vang); outline-offset: -2px; }
.tth-bang-trong .tth-bsl th.goc { min-width: 7.6em; height: 3.4em; padding: 0; background: linear-gradient(to top right, transparent calc(50% - 1px), var(--phan-mo) calc(50% - 1px), var(--phan-mo) calc(50% + 1px), transparent calc(50% + 1px)); }
.tth-bsl th.goc .tren { position: absolute; top: 3px; right: 6px; font-size: 12px; color: var(--phan-vang); }
.tth-bsl th.goc .duoi { position: absolute; bottom: 3px; left: 4px; font-size: 12px; white-space: nowrap; color: var(--phan); }
.tth-bsl .tth-o { min-width: 1.6em; font-size: inherit; }
.tth-bsl .tth-tk-nhan { flex-direction: column; gap: 0; }
.tth-bsl .tth-tk-nhan .tth-tk-i { font-size: clamp(20px, 5.4vw, 28px); }
.tth-bsl.gio th { white-space: normal; }
.tth-bsl-ghi { margin: 0; padding: 6px 12px; border: 2px dashed var(--phan-mo); border-radius: 12px; font: 600 clamp(15px, 4vw, 19px)/1.45 var(--chu-hoa); color: var(--phan); }
.tth-bsl-ghi p { margin: 0; white-space: nowrap; }
.tth-bsl-ghi .tieu { color: var(--phan-vang); }
.tth-bsl-xep { min-height: 1.4em; color: var(--phan-vang); }
.tth-vach-hop, .tth-xo-hop { display: flex; flex-direction: column; gap: 4px; padding: 8px 12px; border: 2px solid var(--phan-vang); border-radius: 12px; max-width: 100%; }
.tth-vach-hop .dong, .tth-xo-hop .dong { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 34px; border-radius: 8px; }
.tth-vach-hop .dong.sang { background: rgba(255, 226, 122, .2); }
.tth-vach-hop .ten, .tth-xo-hop .ten { display: inline-flex; align-items: center; gap: 2px; min-width: 6.6em; font: 700 clamp(15px, 4vw, 18px)/1.2 var(--chu-hoa); color: var(--phan); }
.tth-xo-hop .ten { min-width: 3.4em; }
.tth-vach-hop .ten .tth-tk-i { font-size: 22px; }
.tth-vach { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.tth-vach svg { height: 32px; overflow: visible; }
.tth-vach line { stroke: var(--phan); stroke-width: 2.6; stroke-linecap: round; }
.tth-vach-hop .ghi, .tth-xo-hop .ghi { margin: 2px 0 0; font: 600 13px/1.3 var(--chu); color: rgba(252, 252, 242, .75); }
.tth-xo-hop .dau { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 2px; flex: 1 1 250px; max-width: 380px; }
.tth-xo { position: relative; display: inline-grid; place-items: center; width: 100%; min-width: 0; height: clamp(30px, 8vw, 38px); padding: 0; border: 0; border-radius: 8px; background: none; font: 800 clamp(20px, 6vw, 28px)/1 var(--chu-hoa); color: var(--phan); }
button.tth-xo { cursor: pointer; background: rgba(255, 255, 255, .08); }
.tth-xo.x { color: var(--phan-vang); }
.tth-xo.sang { background: var(--phan-vang); color: var(--den); }
.tth-xo.truot { opacity: .4; }
.tth-xo[data-so]::after { top: -10px; right: -6px; }
.tth-xu { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3b0, #e8b923 60%, #b88a10); box-shadow: inset 0 0 0 4px #c99a17, 0 3px 0 rgba(0, 0, 0, .25); font-size: 34px; }
.tth-banh { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f8d79a, #d79a4a 70%, #a86a2a); box-shadow: 0 3px 0 rgba(0, 0, 0, .25); font-size: 26px; }
.tth-khay15 { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: rgba(200, 220, 235, .2); border: 3px solid rgba(220, 235, 245, .6); }
.tth-kn-xx.hinh { gap: 5px; flex-wrap: nowrap; }
.tth-mat15 { display: inline-grid; place-items: center; width: clamp(38px, 11vw, 52px); height: clamp(38px, 11vw, 52px); padding: 5px; border-radius: 10px; background: var(--phan); box-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.tth-mat15 svg, .tth-mat15 .tth-hinh { width: 100%; height: 100%; }
.tth-luat15 { display: flex; flex-direction: column; gap: 6px; }
.tth-luat15 .dong { display: flex; align-items: center; gap: 6px; font: 700 clamp(14px, 3.8vw, 18px)/1.2 var(--chu-hoa); color: var(--phan); }
.tth-luat15 .tth-xucxac, .tth-kn-hang.ra .tth-xucxac { width: 40px; height: 40px; padding: 5px; gap: 2px; border-radius: 8px; }
.tth-luat15 .tth-tk-i { font-size: 30px; }
.tth-luat15 .mui { color: var(--phan-vang); }
.tth-kn-hang.ra { align-items: center; font: 700 18px/1.2 var(--chu-hoa); color: var(--phan-vang); }
.tth-kn-hang.ra .tth-xucxac { width: 56px; height: 56px; padding: 7px; }
.tth-phieu15 { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; width: 100%; max-width: 480px; }
.tth-phieu { position: relative; display: grid; place-items: center; min-height: 48px; padding: 2px; border: 2px solid var(--phan-mo); border-radius: 10px; background: rgba(255, 255, 255, .92); font-size: 28px; cursor: pointer; }
.tth-phieu.xong { opacity: .3; }
.tth-phieu.goi { animation: tth-lac .5s 2; }
.tth-xo-hop { width: 100%; max-width: 520px; }

/* ===== Lớp 4 Chủ đề 1: số chẵn, số lẻ; biểu thức chữ; bài toán ba bước tính (Đợt 38, 01/12/2026) ===== */
.tth-so41 { white-space: nowrap; letter-spacing: .02em; }
.tth-so41 .cuoi41 { display: inline-block; padding: 0 .08em; border-radius: 10px; transition: background .2s, color .2s; }
.tth-so41 .cuoi41.sang { background: var(--phan-vang); color: var(--den); }
.tth-the-hop.so41 .tth-the { font-size: clamp(22px, 6.6vw, 30px); }
@supports (width: 1cqw) { .tth-the-hop.so41 .tth-the { font-size: clamp(22px, 7.4cqw, 30px); } }
.tth-ong41 { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.tth-ong41 .ong { font: 54px/1 var(--emoji); animation: tth-no .3s both; }
.tth-the-hop.hoa41 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 440px; }
.tth-the-hop.hoa41 .tth-the { height: auto; min-height: 64px; padding: 6px 8px; }
.hoa41 { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.hoa41 i { font: 34px/1 var(--emoji); font-style: normal; }
.hoa41 b { font: 800 clamp(22px, 6.2vw, 28px)/1 var(--chu-hoa); white-space: nowrap; color: var(--muc); }
.tth-the.dung .hoa41 b { color: #fff; }
.tth-day41 { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: 100%; max-width: 560px; }
.tth-day41 span { display: grid; place-items: center; min-width: 42px; height: 40px; border: 2px solid var(--phan-mo); border-radius: 10px; font: 700 20px/1 var(--chu-hoa); color: var(--phan); transition: background .2s, color .2s; }
.tth-day41 span.sang { background: var(--phan-vang); border-color: var(--phan-vang); color: var(--den); }
.tth-pho41 { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; width: 100%; max-width: 560px; padding-bottom: 8px; border-bottom: 4px dashed var(--phan-mo); }
.tth-nha41 { position: relative; display: flex; flex-direction: column; align-items: center; width: 44px; }
.tth-nha41 .mai41 { width: 0; height: 0; border-left: 23px solid transparent; border-right: 23px solid transparent; border-bottom: 19px solid #e8835a; }
.tth-nha41 b { display: grid; place-items: center; width: 40px; height: 36px; background: #f6d6a6; color: var(--den); font: 800 16px/1 var(--chu-hoa); border-radius: 0 0 6px 6px; }
.tth-nha41.o b { background: transparent; border: 3px dashed var(--phan-vang); border-top: 0; color: var(--phan-vang); box-sizing: border-box; }
.tth-nha41.day b { background: var(--phan-vang); color: var(--den); border: 0; animation: tth-no .25s both; }
.tth-the41 { display: flex; justify-content: center; gap: 14px; }
.tth-the41 span { display: grid; place-items: center; width: 58px; height: 70px; border-radius: 10px; background: var(--phan-vang); color: var(--den); font: 800 38px/1 var(--chu-hoa); box-shadow: 0 4px 0 rgba(0, 0, 0, .25); }
.tth-bt6 .thay41 { color: var(--phan-vang); }
.tth-bang-trong .tth-bang41 td { min-width: 2.6em; font: 800 clamp(20px, 6vw, 28px)/1.3 var(--chu-hoa); color: var(--phan-vang); }
.tth-bang-trong .tth-bang41 th { white-space: nowrap; font-size: clamp(15px, 4.6vw, 20px); }
.tth-bang-trong .tth-bang41 td.o { color: var(--phan-mo); }
.tth-bang-trong .tth-bang41 td.sang { animation: tth-no .25s both; }
.tth-dodai-to.hep41 { max-width: 300px; }
.tth-dodai-to.hep41 .tth-khoi { max-height: clamp(110px, 24vh, 180px); }
.tth-dodai-to.hep41 text.hp-so { font-size: 22px; font-style: italic; }
.tth-dodai-to.hep41 text.hp-ten { font-size: 18px; }
.tth-the-hop.bn41 { flex-direction: column; align-items: center; }
.tth-the-hop.bn41 .tth-the { font-size: clamp(20px, 6.4vw, 28px); }
.tth-ban41 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; max-width: 600px; }
.tth-ban41 .o41 { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px; border: 2px solid var(--phan-mo); border-radius: 12px; }
.tth-ban41 .e { font: 40px/1 var(--emoji); }
.tth-ban41 b { font: 700 18px/1.1 var(--chu-hoa); color: var(--phan-vang); }
.tth-ban41 .bt { font: 700 clamp(14px, 4vw, 19px)/1.25 var(--chu-hoa); text-align: center; }
.tth-baigiai.ba41 { gap: 2px; }
.tth-baigiai.ba41 .tth-baigiai-lg { font-size: 15px; }
.tth-baigiai.ba41 .tth-cau:not(.nho) { font-size: clamp(18px, 5.4vw, 24px); }
.tth-kp41 { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.tth-kp41-hang { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.tth-kp41-hang { flex-wrap: nowrap; gap: 5px; }
.tth-kp41-hang b { min-width: 4.6em; text-align: right; font: 700 16px/1 var(--chu-hoa); color: var(--phan); }
.tth-kp41-hang span { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border: 2px solid var(--phan-mo); border-radius: 50%; font: 800 21px/1 var(--chu-hoa); color: var(--phan-mo); transition: background .2s, color .2s; }
.tth-kp41-hang span.co { border-color: var(--phan-vang); color: var(--phan-vang); }
.tth-kp41-hang span.dang { background: var(--phan-vang); color: var(--den); }

/* ---------- Lớp 4 Chủ đề 2: thước đo góc, góc nhọn – tù – bẹt (Đợt 39) ---------- */
.tth-goc42 .tth-khoi { max-height: clamp(170px, 42vh, 330px); }
.tth-goc42.hep42 { max-width: 360px; }
.tth-khoi .tq42 .nen { fill: rgba(252, 252, 242, .1); stroke: var(--phan); stroke-width: 1.6; }
.tth-khoi .tq42 .dai { fill: rgba(255, 214, 90, .28); stroke: none; }
.tth-khoi .tq42 .v { stroke: var(--phan); stroke-width: 1.1; }
.tth-khoi .tq42 .v.to { stroke-width: 1.8; }
.tth-khoi .tq42 .tam { stroke: var(--phan-vang); stroke-width: 1.6; }
.tth-khoi .tq42 text.so { font: 800 13px/1 var(--chu-hoa); fill: var(--phan); stroke: none; text-anchor: middle; dominant-baseline: central; }
.tth-khoi .tq42 text.so.ba { font-size: 10.8px; letter-spacing: -.4px; }
.tth-khoi .tq42 text.so.sang { fill: var(--phan-vang); font-size: 15px; }
.tth-khoi .huy42 circle { fill: #2fb36b; stroke: var(--phan); stroke-width: 2; }
.tth-khoi .huy42.goi circle { fill: var(--phan-vang); }
.tth-khoi .huy42 text { font: 800 15px/1 var(--chu-hoa); fill: #fff; text-anchor: middle; stroke: none; }
.tth-khoi .huy42.goi text { fill: var(--den); }
.tth-khoi .cung42 { fill: none; stroke: var(--phan-vang); stroke-width: 2.2; }
.tth-khoi text.so42 { font-size: 15px; font-weight: 800; stroke: var(--bang); stroke-width: 4px; paint-order: stroke; }
.tth-khoi .quat42 { stroke: rgba(0, 0, 0, .35); stroke-width: 1; }
.tth-khoi .nan42 { stroke: #8a5a2b; stroke-width: 1.6; stroke-linecap: round; }
.tth-khoi .chot42 { fill: #8a5a2b; stroke: var(--phan); stroke-width: 1.5; }
.tth-pm.hep42 { width: 64px; height: 50px; border-radius: 16px; font-size: 19px; }
.tth-chinh.xoay42 { flex-wrap: wrap; gap: 10px; }
.tth-cau.to42 { font-size: clamp(48px, 14vw, 68px); font-weight: 800; color: var(--phan-vang); }
.tth-the-hop.doc42 { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 460px; }
.tth-the-hop.doc42 .tth-the { height: auto; min-height: 54px; padding: 6px 8px; font-size: 16px; line-height: 1.25; }
.tth-v3-luoi.hai42 .tth-v3-o .tth-khoi { width: clamp(120px, 40vw, 190px); }
@supports (width: 1cqw) { .tth-v3-luoi.hai42 .tth-v3-o .tth-khoi { width: clamp(120px, 44cqw, 190px); } }
.tth-v3-luoi.thuoc42 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tth-v3-luoi.thuoc42 .tth-v3-o .tth-khoi { width: clamp(130px, 40vw, 200px); }
@supports (width: 1cqw) { .tth-v3-luoi.thuoc42 .tth-v3-o .tth-khoi { width: clamp(130px, 44cqw, 200px); } }
