/* ══════════ Nong trai — kinh te (2026-11-13): ban do phieu luu, cho, tiem, nha may, nhan cong, xuat khau, dau gia ══════════
   Cung phong cach vien dam cua nong-trai.css (the trang vien --vien, nen kem), sang, khong toi, khong 3D. */
.kt-ten { display: inline-flex; flex-direction: column; line-height: 1.2; }
.kt-ten b { font-family: 'Noto Serif SC', serif; font-size: 1.05rem; }
.kt-ten small { color: var(--mo); font-weight: 600; }
.kt-ten span { font-weight: 700; }
.kt-h3 { margin: 16px 0 8px; font-size: 1.05rem; font-weight: 900; }
.kt-h3 small { font-weight: 600; color: var(--mo); }
.kt-nho { font-size: 0.82rem; color: var(--mo); font-weight: 600; margin: 4px 0; }
.kt-mk-dau { margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; background: #fff3d6; border: 2px dashed #e0b25a; font-weight: 600; font-size: 0.9rem; }
.kt-khoa { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #ede7f3; border: 2px solid var(--vien); font-weight: 800; font-size: 0.8rem; }
.kt-xong { color: var(--xanh-dam); font-weight: 800; }
.kt-dh { font-variant-numeric: tabular-nums; font-weight: 800; }
img.hong { visibility: hidden; }

/* luoi o hang */
.kt-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
.kt-o {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center;
  padding: 10px 8px; border-radius: 16px; background: #fff; border: 3px solid var(--vien); box-shadow: 0 4px 0 var(--vien);
  font: inherit; color: inherit;
}
button.kt-o { cursor: pointer; transition: transform 0.12s; }
button.kt-o:hover { transform: translateY(-2px); background: #fffbef; }
.kt-o > img { width: 58px; height: 58px; }
.kt-o b { font-family: 'Noto Serif SC', serif; font-size: 1.05rem; }
.kt-o small { color: var(--mo); font-weight: 600; font-size: 0.78rem; line-height: 1.25; }
.kt-o.khoa { opacity: 0.6; }
.kt-o.da { background: #f1f8e9; }
.kt-o .nt-nut { margin-top: 4px; }
.kt-hat-anh { position: relative; }
.kt-mua-hang { display: flex; gap: 6px; margin-top: 4px; }
.kt-mk-gia { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.kt-mk-gia b { font-size: 1.1rem; font-family: 'Be Vietnam Pro', sans-serif; }
.kt-mk-gia img { width: 20px; height: 20px; }
.kt-mk-gia em { font-style: normal; font-size: 0.75rem; font-weight: 800; margin-left: 2px; }
.kt-len { color: #2e7d32; }
.kt-xuong { color: #c62828; }
.kt-ngang { color: var(--mo); }

/* bang gia */
.kt-mk-ds { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kt-mk-ds li {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 70px auto; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 12px; background: #fff; border: 2px solid var(--vien);
}
.kt-mk-ds li > img { width: 38px; height: 38px; }
.kt-mk-ten { display: flex; flex-direction: column; min-width: 0; }
.kt-mk-ten b { font-family: 'Noto Serif SC', serif; }
.kt-mk-ten small { color: var(--mo); font-weight: 600; font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kt-spark { width: 70px; height: 24px; }
.kt-mk-ds .kt-mk-gia { flex-direction: column; align-items: flex-end; gap: 0; }
.kt-mk-ds .kt-mk-gia img { display: none; }

/* so luong + ban */
.kt-sl { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0; }
.kt-sl button { width: 38px; height: 38px; border-radius: 12px; border: 3px solid var(--vien); background: #fff; font-weight: 900; font-size: 1.2rem; box-shadow: 0 3px 0 var(--vien); }
.kt-sl .kt-sl-het { width: auto; padding: 0 10px; font-size: 0.85rem; }
.kt-sl output { min-width: 44px; text-align: center; font-weight: 900; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.kt-ban { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.kt-ban > img { width: 90px; height: 90px; }
.kt-ban .nt-ch-lua { width: min(420px, 100%); }
.kt-ban-tong b { font-size: 1.2rem; }

/* tiem */
.kt-tiem { margin-bottom: 14px; padding: 10px; border-radius: 18px; background: #fff7e6; border: 3px solid var(--vien); }
.kt-tiem header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.kt-tiem header small { color: var(--mo); font-weight: 700; }
.kt-av { display: inline-block; width: 40px; height: 40px; flex: none; }
.kt-av svg { width: 100%; height: 100%; }
.kt-av.to { width: 72px; height: 72px; }
.kt-bay { margin-top: 14px; padding: 12px; border-radius: 18px; background: #fff; border: 3px dashed var(--vien); }
.kt-bay-chon { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.kt-bay-chon button { position: relative; flex: none; width: 58px; height: 58px; border-radius: 12px; border: 2px solid var(--vien); background: #fff; padding: 4px; }
.kt-bay-chon button.bat { background: #c8f0b8; border-width: 3px; }
.kt-bay-chon img { width: 100%; height: 100%; }
.kt-bay-chon small { position: absolute; right: 2px; bottom: 0; font-weight: 900; font-size: 0.72rem; background: #fff; border-radius: 6px; padding: 0 3px; }
.kt-gia-keo { display: flex; flex-direction: column; gap: 4px; font-weight: 700; margin: 6px 0; }
.kt-gia-keo input { width: 100%; accent-color: #e09b12; }

/* nha may */
.kt-xg { margin-bottom: 12px; padding: 10px; border-radius: 18px; background: #fff; border: 3px solid var(--vien); box-shadow: 0 4px 0 var(--vien); }
.kt-xg.chua { background: #f7f2fb; }
.kt-xg header { display: flex; align-items: center; gap: 10px; }
.kt-xg header > img { width: 56px; height: 56px; flex: none; }
.kt-xg header > span { flex: 1; }
.kt-q { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.kt-q li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; background: #fffbef; border: 2px solid #e8d9b8; }
.kt-q li > img { width: 40px; height: 40px; flex: none; }
.kt-q li > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 0.9rem; }
.kt-q li small { color: var(--mo); font-weight: 600; }
.kt-q-trong { color: var(--mo); font-weight: 600; justify-content: center; }
.kt-thanh { display: block; height: 8px; border-radius: 99px; background: #ece3d4; border: 2px solid var(--vien); overflow: hidden; }
.kt-thanh i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8bd36b, #4caf50); transition: width 0.9s linear; }
.kt-ct { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.kt-ct-o { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; padding: 8px; border-radius: 14px; background: #f3fbea; border: 2px solid var(--vien); }
.kt-ct-o > img { width: 46px; height: 46px; }
.kt-ct-o small { color: var(--mo); font-weight: 600; font-size: 0.76rem; }
.kt-can-ds { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.kt-can { display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px 1px 2px; border-radius: 999px; background: #fff; border: 2px solid #8bc34a; font-size: 0.78rem; font-weight: 800; }
.kt-can img { width: 20px; height: 20px; }
.kt-can.thieu { border-color: #e57373; background: #fff0ee; }

/* cau hoi */
.kt-cau { display: flex; flex-direction: column; gap: 10px; }
.kt-cau-so { margin: 0; font-size: 0.92rem; color: var(--mo); }
.kt-cau-so b { color: var(--chu); }
.kt-cau-kq { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; }
.kt-cau-kq .nt-nut { margin-top: 4px; }
.kt-cau-dg { margin: 0; font-weight: 900; font-size: 1.1rem; }
.kt-cau-dg.dung { color: var(--xanh-dam); }
.kt-cau-dg.sai { color: #c62828; }
.kt-tram-dau { margin: 0 0 8px; padding: 8px 12px; border-radius: 12px; background: #e8f5e9; border: 2px solid var(--vien); font-weight: 700; }
.kt-tram-dau b { font-family: 'Noto Serif SC', serif; }
.kt-nghe-zh { font-family: 'Noto Serif SC', serif; font-size: 1.6rem; }
.kt-don { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 10px; border-radius: 14px; background: #fffdf5; border: 3px double var(--vien); }
.kt-don > img { width: 52px; height: 52px; flex: none; }
.kt-don div { display: flex; flex-direction: column; }
.kt-don b { font-family: 'Noto Serif SC', serif; font-size: 1.15rem; }
.kt-don small { color: var(--mo); font-weight: 600; }

/* ban do phieu luu */
.kt-pl { display: flex; flex-direction: column; gap: 10px; }
.kt-bd, .kt-vd { width: 100%; max-width: 520px; height: auto; margin: 0 auto; display: block; border-radius: 18px; border: 3px solid var(--vien); background: #cdeefd; }
.kt-vd { max-width: 420px; background: #fff8ec; }
.kt-bd-vung { cursor: pointer; outline: none; }
.kt-bd-vung .kt-bd-hinh { transition: transform 0.2s; transform-box: fill-box; transform-origin: center; }
.kt-bd-vung:hover .kt-bd-hinh, .kt-bd-vung:focus-visible .kt-bd-hinh { transform: scale(1.08); }
.kt-bd-vung:focus-visible rect { stroke: #1e88e5; }
.kt-bd-vung.khoa .kt-bd-hinh { filter: grayscale(0.85); opacity: 0.6; }
.kt-xe { animation: kt-nay 1.4s ease-in-out infinite; }
@keyframes kt-nay { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.kt-tram { cursor: pointer; outline: none; }
.kt-tram.khoa { cursor: default; }
.kt-tram.tiep circle { animation: kt-nhap 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes kt-nhap { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.kt-tram:focus-visible circle { stroke: #1e88e5; }
.kt-pl-dau { display: flex; align-items: center; gap: 10px; }
.kt-pl-dau b { font-family: 'Noto Serif SC', serif; font-size: 1.2rem; }
.kt-pl-dau small { color: var(--mo); font-weight: 600; }
.kt-pl-dau span { font-weight: 700; font-size: 0.9rem; }
.kt-tram-ds { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kt-tram-ds li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: #fff; border: 2px solid var(--vien); }
.kt-tram-ds li.khoa { opacity: 0.55; }
.kt-tram-ds li.tiep { background: #fff8d6; border-width: 3px; }
.kt-tram-ds li > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.kt-tram-ds small { color: var(--mo); font-weight: 600; font-size: 0.8rem; }
.kt-tram-so { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--vien); background: #ffd54f; font-weight: 900; }
.kt-ket .kt-sao-to { font-size: 2.2rem; letter-spacing: 4px; }
.kt-qua-ds { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 0; }
.kt-qua-ds span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: #fff; border: 2px solid var(--vien); font-weight: 700; font-size: 0.88rem; }
.kt-qua-ds img { width: 34px; height: 34px; }
.kt-ket-to { font-weight: 900; color: var(--xanh-dam); }

/* nhan cong */
.kt-nc-hoc { padding: 10px 12px; border-radius: 14px; border: 3px solid var(--vien); background: #ffe9e4; font-weight: 700; margin-bottom: 10px; }
.kt-nc-hoc.du { background: #e3f6d9; }
.kt-nc-ds { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.kt-nc { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 18px; background: #fff; border: 3px solid var(--vien); box-shadow: 0 4px 0 var(--vien); }
.kt-nc > div { flex: 1; min-width: 0; }
.kt-nc b { font-family: 'Noto Serif SC', serif; font-size: 1.1rem; }
.kt-nc p { margin: 2px 0; font-size: 0.86rem; font-weight: 600; }
.kt-nc-tt { display: inline-block; padding: 1px 8px; border-radius: 999px; border: 2px solid var(--vien); font-size: 0.78rem !important; }
.kt-nc-tt.lam { background: #c8f0b8; }
.kt-nc-tt.nghi { background: #e3f2fd; }
.kt-nc-tt.no { background: #ffcdd2; }
.kt-vui { display: flex; align-items: center; gap: 6px; height: 18px; margin: 4px 0; }
.kt-vui i { display: block; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #ffb74d, #66bb6a); border: 2px solid var(--vien); max-width: 120px; }
.kt-nc-ic { font-size: 2rem; }
.kt-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.85rem; max-height: 220px; overflow-y: auto; }
.kt-log li { padding: 4px 8px; border-radius: 8px; background: #fff; border: 1px solid #e8d9b8; }
.kt-log time { color: var(--mo); font-variant-numeric: tabular-nums; }

/* xuat khau */
.kt-xk { margin-bottom: 12px; padding: 10px; border-radius: 18px; background: #fff; border: 3px solid var(--vien); border-left: 10px solid var(--mau, #ffd54f); }
.kt-xk.khoa { opacity: 0.7; }
.kt-xk header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.kt-xk header b { font-family: 'Noto Serif SC', serif; font-size: 1.15rem; }
.kt-xk header span { font-weight: 800; }
.kt-xk header small { width: 100%; color: var(--mo); font-weight: 600; }

/* dau gia */
.kt-dg-ds { display: grid; gap: 10px; }
.kt-dg { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 10px; align-items: center; padding: 10px; border-radius: 18px; background: #fff; border: 3px solid var(--vien); box-shadow: 0 4px 0 var(--vien); }
.kt-dg > img { width: 64px; height: 64px; }
.kt-dg.em { background: #fffbe0; }
.kt-dg.dong { opacity: 0.7; box-shadow: none; }
.kt-dg-chu { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.kt-dg-chu b { font-family: 'Noto Serif SC', serif; font-size: 1.1rem; }
.kt-dg-chu small { color: var(--mo); font-weight: 600; }
.kt-dg-gia, .kt-dg-gio { margin: 2px 0 0; font-weight: 700; font-size: 0.9rem; }
.kt-dg-gia b { font-size: 1.15rem; }
.kt-dg-dat { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.kt-dg-dat input, .kt-o input, .kt-o select { width: 96px; padding: 6px 8px; border-radius: 10px; border: 2px solid var(--vien); font: inherit; font-weight: 800; }
.kt-dg-dat small { color: var(--mo); font-weight: 600; font-size: 0.78rem; }

/* vong quay: bang ti le + ket qua o xau */
.nt-vq-tl { width: min(460px, 100%); margin: 6px auto 0; border-radius: 14px; border: 2px solid var(--vien); background: #fff; }
.nt-vq-tl summary { cursor: pointer; padding: 8px 12px; font-weight: 800; }
.nt-vq-tl ul { list-style: none; margin: 0; padding: 0 10px 6px; display: grid; gap: 4px; }
.nt-vq-tl li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 10px; }
.nt-vq-tl li.xau { background: #f1edf5; }
.nt-vq-tl li.hiem { background: #fff6d5; }
.nt-vq-tl li img { width: 28px; height: 28px; }
.nt-vq-tl li span { display: flex; flex-direction: column; font-size: 0.86rem; }
.nt-vq-tl li small { color: var(--mo); font-weight: 600; font-size: 0.74rem; }
.nt-vq-tl li em { font-style: normal; font-weight: 900; font-variant-numeric: tabular-nums; }
.nt-vq-tl .nt-meo { margin: 4px 10px 8px; }
.nt-vq-qua.xau { background: #f1edf5; }
.nt-vq-x2 { color: var(--xanh-dam); font-weight: 900; }

@media (max-width: 480px) {
  .kt-luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kt-o > img { width: 48px; height: 48px; }
  .kt-mk-ds li { grid-template-columns: 34px minmax(0, 1fr) 56px auto; gap: 6px; padding: 5px 8px; }
  .kt-spark { width: 56px; }
  .kt-ct { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kt-nc-ds { grid-template-columns: 1fr; }
  .kt-av.to { width: 56px; height: 56px; }
}
.kt-can small { font-weight: 600; color: var(--mo); margin-left: 2px; }

/* ---------- nha may tren nong trai (vat xg-*, 2x2): ranh / dang chay (khoi + banh rang + dem nguoc) / xong (bong bong san pham) ---------- */
.nt-vat[class*="nt-k-xg-"] .nt-bong { width: 36%; top: -16%; }
.nt-vat.tt-xgxong .nt-hinh { animation: nt-nhun 1.6s ease-in-out infinite; }
.nt-xg-khoi { position: absolute; right: 22%; top: -6%; width: 22%; height: 30%; pointer-events: none; }
.nt-xg-khoi i { position: absolute; left: 30%; bottom: 0; width: 46%; aspect-ratio: 1; border-radius: 50%; background: #fff; border: 2px solid var(--vien); opacity: 0; animation: kt-khoi 2.4s ease-out infinite; }
.nt-xg-khoi i:nth-child(2) { animation-delay: 0.8s; }
.nt-xg-khoi i:nth-child(3) { animation-delay: 1.6s; }
@keyframes kt-khoi { 0% { transform: translate(0, 0) scale(0.5); opacity: 0; } 15% { opacity: 0.95; } 100% { transform: translate(40%, -170%) scale(1.25); opacity: 0; } }
.nt-xg-rang { position: absolute; left: 8%; top: 30%; font-size: calc(var(--o, 64px) * 0.34); line-height: 1; color: #5d4037; text-shadow: 0 0 0 var(--vien); pointer-events: none; animation: kt-rang 2.2s linear infinite; }
@keyframes kt-rang { to { transform: rotate(360deg); } }
.nt-xg-dem {
  position: absolute; left: 50%; top: -14%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 3px;
  padding: 1px 8px 1px 3px; border-radius: 999px; background: #fff; border: 2px solid var(--vien); box-shadow: 0 2px 0 var(--vien);
  font-size: 0.72rem; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none;
}
.nt-xg-dem img { width: 20px; height: 20px; }
.kt-xg-tui { margin: 8px 0; padding: 8px 10px; border-radius: 12px; background: #fff3d6; border: 2px dashed #e0b25a; font-weight: 600; font-size: 0.88rem; }

/* ---------- nhan cong di lai tren nong trai (toi da 3; chi transform + keyframes) ---------- */
.kt-ncf { position: absolute; left: 0; top: 0; pointer-events: none; transition: transform 0ms linear; will-change: transform; }
.kt-ncf-nut { display: block; width: 52%; margin: 0 auto; padding: 0; border: 0; background: none; pointer-events: auto; cursor: pointer; overflow: visible; -webkit-tap-highlight-color: transparent; }
.kt-ncf-nut svg { display: block; width: 192%; margin-left: -46%; height: auto; pointer-events: none; overflow: visible; filter: drop-shadow(0 1px 0 rgba(43, 29, 58, 0.25)); }
.kt-ncf.trai .kt-ncf-nut svg { transform: scaleX(-1); }
.kt-ncf .nc-chan { transform-box: fill-box; transform-origin: 50% 0; }
.kt-ncf.di .nc-chan-a { animation: kt-chan 0.34s ease-in-out infinite alternate; }
.kt-ncf.di .nc-chan-b { animation: kt-chan 0.34s ease-in-out infinite alternate-reverse; }
.kt-ncf.di .nc-than, .kt-ncf.di .nc-do { animation: kt-buoc 0.34s ease-in-out infinite alternate; }
@keyframes kt-chan { from { transform: rotate(-24deg); } to { transform: rotate(24deg); } }
@keyframes kt-buoc { from { transform: translateY(0); } to { transform: translateY(-1.6px); } }
.kt-ncf:not(.nghi) .nc-ngoi, .kt-ncf.nghi .nc-dung, .kt-ncf-anh .nc-ngoi { display: none; }
.kt-ncf.nghi .nc-than { transform: translateY(13px); }
.kt-ncf.nghi.vt-van .nc-do { transform: translateY(2px); }
.kt-ncf-bong {
  position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); z-index: 2;
  padding: 1px 7px; border-radius: 10px; background: #fff; border: 2px solid var(--vien); box-shadow: 0 2px 0 var(--vien);
  font-size: 0.72rem; font-weight: 800; white-space: nowrap; pointer-events: none;
}
.kt-ncf-bong.dai { white-space: normal; width: 150px; text-align: center; line-height: 1.25; padding: 3px 7px; }
.kt-ncf-mat { position: absolute; right: 8%; top: 2%; z-index: 1; font-size: 0.8rem; line-height: 1; pointer-events: none; }
body.dang-dat .kt-ncf-nut, body.keo-vat .kt-ncf-nut { pointer-events: none; }
body.kt-an .kt-ncf *, body.kt-an .nt-xg-khoi i, body.kt-an .nt-xg-rang { animation-play-state: paused; }
.kt-ncf-dau { gap: 8px; }
.kt-ncf-anh { display: inline-block; width: 46px; flex: none; }
.kt-ncf-anh svg { width: 100%; height: auto; display: block; }
.kt-ncf-log { margin: 4px 0; padding-left: 18px; font-size: 0.82rem; font-weight: 600; color: var(--mo); }
.kt-ncf-nutds { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

/* Hoi ten mon hang: pinyin duoi chu Han (ten mon khong nam trong bai hoc) */
.nt-ch-lua.co-py button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; line-height: 1.15; padding-block: 8px; }
.nt-ch-lua.co-py .nt-ch-py { font-family: 'Be Vietnam Pro', system-ui, sans-serif; font-size: .95rem; font-weight: 700; color: #7a5c3e; letter-spacing: .01em; }

/* ---------- cot truyen: the thoai, danh sach chuong, viec, bong bong tren nong trai ---------- */
.kt-tr-the { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 20px; background: #fff; border: 3px solid var(--vien); box-shadow: 0 4px 0 var(--vien); }
.kt-tr-the.ke { background: #fff8e6; border-style: dashed; box-shadow: none; }
.kt-tr-cd { width: 104px; flex: none; border-radius: 16px; background: radial-gradient(circle at 50% 60%, #dff3ff, #bfe3f7); border: 3px solid var(--vien); overflow: hidden; }
.kt-tr-cd svg { display: block; width: 100%; height: auto; }
.kt-tr-thoai { flex: 1; min-width: 0; }
.kt-tr-ten { margin: 0 0 4px; font-size: 1.05rem; }
.kt-tr-ten span { font-family: 'Noto Serif SC', serif; font-weight: 700; color: #7a2e1f; }
.kt-tr-ten small { color: var(--mo); font-weight: 600; }
.kt-tr-gt { margin: 0 0 6px; padding: 5px 9px; border-radius: 10px; background: #e3f2fd; font-size: 0.82rem; font-weight: 600; }
.kt-tr-loi { margin: 0; font-size: 1.06rem; line-height: 1.5; font-weight: 600; }
.kt-tr-the.ke .kt-tr-loi { font-style: italic; text-align: center; }
.kt-tr-nut { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.kt-tr-nut > :only-child { margin-left: auto; }
.kt-tr-cau { margin-top: 12px; }
.kt-tr-goiy { margin: 8px 0 0; padding: 6px 10px; border-radius: 10px; background: #fff3d6; border: 2px dashed #e0b25a; font-weight: 700; font-size: 0.92rem; }
.kt-tr-dung { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.kt-tr-chuahoc { margin-top: 8px; padding: 10px; border-radius: 12px; background: #ffe9e4; border: 2px solid var(--vien); font-weight: 600; }
.kt-tr-chuahoc .nt-nut { margin-top: 8px; }
.kt-tr-nvds { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; }
.kt-tr-nv { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 0.78rem; }
.kt-tr-nv svg { width: 60px; height: auto; border-radius: 50%; background: #dff3ff; border: 2px solid var(--vien); }
.kt-tr-nv small { font-family: 'Noto Serif SC', serif; color: #7a2e1f; }
.kt-tr-ds { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kt-tr-ds li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; background: #fff; border: 2px solid var(--vien); }
.kt-tr-ds li > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kt-tr-ds small { color: var(--mo); font-weight: 600; font-size: 0.8rem; }
.kt-tr-ds li.khoa, .kt-tr-ds li.cho { opacity: 0.62; }
.kt-tr-ds li.mo, .kt-tr-ds li.dang { background: #fff8d6; border-width: 3px; }
.kt-tr-ds li.xong .kt-tram-so { background: #c8f0b8; }
.kt-tr-viec { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kt-tr-viec li { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: #fff; border: 3px solid var(--vien); }
.kt-tr-viec li.xong { background: #e8f7df; }
.kt-tr-viec li > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.kt-tr-viec small { color: var(--mo); font-weight: 600; font-size: 0.8rem; }
.kt-tr-vd { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--vien); font-weight: 900; background: #fff; }
.kt-tr-viec li.xong .kt-tr-vd { background: #7ed957; }
.kt-tr-bong {
  position: fixed; left: 10px; bottom: 104px; z-index: 46; max-width: min(64vw, 300px);
  display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; text-align: left;
  border-radius: 999px; background: #fff; border: 3px solid var(--vien); box-shadow: 0 3px 0 var(--vien);
  font-size: 0.8rem; font-weight: 600; line-height: 1.25;
}
.kt-tr-bong.xong { background: #e8f7df; }
.kt-tr-bong b { display: block; font-size: 0.82rem; }
.kt-tr-bong em { font-style: normal; font-weight: 900; color: var(--xanh-dam); }
.kt-tr-bong-cd { width: 38px; height: 38px; flex: none; border-radius: 50%; overflow: hidden; background: #dff3ff; border: 2px solid var(--vien); }
.kt-tr-bong-cd svg { width: 100%; height: auto; display: block; }
body.co-bang .kt-tr-bong, body.co-them .kt-tr-bong, body.co-hoi .kt-tr-bong, body.dang-dat .kt-tr-bong, body.dang-tham .kt-tr-bong { display: none; }
.nt-ke-o.kn { background: #fff3d6; }

/* ---------- hieu ung "suong tay" (public/js/nong-trai-fx.js): chi transform / opacity ---------- */
body.nt button:active:not(:disabled), body.nt a.nt-nut:active, body.nt .nt-cu:active { scale: 0.96; }
body.nt .nt-vat:active, body.nt .kt-ncf-nut:active, body.nt .kt-bd-vung:active { scale: 1; }
.fx-hat { position: fixed; z-index: 400; pointer-events: none; will-change: transform, opacity; }
.fx-giay { width: 9px; height: 13px; border-radius: 2px; }
.fx-sao { color: #ffc83d; font-size: 18px; line-height: 1; text-shadow: 0 0 2px #fff, 0 1px 0 var(--vien); }
.fx-xu { width: 18px; height: 18px; border-radius: 50%; background: #ffc83d; border: 2px solid var(--vien); box-shadow: inset 0 -3px 0 #e09b12; }
.fx-vong { box-sizing: border-box; border: 4px solid #4caf50; }
.fx-chu { font-weight: 900; font-size: 1.35rem; color: #e5533d; white-space: nowrap; text-shadow: 0 2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff, 0 -2px 0 #fff; }
.fx-chu.to { font-size: 2rem; }
.fx-dau { padding: 6px 14px; border-radius: 10px; border: 4px solid #c62828; color: #c62828; background: rgba(255, 255, 255, 0.88); font-weight: 900; letter-spacing: 0.5px; white-space: nowrap; }
.fx-ron {
  position: fixed; left: 50%; top: 72px; z-index: 401; pointer-events: none; white-space: nowrap;
  padding: 10px 24px; border-radius: 999px; background: #ffd54f; border: 3px solid var(--vien); box-shadow: 0 4px 0 var(--vien);
  font-weight: 900; font-size: 1.15rem;
}
@media (max-width: 480px) {
  .kt-tr-cd { width: 78px; }
  .kt-tr-loi { font-size: 1rem; }
  .kt-tr-bong { bottom: 96px; max-width: 70vw; }
}

/* ---------- huong dan: the ❓, So tay, chi dan lan dau (public/js/nong-trai-hd.js) ---------- */
.hd-nut { font-size: 1rem; margin-left: auto; margin-right: 6px; background: #e3f2fd; }
.nt-bang-dau .hd-nut + .nt-dong { margin-left: 0; }
.nt-nut.hd-nut { width: auto; height: auto; border-radius: 14px; margin: 0; padding: 9px 12px; box-shadow: 0 4px 0 var(--vien); }
.nt-hc-dau .hd-nut { margin: 0 0 0 8px; }
.nt-gt-nut { display: flex; gap: 8px; flex-wrap: wrap; }
.hd-lop { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 12px; background: rgba(43, 29, 58, 0.5); }
.hd-lop[hidden] { display: none; }
.hd-the { width: min(520px, 100%); max-height: calc(100dvh - 24px); display: flex; flex-direction: column; background: var(--kem); border: 4px solid var(--vien); border-radius: 24px; box-shadow: 0 8px 0 var(--vien); overflow: hidden; animation: nt-len 0.24s cubic-bezier(0.2, 1.2, 0.4, 1); }
.hd-dau { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; background: repeating-linear-gradient(90deg, #bfe3f7 0 28px, #a8d8f0 28px 56px); border-bottom: 3px solid var(--vien); }
.hd-dau h2 { flex: 1; margin: 0; font-size: 1.15rem; font-weight: 900; line-height: 1.25; }
.hd-than { padding: 12px 14px; overflow-y: auto; }
.hd-de { margin: 0 0 10px; font-size: 1.02rem; line-height: 1.45; }
.hd-khoa { margin: 0 0 10px; padding: 6px 10px; border-radius: 10px; background: #ede7f3; border: 2px solid var(--vien); font-weight: 700; }
.hd-buoc { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hd-buoc li { display: grid; grid-template-columns: 28px 34px minmax(0, 1fr); align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px; background: #fff; border: 2px solid var(--vien); font-size: 1rem; font-weight: 600; line-height: 1.4; }
.hd-so { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #ffd54f; border: 2px solid var(--vien); font-weight: 900; }
.hd-ic { font-size: 1.5rem; line-height: 1; text-align: center; }
.hd-ic.zh { font-family: 'Noto Serif SC', serif; font-weight: 900; color: #e5533d; }
.hd-dau .hd-ic { font-size: 1.9rem; }
.hd-meo { margin: 10px 0 0; padding: 9px 12px; border-radius: 14px; background: #fff3d6; border: 2px dashed #e0b25a; font-weight: 600; line-height: 1.45; }

.hd-chan { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 10px 14px 14px; }
.hd-batdau { padding: 10px; border-radius: 18px; background: #e8f7df; border: 3px solid var(--vien); }
.hd-batdau h3 { margin: 0 0 8px; font-size: 1.08rem; font-weight: 900; }
.hd-ds { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.hd-dong { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; text-align: left; border-radius: 14px; background: #fff; border: 2px solid var(--vien); box-shadow: 0 3px 0 var(--vien); font: inherit; color: inherit; }
.hd-dong span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.hd-dong small { color: var(--mo); font-weight: 600; font-size: 0.8rem; line-height: 1.3; }
.hd-dong em { font-style: normal; font-weight: 800; font-size: 0.78rem; color: var(--xanh-dam); white-space: nowrap; }
.hd-dong.khoa { background: #f3eef7; }
.hd-dong.khoa em { color: var(--mo); }
.cd-lop { position: fixed; inset: 0; z-index: 130; }
.cd-vong { position: fixed; border-radius: 18px; border: 4px solid #ffd54f; box-shadow: 0 0 0 9999px rgba(43, 29, 58, 0.55); pointer-events: none; animation: kt-nhap 1.4s ease-in-out infinite; }
.cd-the { position: fixed; width: min(330px, calc(100vw - 16px)); padding: 12px 14px; border-radius: 18px; background: var(--kem); border: 3px solid var(--vien); box-shadow: 0 5px 0 var(--vien); }
.cd-the p { margin: 0 0 10px; font-size: 1rem; line-height: 1.45; font-weight: 600; }
.cd-nut { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cd-nut span { color: var(--mo); font-weight: 700; font-size: 0.85rem; }
@media (max-width: 480px) {
  .hd-buoc li { grid-template-columns: 26px 30px minmax(0, 1fr); font-size: 0.96rem; padding: 7px 8px; }
  .hd-ds { grid-template-columns: 1fr; }
}

/* ---------- tin nhan tu do giua ban cung lop ---------- */
.kt-tn-o { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.kt-tn-o textarea { width: 100%; min-height: 64px; padding: 10px 12px; border-radius: 14px; border: 3px solid var(--vien); background: #fff; font: inherit; font-size: 1rem; resize: vertical; }
.kt-tn-duoi { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kt-tn-duoi small { color: var(--mo); font-weight: 700; font-variant-numeric: tabular-nums; }
.kt-tn-duoi small.qua { color: #c62828; }
.kt-tn-nhac { margin: 0; color: var(--mo); font-weight: 600; font-size: 0.86rem; }
.kt-tn-goiy { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.kt-tn-goiy button { display: inline-flex; flex-direction: column; align-items: flex-start; padding: 5px 10px; border-radius: 12px; border: 2px solid var(--vien); background: #fff; font: inherit; text-align: left; }
.kt-tn-goiy b { font-family: 'Noto Serif SC', serif; }
.kt-tn-goiy small { color: var(--mo); font-weight: 600; font-size: 0.74rem; }
.kt-tn-chu { display: inline-block; margin: 3px 0; padding: 6px 10px; border-radius: 12px; background: #fff; border: 2px solid var(--vien); font-weight: 600; overflow-wrap: anywhere; white-space: pre-wrap; }
.kt-tn-zh { display: inline-block; padding: 0 7px; border-radius: 999px; background: #e8f7df; border: 2px solid var(--vien); font-size: 0.74rem; font-weight: 800; }
.kt-tn-nut { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; font-size: 0.84rem; }
.kt-tn-an { color: var(--mo); }
