/* Web truyện. Hướng thiết kế: "trang giấy" (taste-skill, page-is-the-object, seed 1101923527)
   Nền xám lam, mỗi truyện là một tờ giấy; xanh rêu chỉ dùng cho nút. Một họ chữ Source Serif 4 (có dấu tiếng Việt). */

:root {
  --nen: #a6b3bc;
  --giay: #ecebe6;
  --muc: #1c1c1c;
  --phu: #38424a;
  --reu: #2c3620;
  --reu-chu: #e9e8df;
  --to-1: #b7c8be;
  --to-2: #d6c4b8;
  --to-3: #c6d0d6;
  --le: 16px;
  --chu-nho: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --chu: clamp(1.0625rem, 1.02rem + 0.25vw, 1.1875rem);
  --chu-lon: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --chu-dau: clamp(2rem, 1.3rem + 3.2vw, 3.75rem);
  --chu-ten: clamp(2.75rem, 1.6rem + 6vw, 5.75rem);
  --serif: "Source Serif 4", "Noto Serif", Georgia, serif;
  --tron: "Be Vietnam Pro", system-ui, sans-serif;
  --nhanh: 180ms cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --le: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--nen); color: var(--muc);
  font: 400 var(--chu)/1.55 var(--serif);
  font-optical-sizing: auto; text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.02; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--reu); outline-offset: 3px; }
::selection { background: var(--reu); color: var(--reu-chu); }
.an { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Thanh báo web đang khóa (chỉ người đã đăng nhập quản trị thấy) */
.bao-khoa { margin: 0; padding: 10px var(--le); background: var(--reu); color: var(--reu-chu); font-size: var(--chu-nho); text-align: center; }
.bao-khoa a { color: inherit; font-weight: 600; }
.trang-khoa .chinh { min-height: 100svh; display: grid; place-items: center; }

/* ---------- Đầu trang ---------- */
.dau {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  padding: 18px var(--le);
  max-width: 1240px; margin: 0 auto;
}
.ten-web { font-size: 1.625rem; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; margin-right: auto; }
.dau-lien-ket { display: flex; flex-wrap: wrap; gap: 4px 16px; order: 3; width: 100%; font-size: var(--chu); }
.dau-lien-ket a { text-decoration: none; padding: 6px 0; white-space: nowrap; }
.dau-lien-ket a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tim { display: flex; width: 100%; }
.tim input { flex: 1; }
.tim input {
  width: 9.5rem; font: inherit; font-size: 1rem; color: var(--muc);
  background: var(--giay); border: 0; padding: 10px 12px; border-radius: 0;
}
.tim input::placeholder { color: var(--phu); }
.tim button, .nut {
  font: 600 1rem/1 var(--serif); background: var(--reu); color: var(--reu-chu);
  border: 0; border-radius: 0; padding: 0 20px; min-height: 44px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  transition: transform var(--nhanh), background-color var(--nhanh);
}
.nut { min-height: 52px; padding: 0 28px; font-size: 1.0625rem; }
.nut:hover, .tim button:hover { background: #1f2716; }
.nut:active, .tim button:active { transform: translateY(1px) scale(.98); }
.nut-phu { background: var(--to-2); color: var(--muc); }
.nut-phu:hover { background: #cbb6a8; }
.nut.tat { background: transparent; color: var(--phu); cursor: default; }
@media (min-width: 768px) {
  .dau-lien-ket { order: 0; width: auto; }
  .tim { width: auto; }
  .tim input { width: 15rem; flex: none; }
}

/* ---------- Khung chung ---------- */
.chinh { max-width: 1240px; margin: 0 auto; padding: 0 var(--le); }
.khoi { margin-top: 96px; }
.khoi > h2 { font-size: var(--chu-dau); margin-bottom: 28px; }
@media (min-width: 1024px) { .khoi { margin-top: 160px; } }

.cham { display: inline-block; width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); margin: 0 .7em; vertical-align: .18em; }

/* Tờ giấy: góc khuyết tròn như thiệp in */
.the-giay {
  --khuyet: 18px;
  background: var(--giay);
  -webkit-mask: radial-gradient(circle var(--khuyet) at 0 0, #0000 98%, #000) top left / 51% 51% no-repeat,
                radial-gradient(circle var(--khuyet) at 100% 0, #0000 98%, #000) top right / 51% 51% no-repeat,
                radial-gradient(circle var(--khuyet) at 0 100%, #0000 98%, #000) bottom left / 51% 51% no-repeat,
                radial-gradient(circle var(--khuyet) at 100% 100%, #0000 98%, #000) bottom right / 51% 51% no-repeat;
          mask: radial-gradient(circle var(--khuyet) at 0 0, #0000 98%, #000) top left / 51% 51% no-repeat,
                radial-gradient(circle var(--khuyet) at 100% 0, #0000 98%, #000) top right / 51% 51% no-repeat,
                radial-gradient(circle var(--khuyet) at 0 100%, #0000 98%, #000) bottom left / 51% 51% no-repeat,
                radial-gradient(circle var(--khuyet) at 100% 100%, #0000 98%, #000) bottom right / 51% 51% no-repeat;
  padding: 44px 24px 48px;
}
@media (min-width: 768px) { .the-giay { --khuyet: 26px; padding: 72px 64px 80px; } }

.giay-hoi { font-style: italic; font-size: var(--chu-lon); line-height: 1.4; color: var(--phu); max-width: 30ch; margin: 0 auto 28px; }
.giay-ten { font-size: var(--chu-ten); line-height: .98; }
.giay-tin { font-size: var(--chu-nho); color: var(--phu); margin-top: 18px; }
.giay-tin + .giay-tin { margin-top: 6px; }
.giay-phu { color: var(--phu); margin-top: 14px; }
.giay-loai { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.giay-loai a, .ds-loai a {
  text-decoration: none; background: var(--to-3); padding: 8px 14px; border-radius: 999px; font-size: var(--chu-nho);
  transition: background-color var(--nhanh);
}
.giay-loai a:hover, .ds-loai a:hover { background: var(--to-1); }

/* ---------- Trang chủ ---------- */
.the-noi { text-align: center; max-width: 760px; margin: 40px auto 0; }
.noi-bia { display: none; }
@media (min-width: 900px) {
  .the-noi.co-bia { max-width: none; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; text-align: left; }
  .the-noi.co-bia .giay-hoi { margin: 0 0 28px; }
  .noi-bia { display: block; }
  .noi-bia .bia { max-width: 420px; }
}
.the-noi .nut { margin-top: 36px; }
.the-ket-qua { max-width: 760px; margin: 40px auto 0; text-align: center; }
.the-ket-qua h1 { font-size: var(--chu-dau); }

.ds-the { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .ds-the { grid-template-columns: 1fr 1fr; gap: 16px; } }
.the-truyen { background: var(--to-1); transition: transform var(--nhanh); }
.the-truyen.to-2 { background: var(--to-2); }
.the-truyen.to-3 { background: var(--to-3); }
.the-truyen:hover { transform: translateY(-3px); }
.the-truyen-lk { display: flex; gap: 20px; padding: 20px; text-decoration: none; height: 100%; }
.the-truyen-chu { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.the-truyen h3 { font-size: clamp(1.3125rem, 1.15rem + .6vw, 1.625rem); line-height: 1.12; }
.the-tin { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--chu-nho); }
.the-tac { color: var(--phu); margin-right: 4px; }
.the-loai { background: rgb(0 0 0 / .07); padding: 2px 10px; border-radius: 999px; font-size: .8125rem; }
.the-noi .giay-loai { justify-content: center; }
@media (min-width: 900px) { .the-noi.co-bia .giay-loai { justify-content: flex-start; } }
.the-hoi { margin-top: 10px; font-style: italic; color: var(--phu); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.the-chan { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; font-size: var(--chu-nho); }
.the-doc { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 768px) { .the-truyen-lk { padding: 28px; gap: 28px; } }

.bia { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; height: auto; }
.bia-nho { width: 84px; flex: none; }
.bia-vua { width: 168px; }
.bia-lon { width: 100%; max-width: 460px; }
@media (min-width: 768px) { .bia-nho { width: 108px; } .bia-vua { width: 240px; } }
.bia-chu {
  display: flex; align-items: flex-end; padding: 10%;
  background: var(--reu); color: var(--reu-chu);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; overflow: hidden;
  container-type: inline-size;
}
.bia-chu span { font-size: max(11px, 14cqi); }
.bia-nho.bia-chu span { display: none; }
.noi-bia { text-decoration: none; }
.bia-chu.mau-2 { background: #6b3f34; color: #efe9e4; }
.bia-chu.mau-3 { background: #31424e; color: #e6ecef; }

.khoi-nhieu { display: grid; gap: 32px; background: var(--to-2); padding: 32px 20px; }
.nhieu-dau { display: flex; justify-content: center; align-items: flex-start; }
.nhieu-dau .bia-lon { max-width: 240px; }
@media (min-width: 900px) { .nhieu-dau .bia-lon { max-width: 420px; } }
.nhieu-than h2 { font-size: var(--chu-dau); margin-bottom: 24px; }
.ds-nhieu { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ds-nhieu a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 16px; text-decoration: none; transition: background-color var(--nhanh); }
.ds-nhieu a:hover { background: rgba(28, 28, 28, .07); }
.nhieu-ten { font-size: var(--chu-lon); font-weight: 600; line-height: 1.2; }
.ds-nhieu li:first-child .nhieu-ten { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 700; }
.nhieu-so { font-size: var(--chu-nho); color: var(--phu); white-space: nowrap; }
@media (min-width: 900px) {
  .khoi-nhieu { grid-template-columns: 1fr 1fr; padding: 56px; gap: 56px; align-items: center; min-height: 80svh; }
}

.ds-loai { display: flex; flex-wrap: wrap; gap: 10px; }
.ds-loai a { font-size: var(--chu-lon); padding: 12px 22px; background: var(--giay); }
.ds-loai a[aria-current] { background: var(--reu); color: var(--reu-chu); }
.loai-so { font-size: var(--chu-nho); color: var(--phu); margin-left: 8px; font-variant-numeric: tabular-nums; }
.loai-them { margin-top: 18px; }
.giay-loai span { background: var(--to-3); padding: 8px 14px; border-radius: 999px; font-size: var(--chu-nho); color: var(--phu); }

/* ---------- Trang truyện ---------- */
.the-truyen-lon .giay-ten { font-size: clamp(2.25rem, 1.5rem + 3.6vw, 4.25rem); }
.the-truyen-lon { margin-top: 40px; display: grid; gap: 28px; justify-items: center; text-align: center; }
.the-truyen-lon .giay-loai { justify-content: center; }
.nut-hang { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; justify-content: center; }
@media (min-width: 900px) {
  .the-truyen-lon { grid-template-columns: auto 1fr; gap: 64px; justify-items: start; text-align: left; align-items: center; }
  .the-truyen-lon .giay-loai, .the-truyen-lon .nut-hang { justify-content: flex-start; }
}
.khoi-gioi-thieu { display: grid; gap: 20px; }
.khoi-gioi-thieu > h2 { margin-bottom: 4px; }
.khoi-gioi-thieu p { max-width: 66ch; }
.trich { margin: 0; font-style: italic; font-size: clamp(1.25rem, 1.15rem + .5vw, 1.625rem); line-height: 1.35; max-width: 34ch; }
@media (min-width: 900px) {
  .khoi-gioi-thieu { grid-template-columns: 5fr 7fr; column-gap: 64px; }
  .khoi-gioi-thieu > h2 { grid-column: 1 / -1; }
  .khoi-gioi-thieu .trich { grid-row: span 6; }
}
.khoi-muc-luc { background: var(--giay); padding: 32px 20px; }
.muc-luc { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.muc-luc a { display: flex; gap: 16px; align-items: baseline; padding: 14px 12px; text-decoration: none; transition: background-color var(--nhanh); }
.muc-luc a:hover { background: var(--to-3); }
.muc-luc a span:first-child { font-weight: 600; white-space: nowrap; }
.ml-ten { color: var(--phu); }
.muc-luc a.da-doc span:first-child::after { content: " · đã đọc"; font-weight: 400; color: var(--phu); }
@media (min-width: 768px) { .khoi-muc-luc { padding: 56px; } .muc-luc { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 24px; } }

/* ---------- Chân trang: mặt sau tờ giấy, mép trên khuyết tròn ---------- */
.chan { padding: 0 var(--le) var(--le); margin-top: 120px; }
.chan-the {
  max-width: 1080px; margin: 0 auto; background: var(--giay);
  padding: 56px 24px 24px; display: grid; gap: 28px;
  -webkit-mask: radial-gradient(circle 22px at 50% 0, #0000 98%, #000) top / 64px 100% repeat-x;
          mask: radial-gradient(circle 22px at 50% 0, #0000 98%, #000) top / 64px 100% repeat-x;
}
.chan-ten { font-size: var(--chu-dau); font-weight: 700; letter-spacing: -0.02em; line-height: 1; margin-bottom: 14px; }
.chan-loi p:last-child { max-width: 46ch; }
.chan-lien-ket { display: grid; gap: 10px; align-content: start; font-size: 1.125rem; }
.chan-lien-ket a { text-decoration: none; }
.chan-lien-ket a:hover { text-decoration: underline; text-underline-offset: 4px; }
.chan-in { grid-column: 1 / -1; text-align: center; font-size: var(--chu-nho); color: var(--phu); padding-top: 24px; }
@media (min-width: 768px) {
  .chan-the { grid-template-columns: 2fr 1fr; padding: 80px 64px 28px; gap: 48px; }
}

/* ---------- Trang đọc ---------- */
html[data-doc] { --nen-doc: #f3ecdd; --muc-doc: #24201a; --phu-doc: #5d5548; --o-doc: #e8dfcc; --co-chu: 20px; }
html[data-doc][data-nen="sang"] { --nen-doc: #fcfbf8; --muc-doc: #1c1c1c; --phu-doc: #4c5560; --o-doc: #eeece6; }
html[data-doc][data-nen="toi"] { --nen-doc: #15181b; --muc-doc: #d8d4cb; --phu-doc: #9ba3ab; --o-doc: #22272c; color-scheme: dark; }
.trang-doc { background: var(--nen-doc); color: var(--muc-doc); }
.trang-doc .chan-the { background: var(--o-doc); color: var(--muc-doc); }
.trang-doc .chan-in { color: var(--phu-doc); }

.doc-dau {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--le); background: var(--nen-doc);
  transition: transform 260ms cubic-bezier(.2, .7, .2, 1);
}
.doc-dau.an-di { transform: translateY(-100%); }
.doc-ve { text-decoration: none; font-weight: 600; padding: 8px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-ve::before { content: "‹ "; }
.doc-aa {
  font: 600 1.0625rem var(--serif); color: var(--muc-doc); background: var(--o-doc);
  border: 0; min-width: 48px; min-height: 44px; cursor: pointer; transition: transform var(--nhanh);
}
.doc-aa:active { transform: scale(.95); }
.cai-dat-doc {
  position: fixed; z-index: 6; top: 60px; right: var(--le); width: min(340px, calc(100vw - 2 * var(--le)));
  background: var(--o-doc); color: var(--muc-doc); padding: 18px; display: grid; gap: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
}
.cai-dat-doc[hidden] { display: none; }
.cd-hang { display: flex; align-items: center; gap: 8px; }
.cd-hang span { flex: 1; font-size: var(--chu-nho); }
.cd-hang button {
  font: 600 .9375rem var(--serif); color: var(--muc-doc); background: var(--nen-doc);
  border: 0; min-height: 44px; padding: 0 12px; cursor: pointer; transition: background-color var(--nhanh);
}
.cd-hang button[aria-pressed="true"] { background: var(--reu); color: var(--reu-chu); }

.doc { max-width: 40rem; margin: 0 auto; padding: 24px 20px 0; }
.doc-truyen { font-size: var(--chu-nho); color: var(--phu-doc); }
.doc-truyen a { text-decoration: none; }
.doc-chuong { font-size: clamp(1.875rem, 1.5rem + 2vw, 2.75rem); margin: 8px 0 36px; }
.doc-chu p { font-size: var(--co-chu); line-height: 1.75; margin: 0 0 1.05em; overflow-wrap: break-word; }
html[data-phong="tron"] .doc-chu p { font-family: var(--tron); line-height: 1.8; }
.doc-het { font-style: italic; text-align: center; margin: 48px 0 0; color: var(--phu-doc); }
.doc-dh { display: flex; gap: 8px; margin: 48px 0 0; align-items: stretch; }
.doc-dh .nut { flex: 1; padding: 0 12px; }
.trang-doc .nut-phu { background: var(--o-doc); color: var(--muc-doc); }
.trang-doc .nut.tat { background: transparent; color: var(--phu-doc); }
.chon-chuong {
  font: 600 1rem var(--serif); color: var(--muc-doc); background: var(--o-doc);
  border: 0; border-radius: 0; padding: 0 10px; min-height: 52px; max-width: 8.5rem;
}

.tai-tro { margin: 36px 0; }
.tai-tro a {
  display: flex; align-items: center; gap: 14px; padding: 14px; text-decoration: none;
  background: var(--o-doc); color: var(--muc-doc); transition: transform var(--nhanh);
}
.tai-tro a:hover { transform: translateY(-2px); }
.tai-tro img { width: 72px; height: 72px; object-fit: cover; flex: none; }
.tai-tro-chu { display: grid; gap: 2px; flex: 1; min-width: 0; }
.tai-tro-ten { font-weight: 600; line-height: 1.3; font-size: 1rem; }
.tai-tro-gia { font-weight: 700; font-size: 1rem; }
.tai-tro-nut { background: var(--reu); color: var(--reu-chu); padding: 10px 16px; font-weight: 600; font-size: .9375rem; }
.doc-chu .tai-tro-nhan, .tai-tro-nhan { font-size: .8125rem; line-height: 1.4; color: var(--phu-doc); margin: 6px 0 0; }

/* ---------- Chuyển động: tờ giấy và thẻ trượt lên khi mở trang ---------- */
@media (prefers-reduced-motion: no-preference) {
  .the-giay, .doc-chuong, .doc-chu { animation: len 640ms cubic-bezier(.2, .7, .2, 1) both; }
  .giay-hoi, .giay-ten, .giay-tin, .the-noi .nut, .truyen-bia { animation: len 640ms cubic-bezier(.2, .7, .2, 1) both; }
  .giay-ten { animation-delay: 80ms; } .giay-tin { animation-delay: 160ms; } .the-noi .nut { animation-delay: 240ms; }
  .doc-chu { animation-delay: 90ms; }
  .hien-dan { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms cubic-bezier(.2, .7, .2, 1); }
  .hien-dan.da-hien { opacity: 1; transform: none; }
}
@keyframes len { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Chống chép (khách), dòng ghi nguồn giữa chương */
.cam-chep .doc-chu { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.doc-chu .doc-nguon { font-size: .82em; opacity: .55; font-style: italic; text-align: center; margin: 1.4em 0; }

/* Màn ủng hộ Shopee: không có JS thì đọc bình thường. Có JS: chỗ chặn là mốc vô hình,
   đọc tới mốc thì doc.js thêm phu-man để phủ kín màn hình (sếp 14/11: phải che hết mới có người bấm) */
.chan-shopee { display: none; }
.co-chan .chan-shopee { display: block; height: 1px; }
.co-chan .chan-hop { display: none; }
.chan-shopee.phu-man { position: fixed; inset: 0; z-index: 1000; height: 100vh; height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 24, 16, .78); }
.phu-man .chan-hop { display: grid; gap: 12px; width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow: auto; padding: 24px 20px; text-align: center; background: #ecebe6; color: #1d1d1b; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
html.khoa-cuon { overflow: hidden; }
.co-chan .sau-chan, .co-chan .doc-het, .co-chan > .tai-tro, .co-chan > .qc-o, .co-chan > .doc-dh { display: none; }
.chan-shopee p { margin: 0; text-indent: 0; line-height: 1.55; }
.chan-shopee .chan-tieu-de { font-weight: 700; font-size: 1.15em; }
.chan-sp { display: grid; gap: 10px; justify-items: center; color: inherit; text-decoration: none; }
.chan-sp img { width: min(100%, 240px); aspect-ratio: 1; object-fit: cover; }
.chan-sp-ten { font-weight: 600; font-size: .95em; }
.chan-nut { font-size: 1rem; padding: 12px 22px; }
.chan-shopee .chan-nho { font-size: .82em; opacity: .7; }

/* Trang tài khoản */
.tk { max-width: 460px; }
.tk-form { display: grid; gap: 14px; margin-top: 22px; text-align: left; }
.tk-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.tk-form input { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid rgba(0,0,0,.2); background: #fff; border-radius: 0; }
.tk-form .nut { margin-top: 6px; }
.tk-loi { margin-top: 16px; padding: 10px 14px; background: #f3dcd5; color: #6b1f12; }
.tk-google { display: flex; align-items: center; justify-content: center; margin-top: 22px; text-decoration: none; }
.tk-hoac { margin: 18px 0 -8px; color: var(--phu); font-size: .9rem; }
.dau-lien-ket .dau-tv { font-weight: 600; max-width: 9em; overflow: hidden; text-overflow: ellipsis; }

/* Ô quảng cáo AdSense */
.qc-o { margin: 32px 0; min-height: 120px; }
.qc-nhan, .doc-chu .qc-nhan { font-size: .75rem; text-align: center; color: var(--phu); margin: 0 0 6px; text-indent: 0; }

/* Trang Giới thiệu, Liên hệ, Chính sách */
.trang-phu { max-width: 760px; margin: 40px auto 0; }
.trang-phu h2 { margin-top: 32px; font-size: 1.25rem; }
.trang-phu p { margin-top: 14px; line-height: 1.7; }
.tk-bao { margin-top: 16px; padding: 10px 14px; background: #dfe8d3; color: #2c3620; }
.tk-nguy { margin-top: 32px; text-align: left; border-top: 1px solid rgba(0,0,0,.15); padding-top: 18px; }
.tk-nguy summary { cursor: pointer; color: var(--phu); }
.tk-nguy h2 { font-size: 1.1rem; margin: 0; }
.tk-nguy .tk-form p { margin: 0; color: var(--phu); font-size: .95rem; }
.tk-form .tk-chon { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.tk-form .tk-chon input { width: auto; }
.tk-xoa { background: #8a2a17; }
.tk-xoa:hover { background: #6b1f12; }

/* Màn cần đăng nhập (chương khóa) */
.can-dang-nhap { max-width: 720px; margin: 40px auto 0; }
.can-dang-nhap h2 { margin-top: 28px; text-align: center; }
.can-dang-nhap > .giay-phu { text-align: center; }
.cdn-trich { position: relative; max-height: 11em; overflow: hidden; margin-top: 18px; line-height: 1.8; }
.cdn-trich p + p { margin-top: 1em; }
.cdn-trich::after { content: ""; position: absolute; inset: auto 0 0; height: 70%; background: linear-gradient(transparent, var(--giay, #fff)); }
.cdn-nut { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }
