/* ══════════ Nong trai cua em (/nong-trai) — phong cach hoat hinh vien dam ══════════ */
:root {
  --vien: #2b1d3a;
  --kem: #fff8ec;
  --kem-2: #f6ead2;
  --xanh: #4caf50;
  --xanh-dam: #2e7d32;
  --vang: #ffc83d;
  --vang-dam: #e09b12;
  --do: #e5533d;
  --hong: #ff7aa2;
  --troi: #8fd3f7;
  --chu: #2b1d3a;
  --mo: #6b5a77;
  --bong: 0 4px 0 var(--vien);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body.nt {
  font-family: 'Be Vietnam Pro', 'Noto Serif SC', sans-serif;
  color: var(--chu);
  background: linear-gradient(180deg, #8fd3f7 0%, #c9ecff 38%, #b9e48f 38.1%, #8ccc5c 100%);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
[lang="zh"], .nt-ten b, .nt-hoi-zh { font-family: 'Be Vietnam Pro', 'Noto Serif SC', sans-serif; }
img.hong { visibility: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid #1e88e5; outline-offset: 2px; }

/* ---------- thanh tren ---------- */
.nt-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px clamp(10px, 2vw, 20px);
  pointer-events: none;
}
.nt-top > * { pointer-events: auto; }
.nt-ve {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--kem); border: 3px solid var(--vien); box-shadow: var(--bong);
  color: var(--chu); text-decoration: none; font-weight: 800;
}
.nt-hud { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.nt-chip {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  height: 42px; padding: 0 14px 0 6px; border-radius: 999px;
  background: var(--kem); border: 3px solid var(--vien); box-shadow: var(--bong);
  font-weight: 900; font-size: 1.1rem; font-variant-numeric: tabular-nums;
}
.nt-chip img { width: 34px; height: 34px; }
.nt-chip-cong {
  display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 2px;
  border-radius: 50%; background: var(--xanh); color: #fff; font-size: 0.95rem; line-height: 1;
  border: 2px solid var(--vien);
}
.nt-chip-lv { padding-right: 12px; }
.nt-lv-so {
  position: absolute; left: 6px; top: 50%; width: 34px; text-align: center; transform: translateY(-50%);
  color: #fff; font-size: 0.95rem; text-shadow: 0 1px 0 var(--vien), 0 -1px 0 var(--vien), 1px 0 0 var(--vien), -1px 0 0 var(--vien);
}
.nt-xp { display: block; width: 70px; height: 12px; border-radius: 99px; background: #e7dcc6; border: 2px solid var(--vien); overflow: hidden; }
.nt-xp i { display: block; height: 100%; background: linear-gradient(180deg, #8be36b, #3fae3a); transition: width 0.5s; }
.nt-chip-nhac { width: 42px; padding: 0; justify-content: center; font-size: 1.15rem; }

/* ---------- khung ban do ---------- */
.nt-khung {
  position: fixed; inset: 0; overflow: auto;
  padding: 90px 40px 130px;
  display: flex;
  scrollbar-width: thin;
  touch-action: pan-x pan-y;
}
.nt-khung.dang-keo { cursor: grabbing; user-select: none; }
.nt-dat {
  position: relative; flex: none; margin: auto;
  background-color: #8fd35e;
  background-image: url('/images/farm/co.svg?v=1');
  background-size: calc(var(--o) * 2) calc(var(--o) * 2);
  border: 4px solid var(--vien);
  border-radius: 18px;
  box-shadow: 0 0 0 10px #6fb247, 0 0 0 14px var(--vien), 0 18px 0 14px rgba(43, 29, 58, 0.35);
}
.nt-luoi {
  position: absolute; inset: 0; pointer-events: none; border-radius: 14px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: var(--o) var(--o);
}
.nt-vat {
  position: absolute; padding: 0; margin: 0; border: 0; background: none;
  display: block; touch-action: manipulation;
}
.nt-hinh { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: transform 0.15s; }
.nt-vat:hover .nt-hinh { transform: translateY(-3px) scale(1.04); }
.nt-vat.tt-chin .nt-hinh, .nt-vat.tt-xong .nt-hinh { animation: nt-nhun 1.6s ease-in-out infinite; }
.nt-vat.vua-xong .nt-hinh { animation: nt-bat 0.5s cubic-bezier(0.34, 1.6, 0.64, 1); }
.nt-vat.chon { outline: 4px dashed #fff; outline-offset: -2px; border-radius: 10px; background: rgba(255, 255, 255, 0.25); }
.nt-bong {
  position: absolute; left: 50%; top: -34%; width: 58%; aspect-ratio: 1;
  transform: translateX(-50%);
  display: grid; place-items: center;
  background: #fff; border: 3px solid var(--vien); border-radius: 50% 50% 50% 50% / 46% 46% 54% 54%;
  box-shadow: 0 3px 0 var(--vien);
  animation: nt-bong 1.4s ease-in-out infinite;
  pointer-events: none;
}
.nt-bong::after {
  content: ''; position: absolute; bottom: -9px; left: 50%; width: 12px; height: 12px;
  background: #fff; border-right: 3px solid var(--vien); border-bottom: 3px solid var(--vien);
  transform: translateX(-50%) rotate(45deg);
}
.nt-bong img { width: 80%; height: 80%; position: relative; z-index: 1; }
.nt-vat.tt-doi .nt-bong { background: #ffe9b8; }
.nt-vat.tt-doi .nt-bong::after { background: #ffe9b8; }
.nt-thoi {
  position: absolute; left: 12%; right: 12%; bottom: 2%; height: 9px;
  border-radius: 99px; background: rgba(255, 248, 236, 0.9); border: 2px solid var(--vien); overflow: hidden;
  pointer-events: none;
}
.nt-thoi i { display: block; height: 100%; background: linear-gradient(90deg, #ffd34d, #7ed957); transition: width 0.9s linear; }
.nt-giot {
  position: absolute; right: 6%; top: 6%; width: 14px; height: 18px; pointer-events: none;
  background: #4fc3f7; border: 2px solid var(--vien); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  transform: rotate(180deg);
}
.nt-bong-dat {
  position: absolute; pointer-events: none; z-index: 900; opacity: 0.85;
  background: rgba(124, 255, 124, 0.35); border: 3px dashed #fff; border-radius: 10px;
}
.nt-bong-dat img { width: 100%; height: 100%; }
.nt-bong-dat.sai { background: rgba(255, 80, 80, 0.4); }
.dang-dat .nt-dat { cursor: crosshair; }

@keyframes nt-nhun { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes nt-bat { 0% { transform: scale(0.6); } 100% { transform: scale(1); } }
@keyframes nt-bong { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -5px); } }

/* ---------- thanh duoi ---------- */
.nt-duoi {
  position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 50;
  transform: translateX(-50%);
  display: flex; gap: 6px; padding: 8px;
  background: var(--kem); border: 3px solid var(--vien); border-radius: 22px; box-shadow: 0 5px 0 var(--vien);
  max-width: calc(100vw - 16px);
}
.nt-cu {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 78px; padding: 4px 2px; border: 0; border-radius: 16px; background: transparent;
  font-size: 0.8rem; font-weight: 800; color: var(--chu);
  transition: transform 0.15s, background 0.15s;
}
.nt-cu img { width: 46px; height: 46px; }
.nt-cu:hover { background: var(--kem-2); transform: translateY(-3px); }
.nt-cu.bat { background: #ffe08a; box-shadow: inset 0 0 0 3px var(--vien); }
.nt-cu-hoc span { color: var(--do); }
.nt-cham {
  position: absolute; top: 2px; right: 12px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--do); border: 2px solid var(--vien); animation: nt-nhun 1s infinite;
}
.nt-zoom {
  position: fixed; right: 14px; bottom: 120px; z-index: 40;
  display: flex; flex-direction: column; gap: 8px;
}
.nt-zoom button {
  width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--vien); background: var(--kem);
  box-shadow: 0 3px 0 var(--vien); font-size: 1.4rem; font-weight: 900; line-height: 1;
}

/* nut 3D (nong-trai-que.js): bat / tat goc nhin nghieng noi khoi; dang bat = vang + chu nhan xuong */
.nt-zoom .nt-nut-3d { font-size: 0.95rem; letter-spacing: 0.02em; background: linear-gradient(160deg, #fff 0%, var(--kem) 60%, #e8d9b8 100%); }
.nt-zoom .nt-nut-3d b { display: inline-block; transform: perspective(60px) rotateX(18deg); text-shadow: 0 2px 0 rgba(43, 29, 58, 0.25); }
.nt-zoom .nt-nut-3d.bat { background: var(--vang); box-shadow: 0 1px 0 var(--vien), inset 0 3px 0 rgba(0, 0, 0, 0.15); transform: translateY(2px); }
.nt-zoom .nt-nut-3d:focus-visible { outline: 3px solid #4a90e2; outline-offset: 2px; }

/* ---------- nut chung ---------- */
.nt-nut {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 14px; border: 3px solid var(--vien);
  background: var(--kem); box-shadow: 0 4px 0 var(--vien);
  font-weight: 800; color: var(--chu); text-decoration: none;
  transition: transform 0.1s, box-shadow 0.1s;
}
.nt-nut:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--vien); }
.nt-nut img { width: 26px; height: 26px; }
.nt-nut small { font-weight: 600; opacity: 0.85; }
.nt-nut-xanh { background: #6fd05a; }
.nt-nut-vang { background: var(--vang); }
.nt-nut-hong { background: #ffb3c8; }
.nt-nut-to { padding: 12px 22px; font-size: 1.05rem; }
.nt-nut-nho { padding: 4px 10px; font-size: 0.85rem; box-shadow: 0 2px 0 var(--vien); border-width: 2px; }
.nt-nut:disabled { opacity: 0.55; cursor: default; }

/* ---------- thanh dat do / sap xep ---------- */
.nt-thanh-dat {
  position: fixed; left: 50%; top: 70px; z-index: 60; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  max-width: calc(100vw - 20px);
  padding: 8px 10px 8px 16px; border-radius: 18px;
  background: #fff3c4; border: 3px solid var(--vien); box-shadow: var(--bong);
  font-weight: 700;
}
.nt-thanh-dat img { width: 32px; height: 32px; vertical-align: middle; }

/* ---------- nut thu hoach tat ca ---------- */
.nt-thu-het {
  position: fixed; left: 50%; bottom: 112px; z-index: 45; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.nt-thu-het button {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 8px 16px 8px 8px; border-radius: 999px; border: 3px solid var(--vien);
  background: var(--vang); box-shadow: var(--bong); font-weight: 900;
  animation: nt-nhun 1.4s ease-in-out infinite;
}
.nt-thu-het img { width: 30px; height: 30px; }

/* ---------- bong noi (popover) ---------- */
.nt-noi {
  position: fixed; z-index: 70; width: min(380px, calc(100vw - 16px));
  max-height: calc(100vh - 80px); overflow-y: auto;
  padding: 12px; border-radius: 18px;
  background: var(--kem); border: 3px solid var(--vien); box-shadow: 0 6px 0 var(--vien), 0 14px 30px rgba(0, 0, 0, 0.25);
  display: flex; flex-direction: column; gap: 10px;
}
.nt-noi-dau { display: flex; align-items: center; gap: 10px; }
.nt-noi-dau > img { width: 64px; height: 64px; flex: none; }
.nt-noi-tit { margin: 0; font-weight: 900; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: baseline; }
.nt-noi-tit small { font-weight: 700; color: var(--mo); }
.nt-noi-gio, .nt-noi-phu { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 600; }
.nt-noi-gio img { width: 28px; height: 28px; }
.nt-noi-phu { color: var(--mo); font-size: 0.92rem; }
.nt-ten {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: baseline;
  text-align: left; padding: 4px 8px; border: 0; border-radius: 12px; background: transparent;
}
.nt-ten:hover { background: rgba(43, 29, 58, 0.06); }
.nt-ten b { font-size: 1.5rem; font-weight: 700; grid-row: 1 / span 2; line-height: 1.1; }
.nt-ten span { font-size: 0.95rem; color: #c0392b; font-weight: 700; }
.nt-ten i { font-style: normal; font-weight: 700; font-size: 0.92rem; }
.nt-ten em { display: none; }
.nt-hat { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.nt-hat-o { display: flex; flex-direction: column; gap: 4px; }
.nt-hat-chon {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 6px 4px; border-radius: 14px; border: 3px solid var(--vien); background: #fff; box-shadow: 0 3px 0 var(--vien);
}
.nt-hat-chon img { width: 44px; height: 44px; }
.nt-hat-chon b { font-size: 1.05rem; }
.nt-hat-chon span { font-size: 0.8rem; font-weight: 700; }
.nt-hat-chon em { font-style: normal; font-size: 0.75rem; font-weight: 700; color: var(--mo); display: inline-flex; align-items: center; gap: 2px; }
.nt-hat-chon em img { width: 16px; height: 16px; }
.nt-hat-o.khoa .nt-hat-chon { filter: grayscale(0.9); opacity: 0.6; }
.nt-hat-het { border: 2px solid var(--vien); border-radius: 10px; background: #dff5d0; font-size: 0.75rem; font-weight: 800; padding: 3px; }

/* ---------- bang truot ---------- */
.nt-lop {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(43, 29, 58, 0.45);
  padding: 12px;
}
.nt-lop[hidden] { display: none; }
.nt-bang {
  width: min(860px, 100%); max-height: min(82vh, 760px);
  display: flex; flex-direction: column;
  background: var(--kem); border: 4px solid var(--vien); border-radius: 26px;
  box-shadow: 0 8px 0 var(--vien);
  animation: nt-len 0.28s cubic-bezier(0.2, 1.2, 0.4, 1);
  overflow: hidden;
}
.nt-lop.nho { align-items: center; }
.nt-lop.nho .nt-bang { width: min(420px, 100%); }
.nt-lop.nho .nt-bang-dau h2:empty + .nt-dong { margin-left: auto; }
@keyframes nt-len { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.nt-bang-dau {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px 8px 20px;
  background: repeating-linear-gradient(90deg, #ffd56b 0 28px, #ffc23d 28px 56px);
  border-bottom: 3px solid var(--vien);
}
.nt-bang-dau h2 { margin: 0; font-size: 1.35rem; font-weight: 900; }
.nt-dong {
  width: 40px; height: 40px; flex: none; border-radius: 50%; border: 3px solid var(--vien); background: #fff;
  font-weight: 900; font-size: 1.05rem; box-shadow: 0 3px 0 var(--vien);
}
.nt-tab { display: flex; gap: 6px; padding: 12px 16px 0; flex-wrap: wrap; }
.nt-tab[hidden] { display: none; }
.nt-tab button {
  padding: 7px 16px; border-radius: 999px; border: 3px solid var(--vien); background: #fff; font-weight: 800;
}
.nt-tab button.bat { background: var(--xanh); color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18); }
.nt-bang-than { padding: 14px 16px 18px; overflow-y: auto; }
.nt-luoi-the { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; }
.nt-the {
  display: flex; flex-direction: column; align-items: stretch; gap: 6px;
  padding: 10px; border-radius: 18px; background: #fff; border: 3px solid var(--vien); box-shadow: 0 4px 0 var(--vien);
}
.nt-the-anh {
  position: relative; height: 96px; display: grid; place-items: center;
  border-radius: 12px; background: radial-gradient(circle at 50% 70%, #c9eeae, #a6dc83);
}
.nt-the-anh img { width: 92px; height: 92px; }
.nt-the.khoa .nt-the-anh img { filter: grayscale(1) brightness(0.9); opacity: 0.6; }
.nt-khoa {
  position: absolute; top: 6px; right: 6px; padding: 2px 8px; border-radius: 99px;
  background: var(--vien); color: #fff; font-size: 0.75rem; font-weight: 800;
}
.nt-the .nt-ten { padding: 2px 4px; }
.nt-the-phu { margin: 0; font-size: 0.82rem; font-weight: 600; color: var(--mo); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nt-the-phu img { width: 18px; height: 18px; }
.nt-mua {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 7px 10px; border-radius: 12px; border: 3px solid var(--vien); background: #7ed957;
  font-weight: 900; box-shadow: 0 3px 0 var(--vien);
}
.nt-mua:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--vien); }
.nt-mua:disabled { background: #e3dccd; color: var(--mo); box-shadow: none; cursor: default; transform: none; }
.nt-gia { display: inline-flex; align-items: center; gap: 3px; }
.nt-gia img { width: 24px; height: 24px; }
.nt-ban-nut { display: flex; gap: 6px; margin-top: auto; }
.nt-ban-nut .nt-mua { flex: 1; background: var(--vang); }
.nt-meo {
  margin: 14px 0 0; padding: 10px 12px; border-radius: 14px; background: #fff3c4; border: 2px dashed #d9a520;
  font-size: 0.92rem; line-height: 1.5;
}
.nt-bang-than > .nt-meo:first-child { margin: 0 0 12px; }
.nt-meo img { width: 22px; height: 22px; vertical-align: -5px; }
.nt-trong { text-align: center; color: var(--mo); font-weight: 600; padding: 20px 10px; margin: 0; }

/* don hang */
.nt-don-ds { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.nt-don {
  display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 18px;
  background: #fffdf6; border: 3px solid var(--vien); box-shadow: 0 4px 0 var(--vien);
  background-image: repeating-linear-gradient(0deg, transparent 0 26px, rgba(43, 29, 58, 0.06) 26px 27px);
}
.nt-don.xong { opacity: 0.6; }
.nt-don-hang { display: flex; gap: 8px; flex-wrap: wrap; }
.nt-don-mon {
  display: grid; grid-template-columns: auto auto; column-gap: 6px; align-items: center;
  padding: 6px 10px 6px 6px; border-radius: 12px; background: #fde2df; border: 2px solid var(--vien);
}
.nt-don-mon.du { background: #dcf5cf; }
.nt-don-mon img { width: 40px; height: 40px; grid-row: 1 / span 3; }
.nt-don-mon b { font-size: 1rem; }
.nt-don-mon i { font-style: normal; font-size: 0.75rem; font-weight: 700; }
.nt-don-mon em { font-style: normal; font-weight: 900; font-variant-numeric: tabular-nums; }
.nt-don-thuong { display: flex; gap: 12px; font-weight: 900; font-size: 1.05rem; }
.nt-don-thuong span { display: inline-flex; align-items: center; gap: 4px; }
.nt-don-thuong img { width: 26px; height: 26px; }
.nt-don-xong { margin: 0; text-align: center; font-weight: 900; color: var(--xanh-dam); }

/* ban cung lop */
.nt-ban-ds { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nt-ban-ds li {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px;
  background: #fff; border: 3px solid var(--vien);
}
.nt-ban-ds li.la { background: #fff3c4; }
.nt-ban-hang {
  width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--kem-2); border: 2px solid var(--vien); font-weight: 900;
}
.nt-ban-ds li:nth-child(1) .nt-ban-hang { background: #ffd34d; }
.nt-ban-ds li:nth-child(2) .nt-ban-hang { background: #dfe6ee; }
.nt-ban-ds li:nth-child(3) .nt-ban-hang { background: #f0b787; }
.nt-ban-ten { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.nt-ban-ten small { color: var(--mo); font-weight: 600; }
.nt-ban-ds .nt-mua { margin: 0; }

/* kiem sao */
.nt-sao-to { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; }
.nt-sao-to img { width: 64px; height: 64px; }
.nt-sao-to b { font-size: 2.6rem; font-weight: 900; }
.nt-sao-to span { color: var(--mo); font-weight: 700; }
.nt-cach { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.nt-cach li { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: #fff; border: 3px solid var(--vien); }
.nt-cach img { width: 44px; height: 44px; flex: none; }
.nt-cach span { display: flex; flex-direction: column; font-size: 0.88rem; color: var(--mo); font-weight: 600; }
.nt-cach b { color: var(--chu); font-size: 0.98rem; }
.nt-hang-nut { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* chuc mung (len cap, qua) */
.nt-chuc { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 0 4px; }
.nt-chuc > img { width: 110px; height: 110px; animation: nt-bat 0.6s cubic-bezier(0.34, 1.6, 0.64, 1); }
.nt-chuc h2 { margin: 0; font-size: 1.8rem; font-weight: 900; }
.nt-chuc p { margin: 0 0 8px; color: var(--mo); font-weight: 600; }

/* ---------- cau hoi on tu ---------- */
.nt-lop#ntHoi { align-items: center; z-index: 90; }
.nt-hoi {
  width: min(560px, 100%);
  background: var(--kem); border: 4px solid var(--vien); border-radius: 26px; box-shadow: 0 8px 0 var(--vien);
  padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px;
  animation: nt-len 0.28s cubic-bezier(0.2, 1.2, 0.4, 1);
}
.nt-hoi-dau { display: flex; align-items: center; gap: 12px; }
.nt-hoi-dau img { width: 64px; height: 64px; flex: none; }
.nt-hoi-dau div { flex: 1; }
.nt-hoi-dau h2 { margin: 0; font-size: 1.25rem; font-weight: 900; }
.nt-hoi-dau p { margin: 2px 0 0; color: var(--mo); font-weight: 600; font-size: 0.92rem; }
.nt-hoi-tien { display: flex; gap: 8px; justify-content: center; }
.nt-hoi-tien i { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--vien); background: #fff; }
.nt-hoi-tien i.dung { background: #7ed957; animation: nt-bat 0.4s; }
.nt-hoi-cau {
  min-height: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 10px; border-radius: 18px; background: #fff; border: 3px solid var(--vien);
}
.nt-hoi-hd { margin: 0; color: var(--mo); font-weight: 700; }
.nt-hoi-zh { border: 0; background: none; font-size: clamp(2.6rem, 9vw, 3.6rem); font-weight: 700; line-height: 1.15; padding: 0 10px; border-radius: 12px; }
.nt-hoi-zh:hover { background: rgba(43, 29, 58, 0.05); }
.nt-hoi-py { margin: 0; color: #c0392b; font-weight: 700; font-size: 1.1rem; }
.nt-hoi-vn { margin: 6px 0; font-size: 1.6rem; font-weight: 900; text-align: center; }
.nt-hoi-loa { padding: 12px 22px; border-radius: 999px; border: 3px solid var(--vien); background: #bfe6ff; font-weight: 900; font-size: 1.1rem; box-shadow: 0 4px 0 var(--vien); }
.nt-hoi-chon { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nt-hoi-chon button {
  min-height: 58px; padding: 8px 10px; border-radius: 16px; border: 3px solid var(--vien); background: #fff;
  box-shadow: 0 4px 0 var(--vien); font-weight: 800; font-size: 1.05rem;
}
.nt-hoi-chon button.zh { font-size: 1.6rem; font-weight: 700; }
.nt-hoi-chon button:hover { background: #fff7e0; }
.nt-hoi-chon button.dung { background: #7ed957; }
.nt-hoi-chon button.sai { background: #ff8a80; animation: nt-lac 0.35s; }
@keyframes nt-lac { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.nt-hoi-bao { margin: 0; min-height: 1.5em; text-align: center; font-weight: 700; }
.nt-hoi-nguon { margin: 0; text-align: center; font-size: 0.8rem; font-weight: 700; color: #7a6a86; }


/* ---------- chua dang nhap ---------- */
.nt-lop-dac { align-items: center; background: linear-gradient(180deg, #8fd3f7, #b9e48f); }
.nt-cong {
  width: min(460px, 100%); text-align: center; padding: 24px;
  background: var(--kem); border: 4px solid var(--vien); border-radius: 26px; box-shadow: 0 8px 0 var(--vien);
}
.nt-cong img { width: 160px; height: 160px; }
.nt-cong h1 { margin: 6px 0; font-size: 1.8rem; font-weight: 900; }
.nt-cong p { color: var(--mo); font-weight: 600; line-height: 1.55; }

/* ---------- thong bao & so bay ---------- */
.nt-bao {
  position: fixed; left: 50%; top: 74px; z-index: 100; transform: translate(-50%, -20px);
  max-width: min(520px, calc(100vw - 24px)); padding: 10px 18px; border-radius: 16px;
  background: var(--kem); border: 3px solid var(--vien); box-shadow: var(--bong);
  font-weight: 800; text-align: center; opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.nt-bao.hien { opacity: 1; transform: translate(-50%, 0); }
.nt-bao.loi { background: #ffd9d4; }
.nt-bay {
  position: fixed; z-index: 110; pointer-events: none;
  display: flex; align-items: center; gap: 2px; transform: translate(-50%, 0);
  font-weight: 900; font-size: 1.35rem; color: #fff;
  text-shadow: 0 2px 0 var(--vien), 0 -2px 0 var(--vien), 2px 0 0 var(--vien), -2px 0 0 var(--vien);
  animation: nt-bay 1.3s ease-out forwards;
}
.nt-bay img { width: 34px; height: 34px; }
@keyframes nt-bay { 0% { opacity: 0; transform: translate(-50%, 10px) scale(0.6); } 15% { opacity: 1; transform: translate(-50%, -10px) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -80px) scale(1); } }

/* ---------- man hinh nho ---------- */
@media (max-width: 640px) {
  .nt-ve b { display: none; }
  .nt-ve { padding: 8px 12px; }
  .nt-chip { height: 38px; font-size: 0.98rem; padding-right: 10px; }
  .nt-chip img { width: 30px; height: 30px; }
  .nt-lv-so { width: 30px; }
  .nt-xp { width: 28px; }
  .nt-hud { gap: 5px; }
  .nt-chip { padding-left: 4px; gap: 4px; }
  .nt-top { gap: 6px; padding: 8px; }
  .nt-chip-cong { display: none; }
  .nt-khung { padding: 80px 20px 120px; }
  .nt-cu { width: 54px; font-size: 0.66rem; }
  .nt-cu img { width: 36px; height: 36px; }
  .nt-zoom { bottom: 108px; right: auto; left: 8px; }
  /* nut tro ly / tin nhan noi (widgets.js) dung che thanh cong cu */
  body.nt .hw-fab-stack { bottom: 104px !important; }
  .nt-luoi-the { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
  .nt-the-anh { height: 78px; }
  .nt-the-anh img { width: 74px; height: 74px; }
  .nt-thu-het { bottom: 96px; }
  .nt-lop { padding: 0; }
  .nt-bang { border-radius: 22px 22px 0 0; max-height: 88vh; }
}


/* dang mo bang / cau hoi: an nut noi cua widgets cho khoi de len */
body.co-bang .hw-fab-stack, body.co-hoi .hw-fab-stack { display: none !important; }
.nt-hd { text-align: left; grid-template-columns: 1fr; margin: 6px 0 10px; width: 100%; }

/* ---------- choi cung ban: sap hang, cho lop, giup ban, loi chao, nhat ky ---------- */
.nt-sap-ds { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; }
.nt-sap-o { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; border: 3px solid var(--vien); border-radius: 16px; background: #fff; box-shadow: 0 4px 0 var(--vien); text-align: center; }
.nt-sap-o > img { width: 64px; height: 64px; }
.nt-sap-o .nt-gia img { width: 22px; height: 22px; }
.nt-sap-o b[lang] { font-size: 1.1rem; }
.nt-sap-o .nt-sap-sl { position: absolute; top: 6px; right: 8px; font-weight: 900; background: var(--vang); border: 2px solid var(--vien); border-radius: 10px; padding: 0 6px; }
.nt-sap-o .nt-sap-ai { font-size: 0.8rem; font-weight: 700; color: var(--mo); }
.nt-sap-trong { display: flex; align-items: center; justify-content: center; min-height: 150px; border: 3px dashed #c9b8a6; border-radius: 16px; color: var(--mo); font-weight: 700; padding: 10px; text-align: center; }
.nt-bay-sap { display: grid; gap: 10px; padding: 12px; margin-top: 14px; border: 3px solid var(--vien); border-radius: 16px; background: #fff8ec; }
.nt-bay-sap h3 { margin: 0; font-size: 1rem; }
.nt-bay-hang { display: flex; flex-wrap: wrap; gap: 6px; }
.nt-bay-hang button { display: flex; align-items: center; gap: 4px; padding: 4px 10px 4px 4px; border: 2px solid var(--vien); border-radius: 12px; background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.nt-bay-hang button img { width: 30px; height: 30px; }
.nt-bay-hang button.bat { background: var(--vang); }
.nt-buoc { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.nt-buoc span { min-width: 92px; }
.nt-buoc button { width: 40px; height: 40px; border: 2px solid var(--vien); border-radius: 12px; background: #fff; font: inherit; font-size: 1.2rem; font-weight: 900; cursor: pointer; }
.nt-buoc output { min-width: 56px; text-align: center; font-size: 1.15rem; }
.nt-buoc small { font-weight: 700; color: var(--mo); }
.nt-chao-ds { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nt-chao-ds button { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; border: 3px solid var(--vien); border-radius: 14px; background: #fff; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 3px 0 var(--vien); }
.nt-chao-ds button:disabled { opacity: 0.55; cursor: not-allowed; }
.nt-chao-ds b[lang] { font-size: 1.15rem; }
.nt-chao-ds i { font-style: normal; color: #c0392b; font-weight: 700; }
.nt-chao-ds span { color: var(--mo); font-weight: 700; font-size: 0.9rem; }
.nt-nk { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nt-nk li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 2px solid #e4d6c6; border-radius: 14px; background: #fff; }
.nt-nk li.moi { border-color: var(--vien); background: #fff4c9; }
.nt-nk li > img { width: 36px; height: 36px; flex: none; }
.nt-nk p { margin: 0; line-height: 1.45; }
.nt-nk small { display: block; color: var(--mo); font-weight: 700; font-size: 0.78rem; }
.nt-nk .nt-nk-chao { display: inline-block; margin-top: 2px; padding: 2px 8px; border-radius: 10px; background: #eef7ff; border: 1.5px solid #9cc7ea; font: inherit; cursor: pointer; }
@media (max-width: 640px) {
  .nt-sap-ds { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
}

/* ---------- thi tran cua lop ---------- */
.nt-tt {
  position: fixed; inset: 0; z-index: 48; overflow: auto;
  padding: 84px 20px 130px;
  background: linear-gradient(180deg, #8fd3f7 0, #bfe8fb 260px, #9fd86c 260px, #8fd35e 100%);
}
.nt-tt[hidden] { display: none; }
body.o-thi-tran .nt-zoom, body.o-thi-tran .nt-thu-het { display: none !important; }
.nt-tt-dau { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0 auto 18px; text-align: center; }
.nt-tt-cong { width: 150px; height: 150px; margin-bottom: -36px; }
.nt-tt-bien { position: relative; padding: 10px 26px; background: #c98a4b; border: 4px solid var(--vien); border-radius: 16px; box-shadow: 0 6px 0 var(--vien); color: #fff8ec; }
.nt-tt-bien h1 { margin: 0; font-size: clamp(1.3rem, 4vw, 2rem); font-weight: 900; text-shadow: 0 2px 0 var(--vien); text-wrap: balance; }
.nt-tt-bien p { margin: 2px 0 0; font-weight: 700; font-size: 0.9rem; }
.nt-tt-nut { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
/* duong pho: nen cua luoi la mat duong, khe giua cac lo la duong */
.nt-tt-luoi {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); column-gap: 40px; row-gap: 12px;
  max-width: 1240px; margin: 0 auto; padding: 0 40px;
  background-color: #fbf2dc; background-image: url('/images/farm/duong-sang.svg?v=1'); background-size: 56px 56px;
  overflow: hidden;
  border: 4px solid var(--vien); border-radius: 22px; box-shadow: 0 8px 0 rgba(43, 29, 58, 0.35);
}
.nt-lo {
  display: flex; flex-direction: column; gap: 6px; padding: 8px; margin: 0;
  background: #6fb247; border: 4px solid var(--vien); border-radius: 18px; box-shadow: 0 5px 0 var(--vien);
  font: inherit; color: var(--chu); text-align: center; cursor: pointer; transition: transform 0.15s;
}
.nt-lo:hover { transform: translateY(-3px); }
.nt-lo:focus-visible { outline: 4px solid var(--vang); outline-offset: 3px; }
.nt-lo.la { background: #ffc83d; }
.nt-lo-dat { border: 3px solid var(--vien); border-radius: 12px; overflow: hidden; background: #8fd35e; }
.nt-nho {
  position: relative; width: 100%;
  background-color: #8fd35e; background-image: url('/images/farm/co.svg?v=1');
}
.nt-nho img { position: absolute; pointer-events: none; }
.nt-lo-trong { display: flex; align-items: center; justify-content: center; aspect-ratio: 10 / 8; color: #2e5d1b; font-weight: 800; padding: 10px; background: repeating-linear-gradient(45deg, #9bd76f 0 12px, #8fd35e 12px 24px); }
.nt-lo-bien { display: flex; flex-direction: column; padding: 4px 8px; background: #fff8ec; border: 3px solid var(--vien); border-radius: 12px; }
.nt-lo-bien b { font-size: 1rem; line-height: 1.25; }
.nt-lo-bien small { font-weight: 700; color: var(--mo); }
@media (max-width: 640px) {
  .nt-tt { padding: 70px 10px 120px; }
  .nt-tt-cong { width: 110px; height: 110px; margin-bottom: -28px; }
  .nt-tt-luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; row-gap: 8px; padding: 0 22px; border-radius: 16px; }
  .nt-vd { width: 26px; height: 26px; }
  .nt-vd-den { left: -24px; top: -6px; width: 24px; height: 32px; }
  .nt-vd-cay { right: -25px; bottom: -4px; }
  .nt-pho { height: 46px; }
  .nt-pho-bien b { font-size: 0.95rem; }
  .nt-pho-bien small { font-size: 0.66rem; }
  .nt-pho-dao img { width: 30px; height: 30px; }
  .nt-tt-quang img { width: 34px; height: 34px; }
  .nt-tt-quang img.lon { width: 62px; height: 62px; }
  .nt-tt-quang img:nth-child(1), .nt-tt-quang img:nth-child(11), .nt-tt-quang img:nth-child(3), .nt-tt-quang img:nth-child(9) { display: none; }
  .nt-lo { padding: 5px; border-radius: 14px; }
  .nt-lo-bien b { font-size: 0.85rem; }
  .nt-lo-bien small { font-size: 0.72rem; }
}

/* duong pho: con pho ngang (vach ke, bien ten tieng Trung, con vat di dao) + do ven duong */
.nt-pho { grid-column: 1 / -1; position: relative; height: 58px; margin: 0 -40px; display: flex; align-items: center; padding-left: 14px; overflow: hidden; background: linear-gradient(180deg, transparent 6px, rgba(96, 74, 58, 0.28) 6px, rgba(96, 74, 58, 0.28) calc(100% - 6px), transparent calc(100% - 6px)); }
.nt-pho-vach { position: absolute; left: 0; right: 0; top: 50%; height: 5px; margin-top: -2px; background: repeating-linear-gradient(90deg, #fff8ec 0 26px, transparent 26px 52px); opacity: 0.9; }
.nt-pho-bien {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 3px 12px;
  background: #c98a4b; color: #fff8ec; border: 3px solid var(--vien); border-radius: 10px; box-shadow: 0 3px 0 var(--vien);
  font: inherit; text-align: left; cursor: pointer; line-height: 1.2;
}
.nt-pho-bien:hover { transform: translateY(-1px); }
.nt-pho-bien:focus-visible { outline: 3px solid var(--vang); outline-offset: 2px; }
.nt-pho-bien b { font-size: 1.1rem; text-shadow: 0 1px 0 var(--vien); }
.nt-pho-bien small { font-size: 0.72rem; font-weight: 700; }
.nt-pho-dao { position: absolute; bottom: 4px; left: -60px; z-index: 1; animation: nt-di-dao 34s linear infinite; pointer-events: none; }
.nt-pho-dao img { width: 42px; height: 42px; display: block; animation: nt-lac-buoc 0.5s ease-in-out infinite alternate; }
.nt-pho-dao.nguoc { animation-name: nt-di-nguoc; }
.nt-pho-dao.nguoc img { transform: scaleX(-1); }
@keyframes nt-di-dao { from { left: -60px; } to { left: 100%; } }
@keyframes nt-di-nguoc { from { left: 100%; } to { left: -60px; } }
@keyframes nt-lac-buoc { from { translate: 0 0; } to { translate: 0 -3px; } }
.nt-o-pho { position: relative; display: flex; }
.nt-o-pho > .nt-lo { flex: 1; min-width: 0; }
.nt-vd { position: absolute; width: 40px; height: 40px; pointer-events: none; z-index: 2; }
.nt-vd-den { left: -38px; top: -10px; width: 36px; height: 48px; }
.nt-vd-cay { right: -39px; bottom: -6px; }
.nt-tt-quang {
  display: flex; justify-content: center; align-items: flex-end; gap: 6px; flex-wrap: nowrap; overflow: hidden;
  max-width: 1240px; margin: 0 auto 14px; padding: 10px 14px 6px;
  background-color: #fbf2dc; background-image: url('/images/farm/duong-sang.svg?v=1'); background-size: 56px 56px;
  border: 4px solid var(--vien); border-radius: 22px; box-shadow: 0 6px 0 rgba(43, 29, 58, 0.35);
}
.nt-tt-quang:empty { display: none; }
.nt-tt-quang img { width: 54px; height: 54px; flex: none; }
.nt-tt-quang img.lon { width: 104px; height: 104px; }
@media (max-width: 640px) {
  .nt-pho { margin: 0 -22px; height: 46px; padding-left: 8px; }
  .nt-vd { width: 26px; height: 26px; }
  .nt-vd-den { left: -24px; top: -6px; width: 24px; height: 32px; }
  .nt-vd-cay { right: -25px; bottom: -4px; }
  .nt-pho-bien { padding: 2px 8px; }
  .nt-pho-bien b { font-size: 0.95rem; }
  .nt-pho-bien small { font-size: 0.66rem; }
  .nt-pho-dao img { width: 30px; height: 30px; }
  .nt-tt-quang { padding: 6px 8px 4px; gap: 4px; border-radius: 16px; }
  .nt-tt-quang img { width: 34px; height: 34px; }
  .nt-tt-quang img.lon { width: 62px; height: 62px; }
  .nt-tt-quang img:nth-child(1), .nt-tt-quang img:nth-child(3), .nt-tt-quang img:nth-child(9), .nt-tt-quang img:nth-child(11) { display: none; }
}

/* ---------- nhan vat ao ---------- */
.nt-nv-nut {
  width: 50px; height: 50px; margin-right: auto; padding: 0; overflow: hidden;
  border-radius: 50%; border: 3px solid var(--vien); background: #bfe8fb; box-shadow: var(--bong); cursor: pointer;
}
.nt-nv-nut .nv-svg.mat { width: 100%; height: auto; transform: scale(1.65); transform-origin: 50% 33%; display: block; }
.nt-nv-nut.moi { animation: nt-nhay-nv 1.2s ease-in-out infinite; }
@keyframes nt-nhay-nv { 50% { transform: scale(1.12); box-shadow: 0 0 0 6px rgba(255, 200, 61, 0.7), var(--bong); } }
.nt-nv {
  position: absolute; transform: translate(-50%, -100%); pointer-events: none;
  display: flex; flex-direction: column; align-items: center;
  transition-property: left, top; transition-timing-function: linear;
}
.nt-nv-hinh { width: 100%; }
.nt-nv-hinh .nv-svg { display: block; width: 100%; height: auto; }
.nt-nv.trai .nt-nv-hinh { transform: scaleX(-1); }
.nt-nv.di .nt-nv-hinh .nv-svg { animation: nt-buoc 0.32s ease-in-out infinite alternate; }
@keyframes nt-buoc { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-6%) rotate(3deg); } }
.nt-nv-ten {
  margin-bottom: -2px; padding: 1px 8px; white-space: nowrap;
  background: #fff8ec; border: 2px solid var(--vien); border-radius: 99px;
  font-size: 0.75rem; font-weight: 800; color: var(--chu); line-height: 1.3;
}
.nt-nv-ten.khach { background: #ffe1ea; }
.nt-lo-dat { position: relative; }
.nt-lo-nv { position: absolute; left: 4%; bottom: 2%; width: 20%; z-index: 30; pointer-events: none; }
.nt-lo-nv .nv-svg { display: block; width: 100%; height: auto; }
/* bang thiet ke */
.nt-nvs { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
.nt-nvs-xem { position: sticky; top: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; background: linear-gradient(180deg, #bfe8fb, #9fd86c); border: 3px solid var(--vien); border-radius: 18px; }
.nt-nvs-xem .nv-svg.to { width: 160px; height: auto; }
.nt-nvs-xem .nt-nv-ten { font-size: 0.95rem; }
.nt-nvs-kieu { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.nt-nvs-mon {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px;
  background: #fff; border: 3px solid #e4d6c6; border-radius: 14px; font: inherit; cursor: pointer; color: var(--chu);
}
.nt-nvs-mon.bat { border-color: var(--vien); background: #fff4c9; box-shadow: 0 3px 0 var(--vien); }
.nt-nvs-mon .nv-svg.nho { width: 64px; height: auto; }
.nt-nvs-mon b { font-size: 0.82rem; }
.nt-nvs-mon small { font-size: 0.78rem; }
.nt-nvs-mon small i { font-style: normal; color: #c0392b; }
.nt-nvs-gia { position: absolute; top: 4px; right: 4px; display: inline-flex; align-items: center; gap: 2px; padding: 0 6px; background: var(--vang); border: 2px solid var(--vien); border-radius: 10px; font-weight: 900; font-size: 0.78rem; }
.nt-nvs-gia img { width: 14px; height: 14px; }
.nt-nvs-nhan { margin: 12px 0 6px; font-weight: 800; }
.nt-nvs-mau { display: flex; flex-wrap: wrap; gap: 8px; }
.nt-nvs-mau button { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--vien); cursor: pointer; }
.nt-nvs-mau button.bat { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--vien); }
.nt-nvs-luu { position: sticky; bottom: -1px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding: 10px 0 2px; background: var(--kem); border-top: 2px dashed #e4d6c6; font-weight: 700; }
.nt-nvs-luu img { width: 18px; height: 18px; vertical-align: -3px; }
@media (max-width: 640px) {
  .nt-nv-nut { width: 42px; height: 42px; }
  .nt-nvs { grid-template-columns: 1fr; }
  .nt-nvs-xem { position: static; flex-direction: row; justify-content: center; padding: 8px; }
  .nt-nvs-xem .nv-svg.to { width: 96px; }
  .nt-nvs-kieu { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .nt-nvs-mon .nv-svg.nho { width: 52px; }
  .nt-nv-ten { font-size: 0.68rem; padding: 0 6px; }
}
@media (max-width: 420px) {
  /* man hep: nut nhan vat xuong duoi nut ve, cum dong ho giu 1 dong */
  .nt-nv-nut { position: absolute; left: 10px; top: 62px; width: 42px; height: 42px; }
}
.nt-nvs-gt { display: grid; grid-template-columns: repeat(2, minmax(0, 200px)); gap: 12px; }
.nt-nvs-gt .nt-nvs-mon { padding: 10px; }
.nt-nvs-gt .nv-svg { width: 110px; height: auto; }
.nt-nvs-gt .nt-nvs-mon b { font-size: 1rem; }

/* ---------- noi chuyen bang tieng Trung ---------- */
.nt-cau {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0;
  padding: 6px 10px; border: 2px solid #e4d6c6; border-radius: 12px; background: #fff; font: inherit; text-align: left; cursor: pointer; color: var(--chu);
}
.nt-cau:hover { border-color: var(--vien); }
.nt-cau b[lang] { font-size: 1.1rem; }
.nt-cau i { font-style: normal; color: #c0392b; font-weight: 700; font-size: 0.85rem; }
.nt-cau span { color: var(--mo); font-weight: 700; font-size: 0.85rem; }
.nt-cau.to { padding: 10px 14px; border-color: var(--vien); background: #fff4c9; }
.nt-cau.to b[lang] { font-size: 1.4rem; }
.nt-cau.nho { margin-top: 4px; padding: 4px 8px; background: #eef7ff; border-color: #9cc7ea; }
.nt-cau.nho b[lang] { font-size: 1rem; }
.nt-cau.nho.dap { background: #e9f8df; border-color: #8fcf6c; }
.nt-tin-ds { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nt-tin-ds li { display: flex; align-items: center; gap: 10px; }
.nt-tin-ds li .nt-cau { flex: 1; }
.nt-tin-ds li .nt-mua { flex: none; width: auto; padding: 8px 16px; }
.nt-tin-buoc { margin: 10px 0 6px; font-weight: 800; }
.nt-tin-buoc a { margin-left: 8px; font-weight: 700; font-size: 0.85rem; color: var(--mo); }
.nt-tin-tu { display: flex; flex-wrap: wrap; gap: 6px; }
.nt-tin-tu button { display: flex; flex-direction: column; align-items: flex-start; padding: 4px 10px; border: 2px solid #e4d6c6; border-radius: 12px; background: #fff; font: inherit; cursor: pointer; color: var(--chu); }
.nt-tin-tu button.bat { border-color: var(--vien); background: var(--vang); }
.nt-tin-tu b[lang] { font-size: 1.05rem; }
.nt-tin-tu small { font-size: 0.72rem; font-weight: 700; color: var(--mo); }
.nt-tin-xem { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nt-nk-tl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-weight: 700; font-size: 0.85rem; }
.nt-nk-chon { display: inline-flex; flex-direction: column; align-items: flex-start; padding: 3px 9px; border: 2px solid var(--vien); border-radius: 10px; background: var(--vang); font: inherit; cursor: pointer; color: var(--chu); box-shadow: 0 2px 0 var(--vien); }
.nt-nk-chon b[lang] { font-size: 0.95rem; }
.nt-nk-chon small { font-size: 0.68rem; font-weight: 700; }
.nt-nk-da { display: block; margin-top: 6px; color: #2e7d32; font-weight: 700; font-size: 0.85rem; }
/* bong bong loi noi tren dau nhan vat */
.nt-nv-noi {
  position: relative; display: flex; flex-direction: column; align-items: center; margin-bottom: 6px; padding: 3px 10px;
  background: #fff; border: 2px solid var(--vien); border-radius: 12px; white-space: nowrap; line-height: 1.2;
  animation: nt-bat 0.35s cubic-bezier(0.34, 1.6, 0.64, 1);
}
.nt-nv-noi::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 10px; height: 10px; margin-left: -5px; background: #fff; border-right: 2px solid var(--vien); border-bottom: 2px solid var(--vien); transform: rotate(45deg); }
.nt-nv-noi b { font-size: 0.95rem; }
.nt-nv-noi i { font-style: normal; font-size: 0.68rem; font-weight: 700; color: #c0392b; }
@media (max-width: 640px) {
  .nt-tin-ds li { flex-direction: column; align-items: stretch; gap: 4px; }
  .nt-nv-noi b { font-size: 0.8rem; }
}

/* ---------- doi sao lay xu ---------- */
.nt-chip-doi { background: var(--vang-dam); font-size: 0.8rem; font-weight: 900; }
.nt-doi { max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.nt-doi-ti {
  display: flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 999px;
  background: #fff; border: 3px solid var(--vien); box-shadow: var(--bong);
}
.nt-doi-ti img { width: 44px; height: 44px; }
.nt-doi-ti b { font-size: 1.9rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.nt-doi-mui { font-size: 1.6rem; font-weight: 900; color: var(--mo); margin: 0 6px; }
.nt-doi-co { margin: 0; color: var(--mo); font-weight: 700; }
.nt-doi-co b { color: var(--chu); }
.nt-doi-chon { display: flex; align-items: center; gap: 8px; }
.nt-doi-chon input {
  width: 120px; height: 52px; text-align: center; font: inherit; font-size: 1.5rem; font-weight: 900;
  border: 3px solid var(--vien); border-radius: 16px; background: #fff; color: var(--chu); font-variant-numeric: tabular-nums;
}
.nt-doi-bot {
  width: 52px; height: 52px; border-radius: 16px; border: 3px solid var(--vien); box-shadow: var(--bong);
  background: var(--kem-2); font: inherit; font-size: 1.6rem; font-weight: 900; color: var(--chu); cursor: pointer;
}
.nt-doi-bot:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--vien); }
.nt-doi-nhanh { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.nt-doi-nhanh button {
  padding: 6px 14px; border-radius: 999px; border: 2px solid var(--vien); background: #fff;
  font: inherit; font-weight: 800; color: var(--chu); cursor: pointer;
}
.nt-doi-nhanh button:hover { background: var(--vang); }
.nt-doi-nut { width: 100%; }
.nt-doi-nut:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- cong dong ---------- */
.nt-cd-tim input {
  width: 100%; height: 46px; padding: 0 16px; margin-bottom: 8px;
  font: inherit; font-weight: 700; color: var(--chu);
  border: 3px solid var(--vien); border-radius: 14px; background: #fff;
}
.nt-cd-ds li { align-items: center; }
.nt-cd-nv { flex: none; width: 44px; height: 52px; display: grid; place-items: center; overflow: hidden; }
.nt-cd-nv svg { width: 44px; height: 52px; }
.nt-cd-loc { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.nt-cd-loc button {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px 4px 6px; min-height: 36px;
  border-radius: 999px; border: 2px solid var(--vien); background: #fff;
  font: inherit; font-weight: 800; font-size: 0.85rem; color: var(--chu); cursor: pointer;
}
.nt-cd-loc button img { width: 24px; height: 24px; }
.nt-cd-loc button small { color: var(--mo); font-weight: 700; }
.nt-cd-loc button.bat { background: var(--vang); }
@media (max-width: 640px) {
  /* 7 nut duoi chia deu chieu ngang dien thoai */
  .nt-duoi { gap: 2px; padding: 6px; }
  .nt-cu { width: auto; flex: 1 1 0; min-width: 0; font-size: 0.6rem; line-height: 1.15; }
  .nt-cu img { width: 32px; height: 32px; }
}

/* ---------- dien thoai: khong tran vien ---------- */
@media (max-width: 640px) {
  /* bang truot cach mep 8px, vien hai ben khong bi cat; bang nho (qua, hoi) nam giua */
  .nt-lop { padding: 8px 8px 0; }
  .nt-lop.nho, .nt-lop#ntHoi, .nt-lop-dac { padding: 12px; }
  .nt-lop.nho .nt-bang, .nt-lop#ntHoi .nt-bang, .nt-lop-dac .nt-bang { border-radius: 22px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .nt-bang { width: 100%; max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  .nt-bang-than { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
  /* cum cap / sao / xu / nhac gon lai de nam tren 1 dong, chua le 8px ben phai */
  .nt-top { padding: 8px 8px 0; }
  .nt-hud { gap: 4px; flex-wrap: nowrap; min-width: 0; }
  .nt-chip { height: 34px; font-size: 0.9rem; padding: 0 8px 0 3px; gap: 3px; border-width: 2.5px; box-shadow: 0 3px 0 var(--vien); }
  .nt-chip img { width: 26px; height: 26px; }
  .nt-lv-so { left: 3px; width: 26px; font-size: 0.82rem; }
  .nt-xp { width: 20px; height: 10px; }
  .nt-chip-nhac { width: 34px; padding: 0; font-size: 1rem; }
  .nt-ve { padding: 6px 10px; }
}
@media (max-width: 340px) {
  .nt-xp { display: none; }
  .nt-chip-lv { padding-right: 3px; }
}

/* ---------- tham ban: nong trai lui xuong duoi thanh tham ---------- */
body.dang-tham .nt-khung { padding-top: var(--tham-duoi, 140px); }
body.dang-tham .nt-muc { display: none; }
@media (max-width: 640px) {
  /* bong noi = the duoi man hinh, ngay tren thanh nut */
  .nt-noi { width: calc(100vw - 16px); max-height: 46vh; }
}

/* ---------- muc tieu hoc hom nay (goc phai, duoi thanh tren) ---------- */
.nt-muc {
  position: fixed; top: 66px; right: clamp(10px, 2vw, 20px); z-index: 45;
  display: flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px;
  background: var(--kem); border: 3px solid var(--vien); border-radius: 999px; box-shadow: var(--bong);
  font: inherit; color: var(--chu); cursor: pointer; text-align: left;
}
.nt-muc-vong { position: relative; width: 40px; height: 40px; flex: none; }
.nt-muc-vong svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.nt-muc-vong circle { fill: none; stroke-width: 4; }
.nt-muc-nen { stroke: #e7dcc6; }
.nt-muc-dat { stroke: var(--vang-dam); stroke-linecap: round; transition: stroke-dasharray 0.5s; }
.nt-muc-vong img { position: absolute; inset: 8px; width: 24px; height: 24px; }
.nt-muc-chu { display: flex; flex-direction: column; line-height: 1.1; }
.nt-muc-chu b { font-size: 1rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.nt-muc-chu small { font-size: 0.72rem; color: var(--mo); font-weight: 700; }
.nt-muc.co-qua { background: var(--vang); animation: nt-nhay 1.4s ease-in-out infinite; }
.nt-muc.co-qua .nt-muc-chu small { color: var(--chu); }
.nt-muc.xong .nt-muc-dat { stroke: var(--xanh); }
@keyframes nt-nhay { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (max-width: 420px) {
  .nt-muc { top: 52px; right: 8px; padding: 3px 9px 3px 3px; border-width: 2.5px; box-shadow: 0 3px 0 var(--vien); }
  .nt-muc-vong, .nt-muc-vong svg { width: 32px; height: 32px; }
  .nt-muc-vong img { inset: 7px; width: 18px; height: 18px; }
  .nt-muc-chu b { font-size: 0.88rem; }
  .nt-muc-chu small { font-size: 0.64rem; }
}

/* ---------- hoc hom nay: ruong ---------- */
.nt-hn { display: flex; flex-direction: column; gap: 14px; }
.nt-hn-dau { display: flex; align-items: center; gap: 12px; }
.nt-hn-dau img { width: 56px; height: 56px; }
.nt-hn-dau b { display: block; font-size: 1.9rem; font-weight: 900; line-height: 1; }
.nt-hn-dau span { color: var(--mo); font-weight: 700; }
.nt-hn-duong { position: relative; height: 16px; margin: 6px 14px 22px; border-radius: 99px; background: #e7dcc6; border: 3px solid var(--vien); }
.nt-hn-duong > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(180deg, #ffd85c, #f0a417); transition: width 0.5s; }
.nt-hn-moc { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff; border: 3px solid var(--vien); }
.nt-hn-moc em { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 0.78rem; font-weight: 800; color: var(--mo); }
.nt-hn-moc.duoc { background: var(--vang); }
.nt-hn-moc.da { background: var(--xanh); }
.nt-hn-ruong { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.nt-ruong {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  padding: 10px 6px; border-radius: 16px; background: #fff; border: 3px solid var(--vien);
}
.nt-ruong-hinh { font-size: 2rem; line-height: 1; filter: grayscale(0.7); opacity: 0.7; }
.nt-ruong.duoc .nt-ruong-hinh, .nt-ruong.da .nt-ruong-hinh { filter: none; opacity: 1; }
.nt-ruong.duoc { background: #fff4c4; animation: nt-nhay 1.4s ease-in-out infinite; }
.nt-ruong.da { background: #e6f6dc; }
.nt-ruong b { font-size: 0.95rem; }
.nt-ruong small { color: var(--mo); font-weight: 700; font-size: 0.74rem; }
.nt-ruong .nt-nut { padding: 6px 10px; font-size: 0.85rem; }
.nt-ruong-tt { font-size: 0.8rem; font-weight: 800; color: var(--mo); }
.nt-hn-chuoi { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: #ffe8d6; border: 2px solid var(--vien); font-weight: 600; }
.nt-hn-chuoi .nt-lua { font-size: 1.6rem; }
.nt-hn-chuoi .nt-nut { margin-left: auto; padding: 5px 12px; font-size: 0.85rem; }
.nt-hn-h { margin: 4px 0 0; font-size: 1.05rem; }
.nt-hn-viec { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.nt-viec {
  display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px;
  background: #fff; border: 3px solid var(--vien); box-shadow: 0 3px 0 var(--vien);
  font: inherit; color: var(--chu); text-decoration: none; text-align: left; cursor: pointer;
}
.nt-viec:hover { background: #fff8e0; }
.nt-viec img { width: 44px; height: 44px; flex: none; }
.nt-viec span { display: flex; flex-direction: column; min-width: 0; }
.nt-viec small { color: var(--mo); font-weight: 600; font-size: 0.8rem; }

/* ---------- thi dua tuan ---------- */
.nt-td-pham { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 10px; border-radius: 999px; background: var(--kem-2); border: 2px solid var(--vien); }
.nt-td-pham button { border: 0; background: none; border-radius: 999px; padding: 6px 16px; font: inherit; font-weight: 800; color: var(--mo); cursor: pointer; }
.nt-td-pham button.bat { background: #fff; color: var(--chu); box-shadow: 0 2px 0 var(--vien); }
.nt-bucvinh { display: flex; justify-content: center; align-items: flex-end; gap: 8px; margin: 6px 0 14px; }
.nt-bac { display: flex; flex-direction: column; align-items: center; width: 31%; max-width: 150px; text-align: center; }
.nt-bac-nv { width: 64px; height: 74px; display: grid; place-items: end center; }
.nt-bac-nv svg { width: 64px; height: 74px; }
.nt-bac b { font-size: 0.88rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-bac small { font-weight: 800; color: var(--vang-dam); }
.nt-bac-khoi {
  width: 100%; margin-top: 4px; display: grid; place-items: start center; padding-top: 6px; font-size: 1.5rem;
  border: 3px solid var(--vien); border-bottom: 0; border-radius: 12px 12px 0 0; background: #ffd34d;
}
.nt-bac.b1 .nt-bac-khoi { height: 70px; }
.nt-bac.b2 .nt-bac-khoi { height: 50px; background: #e3e7ee; }
.nt-bac.b3 .nt-bac-khoi { height: 36px; background: #f2c29b; }
.nt-bac.la b { color: var(--do); }
.nt-td-em {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 12px;
  border-radius: 16px; background: #fff3c4; border: 3px solid var(--vien); box-shadow: 0 3px 0 var(--vien);
}
.nt-td-hang { font-size: 1.6rem; font-weight: 900; min-width: 2.4ch; text-align: center; font-variant-numeric: tabular-nums; }
.nt-td-em > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nt-td-em small { color: var(--mo); font-weight: 600; }
.nt-td-em .nt-nut { flex: none; padding: 7px 12px; }
.nt-td-ds { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nt-td-ds li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: #fff; border: 2px solid #e4d6c6; }
.nt-td-ds li.la { background: #fff3c4; border-color: var(--vien); }
.nt-td-so { width: 30px; text-align: center; font-weight: 900; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.nt-td-ten { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nt-td-ten b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-td-ten small { color: var(--mo); font-weight: 600; font-size: 0.78rem; }
.nt-td-sao { font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nt-lo-vua { display: block; font-size: 0.72rem; font-weight: 800; color: var(--vang-dam); }
@media (max-width: 640px) {
  .nt-ruong-hinh { font-size: 1.6rem; }
  .nt-ruong small { font-size: 0.68rem; }
  .nt-tab button { padding: 6px 12px; font-size: 0.88rem; }
}
@media (max-width: 420px) {
  .nt-tab { gap: 4px; padding: 10px 10px 0; }
  .nt-tab button { padding: 5px 10px; font-size: 0.82rem; border-width: 2.5px; }
}

/* ---------- thu thach chu Han ---------- */
.nt-ch-ic {
  flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--do); color: #fff; border: 2.5px solid var(--vien);
  font-family: 'Noto Serif SC', serif; font-weight: 900; font-size: 1.25rem; line-height: 1;
}
.nt-chuhan-nut {
  position: fixed; top: 124px; right: clamp(10px, 2vw, 20px); z-index: 45;
  display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px;
  background: #fff1f1; border: 3px solid var(--vien); border-radius: 999px; box-shadow: var(--bong);
  font: inherit; color: var(--chu); cursor: pointer; text-align: left;
}
.nt-chuhan-nut:hover { transform: translateY(-2px); }
.nt-chuhan-nut.het { background: var(--kem); }
.nt-chuhan-nut.het .nt-ch-ic { background: #a58ca0; }
body.dang-tham .nt-chuhan-nut { display: none; }
@media (max-width: 420px) {
  .nt-chuhan-nut { top: 98px; right: 8px; padding: 3px 9px 3px 3px; border-width: 2.5px; box-shadow: 0 3px 0 var(--vien); }
  .nt-chuhan-nut .nt-ch-ic { width: 30px; height: 30px; font-size: 1.05rem; }
  .nt-chuhan-nut .nt-muc-chu b { font-size: 0.8rem; }
}
/* ---------- Chuong 动物园: vat nuoi theo nhom ---------- */
.nt-chuong-tong { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px 12px; border: 2.5px solid var(--vien); border-radius: 14px; background: #fff8dc; font-weight: 700; }
.nt-chuong-tong .doi b { color: #c62828; }
.nt-chuong-tong .xong b { color: #2e7d32; }
.nt-chuong-tong .nt-mua { margin-left: auto; }
.nt-chuong-ds { display: grid; gap: 8px; }
.nt-chuong { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 2.5px solid var(--vien); border-radius: 14px; background: #fff; }
.nt-chuong.co-doi { background: #fff4f2; }
.nt-chuong.co-xong { background: #effae8; }
.nt-chuong.khoa { background: #f3eef2; opacity: .8; }
.nt-chuong.khoa .nt-chuong-hinh { filter: grayscale(1); }
.nt-chuong-hinh { flex: none; width: 64px; height: 64px; }
.nt-chuong-chu { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nt-chuong-chu b [lang="zh"] { font-family: 'Noto Serif SC', serif; font-size: 1.15rem; }
.nt-chuong-chu small img { width: 18px; height: 18px; vertical-align: -4px; }
.nt-chuong-so { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.nt-chuong-so i { font-style: normal; font-size: 0.82rem; padding: 1px 8px; border-radius: 999px; background: #f1ece6; }
.nt-chuong-so i.doi { background: #ffdcd6; }
.nt-chuong-so i.xong { background: #d6f2c9; }
.nt-chuong-khoa { font-weight: 700; color: #7b5e78; }
.nt-chuong-nut { display: flex; flex-direction: column; gap: 5px; }
.nt-mua.phu { background: #fff; }
@media (max-width: 480px) { .nt-chuong { flex-wrap: wrap; } .nt-chuong-nut { flex-direction: row; width: 100%; } }

/* ---------- Vong quay may man 幸运大转盘 ---------- */
.nt-vq-nut { top: 176px; background: #fff8dc; }
.nt-vq-nut .nt-vq-ic { background: #fff; padding: 1px; }
.nt-vq-nut .nt-vq-ic svg { width: 100%; height: 100%; animation: ntVqXoay 6s linear infinite; }
.nt-vq-nut.co-luot { animation: ntVqNhun 1.6s ease-in-out infinite; }
.nt-vq-nut.co-luot .nt-muc-chu small { color: var(--do); font-weight: 800; }
@keyframes ntVqXoay { to { transform: rotate(360deg); } }
@keyframes ntVqNhun { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (max-width: 420px) { .nt-vq-nut { top: 142px; } }
.nt-vq { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.nt-vq-tit { margin: 0; font-size: 1.05rem; }
.nt-vq-tit span { font-family: 'Noto Serif SC', serif; font-weight: 900; color: var(--do); margin-right: 6px; }
.nt-vq-khung { position: relative; width: min(320px, 82vw); aspect-ratio: 1; }
.nt-vq-banh { width: 100%; height: 100%; transition: transform 4.2s cubic-bezier(.12, .7, .14, 1); filter: drop-shadow(0 6px 0 rgba(43, 29, 58, .25)); }
.nt-vq-kim { position: absolute; left: 50%; top: -6px; width: 34px; margin-left: -17px; z-index: 2; filter: drop-shadow(0 3px 0 rgba(43, 29, 58, .3)); }
.nt-vq-quay {
  position: absolute; left: 50%; top: 50%; width: 27%; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 2;
  border-radius: 50%; border: 4px solid var(--vien); background: var(--do); color: #fff; font: inherit; font-weight: 900;
  font-size: clamp(0.85rem, 3.4vw, 1.05rem); line-height: 1.05; cursor: pointer; box-shadow: 0 4px 0 var(--vien);
}
.nt-vq-quay small { display: block; font-family: 'Noto Serif SC', serif; font-size: 0.75em; opacity: .9; }
.nt-vq-quay:disabled { background: #a58ca0; cursor: default; }
.nt-vq-con { font-weight: 800; }
.nt-vq-con b { color: var(--do); font-size: 1.2rem; }
.nt-vq-moc { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 380px; display: grid; gap: 6px; text-align: left; }
.nt-vq-moc li { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 2.5px solid var(--vien); border-radius: 12px; background: #fff; }
.nt-vq-moc li.dat { background: #e9f8e1; }
.nt-vq-moc li .nt-vq-dau { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--vien); background: #fff; font-weight: 900; font-size: 0.8rem; }
.nt-vq-moc li.dat .nt-vq-dau { background: #66bb6a; color: #fff; }
.nt-vq-moc li em { margin-left: auto; font-style: normal; font-weight: 800; color: var(--do); white-space: nowrap; }
.nt-vq-qua { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 16px; border: 3px solid var(--vien); border-radius: 16px; background: #fff8dc; animation: ntVqHien .5s ease-out; }
.nt-vq-qua img { width: 64px; height: 64px; }
.nt-vq-qua .zh { font-family: 'Noto Serif SC', serif; font-weight: 900; font-size: 1.3rem; color: var(--do); }
@keyframes ntVqHien { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.nt-viec-ch { background: #fff1f1; }
.nt-viec-ch .nt-ch-ic { width: 44px; height: 44px; font-size: 1.5rem; border-radius: 12px; }

.nt-ch-moi { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; max-width: 460px; margin: 0 auto; }
.nt-ch-logo {
  width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center;
  background: var(--do); color: #fff; border: 4px solid var(--vien); box-shadow: 0 5px 0 var(--vien);
  font-family: 'Noto Serif SC', serif; font-size: 3rem; font-weight: 900;
}
.nt-ch-moi h3 { margin: 4px 0 0; font-size: 1.4rem; }
.nt-ch-moi p { margin: 0; color: var(--mo); font-weight: 600; }
.nt-ch-luat { display: grid; gap: 6px; width: 100%; text-align: left; }
.nt-ch-luat span { padding: 8px 12px; border-radius: 12px; background: #fff; border: 2px solid #e4d6c6; font-weight: 600; font-size: 0.92rem; }
.nt-ch-con { font-weight: 700; color: var(--chu); text-align: center; }

.nt-ch { display: flex; flex-direction: column; gap: 12px; max-width: 520px; margin: 0 auto; }
.nt-ch-dau { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 800; font-variant-numeric: tabular-nums; }
.nt-ch-cham { display: flex; gap: 4px; flex: 1; justify-content: center; }
.nt-ch-cham i { width: 10px; height: 10px; border-radius: 50%; background: #e7dcc6; border: 2px solid var(--vien); }
.nt-ch-cham i.qua { background: var(--xanh); }
.nt-ch-cham i.dang { background: var(--vang); transform: scale(1.25); }
.nt-ch-kieu { margin: 0; text-align: center; color: var(--mo); font-weight: 800; }
.nt-ch-zh {
  text-align: center; font-family: 'Noto Serif SC', serif; font-size: clamp(2.6rem, 10vw, 3.6rem); font-weight: 900; line-height: 1.2;
  padding: 12px; border-radius: 18px; background: #fff; border: 3px solid var(--vien);
}
.nt-ch-o { display: inline-block; min-width: 1.1em; color: var(--do); border-bottom: 4px solid var(--do); }
.nt-ch-vn { text-align: center; font-size: 1.35rem; font-weight: 800; padding: 16px 12px; border-radius: 18px; background: #fff; border: 3px solid var(--vien); }
.nt-ch-goi { text-align: center; color: var(--mo); font-weight: 700; margin-top: -4px; }
.nt-ch-lua { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nt-ch-lua button {
  min-height: 56px; padding: 8px 10px; border-radius: 14px; border: 3px solid var(--vien); background: var(--kem);
  box-shadow: 0 4px 0 var(--vien); font: inherit; font-weight: 800; font-size: 1.05rem; color: var(--chu); cursor: pointer;
}
.nt-ch-lua.zh button { font-family: 'Noto Serif SC', serif; font-size: 1.6rem; }
.nt-ch-lua button:hover:not(:disabled) { background: #fff3c4; }
.nt-ch-lua button:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--vien); }
.nt-ch-lua button.dung { background: #c8f0b8; }
.nt-ch-lua button.sai { background: #ffc9c0; }
.nt-ch-lua button.mo { opacity: 0.5; }
.nt-ch-giai { margin: 0; min-height: 1.5em; text-align: center; font-weight: 700; }
.nt-ch-giai b { font-family: 'Noto Serif SC', serif; font-size: 1.2rem; }
.nt-ch-nguon { margin: 0; text-align: center; color: var(--mo); font-size: 0.8rem; }
/* Cau tu ngan hang Kiem tra bai cu: trac nghiem (cau co ＿＿), xep cau keo tha, noi tu (cau-dt.css) */
.nt-kt-zh {
  text-align: center; font-family: 'Noto Serif SC', serif; font-size: clamp(1.5rem, 6vw, 2.1rem); font-weight: 700; line-height: 1.55;
  padding: 14px 14px; border-radius: 18px; background: #fff; border: 3px solid var(--vien); overflow-wrap: anywhere;
}
.nt-kt-o { display: inline-block; min-width: 2.2em; color: var(--do); border-bottom: 4px solid var(--do); background: #fff1d6; border-radius: 6px 6px 0 0; line-height: 1.1; }
.nt-kt .nt-ch-lua button { font-size: 1.05rem; line-height: 1.3; }
.nt-kt .nt-ch-lua button[lang='zh'] { font-family: 'Noto Serif SC', serif; font-size: 1.3rem; }
.nt-kt .nt-ch-lua.zh button { font-size: 1.6rem; }
.nt-kt-nghia { font-size: 1.05rem; color: var(--chu); }
.nt-kt-dt { width: 100%; }
[data-kt-dt].nt-kt-dung .cdt-dich { border-color: var(--xanh); background: #e6f7dc; }
[data-kt-dt].nt-kt-sai .cdt-dich { border-color: var(--do); background: #ffe8e3; }
[data-kt-dt].nt-kt-dung .cdt-o.co { background: #e6f7dc; }
[data-kt-dt].nt-kt-sai .cdt-o.co { background: #fff1ee; }
.nt-ch-giai .nt-kt-dap, .nt-ch-giai .nt-kt-tu, .nt-ch-giai .nt-kt-why, .nt-kt-kq span { display: block; margin-top: 4px; }
.nt-kt-dap b { font-size: 1.3rem; }
.nt-kt-why { font-weight: 600; color: var(--mo); font-size: 0.95rem; line-height: 1.45; }
.nt-ch-giai .nt-hang-nut { margin-top: 10px; }
.nt-kt-kq { text-align: left; font-size: 0.95rem; }

.nt-ch-kq { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.nt-ch-diem { display: flex; flex-direction: column; align-items: center; }
.nt-ch-diem b { font-size: 3rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.nt-ch-diem span { font-weight: 800; color: var(--mo); }
.nt-hop-qua {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 26px; border-radius: 22px;
  border: 3px dashed var(--vien); background: #fff4c4; font: inherit; font-weight: 800; color: var(--chu); cursor: pointer;
  animation: nt-nhay 1.4s ease-in-out infinite;
}
.nt-hop-than { font-size: 4.2rem; line-height: 1; }
.nt-hop-qua.lac { animation: nt-lac 0.9s ease-in-out; }
@keyframes nt-lac { 0%, 100% { transform: rotate(0) scale(1); } 20% { transform: rotate(-12deg) scale(1.05); } 40% { transform: rotate(12deg) scale(1.1); } 60% { transform: rotate(-10deg) scale(1.15); } 80% { transform: rotate(8deg) scale(1.25); } }
.nt-qua-mo {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 22px; border-radius: 22px;
  background: #fff; border: 3px solid var(--vien); box-shadow: 0 5px 0 var(--vien); animation: nt-hien 0.4s ease-out;
}
@keyframes nt-hien { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.nt-qua-mo img { width: 96px; height: 96px; }
.nt-qua-mo b { font-family: 'Noto Serif SC', serif; font-size: 1.8rem; }
.nt-qua-mo small { color: var(--mo); font-weight: 700; }
.nt-qua-mo p { margin: 6px 0 0; color: var(--mo); font-weight: 600; max-width: 320px; }
.nt-qua-hiem { padding: 2px 12px; border-radius: 999px; font-weight: 900; font-size: 0.8rem; border: 2px solid var(--vien); background: #e7dcc6; }
.nt-qua-hiem.h-Đẹp { background: #c8e9ff; }
.nt-qua-hiem.h-Quý { background: #e5c8ff; }
.nt-qua-hiem.h-Hiếm { background: var(--vang); }

/* ---------- hoc vi (danh hieu khoa cu) ---------- */
.nt-hv {
  display: inline-grid; place-items: center; padding: 1px 7px; margin-right: 5px; border-radius: 8px;
  border: 2px solid var(--vien); font-style: normal; font-family: 'Noto Serif SC', serif; font-weight: 900; font-size: 0.95rem;
  background: #e7dcc6; color: var(--chu); vertical-align: middle; line-height: 1.25;
}
.nt-hv.nho { font-size: 0.72rem; padding: 0 4px; border-width: 1.5px; border-radius: 6px; margin-right: 3px; }
.nt-hv.hv1 { background: #d8f0c8; }
.nt-hv.hv2 { background: #c8e9ff; }
.nt-hv.hv3 { background: #e5d4ff; }
.nt-hv.hv4 { background: #ffd8a8; }
.nt-hv.hv5 { background: #ffc9de; }
.nt-hv.hv6 { background: #ffe08a; }
.nt-hv.hv7 { background: linear-gradient(135deg, #ffd34d, #ff8a3d); color: #7a1c00; }
.nt-hv-the { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 2px solid var(--vien); }
.nt-hv-the .nt-hv { font-size: 1.4rem; padding: 4px 10px; border-width: 3px; border-radius: 12px; }
.nt-hv-the span { display: flex; flex-direction: column; min-width: 0; }
.nt-hv-the small { color: var(--mo); font-weight: 600; }

/* ---------- ban hang: han muc + goi ten ---------- */
.nt-han-muc { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 10px 12px; border-radius: 14px; background: #fff4c4; border: 2px solid var(--vien); }
.nt-han-muc > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nt-han-muc small { color: var(--mo); font-weight: 600; font-size: 0.8rem; }
.nt-han-muc .nt-nut { flex: none; padding: 6px 12px; }
.nt-bst-thanh { display: block; height: 10px; margin-top: 4px; border-radius: 99px; background: #e7dcc6; border: 2px solid var(--vien); overflow: hidden; }
.nt-bst-thanh > i { display: block; height: 100%; background: linear-gradient(180deg, #ffd85c, #f0a417); }
.nt-ban-nut button:disabled { opacity: 0.5; cursor: not-allowed; }
.nt-goi { display: flex; flex-direction: column; gap: 12px; text-align: center; }
.nt-goi h3 { margin: 0; font-size: 1.15rem; }
.nt-goi-mon { display: flex; align-items: center; justify-content: center; gap: 12px; }
.nt-goi-mon img { width: 72px; height: 72px; }
.nt-goi-mon span { display: flex; flex-direction: column; text-align: left; }
.nt-goi-mon b { font-size: 1.25rem; }
.nt-goi-mon small { color: var(--mo); font-weight: 700; }
.nt-goi-luat { margin: 0; color: var(--mo); font-weight: 600; font-size: 0.9rem; }

/* ---------- bo suu tap chu Han ---------- */
.nt-bst { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding: 12px; border-radius: 16px; background: #fff; border: 2px dashed var(--vien); text-align: left; }
.nt-bst-dau { display: flex; flex-direction: column; }
.nt-bst-dau small { color: var(--mo); font-weight: 600; }
.nt-bst-moc { display: flex; align-items: center; gap: 10px; }
.nt-bst-moc img { width: 56px; height: 56px; flex: none; }
.nt-bst-moc > span { flex: 1; font-size: 0.88rem; font-weight: 600; }
.nt-bst .nt-nut { align-self: flex-start; padding: 6px 14px; }
.nt-bst-ds h3 { margin: 14px 0 8px; font-size: 1rem; }
.nt-bst-mocs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.nt-bst-mo { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 8px 4px; border-radius: 14px; border: 2px solid #e4d6c6; background: #fff; }
.nt-bst-mo img { width: 52px; height: 52px; filter: grayscale(1); opacity: 0.45; }
.nt-bst-mo.mo { border-color: var(--vien); background: #fff4c4; }
.nt-bst-mo.mo img { filter: none; opacity: 1; }
.nt-bst-mo b { font-size: 0.78rem; line-height: 1.2; }
.nt-bst-mo small { font-size: 0.7rem; color: var(--mo); font-weight: 700; }
.nt-the-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.nt-the-chu {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 6px;
  border-radius: 12px; border: 2.5px solid var(--vien); background: linear-gradient(180deg, #fff8ec, #ffe9c2);
  box-shadow: 0 3px 0 var(--vien); font: inherit; color: var(--chu); cursor: pointer;
}
.nt-the-chu b { font-family: 'Noto Serif SC', serif; font-size: 1.35rem; line-height: 1.1; }
.nt-the-chu small { font-size: 0.7rem; color: var(--mo); font-weight: 700; }
.nt-the-chu.dang { background: #f3eee6; border-style: dashed; box-shadow: none; opacity: 0.8; }
.nt-the-chu i { position: absolute; top: -6px; right: -4px; font-style: normal; font-size: 0.65rem; font-weight: 900; padding: 0 5px; border-radius: 99px; background: var(--vang); border: 1.5px solid var(--vien); }
@media (max-width: 420px) { .nt-bst-mocs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- mac ca ---------- */
.nt-mc { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.nt-mc h3 { margin: 0; font-size: 1.15rem; }
.nt-mc-gia { margin: 0; color: var(--mo); font-weight: 600; font-size: 0.9rem; }
.nt-mc-gia b { color: var(--chu); }
.nt-mc-cham { display: flex; justify-content: center; gap: 6px; }
.nt-mc-cham i { width: 12px; height: 12px; border-radius: 50%; background: #e7dcc6; border: 2px solid var(--vien); }
.nt-mc-cham i.qua { background: var(--xanh); }
.nt-mc-cham i.dang { background: var(--vang); }
.nt-mc-hoi { margin: 4px 0 0; font-weight: 800; }
.nt-mc-lua { display: grid; gap: 8px; }
.nt-mc-lua button {
  min-height: 52px; padding: 8px 12px; border-radius: 14px; border: 3px solid var(--vien); background: var(--kem);
  box-shadow: 0 4px 0 var(--vien); font-family: 'Noto Serif SC', serif; font-weight: 800; font-size: 1.2rem; color: var(--chu); cursor: pointer;
}
.nt-mc-lua button:hover { background: #fff3c4; }
.nt-mc-lua button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--vien); }
.nt-mc-kq { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--vien); text-align: left; }
.nt-mc-kq.dung { background: #e3f6d6; }
.nt-mc-kq.sai { background: #ffe3dc; }
.nt-mc-kq b { font-family: 'Noto Serif SC', serif; }
.nt-mc-kq small { color: var(--mo); font-weight: 600; }
.nt-mc-ban { align-self: flex-end; padding: 6px 12px; border-radius: 14px 14px 2px 14px; background: #fff; border: 2px solid var(--vien); }
.nt-mc-bo { align-self: center; background: none; border: 0; color: var(--mo); text-decoration: underline; font: inherit; font-size: 0.85rem; cursor: pointer; }
.nt-mc-chot { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.nt-mc-chot b { font-size: 1.6rem; }
.nt-mc-chot small { color: var(--mo); font-weight: 700; }
.nt-giam { display: block; color: var(--do); font-weight: 700; font-size: 0.72rem; }

/* ---------- bep ---------- */
.nt-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: var(--do); text-decoration: underline; cursor: pointer; }
.nt-mon .nt-the-anh img { width: 76px; height: 76px; }
.nt-mon-moi { background: var(--do) !important; color: #fff !important; }
.nt-mon-vn { font-size: 1rem; }
.nt-ct { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 3px; width: 100%; }
.nt-ct li { display: flex; justify-content: space-between; gap: 6px; padding: 3px 8px; border-radius: 8px; font-size: 0.95rem; }
.nt-ct li span { font-family: 'Noto Serif SC', serif; font-weight: 800; }
.nt-ct li small { color: var(--mo); font-weight: 700; }
.nt-ct li.co { background: #e3f6d6; }
.nt-ct li.thieu { background: #ffe3dc; }
.nt-mon-to { width: 96px; height: 96px; }

/* ---------- don dac biet ---------- */
.nt-dondb { margin-bottom: 14px; padding: 12px 14px; border-radius: 18px; border: 3px solid var(--vien); box-shadow: 0 4px 0 var(--vien);
  background: repeating-linear-gradient(0deg, #fff8e6 0 28px, #f3e3c3 28px 29px); }
.nt-dondb.xong { background: #e3f6d6; }
.nt-dondb-dau { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 800; }
.nt-dondb-dau span { display: inline-flex; align-items: center; gap: 4px; }
.nt-dondb-dau img { width: 22px; height: 22px; }
.nt-dondb-zh { margin: 8px 0; font-family: 'Noto Serif SC', serif; font-size: clamp(1.4rem, 5vw, 1.8rem); font-weight: 900; text-align: center; }
.nt-dondb-py { margin: -4px 0 6px; text-align: center; color: var(--mo); font-weight: 700; }
.nt-dondb-goi, .nt-dondb-vn { margin: 0 0 8px; color: var(--mo); font-weight: 600; font-size: 0.88rem; text-align: center; }

/* ---------- don dac biet: cach nau mon ---------- */
.nt-dondb-nau { margin: 0 0 10px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 2px solid var(--vien); }
.nt-dondb-mon { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.nt-dondb-mon > img { width: 48px; height: 48px; flex: none; }
.nt-dondb-mon span { display: flex; flex-direction: column; }
.nt-dondb-mon span b span { display: inline; font-family: 'Noto Serif SC', serif; }
.nt-dondb-mon small { color: var(--mo); font-weight: 600; }
.nt-dondb-nau ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nt-dondb-nau li { display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 10px; }
.nt-dondb-nau li.co { background: #e3f6d6; }
.nt-dondb-nau li.thieu { background: #ffe3dc; }
.nt-dondb-nau li img { width: 34px; height: 34px; flex: none; }
.nt-dondb-nau li span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.nt-dondb-nau li b { font-family: 'Noto Serif SC', serif; font-size: 1.1rem; }
.nt-dondb-nau li small { color: var(--mo); font-weight: 600; font-size: 0.78rem; }
.nt-dondb-nau li em { font-style: normal; font-weight: 800; font-size: 0.82rem; white-space: nowrap; }
.nt-dondb-co { margin: 6px 0 0; color: var(--xanh-dam); font-weight: 700; font-size: 0.85rem; }

/* ---------- nguyen lieu de hieu (tranh + chu Han + pinyin + tieng Viet) ---------- */
.nt-ct li.nt-nl, .nt-dondb-nau li.nt-nl {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 8px; row-gap: 0; align-items: center;
  padding: 6px 8px; border-radius: 10px; text-align: left;
}
.nt-nl > img { grid-row: 1 / 3; width: 34px; height: 34px; }
.nt-nl-chu { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.nt-nl-chu b { font-family: 'Noto Serif SC', serif; font-size: 1.05rem; font-weight: 900; }
.nt-nl-chu small { color: var(--mo); font-weight: 600; font-size: 0.74rem; }
.nt-nl-chu .nt-nl-vn { color: var(--chu); font-weight: 800; font-size: 0.8rem; }
.nt-nl em { grid-column: 2; font-style: normal; font-weight: 800; font-size: 0.74rem; }
.nt-nl.co em { color: var(--xanh-dam); }
.nt-nl.thieu em { color: var(--do); }
.nt-nl-chu small { font-family: 'Be Vietnam Pro', 'Noto Serif SC', sans-serif; }

/* ---------- bang Can mua ---------- */
.nt-cm-dang { padding: 12px 14px; border-radius: 18px; background: #fff; border: 3px solid var(--vien); box-shadow: 0 4px 0 var(--vien); margin-bottom: 14px; }
.nt-cm-dang h3 { margin: 0 0 6px; font-size: 1.1rem; }
.nt-cm-hang { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin: 8px 0 10px; }
.nt-cm-mon {
  display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 4px; border-radius: 12px;
  border: 2px solid #e4d6c6; background: var(--kem); font: inherit; color: var(--chu); cursor: pointer;
}
.nt-cm-mon img { width: 38px; height: 38px; }
.nt-cm-mon b { font-family: 'Noto Serif SC', serif; font-size: 0.95rem; }
.nt-cm-mon small { font-size: 0.66rem; color: var(--mo); font-weight: 600; }
.nt-cm-mon.bat { border-color: var(--vien); background: var(--vang); }
.nt-cm-so { display: inline-flex; flex-direction: column; align-items: center; min-width: 40px; line-height: 1.1; font-weight: 700; }
.nt-cm-so b { font-family: 'Noto Serif SC', serif; font-size: 1.05rem; }
.nt-cm-so.bat { background: var(--vang) !important; }
.nt-cm-cau { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 8px 0; padding: 10px; border-radius: 14px; background: #fff4c4; border: 2px dashed var(--vien); text-align: center; }
.nt-cm-cau b { font-family: 'Noto Serif SC', serif; font-size: clamp(1.3rem, 5vw, 1.7rem); }
.nt-cm-cau small { flex-basis: 100%; order: 2; color: var(--mo); font-weight: 700; }
.nt-cm-cau .nt-nut { padding: 4px 10px; }
.nt-cm-h { margin: 14px 0 8px; font-size: 1.02rem; }
.nt-cm-ds { display: grid; gap: 8px; }
.nt-cm-tin { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: #fff; border: 2px solid var(--vien); }
.nt-cm-tin.la { background: #fff4c4; }
.nt-cm-tin > img { width: 44px; height: 44px; flex: none; }
.nt-cm-tin > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nt-cm-tin b { font-family: 'Noto Serif SC', serif; font-size: 1.15rem; }
.nt-cm-tin small { color: var(--mo); font-weight: 600; font-size: 0.78rem; }
.nt-cm-ai .nt-link { font-size: 0.78rem; }
.nt-cm-vn { font-style: normal; color: var(--chu); }
.nt-cm-tin em { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-weight: 900; white-space: nowrap; }
.nt-cm-tin em img { width: 20px; height: 20px; }
.nt-cm-tin .nt-mua { flex: none; }
@media (max-width: 420px) {
  .nt-cm-tin { flex-wrap: wrap; }
  .nt-cm-tin .nt-mua { margin-left: auto; }
}
.nt-buoc .nt-cm-so { width: auto; height: auto; min-width: 42px; padding: 3px 8px; font-size: 0.78rem; gap: 1px; }
.nt-buoc .nt-cm-so b { font-size: 1.1rem; line-height: 1.1; }

/* ---------- Cung nhau: cong trinh lop, thach dau, ban hoc, le hoi ---------- */
.nt-cu-chung span { color: var(--xanh-dam); }
.nt-cn-nv { display: inline-flex; width: 44px; height: 44px; flex: none; }
.nt-cn-nv svg { width: 100%; height: 100%; }
.nt-cn-thanh { display: block; height: 10px; margin: 6px 0 2px; border-radius: 999px; border: 2px solid var(--vien); background: #fff; overflow: hidden; }
.nt-cn-thanh span { display: block; height: 100%; background: var(--xanh); transition: width .4s ease; }
.nt-cn-nho { margin: 0; font-size: 0.84rem; color: var(--mo); font-weight: 600; line-height: 1.4; }
.nt-cn-h { margin: 16px 0 8px; font-size: 0.95rem; font-weight: 800; color: var(--chu); }
.nt-cn-ct, .nt-cn-lh-dau { display: flex; gap: 12px; align-items: center; padding: 12px; border: 3px solid var(--vien); border-radius: 18px; background: var(--kem-2); box-shadow: var(--bong); }
.nt-cn-ct > div, .nt-cn-lh-dau > div { flex: 1; min-width: 0; }
.nt-cn-ct h3, .nt-cn-lh-dau h3 { margin: 2px 0; font-size: 1.1rem; line-height: 1.3; }
.nt-cn-ct h3 [lang="zh"], .nt-cn-lh-dau h3 [lang="zh"] { font-family: 'Noto Serif SC', serif; font-size: 1.35rem; color: var(--do); }
.nt-cn-ct-anh { width: 112px; height: 112px; flex: none; }
.nt-cn-lh-dau img { width: 76px; height: 76px; flex: none; }
.nt-cn-vl { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.nt-cn-vl li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 2px solid var(--vien); border-radius: 14px; background: #fff; }
.nt-cn-vl li > img { width: 40px; height: 40px; flex: none; }
.nt-cn-vl-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nt-cn-vl-t b { font-size: 0.9rem; }
.nt-cn-vl-t b [lang="zh"] { font-family: 'Noto Serif SC', serif; }
.nt-cn-vl-t small { font-size: 0.76rem; color: var(--mo); font-weight: 600; }
.nt-cn-vl em { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; flex: none; }
.nt-cn-gach { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border: 2px solid var(--vien); border-radius: 8px; background: #d9774b; color: #fff; font-family: 'Noto Serif SC', serif; font-weight: 700; font-size: 1.3rem; }
.nt-cn-du { color: var(--xanh-dam); font-weight: 800; flex: none; }
.nt-cn-hop { margin-top: 12px; padding: 12px; border: 3px dashed var(--vang-dam); border-radius: 16px; background: #fffaf0; }
.nt-cn-hop > p { margin: 0 0 10px; font-size: 0.9rem; }
.nt-cn-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nt-cn-top li { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 6px; border-radius: 12px; background: #fff; border: 2px solid var(--kem-2); }
.nt-cn-top li.la { border-color: var(--vang-dam); background: #fff6d8; }
.nt-cn-top li .nt-cn-nv { width: 34px; height: 34px; }
.nt-cn-top li b { flex: 1; min-width: 0; font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-cn-top li > span:last-child { font-weight: 800; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.nt-cn-hang { width: 24px; text-align: center; font-weight: 800; }
.nt-cn-chon-dau { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.nt-cn-td-dau { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px; border: 3px solid var(--vien); border-radius: 18px; background: var(--kem-2); margin-bottom: 12px; }
.nt-cn-td-dau > div { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; }
.nt-cn-td-dau small { font-size: 0.82rem; color: var(--mo); font-weight: 600; line-height: 1.4; }
.nt-cn-kq { flex: none; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: 0.85rem; border: 2px solid var(--vien); background: #fff; }
.nt-cn-kq.kq-thang { background: var(--vang); }
.nt-cn-kq.kq-thua { background: var(--kem-2); }
.nt-cn-kq.kq-hoa { background: var(--troi); }
p.nt-cn-kq { display: inline-block; font-size: 1.05rem; margin: 6px 0; }
.nt-cn-cho { flex: none; font-size: 0.82rem; font-weight: 700; color: var(--mo); }
.nt-cn-hb { display: flex; flex-direction: column; gap: 6px; }
.nt-cn-hb-doi { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border: 3px solid var(--vien); border-radius: 18px; background: var(--kem-2); }
.nt-cn-hb-doi > div { flex: 1; max-width: 170px; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.nt-cn-hb-doi .nt-cn-nv { width: 64px; height: 64px; }
.nt-cn-hb-doi b { font-size: 0.92rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-cn-hb-doi small { font-weight: 700; font-size: 0.82rem; }
.nt-cn-hb-doi .nt-cn-thanh { width: 100%; }
.nt-cn-tim { font-family: 'Noto Serif SC', serif; font-weight: 700; color: var(--do); font-size: 1.1rem; writing-mode: vertical-rl; }
.nt-cn-chuoi { margin: 4px 0 0; text-align: center; font-weight: 700; }
.nt-cn-to { margin: 0; font-weight: 800; font-size: 1.05rem; }
.nt-cn-to [lang="zh"] { font-family: 'Noto Serif SC', serif; color: var(--do); font-size: 1.3rem; }
.nt-cn-lh { display: flex; flex-direction: column; gap: 10px; }
.nt-cn-lh-mon { max-width: 340px; }
.nt-cn-lh-mon .nt-the-anh img { width: 92px; height: 92px; }
/* cong trinh tren quang truong thi tran */
.nt-tt-ct { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 8px auto 4px; max-width: 980px; }
.nt-tt-ct:empty { display: none; }
.nt-tt-ct-xong { margin: 0; display: flex; flex-direction: column; align-items: center; }
.nt-tt-ct-xong img { width: 120px; height: 120px; }
.nt-tt-ct-xong figcaption { margin-top: -6px; padding: 2px 10px; border: 2px solid var(--vien); border-radius: 8px; background: #8b5a2b; color: #fff; font-size: 0.78rem; font-weight: 700; display: flex; gap: 6px; align-items: baseline; }
.nt-tt-ct-xong figcaption b { font-family: 'Noto Serif SC', serif; color: #ffe08a; }
.nt-tt-ct-dang { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 3px dashed var(--vien); border-radius: 18px; background: rgba(255, 248, 236, 0.92); font: inherit; color: var(--chu); cursor: pointer; text-align: left; }
.nt-tt-ct-dang img { width: 72px; height: 72px; filter: grayscale(.85) opacity(.65); }
.nt-tt-ct-dang > span { display: flex; flex-direction: column; min-width: 150px; }
.nt-tt-ct-dang small { font-size: 0.76rem; color: var(--mo); font-weight: 700; }
.nt-tt-ct-dang:hover { background: #fff; }
@media (max-width: 640px) {
  .nt-cn-ct-anh { width: 80px; height: 80px; }
  .nt-cn-lh-dau img { width: 60px; height: 60px; }
  .nt-tt-ct-xong img { width: 84px; height: 84px; }
  .nt-cn-vl li { flex-wrap: wrap; }
}

/* ---------- Thi tran cac lop ---------- */
.nt-tt-khach { max-width: 720px; margin: 0 auto 12px; padding: 10px 14px; border: 3px solid var(--vien); border-radius: 18px; background: #fff6d8; box-shadow: var(--bong); text-align: center; }
.nt-tt-khach[hidden] { display: none; }
.nt-tt-khach p { margin: 0 0 8px; font-weight: 600; }
.nt-tt-khach .nt-hang-nut { justify-content: center; flex-wrap: wrap; }
.nt-cac-tt { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.nt-cac-tt > li { padding: 12px; border: 3px solid var(--vien); border-radius: 18px; background: #fff; box-shadow: var(--bong); display: flex; flex-direction: column; gap: 8px; }
.nt-cac-tt > li.la { background: #fff6d8; border-color: var(--vang-dam); }
.nt-cac-dau { display: flex; align-items: center; gap: 10px; }
.nt-cac-hang { width: 36px; text-align: center; font-size: 1.3rem; font-weight: 800; flex: none; }
.nt-cac-ten { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nt-cac-ten b { font-size: 1rem; }
.nt-cac-ten em { font-style: normal; font-size: 0.72rem; padding: 1px 8px; margin-left: 4px; border-radius: 999px; background: var(--xanh); color: #fff; vertical-align: middle; }
.nt-cac-ten small { font-size: 0.8rem; color: var(--mo); font-weight: 600; }
.nt-cac-diem { flex: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.nt-cac-diem b { font-size: 1.25rem; color: var(--do); font-variant-numeric: tabular-nums; }
.nt-cac-diem small { font-size: 0.72rem; color: var(--mo); font-weight: 700; }
.nt-cac-nv { display: flex; gap: 2px; }
.nt-cac-nv .nt-cn-nv { width: 40px; height: 40px; }
.nt-cac-so { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.86rem; }
.nt-cac-so b { font-variant-numeric: tabular-nums; }
.nt-cac-ct { display: flex; flex-wrap: wrap; gap: 4px; }
.nt-cac-ct img { width: 56px; height: 56px; }
.nt-cac-tt .nt-hang-nut { margin-top: 0; }

/* ---------- Phan thuong thi tran ---------- */
.nt-tt-cong-hang { display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.nt-tt-trang { width: 44px; height: 44px; flex: none; }
.nt-tt-trang.nt-tt-co { width: 56px; height: 56px; }
.nt-tt-dh { margin: 4px 0 0; font-weight: 800; color: #fff3c4; font-size: 0.86rem; }
.nt-tt-dh[hidden] { display: none; }
.nt-tg { margin-bottom: 12px; padding: 12px; border: 3px solid var(--vien); border-radius: 18px; background: #fff6d8; box-shadow: var(--bong); display: flex; flex-direction: column; gap: 6px; }
.nt-tg h4 { margin: 0; font-size: 1rem; }
.nt-tg-ds { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nt-tg-ds li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 2px solid var(--vien); border-radius: 12px; background: #fff; font-size: 0.88rem; }
.nt-tg-ds li img { width: 36px; height: 36px; flex: none; }
.nt-tg-ds li > span { flex: 1; min-width: 0; }
.nt-tg-luat summary { cursor: pointer; font-weight: 700; font-size: 0.85rem; }
.nt-tg-luat ul { margin: 6px 0 0; padding-left: 18px; font-size: 0.82rem; line-height: 1.5; color: var(--mo); }
.nt-cac-dh { color: var(--do) !important; font-weight: 800 !important; }
#ntTtCham { left: 6px; right: auto; background: var(--vang); }
@media (max-width: 640px) { .nt-tt-trang { width: 30px; height: 30px; } .nt-tt-trang.nt-tt-co { width: 40px; height: 40px; } }

/* ---------- Loi dai 擂台 ---------- */
.nt-ld-dau { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 3px solid var(--vien); border-radius: 18px; background: var(--kem-2); box-shadow: var(--bong); margin-bottom: 12px; }
.nt-ld-dau > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nt-ld-dau small { font-size: 0.82rem; color: var(--mo); font-weight: 600; line-height: 1.45; }
.nt-ld-chu { flex: none; width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; border: 3px solid var(--vien); border-radius: 12px; background: var(--do); color: #fff; font-family: 'Noto Serif SC', serif; font-weight: 700; font-size: 1.9rem; }
.nt-ld-bang { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nt-ld-bang li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border: 2px solid var(--kem-2); border-radius: 12px; background: #fff; }
.nt-ld-bang li.la { border-color: var(--vang-dam); background: #fff6d8; }
.nt-ld-ten { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nt-ld-ten small { font-size: 0.76rem; color: var(--mo); font-weight: 600; }
.nt-ld-tb { flex: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.nt-ld-tb b { font-size: 1.15rem; color: var(--do); font-variant-numeric: tabular-nums; }
.nt-ld-tb small { font-size: 0.7rem; color: var(--mo); font-weight: 700; }
/* ---------- Du khach hoi duong ---------- */
.nt-dk-nut { display: flex; align-items: center; gap: 8px; margin: 10px auto 4px; padding: 6px 14px 6px 6px; border: 3px solid var(--vien); border-radius: 999px; background: #fff; box-shadow: var(--bong); font: inherit; color: var(--chu); cursor: pointer; animation: nt-nhun 2.4s ease-in-out infinite; }
.nt-dk-nut[hidden] { display: none; }
.nt-dk-nv { display: inline-flex; width: 48px; height: 48px; flex: none; }
.nt-dk-nv svg { width: 100%; height: 100%; }
.nt-dk-nv.to { width: 96px; height: 96px; }
.nt-dk-bong { display: flex; flex-direction: column; text-align: left; }
.nt-dk-bong b { font-family: 'Noto Serif SC', serif; font-size: 1.1rem; color: var(--do); }
.nt-dk-bong small { font-size: 0.76rem; color: var(--mo); font-weight: 700; }
.nt-dk-moi { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.nt-dk-ban { position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto 1fr auto; gap: 4px; align-items: center; justify-items: center; margin: 8px 0; }
.nt-dk-huong { font-family: 'Noto Serif SC', serif; font-weight: 700; font-size: 0.85rem; color: var(--xanh-dam); }
.nt-dk-huong.tren { grid-column: 2; grid-row: 1; }
.nt-dk-huong.duoi { grid-column: 2; grid-row: 3; }
.nt-dk-huong.trai { grid-column: 1; grid-row: 2; text-align: center; line-height: 1.2; }
.nt-dk-huong.phai { grid-column: 3; grid-row: 2; text-align: center; line-height: 1.2; }
.nt-dk-luoi { grid-column: 2; grid-row: 2; width: 100%; max-width: 360px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; border: 3px solid var(--vien); border-radius: 16px; background: #dff3d4; }
.nt-dk-o { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 10px; background: #fff; border: 2px solid var(--kem-2); min-width: 0; }
.nt-dk-o img { width: 38px; height: 38px; }
.nt-dk-o b { font-family: 'Noto Serif SC', serif; font-size: 1rem; }
.nt-dk-o small { font-size: 0.66rem; color: var(--mo); font-weight: 600; }
.nt-dk-o.sang { border-color: var(--do); background: #ffe8e2; box-shadow: 0 0 0 3px var(--vang); }
.nt-dk-o.sang b { color: var(--do); font-size: 1.3rem; }
.nt-dk-hoi { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; }
.nt-dk-loi { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px; border: 3px solid var(--vien); border-radius: 16px 16px 16px 4px; background: #fff; font: inherit; color: var(--chu); text-align: left; cursor: pointer; }
.nt-dk-loi b { font-family: 'Noto Serif SC', serif; font-size: 1.2rem; }
.nt-dk-loi i { font-style: normal; color: var(--mo); font-size: 0.82rem; }
.nt-dk-loi span { font-size: 0.82rem; }
.nt-dk-cau { grid-template-columns: 1fr; }
.nt-dk-cau button { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.nt-dk-cau button b { font-family: 'Noto Serif SC', serif; font-size: 1.15rem; }
.nt-dk-cau button small { font-size: 0.78rem; font-weight: 600; color: var(--mo); }
/* ---------- Bang tin + cay uoc nguyen ---------- */
.nt-bt-ds { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nt-bt-ds li { display: flex; align-items: flex-start; gap: 8px; padding: 8px; border: 2px solid var(--kem-2); border-radius: 14px; background: #fff; }
.nt-bt-ds li.la { border-color: var(--vang-dam); background: #fffaf0; }
.nt-bt-ds li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nt-bt-ds li > div > b small { font-weight: 600; color: var(--mo); font-size: 0.74rem; }
.nt-bt-nut { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.nt-bt-tim { flex: none; padding: 4px 10px; min-height: 32px; border: 2px solid var(--vien); border-radius: 999px; background: #fff; font: inherit; font-weight: 800; font-size: 0.82rem; color: var(--chu); cursor: pointer; }
.nt-bt-tim.bat { background: #ffd6e0; }
span.nt-bt-tim { cursor: default; }
.nt-uoc-cay { position: relative; display: flex; flex-direction: column; align-items: center; padding: 8px; border: 3px solid var(--vien); border-radius: 18px; background: linear-gradient(#e8f6ff, #f4ffe9); }
.nt-uoc-cay img { width: 150px; height: 150px; }
.nt-uoc-dai { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: -24px; max-width: 320px; }
.nt-uoc-bang { padding: 3px 8px 6px; border: 2px solid var(--vien); border-radius: 4px 4px 10px 10px; font-size: 0.72rem; font-weight: 800; color: #fff; transform: rotate(-3deg); }
.nt-uoc-bang.b0 { background: #e53935; } .nt-uoc-bang.b1 { background: #e09b12; transform: rotate(2deg); } .nt-uoc-bang.b2 { background: #d81b60; transform: rotate(-1deg); } .nt-uoc-bang.b3 { background: #c62828; transform: rotate(3deg); }
.nt-uoc-bang.la { box-shadow: 0 0 0 3px var(--vang); }
.nt-tin-ds li.bat { background: #fff6d8; }


/* ---------- Thi tran song dong: bau troi theo gio, cu dan di lai ---------- */
.nt-tt > :not(.nt-tt-troi) { position: relative; z-index: 1; }
.nt-tt-troi { position: absolute; left: 0; right: 0; top: 0; height: 262px; z-index: 0; overflow: hidden; pointer-events: none; }
.nt-tt-troi .may { position: absolute; display: block; width: 96px; height: 30px; border-radius: 30px; background: #fff; opacity: 0.92; animation: nt-may 70s linear infinite; }
.nt-tt-troi .may::before, .nt-tt-troi .may::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.nt-tt-troi .may::before { width: 44px; height: 44px; left: 14px; top: -22px; }
.nt-tt-troi .may::after { width: 34px; height: 34px; left: 48px; top: -14px; }
.nt-tt-troi .m1 { top: 42px; animation-delay: -10s; }
.nt-tt-troi .m2 { top: 96px; transform: scale(0.7); animation-duration: 95s; animation-delay: -55s; }
.nt-tt-troi .m3 { top: 150px; transform: scale(0.55); animation-duration: 120s; animation-delay: -30s; opacity: 0.8; }
@keyframes nt-may { from { left: -140px; } to { left: 100%; } }
.nt-tt-troi .chim { position: absolute; top: 70px; width: 48px; animation: nt-chim 26s linear infinite; }
@keyframes nt-chim { from { left: 105%; translate: 0 0; } 50% { translate: 0 -24px; } to { left: -60px; translate: 0 6px; } }
.nt-tt-troi .nui { position: absolute; left: 0; bottom: 0; width: 100%; height: 90px; }
.nt-tt-troi .sao, .nt-tt-troi .trang { display: none; position: absolute; border-radius: 50%; }
.nt-tt-troi .sao { width: 4px; height: 4px; background: #fff7c2; box-shadow: 0 0 6px #fff7c2; animation: nt-sao 2.6s ease-in-out infinite alternate; }
.nt-tt-troi .s1 { left: 8%; top: 30px; } .nt-tt-troi .s2 { left: 27%; top: 74px; animation-delay: -1s; } .nt-tt-troi .s3 { left: 62%; top: 40px; animation-delay: -2s; }
.nt-tt-troi .s4 { left: 80%; top: 96px; animation-delay: -0.5s; } .nt-tt-troi .s5 { left: 45%; top: 128px; animation-delay: -1.6s; }
.nt-tt-troi .trang { right: 9%; top: 26px; width: 46px; height: 46px; background: #fff3b0; box-shadow: 0 0 24px 6px rgba(255, 243, 176, 0.55), inset -10px -4px 0 #f1dc7a; }
@keyframes nt-sao { from { opacity: 0.35; } to { opacity: 1; } }
/* chieu ta */
.nt-tt.chieu { background: linear-gradient(180deg, #ffb36b 0, #ffd9a0 260px, #9fd86c 260px, #8fd35e 100%); }
.nt-tt.chieu .nt-tt-troi .may { background: #ffe9d1; }
.nt-tt.chieu .nt-tt-troi .may::before, .nt-tt.chieu .nt-tt-troi .may::after { background: #ffe9d1; }
/* buoi toi: sao, trang, den long sang */
.nt-tt.dem { background: linear-gradient(180deg, #16234a 0, #2f3f78 260px, #557f3e 260px, #4c7437 100%); }
.nt-tt.dem .nt-tt-troi .sao, .nt-tt.dem .nt-tt-troi .trang { display: block; }
.nt-tt.dem .nt-tt-troi .may { opacity: 0.18; }
.nt-tt.dem .nt-tt-troi .chim { display: none; }
.nt-tt.dem .nt-tt-troi .nui path:first-child { fill: #2f5e52; }
.nt-tt.dem .nt-tt-troi .nui path:nth-child(2) { fill: #26493f; }
.nt-tt.dem .nt-vd-den, .nt-tt.dem .nt-tt-trang, .nt-tt.dem .nt-tt-quang img { filter: drop-shadow(0 0 8px rgba(255, 196, 87, 0.85)); }
.nt-tt.dem .nt-pho { background: linear-gradient(180deg, transparent 6px, rgba(30, 24, 40, 0.42) 6px, rgba(30, 24, 40, 0.42) calc(100% - 6px), transparent calc(100% - 6px)); }
/* den long ven duong dung dua */
.nt-vd-den { transform-origin: 50% 0; animation: nt-dua 2.8s ease-in-out infinite alternate; }
@keyframes nt-dua { from { rotate: -5deg; } to { rotate: 5deg; } }
/* cu dan di tren pho */
.nt-dan { position: absolute; bottom: 1px; left: -60px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0; width: 46px; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; animation: nt-di-dao 34s linear infinite; }
.nt-dan.nguoc { animation-name: nt-di-nguoc; }
.nt-dan-nv { display: block; width: 30px; animation: nt-lac-buoc 0.45s ease-in-out infinite alternate; }
.nt-dan-nv svg { display: block; width: 100%; height: auto; }
.nt-dan-ten { max-width: 70px; padding: 0 5px; border-radius: 6px; background: rgba(255, 248, 236, 0.92); border: 1.5px solid var(--vien); font-size: 0.56rem; font-weight: 800; line-height: 1.3; color: var(--chu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; order: -1; }
.nt-dan-ten.ban { background: #fff3c4; }
.nt-dan.dung, .nt-dan.dung .nt-dan-nv { animation-play-state: paused; }
.nt-dan:focus-visible { outline: 3px solid var(--vang); outline-offset: 2px; border-radius: 8px; }
.nt-dan:hover .nt-dan-ten { background: var(--vang); }
/* nguoi dao quanh quang truong */
.nt-tt-quang { position: relative; }
.nt-quang-dan { position: absolute; inset: 0; pointer-events: none; }
.nt-quang-dan .nt-dan { pointer-events: auto; bottom: 4px; animation-name: nt-dao-qua; animation-timing-function: ease-in-out; animation-direction: alternate; }
.nt-quang-dan .nt-dan.nguoc { animation-direction: alternate-reverse; }
.nt-quang-dan .nt-dan-nv { width: 34px; }
@keyframes nt-dao-qua { 0%, 8% { left: 4%; } 46%, 54% { left: 46%; } 92%, 100% { left: calc(96% - 46px); } }
/* bong noi cua cu dan */
.nt-dan-noi { position: fixed; z-index: 70; display: flex; flex-direction: column; gap: 1px; padding: 8px 12px; border: 3px solid var(--vien); border-radius: 16px; background: #fff; box-shadow: var(--bong); pointer-events: none; animation: nt-noi-hien 0.18s ease-out; }
.nt-dan-noi[hidden] { display: none; }
.nt-dan-noi small { font-size: 0.72rem; font-weight: 700; color: var(--mo); }
.nt-dan-noi b { font-family: 'Noto Serif SC', serif; font-size: 1.15rem; color: var(--chu); }
.nt-dan-noi i { font-style: normal; font-size: 0.8rem; color: var(--do); font-weight: 700; }
.nt-dan-noi span { font-size: 0.8rem; color: var(--chu); }
@keyframes nt-noi-hien { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 640px) {
  .nt-dan { width: 38px; }
  .nt-dan-nv { width: 24px; }
  .nt-dan-ten { font-size: 0.5rem; max-width: 56px; }
  .nt-quang-dan .nt-dan-nv { width: 26px; }
}

.nt-pho-bien { z-index: 3; }

/* ---------- Thien tai 天灾 ---------- */
.nt-tai-thanh {
  position: fixed; top: 182px; right: clamp(10px, 2vw, 20px); z-index: 45;
  display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; max-width: min(320px, calc(100vw - 20px));
  background: #ffe0d6; border: 3px solid var(--vien); border-radius: 999px; box-shadow: var(--bong);
  font: inherit; color: var(--chu); cursor: pointer; text-align: left; animation: nt-tai-nhap 1.6s ease-in-out infinite;
}
.nt-tai-thanh[hidden] { display: none; }
.nt-tai-thanh b { font-size: 0.86rem; }
.nt-tai-thanh b [lang="zh"] { font-family: 'Noto Serif SC', serif; color: var(--do); }
.nt-tai-thanh small { font-size: 0.72rem; color: var(--mo); font-weight: 700; }
.nt-tai-ic { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: #fff; border: 2px solid var(--vien); font-size: 1.3rem; }
@keyframes nt-tai-nhap { 0%, 100% { box-shadow: var(--bong); } 50% { box-shadow: 0 4px 0 var(--vien), 0 0 0 6px rgba(229, 83, 61, 0.35); } }
body.dang-tham .nt-tai-thanh { display: none; }
@media (max-width: 420px) {
  .nt-tai-thanh { top: 140px; right: 8px; padding: 3px 9px 3px 3px; border-width: 2.5px; }
  .nt-tai-ic { width: 30px; height: 30px; font-size: 1.05rem; }
  .nt-tai-thanh b { font-size: 0.78rem; }
}
/* hieu ung tren man hinh nong trai */
.nt-tai-lop { position: fixed; inset: 0; z-index: 40; pointer-events: none; display: none; }
.nt-tai-lop.tai-gh, .nt-tai-lop.tai-sau, .nt-tai-lop.tai-mua, .nt-tai-lop.tai-ret { display: block; }
body.o-thi-tran .nt-tai-lop, body.co-bang .nt-tai-lop { display: none !important; }
.nt-tai-lop.tai-gh { background: radial-gradient(circle at 12% 8%, rgba(255, 196, 61, 0.45), transparent 45%), rgba(255, 170, 60, 0.12); }
.nt-mat-troi { position: absolute; left: 4%; top: 70px; width: 84px; height: 84px; border-radius: 50%; background: #ffcf3d; border: 3px solid var(--vien); box-shadow: 0 0 0 10px rgba(255, 207, 61, 0.35), 0 0 40px 18px rgba(255, 170, 40, 0.45); animation: nt-nang 3s ease-in-out infinite alternate; }
@keyframes nt-nang { from { transform: scale(0.94); } to { transform: scale(1.06); } }
.nt-khung.tai-gh .nt-dat { filter: sepia(0.35) saturate(0.75) brightness(1.04); }
.nt-tai-lop.tai-mua { background: linear-gradient(180deg, rgba(30, 44, 70, 0.38), rgba(40, 60, 90, 0.2)); overflow: hidden; }
@keyframes nt-mua { from { background-position: 0 0; } to { background-position: -40px 200px; } }
.nt-khung.tai-mua .nt-dat { filter: saturate(0.8) brightness(0.9) hue-rotate(-8deg); }
.nt-tai-lop.tai-ret { background: linear-gradient(180deg, rgba(170, 210, 255, 0.32), rgba(220, 238, 255, 0.12)); overflow: hidden; }
@keyframes nt-tuyet { from { background-position: 0 0, 20px 10px; } to { background-position: 30px 160px, 0 110px; } }
.nt-khung.tai-ret .nt-dat { filter: saturate(0.7) brightness(1.05) hue-rotate(10deg); }
.nt-sau { position: absolute; width: 22px; height: 14px; border-radius: 10px; background: #7cb342; border: 2px solid var(--vien); animation: nt-bo 2.4s ease-in-out infinite; }
.nt-sau::before { content: ''; position: absolute; right: -6px; top: 1px; width: 10px; height: 10px; border-radius: 50%; background: #558b2f; border: 2px solid var(--vien); }
.nt-sau::after { content: ''; position: absolute; left: 3px; top: 3px; width: 10px; height: 3px; border-radius: 2px; background: #c5e1a5; }
@keyframes nt-bo { 0%, 100% { translate: 0 0; } 25% { translate: 10px -3px; } 50% { translate: 18px 0; } 75% { translate: 8px 3px; } }
/* bang chong thien tai */
.nt-tai-dau { display: flex; gap: 12px; align-items: center; padding: 12px; border: 3px solid var(--vien); border-radius: 18px; background: #ffe9e2; box-shadow: var(--bong); margin-bottom: 10px; }
.nt-tai-dau.tai-mua { background: #e3eefc; } .nt-tai-dau.tai-ret { background: #e6f4ff; } .nt-tai-dau.tai-sau { background: #edf7df; }
.nt-tai-dau > div { flex: 1; min-width: 0; }
.nt-tai-dau h3 { margin: 2px 0; font-size: 1.1rem; }
.nt-tai-dau h3 [lang="zh"] { font-family: 'Noto Serif SC', serif; font-size: 1.4rem; color: var(--do); }
.nt-tai-to { font-size: 2.6rem; flex: none; }
.nt-tai-hieu { margin: 2px 0 0; font-weight: 700; font-size: 0.88rem; }
.nt-tai-viec { margin: 10px 0 4px; font-size: 0.92rem; }
.nt-tai-viec [lang="zh"] { font-family: 'Noto Serif SC', serif; font-weight: 700; }
.nt-tai-o { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.nt-tai-o span { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 2px dashed var(--mo); border-radius: 10px; font-size: 1.3rem; opacity: 0.35; filter: grayscale(1); }
.nt-tai-o span.xong { opacity: 1; filter: none; border-style: solid; border-color: var(--xanh-dam); background: #e8f8df; }
.nt-tai-qua { font-size: 3rem; }


/* ---------- Tuyet roi that (ret dam) ---------- */
.nt-tuyet-hat { position: absolute; top: -20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, 0.9); opacity: 0.95; font-style: normal; color: #fff; line-height: 1;
  animation-name: nt-tuyet-roi, nt-tuyet-lac; animation-timing-function: linear, ease-in-out; animation-iteration-count: infinite; animation-direction: normal, alternate; }
.nt-tuyet-hat.bong-tuyet { width: auto !important; height: auto !important; background: none; box-shadow: none; font-size: 22px; text-shadow: 0 0 6px rgba(120, 170, 230, 0.9); }
/* 2026-11-20 (lag tren dien thoai): roi bang transform thay vi top -> khong tinh lai bo cuc moi khung hinh */
@keyframes nt-tuyet-roi { from { transform: translateY(-24px); } to { transform: translateY(106vh); } }
@keyframes nt-tuyet-lac { from { translate: calc(var(--lac) * -1) 0; rotate: -20deg; } to { translate: var(--lac) 0; rotate: 20deg; } }

/* ---------- Canh vat bay luon: may, chim, buom ---------- */
.nt-canh { position: fixed; inset: 0; z-index: 39; pointer-events: none; overflow: hidden; }
body.o-thi-tran .nt-canh { z-index: 49; }
body.o-thi-tran .nt-canh-may { display: none; } /* thi tran da co may rieng tren bau troi */
.nt-canh-may { position: absolute; left: -220px; animation: nt-may-qua 75s linear infinite; }
.nt-canh-may.nguoc { animation-name: nt-may-ve; }
.nt-canh-may .may { position: relative; display: block; width: 130px; height: 40px; border-radius: 40px; background: rgba(255, 255, 255, 0.7); }
.nt-canh-may .may::before, .nt-canh-may .may::after { content: ''; position: absolute; border-radius: 50%; background: inherit; }
.nt-canh-may .may::before { width: 60px; height: 60px; left: 18px; top: -30px; }
.nt-canh-may .may::after { width: 46px; height: 46px; left: 64px; top: -20px; }
.nt-canh-may .bong { position: absolute; left: 40px; top: 150px; width: 150px; height: 50px; border-radius: 50%; background: rgba(43, 29, 58, 0.09); filter: blur(6px); }
.nt-canh-may.m1 { top: 12%; }
.nt-canh-may.m2 { top: 34%; transform: scale(0.75); animation-duration: 95s; animation-delay: -40s; }
.nt-canh-may.m3 { top: 56%; transform: scale(0.9); animation-duration: 110s; animation-delay: -70s; }
.nt-canh-may.m4 { top: 74%; transform: scale(0.65); animation-duration: 85s; animation-delay: -15s; }
@keyframes nt-may-qua { from { left: -220px; } to { left: 100%; } }
@keyframes nt-may-ve { from { left: 100%; } to { left: -220px; } }
.nt-canh-chim { position: absolute; width: 34px; left: 105%; animation: nt-chim-qua 24s linear infinite; }
.nt-canh-chim.c1 { top: 16%; }
.nt-canh-chim.c2 { top: 21%; width: 26px; animation-delay: -1.2s; }
.nt-canh-chim.c3 { top: 46%; width: 30px; animation-duration: 31s; animation-delay: -14s; }
.nt-chim-canh { transform-box: fill-box; transform-origin: 50% 80%; animation: nt-vo-canh 0.36s ease-in-out infinite alternate; }
@keyframes nt-vo-canh { from { transform: scaleY(1); } to { transform: scaleY(-0.55); } }
@keyframes nt-chim-qua { 0% { left: 105%; translate: 0 0; } 18% { translate: 0 -18px; } 36% { translate: 0 10px; } 55% { left: -12%; translate: 0 -8px; } 100% { left: -12%; } }
.nt-canh-buom { position: absolute; left: 0; top: 0; width: 34px; animation: nt-buom-1 28s ease-in-out infinite; }
.nt-canh-buom svg { display: block; width: 100%; height: auto; }
.nt-buom-canh { transform-box: view-box; transform-origin: 50% 50%; animation: nt-dap-canh 0.22s ease-in-out infinite alternate; }
@keyframes nt-dap-canh { from { transform: scaleX(1); } to { transform: scaleX(0.25); } }
.nt-canh-buom.b2 { width: 24px; animation-name: nt-buom-2; animation-duration: 34s; animation-delay: -9s; }
.nt-canh-buom.b3 { width: 26px; animation-name: nt-buom-3; animation-duration: 30s; animation-delay: -17s; }
.nt-canh-buom.b4 { width: 22px; animation-name: nt-buom-1; animation-duration: 38s; animation-delay: -24s; animation-direction: reverse; }
.nt-canh-buom.b5 { width: 28px; animation-name: nt-buom-2; animation-duration: 26s; animation-delay: -4s; animation-direction: reverse; }
@keyframes nt-buom-1 { 0% { translate: 8vw 72vh; rotate: 10deg; } 15% { translate: 22vw 58vh; rotate: -12deg; } 30% { translate: 38vw 66vh; rotate: 8deg; } 45% { translate: 52vw 48vh; rotate: -6deg; } 60% { translate: 70vw 56vh; rotate: 14deg; } 75% { translate: 58vw 38vh; rotate: -10deg; } 90% { translate: 30vw 44vh; rotate: 6deg; } 100% { translate: 8vw 72vh; rotate: 10deg; } }
@keyframes nt-buom-2 { 0% { translate: 88vw 30vh; rotate: -8deg; } 20% { translate: 72vw 44vh; rotate: 12deg; } 40% { translate: 60vw 28vh; rotate: -10deg; } 60% { translate: 44vw 40vh; rotate: 8deg; } 80% { translate: 66vw 62vh; rotate: -14deg; } 100% { translate: 88vw 30vh; rotate: -8deg; } }
@keyframes nt-buom-3 { 0% { translate: 40vw 80vh; rotate: 6deg; } 25% { translate: 18vw 66vh; rotate: -12deg; } 50% { translate: 30vw 50vh; rotate: 10deg; } 75% { translate: 54vw 70vh; rotate: -6deg; } 100% { translate: 40vw 80vh; rotate: 6deg; } }
/* thoi tiet xau: buom, chim tron di; mua / ret thi may xam lai */
body[data-tai="mua"] .nt-canh-buom, body[data-tai="mua"] .nt-canh-chim, body[data-tai="ret"] .nt-canh-buom, body[data-tai="ret"] .nt-canh-chim { display: none; }
body[data-tai="mua"] .nt-canh-may .may { background: rgba(120, 130, 150, 0.85); }
body[data-tai="gh"] .nt-canh-may { display: none; }
body.o-thi-tran[data-tai] .nt-canh-buom, body.o-thi-tran[data-tai] .nt-canh-chim { display: block; } /* thi tran khong bi thien tai cua rieng nong trai */
body.co-bang .nt-canh { display: none; }
/* thi tran: may bay ca hai chieu */
.nt-tt-troi .m2 { animation-direction: reverse; }
@media (max-width: 640px) {
  .nt-canh-may .may { width: 90px; height: 28px; }
  .nt-canh-may .may::before { width: 42px; height: 42px; left: 12px; top: -21px; }
  .nt-canh-may .may::after { width: 32px; height: 32px; left: 44px; top: -14px; }
  .nt-canh-buom { width: 28px; }
}


/* ---------- Ban dem 晚上 + dom dom 萤火虫 (theo gio Viet Nam) ---------- */
body.nt.nt-dem { background: linear-gradient(180deg, #0f1b3d 0%, #26386e 38%, #2f4b2c 38.1%, #22381f 100%); }
body.nt.nt-chieu { background: linear-gradient(180deg, #ff9f5a 0%, #ffd29a 38%, #b8d97f 38.1%, #86b955 100%); }
body.nt-dem .nt-dat { background-color: #567f49; background-blend-mode: multiply; box-shadow: 0 0 0 10px #3b6430, 0 0 0 14px var(--vien), 0 18px 0 14px rgba(0, 0, 0, 0.45); }
body.nt-dem .nt-vat { filter: brightness(0.7) saturate(0.85); }
body.nt-chieu .nt-vat { filter: sepia(0.18) saturate(1.08); }
/* den long va nha: sang am ap */
body.nt-dem .nt-vat:is(.nt-k-den-long, .nt-k-den-phuc, .nt-k-lh-gongdeng, .nt-k-lh-tuzideng, .nt-k-lh-bianpao) { filter: brightness(1.08) drop-shadow(0 0 14px rgba(255, 200, 87, 0.95)); }
body.nt-dem .nt-vat.nt-k-nha { filter: brightness(0.85) drop-shadow(0 0 12px rgba(255, 214, 120, 0.7)); }
/* vat nuoi ngu: z z */
body.nt-dem .nt-vat:is(.nt-k-ga, .nt-k-vit, .nt-k-bo, .nt-k-cuu)::after {
  content: 'z z'; position: absolute; right: 2px; top: -4px; font-size: 0.8rem; font-weight: 900; letter-spacing: 2px; color: #e8f0ff; text-shadow: 0 1px 0 var(--vien); animation: nt-ngu 2.4s ease-in-out infinite;
}
@keyframes nt-ngu { 0% { opacity: 0; translate: 0 6px; } 40% { opacity: 1; } 100% { opacity: 0; translate: 6px -10px; } }
/* ban dem: chim, buom di ngu; may mo di */
body.nt-dem .nt-canh-buom, body.nt-dem .nt-canh-chim { display: none !important; }
body.nt-dem .nt-canh-may .may { background: rgba(190, 200, 235, 0.22); }
body.nt-dem .nt-canh-may .bong { display: none; }
/* trang, sao */
.nt-dem-trang, .nt-dem-sao, .nt-dom { display: none; position: absolute; }
body.nt-dem .nt-dem-trang, body.nt-dem .nt-dem-sao, body.nt-dem .nt-dom { display: block; }
.nt-dem-trang { left: 26%; top: 66px; width: 44px; height: 44px; border-radius: 50%; background: #fff3b0; box-shadow: 0 0 26px 8px rgba(255, 243, 176, 0.5), inset -12px -5px 0 #f1dc7a; }
.nt-dem-sao { width: 4px; height: 4px; border-radius: 50%; background: #fff7c2; box-shadow: 0 0 6px #fff7c2; animation: nt-sao 2.6s ease-in-out infinite alternate; }
body.o-thi-tran .nt-dem-trang, body.o-thi-tran .nt-dem-sao { display: none !important; } /* thi tran co trang sao rieng */
/* dom dom: cham sang vang xanh, bay vong vo va nhap nhay */
.nt-dom { width: 7px; height: 7px; border-radius: 50%; background: #f4ff9c; box-shadow: 0 0 8px 3px rgba(214, 255, 102, 0.85), 0 0 18px 8px rgba(214, 255, 102, 0.35);
  animation-name: nt-dom-bay-0, nt-dom-nhay; animation-timing-function: ease-in-out, ease-in-out; animation-iteration-count: infinite, infinite; animation-direction: alternate, alternate; }
.nt-dom.d1 { animation-name: nt-dom-bay-1, nt-dom-nhay; width: 6px; height: 6px; }
.nt-dom.d2 { animation-name: nt-dom-bay-2, nt-dom-nhay; width: 5px; height: 5px; }
@keyframes nt-dom-bay-0 { 0% { translate: 0 0; } 33% { translate: 34px -22px; } 66% { translate: -18px -40px; } 100% { translate: 22px 16px; } }
@keyframes nt-dom-bay-1 { 0% { translate: 0 0; } 33% { translate: -30px 18px; } 66% { translate: 16px 34px; } 100% { translate: -24px -20px; } }
@keyframes nt-dom-bay-2 { 0% { translate: 0 0; } 50% { translate: 40px 24px; } 100% { translate: -36px 10px; } }
@keyframes nt-dom-nhay { 0%, 30% { opacity: 0.15; } 60%, 100% { opacity: 1; } }
/* mua bao / ret dam: dom dom tron mat */
body[data-tai="mua"] .nt-dom, body[data-tai="ret"] .nt-dom { display: none !important; }
body.o-thi-tran[data-tai] .nt-dom { display: block; }
body.o-thi-tran:not(.nt-dem) .nt-dom { display: none !important; }

/* ---------- Mua roi that (暴雨) ---------- */
.nt-hat-mua { position: absolute; top: -40px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, rgba(235, 245, 255, 0), rgba(240, 248, 255, 1)); box-shadow: 0 0 2px rgba(255, 255, 255, 0.6); rotate: 12deg; animation: nt-mua-roi 0.7s linear infinite; }
@keyframes nt-mua-roi { from { top: -40px; translate: 0 0; } to { top: 104%; translate: -60px 0; } }
.nt-vung { position: absolute; width: 34px; height: 12px; margin-left: -17px; border-radius: 50%; border: 2.5px solid rgba(240, 248, 255, 0.95); box-shadow: 0 0 4px rgba(255, 255, 255, 0.5); opacity: 0; animation: nt-vung 1.4s ease-out infinite; }
@keyframes nt-vung { 0% { transform: scale(0.2); opacity: 0.9; } 70% { opacity: 0.4; } 100% { transform: scale(1.6); opacity: 0; } }
.nt-chop { position: absolute; inset: 0; background: rgba(240, 246, 255, 0.85); opacity: 0; animation: nt-chop 11s linear infinite; }
@keyframes nt-chop { 0%, 86%, 89%, 92%, 100% { opacity: 0; } 87% { opacity: 0.7; } 90% { opacity: 0.45; } }
.nt-khung.tai-mua .nt-dat { filter: saturate(0.75) brightness(0.82) hue-rotate(-6deg); }


/* May chi bay tren bau troi (phan troi xanh phia tren), nam sau trang trai */
.nt-troi-may { position: fixed; left: 0; right: 0; top: 0; height: 38vh; z-index: -1; pointer-events: none; overflow: hidden; }
.nt-troi-may .nt-canh-may.m1 { top: 10%; }
.nt-troi-may .nt-canh-may.m2 { top: 34%; }
.nt-troi-may .nt-canh-may.m3 { top: 56%; }
.nt-troi-may .nt-canh-may.m4 { top: 22%; }
.nt-troi-may .nt-canh-may .may { background: rgba(255, 255, 255, 0.92); }
body.nt-dem .nt-troi-may .nt-canh-may .may { background: rgba(190, 200, 235, 0.22); }
body.nt-chieu .nt-troi-may .nt-canh-may .may { background: rgba(255, 233, 209, 0.92); }
body[data-tai="mua"] .nt-troi-may .nt-canh-may .may { background: rgba(120, 130, 150, 0.9); }


/* ---------- Keo tha do vat tren nong trai ---------- */
body:not(.dang-tham):not(.dang-dat) .nt-dat .nt-vat { cursor: grab; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.nt-vat.dang-keo-vat { z-index: 9999 !important; cursor: grabbing; filter: drop-shadow(0 10px 8px rgba(43, 29, 58, 0.35)); }
.nt-vat.dang-keo-vat .nt-hinh { transform: scale(1.08); }
body.keo-vat, body.keo-vat .nt-khung { cursor: grabbing; }
.nt-dich { position: absolute; z-index: 9998; pointer-events: none; border: 4px dashed #fff; border-radius: 12px; background: rgba(76, 175, 80, 0.35); box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.6); }
.nt-dich.sai { background: rgba(229, 83, 61, 0.35); box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.7); }

/* ---------- Hieu ung thu hoach ---------- */
.nt-no { position: fixed; z-index: 60; width: 0; height: 0; pointer-events: none; }
.nt-no-vong { position: absolute; left: -28px; top: -28px; width: 56px; height: 56px; border-radius: 50%; border: 4px solid #fff3b0; box-shadow: 0 0 14px 4px rgba(255, 214, 90, 0.7); animation: nt-no-vong 0.6s ease-out forwards; }
@keyframes nt-no-vong { from { transform: scale(0.2); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.nt-no-hat { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; animation: nt-no-hat 0.75s cubic-bezier(0.2, 0.7, 0.4, 1) forwards; }
.nt-no-hat.sao { background: #ffd23d; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.nt-no-hat.la { width: 10px; height: 14px; border-radius: 0 80% 0 80%; background: #6cc04a; border: 1.5px solid #2e7d32; }
.nt-no-hat.cham { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff7c2; }
@keyframes nt-no-hat { 0% { transform: translate(0, 0) rotate(0) scale(0.4); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(var(--g)) scale(1); opacity: 0; } }
.nt-bay-sp { position: fixed; left: 0; top: 0; z-index: 61; pointer-events: none; filter: drop-shadow(0 3px 2px rgba(43, 29, 58, 0.35)); }
.nt-bay-sp img { display: block; width: 40px; height: 40px; }
.nt-cu.nt-kho-nhan img { animation: nt-kho-nhan 0.5s cubic-bezier(0.34, 1.6, 0.64, 1); }
@keyframes nt-kho-nhan { 0% { transform: scale(1); } 40% { transform: scale(1.3) rotate(-6deg); } 100% { transform: scale(1); } }
.nt-cu { position: relative; }
.nt-kho-them { position: absolute; left: 50%; top: -6px; padding: 1px 8px; border: 2px solid var(--vien); border-radius: 999px; background: var(--vang); font-weight: 900; font-size: 0.82rem; color: var(--chu); pointer-events: none; animation: nt-kho-them 1.2s ease-out forwards; }
@keyframes nt-kho-them { 0% { transform: translate(-50%, 6px) scale(0.6); opacity: 0; } 20% { transform: translate(-50%, -8px) scale(1.1); opacity: 1; } 100% { transform: translate(-50%, -30px) scale(1); opacity: 0; } }

/* ---------- Chieu sau 2D: bong do, cay dung dua, vat nuoi tho ---------- */
/* bong do nhe ve phia sau-phai (anh sang tu goc tren trai) cho moi do vat dung — ruong, duong di nam phang thi khong */
.nt-vat:not(.phang):not(.nt-k-o) .nt-hinh { filter: drop-shadow(3px 5px 2px rgba(43, 29, 58, 0.22)); }
/* cay, hoa, tre, den long dung dua theo gio (rotate rieng nen khong de len hieu ung re chuot) */
.nt-vat:is(.nt-k-tung, .nt-k-truc, .nt-k-cay-dao, .nt-k-cay-cam, .nt-k-cay-lon, .nt-k-bu-nhin, .nt-k-hoa-do, .nt-k-hoa-vang, .nt-k-hoa-tim, .nt-k-chau-hoa) .nt-hinh {
  transform-origin: 50% 88%; animation: nt-gio 3.4s ease-in-out infinite alternate; animation-delay: var(--lech, 0s);
}
.nt-vat:is(.nt-k-den-long, .nt-k-den-phuc, .nt-k-lh-gongdeng, .nt-k-lh-bianpao, .nt-k-lh-tuzideng) .nt-hinh {
  transform-origin: 50% 15%; animation: nt-gio-den 2.6s ease-in-out infinite alternate; animation-delay: var(--lech, 0s);
}
/* cay dang lon tren ruong cung rung rinh nhe */
.nt-vat.nt-k-o.tt-lon .nt-hinh { transform-origin: 50% 85%; animation: nt-gio-ruong 2.8s ease-in-out infinite alternate; animation-delay: var(--lech, 0s); }
@keyframes nt-gio { from { rotate: -2.2deg; } to { rotate: 2.2deg; } }
@keyframes nt-gio-den { from { rotate: -4deg; } to { rotate: 4deg; } }
@keyframes nt-gio-ruong { from { rotate: -1deg; } to { rotate: 1deg; } }
/* vat nuoi "tho" nhe khi dang no / dang doi (con vat da co san pham thi nhun nhay nhu cu) */
.nt-vat:is(.nt-k-ga, .nt-k-vit, .nt-k-bo, .nt-k-cuu, .nt-k-ong):is(.tt-lam, .tt-doi) .nt-hinh {
  transform-origin: 50% 90%; animation: nt-tho 1.9s ease-in-out infinite alternate; animation-delay: var(--lech, 0s);
}
@keyframes nt-tho { from { scale: 1 1; } to { scale: 1.03 1.05; } }

/* ---------- Cung - cau: dac san, gia theo cung - cau, lop can gi ---------- */
.nt-hs, .nt-ds-nhan, .nt-can-nhan { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; font-size: 0.68rem; font-weight: 800; line-height: 1.5; white-space: nowrap; border: 1.5px solid var(--vien); }
.nt-hs.len { background: #ffd6cf; color: #b3261e; }
.nt-hs.xuong { background: #dfe7f2; color: #3b5b8c; }
.nt-ds-nhan { background: var(--vang); color: var(--chu); }
.nt-can-nhan { background: #fff1e6; color: #c2410c; }
.nt-hat-nhan { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; margin-top: 2px; }
.nt-hat-nhan:empty { display: none; }
.nt-don.nt-don-ban { border-color: var(--vang-dam); background: #fffaf0; }
.nt-don-ban-chu { margin: 0 0 6px; font-size: 0.82rem; font-weight: 600; color: var(--chu); }
.nt-ds-the { display: flex; gap: 12px; align-items: center; padding: 12px; margin-bottom: 10px; border: 3px solid var(--vien); border-radius: 18px; background: #fff6d8; box-shadow: var(--bong); }
.nt-ds-the > img { width: 64px; height: 64px; flex: none; }
.nt-ds-the h3 { margin: 2px 0; font-size: 1.05rem; }
.nt-ds-the h3 [lang="zh"] { font-family: 'Noto Serif SC', serif; color: var(--do); font-size: 1.3rem; }
.nt-hs-len-chu { color: #b3261e; } .nt-hs-xuong-chu { color: #3b5b8c; }
.nt-canlop { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nt-canlop li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border: 2px solid var(--kem-2); border-radius: 14px; background: #fff; }
.nt-canlop li.co-can { border-color: #ffb48a; background: #fffaf5; }
.nt-canlop li > img { width: 40px; height: 40px; flex: none; }
.nt-canlop-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nt-canlop-t b { font-size: 0.9rem; }
.nt-canlop-t b [lang="zh"] { font-family: 'Noto Serif SC', serif; }
.nt-canlop-t small { font-size: 0.76rem; color: var(--mo); font-weight: 600; }
.nt-canlop-gia { flex: none; display: flex; flex-direction: column; align-items: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.nt-canlop-gia img { width: 18px; height: 18px; }
.nt-canlop-gia small { font-size: 0.68rem; color: var(--mo); }

/* ---------- Ho cau ca 钓鱼湖 ---------- */
.nt-hc-nut { top: 228px; background: #e6f6ff; }
.nt-hc-nut .nt-hc-ic { background: #fff; padding: 2px; }
.nt-hc-nut .nt-hc-ic svg { width: 100%; height: 100%; }
.nt-hc-nut.co-luot .nt-muc-chu small { color: #0b6ea8; font-weight: 800; }
.nt-tai-thanh { top: 280px; }
@media (max-width: 420px) { .nt-hc-nut { top: 186px; } .nt-tai-thanh { top: 230px; } }
.nt-hc {
  position: fixed; inset: 0; z-index: 48; overflow: auto;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 78px 14px 20px;
  background: linear-gradient(180deg, #8fd3f7 0, #c9ecfb 190px, #a6dc78 190px, #8fd35e 100%);
}
.nt-hc[hidden] { display: none; }
body.o-ho-cau .nt-duoi, body.o-ho-cau .nt-zoom, body.o-ho-cau .nt-thu-het, body.o-ho-cau .nt-chuhan-nut, body.o-ho-cau .nt-muc, body.o-ho-cau .nt-tai-thanh { display: none !important; }
.nt-hc-dau { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.nt-hc-bien { background: #3d8fc4; }
.nt-hc-bien p [lang="zh"] { font-family: 'Noto Serif SC', serif; font-weight: 900; }
.nt-hc-canh { position: relative; width: min(920px, 100%); padding-bottom: 54px; }
.nt-hc-ho {
  position: relative; width: 100%; height: clamp(230px, 50vh, 470px);
  border: 5px solid #6b4a2b; border-radius: 46% 44% 40% 42% / 52% 50% 44% 46%;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(255, 255, 255, .35) 0 8%, transparent 9%),
    radial-gradient(ellipse at 72% 62%, rgba(255, 255, 255, .22) 0 6%, transparent 7%),
    radial-gradient(ellipse at 50% 45%, #6fd0f3 0, #3fa9dc 55%, #2a86bd 100%);
  box-shadow: 0 0 0 10px #c9a66b, 0 0 0 14px var(--vien), 0 14px 0 14px rgba(43, 29, 58, .25), inset 0 10px 24px rgba(10, 60, 110, .35);
  overflow: hidden;
}
.nt-hc-ho::before, .nt-hc-ho::after {
  content: ''; position: absolute; border: 3px solid rgba(255, 255, 255, .45); border-radius: 50%; pointer-events: none;
  animation: nt-hc-gon 5s ease-out infinite;
}
.nt-hc-ho::before { left: 18%; top: 58%; width: 60px; height: 22px; }
.nt-hc-ho::after { left: 66%; top: 24%; width: 46px; height: 18px; animation-delay: 2.4s; }
@keyframes nt-hc-gon { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
.nt-hc-tai { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #fff; font-weight: 800; }
.nt-hc-sen { position: absolute; width: 54px; height: 40px; border-radius: 50%; background: #5cb85c; border: 3px solid #2f6b2f; pointer-events: none; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 52%, 50% 50%, 0 46%); }
.nt-hc-sen.s1 { left: 6%; top: 12%; transform: rotate(18deg); }
.nt-hc-sen.s2 { right: 9%; top: 66%; transform: rotate(-30deg) scale(.85); }
.nt-hc-sen.s3 { left: 40%; top: 78%; transform: rotate(60deg) scale(.7); }
.nt-hc-sen.s1::after { content: ''; position: absolute; left: 30%; top: 20%; width: 14px; height: 14px; border-radius: 50% 50% 50% 0; background: #ff9ec4; border: 2px solid #b2456e; transform: rotate(-45deg); }
.nt-hc-gon { position: absolute; width: 30px; height: 10px; border-top: 3px solid rgba(255, 255, 255, .55); border-radius: 50%; pointer-events: none; animation: nt-hc-troi 6s ease-in-out infinite alternate; }
.nt-hc-gon.g1 { left: 24%; top: 32%; } .nt-hc-gon.g2 { left: 58%; top: 48%; animation-delay: -2s; }
.nt-hc-gon.g3 { left: 80%; top: 30%; animation-delay: -4s; } .nt-hc-gon.g4 { left: 12%; top: 70%; animation-delay: -1s; }
@keyframes nt-hc-troi { to { transform: translateX(16px); } }
.nt-hc-co { position: absolute; bottom: -4px; width: 46px; height: 70px; pointer-events: none;
  background: linear-gradient(100deg, transparent 0 30%, #3f8f3a 30% 38%, transparent 38%), linear-gradient(80deg, transparent 0 52%, #4ea548 52% 60%, transparent 60%), linear-gradient(95deg, transparent 0 68%, #357a31 68% 76%, transparent 76%); }
.nt-hc-co.c1 { left: 2%; } .nt-hc-co.c2 { right: 3%; transform: scaleX(-1); }
.nt-hc-da { position: absolute; width: 40px; height: 26px; border-radius: 50% 50% 40% 40%; background: #9e9a94; border: 3px solid var(--vien); pointer-events: none; }
.nt-hc-da.d1 { right: 4%; top: 8%; } .nt-hc-da.d2 { left: 3%; top: 44%; width: 28px; height: 18px; }
/* bong ca: to dan theo bac; boi lung lieng quanh cho */
.nt-hc-ca {
  position: absolute; z-index: 2; width: var(--w, 44px); aspect-ratio: 2; margin: 0; padding: 0;
  transform: translate(-50%, -50%); border: 0; background: none; cursor: pointer;
  animation: nt-hc-boi var(--boi, 8s) ease-in-out infinite; animation-delay: var(--lech, 0s);
}
.nt-hc-ca svg { width: 100%; height: 100%; overflow: visible; display: block; }
.nt-hc-bong-than { fill: rgba(18, 52, 86, .5); }
.nt-hc-bong-anh { fill: none; stroke: rgba(255, 214, 90, .85); stroke-width: 5; stroke-linecap: round; }
.nt-hc-ca.b1 { --w: clamp(30px, 5vw, 42px); }
.nt-hc-ca.b2 { --w: clamp(42px, 7vw, 60px); }
.nt-hc-ca.b3 { --w: clamp(56px, 9.5vw, 82px); }
.nt-hc-ca.b4 { --w: clamp(68px, 11.5vw, 100px); }
.nt-hc-ca.b4 .nt-hc-bong-than { fill: rgba(150, 40, 20, .5); }
.nt-hc-ca.b5 { --w: clamp(84px, 14vw, 128px); filter: drop-shadow(0 0 8px rgba(255, 215, 64, .9)); }
.nt-hc-ca.b5 .nt-hc-bong-than { fill: rgba(170, 120, 0, .6); }
.nt-hc-ca:hover .nt-hc-bong-than, .nt-hc-ca:focus-visible .nt-hc-bong-than { fill: rgba(18, 52, 86, .72); }
.nt-hc-ca:focus-visible { outline: 3px solid #fff; outline-offset: 4px; border-radius: 40%; }
.nt-hc-ca.chon { animation-play-state: paused; }
.nt-hc-ca.chon svg { filter: drop-shadow(0 0 0 #fff) drop-shadow(0 0 6px #fff); }
.nt-hc-ca.can { animation: nt-hc-giay 0.35s ease-in-out infinite; }
.nt-hc-lap { position: absolute; right: 18%; top: -10%; width: 14px; height: 14px; background: #ffe066; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: nt-hc-lap 1.4s ease-in-out infinite; }
@keyframes nt-hc-lap { 50% { transform: scale(.4) rotate(45deg); opacity: .5; } }
@keyframes nt-hc-boi {
  0%, 100% { transform: translate(-50%, -50%) translateX(0) scaleX(1); }
  45% { transform: translate(-50%, -50%) translateX(26px) translateY(-6px) scaleX(1); }
  50% { transform: translate(-50%, -50%) translateX(26px) translateY(-6px) scaleX(-1); }
  95% { transform: translate(-50%, -50%) translateX(0) scaleX(-1); }
}
@keyframes nt-hc-giay { 0%, 100% { transform: translate(-50%, -50%) rotate(-6deg); } 50% { transform: translate(-50%, -50%) rotate(6deg); } }
.nt-hc-day { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.nt-hc-day path { fill: none; stroke: #fff; stroke-width: 1.5; stroke-dasharray: 3 0; }
.nt-hc-phao { position: absolute; z-index: 4; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2.5px solid var(--vien); background: linear-gradient(180deg, #ef4444 0 50%, #fff 50%); pointer-events: none; animation: nt-hc-noi 1.2s ease-in-out infinite; }
.nt-hc-phao.can { animation: nt-hc-chim .5s ease-in-out infinite; }
@keyframes nt-hc-noi { 50% { transform: translateY(-3px); } }
@keyframes nt-hc-chim { 50% { transform: translateY(6px) scale(.85); } }
/* ben cau go + nhan vat cam can */
.nt-hc-ben { position: absolute; left: 50%; bottom: 0; width: 110px; height: 78px; transform: translateX(-50%); z-index: 3;
  background: repeating-linear-gradient(90deg, #b57a45 0 20px, #9c6436 20px 22px); border: 4px solid var(--vien); border-radius: 10px 10px 6px 6px; box-shadow: 0 5px 0 var(--vien); }
.nt-hc-nv { position: absolute; left: 50%; bottom: 18px; width: 70px; transform: translateX(-50%); }
.nt-hc-nv .nv-svg, .nt-hc-nv svg { width: 100%; height: auto; display: block; }
.nt-hc-can { position: absolute; left: 62%; top: -14px; width: 4px; height: 62px; background: #6b4a2b; border-radius: 3px; transform-origin: bottom center; transform: rotate(28deg); }
/* the duoi ho: chon ca / cau hoi / ket qua / bo suu tap */
.nt-hc-the { width: min(720px, 100%); padding: 12px 14px; background: var(--kem); border: 3px solid var(--vien); border-radius: 20px; box-shadow: var(--bong); }
.nt-hc-the:empty { display: none; }
.nt-hc-goi p { margin: 0 0 8px; }
.nt-hc-bac { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.nt-hc-bac > span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 12px; background: #e9f6fd; text-align: center; }
.nt-hc-bac b { font-size: 0.8rem; line-height: 1.2; }
.nt-hc-bac small { font-size: 0.7rem; color: var(--mo); font-weight: 700; }
.nt-hc-mau { display: block; width: 44px; aspect-ratio: 2; }
.nt-hc-mau svg { width: 100%; height: 100%; display: block; }
.nt-hc-mau.b1 { width: 26px; } .nt-hc-mau.b2 { width: 34px; } .nt-hc-mau.b3 { width: 42px; } .nt-hc-mau.b4 { width: 50px; } .nt-hc-mau.b5 { width: 58px; }
.nt-hc-mau.b4 .nt-hc-bong-than { fill: rgba(150, 40, 20, .55); }
.nt-hc-mau.b5 .nt-hc-bong-than { fill: rgba(190, 140, 0, .75); }
.nt-hc-mau.to { width: 84px; flex: none; }
.nt-hc-sao { color: #e09b12; letter-spacing: 1px; font-size: 0.85rem; }
.nt-hc-chon { display: flex; align-items: center; gap: 12px; }
.nt-hc-chon-chu { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nt-hc-chon-chu b [lang="zh"], .nt-hc-chon-chu small [lang="zh"] { font-family: 'Noto Serif SC', serif; }
.nt-hc-chon-chu small { color: var(--mo); font-weight: 600; }
.nt-hc-chon-nut { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.nt-hc-chon-nut small { font-size: 0.75rem; color: var(--mo); font-weight: 700; }
.nt-hc-cho { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; }
.nt-hc-cho small { font-family: 'Noto Serif SC', serif; color: var(--mo); }
.nt-hc-cho-phao { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--vien); background: linear-gradient(180deg, #ef4444 0 50%, #fff 50%); animation: nt-hc-noi 1s ease-in-out infinite; }
.nt-hc-cau .nt-ch-dau { justify-content: space-between; }
.nt-hc-gio { height: 10px; margin: 4px 0 6px; border: 2px solid var(--vien); border-radius: 999px; background: #fff; overflow: hidden; }
.nt-hc-gio i { display: block; height: 100%; width: 100%; background: #4caf50; transition: width .2s linear; }
.nt-hc-gio i.gap { background: var(--do); }
.nt-hc-kq { display: flex; align-items: center; gap: 14px; }
.nt-hc-kq-hinh { flex: none; width: 110px; height: 110px; display: grid; place-items: center; border-radius: 18px; background: #e6f6ff; border: 3px solid var(--vien); }
.nt-hc-kq-hinh img { width: 92%; height: 92%; animation: nt-hc-nhay .7s ease-out; }
.nt-hc-kq.bat.b4 .nt-hc-kq-hinh { background: #fff1e0; }
.nt-hc-kq.bat.b5 .nt-hc-kq-hinh { background: radial-gradient(circle, #fff6c2, #ffd54f); }
.nt-hc-bong-song svg { width: 80%; }
.nt-hc-kq.song .nt-hc-kq-hinh { background: #eef1f4; }
@keyframes nt-hc-nhay { 0% { transform: translateY(40px) scale(.6); } 60% { transform: translateY(-10px) scale(1.08); } 100% { transform: none; } }
.nt-hc-kq-chu { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nt-hc-kq-chu b [lang="zh"] { font-family: 'Noto Serif SC', serif; font-size: 1.35rem; }
.nt-hc-kq-chu small { color: var(--mo); font-weight: 600; }
.nt-hc-tieu { font-family: 'Noto Serif SC', serif; font-weight: 900; font-size: 1.25rem; color: var(--do); }
.nt-hc-kq.song .nt-hc-tieu { color: #5b6b7a; }
.nt-hc-huy { display: flex; flex-wrap: wrap; gap: 4px; }
.nt-hc-huy i { font-style: normal; font-size: 0.8rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; }
.nt-hc-huy i.moi { background: #d6f2c9; } .nt-hc-huy i.ky { background: #ffe9a8; }
.nt-hc-kq + .nt-hang-nut { margin-top: 10px; }
.nt-hc-bst-dau { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.nt-hc-bst-dau b [lang="zh"] { font-family: 'Noto Serif SC', serif; }
.nt-hc-bst-dau span { color: var(--mo); font-weight: 700; }
.nt-hc-bst-dau .nt-nut { margin-left: auto; }
.nt-hc-bst-ds { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.nt-hc-o { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px; border: 2.5px solid var(--vien); border-radius: 14px; background: #fff; text-align: center; }
.nt-hc-o img { width: 64px; height: 64px; }
.nt-hc-o.chua img { filter: brightness(0) opacity(.35); }
.nt-hc-o b { font-size: 0.85rem; } .nt-hc-o b [lang="zh"] { font-family: 'Noto Serif SC', serif; font-size: 1rem; }
.nt-hc-o small { font-size: 0.72rem; color: var(--mo); font-weight: 600; }
@media (max-width: 640px) {
  .nt-hc { padding: 66px 8px 14px; gap: 8px; }
  .nt-hc-ho { height: clamp(230px, 46vh, 420px); box-shadow: 0 0 0 7px #c9a66b, 0 0 0 10px var(--vien), inset 0 8px 18px rgba(10, 60, 110, .35); }
  .nt-hc-canh { padding-bottom: 46px; }
  .nt-hc-ben { width: 88px; height: 62px; }
  .nt-hc-nv { width: 56px; bottom: 14px; }
  .nt-hc-bac { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nt-hc-chon { flex-wrap: wrap; }
  .nt-hc-chon-nut { width: 100%; flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .nt-hc-kq-hinh { width: 84px; height: 84px; }
}

.nt-sap-mo { margin: 0 0 10px; padding: 8px 12px; border: 2.5px dashed #b48a2c; border-radius: 14px; background: #fff8dc; font-size: 0.9rem; }

/* ---------- Luu thong hang: thuong lai, don lon, nha hang, thuong mua ---------- */
.nt-thuong-mua { margin: 0 0 10px; padding: 8px 12px; border: 2.5px solid #e09b12; border-radius: 14px; background: #fff3cf; font-size: 0.9rem; }
.nt-thuong-mua.xong { border-color: #c9bfae; background: #f5f1ea; color: var(--mo); }
.nt-tl-trong { padding: 16px; text-align: center; border: 2.5px dashed #c9bfae; border-radius: 16px; background: #fbf7ef; }
.nt-tl-trong p { margin: 4px 0; }
.nt-tl-dau { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 8px 10px; border: 2.5px solid var(--vien); border-radius: 16px; background: #eef7ff; }
.nt-tl-dau > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nt-tl-dau b [lang="zh"] { font-family: 'Noto Serif SC', serif; font-size: 1.15rem; }
.nt-tl-dau small { color: var(--mo); font-weight: 600; }
.nt-tl-nv { flex: none; width: 54px; height: 60px; display: block; }
.nt-tl-nv svg { width: 100%; height: 100%; }
.nt-tl-ds { display: grid; gap: 10px; }
.nt-tl-dong { padding: 10px; border: 2.5px solid var(--vien); border-radius: 16px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.nt-tl-dong.xong { background: #f3f7ef; }
.nt-tl-dong.sai { background: #fff2ef; }
.nt-tl-cau { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 6px 10px; border: 2px solid #9cc7ea; border-radius: 12px; background: #eef7ff; font: inherit; color: var(--chu); text-align: left; cursor: pointer; }
.nt-tl-cau b[lang="zh"] { font-family: 'Noto Serif SC', serif; font-size: 1.12rem; }
.nt-tl-cau small { color: var(--mo); }
.nt-tl-so { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.85rem; }
.nt-tl-so img { width: 16px; height: 16px; vertical-align: -3px; }
.nt-tl-lua { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.nt-tl-lua button { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 6px 4px 4px; border: 2.5px solid var(--vien); border-radius: 12px; background: #fffaf0; font: inherit; cursor: pointer; box-shadow: 0 3px 0 var(--vien); }
.nt-tl-lua button:hover:not(:disabled) { transform: translateY(-2px); }
.nt-tl-lua img { width: 48px; height: 48px; }
.nt-tl-lua small { font-size: 0.72rem; color: var(--mo); font-weight: 700; }
.nt-tl-sai, .nt-tl-xong { margin: 0; font-size: 0.88rem; }
.nt-tl-sai [lang="zh"] { font-family: 'Noto Serif SC', serif; }
.nt-hd { margin-bottom: 12px; padding: 10px 12px; border: 2.5px solid var(--vien); border-radius: 16px; background: #fff; }
.nt-hd.xong { background: #f2fbea; }
.nt-hd-dau { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nt-hd-dau [lang="zh"] { font-family: 'Noto Serif SC', serif; color: var(--do); }
.nt-hd-pt { font-weight: 900; font-size: 1.1rem; }
.nt-hd-thanh, .nt-hd-mini { display: block; height: 12px; margin: 6px 0; border: 2px solid var(--vien); border-radius: 999px; background: #f1ece6; overflow: hidden; }
.nt-hd-mini { height: 8px; margin: 3px 0; border-width: 1.5px; }
.nt-hd-thanh i, .nt-hd-mini i { display: block; height: 100%; background: linear-gradient(90deg, #8bc34a, #4caf50); }
.nt-hd-ds { display: grid; gap: 8px; margin-top: 6px; }
.nt-hd-dong { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; background: #fbf7ef; }
.nt-hd-dong.du { background: #eaf7e1; }
.nt-hd-dong > img { flex: none; width: 46px; height: 46px; }
.nt-hd-chu { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nt-hd-chu b[lang="zh"] { font-family: 'Noto Serif SC', serif; font-size: 1.05rem; }
.nt-hd-chu small { color: var(--mo); font-size: 0.78rem; }
.nt-hd-nut { display: flex; flex-direction: column; gap: 4px; }
.nt-hd-ok { font-weight: 800; color: #2e7d32; white-space: nowrap; }
.nt-hd-xong { margin: 8px 0; font-weight: 700; }
.nt-hd-top { margin: 8px 0 0; padding-left: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.86rem; }
.nt-hd-top li.la { font-weight: 800; }
.nt-hd-top small { color: var(--mo); }
.nt-nh { margin-bottom: 14px; padding: 10px 12px; border: 2.5px solid var(--vien); border-radius: 16px; background: #fff6ec; display: flex; flex-direction: column; gap: 8px; }
.nt-nh-dau { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nt-nh-dau [lang="zh"] { font-family: 'Noto Serif SC', serif; color: var(--do); }
.nt-nh .nt-meo { margin: 0; }
.nt-nh-khach { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; background: #fff; border: 2px solid #eadfcf; }
.nt-nh-khach.xong { opacity: .7; }
.nt-nh-chu { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nt-nh-chu > small [lang="zh"] { font-family: 'Noto Serif SC', serif; }
.nt-nh-goi { font-family: 'Noto Serif SC', serif; font-size: 1.3rem; font-weight: 900; text-align: center; margin: 4px 0 10px; }
.nt-nh-chon { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.nt-nh-chon button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px; border: 2.5px solid var(--vien); border-radius: 12px; background: #fff; font: inherit; cursor: pointer; box-shadow: 0 3px 0 var(--vien); }
.nt-nh-chon button.sai { background: #ffe3de; }
.nt-nh-chon img { width: 54px; height: 54px; }
.nt-nh-chon small { font-size: 0.75rem; font-weight: 700; text-align: center; }
.nt-mon.cao { background: #fffaf0; }
@media (max-width: 480px) { .nt-tl-lua img { width: 40px; height: 40px; } .nt-hd-dong { flex-wrap: wrap; } .nt-hd-nut { flex-direction: row; } }
.nt-hd-chu .nt-link { align-self: flex-start; padding: 0; text-align: left; color: var(--chu); text-decoration: none; }

/* trang trai lon: lo dat chiem 2 o trong thi tran */
.nt-o-pho.to { grid-column: span 2; }
.nt-o-pho.to .nt-lo { background: #ffd56b; }
.nt-o-pho.to .nt-lo.la { background: #ffc83d; }
.nt-lo-to { align-self: center; margin-top: 2px; padding: 1px 10px; border-radius: 999px; background: #7a4b1f; color: #fff4d6; font-size: 0.78rem; font-weight: 800; }
.nt-lo-to [lang="zh"] { font-family: 'Noto Serif SC', serif; }
.nt-o-pho.to .nt-lo-nv { width: 10%; }
.nt-tt-luoi > .nt-o-pho { align-self: start; }

/* ---------- Thien tai moi: bao, lu, chuot, mua da, nang nong, suong mu, bao cat, chau chau ---------- */
.nt-tai-lop[class*="tai-"] { display: block; overflow: hidden; }
.nt-tai-lop.tai-bao { background: linear-gradient(180deg, rgba(40, 52, 80, 0.42), rgba(60, 80, 110, 0.22)); }
.nt-hat-mua.xien { rotate: 32deg; }
.nt-la-bay { position: absolute; left: -40px; font-style: normal; font-size: 22px; animation: nt-la-bay linear infinite; }
@keyframes nt-la-bay { from { translate: 0 0; rotate: 0deg; } to { translate: 112vw 60px; rotate: 720deg; } }
.nt-khung.tai-bao .nt-dat { filter: saturate(0.75) brightness(0.88); }
.nt-tai-lop.tai-lu { background: linear-gradient(180deg, rgba(60, 90, 120, 0.25), rgba(60, 110, 150, 0.12)); }
.nt-lu-nuoc { position: absolute; left: -5%; right: -5%; bottom: 0; height: 26vh; background: linear-gradient(180deg, rgba(120, 170, 200, 0.55), rgba(70, 120, 160, 0.7));
  border-top: 4px solid rgba(235, 248, 255, 0.85); border-radius: 50% 50% 0 0 / 22px 22px 0 0; animation: nt-lu-dang 4s ease-in-out infinite alternate; }
@keyframes nt-lu-dang { from { height: 20vh; translate: -2% 0; } to { height: 28vh; translate: 2% 0; } }
.nt-khung.tai-lu .nt-dat { filter: saturate(0.85) hue-rotate(-10deg) brightness(0.95); }
.nt-tai-lop.tai-chuot { background: rgba(90, 70, 50, 0.08); }
.nt-chuot { position: absolute; left: -40px; font-style: normal; font-size: 26px; animation: nt-chuot-chay linear infinite; }
.nt-chuot.nguoc { animation-direction: reverse; }
.nt-chuot.nguoc { transform: scaleX(-1); }
@keyframes nt-chuot-chay { 0% { translate: 0 0; } 25% { translate: 30vw -8px; } 50% { translate: 55vw 4px; } 75% { translate: 80vw -6px; } 100% { translate: 108vw 0; } }
.nt-tai-lop.tai-muada { background: linear-gradient(180deg, rgba(120, 140, 170, 0.32), rgba(200, 215, 235, 0.12)); }
.nt-da-hat { background: #eaf6ff; border: 1.5px solid #9fc4e4; box-shadow: none; }
.nt-khung.tai-muada .nt-dat { filter: saturate(0.8) brightness(0.98) hue-rotate(6deg); }
.nt-tai-lop.tai-nong { background: radial-gradient(circle at 12% 8%, rgba(255, 120, 40, 0.42), transparent 50%), rgba(255, 110, 50, 0.14); }
.nt-mat-troi.nong { background: #ff8f3d; box-shadow: 0 0 0 12px rgba(255, 120, 40, 0.35), 0 0 60px 26px rgba(255, 90, 30, 0.4); }
.nt-hoi-nong { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0) 0 22px, rgba(255, 220, 180, 0.12) 22px 26px); animation: nt-hoi-nong 2.4s linear infinite; }
@keyframes nt-hoi-nong { from { background-position: 0 0; } to { background-position: 0 -52px; } }
.nt-khung.tai-nong .nt-dat { filter: sepia(0.25) saturate(1.1) brightness(1.05) hue-rotate(-8deg); }
.nt-tai-lop.tai-suong { background: rgba(235, 240, 245, 0.35); }
.nt-suong { position: absolute; left: -60%; width: 220%; height: 34%; background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 65%); animation: nt-suong-troi ease-in-out infinite alternate; }
@keyframes nt-suong-troi { from { translate: -10% 0; } to { translate: 25% 0; } }
.nt-khung.tai-suong .nt-dat { filter: saturate(0.6) brightness(1.08) contrast(0.85); }
.nt-tai-lop.tai-cat { background: linear-gradient(180deg, rgba(214, 170, 100, 0.38), rgba(230, 190, 120, 0.22)); }
.nt-cat-hat { position: absolute; left: -10px; width: 5px; height: 3px; border-radius: 2px; background: rgba(160, 110, 50, 0.75); animation: nt-cat-bay linear infinite; }
@keyframes nt-cat-bay { from { translate: 0 0; } to { translate: 105vw 30px; } }
.nt-khung.tai-cat .nt-dat { filter: sepia(0.5) saturate(0.8) brightness(1.02); }
.nt-tai-lop.tai-chau { background: rgba(160, 170, 60, 0.1); }
.nt-chau-con { position: absolute; font-style: normal; font-size: 22px; animation: nt-chau-nhay 1.6s ease-in-out infinite; }
@keyframes nt-chau-nhay { 0%, 100% { translate: 0 0; } 30% { translate: 14px -26px; } 60% { translate: 28px 0; } 80% { translate: 20px -8px; } }
.nt-tai-dau.tai-bao, .nt-tai-dau.tai-lu, .nt-tai-dau.tai-muada { background: #e3eefc; }
.nt-tai-dau.tai-suong { background: #eef1f4; } .nt-tai-dau.tai-cat { background: #f7ead2; }
.nt-tai-dau.tai-chau, .nt-tai-dau.tai-chuot { background: #edf7df; } .nt-tai-dau.tai-nong { background: #ffe4d6; }
body[data-tai="bao"] .nt-canh-buom, body[data-tai="bao"] .nt-canh-chim, body[data-tai="muada"] .nt-canh-buom, body[data-tai="muada"] .nt-canh-chim,
body[data-tai="lu"] .nt-canh-buom, body[data-tai="cat"] .nt-canh-buom, body[data-tai="suong"] .nt-canh-chim { display: none; }
.nt-tai-den { text-align: center; }
.nt-tai-den h2 [lang="zh"] { font-family: 'Noto Serif SC', serif; color: var(--do); }

/* ---------- Nhiem vu hom nay, mo tinh nang theo cap, khien bao ve, giai dau, cau nghe / viet ---------- */
.nt-nvu { margin-bottom: 12px; padding: 10px 12px; border: 3px solid var(--vien); border-radius: 18px; background: #fffbe9; box-shadow: var(--bong); }
.nt-nvu-dau { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.nt-nvu-dau [lang="zh"] { font-family: 'Noto Serif SC', serif; color: var(--do); }
.nt-nvu-dau > span { font-weight: 900; font-size: 1.1rem; }
.nt-nvu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nt-nvu li button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 2px solid #eadfcf; border-radius: 12px; background: #fff; font: inherit; color: var(--chu); text-align: left; cursor: pointer; }
.nt-nvu li button:hover { border-color: var(--vien); }
.nt-nvu li.xong button { background: #eaf7e1; border-color: #b9e0a5; color: var(--mo); text-decoration: line-through; }
.nt-nvu li button i { margin-left: auto; font-style: normal; color: var(--mo); }
.nt-nvu-ic { width: 26px; text-align: center; font-family: 'Noto Serif SC', serif; font-weight: 900; color: var(--do); }
.nt-nvu-qua { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.nt-gt { margin: 0 0 10px; padding: 10px 12px; border: 2.5px dashed #4f9be0; border-radius: 16px; background: #eef7ff; text-align: left; }
.nt-gt b [lang="zh"] { font-family: 'Noto Serif SC', serif; color: var(--do); }
.nt-gt p { margin: 4px 0 8px; font-size: 0.9rem; }
.nt-tn-khoa { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px; border: 2.5px dashed #c9bfae; border-radius: 16px; background: #fbf7ef; text-align: center; }
.nt-tn-khoa > span { font-size: 2rem; }
.nt-tn-khoa b [lang="zh"] { font-family: 'Noto Serif SC', serif; }
.nt-tn-khoa p { margin: 0; max-width: 46ch; }
.nt-tn-khoa small { color: var(--mo); font-weight: 600; }
.nt-khien { margin: 6px 0 0; padding: 4px 10px; border-radius: 10px; background: #f1ece6; font-size: 0.85rem; }
.nt-khien.bat { background: #dff3ff; border: 2px solid #4f9be0; }
.nt-giai { margin: 0 0 8px; padding: 6px 12px; border-radius: 12px; background: #f6efe0; font-size: 0.9rem; }
.nt-giai [lang="zh"] { font-family: 'Noto Serif SC', serif; }
.nt-giai.g1 { background: #eef1f4; } .nt-giai.g2 { background: #fff3cf; } .nt-giai.g3 { background: #e9f3f6; } .nt-giai.g4 { background: #efe6ff; }
.nt-tien-bo { margin: 10px 0; padding: 10px 12px; border: 2.5px solid var(--vien); border-radius: 16px; background: #effae8; }
.nt-tien-bo [lang="zh"] { font-family: 'Noto Serif SC', serif; color: var(--do); }
.nt-tien-bo > small { display: block; color: var(--mo); font-weight: 600; }
.nt-tien-bo ol { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.nt-tien-bo li { display: grid; grid-template-columns: 34px 1fr auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 4px 8px; border-radius: 12px; background: #fff; }
.nt-tien-bo li.la { outline: 2.5px solid var(--vang); }
.nt-tb-nv { grid-row: span 2; width: 34px; height: 38px; display: block; }
.nt-tb-nv svg { width: 100%; height: 100%; }
.nt-tb-so { font-weight: 900; color: #2e7d32; }
.nt-tien-bo li small { grid-column: 2 / 4; color: var(--mo); font-size: 0.75rem; }
.nt-nghe { display: block; margin: 8px auto; padding: 14px 22px; border: 3px solid var(--vien); border-radius: 18px; background: #eef7ff; box-shadow: var(--bong); font: inherit; font-size: 1.15rem; font-weight: 800; cursor: pointer; }
.nt-viet-o { width: 180px; height: 180px; margin: 8px auto 4px; border: 3px dashed #c9bfae; border-radius: 16px; background-color: #fff;
  background-image: linear-gradient(rgba(201, 191, 174, 0.5), rgba(201, 191, 174, 0.5)), linear-gradient(90deg, rgba(201, 191, 174, 0.5), rgba(201, 191, 174, 0.5));
  background-size: 100% 1.5px, 1.5px 100%; background-position: center; background-repeat: no-repeat; touch-action: none; }
.nt-viet-tb { margin: 0; text-align: center; font-size: 0.88rem; font-weight: 700; }
.nt-nghe-tb { margin: 4px 0 6px; text-align: center; font-size: 0.9rem; min-height: 1.2em; }
.nt-nghe-tb b { font-size: 1.15rem; color: var(--do); }

/* =====================================================================
   Bo cuc gon (2026-11): ruong la nhan vat chinh.
   - Thanh tren: cap + sao + xu. Goc phai: muc tieu hom nay + 1 viec ke tiep (thu gon duoc) + chip thien tai.
   - Thanh duoi 4 nut + nut chinh "Học kiếm sao" o giua; hoat dong khac trong bang "Thêm".
   - Thong bao: 1 cai mot luc, o phia duoi (khong che thanh tren / nut).
   ===================================================================== */
.nt-phai {
  position: fixed; top: 66px; right: clamp(10px, 2vw, 20px); z-index: 45;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  max-width: min(300px, calc(100vw - 20px)); pointer-events: none;
}
.nt-phai > * { pointer-events: auto; }
.nt-nvc { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }
.nt-phai .nt-muc { position: relative; top: auto; right: auto; }
.nt-muc .nt-cham { top: -4px; right: -4px; }
.nt-nvc-gon {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center; padding: 0;
  border-radius: 50%; border: 2.5px solid var(--vien); background: var(--kem); box-shadow: 0 2px 0 var(--vien);
  font: 900 0.9rem/1 'Be Vietnam Pro', sans-serif; color: var(--chu); cursor: pointer;
}
.nt-nvc-gon span { display: block; transition: transform 0.2s; }
.nt-nvc-gon.thu span { transform: rotate(-90deg); }
.nt-nvc-gon[hidden], .nt-nvc-tiep[hidden] { display: none; }
.nt-nvc-tiep {
  flex-basis: 100%; display: flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 6px 10px; border-radius: 14px; border: 2.5px solid var(--vien); background: #fff; box-shadow: 0 2px 0 var(--vien);
  font: inherit; font-size: 0.8rem; color: var(--chu); text-align: left; cursor: pointer;
}
.nt-nvc-tiep b { flex: 1; min-width: 0; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-nvc-tiep small { font-weight: 800; color: var(--mo); font-variant-numeric: tabular-nums; }
.nt-nvc-tiep i { font-style: normal; font-weight: 900; color: var(--mo); }
.nt-nvc-tiep:hover { background: #fff8e0; }
/* chip thien tai: 1 dong nho, bam de xem chi tiet */
.nt-phai .nt-tai-thanh {
  position: relative; top: auto; right: auto; max-width: 100%;
  gap: 6px; padding: 3px 10px 3px 3px; border-width: 2.5px; box-shadow: 0 3px 0 var(--vien);
}
.nt-phai .nt-tai-thanh b { font-size: 0.82rem; white-space: nowrap; }
.nt-phai .nt-tai-thanh small { font-size: 0.78rem; font-weight: 900; color: var(--chu); font-variant-numeric: tabular-nums; }
.nt-phai .nt-tai-ic { width: 28px; height: 28px; font-size: 1rem; }
body.dang-tham .nt-phai, body.o-thi-tran .nt-phai, body.o-ho-cau .nt-phai { display: none !important; }

/* thanh duoi: 4 nut + nut chinh */
.nt-duoi { align-items: flex-end; gap: 6px; }
.nt-cu { width: 84px; font-size: 0.82rem; }
.nt-cu-cta {
  width: 112px; margin-top: -34px; text-decoration: none; color: var(--xanh-dam); font-weight: 900; font-size: 0.9rem; white-space: nowrap;
}
.nt-cu-cta:hover { background: transparent; }
.nt-cta-hinh {
  display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8fe07a, #4caf50 70%); border: 3.5px solid var(--vien);
  box-shadow: 0 5px 0 var(--vien), 0 0 0 5px rgba(255, 255, 255, 0.85);
  animation: nt-cta-tho 2.4s ease-in-out infinite;
}
.nt-cu-cta .nt-cta-hinh img { width: 50px; height: 50px; }
.nt-cu-cta:active .nt-cta-hinh { transform: translateY(3px); box-shadow: 0 2px 0 var(--vien), 0 0 0 5px rgba(255, 255, 255, 0.85); }
@keyframes nt-cta-tho {
  0%, 100% { box-shadow: 0 5px 0 var(--vien), 0 0 0 5px rgba(255, 255, 255, 0.85), 0 0 0 5px rgba(76, 175, 80, 0); }
  50% { box-shadow: 0 5px 0 var(--vien), 0 0 0 5px rgba(255, 255, 255, 0.85), 0 0 0 12px rgba(76, 175, 80, 0.28); }
}
.nt-them-ic { display: flex; align-items: center; justify-content: center; gap: 5px; width: 46px; height: 46px; border-radius: 14px; background: var(--kem-2); border: 2.5px solid var(--vien); }
.nt-them-ic i { width: 7px; height: 7px; border-radius: 50%; background: var(--vien); }
body.co-them .nt-cu-them { background: #ffe08a; box-shadow: inset 0 0 0 3px var(--vien); }

/* bang Them: luoi o lon (anh + ten + 1 dong trang thai) */
.nt-bang-them { width: min(620px, 100%); }
.nt-them-luoi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.nt-them-luoi > button {
  position: relative; top: auto; right: auto; width: 100%; min-height: 70px;
  display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; text-align: left;
  border-radius: 18px; border: 3px solid var(--vien); background: #fff; box-shadow: 0 4px 0 var(--vien);
  font: inherit; color: var(--chu); cursor: pointer; animation: none;
}
.nt-them-luoi > button[hidden] { display: none; }
.nt-them-luoi > button:hover { background: #fff8e0; transform: translateY(-2px); }
.nt-them-luoi > button > img { width: 48px; height: 48px; flex: none; }
.nt-them-luoi .nt-ch-ic { width: 48px; height: 48px; border-radius: 14px; font-size: 1.6rem; }
.nt-them-luoi .nt-muc-chu b { font-size: 1rem; }
.nt-them-luoi .nt-muc-chu small { font-size: 0.78rem; line-height: 1.3; margin-top: 2px; }
.nt-them-luoi .nt-cham { top: 6px; right: 8px; }
.nt-them-luoi .nt-chuhan-nut { background: #fff1f1; }
.nt-them-luoi .nt-chuhan-nut.het { background: #fff; }
.nt-them-luoi .co-luot { background: #fff6d8; }
body.co-them .hw-fab-stack { display: none !important; }

/* thong bao 1 cai: tren thanh duoi, khong che nut. Thong bao cua widgets.js cung di qua hang doi nay (gomToastWidget) */
body.nt .hw-toast { display: none !important; }
.nt-bao { top: auto; bottom: 200px; transform: translate(-50%, 16px); }
.nt-bao.hien { transform: translate(-50%, 0); }
body.co-bang .nt-bao, body.co-them .nt-bao, body.co-hoi .nt-bao, body.o-ho-cau .nt-bao { top: 10px; bottom: auto; max-width: min(520px, calc(100vw - 120px)); transform: translate(-50%, -16px); padding: 6px 12px; font-size: 0.86rem; }
body.co-bang .nt-bao.hien, body.co-them .nt-bao.hien, body.co-hoi .nt-bao.hien, body.o-ho-cau .nt-bao.hien { transform: translate(-50%, 0); }
.nt-thu-het { bottom: 138px; }

@media (max-width: 640px) {
  .nt-phai { top: 54px; right: 8px; gap: 6px; max-width: min(250px, calc(100vw - 70px)); }
  .nt-duoi { gap: 4px; padding: 6px; }
  .nt-cu { width: 60px; font-size: 0.68rem; }
  .nt-cu img, .nt-them-ic { width: 36px; height: 36px; }
  .nt-them-ic { border-radius: 11px; gap: 4px; }
  .nt-them-ic i { width: 6px; height: 6px; }
  .nt-cu-cta { width: 80px; margin-top: -28px; font-size: 0.7rem; letter-spacing: -0.01em; }
  .nt-cta-hinh { width: 62px; height: 62px; }
  .nt-cu-cta .nt-cta-hinh img { width: 40px; height: 40px; }
  .nt-bao { bottom: 176px; }
  .nt-thu-het { bottom: 118px; }
  /* bang tren dien thoai: tam truot tu duoi len, cao gan het man hinh */
  .nt-lop:not(.nho) > .nt-bang { height: calc(100dvh - 10px); max-height: none; }
  .nt-them-luoi { gap: 8px; }
  .nt-them-luoi > button { min-height: 64px; padding: 6px 8px 6px 6px; gap: 8px; }
  .nt-them-luoi > button > img, .nt-them-luoi .nt-ch-ic { width: 40px; height: 40px; }
  .nt-them-luoi .nt-muc-chu b { font-size: 0.9rem; }
  .nt-them-luoi .nt-muc-chu small { font-size: 0.7rem; }
}
@media (max-width: 360px) {
  .nt-them-luoi { grid-template-columns: 1fr; }
}

/* Chua hoc bai nao: cau hoi nong trai chi lay tu bai da hoc / duoc giao */
.nt-chua-hoc { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 18px 12px; max-width: 460px; margin: 0 auto; }
.nt-chua-hoc-ic { font-size: 2.6rem; line-height: 1; }
.nt-chua-hoc b { font-size: 1.1rem; font-weight: 900; line-height: 1.4; }
.nt-chua-hoc p { margin: 0; color: var(--mo); font-weight: 600; line-height: 1.5; }

/* =====================================================================
   Thi dua + vuon tu kho + cay cham chi + co thuong (nong-trai-thidua.js)
   ===================================================================== */
/* cot trai: cay cham chi, thach dau, co vang, ruy bang, ke cup (gon, bam de mo) */
.nt-trai-cot {
  position: fixed; top: 66px; left: clamp(10px, 2vw, 20px); z-index: 44;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: min(240px, calc(50vw - 20px));
}
.nt-trai-cot[hidden], .nt-trai-cot:empty { display: none; }
body.o-thi-tran .nt-trai-cot, body.o-ho-cau .nt-trai-cot { display: none !important; }
.nt-cot-o {
  display: flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 10px 3px 3px;
  border-radius: 999px; border: 2.5px solid var(--vien); background: var(--kem); box-shadow: 0 3px 0 var(--vien);
  font: inherit; color: var(--chu); text-align: left; cursor: pointer;
}
.nt-cot-o:hover { transform: translateY(-2px); }
.nt-cot-o > span:not(.nt-cot-ic) { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.nt-cot-o b { font-size: 0.8rem; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-cot-o small { font-size: 0.68rem; color: var(--mo); font-weight: 700; }
.nt-cot-ic { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 2px solid var(--vien); font-size: 1rem; }
.nt-cot-o > span.nt-cot-cham { display: flex; flex-direction: row; gap: 3px; }
.nt-cot-cham i { width: 11px; height: 11px; border-radius: 50%; background: #eadfcd; border: 1.5px solid var(--vien); }
.nt-cot-cham i.co { background: #ff8fb4; }
.nt-cot-cay.chin { background: #fff3c4; animation: nt-nhay 1.4s ease-in-out infinite; }
.nt-cot-cay.chin .nt-cot-cham i.co { background: var(--vang); }
.nt-cot-tdh { background: #eaf3ff; }
.nt-cot-tdh.moi { background: #ffe8d6; animation: nt-nhay 1.4s ease-in-out infinite; }
.nt-cot-co { background: #fff3c4; }
.nt-cot-co .nt-cot-ic { animation: nt-co-bay 2.2s ease-in-out infinite; transform-origin: 30% 90%; }
@keyframes nt-co-bay { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.nt-cot-ruy { background: #ffe6ef; }
.nt-cot-o > span.nt-ke-nho { display: flex; flex-direction: row; gap: 6px; font-weight: 900; font-size: 0.8rem; }
@media (max-width: 640px) {
  .nt-trai-cot { top: 112px; left: 8px; max-width: calc(100vw - 200px); }
  .nt-cot-o { padding: 2px 8px 2px 2px; }
  .nt-cot-ic { width: 24px; height: 24px; font-size: 0.85rem; }
  .nt-cot-o b { font-size: 0.72rem; }
  .nt-cot-o small { font-size: 0.62rem; }
}
.nt-them-emo { width: 48px; height: 48px; flex: none; display: grid; place-items: center; font-size: 1.9rem; border-radius: 14px; background: var(--kem-2); border: 2.5px solid var(--vien); }
@media (max-width: 640px) { .nt-them-emo { width: 40px; height: 40px; font-size: 1.5rem; } }

/* bang cup cac trai */
.nt-trai-co { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 10px; border: 2px solid var(--vien); background: #fff; font-size: 1rem; }
.nt-trai-co.c1 { background: #ffd34d; }
.nt-trai-co.c2 { background: #e3e7ee; }
.nt-trai-co.c3 { background: #f2c29b; }
.nt-trai-truoc { display: flex; flex-wrap: wrap; gap: 6px; }
.nt-trai-truoc span { padding: 4px 10px; border-radius: 999px; background: #fff; border: 2px solid var(--vien); font-weight: 800; font-size: 0.85rem; }
.nt-td-ds li .nt-nut { flex: none; padding: 5px 12px; font-size: 0.85rem; }
/* ke cup */
.nt-ke { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px;
  padding: 10px; border-radius: 16px; background: linear-gradient(180deg, #fff8ea, #f6e3c4); border: 3px solid var(--vien); box-shadow: inset 0 -10px 0 #c99a62; }
.nt-ke-o { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 8px 6px 12px; border-radius: 12px; background: #fff; border: 2px solid var(--vien); }
.nt-ke-o > span { font-size: 2rem; line-height: 1; }
.nt-ke-o b { font-size: 0.86rem; }
.nt-ke-o small { font-size: 0.72rem; color: var(--mo); font-weight: 700; }
.nt-ke-o.h1 { background: #fff3c4; }
.nt-ke-tit { margin: 0 0 10px; font-size: 1.15rem; }
/* thach dau 24h */
.nt-tdh-the { display: flex; flex-direction: column; gap: 8px; align-items: stretch; padding: 14px; border-radius: 18px; background: #eef6ff; border: 3px solid var(--vien); box-shadow: 0 4px 0 var(--vien); }
.nt-tdh-the.moi { background: #fff1e0; }
.nt-tdh-the p { margin: 0; font-weight: 600; }
.nt-tdh-the .nt-nut { align-self: center; }
.nt-tdh-dau { display: flex; justify-content: space-between; gap: 8px; font-weight: 800; }
.nt-tdh-thanh { height: 18px; border-radius: 999px; background: #ffb4a6; border: 3px solid var(--vien); overflow: hidden; }
.nt-tdh-thanh i { display: block; height: 100%; background: linear-gradient(180deg, #8fe07a, #4caf50); transition: width 0.5s; }
.nt-tdh-so { display: flex; justify-content: space-between; font-weight: 700; }
.nt-tdh-so b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
/* vuon tu kho */
.nt-vuon { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 10px; padding: 12px; border-radius: 18px;
  background: repeating-linear-gradient(90deg, #a8744a 0 6px, #b98557 6px 12px); border: 3px solid var(--vien); }
.nt-vuon-o { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border-radius: 14px;
  background: #fff8ec; border: 3px solid var(--vien); box-shadow: 0 3px 0 var(--vien); font: inherit; color: var(--chu); cursor: pointer; }
.nt-vuon-o.chon { outline: 4px solid var(--vang); }
.nt-vuon-o.den { background: #fff3c4; }
.nt-vuon-o.gd3 { background: #ffe6ef; animation: nt-nhay 1.6s ease-in-out infinite; }
.nt-vuon-cay { font-size: 2.2rem; line-height: 1.1; transition: transform 0.3s; }
.nt-vuon-o.gd0 .nt-vuon-cay { transform: scale(0.75); }
.nt-vuon-o.heo .nt-vuon-cay { filter: saturate(0.4) brightness(0.95); transform: rotate(-12deg); }
.nt-vuon-o b { font-family: 'Noto Serif SC', serif; font-size: 1.45rem; }
.nt-vuon-o small { font-size: 0.7rem; color: var(--mo); font-weight: 700; text-align: center; }
.nt-vuon-bac { display: flex; gap: 3px; }
.nt-vuon-bac i { width: 14px; height: 6px; border-radius: 3px; background: #e7dcc6; border: 1.5px solid var(--vien); }
.nt-vuon-bac i.co { background: var(--xanh); }
.nt-vuon-ct { margin-top: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 12px; border-radius: 18px; background: #fff; border: 3px solid var(--vien); }
.nt-vuon-ct p { margin: 0; font-weight: 700; }
.nt-vuon-tu { display: flex; align-items: baseline; gap: 10px; border: 0; background: none; cursor: pointer; font: inherit; }
.nt-vuon-tu b { font-family: 'Noto Serif SC', serif; font-size: 2.6rem; font-weight: 900; }
.nt-vuon-tu span { font-size: 1.1rem; color: var(--mo); font-weight: 700; }
#ntVuonCau { width: 100%; }
/* cay cham chi */
.nt-c7 { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.nt-c7-cay { position: relative; font-size: 5rem; line-height: 1; animation: nt-nhun 3s ease-in-out infinite; }
.nt-c7-cay b { position: absolute; right: -6px; top: 6px; font-size: 2.2rem; animation: nt-nhay 1.2s ease-in-out infinite; }
.nt-c7.rung .nt-c7-cay { filter: saturate(0.8); }
.nt-c7-hang { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; width: min(460px, 100%); }
.nt-c7-o { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 14px; background: #fff; border: 2.5px dashed #cdb89d; }
.nt-c7-o i { height: 28px; font-style: normal; font-size: 1.4rem; line-height: 28px; }
.nt-c7-o small { font-weight: 800; color: var(--mo); font-size: 0.72rem; }
.nt-c7-o.co { border-style: solid; border-color: var(--vien); background: #ffe6ef; }
.nt-c7.chin .nt-c7-o.co { background: #fff3c4; }
.nt-c7-tb { margin: 0; font-weight: 800; }
/* co thuong + hat quy */
.nt-co-thuong { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.nt-co-thuong h2 { margin: 0; font-size: 1.2rem; }
.nt-co-nhan { padding: 4px 12px; border-radius: 999px; background: #ffe6ef; border: 2px solid var(--vien); font-weight: 900; }
.nt-co-qua { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 18px; border-radius: 18px; background: #fff3c4; border: 3px solid var(--vien); }
.nt-co-qua img { width: 84px; height: 84px; }
.nt-co-qua b { font-size: 1.4rem; }
.nt-hat-quy { color: var(--xanh-dam) !important; font-weight: 900; }

/* hang dai trong bang xep hang khong tran ngang tren dien thoai */
.nt-td-ds { grid-template-columns: minmax(0, 1fr); }
.nt-td-ds li { min-width: 0; }

/* ══════════ GOC NHIN NGHIENG 2.5D + VUNG QUE (2026-11, "muc 2") — nong-trai-que.js ══════════
   body.nt-ng = goc Nghieng. Khong co body.nt-ng = goc Phang = nong trai kieu cu (.nt-que la display:contents).
   Mat dat #ntDat nen doc scaleY(--ng-c) (phep chieu truc giao); do vat dung thang trong .nt-dung (scaleY nguoc).
   Chi transform / opacity cho chuyen dong; vung que la 1 SVG tinh. */
.nt-que { display: contents; }
.nt-que-nen { display: none; }
body.nt.nt-ng {
  --ng-c: 0.62; --ng-ic: 1.6129; --ng-bx: 0.2; --ng-by: 0.07; --ng-bl: 1.3;
  --q-troi1: #8fd0f4; --q-troi2: #dff3ff; --q-nui1: #a8d0c8; --q-nui2: #8dc59c;
  --q-co1: #a9da78; --q-co2: #92d262; --q-co3: #7fc555; --q-dat: #93d562;
  background: var(--q-co3);
}
body.nt.nt-ng.nt-b-chieu { --q-troi1: #93cdef; --q-troi2: #fff0d6; --q-nui1: #b2cfc0; --q-co1: #b0db78; --q-co2: #96d062; }
body.nt.nt-ng.nt-b-vang { --q-troi1: #9cc8e8; --q-troi2: #ffdcae; --q-nui1: #c4c9b0; --q-nui2: #9fc690; --q-co1: #bcd977; --q-co2: #9dcf60; --q-co3: #86c057; --q-dat: #9ad25f; }
body.nt.nt-ng.nt-b-toi { --q-troi1: #a9a8e0; --q-troi2: #ffd0ac; --q-nui1: #b7b5cf; --q-nui2: #94b99a; --q-co1: #a6cf78; --q-co2: #8cc663; --q-co3: #7bb957; --q-dat: #8dcb61; }
body.nt-ng .nt-khung, body.nt-ng.dang-tham .nt-khung { padding: 0; }
body.nt-ng .nt-que {
  display: block; position: relative; flex: none; margin: auto;
  padding: calc(var(--o, 64px) * var(--q-t, 6)) calc(var(--o, 64px) * var(--q-l, 4)) calc(var(--o, 64px) * var(--q-b, 4));
}
body.nt-ng .nt-que-nen { display: block; position: absolute; inset: 0; pointer-events: none; }
.nt-que-svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.nt-que-svg .q-troi1 { stop-color: var(--q-troi1); }
.nt-que-svg .q-troi2 { stop-color: var(--q-troi2); }
.nt-que-svg .q-co1 { stop-color: var(--q-co1); }
.nt-que-svg .q-co2 { stop-color: var(--q-co2); }
.nt-que-svg .q-co3 { stop-color: var(--q-co3); }
.nt-que-svg .q-nui1 { fill: var(--q-nui1); }
.nt-que-svg .q-nui2 { fill: var(--q-nui2); stroke: rgba(43, 29, 58, 0.25); stroke-width: 0.03; }
.nt-que-svg .q-dong { stroke: rgba(43, 29, 58, 0.35); stroke-width: 0.035; }
.nt-que-svg .q-doi1 { fill: rgba(255, 255, 196, 0.16); }
.nt-que-svg .q-doi2 { fill: rgba(36, 104, 40, 0.1); }
.nt-que-svg .q-vien-bong { fill: rgba(43, 29, 58, 0.18); }
.nt-que-svg .q-vien { stroke: var(--vien); stroke-width: 0.045; }
.nt-que-svg .q-soi-nen { fill: #e6d1a0; }
.nt-que-svg .q-soi { fill: #f8ecd2; stroke: #c4a674; stroke-width: 0.018; }
.nt-que-svg .q-loi-vien { fill: none; stroke: var(--vien); stroke-width: 0.76; stroke-linecap: round; stroke-linejoin: round; }
.nt-que-svg .q-loi { fill: none; stroke: #e8d4a6; stroke-width: 0.68; stroke-linecap: round; stroke-linejoin: round; }
.nt-que-svg .q-loi-da { fill: none; stroke: #fbf1dc; stroke-width: 0.44; stroke-dasharray: 0.17 0.1; stroke-linecap: round; stroke-linejoin: round; }
.nt-que-svg .q-ao-bo { fill: #a88558; stroke: var(--vien); stroke-width: 0.045; }
.nt-que-svg .q-ao-lun { fill: #5f4b38; }
.nt-que-svg .q-ao-sang { fill: none; stroke: rgba(255, 255, 255, 0.85); stroke-width: 0.05; stroke-linecap: round; }
/* bong do mem cua cay / bui / da trong vung que: lech theo huong nang (px trong SVG = don vi o) */
.nt-que-svg .q-bong { fill: rgba(43, 29, 58, 0.22); transform: translate(calc(var(--ng-bx) * 0.6px), calc(var(--ng-by) * 0.4px)); }

/* --- mat ruong nghieng --- */
body.nt-ng .nt-que .nt-dat {
  margin: 0 0 calc(var(--o) * var(--dat-h, 10) * (var(--ng-c) - 1)); border: 0; border-radius: 8px;
  transform: scaleY(var(--ng-c)) rotate(var(--xoay, 0deg)); transform-origin: 0 0;
  background-color: var(--q-dat);
  background-image:
    radial-gradient(closest-side, rgba(255, 255, 190, 0.2), rgba(255, 255, 190, 0)),
    radial-gradient(closest-side, rgba(36, 104, 40, 0.13), rgba(36, 104, 40, 0)),
    url('/images/farm/co.svg?v=1');
  background-size: calc(var(--o) * 5) calc(var(--o) * 4), calc(var(--o) * 7) calc(var(--o) * 6), calc(var(--o) * 2) calc(var(--o) * 2);
  background-position: 0 0, calc(var(--o) * 2.5) calc(var(--o) * 1.5), 0 0;
  box-shadow: inset 0 0 calc(var(--o) * 0.5) rgba(36, 90, 30, 0.3);
}
body.nt-ng .nt-que .nt-dat.no { animation: q-no 1.2s cubic-bezier(0.34, 1.5, 0.64, 1); }
@keyframes q-no { 0% { transform: scaleY(var(--ng-c)) rotate(var(--xoay, 0deg)) scale(0.93); } 60% { transform: scaleY(var(--ng-c)) rotate(var(--xoay, 0deg)) scale(1.02); } 100% { transform: scaleY(var(--ng-c)) rotate(var(--xoay, 0deg)); } }
body.nt-ng .nt-luoi { border-radius: 8px; }
/* do vat dung thang: chan o mep truoc cua o, keo dan nguoc chieu doc */
/* tam o lam goc: rotate(-θ) scaleY(1/c) = nghich dao mat dat -> hinh dung thang, quay mat ve phia em (ca khi xoay 3D);
   translateY dua chan hinh xuong dung mep truoc o (nhu kieu cu khi θ = 0) */
body.nt-ng .nt-dung { position: absolute; inset: 0; z-index: 1; pointer-events: none; transform-origin: 50% 50%; transform: rotate(var(--xn, 0deg)) scaleY(var(--ng-ic)) translateY(calc(-50% * (1 - var(--ng-c)))); }
/* vung cham cua phan dung thang (gon hon hinh vuong de cham trung o phia sau) */
body.nt-ng .nt-dung::after { content: ''; position: absolute; left: 16%; right: 16%; top: 12%; bottom: 0; pointer-events: auto; }
body.nt-ng .nt-dat .nt-vat .nt-hinh { filter: none; }
/* bong elip mem duoi chan (thay drop-shadow: re hon tren may yeu), dai ra buoi sang / chieu */
body.nt-ng .nt-dat .nt-vat:not(.phang)::after {
  content: ''; position: absolute; left: 10%; width: 80%; top: 40%; height: 54%; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(43, 29, 58, 0.36), rgba(43, 29, 58, 0.17) 58%, rgba(43, 29, 58, 0));
  transform-origin: 30% 50%;
  transform: translate(calc(var(--o) * var(--ng-bx) * 0.4), calc(var(--o) * var(--ng-by) * 0.4 * var(--ng-ic))) scaleX(var(--ng-bl));
}
/* o ruong: luong dat nau noi cao, vien go, mat truoc lo ra */
body.nt-ng .nt-dat .nt-vat.nt-k-o::before, body.nt-ng .nt-dat .nt-vat.nt-k-o::after {
  content: ''; position: absolute; left: 5%; right: 5%; top: 7%; bottom: 7%; border-radius: 12%; z-index: 0; pointer-events: none;
}
body.nt-ng .nt-dat .nt-vat.nt-k-o::before { background: #7b4a22; box-shadow: 0 0 0 2px var(--vien); transform: translateY(calc(var(--o) * 0.14 * var(--ng-ic))); }
body.nt-ng .nt-dat .nt-vat.nt-k-o::after {
  border: calc(var(--o) * 0.07) solid #c18744; box-shadow: 0 0 0 2px var(--vien), inset 0 calc(var(--o) * 0.08) 0 rgba(43, 29, 58, 0.22);
  background: repeating-linear-gradient(180deg, #a3653a 0, #a3653a calc(var(--o) * 0.09), #7a4424 calc(var(--o) * 0.09), #7a4424 calc(var(--o) * 0.155), #b97b47 calc(var(--o) * 0.155), #b97b47 calc(var(--o) * 0.18));
}
body.nt-ng .nt-dat .nt-vat.nt-k-o.tt-trong .nt-hinh { display: none; }
/* o ruong: cham theo dung o dat (luong), cay thap khong "an" cham cua o phia sau */
body.nt-ng .nt-dat .nt-vat.nt-k-o .nt-dung::after { display: none; }
/* cay tren luong: bo luong dat ve san trong hinh (da co luong noi o tren) */
body.nt-ng .nt-dat .nt-vat.nt-k-o .nt-hinh { clip-path: inset(0 0 23% 0); transform: translateY(9%); }
body.nt-ng .nt-dat .nt-vat.nt-k-o:hover .nt-hinh { transform: translateY(7%) scale(1.03); }
/* duong da: nam phang tren mat dat */
body.nt-ng .nt-dat .nt-vat.nt-k-duong .nt-dung { transform: none; }
body.nt-ng .nt-dat .nt-vat.nt-k-duong .nt-dung::after { display: none; }
/* ao: lun xuong mat dat (vien toi phia trong mep tren) */
body.nt-ng .nt-dat .nt-vat:is(.nt-k-ao-ca, .nt-k-ao-sen)::after { top: 30%; height: 64%; background: radial-gradient(closest-side, rgba(43, 29, 58, 0.3), rgba(43, 29, 58, 0)); transform: none; }
/* nhan vat, nhan cong, bong mo khi dat do, gio qua: dung thang */
body.nt-ng .nt-nv { transform: rotate(var(--xn, 0deg)) scaleY(var(--ng-ic)) translate(-50%, -100%); transform-origin: 0 0; }
body.nt-ng .nt-nv::after { content: ''; position: absolute; left: 20%; right: 20%; bottom: -4%; height: 8%; border-radius: 50%; z-index: -1; background: radial-gradient(closest-side, rgba(43, 29, 58, 0.34), rgba(43, 29, 58, 0)); }
body.nt-ng .kt-ncf { transform-origin: 50% 100%; }
body.nt-ng .nt-bong-dat img { transform-origin: 50% 100%; transform: rotate(var(--xn, 0deg)) scaleY(var(--ng-ic)); }

/* --- gio qua trong bui cay (ca 2 goc nhin) --- */
.nt-gio-qua {
  position: absolute; z-index: 905; left: calc(100% - var(--o) * 0.2); top: calc(100% - var(--o) * 0.55); width: calc(var(--o) * 0.95); height: calc(var(--o) * 0.95);
  padding: 0; border: 0; background: none; cursor: pointer; touch-action: manipulation;
}
.nt-gio-qua svg { position: relative; z-index: 1; display: block; width: 100%; height: 100%; animation: nt-gio-lac 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
.nt-gio-bui { position: absolute; left: -18%; right: -18%; bottom: -6%; height: 58%; border-radius: 50% 50% 40% 40%; background: radial-gradient(circle at 35% 30%, #8fdc66, #4c9f3e); border: 2.5px solid var(--vien); }
.nt-gio-bui::before { content: ''; position: absolute; left: 18%; top: 22%; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 18px 6px 0 #fff, 34px -2px 0 #fff; }
.nt-gio-qua:focus-visible { outline: 3px solid var(--vang); outline-offset: 2px; border-radius: 50%; }
body.nt-ng .nt-gio-qua { transform-origin: 50% 100%; transform: rotate(var(--xn, 0deg)) scaleY(var(--ng-ic)); }
@keyframes nt-gio-lac { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-6%); } }
.nt-gio-thu { text-align: center; }
.nt-gio-to { display: block; font-size: 2.6rem; line-height: 1; }
.nt-gio-cau { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 8px auto; padding: 10px 18px; border: 3px solid var(--vien); border-radius: 16px; background: #fff6d8; box-shadow: var(--bong); font: inherit; color: var(--chu); cursor: pointer; }
.nt-gio-cau b { font-family: 'Noto Serif SC', serif; font-size: 1.5rem; }
.nt-gio-cau i { font-style: normal; color: var(--do); font-weight: 700; }
.nt-gio-cau span { font-weight: 600; }

/* --- lop tren vung que: may tren troi, bong may troi qua ruong, dom dom chieu toi, mau nang --- */
.nt-que-tren { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.nt-que-tren::before { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 2s; }
body.nt-b-vang .nt-que-tren::before { opacity: 1; background: radial-gradient(120% 80% at 100% 0, rgba(255, 176, 84, 0.22), rgba(255, 176, 84, 0) 65%), linear-gradient(180deg, rgba(255, 196, 120, 0.1), rgba(255, 196, 120, 0.06)); }
body.nt-b-toi .nt-que-tren::before { opacity: 1; background: linear-gradient(180deg, rgba(136, 128, 214, 0.18) 0, rgba(136, 128, 214, 0) 35%, rgba(255, 170, 96, 0) 70%, rgba(255, 166, 90, 0.14) 100%); }
.q-may, .q-may-bong { position: absolute; left: 0; width: 100%; animation: q-troi 110s linear infinite; }
.q-may { top: calc(var(--o) * 0.55); height: calc(var(--o) * 0.8); }
.q-may.m2 { top: calc(var(--o) * 1.5); animation-duration: 150s; animation-delay: -70s; opacity: 0.85; }
.q-may::before { content: ''; position: absolute; left: 0; bottom: 0; width: calc(var(--o) * 2.2); height: calc(var(--o) * 0.55); border-radius: 999px; background: #fff; box-shadow: calc(var(--o) * 0.5) calc(var(--o) * -0.25) 0 calc(var(--o) * -0.05) #fff, calc(var(--o) * 1.15) calc(var(--o) * -0.2) 0 calc(var(--o) * -0.1) #fff; }
.q-may.m2::before { transform: scale(0.7); transform-origin: 0 100%; }
.q-may-bong { top: 38%; height: 30%; animation-duration: 95s; animation-delay: -20s; }
.q-may-bong.b2 { top: 68%; animation-duration: 130s; animation-delay: -80s; }
.q-may-bong::before { content: ''; position: absolute; left: 0; top: 0; width: 28%; height: 100%; border-radius: 50%; background: radial-gradient(closest-side, rgba(30, 60, 70, 0.13), rgba(30, 60, 70, 0)); }
@keyframes q-troi { from { transform: translateX(-30%); } to { transform: translateX(105%); } }
body.nt-b-toi .q-may::before { background: #ffe6d4; box-shadow: calc(var(--o) * 0.5) calc(var(--o) * -0.25) 0 calc(var(--o) * -0.05) #ffe6d4, calc(var(--o) * 1.15) calc(var(--o) * -0.2) 0 calc(var(--o) * -0.1) #ffe6d4; }
body[data-tai="gh"] .q-may, body[data-tai="gh"] .q-may-bong { display: none; }
.q-dom { position: absolute; display: none; width: 7px; height: 7px; border-radius: 50%; background: #fff3a0; box-shadow: 0 0 10px 3px rgba(255, 236, 120, 0.75); animation: q-dom 5.2s ease-in-out infinite alternate; }
body.nt-b-toi .q-dom { display: block; }
@keyframes q-dom { 0% { opacity: 0.2; transform: translate(0, 0); } 40% { opacity: 1; } 100% { opacity: 0.35; transform: translate(34px, -22px); } }
body.nt-an-tab .nt-que-tren *, body.nt-an-tab .nt-gio-qua svg { animation-play-state: paused !important; }
/* chieu toi (goc nghieng): den long va cua so nha sang am (canh van sang) */
body.nt-ng.nt-b-toi .nt-dat .nt-vat:is(.nt-k-den-long, .nt-k-den-phuc, .nt-k-den-da, .nt-k-lh-gongdeng, .nt-k-lh-tuzideng, .nt-k-lh-bianpao, .nt-k-lh-longzhou)::before {
  content: ''; position: absolute; left: -40%; top: -45%; width: 180%; height: 180%; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(255, 214, 120, 0.6) 0, rgba(255, 196, 90, 0.22) 42%, rgba(255, 196, 90, 0) 68%);
}
body.nt-ng.nt-b-toi .nt-dat .nt-vat.nt-k-nha::before {
  content: ''; position: absolute; left: 4%; top: 10%; width: 92%; height: 84%; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(255, 220, 140, 0.5), rgba(255, 220, 140, 0));
}

/* ══════════ 3D XOAY (nong-trai-que.js) — body.nt-xoay khi goc xoay ≠ 0 ══════════
   Ruong thanh 1 "dao dat noi" xoay quanh tam: mat co + de dat day (nhieu lop drop-shadow chong nhau tren 1 lop rieng),
   nen troi + dong co xa. Vung que SVG (ve san cho huong chinh) an di. Khung giu co dinh khi xoay (khong nhay bo cuc). */
body.nt.nt-xoay:not(.o-thi-tran) {
  background: linear-gradient(180deg, var(--q-troi1) 0, var(--q-troi2) 34%, #d6eeb8 37%, var(--q-co1) 44%, var(--q-co3) 100%) fixed;
}
body.nt-xoay .nt-que { display: flow-root; padding: 0; }
body.nt-xoay .nt-que-nen { display: none; }
body.nt-xoay .nt-que .nt-dat { position: relative; z-index: 1; margin: var(--xm-t, 0) var(--xm-x, 0) var(--xm-b, 0); transform-origin: 50% 50%; border-radius: 10px; }
.nt-de-boc { display: none; }
body.nt-xoay .nt-de-boc {
  display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  filter: drop-shadow(0 calc(var(--o) * 0.08) 0 #c08a52) drop-shadow(0 calc(var(--o) * 0.09) 0 #a8703f) drop-shadow(0 calc(var(--o) * 0.1) 0 #8d5a31)
    drop-shadow(0 calc(var(--o) * 0.1) 0 #6f4524) drop-shadow(0 3px 0 #2b1d3a) drop-shadow(0 calc(var(--o) * 0.45) calc(var(--o) * 0.3) rgba(43, 29, 58, 0.22));
}
.nt-de {
  position: absolute; left: var(--xm-x, 0); top: var(--xm-t, 0); width: var(--xw, 0); height: var(--xh, 0); border-radius: 10px;
  background: #6fae47; box-shadow: 0 0 0 3px #2b1d3a;
  transform-origin: 50% 50%; transform: scaleY(var(--ng-c)) rotate(var(--xoay, 0deg));
}
/* luong dat noi: mat truoc luon lo ra phia duoi man hinh (trinh duyet cu khong co sin()/cos() -> giu kieu cu) */
body.nt-xoay .nt-dat .nt-vat.nt-k-o::before {
  transform: translate(calc(var(--o) * 0.14 * var(--ng-ic) * sin(var(--xoay, 0deg))), calc(var(--o) * 0.14 * var(--ng-ic) * cos(var(--xoay, 0deg))));
}
/* nut xoay trai / phai (chi hien o che do 3D) */
.nt-zoom .nt-nut-xoay { display: none; padding: 0; align-items: center; justify-content: center; touch-action: none; -webkit-user-select: none; user-select: none; }
body.nt-ng .nt-zoom .nt-nut-xoay { display: flex; }
.nt-nut-xoay svg { width: 22px; height: 22px; fill: none; stroke: var(--vien); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.nt-nut-xoay.dang { background: var(--vang); }

/* --- nut doi goc nhin trong "⋯ Thêm" --- */
.nt-them-goc .nt-them-emo { background: #dff3ff; }

/* --- thi tran: huy hieu (ca 2 goc nhin) + lang que goc nghieng: lo dat rao go, duong da cuoi --- */
.nt-lo-ruy { display: block; font-size: 0.72rem; font-weight: 800; color: #c2185b; }
.nt-lo-ruy.vang { color: #a3620a; }
body.nt-ng .nt-tt { background: linear-gradient(180deg, #8fd0f4 0, #dff3ff 250px, #a9da78 262px, #8fd35e 520px, #7fc555 100%); }
body.nt-ng .nt-tt-luoi {
  background-color: #e6d1a0;
  background-image: radial-gradient(ellipse 9px 6px at 25% 30%, #f8ecd2 0 70%, rgba(196, 166, 116, 0.9) 75%, transparent 80%), radial-gradient(ellipse 9px 6px at 75% 78%, #f8ecd2 0 70%, rgba(196, 166, 116, 0.9) 75%, transparent 80%);
  background-size: 26px 20px;
}
body.nt-ng .nt-lo { background: #7cc552; background-image: radial-gradient(closest-side, rgba(255, 255, 196, 0.25), rgba(255, 255, 196, 0)); background-size: 120px 90px; }
body.nt-ng .nt-lo.la { background-color: #ffc83d; }
body.nt-ng .nt-lo-dat { border: 6px solid #c98a4b; border-image: repeating-linear-gradient(90deg, #e3ad66 0, #e3ad66 9px, #8f5a2e 9px, #8f5a2e 11px) 6; border-radius: 0; box-shadow: 0 0 0 2px var(--vien), 0 6px 0 rgba(43, 29, 58, 0.22); }
body.nt-ng .nt-pho { background: linear-gradient(180deg, transparent 5px, rgba(120, 92, 60, 0.35) 5px, rgba(120, 92, 60, 0.35) 8px, transparent 8px, transparent calc(100% - 8px), rgba(120, 92, 60, 0.35) calc(100% - 8px), rgba(120, 92, 60, 0.35) calc(100% - 5px), transparent calc(100% - 5px)); }
body.nt-ng .nt-pho-vach { display: none; }

/* =====================================================================
   Sang tham nong trai ban (2026-11-14, co giao: "xóa bỏ kiểu đè chữ này lên giao diện"):
   chi con 1 vien ten nho o giua tren + thanh duoi rieng (thay thanh duoi cua em) + nut ve thi tran o goc trai.
   Loi nhac giup ban la 1 thong bao luc vua sang (hang doi .nt-bao), khong nam tren nong trai.
   ===================================================================== */
.nt-tham { display: contents; }
.nt-tham[hidden] { display: none !important; }
body.dang-tham #ntDuoi, body.dang-tham .nt-top .nt-ve, body.dang-tham .nt-top .nt-nv-nut, body.dang-tham .nt-trai-cot { display: none !important; }
body.o-thi-tran .nt-tham-dock, body.o-ho-cau .nt-tham-dock, body.o-thi-tran .nt-tham-chu, body.o-thi-tran .nt-tham-tl { display: none !important; }
/* vien ten ban */
.nt-tham-chu {
  position: fixed; left: 50%; top: 12px; z-index: 52; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; max-width: min(520px, calc(100vw - 940px)); min-width: 0;
  height: 38px; padding: 0 14px; border-radius: 999px; white-space: nowrap;
  background: #ffe1ea; border: 2.5px solid var(--vien); box-shadow: 0 3px 0 var(--vien);
}
.nt-tham-chu b { font-size: 0.9rem; font-weight: 900; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nt-tham-chu span { font-size: 0.78rem; font-weight: 700; color: var(--mo); flex: none; }
.nt-tham-ke {
  flex: none; width: 28px; height: 28px; margin-right: -8px; padding: 0; border-radius: 50%; border: 2px solid var(--vien); background: #fff;
  font-size: 0.9rem; line-height: 1; cursor: pointer;
}
/* nut quay lai (cho nut "← Học bài") */
.nt-tham-tl { position: fixed; top: 10px; left: clamp(10px, 2vw, 20px); z-index: 52; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: calc(50vw - 30px); }
.nt-tham-lui {
  display: inline-block; max-width: 100%; height: 42px; padding: 0 14px; border-radius: 999px;
  background: var(--kem); border: 3px solid var(--vien); box-shadow: var(--bong);
  font: inherit; font-weight: 800; font-size: 0.9rem; color: var(--chu); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nt-tham-lui:hover { background: var(--kem-2); }
/* thanh duoi khi tham: cung kieu thanh duoi cua em; 2 nhom nut cuon ngang duoc tren dien thoai, nut "Về nhà" noi o giua */
.nt-tham-dock { align-items: flex-end; gap: 4px; }
.nt-tham-cuon {
  display: flex; align-items: flex-end; gap: 4px; min-width: 0; flex: 0 1 auto;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x proximity;
  padding-top: 6px; margin-top: -6px; /* cho hieu ung nhay len khi hover khong bi cat */
}
.nt-tham-cuon::-webkit-scrollbar { display: none; }
.nt-tham-dock .nt-tc { flex: none; width: 84px; scroll-snap-align: start; cursor: pointer; }
.nt-tc-ic { display: grid; place-items: center; width: 46px; height: 46px; font-size: 30px; line-height: 1; }
.nt-tc-chu { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
#ntThamTim .nt-tc-ic { color: #e5533d; }
.nt-tham-dock .nt-tc.xong { color: var(--mo); }
.nt-tham-dock .nt-tc.xong .nt-tc-ic { filter: grayscale(0.85); opacity: 0.55; }
.nt-tham-dock .nt-tc.xong::after {
  content: '✓'; position: absolute; top: 2px; right: 8px; width: 20px; height: 20px; display: grid; place-items: center;
  border-radius: 50%; background: var(--xanh); color: #fff; border: 2px solid var(--vien); font-size: 0.72rem; font-weight: 900;
}
.nt-tham-dock .nt-tc:disabled { cursor: default; transform: none; background: transparent; }
#ntThamQua .nt-tc-ic { animation: nt-qua-lac 2.6s ease-in-out infinite; }
@keyframes nt-qua-lac { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-12deg); } 90% { transform: rotate(10deg); } 95% { transform: rotate(-6deg); } }
.nt-tham-venha { flex: none; color: #b25d00; }
.nt-tham-venha .nt-cta-hinh { background: radial-gradient(circle at 35% 30%, #fff1b8, #ffc83d 70%); font-size: 38px; line-height: 1; animation: none; }
.nt-tham-dock #ntThamHd { flex: none; align-self: center; width: 40px; height: 40px; margin: 0 4px; padding: 0; border-radius: 50%; box-shadow: 0 3px 0 var(--vien); }
body.dang-tham .nt-top .nt-hud { margin-left: auto; }
@media (max-width: 1199px) {
  .nt-tham-chu { top: 60px; max-width: calc(100vw - 24px); }
}
@media (max-width: 640px) {
  .nt-tham-chu { top: 50px; height: 32px; padding: 0 12px; gap: 6px; }
  .nt-tham-chu b { font-size: 0.82rem; }
  .nt-tham-chu span { font-size: 0.72rem; }
  .nt-tham-tl { top: 8px; left: 8px; }
  /* dien thoai: chi con bieu tuong (nhu nut "←" Hoc bai), chu day du van doc duoc qua title / trinh doc man hinh */
  .nt-tham-tl { flex-direction: row; }
  .nt-tham-lui { width: 38px; height: 34px; padding: 0; font-size: 0; border-width: 2.5px; box-shadow: 0 3px 0 var(--vien); text-align: center; }
  #ntThamLui::before { content: "←"; font-size: 1.05rem; }
  #ntThamTt::before { content: "🏘"; font-size: 1rem; }
  .nt-tham-dock { gap: 2px; padding: 6px; }
  .nt-tham-dock .nt-tc { width: 60px; font-size: 0.66rem; letter-spacing: -0.02em; }
  .nt-tc-ic { width: 36px; height: 36px; font-size: 24px; }
  .nt-tham-dock .nt-tc.xong::after { right: 4px; width: 17px; height: 17px; font-size: 0.62rem; }
  .nt-tham-venha .nt-cta-hinh { font-size: 30px; }
  .nt-tham-venha { width: 72px; }
  .nt-tham-dock #ntThamHd { width: 34px; height: 34px; font-size: 0.85rem; }
  /* con nut an ben phai -> mo dan o mep de em biet vuot ngang duoc */
  .nt-tham-cuon { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent); padding-right: 14px; }
}

/* ---------- nen lat da lien mach (2026-11-16) — class do nong-trai-fx.js gan sau moi lan ve ---------- */
body:not(.nt-ng) .nt-vat.nt-k-duong.lien {
  background-color: #ecdfc3;
  background-image: url('/images/farm/lat-da.svg?v=1');
  background-size: calc(var(--o) * 2) calc(var(--o) * 2);
  background-repeat: repeat;
  box-shadow: var(--et, 0 0 transparent), var(--eb, 0 0 transparent), var(--el, 0 0 transparent), var(--er, 0 0 transparent);
}
body:not(.nt-ng) .nt-vat.nt-k-duong.lien .nt-hinh { visibility: hidden; }
body:not(.nt-ng) .nt-vat.nt-k-duong.lien:hover .nt-hinh { transform: none; }
/* via da giap co: vien kem dam phia trong, canh duoi day hon cho co chieu sau */
body:not(.nt-ng) .nt-k-duong.dn-t { --et: inset 0 3px 0 #dccaa2; }
body:not(.nt-ng) .nt-k-duong.dn-b { --eb: inset 0 -4px 0 #cfb88b; }
body:not(.nt-ng) .nt-k-duong.dn-l { --el: inset 3px 0 0 #dccaa2; }
body:not(.nt-ng) .nt-k-duong.dn-r { --er: inset -3px 0 0 #d4bf94; }
body:not(.nt-ng) .nt-k-duong.gc-tl { border-top-left-radius: 34%; }
body:not(.nt-ng) .nt-k-duong.gc-tr { border-top-right-radius: 34%; }
body:not(.nt-ng) .nt-k-duong.gc-bl { border-bottom-left-radius: 34%; }
body:not(.nt-ng) .nt-k-duong.gc-br { border-bottom-right-radius: 34%; }
body:not(.nt-ng) .nt-vat.nt-k-duong.lien.chon { outline-offset: -4px; }

/* bong mem duoi vat dung tren dat (con vat, cay, do trang tri) — vat co ve tren nen, khong "dan" phang */
body:not(.nt-ng) .nt-vat:not(.phang)::before {
  content: ''; position: absolute; left: 16%; right: 16%; bottom: 2%; height: 18%;
  border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, rgba(58, 44, 20, 0.26), rgba(58, 44, 20, 0.1) 60%, transparent);
}

/* ---------- phong to vat pham ×2…×5 (2026-11-16) ---------- */
.nt-pt-mo { align-self: flex-start; background: #ffe08a; }
.nt-pt-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.nt-pt-o {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px;
  border-radius: 14px; border: 3px solid var(--vien); background: #fff8e6; box-shadow: 0 3px 0 var(--vien);
  font: inherit; color: var(--chu); cursor: pointer; transition: transform 0.1s, box-shadow 0.1s;
}
.nt-pt-o:not(:disabled):hover { transform: translateY(-2px); background: #ffeeb8; }
.nt-pt-o:not(:disabled):active { transform: translateY(2px); box-shadow: 0 1px 0 var(--vien); }
.nt-pt-o b { font-size: 1.35rem; font-weight: 900; line-height: 1; }
.nt-pt-o span { font-size: 0.78rem; font-weight: 700; color: var(--mo); }
.nt-pt-o em { font-style: normal; font-weight: 800; font-size: 0.86rem; display: inline-flex; align-items: center; gap: 3px; }
.nt-pt-o em img, .nt-pt-gt img { width: 18px; height: 18px; }
.nt-pt-o small { font-size: 0.72rem; font-weight: 700; color: var(--do); }
.nt-pt-o.dang { background: #d8f5c4; cursor: default; }
.nt-pt-o.nho { background: #f1ece2; }
.nt-pt-o:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: 0 2px 0 var(--vien); }
.nt-pt-chu { font-size: 0.82rem; }
/* vat da phong to: bong bong, giot nuoc, thanh thoi gian giu co vua mat (khong to theo vat) */
.nt-vat.pt .nt-bong { width: calc(58% / var(--z, 1)); top: calc(-34% / var(--z, 1)); }
.nt-vat.pt .nt-thoi { left: calc(50% - 38% / var(--z, 1)); right: calc(50% - 38% / var(--z, 1)); }

/* ---------- kieu cau hoi moi trong bang hoi (nong-trai-cau.js, 2026-11-20) ---------- */
.ntc-goi { margin: 2px 0 0; font-size: 0.82rem; color: var(--mo); font-weight: 600; text-align: center; }
.ntc-cau { font-size: 1.05rem; line-height: 1.45; }
.ntc-cau-zh { font-size: clamp(1.2rem, 4.6vw, 1.6rem) !important; line-height: 1.4; }
.ntc-xep-dong {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; min-height: 54px; margin-top: 8px; padding: 8px;
  border-radius: 14px; border: 2.5px dashed #cdb68b; background: #fffaf0;
}
.ntc-xep-dong.dung { border-style: solid; border-color: #2f8a57; background: #e6f4ea; }
.ntc-xep-dong.sai { border-style: solid; border-color: #c62828; background: #fdebe7; }
.ntc-trong { color: var(--mo); font-size: 0.85rem; font-weight: 600; }
.ntc-dau { font-family: 'Noto Serif SC', serif; font-size: 1.3rem; font-weight: 700; }
.ntc-cum-ds { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; width: 100%; }
.ntc-cum {
  font-family: 'Noto Serif SC', serif; font-size: 1.3rem; font-weight: 700; min-height: 46px; padding: 6px 14px; border-radius: 12px;
  border: 2.5px solid var(--vien); background: #fff; color: var(--chu); box-shadow: 0 3px 0 var(--vien); cursor: pointer;
}
.ntc-cum.chon { background: #ffe9a8; }
/* sap xep: keo tha tu do (cum dang keo noi theo ngon tay, cho trong tam = vien net dut) */
.ntc-xep-dong .ntc-cum, .ntc-cum-ds .ntc-cum { touch-action: none; -webkit-user-select: none; user-select: none; }
.ntc-xep-dong .ntc-cum.chon { cursor: grab; }
.ntc-cho { display: inline-flex; align-items: center; color: transparent; background: rgba(255, 233, 168, 0.35); border-style: dashed; box-shadow: none; }
.ntc-bong-keo { position: fixed; z-index: 9999; margin: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; box-sizing: border-box; transform: rotate(-3deg) scale(1.08); box-shadow: 0 10px 18px rgba(43, 29, 58, 0.3); cursor: grabbing; }
.ntc-xep-meo { margin: 4px 0 0; font-size: 0.74rem; color: var(--mo); font-weight: 600; text-align: center; }
.ntc-cum:disabled { opacity: 0.25; box-shadow: none; }
.ntc-kt, .ntc-go button {
  font: inherit; font-weight: 800; min-height: 46px; padding: 8px 18px; border-radius: 14px; border: 3px solid var(--vien);
  background: #6fd05a; color: var(--chu); box-shadow: 0 4px 0 var(--vien); cursor: pointer; margin-top: 10px;
}
.ntc-kt:disabled { opacity: 0.5; }
#ntHoiChon.ntc-doc, #ntHoiChon:has(.ntc-lua) { grid-template-columns: 1fr; }
.ntc-lua { text-align: left; line-height: 1.4; }
.ntc-lua.zh { font-family: 'Noto Serif SC', serif; font-size: 1.15rem; }
.ntc-noi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.ntc-noi-cot { display: flex; flex-direction: column; gap: 8px; }
.ntc-noi-o { font: inherit; font-weight: 700; min-height: 46px; padding: 6px 10px; border-radius: 12px; border: 2.5px solid var(--vien); background: #fff; box-shadow: 0 3px 0 var(--vien); cursor: pointer; line-height: 1.3; }
.ntc-noi-o.zh { font-family: 'Noto Serif SC', serif; font-size: 1.3rem; }
.ntc-noi-o.chon { background: #ffe9a8; border-color: #e68a00; }
.ntc-noi-o.xong { background: #d8f5c4; opacity: 0.75; box-shadow: none; }
.ntc-noi-o.sai { background: #ff9c9c; }
.ntc-go { display: flex; gap: 8px; width: 100%; flex-wrap: wrap; justify-content: center; }
.ntc-go input { flex: 1 1 200px; min-width: 0; font: inherit; font-size: 1.2rem; font-weight: 700; padding: 10px 14px; border-radius: 14px; border: 3px solid var(--vien); margin-top: 10px; }
.ntc-go input.dung { background: #d8f5c4; }
.ntc-go input.sai { background: #ffe1e1; }
.ntc-go input:focus { outline: 3px solid #4f8cff; outline-offset: 2px; }
.ntc-bo { display: block; margin: 8px auto 0; font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--mo); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.nt-hoi-chon > .ntc-cum-ds, .nt-hoi-chon > .ntc-noi, .nt-hoi-chon > .ntc-go, .nt-hoi-chon > .ntc-kt, .nt-hoi-chon > .ntc-bo { grid-column: 1 / -1; justify-self: center; }
.nt-hoi-chon > .ntc-cum-ds, .nt-hoi-chon > .ntc-noi, .nt-hoi-chon > .ntc-go { justify-self: stretch; }

/* ---------- HUD dien thoai gon, khong de len nhau (2026-11-20, co giao: "giao dien dep, de nhin, de dung") ----------
   cot phai (sao hom nay · nhiem vu · thien tai) toi da 205px, cot trai (cay cham chi, thach dau…) lay phan con lai */
@media (max-width: 640px) {
  .nt-phai { max-width: 224px; gap: 5px; }
  .nt-phai .nt-muc { padding-right: 10px; }
  .nt-phai .nt-muc-chu small { white-space: nowrap; font-size: 0.64rem; overflow: hidden; text-overflow: ellipsis; }
  .nt-phai .nt-muc { max-width: calc(100% - 36px); min-width: 0; }
  .nt-phai .nt-muc-chu { min-width: 0; }
  .nt-nvc-tiep { font-size: 0.74rem; padding: 5px 8px; }
  .nt-phai .nt-tai-thanh b { font-size: 0.76rem; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
  .nt-trai-cot { max-width: calc(100vw - 252px); min-width: 0; }
  .nt-cot-o { max-width: 100%; }
  .nt-cot-o > span.nt-cot-cham { gap: 2px; }
  .nt-cot-cham i { width: 9px; height: 9px; }
}
@media (max-width: 380px) {
  .nt-phai { max-width: 210px; }
  .nt-trai-cot { max-width: calc(100vw - 236px); }
}

/* bang "Them": tieu de nhom */
.nt-them-nhom { grid-column: 1 / -1; margin: 6px 2px -2px; font-size: 0.86rem; font-weight: 900; color: var(--mo); letter-spacing: 0.02em; display: flex; align-items: center; gap: 8px; }
.nt-them-nhom::after { content: ''; flex: 1; height: 2px; border-radius: 2px; background: var(--kem-2, #efe3c8); }
.nt-them-nhom:first-child { margin-top: 0; }
.nt-them-nhom[hidden] { display: none; }

/* ---------- Cua hang + Kho tren dien thoai: the ngang (2026-11-20, co giao: "lam dep cua hang va kho") ----------
   Hinh ben trai, ten + thong tin ben phai, nut o duoi ten; ten chu Han khong bi vo dong; tab truot ngang 1 hang. */
.nt-the { transition: transform 0.12s; }
.nt-the:not(.khoa):hover { transform: translateY(-2px); }
.nt-the-anh { background: radial-gradient(circle at 50% 68%, #d8f5c0 0%, #b5e596 55%, #9fd67b 100%); box-shadow: inset 0 -3px 0 rgba(43, 29, 58, 0.08); }
.nt-the .nt-ten b { white-space: nowrap; }
.nt-mua { min-height: 40px; }
@media (max-width: 560px) {
  .nt-tab { flex: none; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 10px 12px 4px; -webkit-overflow-scrolling: touch; }
  .nt-tab::-webkit-scrollbar { display: none; }
  .nt-tab button { flex: none; padding: 6px 13px; font-size: 0.86rem; }
  .nt-luoi-the { grid-template-columns: 1fr; gap: 10px; }
  .nt-the {
    display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 10px; row-gap: 4px; align-items: center;
    padding: 8px 10px 10px 8px; border-radius: 16px;
  }
  .nt-the > .nt-the-anh { grid-row: 1 / span 4; align-self: start; width: 76px; height: 76px; }
  .nt-the > .nt-the-anh img { width: 64px; height: 64px; }
  .nt-the > * { grid-column: 2; min-width: 0; }
  .nt-the > .nt-the-anh { grid-column: 1; }
  .nt-the .nt-ten { padding: 0; justify-self: start; text-align: left; }
  .nt-the .nt-ten b { font-size: 1.35rem; }
  .nt-the .nt-ten span { font-size: 0.85rem; }
  .nt-the .nt-ten i { font-size: 0.86rem; }
  .nt-the-phu { font-size: 0.78rem; line-height: 1.35; }
  .nt-the > .nt-mua { justify-self: start; min-width: 120px; padding: 6px 14px; margin-top: 2px; }
  .nt-the > .nt-ban-nut { margin-top: 2px; flex-wrap: wrap; gap: 6px; }
  .nt-ban-nut .nt-mua { flex: 1 1 0; min-width: 0; padding: 6px 4px; font-size: 0.82rem; white-space: nowrap; }
  .nt-khoa { top: 4px; right: 4px; font-size: 0.68rem; padding: 1px 6px; }
}

/* ══════════ CHE DO NHE (nong-trai-nhe.js) — body.nt-nhe: bot hieu ung cho may cham ══════════
   An lop trang tri chay lien tuc (may, buom, chim, tuyet, ong gia Noel, dom dom), dung chuyen dong trang tri tren ruong,
   bo filter bong do (ton GPU nhat tren dien thoai). Do vat, thanh thoi gian, bong bong viec, nhan vat di lai van giu. */
body.nt-nhe .nt-canh, body.nt-nhe .nt-noel-tuyet, body.nt-nhe .nt-santa, body.nt-nhe .nt-que-tren,
body.nt-nhe .nt-ntt-tuyet, body.nt-nhe .nt-noel-day { display: none !important; }
body.nt-nhe .nt-dat .nt-vat, body.nt-nhe .nt-dat .nt-vat *, body.nt-nhe .nt-dat .nt-vat::before, body.nt-nhe .nt-dat .nt-vat::after, body.nt-nhe .nt-dat .nt-vat *::before, body.nt-nhe .nt-dat .nt-vat *::after,
body.nt-nhe .nt-nv-hinh, body.nt-nhe .nt-nv-hinh * { animation: none !important; }
body.nt-nhe .nt-dat .nt-hinh, body.nt-nhe .nt-dat img, body.nt-nhe .nt-dat svg { filter: none !important; }
body.nt-nhe .nt-tt-troi .may, body.nt-nhe .nt-tt-troi .chim { animation: none !important; }
.nt-them-nhe .nt-them-emo { background: #e8f5e9; }

/* ---------- qua dot bien 突变 (thu hoach) ---------- */
.nt-db { text-align: center; }
.nt-db-gen { display: block; font-size: 2.4rem; line-height: 1; }
.nt-db-mon { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; margin: 8px 6px; padding: 10px 14px; border: 3px solid var(--vien); border-radius: 18px; background: #fff8ec; box-shadow: var(--bong); min-width: 140px; }
.nt-db-mon.db2 { background: linear-gradient(160deg, #fffde7, #ffe082); }
.nt-db-mon.db3 { background: linear-gradient(135deg, #ffcdd2, #fff9c4, #c8e6c9, #bbdefb, #e1bee7); }
.nt-db-hinh { width: 96px; height: 96px; }
.nt-db-mon b { font-family: 'Noto Serif SC', serif; font-size: 1.3rem; }
.nt-db-mon small { color: var(--mo); font-weight: 700; }
.nt-db-mon em { font-style: normal; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }
.nt-db-mon em img { width: 20px; height: 20px; }
.nt-db-chu { max-width: 34em; margin: 8px auto; line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) { .nt-db-hinh { animation: nt-db-nay 1.6s ease-in-out infinite alternate; } }
@keyframes nt-db-nay { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-5px) rotate(3deg); } }
