/* Góc "Hát cùng Trâu Con" – Trường Tiếng Việt Của Em (CVCEC)
   Màu, phông lấy từ biến --ttv-* của bộ mẫu chung (mau.cvcec.org/v1).
   Màu góc (hồng sen) lấy từ TTV_DANH_SACH, id "hatca": --ttv-goc / --ttv-goc-dam / --ttv-goc-nhat. */

* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; }
.an-han, [hidden] { display: none !important; }

/* ================= TRANG CHỦ ================= */
.hc-dau { padding: 26px 20px 168px; }
.hc-dau-trong { max-width: 900px; margin: 0 auto; display: flex; align-items: center; gap: 24px; justify-content: center; }
.hc-dau-trong > img { height: 168px; width: auto; flex: 0 0 auto; }
.hc-dau-chu { max-width: 540px; }
.hc-nhan { display: inline-block; background: var(--ttv-goc-dam); color: #fff; font-family: var(--ttv-phong-tieu-de);
  font-weight: 700; font-size: .95rem; padding: 3px 14px; border-radius: var(--ttv-bo-nut); }
.hc-dau h1 { font-size: clamp(2rem, 5.4vw, 2.8rem); margin: 8px 0 4px; }
.hc-dau .hc-phu { margin: 0 0 14px; font-weight: 700; color: var(--ttv-chu-phu); font-size: 1.08rem; }
.hc-dau h1, .hc-dau .hc-phu { text-shadow: 0 0 6px var(--ttv-troi), 0 0 3px var(--ttv-troi); }
.hc-nut-hang { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 600px) {
  .hc-dau { padding: 18px 16px 130px; }
  .hc-dau-trong { flex-direction: column; text-align: center; gap: 8px; }
  .hc-dau-trong > img { height: 120px; }
  .hc-nut-hang { justify-content: center; }
}

main.hc-chinh { padding: 0 16px 32px; }
.hc-khung { max-width: 900px; margin: 0 auto; display: grid; gap: 16px; }
.hc-khung > :first-child { margin-top: -96px; position: relative; z-index: 2; }

/* Lời chào */
.hc-chao { display: flex; gap: 16px; align-items: flex-start; }
.hc-chao > img { height: 96px; width: auto; flex: 0 0 auto; }
.hc-chao p { margin: 0 0 8px; font-size: 1.08rem; line-height: 1.6; }
.hc-the-dau { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hc-the-dau h2, .hc-the-dau h3 { font-family: var(--ttv-phong-tieu-de); font-size: 1.3rem; margin: 0 0 6px; }
.hc-en { flex: 0 0 auto; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: var(--ttv-bo-nut); border: 2px solid var(--ttv-goc-dam);
  background: var(--ttv-the); color: var(--ttv-goc-dam); font: inherit; font-weight: 800; cursor: pointer; touch-action: manipulation; }
.hc-en[aria-expanded="true"] { background: var(--ttv-goc-dam); color: #fff; }
.hc-giai-en { display: none; margin: 0 0 10px; padding: 10px 14px; background: var(--ttv-goc-nhat); border-radius: 14px; line-height: 1.55; }
.hc-giai-en.mo { display: block; }
.hc-so-lieu { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hc-so-lieu li { background: var(--ttv-goc-nhat); border-radius: var(--ttv-bo-nut); padding: 6px 14px; font-weight: 700; }
.hc-so-lieu b { font-family: var(--ttv-phong-tieu-de); font-size: 1.2rem; color: var(--ttv-goc-dam); margin-right: 4px; }
@media (max-width: 600px) { .hc-chao { flex-direction: column; align-items: center; } .hc-chao > img { height: 80px; } }

/* Khối thu gọn */
.hc-khoi { background: var(--ttv-the); border: 2px solid var(--ttv-vien); border-bottom: 6px solid var(--ttv-goc); border-radius: var(--ttv-bo-goc); }
.hc-khoi summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px;
  padding: 10px 18px; cursor: pointer; touch-action: manipulation; }
.hc-khoi summary::-webkit-details-marker { display: none; }
.hc-khoi-ten { font-family: var(--ttv-phong-tieu-de); font-weight: 800; font-size: clamp(1.15rem, 3.4vw, 1.4rem); }
.hc-them { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--ttv-bo-nut);
  background: var(--ttv-goc-nhat); font-weight: 800; font-size: .95rem; }
.hc-them::after { content: "Xem thêm"; }
.hc-khoi[open] .hc-them::after { content: "Thu gọn"; }
.hc-khoi-ruot { padding: 4px 20px 20px; border-top: 2px dashed var(--ttv-vien); line-height: 1.6; }
.hc-khoi h3 { font-family: var(--ttv-phong-tieu-de); margin: 16px 0 6px; font-size: 1.15rem; color: var(--ttv-goc-dam); }
.hc-khoi p { margin: 6px 0; }
.hc-khoi ul, .hc-khoi ol { margin: 6px 0; padding-left: 22px; }
.hc-khoi li { margin: 6px 0; }
.hc-ds-bieu { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.hc-ds-bieu li { display: flex; gap: 12px; align-items: flex-start; background: var(--ttv-nen); border-radius: 16px; padding: 10px 14px; margin: 0; }
.hc-ds-bieu li > span:first-child { font-size: 1.5rem; line-height: 1.2; flex: 0 0 auto; }

.hc-dat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.hc-dat section { background: var(--ttv-nen); border-radius: 18px; padding: 12px 14px; border-top: 6px solid var(--ttv-goc); }
.hc-dat h3 { margin: 0 0 4px; }
.hc-dat .hc-dat-phu { margin: 0 0 6px; font-weight: 700; color: var(--ttv-chu-phu); font-size: .95rem; }
.hc-dat ul { padding-left: 18px; }
@media (max-width: 860px) { .hc-dat { grid-template-columns: 1fr; } }
.hc-dich { margin-top: 12px; display: flex; gap: 12px; align-items: center; background: var(--ttv-goc-nhat); border-radius: 18px; padding: 12px 16px; }
.hc-dich > span { font-size: 2rem; }
.hc-dich p { margin: 0; }

.hc-phan-tq { display: grid; gap: 12px; }
.hc-phan-o { border: 2px solid var(--ttv-vien); border-radius: 18px; padding: 12px 14px; }
.hc-phan-o-dau { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.hc-phan-o-dau .bieu { font-size: 2rem; line-height: 1; }
.hc-phan-o h4 { margin: 0; font-family: var(--ttv-phong-tieu-de); font-size: 1.1rem; }
.hc-phan-o h4 small { font-family: var(--ttv-phong); font-weight: 700; color: var(--ttv-chu-phu); font-size: .9rem; margin-left: 6px; }
.hc-phan-o-dau p { margin: 2px 0 0; }
.hc-chip-hang { display: flex; flex-wrap: wrap; gap: 8px; }
.hc-chip { display: inline-flex; background: var(--ttv-goc-nhat); border-radius: 14px; padding: 6px 12px; font-weight: 700; line-height: 1.3; }
.hc-chip.cho { background: var(--ttv-nen); color: var(--ttv-chu-phu); border: 2px dashed var(--ttv-vien); }

.hc-buoc-tq { list-style: none; padding: 0 !important; margin: 10px 0 !important; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.hc-buoc-tq li { margin: 0 !important; background: var(--ttv-nen); border-radius: 18px; padding: 12px 8px; text-align: center; position: relative; }
.hc-buoc-tq .bieu { display: block; font-size: 2rem; line-height: 1.1; }
.hc-buoc-tq b { display: block; font-family: var(--ttv-phong-tieu-de); font-size: 1.02rem; margin: 4px 0 2px; line-height: 1.2; }
.hc-buoc-tq small { display: block; color: var(--ttv-chu-phu); font-weight: 600; line-height: 1.35; font-size: .88rem; }
.hc-buoc-tq li:not(:last-child)::after { content: "→"; position: absolute; right: -9px; top: 26px; font-weight: 900; color: var(--ttv-goc-dam); }
.hc-buoc-tq li.sao { background: #FFF6DF; }
@media (max-width: 860px) {
  .hc-buoc-tq { grid-template-columns: 1fr; }
  .hc-buoc-tq li { display: grid; grid-template-columns: 48px 1fr; text-align: left; align-items: center; column-gap: 8px; }
  .hc-buoc-tq .bieu { grid-row: span 2; text-align: center; }
  .hc-buoc-tq b { margin: 0; }
  .hc-buoc-tq li:not(:last-child)::after { content: "↓"; right: auto; left: 26px; top: auto; bottom: -15px; }
}

.hc-hd { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.hc-hd section { background: var(--ttv-nen); border-radius: 18px; padding: 4px 16px 10px; }
@media (max-width: 760px) { .hc-hd { grid-template-columns: 1fr; } }
.hc-meo { display: flex; gap: 10px; align-items: flex-start; background: #FFF6DF; border-radius: 16px; padding: 10px 14px; margin-top: 12px !important; }
.hc-meo > span:first-child { font-size: 1.3rem; }

/* Danh sách bài */
.hc-ds-tieu-de { font-family: var(--ttv-phong-tieu-de); font-size: 1.5rem; margin: 10px 0 0; }
.hc-chon-phan { display: flex; gap: 10px; flex-wrap: wrap; }
.hc-chon-phan button { display: inline-flex; flex-direction: column; align-items: flex-start; min-height: 56px; padding: 8px 18px; border-radius: 20px;
  border: 2px solid var(--ttv-goc); background: var(--ttv-the); color: var(--ttv-chu); font: inherit; cursor: pointer; text-align: left; touch-action: manipulation; }
.hc-chon-phan button b { font-family: var(--ttv-phong-tieu-de); font-size: 1.12rem; color: var(--ttv-goc-dam); }
.hc-chon-phan button small { font-weight: 700; color: var(--ttv-chu-phu); }
.hc-chon-phan button[aria-pressed="true"] { background: var(--ttv-goc-dam); border-color: var(--ttv-goc-dam); }
.hc-chon-phan button[aria-pressed="true"] b, .hc-chon-phan button[aria-pressed="true"] small { color: #fff; }
@media (max-width: 600px) { .hc-chon-phan button { flex: 1 1 100%; } }

.hc-phan { background: var(--ttv-the); border: 2px solid var(--ttv-vien); border-radius: var(--ttv-bo-goc); overflow: hidden; }
.hc-phan-dau { display: flex; gap: 14px; align-items: center; padding: 12px 16px; background: var(--ttv-goc-nhat); }
.hc-phan-dau .bieu { font-size: 2.6rem; line-height: 1; }
.hc-phan-dau .nho { margin: 0; font-weight: 800; color: var(--ttv-goc-dam); font-size: .9rem; }
.hc-phan-dau h3 { margin: 0; font-family: var(--ttv-phong-tieu-de); font-size: 1.25rem; line-height: 1.2; }
.hc-phan-dau .en { margin: 2px 0 0; color: var(--ttv-chu-phu); font-size: .9rem; font-weight: 600; }
.hc-ds-bai { list-style: none; margin: 0; padding: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.hc-the-bai { display: flex; flex-direction: column; gap: 8px; height: 100%; min-height: 44px; padding: 12px 14px; text-decoration: none; color: var(--ttv-chu);
  background: var(--ttv-the); border: 2px solid var(--ttv-vien); border-bottom: 5px solid var(--ttv-goc); border-radius: 20px; }
a.hc-the-bai:hover, a.hc-the-bai:focus-visible { border-color: var(--ttv-goc); }
.hc-the-bai.cho { background: var(--ttv-nen); border-style: dashed; border-bottom-style: solid; border-bottom-color: var(--ttv-vien); }
.hc-the-bai .dau { display: flex; align-items: center; gap: 10px; }
.hc-the-bai .so { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: var(--ttv-goc-dam); color: #fff;
  align-items: center; justify-content: center; font-weight: 800; font-size: 1.05rem; flex: 0 0 auto; }
.hc-the-bai.cho .so { background: var(--ttv-chu-phu); }
.hc-the-bai .ten-khoi { display: flex; flex-direction: column; }
.hc-the-bai .ten { font-family: var(--ttv-phong-tieu-de); font-weight: 800; font-size: 1.12rem; line-height: 1.25; }
.hc-the-bai .en { font-size: .88rem; color: var(--ttv-chu-phu); font-weight: 600; }
.hc-nhan-tro { align-self: flex-start; background: var(--ttv-goc-nhat); border-radius: var(--ttv-bo-nut); padding: 2px 10px; font-weight: 700; font-size: .9rem; }
.hc-the-bai.cho .hc-nhan-tro { background: var(--ttv-the); }
.hc-the-bai .tt { margin-top: auto; display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ttv-chu-phu); font-size: .95rem; }
.hc-sao-nho { color: var(--ttv-sao); letter-spacing: 1px; font-size: 1.05rem; }
.hc-the-bai.xong { border-bottom-color: var(--ttv-sao); }
.nhan-thu, .nhan-cho { display: inline-block; border-radius: var(--ttv-bo-nut); padding: 1px 10px; font-size: .85rem; font-weight: 800; }
.nhan-thu { background: var(--ttv-goc-dam); color: #fff; }
.nhan-cho { background: var(--ttv-vien); color: var(--ttv-chu); }
.hc-nguon { font-size: .92rem; color: var(--ttv-chu-phu); line-height: 1.55; margin: 6px 4px 0; }

/* ================= TRANG BÀI ================= */
.hc-dau-bai { padding: 14px 16px 110px; }
.hc-dau-bai-trong { max-width: 960px; margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.hc-dau-bai-trong > img { height: 110px; width: auto; flex: 0 0 auto; margin-left: auto; }
.hc-dau-bai h1 { font-size: clamp(1.7rem, 4.6vw, 2.4rem); margin: 6px 0 0; text-shadow: 0 0 6px var(--ttv-troi), 0 0 3px var(--ttv-troi); }
.hc-dau-bai .hc-phu { margin: 0; font-weight: 700; color: var(--ttv-chu-phu); text-shadow: 0 0 6px var(--ttv-troi); }
.hc-ve { flex: 0 0 auto; align-self: flex-start; }
@media (max-width: 600px) {
  .hc-dau-bai { padding: 10px 12px 96px; }
  .hc-dau-bai-trong { flex-wrap: wrap; gap: 8px; }
  .hc-dau-bai-trong > img { height: 72px; }
  .hc-ten-bai { order: 3; flex: 1 1 100%; }
}

main.hc-bai { padding: 0 14px 32px; }
.hc-khung-bai { max-width: 960px; margin: 0 auto; display: grid; gap: 14px; }
.hc-khung-bai > :first-child { margin-top: -84px; position: relative; z-index: 2; }
.hc-noi-dung { display: grid; gap: 14px; }

/* Thanh 5 bước */
.hc-buoc-nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; background: var(--ttv-the); border: 2px solid var(--ttv-vien);
  border-radius: var(--ttv-bo-goc); padding: 8px; }
.hc-buoc-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; padding: 6px 4px;
  border: 2px solid transparent; border-radius: 18px; background: var(--ttv-nen); color: var(--ttv-chu); font: inherit; cursor: pointer; touch-action: manipulation; }
.hc-buoc-nav .bieu { font-size: 1.5rem; line-height: 1; }
.hc-buoc-nav .chu { font-weight: 800; font-size: .92rem; line-height: 1.15; text-align: center; }
.hc-buoc-nav .ttv-sao { width: 20px; height: 20px; }
.hc-buoc-nav button[aria-current="step"] { background: var(--ttv-goc-dam); color: #fff; }
.hc-buoc-nav button[aria-current="step"] .ttv-sao-tat { background: rgba(255,255,255,.45); }
@media (max-width: 600px) { .hc-buoc-nav { gap: 4px; padding: 6px; } .hc-buoc-nav .chu { font-size: .72rem; } .hc-buoc-nav .bieu { font-size: 1.25rem; } .hc-buoc-nav button { min-height: 60px; } }

.hc-buoc-ten { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--ttv-phong-tieu-de); font-size: clamp(1.35rem, 3.6vw, 1.7rem); }
.hc-loi-trau { display: flex; align-items: flex-end; gap: 14px; }
.hc-loi-trau > img { height: 92px; width: auto; flex: 0 0 auto; }
.hc-loi-trau .ttv-bong-thoai { flex: 1 1 auto; font-size: clamp(1.05rem, 2.8vw, 1.2rem); }
@media (max-width: 600px) { .hc-loi-trau > img { height: 68px; } }

.hc-the { background: var(--ttv-the); border: 2px solid var(--ttv-vien); border-radius: var(--ttv-bo-goc); padding: 16px 18px; }
.hc-the > h3 { margin: 0 0 10px; font-family: var(--ttv-phong-tieu-de); font-size: 1.2rem; color: var(--ttv-goc-dam); }
.hc-hang-nut { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hc-nho-chu { font-size: .92rem; color: var(--ttv-chu-phu); line-height: 1.5; margin: 10px 0 0; }

/* Lời bài – chữ tập đọc */
.hc-loi { font-family: var(--ttv-phong-tap-doc); font-size: clamp(1.45rem, 4.4vw, 2.05rem); line-height: 1.5; margin: 4px 0; }
.hc-cau { display: flex; flex-wrap: wrap; align-items: center; gap: .18em .32em; margin: 0; padding: 2px 0; }
.hc-tieng { display: inline-block; padding: 0 .16em; border-radius: 12px; transition: background .1s, transform .1s; }
.hc-tieng.dang { background: var(--ttv-goc-nhat); box-shadow: 0 0 0 3px var(--ttv-goc); transform: scale(1.08); }
.hc-tieng.an { min-width: 2.2em; color: transparent; background: var(--ttv-nen); border: 2px dashed var(--ttv-goc); cursor: pointer; text-align: center; }
.hc-tieng.an.lo { color: var(--ttv-chu-phu); border-style: solid; }
.hc-tieng.an.dang { color: transparent; }
.hc-tieng.an.lo.dang { color: var(--ttv-chu); }
.hc-cau-nghe { margin-left: auto; min-width: 44px; min-height: 44px; border-radius: 50%; border: 2px solid var(--ttv-vien); background: var(--ttv-the);
  font-size: 1.1rem; cursor: pointer; }
/* Hai cột đọc từ trên xuống (cột trái hết rồi mới sang cột phải) */
.hc-hai-cot { column-count: 2; column-gap: 32px; }
.hc-hai-cot .hc-cau { break-inside: avoid; }
@media (max-width: 700px) { .hc-hai-cot { column-count: 1; } }

/* Nhóm chọn nhịp */
.hc-nhom { display: inline-flex; border: 2px solid var(--ttv-goc-dam); border-radius: var(--ttv-bo-nut); overflow: hidden; }
.hc-nhom button { min-height: 44px; padding: 0 16px; border: 0; background: var(--ttv-the); color: var(--ttv-goc-dam); font: inherit; font-weight: 800; cursor: pointer; touch-action: manipulation; }
.hc-nhom button[aria-pressed="true"] { background: var(--ttv-goc-dam); color: #fff; }

/* Ô vỗ tay */
.hc-vo-tay { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 10px 14px; border-radius: 20px; background: var(--ttv-goc-nhat); }
.hc-vo-tay button { width: 96px; height: 96px; flex: 0 0 auto; border-radius: 50%; border: 4px solid var(--ttv-goc-dam); background: var(--ttv-the);
  font-size: 2.6rem; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; }
.hc-vo-tay button.trung { background: var(--ttv-dung-nen); border-color: var(--ttv-dung); transform: scale(.94); }
.hc-vo-tay button.truot { background: var(--ttv-sai-nen); border-color: var(--ttv-sai); transform: scale(.94); }
.hc-vo-tay p { margin: 0; font-weight: 700; line-height: 1.45; }

/* Phản hồi, sao */
.hc-phan-hoi { min-height: 40px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.hc-thong-bao { position: fixed; left: 0; right: 0; margin: 0 auto; width: max-content; max-width: calc(100vw - 32px); bottom: 24px; transform: translateY(140%); z-index: 60; display: flex; align-items: center; gap: 10px;
  background: var(--ttv-the); border: 3px solid var(--ttv-sao); border-radius: var(--ttv-bo-nut); padding: 8px 20px 8px 10px;
  font-family: var(--ttv-phong-tieu-de); font-weight: 800; font-size: 1.15rem; box-shadow: 0 6px 20px rgba(0,48,96,.18); transition: transform .3s, opacity .3s;
  opacity: 0; pointer-events: none; }
.hc-thong-bao.hien { transform: translateY(0); opacity: 1; }
.hc-thong-bao .ttv-sao { width: 34px; height: 34px; }
.lac { animation: hc-lac .35s; }
@keyframes hc-lac { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
@media (prefers-reduced-motion: reduce) { .lac { animation: none; } .hc-tieng, .hc-thong-bao { transition: none; } }

/* Thẻ từ lật */
.hc-the-tu-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.hc-the-tu { position: relative; min-height: 156px; perspective: 900px; border: 0; padding: 0; background: none; font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; text-align: center; }
.hc-the-tu .trong { position: absolute; inset: 0; transition: transform .45s; transform-style: preserve-3d; }
.hc-the-tu.lat .trong { transform: rotateY(180deg); }
.hc-the-tu .mat { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 12px;
  border-radius: 20px; border: 2px solid var(--ttv-vien); border-bottom: 5px solid var(--ttv-goc); background: var(--ttv-the); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.hc-the-tu .sau { transform: rotateY(180deg); background: var(--ttv-goc-nhat); }
.hc-the-tu .hinh { font-size: 2.6rem; line-height: 1; }
.hc-the-tu .tu { font-family: var(--ttv-phong-tap-doc); font-weight: 700; font-size: 1.35rem; }
.hc-the-tu .nghia { font-weight: 700; line-height: 1.35; font-size: .95rem; }
@media (max-width: 480px) { .hc-the-tu .tu { font-size: 1.15rem; } .hc-the-tu .nghia { font-size: .88rem; } .hc-the-tu .mat { padding: 8px; } }
.hc-the-tu .nghia-en { font-size: .9rem; color: var(--ttv-chu-phu); line-height: 1.35; }
.hc-the-tu.da-xem::after { content: "✓"; position: absolute; top: 6px; right: 10px; color: var(--ttv-dung); font-weight: 900; z-index: 3; }
@media (prefers-reduced-motion: reduce) { .hc-the-tu .trong { transition: none; } }

/* Lựa chọn (câu hỏi, điền từ, tiếp sức) */
.hc-hoi { font-family: var(--ttv-phong-tieu-de); font-weight: 800; font-size: clamp(1.2rem, 3.4vw, 1.45rem); margin: 0 0 4px; }
.hc-hoi-en { margin: 0 0 10px; }
.hc-chon { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-top: 8px; }
.hc-chon button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 10px 14px; border-radius: 20px;
  border: 2px solid var(--ttv-vien); border-bottom: 5px solid var(--ttv-goc); background: var(--ttv-the); color: var(--ttv-chu);
  font-family: var(--ttv-phong-tap-doc); font-size: 1.3rem; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.hc-chon button .hinh { font-size: 1.9rem; }
.hc-chon.ngan { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); }
.hc-chon button.dung { background: var(--ttv-dung-nen); border-color: var(--ttv-dung); }
.hc-chon button.sai { background: var(--ttv-sai-nen); border-color: var(--ttv-sai); opacity: .7; }
.hc-tien-do { font-weight: 800; color: var(--ttv-goc-dam); margin: 0 0 6px; }

/* Ô trống trong bài (điền từ) */
.hc-o-trong { display: inline-block; min-width: 2.6em; padding: 0 .2em; border-bottom: 4px solid var(--ttv-goc); border-radius: 8px 8px 0 0; background: var(--ttv-nen); color: transparent; text-align: center; }
.hc-o-trong.dang { background: var(--ttv-goc-nhat); box-shadow: 0 0 0 3px var(--ttv-goc); }
.hc-o-trong.dien { color: var(--ttv-dung); background: var(--ttv-dung-nen); border-bottom-color: var(--ttv-dung); }

/* Thẻ hoạt động con (Nhớ lời, Chơi mà nhớ) */
.hc-hd-chon { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hc-hd-chon.hai { grid-template-columns: repeat(2, 1fr); }
.hc-hd-chon button { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 14px; border-radius: 20px; text-align: left;
  border: 2px solid var(--ttv-vien); background: var(--ttv-the); color: var(--ttv-chu); font: inherit; font-weight: 800; cursor: pointer; touch-action: manipulation; }
.hc-hd-chon button .bieu { font-size: 1.7rem; }
.hc-hd-chon button small { display: block; font-weight: 600; color: var(--ttv-chu-phu); }
.hc-hd-chon button[aria-pressed="true"] { border-color: var(--ttv-goc-dam); background: var(--ttv-goc-nhat); }
.hc-hd-chon button .xong { margin-left: auto; color: var(--ttv-dung); font-size: 1.3rem; }
@media (max-width: 640px) {
  .hc-hd-chon { gap: 6px; }
  .hc-hd-chon button { flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 8px 6px; position: relative; font-size: .95rem; }
  .hc-hd-chon button small { display: none; }
  .hc-hd-chon button .xong { position: absolute; top: 4px; right: 8px; font-size: 1rem; }
}

/* Xếp câu */
.hc-xep { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .hc-xep { grid-template-columns: 1fr; } }
.hc-xep h4 { margin: 0 0 8px; font-family: var(--ttv-phong-tieu-de); font-size: 1.05rem; }
.hc-xep-ds { display: grid; gap: 8px; align-content: start; min-height: 60px; }
.hc-xep-ds button, .hc-xep-ds .da { min-height: 52px; padding: 8px 14px; border-radius: 16px; text-align: left; font-family: var(--ttv-phong-tap-doc); font-size: 1.2rem; font-weight: 700; }
.hc-xep-ds button { border: 2px solid var(--ttv-vien); border-bottom: 4px solid var(--ttv-goc); background: var(--ttv-the); color: var(--ttv-chu); cursor: pointer; touch-action: manipulation; }
.hc-xep-ds button.goi-y { box-shadow: 0 0 0 4px var(--ttv-sao); }
.hc-xep-ds .da { display: flex; gap: 10px; align-items: center; background: var(--ttv-dung-nen); border: 2px solid var(--ttv-dung); }
.hc-xep-ds .da .so { font-family: var(--ttv-phong); font-size: .9rem; color: var(--ttv-dung); }
.hc-xep-khung { background: var(--ttv-nen); border-radius: 18px; padding: 10px; }

/* Lật thẻ tìm vần */
.hc-lat-luoi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 620px; margin: 0 auto; }
@media (max-width: 480px) { .hc-lat-luoi { grid-template-columns: repeat(3, 1fr); } }
.hc-lat { position: relative; aspect-ratio: 1 / 1; min-height: 72px; border: 0; padding: 0; background: none; perspective: 700px; cursor: pointer; touch-action: manipulation; font: inherit; color: inherit; }
.hc-lat .trong { position: absolute; inset: 0; transition: transform .35s; transform-style: preserve-3d; }
.hc-lat.mo .trong, .hc-lat.khop .trong { transform: rotateY(180deg); }
.hc-lat .mat { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.hc-lat .truoc { background: var(--ttv-goc-dam); color: #fff; font-size: 2rem; border-bottom: 5px solid var(--ttv-chu); }
.hc-lat .sau { transform: rotateY(180deg); background: var(--ttv-the); border: 2px solid var(--ttv-vien); border-bottom: 5px solid var(--ttv-goc);
  font-family: var(--ttv-phong-tap-doc); font-weight: 700; font-size: clamp(1.3rem, 4.4vw, 1.9rem); }
.hc-lat.khop .sau { background: var(--ttv-dung-nen); border-color: var(--ttv-dung); }
@media (prefers-reduced-motion: reduce) { .hc-lat .trong { transition: none; } }

/* Tiếp sức: đường làng */
.hc-duong { position: relative; display: flex; align-items: flex-end; gap: 4px; padding: 64px 8px 8px; background: var(--ttv-nen); border-radius: 18px; overflow: hidden; }
.hc-da { flex: 1 1 0; height: 16px; border-radius: 999px; background: var(--ttv-vien); }
.hc-da.qua { background: var(--ttv-goc); }
.hc-duong .dich { flex: 0 0 auto; font-size: 2rem; line-height: 1; }
.hc-duong .trau-di { position: absolute; bottom: 22px; height: 60px; width: auto; transition: left .5s; }
.hc-da-doc { margin: 10px 0; padding: 10px 14px; background: var(--ttv-nen); border-radius: 16px; }
.hc-da-doc p { margin: 0; font-family: var(--ttv-phong-tap-doc); font-size: 1.2rem; line-height: 1.5; color: var(--ttv-chu-phu); }
.hc-da-doc p:last-child { color: var(--ttv-chu); font-weight: 700; font-size: 1.35rem; }

/* Cùng chơi */
.hc-tro-tin { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.hc-tro-tin li { background: var(--ttv-goc-nhat); border-radius: var(--ttv-bo-nut); padding: 6px 14px; font-weight: 700; }
.hc-tro-buoc { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; counter-reset: b; }
@media (max-width: 600px) { .hc-tro-buoc li { display: flex; gap: 12px; align-items: center; padding-right: 46px; } .hc-tro-buoc .hinh { margin: 0; flex: 0 0 auto; } }
.hc-tro-buoc li { counter-increment: b; position: relative; background: var(--ttv-nen); border-radius: 18px; padding: 14px 14px 12px; line-height: 1.45; font-weight: 600; }
.hc-tro-buoc li::before { content: counter(b); position: absolute; top: 10px; right: 12px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ttv-goc-dam); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem; }
.hc-tro-buoc .hinh { display: block; font-size: 2.2rem; margin-bottom: 6px; }
.hc-an-toan { margin: 10px 0 0; display: flex; gap: 8px; align-items: flex-start; background: #FFF6DF; border-radius: 14px; padding: 8px 12px; }
.hc-thu-thach { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hc-thu-thach label { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border-radius: 18px; background: var(--ttv-nen); font-weight: 700; cursor: pointer; }
.hc-thu-thach input { width: 28px; height: 28px; accent-color: var(--ttv-goc-dam); flex: 0 0 auto; }

/* Gợi ý cho cha mẹ & thầy cô */
.hc-goi-y { border: 2px dashed var(--ttv-vien); border-radius: 18px; background: var(--ttv-the); }
.hc-goi-y summary { list-style: none; min-height: 52px; display: flex; align-items: center; gap: 8px; padding: 6px 14px; font-weight: 800; cursor: pointer; color: var(--ttv-goc-dam); }
.hc-goi-y summary::-webkit-details-marker { display: none; }
.hc-goi-y p { margin: 0; padding: 0 16px 14px; line-height: 1.6; }

/* Chuyển bước */
.hc-chuyen { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* Xong bài */
.hc-xong-bai { display: flex; align-items: center; gap: 18px; background: var(--ttv-the); border: 3px solid var(--ttv-sao); border-radius: var(--ttv-bo-goc); padding: 16px 20px; }
.hc-xong-bai > img { height: 120px; width: auto; flex: 0 0 auto; }
.hc-xong-bai h3 { margin: 0 0 6px; font-family: var(--ttv-phong-tieu-de); font-size: 1.4rem; }
.hc-xong-bai .ttv-sao { width: 30px; height: 30px; }
@media (max-width: 600px) { .hc-xong-bai { flex-direction: column; text-align: center; } }

/* Bài đang soạn */
.hc-dang-soan { text-align: center; }
.hc-dang-soan img { height: 120px; width: auto; }

/* Bước 6: Học hát cùng giảng viên âm nhạc */
.hc-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--ttv-bo-goc); overflow: hidden; background: var(--ttv-chu); margin-top: 10px; }
.hc-video video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--ttv-chu); }
.hc-video.cho { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--ttv-goc-nhat, var(--ttv-nen)); border: 2px dashed var(--ttv-goc, var(--ttv-vien)); color: var(--ttv-chu); text-align: center; padding: 16px; box-sizing: border-box; }
.hc-video.cho img { width: 96px; height: auto; }
.hc-video.cho strong { font-family: var(--ttv-phong-tieu-de); font-size: 1.3rem; }
.hc-video.cho span { color: var(--ttv-chu-phu); font-weight: 700; }
