/* 5 font chọn được trong hệ chữ (máy chủ gộp các file CSS nội bộ thành 1 file; trình duyệt chỉ tải file font đang dùng) */
/* fonts/montserrat.css */
/* Montserrat — lưu trên máy chủ, bộ ký tự tiếng Việt + Latin (bỏ Latin mở rộng: tiếng Việt đã có bộ riêng, bớt 1 file tải). Nguồn: fonts.googleapis.com/css2?family=Montserrat:wght@400..900 */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/montserrat-400-900-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/montserrat-400-900-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


/* fonts/coiny.css */
/* Coiny — lưu trên máy chủ, bộ ký tự tiếng Việt + Latin (bỏ Latin mở rộng: tiếng Việt đã có bộ riêng, bớt 1 file tải). Nguồn: fonts.googleapis.com/css2?family=Coiny:wght@400 */
@font-face { font-family: 'Coiny'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/coiny-400-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Coiny'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/coiny-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


/* fonts/exo-2.css */
/* Exo 2 — lưu trên máy chủ, bộ ký tự tiếng Việt + Latin (bỏ Latin mở rộng: tiếng Việt đã có bộ riêng, bớt 1 file tải). Nguồn: fonts.googleapis.com/css2?family=Exo+2:wght@400..900 */
@font-face { font-family: 'Exo 2'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/exo-2-400-900-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Exo 2'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/exo-2-400-900-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


/* fonts/be-vietnam-pro.css */
/* Be Vietnam Pro — lưu trên máy chủ, bộ ký tự tiếng Việt + Latin (bỏ Latin mở rộng: tiếng Việt đã có bộ riêng, bớt 1 file tải). Nguồn: fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;600;700;800;900 */
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/be-vietnam-pro-400-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/be-vietnam-pro-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/be-vietnam-pro-600-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/be-vietnam-pro-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/be-vietnam-pro-700-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/be-vietnam-pro-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/be-vietnam-pro-800-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/be-vietnam-pro-800-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 900; font-display: swap; src: url(/fonts/be-vietnam-pro-900-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 900; font-display: swap; src: url(/fonts/be-vietnam-pro-900-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


/* fonts/nunito.css */
/* Nunito — font gốc của trang, lưu trên máy chủ. Font biến thiên: mọi độ đậm 400–900 trong 1 file mỗi bộ ký tự.
   Chỉ giữ bộ ký tự tiếng Việt + Latin (bỏ Latin mở rộng: tiếng Việt đã có bộ riêng, bớt 1 file tải). Tải lại: fonts.googleapis.com/css2?family=Nunito:wght@400..900 */
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/nunito-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/nunito-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


/* palette.css */
/* palette.css — bảng màu kiểu Notion + cỡ chữ, dùng chung cho trang khách và trình soạn bài.
   Tên cố định (máy chủ chỉ nhận các tên này). tx-* = màu chữ, bg-* = màu nền, fs-* = cỡ chữ. */
.tx-gray { color: #787774; }   .bg-gray { background-color: #F1F1EF; }
.tx-brown { color: #9F6B53; }  .bg-brown { background-color: #F4EEEE; }
.tx-orange { color: #D9730D; } .bg-orange { background-color: #FBECDD; }
.tx-yellow { color: #CB912F; } .bg-yellow { background-color: #FBF3DB; }
.tx-green { color: #448361; }  .bg-green { background-color: #EDF3EC; }
.tx-blue { color: #337EA9; }   .bg-blue { background-color: #E7F3F8; }
.tx-purple { color: #9065B0; } .bg-purple { background-color: #F4F0F7; }
.tx-pink { color: #C14C8A; }   .bg-pink { background-color: #F9EEF3; }
.tx-red { color: #D44C47; }    .bg-red { background-color: #FDEBEC; }

/* Nền cho một đoạn chữ (không phải cả khối): bo góc nhẹ, xuống dòng vẫn giữ nền mỗi dòng */
span[class*="bg-"] { border-radius: 3px; padding: 0 .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Cỡ chữ so với cỡ chữ đoạn văn (Medium = không có lớp nào) */
.fs-sm { font-size: .85em; }
.fs-lg { font-size: 1.25em; }
.fs-xl { font-size: 1.6em; line-height: 1.3; }
.fs-xxl { font-size: 2.1em; line-height: 1.2; }


/* site-chrome.css */
/* site-chrome.css — thanh đầu trang (header) và chân trang (footer) của mọi trang khách.
   Máy chủ tự chèn HTML header/footer vào từng trang (xem siteHeader / siteFooter trong _worker.js).
   Khung xem trước footer trong trang admin "Thông tin trang" cũng dùng file này.
   Biến thiết kế (xem đầu style.css): --hd-* thanh đầu trang · --ft-* chân trang · --inp-* ô tìm. Mọi var() đều có giá trị gốc
   dự phòng, vì trang admin dùng file này mà không có các biến của trang khách.
   Giao diện "BRO Đêm Sao": thanh đầu trang tím đêm trong mờ, chữ trắng, tab đang mở chữ vàng; chân trang tím đêm. */

/* ---------- Header: dính trên cùng, nền trắng ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  align-self: center; width: 100vw; margin-bottom: 18px;
  background: var(--hd-bg, var(--c-night, #230D47)); background: var(--hd-bg, color-mix(in srgb, var(--c-night, #230D47) 86%, transparent));
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  color: var(--hd-fg, #fff); padding-top: env(safe-area-inset-top, 0px);
  transition: box-shadow .2s ease;
}
.site-header.scrolled, .site-header.menu-open { box-shadow: 0 6px 20px rgba(10,5,30,.35); }
.sh-bar { position: relative; max-width: 960px; height: 56px; margin: 0 auto; padding: 0 8px; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; }
.sh-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: var(--r-md, 12px); background: none; color: var(--hd-fg, #fff); cursor: pointer; }
.sh-btn:hover { background: var(--hd-hover, rgba(255,255,255,.14)); }
.sh-btn:focus-visible { outline: 2px solid var(--c-accent, #FEE362); outline-offset: 1px; }
.sh-btn svg { width: 24px; height: 24px; }
.sh-back { grid-column: 1; }
.sh-menu-btn { grid-column: 3; justify-self: end; }
.sh-logo { grid-column: 2; justify-self: center; display: flex; align-items: center; height: 56px; max-width: 100%; }
.sh-logo img { height: 36px; width: auto; max-width: min(200px, 100%); object-fit: contain; }
.sh-name { font-size: 1.0625rem; font-family: var(--f-head, inherit); font-weight: var(--fw-head, 800); color: var(--hd-fg, inherit); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-overlay { position: fixed; inset: 0; top: calc(56px + env(safe-area-inset-top, 0px)); background: rgba(10,5,30,.45); }
.sh-menu { position: absolute; top: 100%; right: 0; left: 0; max-width: 960px; margin: 0 auto; padding: 8px 12px 14px; background: var(--c-surface, #fff); color: var(--c-text, #281D62); border-top: 1px solid var(--line, #E2E8F0); box-shadow: 0 12px 24px rgba(10,5,30,.3); animation: sh-drop .16s ease-out; }
@media (min-width: 760px) {
  .sh-menu { left: auto; right: max(8px, calc((100vw - 960px) / 2 + 8px)); width: 300px; margin-top: 4px; border: 1px solid var(--line, #E2E8F0); border-radius: 14px; }
}
.sh-item { display: flex; align-items: center; gap: 12px; padding: 12px 12px; border-radius: calc(var(--r-md, 12px) * 5 / 6); font-family: var(--t5-f, inherit); font-size: 1rem; font-weight: 700; color: var(--c-text, #281D62); text-decoration: none; }
.sh-item:hover { background: var(--c-subtle, #F1F5F9); }
.sh-item .ic { width: 22px; height: 22px; color: var(--c-brand, #0673FD); }
.sh-item.on { background: var(--blue-50, #EFF6FF); color: var(--blue-600, #2563EB); font-weight: 800; }
@keyframes sh-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sh-menu { animation: none; } }

/* ---------- Nút chọn ngôn ngữ: 2 lá cờ, cờ đang dùng được tô đậm ---------- */
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--hd-hover, rgba(255,255,255,.16)); }
.lang-opt { display: grid; place-items: center; width: 36px; height: 28px; border-radius: 999px; opacity: .5; filter: grayscale(.5); }
.lang-opt:hover { opacity: .85; filter: none; }
.lang-opt.on { background: var(--c-surface, #fff); opacity: 1; filter: none; box-shadow: 0 1px 4px rgba(15,23,42,.18); }
.lang-opt:focus-visible { outline: 2px solid var(--blue, #3B82F6); outline-offset: 1px; }
.lang-opt img { width: 22px; height: 15px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(15,23,42,.1); }
.site-header.is-home .sh-bar { grid-template-columns: auto 1fr 48px; padding-left: 12px; }
.sh-lang { grid-column: 1; justify-self: start; }
.sh-menu-lang { display: flex; justify-content: center; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line, #E2E8F0); }

/* ---------- Footer: nằm cuối trang (không dính) ---------- */
.sf-space { flex: 0 0 48px; }
.site-footer {
  container-type: inline-size; align-self: center; width: 100vw; margin-top: auto;
  background: var(--ft-bg, var(--c-night, #230D47)); border-top: 1px solid var(--ft-border, rgba(255,255,255,.12)); color: var(--ft-fg, #fff);
}
.sf-inner { max-width: 960px; margin: 0 auto; padding: 28px 20px 22px; display: flex; flex-direction: column; gap: 22px; }
.sf-brand { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sf-logo img { height: 50px; width: auto; max-width: 220px; object-fit: contain; }
.sf-name { font-size: 1.0625rem; font-family: var(--f-head, inherit); font-weight: var(--fw-head, 800); }
.sf-addr { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sf-addr li { display: flex; align-items: center; gap: 10px; font-size: 0.90625rem; line-height: 1.45; color: var(--ft-fg2, #E9E0FD); }
.sf-map { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ft-border, rgba(255,255,255,.22)); background: rgba(255,255,255,.1); }
.sf-map:hover { background: rgba(255,255,255,.18); }
.sf-map svg { width: 20px; height: 20px; }
.sf-cta { display: flex; flex-direction: column; gap: 10px; }
.sf-btn { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 22px; border-radius: var(--btn-r, var(--r-md, 12px)); font-family: var(--t5-f, inherit); font-size: 0.9375rem; font-weight: 800; text-align: center; text-decoration: none; box-shadow: 0 3px 10px rgba(15,23,42,.12); }
.sf-copy { max-width: 960px; margin: 0 auto; padding: 12px 20px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--ft-border, rgba(255,255,255,.12)); font-size: 0.8125rem; color: var(--ft-muted, #B9A9F0); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
/* Màn rộng: cụm logo + địa chỉ bên trái, cụm nút bên phải */
@container (min-width: 720px) {
  .sf-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 40px; }
  .sf-cta { flex: 0 0 auto; align-items: stretch; min-width: 220px; }
}

/* ---------- Header có thanh tab (mọi trang trừ trang chủ) ----------
   Hàng logo: 🔍 (và ← ở trang con) bên trái · logo giữa · cờ ngôn ngữ bên phải. Bên dưới: thanh tab.
   Cuộn xuống: cả header trượt lên đúng chiều cao hàng logo (site.js), chỉ còn thanh tab dính trên cùng. */
.site-header.sh2 { transition: transform .22s ease, box-shadow .2s ease; will-change: transform; }
.sh2 .sh-row { position: relative; max-width: 960px; height: 56px; margin: 0 auto; padding: 0 8px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.sh2 .sh-left { grid-column: 1; justify-self: start; display: flex; align-items: center; gap: 2px; }
.sh2 .sh-logo { grid-column: 2; }
.sh2 .sh-right { grid-column: 3; justify-self: end; display: flex; align-items: center; padding-right: 4px; }
.sh2 .sh-logo img { height: 34px; }
.sh-lang2 { padding: 2px; }
.sh-lang2 .lang-opt { width: 34px; height: 26px; }
@media (max-width: 359px) { .sh2 .sh-logo img { height: 28px; } .sh-lang2 .lang-opt { width: 30px; } }

.sh-tabs {
  display: flex; max-width: 760px; margin: 0 auto; padding: 0 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.sh-tabs::-webkit-scrollbar { display: none; }
.sh2 { border-bottom: 1px solid var(--hd-border, rgba(255,255,255,.12)); }
.sh-tab {
  position: relative; flex: 1 0 auto; display: block; height: 44px; padding: 0 9px; line-height: 44px; text-align: center; white-space: nowrap;
  font-family: var(--t5-f, inherit); font-size: 0.875rem; font-weight: 700; color: var(--hd-tab-fg, #CCB6FE); text-decoration: none;
}
.sh-tab:hover { color: var(--hd-fg, #fff); }
.sh-tab.on { color: var(--hd-tab-on, var(--c-accent, #FEE362)); font-weight: 800; }
.sh-tab.on::after { content: ''; position: absolute; left: 9px; right: 9px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--hd-tab-line, var(--c-accent, #FEE362)); box-shadow: 0 0 10px var(--hd-tab-line, var(--c-accent, #FEE362)); }
.sh-tab:focus-visible { outline: 2px solid var(--c-accent, #FEE362); outline-offset: -2px; border-radius: 8px; }
@media (max-width: 370px) { .sh-tab { padding: 0 7px; font-size: 0.84375rem; } .sh-tab.on::after { left: 7px; right: 7px; } }

/* Ô tìm game: phủ lên hàng logo */
.sh-search { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 0 8px 0 12px; background: var(--hd-bg, var(--c-night, #230D47)); }
.sh-search[hidden] { display: none; }
.sh-sbox { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: var(--inp-r, 999px); background: var(--inp-bg, rgba(255,255,255,.14)); color: #CCB6FE; }
.sh-sbox svg { width: 18px; height: 18px; flex: 0 0 18px; }
.sh-sbox input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font: inherit; font-size: 1rem; color: #fff; }
.sh-sbox input::placeholder { color: #B9A9F0; }
.sh-sbox input::-webkit-search-cancel-button { -webkit-appearance: none; }
.sh-sbox:focus-within { box-shadow: 0 0 0 2px var(--c-accent, #FEE362); }
.sh-scancel { flex: 0 0 auto; border: 0; background: none; padding: 8px 6px; font: inherit; font-family: var(--t5-f, inherit); font-size: 0.9375rem; font-weight: 700; color: var(--c-accent, #FEE362); cursor: pointer; }
.sh-sugg {
  position: absolute; top: 100%; left: 8px; right: 8px; max-height: min(70vh, 440px); overflow-y: auto;
  background: var(--c-surface, #fff); color: var(--c-text, #281D62); border: 1px solid var(--line, #E2E8F0); border-radius: 0 0 14px 14px; box-shadow: 0 16px 32px rgba(10,5,30,.4);
}
.sh-sugg[hidden] { display: none; }
.sh-sitem { display: flex; align-items: center; gap: 12px; padding: 8px 12px; color: var(--c-text, #281D62); text-decoration: none; }
.sh-sitem:hover, .sh-sitem:focus-visible { background: var(--c-subtle, #F1F5F9); outline: none; }
.sh-sthumb { flex: 0 0 34px; width: 34px; height: 44px; border-radius: 6px; overflow: hidden; background: var(--c-line, #E2E8F0); }
.sh-sthumb img { width: 100%; height: 100%; object-fit: cover; }
.sh-sname { flex: 1; min-width: 0; font-size: 0.9375rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-sall { display: block; padding: 12px; border-top: 1px solid var(--line, #E2E8F0); font-family: var(--t5-f, inherit); font-size: 0.875rem; font-weight: 800; color: var(--c-brand, #0673FD); text-decoration: none; text-align: center; }
.sh-snone { padding: 14px 12px; font-size: 0.875rem; color: var(--c-muted, #64748B); text-align: center; }
@media (prefers-reduced-motion: reduce) { .site-header.sh2 { transition: none; } }



/* ===== Biến thiết kế (design tokens) — trang admin "Giao diện" chỉnh được. Giao diện gốc: "BRO Đêm Sao" (màu đo từ poster) =====
   Máy chủ chèn <style id="theme"> ngay sau file này để ghi đè các biến theo lựa chọn trong admin.
   TẦNG 1 · Phong cách chung (luôn có giá trị):
     Màu: --c-brand (xanh điện: link, giá) · --c-accent (vàng sao: nút chính, tab đang chọn) · --c-bg1/--c-bg2 (nền trời đêm trên → dưới)
       · --c-night (thanh dính, chân trang) · --c-surface/--c-text… (thẻ sáng và chữ trong thẻ).
     Chữ 5 cấp: --tN-f font · --tN-c màu khi nằm trên nền trang · --tN-fx hiệu ứng (cấp 1, 2). Chữ trong thẻ sáng dùng --c-text.
       1 Tiêu đề lớn · 2 Tiêu đề phụ (sapo) · 3 Nội dung · 4 Tiêu đề nhỏ (tên thẻ) · 5 Nút bấm. Xem khối "Hệ chữ 5 cấp" cuối file.
   TẦNG 2 · Thành phần dùng chung: --btn-* (nút chính) · --btn2-* (nút phụ) · --pill-* (tab viên thuốc) · --card-* (thẻ) ·
     --chip-* (chip thể loại) · --hd-* (thanh đầu trang) · --ft-* (chân trang) · --inp-* (ô tìm kiếm).
     KHÔNG khai báo sẵn: mỗi chỗ viết var(--x, giá trị gốc) → chưa chỉnh thì theo phong cách chung.
   --bg-1/--bg-2: nền riêng của trang đang xem (admin "Nền từng trang"), không có thì theo --c-bg1/--c-bg2.
   Tên cũ (--blue, --ink, --white…) giữ làm bí danh trỏ về tên mới. */
:root {
  --c-brand: #0673FD; --c-brand-strong: #0450B5; --c-brand-soft: #E6F0FF; --c-brand-soft2: #CCE0FF; --c-brand-ink: #FFFFFF;
  --c-accent: #FEE362; --c-accent-soft: #FFF8D6; --c-accent-soft2: #FFF1AD; --c-accent-ink: #281D62;
  --c-bg1: #2949B8; --c-bg2: #36136E; --c-night: #230D47;
  --c-surface: #FFFFFF; --c-text: #281D62; --c-text-2: #574C93; --c-muted: #6B5FA8; --c-line: #E4DEF7; --c-subtle: #F3F0FC;
  /* Hệ chữ 5 cấp */
  --t1-f: 'Coiny', 'Montserrat', system-ui, sans-serif; --t1-c: #FFFFFF;
  --t1-fx: 0 max(2px,.06em) 0 #0673FD, 0 max(4px,.12em) 0 #185EDB, 0 .3em .6em rgba(10,5,40,.45);
  --t2-f: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --t2-c: #FEE362; --t2-fx: 0 0 .45em rgba(254,227,98,.5);
  --t3-f: 'Be Vietnam Pro', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --t3-c: #E9E0FD; --t3-c2: #B9A9F0;
  --t4-f: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --t4-c: #FFFFFF;
  --t5-f: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fw-head: 800;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --pill: 999px;
  --sh-sm: 0 8px 22px rgba(14,5,28,.28);
  --sh-md: 0 14px 32px rgba(14,5,28,.4);
  --sh-cta: 0 4px 0 #BEAA4A; /* gờ 3D dưới nút chính */
  /* Ô nền trong mờ trên trời đêm (nút phụ, tab, chip) */
  --glass: rgba(255,255,255,.1); --glass-line: rgba(255,255,255,.4);
  /* bí danh tên cũ */
  --f-body: var(--t3-f); --f-head: var(--t4-f);
  --blue: var(--c-brand); --blue-600: var(--c-brand-strong); --blue-50: var(--c-brand-soft); --blue-100: var(--c-brand-soft2);
  --pink: var(--c-accent); --pink-50: var(--c-accent-soft); --pink-100: var(--c-accent-soft2);
  --ink: var(--c-text); --muted: var(--c-muted); --line: var(--c-line); --surface: var(--c-night); --white: var(--c-surface); --gray: var(--c-line); --black: var(--c-text);
  --sh-blue: var(--sh-cta); --sh-brand: var(--sh-cta); --sh-brand-lg: var(--sh-cta);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

/* Nền trời đêm chuyển màu (phủ cả trang, dài theo trang) + bụi sao li ti đứng yên */
body {
  font-family: var(--t3-f);
  background-color: var(--bg-2, var(--c-bg2));
  background-image:
    radial-gradient(1.4px 1.4px at 24px 40px, rgba(255,255,255,.55) 50%, transparent 52%),
    radial-gradient(1px 1px at 150px 90px, rgba(255,255,255,.4) 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 92px 170px, rgba(254,227,98,.5) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 210px 230px, rgba(204,182,254,.55) 50%, transparent 52%),
    radial-gradient(1px 1px at 60px 260px, rgba(255,255,255,.35) 50%, transparent 52%),
    linear-gradient(180deg, var(--bg-1, var(--c-bg1)), var(--bg-2, var(--c-bg2)));
  background-size: 250px 280px, 250px 280px, 250px 280px, 250px 280px, 250px 280px, 100% 100%;
  background-repeat: repeat, repeat, repeat, repeat, repeat, no-repeat;
  color: var(--t3-c);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  min-height: 100vh;
  /* Cột dọc: header trên cùng, footer luôn nằm cuối trang kể cả khi nội dung ngắn */
  display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { display: block; }

/* ===== Thanh quay lại ===== */
.topbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.topbar a {
  display: inline-flex; align-items: center;
  background: var(--btn2-bg, var(--glass)); border: 1.5px solid var(--btn2-border, var(--glass-line)); border-radius: var(--btn2-r, var(--pill));
  padding: 8px 14px; font-size: 0.875rem; font-weight: 700; color: var(--btn2-fg, #fff);
}

.page-title { font-size: clamp(2rem, 9vw, 3rem); line-height: 1.1; margin: 8px 0 20px; text-align: center; text-wrap: balance; }

/* ===== Trang chủ ===== */
body.home-page { display: flex; flex-direction: column; }
.home { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 88vh; gap: 6px; text-align: center; }
/* Khung logo vừa cả logo vuông lẫn logo ngang (cao 120px, rộng tối đa 280px) */
.logo { min-width: 120px; max-width: min(280px, 80vw); height: 120px; display: grid; place-items: center; margin-bottom: 4px; }
.logo img { width: auto; max-width: 100%; height: 100%; object-fit: contain; }
.logo .logo-fallback {
  width: 110px; height: 110px; border-radius: 26px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--pink)); color: var(--c-brand-ink); font-weight: 800; font-size: 1.375rem; letter-spacing: 1px;
}
.brand-name { font-size: 1.875rem; font-weight: 800; letter-spacing: 1px; }
.brand-tag { font-size: 0.875rem; color: var(--muted); font-weight: 600; margin-bottom: 22px; }

.nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.navc {
  background: var(--card-bg, var(--white)); border-radius: var(--card-r, var(--r-lg)); box-shadow: var(--card-sh, var(--sh-sm));
  padding: 18px; display: flex; flex-direction: column; gap: 6px; text-align: left;
}
.navc .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.4375rem; }
.navc .ic.b { background: var(--blue-50); }
.navc .ic.p { background: var(--pink-50); }
.navc .t { font-weight: 800; font-size: 1rem; }
.navc .s { font-size: 0.75rem; color: var(--muted); font-weight: 600; }

/* ===== Bảng giá ===== */
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card { background: var(--card-bg, var(--white)); color: var(--c-text); border-radius: var(--card-r, var(--r-lg)); box-shadow: var(--card-sh, var(--sh-sm)); overflow: hidden; transition: transform .16s ease, box-shadow .16s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--card-sh-hover, var(--sh-md)); }
.card-image {
  height: 150px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--blue), #60A5FA);
  display: grid; place-items: center; color: rgba(255,255,255,.85); font-size: 0.8125rem; font-weight: 700; letter-spacing: 1px;
}
.card-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.30), transparent 60%); }
.card-image img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.card-body { padding: 16px; }
.card-name { font-size: 1.125rem; font-weight: 800; margin-bottom: 4px; }
.card-price { font-size: 1.375rem; font-weight: 800; color: var(--blue-600); }
.card-price small { font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.card-note { margin-top: 12px; font-size: 0.9375rem; color: var(--muted); white-space: pre-wrap; }
.card .more {
  display: inline-block; margin-top: 14px; padding: 11px 20px; border-radius: var(--btn-r, var(--r-md));
  background: var(--btn-bg, var(--c-accent)); color: var(--btn-fg, var(--c-accent-ink)); font-size: 0.9375rem; font-weight: 800; box-shadow: var(--btn-sh, var(--sh-cta));
}

.placeholder-note { margin-top: 8px; color: var(--t3-c2); font-size: 1rem; }

/* ===== List game ===== */
body.list-page { max-width: 960px; margin: 0 auto; padding: 0; }
body.list-page .site-header { margin-bottom: 0; }
body.sheet-on { overflow: hidden; }

/* Thanh lọc dính ngay dưới header. --sh-h = chiều cao header (site.js cập nhật khi header đổi) */
.lg-bar {
  position: sticky; top: var(--sh-h, calc(56px + env(safe-area-inset-top, 0px))); z-index: 40;
  display: flex; align-items: center; gap: 7px; padding: 10px 16px; background: transparent;
  transition: top .22s ease, background .2s ease;
}
.lg-bar.stuck { background: var(--c-night); background: color-mix(in srgb, var(--c-night) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 8px 18px -10px rgba(10,5,30,.6); }
.lg-mwrap {
  flex: 0 0 132px; min-width: 0; display: flex; align-items: center; height: 42px; border-radius: var(--r-md);
  background: var(--white); color: var(--c-text); border: 1px solid var(--line); box-shadow: var(--sh-sm); overflow: hidden;
} /* "Tất cả máy": rộng cố định; đã chọn 1 máy (.on) thì giãn vừa tên máy */
.lg-mwrap.on { border-color: transparent; }
.lg-mbtn {
  flex: 1 1 auto; min-width: 0; height: 100%; display: flex; align-items: center; gap: 4px; padding: 0 8px 0 12px;
  border: 0; background: none; color: inherit; font: inherit; font-size: 0.90625rem; font-weight: 800; cursor: pointer; text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lg-mbtn span { overflow: hidden; text-overflow: ellipsis; }
/* Đã chọn máy: nút luôn rộng vừa đủ chữ, không co lại. Khung dùng lưới (chữ | ✕) vì Safari (iPhone) đo sai bề rộng khung flex → mất chữ */
.lg-mwrap.on { flex: 0 0 auto; display: grid; grid-template-columns: auto 30px; }
.lg-mwrap.on .lg-mbtn { display: block; flex: 0 0 auto; padding: 0 8px 0 11px; line-height: 1.1; overflow: visible; }
.lg-mwrap.on .lg-mbtn span { display: block; overflow: visible; }
.lg-mwrap.on .mb-br { font-size: 0.6875rem; font-weight: 700; opacity: .85; margin-bottom: 1px; }
.lg-mwrap.on .mb-m { font-size: 0.9375rem; }
.lg-mwrap.on .mb-br:empty { display: none; }
@media (min-width: 480px) {
  .lg-mwrap.on .lg-mbtn span { display: inline; }
  .lg-mwrap.on .mb-br { font-size: inherit; font-weight: inherit; opacity: 1; margin: 0; }
  .lg-mwrap.on .mb-br:not(:empty)::after { content: " · "; white-space: pre; }
  .lg-mwrap.on .mb-m { font-size: inherit; }
}
.lg-mbtn svg { width: 16px; height: 16px; flex: 0 0 16px; }
.lg-mclear { flex: 0 0 30px; height: 100%; border: 0; background: rgba(0,0,0,.12); color: inherit; font: inherit; font-size: 0.875rem; font-weight: 800; cursor: pointer; }
/* Dãy nút hệ máy: thêm nhiều hệ máy thì cuộn ngang (nút "Tất cả máy" và nút lọc đứng yên 2 bên).
   Lề trong + lề âm để bóng đổ / hiệu ứng nảy của nút không bị khung cuộn cắt. .fl / .fr: còn nút khuất bên trái / phải → mép mờ dần */
.lg-plats {
  flex: 1 1 auto; min-width: 0; display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  margin: -8px -4px -14px; padding: 8px 4px 14px;
}
.lg-plats::-webkit-scrollbar { display: none; }
.lg-plats > * { flex: 0 0 auto; }
.lg-plats.fr { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 34px), transparent); }
.lg-plats.fl { -webkit-mask-image: linear-gradient(to right, transparent, #000 26px); mask-image: linear-gradient(to right, transparent, #000 26px); }
.lg-plats.fl.fr { -webkit-mask-image: linear-gradient(to right, transparent, #000 26px, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(to right, transparent, #000 26px, #000 calc(100% - 34px), transparent); }
.lg-pbtn {
  display: inline-flex; align-items: baseline; gap: 5px; height: 42px; padding: 0 10px; border-radius: var(--r-md);
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink); font: inherit; cursor: pointer; box-shadow: var(--sh-sm);
  line-height: 39px; white-space: nowrap;
}
.lg-pbtn b { font-size: 0.90625rem; font-weight: 800; color: var(--pc); }
.lg-pbtn span { font-size: 0.84375rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.lg-pbtn.on { background: var(--pc); border-color: var(--pc); }
.lg-pbtn.on b, .lg-pbtn.on span { color: var(--pf); }
.lg-pbtn.on span { opacity: .85; }
.lg-pbtn:disabled { opacity: .4; cursor: default; box-shadow: none; }
.lg-fbtn {
  position: relative; flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; box-shadow: var(--sh-sm);
}
.lg-fbtn svg { width: 20px; height: 20px; }
.lg-fbtn.on { border-color: var(--blue); color: var(--blue-600); background: var(--blue-50); }
.lg-fcount {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--c-accent); color: var(--c-accent-ink); font-size: 0.75rem; font-weight: 800; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px var(--c-night);
}
@media (max-width: 370px) {
  .lg-bar { gap: 5px; padding: 10px 12px; }
  .lg-pbtn { padding: 0 7px; gap: 4px; }
  .lg-mbtn, .lg-pbtn b { font-size: 0.84375rem; }
  .lg-mwrap { flex-basis: 120px; }
  .lg-mwrap.on { grid-template-columns: auto 26px; }
  .lg-mwrap.on .lg-mbtn { padding: 0 6px 0 9px; }
}

.sort-wrap { position: relative; }
.sort-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 190px; color: var(--c-text);
  background: var(--white); border-radius: var(--r-md); box-shadow: var(--sh-md); border: 1px solid var(--line);
  display: none; z-index: 20; overflow: hidden;
}
.sort-menu.open { display: block; }
.sort-menu button {
  display: block; width: 100%; text-align: left; padding: 13px 16px; border: 0; border-bottom: 1px solid var(--line);
  background: var(--white); color: var(--ink); font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer;
}
.sort-menu button:last-child { border-bottom: 0; }
.sort-menu button:hover { background: var(--blue-50); }
.sort-menu button.active { font-weight: 800; color: var(--blue-600); }
.sort-menu button.active::before { content: "✓ "; }

.list-content { padding-top: 4px; }
.section-title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 16px 16px 12px; font-size: clamp(1.5rem, 6.4vw, 2rem); line-height: 1.15; }
.section-title[hidden] { display: none; }
.section-title .lg-back { font-family: var(--t5-f); font-size: 0.875rem; font-weight: 700; color: var(--c-accent); text-shadow: none; margin-right: 8px; }

/* Kệ Collection */
.shelf { margin-bottom: 18px; }
.shelf-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 16px 8px; }
.shelf-head .h { font-size: 1.0625rem; font-weight: 800; color: var(--t4-c); }
.shelf-head a { font-family: var(--t5-f); font-size: 0.8125rem; font-weight: 700; color: var(--c-accent); }
.shelf-track { display: flex; gap: 12px; overflow-x: auto; padding: 4px 16px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.shelf-track::-webkit-scrollbar { display: none; }
.lg-card.shelf-item { flex: 0 0 132px; scroll-snap-align: start; }

/* Chip lọc đang bật */
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; }
.chips[hidden] { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: var(--pill); background: var(--glass); color: #fff; border: 1px solid var(--glass-line); font-size: 0.8125rem; font-weight: 700; }
.chip button { border: 0; background: none; cursor: pointer; font-size: 0.75rem; opacity: .75; padding: 2px 4px; line-height: 1; color: inherit; }

/* Lưới game: 2 cột trên điện thoại */
.lg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 16px 24px; }
.lg-card { display: flex; flex-direction: column; background: var(--card-bg, var(--white)); border-radius: var(--card-r, var(--r-md)); box-shadow: var(--card-sh, var(--sh-sm)); overflow: hidden; color: var(--c-text); }
/* Ảnh dọc 1 : 1,3. Ảnh vừa khung thì phủ kín; ảnh khác tỉ lệ (VD ảnh vuông cũ) hiện đủ, phần thừa là nền mờ của chính ảnh */
.lg-img { position: relative; aspect-ratio: 1 / 1.3; background: linear-gradient(135deg, var(--blue-100), var(--pink-100)); overflow: hidden; }
/* Safari (iPhone) bỏ qua góc bo khi cắt lớp ảnh mờ → 2 góc trên bị vuông. Ảnh tự bo góc trên + mặt nạ buộc Safari cắt đúng góc */
.lg-card { isolation: isolate; }
.lg-img { border-radius: var(--card-r, var(--r-md)) var(--card-r, var(--r-md)) 0 0; isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); }
.lg-blur { position: absolute; inset: -12%; background-size: cover; background-position: center; filter: blur(18px) saturate(1.1); opacity: .9; }
.lg-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lg-tag { display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 0.65625rem; font-weight: 800; line-height: 1.35; letter-spacing: .01em; box-shadow: 0 1px 3px rgba(0,0,0,.25); white-space: nowrap; }
.lg-ptags { position: absolute; top: 6px; left: 6px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
/* Thẻ đặc biệt: ribbon chéo góc trên phải, bóng đổ nhẹ để tách khỏi ảnh. Ảnh có overflow: hidden nên 2 đầu ribbon tự cắt theo góc.
   Tâm ribbon đặt cách góc --rc theo cả 2 chiều → đoạn lộ ra dài khoảng 2,8 × --rc. Chữ dài (.long) thì lùi vào sâu hơn cho đủ chỗ. */
.lg-ribbon {
  --rc: 27px;
  position: absolute; top: var(--rc); right: var(--rc); width: 220px; padding: 4px 0; transform: translate(50%, -50%) rotate(45deg);
  text-align: center; font-size: 0.6875rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.25); text-shadow: 0 1px 1px rgba(0,0,0,.18);
  pointer-events: none;
}
.lg-ribbon.long { --rc: 37px; font-size: 0.625rem; letter-spacing: .04em; }
@media (min-width: 600px) { .lg-ribbon { --rc: 30px; font-size: 0.71875rem; } .lg-ribbon.long { --rc: 40px; font-size: 0.65625rem; } }
.lg-players { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 4px; background: rgba(15,23,42,.72); color: #fff; font-size: 0.6875rem; font-weight: 800; line-height: 1.35; }
.lg-players svg { width: 11px; height: 11px; }
.lg-name { padding: 9px 10px 4px; font-size: 0.875rem; font-weight: 800; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.shelf-item .lg-name { font-size: 0.8125rem; padding-bottom: 9px; }
.lg-genres { display: flex; flex-wrap: wrap; gap: 4px; padding: 2px 10px 10px; max-height: 50px; overflow: hidden; }
.lg-genres span { padding: 2px 7px; border-radius: var(--chip-r, 4px); background: var(--chip-bg, var(--c-subtle)); color: var(--chip-fg, var(--c-text-2)); font-size: 0.6875rem; font-weight: 700; white-space: nowrap; }
.lg-empty { grid-column: 1 / -1; padding: 30px 8px; text-align: center; color: var(--t3-c2); }
.lg-empty button { margin-top: 12px; padding: 10px 18px; border-radius: var(--btn2-r, var(--pill)); border: 1.5px solid var(--btn2-border, var(--glass-line)); background: var(--btn2-bg, var(--glass)); color: var(--btn2-fg, #fff); font: inherit; font-weight: 800; cursor: pointer; }

/* Bảng chọn máy */
.lg-mall { width: 100%; padding: 12px; margin-bottom: 14px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--white); color: var(--c-text); font: inherit; font-size: 0.9375rem; font-weight: 800; cursor: pointer; }
.lg-mall.on { border-color: var(--blue); background: var(--blue-50); color: var(--blue-600); }
.lg-msec { margin-bottom: 16px; }
.lg-msec h3 { font-size: 0.9375rem; font-weight: 800; margin-bottom: 8px; }
.lg-mrow { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.lg-mlab { flex: 0 0 64px; padding-top: 9px; font-size: 0.78125rem; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; } /* tên loại máy dài (Phòng riêng) xuống dòng thay vì bị cắt */
.lg-mchips { display: flex; flex-wrap: wrap; gap: 8px; }
.lg-mchip { min-width: 40px; height: 36px; padding: 0 12px; border: 0; border-radius: 10px; font: inherit; font-size: 0.9375rem; font-weight: 800; cursor: pointer; box-shadow: 0 1px 3px rgba(15,23,42,.18); }
.lg-mchip.on { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--ink); }

/* ===== Hướng dẫn (lưới 2 cột) ===== */
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.guide-card { background: var(--card-bg, var(--white)); border-radius: var(--card-r, var(--r-lg)); box-shadow: var(--card-sh, var(--sh-sm)); overflow: hidden; color: var(--c-text); display: flex; flex-direction: column; }
.guide-thumb { width: 100%; aspect-ratio: 1/1; background: linear-gradient(135deg, var(--blue-100), var(--pink-100)); overflow: hidden; }
.guide-thumb img { width: 100%; height: 100%; object-fit: cover; }
.guide-title { padding: 12px; font-size: 0.9375rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }

/* ===== Đọc bài hướng dẫn ===== */
.article-cover { width: 100%; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); margin-bottom: 16px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body { font-size: 1rem; line-height: 1.7; }
/* Trang đọc bài: nội dung nằm trên khung sáng (chữ nhiều, đọc lâu) — chữ trong khung dùng màu "Chữ trên thẻ" */
.article-page .article-body, .xem-truoc .article-body { margin: 0 -6px; padding: 20px 18px 8px; border-radius: var(--r-lg); background: var(--c-surface); color: var(--c-text); box-shadow: var(--sh-sm); }
@media (min-width: 720px) { .article-page .article-body, .xem-truoc .article-body { margin: 0; padding: 30px 34px 14px; } }
.article-body h2 { font-size: 1.25rem; font-weight: 800; margin: 18px 0 8px; }
/* Khối tiêu đề H1–H4 trong bài (hd1 là thẻ h2 nhưng to như H1) */
.article-body .hd1 { font-size: 1.625rem; font-weight: 800; line-height: 1.25; margin: 26px 0 10px; }
.article-body .hd2 { font-size: 1.375rem; font-weight: 800; line-height: 1.3; margin: 22px 0 8px; }
.article-body .hd3 { font-size: 1.125rem; font-weight: 800; line-height: 1.35; margin: 18px 0 6px; }
.article-body .hd4 { font-size: 1rem; font-weight: 800; line-height: 1.4; margin: 16px 0 4px; }
.article-body p { margin: 0 0 12px; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--r-md); margin: 12px 0; }
.article-body a { color: var(--blue-600); text-decoration: underline; }
.article-body ul, .article-body ol { margin: 0 0 12px 22px; }
.article-body figure { margin: 14px 0; }
.article-body figure img { margin: 0; display: block; width: 100%; }
.article-body figcaption { margin-top: 6px; font-size: 0.8125rem; color: var(--muted); text-align: center; }
.article-body figure .yt-embed { margin: 0; }
.article-body blockquote { margin: 16px 0; padding: 12px 16px; border-left: 4px solid var(--blue); background: var(--blue-50); border-radius: 0 var(--r-md) var(--r-md) 0; font-size: 1.0625rem; font-weight: 700; }
.article-body blockquote p { margin: 0; }
.article-body blockquote cite { display: block; margin-top: 6px; font-size: 0.8125rem; font-weight: 600; font-style: normal; color: var(--muted); }
.article-body hr { border: 0; border-top: 1px solid #D5DAE1; margin: 24px 0; }
/* Gallery: ảnh kế tiếp ló ra ở mép phải để gợi ý vuốt tiếp */
.article-body .gallery-frame { position: relative; }
.article-body .gallery-track { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.article-body .gallery-track::-webkit-scrollbar { display: none; }
.article-body figure.gallery .gallery-track img { flex: 0 0 78%; width: 78%; min-width: 0; aspect-ratio: 4/3; object-fit: cover; scroll-snap-align: start; margin: 0; }
.article-body figure.gallery.single .gallery-track img { flex-basis: 100%; width: 100%; }
@media (min-width: 720px) { .article-body figure.gallery .gallery-track img { flex-basis: 38%; width: 38%; } }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); box-shadow: var(--sh-md); color: var(--ink); font-size: 1.375rem; line-height: 1; cursor: pointer; }
.gallery-arrow.prev { left: 8px; } .gallery-arrow.next { right: 8px; }
.gallery-arrow.off { opacity: 0; pointer-events: none; }
@media (hover: none) { .gallery-arrow { display: none; } }
/* Lưới ảnh 3 cột (poster phim / bìa game / vuông), không chữ */
.article-body figure.grid-gallery { margin: 18px 0; }
.article-body .gg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.article-body .gg-grid img { width: 100%; height: auto; margin: 0; object-fit: cover; border-radius: var(--r-sm); background: var(--c-subtle); aspect-ratio: 2 / 3; }
.article-body .gg-game .gg-grid img { aspect-ratio: 1 / 1.3; }
.article-body .gg-square .gg-grid img { aspect-ratio: 1 / 1; }
@media (min-width: 720px) { .article-body .gg-grid { gap: 10px; } }
.gallery-nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; font-size: 0.75rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.gallery-dots { display: flex; gap: 5px; align-items: center; }
.gallery-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 4px; background: #CBD5E1; cursor: pointer; transition: width .15s, background .15s; }
.gallery-dots button.on { width: 18px; background: var(--blue); }
/* Bảng: rộng hơn màn hình thì cuộn ngang trong khung riêng, bóng mờ mép phải báo còn nội dung */
.article-body .table-wrap { position: relative; margin: 16px 0; }
.article-body .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article-body .table-wrap.more::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 28px; pointer-events: none; background: linear-gradient(to right, rgba(248,250,252,0), rgba(15,23,42,.14)); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.article-body .tbl { border-collapse: collapse; min-width: 100%; font-size: 0.9375rem; line-height: 1.5; background: var(--white); }
.article-body .tbl.fixed { table-layout: fixed; min-width: 0; }
.article-body .tbl th, .article-body .tbl td { border: 1px solid #DDE2E8; padding: 8px 10px; vertical-align: top; text-align: left; overflow-wrap: anywhere; }
.article-body .tbl:not(.fixed) th, .article-body .tbl:not(.fixed) td { min-width: 96px; }
.article-body .tbl th { font-weight: 800; }
.article-body .tbl th:not([class]) { background: #F6F7F9; }
/* Callout */
.article-body .callout { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; padding: 14px 16px; border-radius: var(--r-md); }
.article-body .callout-icon { font-size: 1.25rem; line-height: 1.5; flex: 0 0 auto; }
.article-body .callout-text { flex: 1; min-width: 0; }
/* Link tới bài khác */
.article-body .page-link { display: flex; gap: 12px; align-items: center; margin: 14px 0; padding: 10px; border: 1px solid var(--card-border, var(--line)); border-radius: var(--card-r, var(--r-lg)); background: var(--card-bg, var(--white)); color: inherit; text-decoration: none; }
.article-body .page-link img, .article-body .page-link .pl-noimg { flex: 0 0 104px; width: 104px; aspect-ratio: 16/9; height: auto; margin: 0; border-radius: var(--r-sm); object-fit: cover; background: linear-gradient(135deg, var(--blue-100), var(--pink-100)); }
.article-body .pl-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.article-body .pl-sec { font-size: 0.6875rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--blue-600); }
.article-body .pl-title { font-weight: 800; font-size: 0.9375rem; line-height: 1.35; }
.article-body .pl-sum { font-size: 0.8125rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-body .game-card { display: flex; gap: 12px; align-items: center; margin: 14px 0; padding: 10px; background: var(--card-bg, var(--white)); border-radius: var(--card-r, var(--r-lg)); box-shadow: var(--card-sh, var(--sh-sm)); color: inherit; text-decoration: none; }
.article-body .game-card img, .article-body .game-card .gc-noimg { flex: 0 0 72px; width: 72px; height: 72px; margin: 0; border-radius: var(--r-md); object-fit: cover; background: linear-gradient(135deg, var(--blue-100), var(--pink-100)); }
.article-body .gc-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.article-body .gc-name { font-weight: 800; font-size: 1rem; }
.article-body .gc-go { font-size: 0.8125rem; font-weight: 700; color: var(--blue-600); }
.article-body .cta { margin: 18px 0; text-align: center; }
.article-body .cta-btn { display: inline-block; padding: 13px 26px; border-radius: var(--btn-r, var(--r-md)); background: var(--btn-bg, var(--c-accent)); color: var(--btn-fg, var(--c-accent-ink)); font-weight: 800; text-decoration: none; box-shadow: var(--btn-sh, var(--sh-cta)); }
.article-body .preview-note { display: block; font-size: 0.75rem; font-weight: 700; color: #B45309; }
/* Tiêu đề bài luôn to hơn mọi tiêu đề bên trong bài */
.article-title { font-size: 1.75rem; line-height: 1.25; }
@media (min-width: 720px) { .article-title { font-size: 2.125rem; } }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: -8px 0 16px; font-size: 0.8125rem; color: var(--t3-c2); }

.yt-embed { position: relative; padding-bottom: 56.25%; height: 0; margin: 14px 0; border-radius: var(--r-md); overflow: hidden; }
.yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-group { margin-bottom: 26px; }
.faq-item { background: var(--glass); border: 1px solid rgba(255,255,255,.16); border-radius: var(--card-r, var(--r-lg)); overflow: hidden; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; padding: 16px 18px; background: none; color: var(--t4-c); border: 0; font-size: 1.03125rem; line-height: 1.35; cursor: pointer; }
.faq-arrow { flex: 0 0 auto; transition: transform .2s ease; color: var(--c-accent); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 18px 18px; font-size: 0.96875rem; line-height: 1.6; white-space: pre-wrap; color: var(--t3-c); }
.faq-item.open .faq-a { display: block; }

/* ===== Bộ lọc (sheet) ===== */
.sheet-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: none; z-index: 60; }
.sheet-overlay.open { display: block; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; background: var(--white); color: var(--c-text); border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 82vh; display: flex; flex-direction: column; z-index: 61; transform: translateY(100%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; }
.sheet.open { transform: translateY(0); visibility: visible; transition: transform .22s ease, visibility 0s; }
.sheet-foot button:disabled { opacity: .45; cursor: default; }
.opt { font: inherit; color: var(--c-text); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); font-weight: 800; }
.sheet-head .x { border: 0; background: none; font-size: 1.25rem; cursor: pointer; color: var(--muted); }
.sheet-body { padding: 16px; overflow-y: auto; }
.sheet-group { margin-bottom: 18px; }
.sheet-group h3 { font-size: 0.875rem; font-weight: 800; margin-bottom: 8px; }
.sheet-foot { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); }
.sheet-foot button { flex: 1; justify-content: center; padding: 13px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; font-size: 0.9375rem; font-weight: 700; cursor: pointer; }
.sheet-foot button.primary { background: var(--btn-bg, var(--c-accent)); color: var(--btn-fg, var(--c-accent-ink)); border-color: var(--btn-bg, var(--c-accent)); border-radius: var(--btn-r, var(--r-md)); box-shadow: var(--btn-sh, var(--sh-cta)); font-weight: 800; }

.opt-group { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { padding: 8px 14px; border-radius: var(--pill-r, var(--pill)); border: 1px solid var(--line); font-size: 0.875rem; font-weight: 700; cursor: pointer; user-select: none; background: var(--c-subtle); }
.opt.on { background: var(--c-brand); color: var(--c-brand-ink); border-color: var(--c-brand); }
.opt-note { font-size: 0.8125rem; color: var(--muted); }

/* ===== Chi tiết game ===== */
.detail-gallery { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin-bottom: 16px; }
.detail-gallery::-webkit-scrollbar { display: none; }
.detail-gallery .slide { flex: 0 0 88%; scroll-snap-align: center; aspect-ratio: 16/9; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--blue-100), var(--pink-100)); overflow: hidden; box-shadow: var(--sh-sm); }
.detail-gallery .slide img { width: 100%; height: 100%; object-fit: cover; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.badge { padding: 5px 12px; border-radius: var(--pill); background: var(--blue-50); color: var(--blue-600); font-size: 0.8125rem; font-weight: 700; }

.detail-info { background: var(--card-bg, var(--white)); color: var(--c-text); border-radius: var(--card-r, var(--r-lg)); box-shadow: var(--card-sh, var(--sh-sm)); padding: 4px 16px; font-size: 0.9375rem; line-height: 1.6; }
.detail-info .row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.detail-info .row:last-child { border-bottom: 0; }
.detail-info .row .k { font-weight: 800; }
.detail-desc { margin: 16px 0; font-size: 1rem; line-height: 1.7; white-space: pre-wrap; }

.detail-video { margin: 0 0 16px; }
.detail-video iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.yt-facade { position: relative; display: block; width: 100%; aspect-ratio: 16/9; padding: 0; border: 0; border-radius: var(--r-lg); overflow: hidden; background: #0F172A; cursor: pointer; box-shadow: var(--sh-sm); }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; }
.yt-facade .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 48px; border-radius: 14px; background: #FF0033; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.3); transition: transform .16s ease; }
.yt-facade .play::before { content: ""; margin-left: 4px; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.yt-facade:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.yt-facade:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.guide-btn { display: block; width: 100%; text-align: center; margin-top: 24px; padding: 18px; border-radius: var(--btn-r, var(--r-md)); background: var(--btn-bg, var(--c-accent)); color: var(--btn-fg, var(--c-accent-ink)); font-size: 1rem; font-weight: 800; box-shadow: var(--btn-sh, var(--sh-cta)); }

/* ===== List game 3 cột trên điện thoại (admin List game chọn; máy chủ gắn lớp lg-c3 vào <body>) =====
   Thẻ hẹp còn ~110px: chữ nhỏ đi chút, chỉ giữ 1 nhãn thể loại (thể loại chính), nhãn máy / ribbon / số người thu nhỏ theo. */
@media (max-width: 599px) {
  body.lg-c3 .lg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 12px 24px; }
  body.lg-c3 .lg-grid .lg-name { padding: 7px 7px 3px; font-size: 0.78125rem; line-height: 1.25; }
  body.lg-c3 .lg-grid .lg-genres { flex-wrap: nowrap; padding: 2px 7px 8px; max-height: none; }
  body.lg-c3 .lg-grid .lg-genres span { min-width: 0; padding: 1px 6px; font-size: 0.625rem; overflow: hidden; text-overflow: ellipsis; }
  body.lg-c3 .lg-grid .lg-genres span ~ span { display: none; }
  body.lg-c3 .lg-grid .lg-ptags { top: 4px; left: 4px; gap: 2px; }
  body.lg-c3 .lg-grid .lg-tag { padding: 1px 4px; font-size: 0.5625rem; }
  body.lg-c3 .lg-grid .lg-ribbon { --rc: 21px; padding: 3px 0; font-size: 0.5625rem; letter-spacing: .04em; }
  body.lg-c3 .lg-grid .lg-ribbon.long { --rc: 28px; font-size: 0.5rem; }
  body.lg-c3 .lg-grid .lg-players { left: 4px; bottom: 4px; gap: 2px; padding: 1px 4px; font-size: 0.59375rem; }
  body.lg-c3 .lg-grid .lg-players svg { width: 9px; height: 9px; }
}
/* Điện thoại rất hẹp (iPhone SE…): thẻ còn ~93px → chữ tên nhỏ thêm chút, lề hẹp hơn để tên dài không bị ngắt giữa từ */
@media (max-width: 359px) {
  body.lg-c3 .lg-grid { gap: 6px; padding: 0 10px 24px; }
  body.lg-c3 .lg-grid .lg-name { padding: 6px 6px 3px; font-size: 0.71875rem; }
  body.lg-c3 .lg-grid .lg-genres { padding: 2px 6px 7px; }
}

/* ===== Co giãn theo màn hình lớn (tablet / desktop) ===== */
@media (min-width: 600px) {
  .nav-grid { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; }
  .guide-grid { grid-template-columns: repeat(3, 1fr); }
  .lg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 760px) {
  .lg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg-card.shelf-item { flex: 0 0 150px; }
}
@media (min-width: 900px) {
  .lg-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ===== Xem ảnh toàn màn hình ===== */
.lb-zoomable { cursor: zoom-in; }
html.lb-lock, html.lb-lock body { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 1000; display: none; background: #000; color: #fff; user-select: none; -webkit-user-select: none; }
.lb.open { display: block; }
.lb-stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; touch-action: none; }
.lb-img { max-width: 100vw; max-height: 100vh; max-height: 100dvh; object-fit: contain; will-change: transform; transform-origin: center center; -webkit-user-drag: none; }
.lb.zoomed .lb-img { cursor: grab; }
.lb-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px 16px; background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0)); pointer-events: none; }
.lb-count { font-size: 0.875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.lb-tools { display: flex; gap: 8px; pointer-events: auto; }
.lb-btn, .lb-arrow { border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font: inherit; cursor: pointer; display: grid; place-items: center; }
.lb-btn { width: 42px; height: 42px; font-size: 1.375rem; line-height: 1; }
.lb-btn:hover, .lb-arrow:hover { background: rgba(255,255,255,.26); }
.lb-btn:focus-visible, .lb-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 1.875rem; display: none; }
.lb.many .lb-arrow { display: grid; }
.lb.many.zoomed .lb-arrow { display: none; }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
@media (hover: none) { .lb.many .lb-arrow { display: none; } .lb-in, .lb-out { display: none; } }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 18px calc(16px + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: 0.875rem; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.6)); pointer-events: none; }
.lb.zoomed .lb-cap { display: none; }

/* ===== Trang Tin tức / Hướng dẫn / đọc bài ===== */
.tabs { display: flex; gap: 8px; overflow-x: auto; margin: -6px -16px 18px; padding: 2px 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; padding: 9px 16px; border-radius: var(--pill-r, var(--pill)); border: 1.5px solid var(--pill-border, var(--glass-line)); background: var(--pill-bg, transparent); color: var(--pill-fg, #fff); font-size: 0.875rem; font-weight: 700; white-space: nowrap; }
.tab:hover { background: var(--pill-bg, var(--glass)); }
.tab.on { background: var(--pill-on-bg, var(--c-accent)); border-color: var(--pill-on-bg, var(--c-accent)); color: var(--pill-on-fg, var(--c-accent-ink)); }
.post-group { margin-bottom: 26px; }
/* Tab trong bài (bài có từ 2 phần): hàng nút cuộn ngang 1 dòng, nền tràn hết bề ngang, dính ngay dưới header khi cuộn */
.post-tabs {
  position: sticky; top: var(--sh-h, 56px); z-index: 40;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  margin: -10px calc(50% - 50vw) 14px; padding: 8px calc(50vw - 50%) 10px;
  background: transparent; transition: top .22s ease, box-shadow .15s ease, background .2s ease;
}
.post-tabs::-webkit-scrollbar { display: none; }
.post-tabs.stuck { background: var(--c-night); background: color-mix(in srgb, var(--c-night) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 8px 18px -10px rgba(10,5,30,.6); }
.post-tabs .pt-tab { font: inherit; font-size: 0.875rem; font-weight: 700; line-height: 1.4; cursor: pointer; box-shadow: none; } /* bóng đổ bị hàng cuộn cắt thành vệt → bỏ */
.post-tabs .pt-tab:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.tab-panel[hidden] { display: none; }
/* Hướng dẫn: danh sách 1 cột, ảnh vuông nhỏ + tiêu đề */
.pr-list { display: flex; flex-direction: column; gap: 8px; }
.pr-row { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 6px 14px 6px 6px; background: var(--card-bg, var(--white)); border: 1px solid var(--card-border, transparent); border-radius: var(--card-r, var(--r-md)); color: var(--c-text); box-shadow: var(--card-sh, var(--sh-sm)); }
.pr-img { position: relative; flex: 0 0 60px; width: 60px; height: 60px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, var(--blue-100), var(--pink-100)); }
.pr-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pr-img:empty::after { /* icon Lucide "book-open" */
  content: ""; position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; background: var(--c-brand); opacity: .55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7v14'/%3E%3Cpath d='M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7v14'/%3E%3Cpath d='M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z'/%3E%3C/svg%3E") center / contain no-repeat; }
.pr-title { flex: 1; min-width: 0; font-size: 0.96875rem; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
@media (min-width: 760px) { .pr-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } }

/* Bài viết: ảnh làm nền, tiêu đề đè lên lớp phủ chuyển màu (chỉnh trong admin: --ov-b dưới, --ov-t trên, --ov-text chữ) */
.po-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.po-card { position: relative; display: flex; align-items: flex-end; border-radius: var(--card-r, var(--r-md)); overflow: hidden; color: var(--ov-text, #fff); background: linear-gradient(135deg, #1E3A8A, #BE185D); box-shadow: var(--card-sh, var(--sh-sm)); }
.po-card.feat { grid-column: 1 / -1; }
/* Chiều cao tối thiểu theo tỉ lệ (thẻ thường 1,4 : 1, nổi bật 16 : 9); tiêu đề dài thì thẻ tự cao thêm, không bị cắt chữ */
.po-card::before { content: ""; flex: 0 0 0; padding-top: 71.43%; }
.po-card.feat::before { padding-top: 56.25%; }
.po-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Safari: ảnh + lớp phủ tự bo góc theo thẻ, không trông vào việc thẻ cắt hộ (Safari hay cắt thiếu góc bo) */
.po-card { isolation: isolate; }
.po-img, .po-shade { border-radius: inherit; }
.po-shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--ov-b, rgba(15,23,42,.85)), var(--ov-t, rgba(15,23,42,0))); }
.po-title { position: relative; flex: 1; min-width: 0; padding: 10px 12px 11px; font-size: 1.640625rem; font-weight: 800; letter-spacing: -.01em; text-shadow: 0 1px 2px rgba(0,0,0,.18); }
/* Lớp trong: cắt đúng 3 dòng (lớp ngoài giữ lề), chừa chỗ cho dấu tiếng Việt ở dòng đầu */
.po-title > span { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; line-height: 1.12; padding-top: .12em; }
.po-card.feat .po-title { padding: 14px 16px 15px; font-size: 2.296875rem; }
@media (min-width: 760px) {
  .po-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .po-card.feat::before { padding-top: 33.33%; }
  .po-card.feat .po-title { font-size: 2.625rem; }
}
.more-btn { display: block; margin: 20px auto 0; padding: 12px 28px; border-radius: var(--btn2-r, var(--pill)); border: 1.5px solid var(--btn2-border, var(--glass-line)); background: var(--btn2-bg, var(--glass)); color: var(--btn2-fg, #fff); font: inherit; font-size: 0.9375rem; font-weight: 800; cursor: pointer; }
.more-btn:disabled { opacity: .6; cursor: wait; }
.empty-note { padding: 30px 0; text-align: center; color: var(--t3-c2); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: -8px 0 18px; font-size: 0.84375rem; color: var(--t3-c2); }
.post-meta a { color: var(--c-accent); font-weight: 700; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 7px 14px; border-radius: var(--btn2-r, var(--pill)); border: 1.5px solid var(--btn2-border, var(--glass-line)); background: var(--btn2-bg, var(--glass)); color: var(--btn2-fg, #fff); font: inherit; font-size: 0.875rem; font-weight: 700; cursor: pointer; }
/* Dải đầu bài Hướng dẫn có nền sáng riêng → nút Chia sẻ kiểu sáng */
.ah-guide .share-btn { background: #fff; color: var(--c-text); border-color: rgba(40,29,98,.15); }
.related { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); }
.not-found { text-align: center; padding: 30px 0; color: var(--t3-c); }
.not-found .guide-btn { display: inline-block; width: auto; padding: 14px 24px; }
.nf-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.nf-btns .guide-btn { margin-top: 20px; }
.guide-btn.ghost { background: var(--btn2-bg, var(--glass)); color: var(--btn2-fg, #fff); border: 1.5px solid var(--btn2-border, var(--glass-line)); border-radius: var(--btn2-r, var(--r-md)); box-shadow: none; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); z-index: 900; padding: 11px 18px; border-radius: var(--pill); background: #fff; color: var(--c-text); font-size: 0.875rem; font-weight: 700; box-shadow: var(--sh-md); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* Trang chủ: 5 nút */
.nav-grid > .navc:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 760px) { .nav-grid { grid-template-columns: repeat(5, 1fr); } .nav-grid > .navc:last-child:nth-child(odd) { grid-column: auto; } }
@media (min-width: 600px) { .lg-mwrap { flex: 0 0 200px; } .lg-mwrap.on { flex: 0 0 auto; } }

/* Chữ chỉ dành cho Google / phần mềm đọc màn hình, không hiện trên trang */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ===== Đầu trang đọc bài (dải tràn hết bề ngang, sát dưới header) ===== */
body.article-page .site-header { margin-bottom: 0; }
.ah-guide, .ah-news { margin: 0 calc(50% - 50vw) 22px; padding-left: calc(50vw - 50%); padding-right: calc(50vw - 50%); }
/* Hướng dẫn: ảnh vuông nhỏ + tên bài, ngày, Chia sẻ trên nền màu riêng của bài */
.ah-guide { display: flex; align-items: center; gap: 16px; padding-top: 16px; padding-bottom: 16px; background: var(--ah-bg, #EEF1F5); color: var(--ah-fg, #0F172A); }
.ah-img { flex: 0 0 120px; width: 120px; height: 120px; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.5); box-shadow: 0 2px 10px rgba(15,23,42,.12); }
.ah-img img { width: 100%; height: 100%; object-fit: cover; }
.ah-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ah-guide .ah-title { font-size: 1.375rem; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.ah-guide .ah-date { font-size: 0.875rem; font-weight: 600; opacity: .75; }
.ah-guide .share-btn { margin: 4px 0 0; }
@media (min-width: 720px) { .ah-img { flex-basis: 160px; width: 160px; height: 160px; } .ah-guide .ah-title { font-size: 1.75rem; } }
/* Tin tức: ảnh bìa làm nền + lớp phủ chuyển màu (Kiểu thẻ của bài), tiêu đề to canh giữa, ngày + Chia sẻ ở đáy */
.ah-news { position: relative; display: flex; flex-direction: column; min-height: clamp(230px, 62vw, 440px); overflow: hidden; color: var(--ov-text, #fff); background: linear-gradient(135deg, #1E3A8A, #BE185D); }
.ah-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ah-shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--ov-b, rgba(15,23,42,.85)), var(--ov-t, rgba(15,23,42,0))); pointer-events: none; }
.ah-news .ah-title {
  position: relative; flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 28px 4px 8px;
  font-size: 2.25rem; font-weight: 800; line-height: 1.12; overflow-wrap: anywhere; pointer-events: none;
  text-shadow: 0 2px 14px rgba(0,0,0,.38), 0 1px 3px rgba(0,0,0,.28); /* bóng mờ nhẹ giúp chữ nổi trên ảnh */
}
.ah-foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0 14px; }
.ah-news .ah-date { font-size: 0.875rem; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.ah-news .share-btn { margin: 0; }
@media (min-width: 720px) { .ah-news .ah-title { font-size: 3rem; } }

/* ===== Bảng giá: khung ghi chú đầu trang + nhóm + thẻ giá ===== */
/* Đầu trang Bảng giá: icon (nếu có) + dòng 1 = Tiêu đề lớn (cấp 1), dòng 2–3 = Tiêu đề phụ (cấp 2) */
.pn-box { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 10px 0 30px; text-align: center; }
.pn-box[hidden] { display: none; }
.pn-ic { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(10,5,40,.4)); }
.pn-ic[hidden] { display: none; }
.pn-tx { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.pn-l1 { font-size: clamp(1.9375rem, 8.4vw, 3rem); line-height: 1.12; overflow-wrap: anywhere; text-wrap: balance; }
.pn-l2 { font-size: clamp(1rem, 4vw, 1.25rem); line-height: 1.4; overflow-wrap: anywhere; text-wrap: balance; }
/* Dòng 3 (giải thích thêm): nhỏ hơn dòng 2, chữ thường, màu tím nhạt (như mô tả ở trang dịch vụ) */
body .pn-l3 { font-size: clamp(0.875rem, 3.4vw, 1rem); font-family: var(--t3-f); font-weight: 600; color: var(--t3-c); text-shadow: none; max-width: 36em; }
.price-group { margin-bottom: 26px; }
.price-group-title { margin: 0 0 14px; text-align: center; font-size: clamp(1.625rem, 7vw, 2.25rem); line-height: 1.15; }
.price-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 720px) { .price-list { grid-template-columns: 1fr 1fr; } }
/* Ảnh vuông bên trái: tối thiểu vuông, ghi chú dài thì ảnh cao theo thẻ */
/* Thẻ giá kiểu vé: khuyết 2 nửa vòng tròn ở đường xé (nền trong suốt chỗ khuyết), đường kẻ đứt giữa ảnh và chữ */
.price-card {
  --cut: clamp(104px, 34%, 168px);
  display: grid; grid-template-columns: var(--cut) minmax(0, 1fr); border-radius: var(--card-r, var(--r-lg)); color: var(--c-text); box-shadow: var(--card-sh, var(--sh-sm));
  background: radial-gradient(circle 11px at var(--cut) 0, transparent 10.5px, var(--card-bg, var(--white)) 11px) top / 100% 51% no-repeat,
    radial-gradient(circle 11px at var(--cut) 100%, transparent 10.5px, var(--card-bg, var(--white)) 11px) bottom / 100% 51% no-repeat;
}
.price-img { position: relative; margin: 10px; border-radius: calc(var(--card-r, var(--r-lg)) - 4px); overflow: hidden; background: linear-gradient(135deg, var(--blue-100), var(--pink-100)); }
.price-img::after { content: ""; position: absolute; top: 6px; bottom: 6px; right: -11px; border-right: 2px dashed var(--c-line); }
.price-card .price-img { overflow: visible; }
.price-card .price-img img { border-radius: inherit; }
.price-img::before { content: ""; display: block; padding-top: 100%; }
.price-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.price-img > span:not(.price-tag) { position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.6875rem; font-weight: 800; color: var(--muted); letter-spacing: .06em; }
/* Nhãn tên rút gọn trên ảnh (VD COZY): lớp phủ cao 1/3 ảnh, màu riêng từng thẻ (--tg) đậm ở mép trên → trong suốt;
   chữ trắng font cấp 1 + bóng mờ nhẹ, tự co cho vừa 1 dòng (site.js) */
.price-tag { position: absolute; left: 0; right: 0; top: 0; z-index: 1; height: 33.34%; display: flex; align-items: center; justify-content: center; padding: 0 5px;
  border-radius: calc(var(--card-r, var(--r-lg)) - 4px) calc(var(--card-r, var(--r-lg)) - 4px) 0 0; background: linear-gradient(to bottom, var(--tg), transparent); pointer-events: none; }
.price-tag b { display: block; max-width: 100%; overflow: hidden; font-family: var(--t1-f); font-weight: var(--fw-head); font-synthesis: none; font-size: clamp(1.25rem, 6.6vw, 1.875rem);
  line-height: 1.15; letter-spacing: 0; color: #fff; white-space: nowrap; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0,0,0,.35), 0 2px 10px rgba(0,0,0,.4); }
@media (min-width: 720px) { .price-tag b { font-size: 1.875rem; } }
.price-body { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 12px 14px 12px 16px; min-width: 0; }
.price-name { font-size: 1.0625rem; line-height: 1.3; overflow-wrap: anywhere; }
.price-val { font-family: var(--t4-f); font-size: 1.25rem; font-weight: 900; letter-spacing: -.01em; color: var(--c-brand); }
.price-note { font-size: 0.875rem; color: var(--c-text-2); line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
/* Nhãn chia tiền (≈ 20k/người khi đi 6) — bật/tắt ở admin Trang chủ → Bảng giá, áp dụng cả hai trang */
.price-per { align-self: flex-start; margin-top: 4px; padding: 3px 10px; border-radius: 999px; background: var(--c-per-bg, #FFF4C2); color: var(--c-per-fg, #7A5B00); font-size: 0.78125rem; font-weight: 700; line-height: 1.4; }

/* ===== Trang chi tiết game ===== */
main.gd { display: block; padding-top: 4px; }
/* Ảnh bìa chữ nhật bên trái + thông tin bên phải */
.gd-top { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 22px; }
.gd-cover { position: relative; aspect-ratio: 1 / 1.3; border-radius: var(--r-md); overflow: hidden; background: linear-gradient(135deg, var(--blue-100), var(--pink-100)); box-shadow: var(--sh-sm); }
.gd-blur { position: absolute; inset: -12%; background-size: cover; background-position: center; filter: blur(18px) saturate(1.1); opacity: .9; }
.gd-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* Safari: lớp cắt bên trong có mặt nạ để ảnh + nền mờ giữ đúng góc bo (khung ngoài vẫn giữ bóng đổ) */
.gd-cover { isolation: isolate; }
.gd-clip { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); }
.gd-info { min-width: 0; }
.gd-title { font-size: 1.75rem; line-height: 1.15; margin: 0 0 10px; overflow-wrap: anywhere; }
/* Icon nhỏ của thể loại chính, cao bằng chữ trong tag */
.lg-genres span, .gd-genre { display: inline-flex; align-items: center; gap: 3px; }
.g-ic { flex: 0 0 auto; width: 1.2em; height: 1.2em; object-fit: contain; margin-left: -1px; }
.gd-genres { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.gd-genre { padding: 3px 9px; border-radius: var(--pill); background: var(--glass); border: 1px solid rgba(255,255,255,.22); color: var(--t3-c); font-size: 0.75rem; font-weight: 700; }
.gd-facts { margin: 0; }
.gd-facts dt { font-size: 0.78125rem; font-weight: 700; color: var(--t3-c2); margin-top: 10px; }
.gd-facts dt:first-child { margin-top: 0; }
.gd-facts dd { margin: 1px 0 0; font-size: 0.9375rem; font-weight: 700; color: #fff; overflow-wrap: anywhere; }
@media (min-width: 640px) { .gd-top { grid-template-columns: 260px minmax(0, 1fr); gap: 24px; } .gd-title { font-size: 2.5rem; } }
/* Có tại máy */
.gd-machines { margin-bottom: 22px; }
.gd-h { font-size: 1.0625rem; margin: 0 0 10px; color: var(--t4-c); }
.gd-branch { padding: 10px 12px 6px; margin-bottom: 10px; background: var(--card-bg, var(--white)); color: var(--c-text); border-radius: var(--card-r, var(--r-md)); box-shadow: var(--card-sh, var(--sh-sm)); }
.gd-bname { font-size: 0.875rem; font-weight: 800; margin-bottom: 8px; }
.gd-mrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.gd-mtag { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 7px; font-size: 0.8125rem; font-weight: 800; line-height: 1.3; }
/* Caption: vạch dọc bên trái */
.gd-caption { margin: 0 0 20px; padding: 2px 0 2px 14px; border-left: 4px solid var(--c-accent); font-size: 0.96875rem; line-height: 1.65; color: var(--t3-c); white-space: pre-wrap; overflow-wrap: anywhere; }
.game-page .detail-gallery { margin-bottom: 8px; }
.game-page .detail-gallery .slide img { cursor: zoom-in; }
/* Nút "Xem hướng dẫn game": dính đáy màn hình, tới cuối nội dung thì dừng lại ngay trên footer */
.gd-guide { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 20; margin-top: 18px; }
.gd-guide[hidden] { display: none; }
.gd-guide-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 15px 18px; border-radius: var(--btn-r, var(--r-md)); background: var(--btn-bg, var(--c-accent)); color: var(--btn-fg, var(--c-accent-ink)); font-size: 1.0625rem; font-weight: 800; box-shadow: var(--btn-sh, var(--sh-cta)), 0 12px 28px rgba(10,5,40,.45); }
.gd-guide-btn svg { width: 18px; height: 18px; }
.detail-gallery[hidden], .detail-video[hidden] { display: none; }

/* ===== Hệ chữ 5 cấp (trang admin "Giao diện" → Chữ) =====
   Mỗi cấp: font + màu khi nằm trên nền trang + hiệu ứng (cấp 1, 2). Chữ nằm trong thẻ sáng / khung bài viết giữ màu của thẻ.
   Coiny chỉ có 1 độ đậm → tắt "tự làm đậm giả" (font-synthesis) để chữ không bị nhoè. */
/* Cấp 1 · Tiêu đề lớn */
.page-title, .section-title, .price-group-title, .gd-title, .pn-l1, .ld-title, .ld-h2 {
  font-family: var(--t1-f); font-weight: var(--fw-head); color: var(--t1-c); text-shadow: var(--t1-fx); font-synthesis: none; letter-spacing: .01em;
}
/* Tên bài ở trang đọc bài: font cấp 1, màu theo dải đầu bài (nền riêng của từng bài) */
.ah-title { font-family: var(--t1-f); font-weight: var(--fw-head); font-synthesis: none; }
/* Cấp 2 · Tiêu đề phụ (sapo) */
.pn-l2, .ld-sub, .ld-h-sub, .page-sub { font-family: var(--t2-f); font-weight: 700; color: var(--t2-c); text-shadow: var(--t2-fx); font-synthesis: none; }
/* Cấp 4 · Tiêu đề nhỏ (tên thẻ) — màu: trên nền trang dùng --t4-c, trong thẻ sáng theo màu thẻ */
.price-name, .lg-name, .pr-title, .po-title, .guide-title, .faq-q, .card-name, .gd-h, .gd-bname, .shelf-head .h, .sheet-head, .sheet-group h3,
.lg-msec h3, .article-body h2, .article-body .hd1, .article-body .hd2, .article-body .hd3, .article-body .hd4, .article-body .pl-title, .article-body .gc-name,
.sh-sname, .ld-card h3, .ld-box-name, .ld-q summary, .ld-br h3, .ld-grp { font-family: var(--t4-f); font-weight: var(--fw-head); font-synthesis: none; }
/* Cấp 5 · Nút bấm */
.ld-btn, .ld-more, .ld-gfilter button, .tab, .pt-tab, .opt, .more-btn, .share-btn, .guide-btn, .gd-guide-btn, .card .more, .sheet-foot button,
.lg-mbtn, .lg-pbtn, .lg-mall, .lg-mchip, .topbar a, .cta-btn, .lg-empty button, .sort-menu button, .chip { font-family: var(--t5-f); font-synthesis: none; }
/* Icon nét Lucide: theo cỡ + màu chữ đi kèm */
svg.ic { width: 1.15em; height: 1.15em; flex: 0 0 auto; vertical-align: -.2em; }

/* ===== Hiệu ứng bấm — NGUYÊN TẮC CHUNG (Hải chốt 2026-10-09) =====
   Mọi nút / thẻ bấm được trên trang khách:
     · Rê chuột (chỉ máy tính có chuột): NẢY LÊN + sáng lên chút + bóng to ra.
     · Đang bấm (máy tính + điện thoại): LÚN XUỐNG + tối đi chút (thẻ: thu nhỏ còn 98%). Nảy lên mềm, lún xuống tức thì.
     · Máy bật "giảm chuyển động": chỉ đổi màu, không nảy / lún.
   LÀM NÚT / THẺ MỚI → THÊM TÊN LỚP VÀO 1 TRONG CÁC NHÓM DƯỚI (hoặc gắn sẵn lớp ux-btn / ux-ghost / ux-ledge / ux-card).
     Nút nền đặc            → nhóm "nút đặc" (sáng lên + đổ bóng khi nhấc)
     Nút trong mờ / chữ / icon / dòng menu → nhóm "nút nhẹ" (chỉ đổi màu, không đổ bóng)
     Nút có gờ 3D bên dưới  → thêm vào nhóm "gờ 3D" (lún sâu 3px, gờ xẹp lại)
     Thẻ (cả khối là 1 link) → nhóm "thẻ" (vd thẻ giá đã có trang Chi tiết dịch vụ = a.price-card; thẻ giá chưa có trang thì đứng yên)
   Không áp dụng: ô gõ chữ, link chữ giữa đoạn bài viết, logo, ảnh nội dung bấm để phóng to (đã có con trỏ kính lúp).
   Dùng thuộc tính translate / scale riêng (không đụng transform) nên không phá các góc xoay sẵn có (ảnh polaroid…).
   "body :is(…)" để luôn thắng các luật riêng của từng thành phần, kể cả landing.css nạp sau. */
:root {
  --ux-up: -2px; --ux-up-card: -4px; --ux-dn: 1px; --ux-dn-ledge: 3px; --ux-press-card: .98;
  --ux-hi: 1.07; --ux-lo: .92;
  --ux-sh-up: drop-shadow(0 6px 10px rgba(10,5,40,.3));
  --ux-t-up: .18s cubic-bezier(.3,.7,.4,1); --ux-t-dn: .08s ease-out;
}
@media (prefers-reduced-motion: reduce) { :root { --ux-up: 0px; --ux-up-card: 0px; --ux-dn: 0px; --ux-dn-ledge: 0px; --ux-press-card: 1; } }
@property --ux-k { syntax: '*'; inherits: false; } /* dấu kiểm tra tự động: phần tử đã gắn hiệu ứng */

/* Nhóm chung: chuyển động + màu chạy mượt */
body :is(
  /* nút đặc */ .ux-btn, .ld-btn-main, .ld-btn-blue, .ld-soc, .sf-btn, .guide-btn, .gd-guide-btn, .card .more, .article-body .cta-btn,
  .sheet-foot button, .lg-pbtn, .lg-fbtn, .lg-mwrap, .lg-mall, .lg-mchip, .opt, .filter-btn,
  /* nút nhẹ */ .ux-ghost, .ld-btn-ghost, .ld-btn-line, .ld-more, .ld-ic, .ld-copy-x, .ld-gfilter button, .sh-btn, .sh-scancel, .sh-tab, .sh-item,
  .sh-sitem, .sh-sall, .lang-opt, .sf-map, .tab, .more-btn, .share-btn, .topbar a, .lg-empty button, .chip button, .sheet-head .x,
  .shelf-head a, .section-title .lg-back, .sort-menu button, .gallery-arrow,
  /* thẻ */ .ux-card, .lg-card, .po-card, .pr-row, .guide-card, .navc, .ld-box, .ld-pol, .article-body .page-link, .article-body .game-card, .yt-facade, a.price-card,
  .faq-item, .ld-q, .ld-map > *
) {
  --ux-k: 1;
  transition: translate var(--ux-t-up), scale var(--ux-t-up), filter var(--ux-t-up), box-shadow var(--ux-t-up),
    background-color .18s ease, color .18s ease, border-color .18s ease, opacity .18s ease;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  /* Rê chuột: nút nảy lên + sáng lên (nút đặc thêm bóng) */
  body :is(.ux-btn, .ld-btn-main, .ld-btn-blue, .ld-soc, .sf-btn, .guide-btn:not(.ghost), .gd-guide-btn, .card .more, .article-body .cta-btn,
    .sheet-foot button, .lg-pbtn, .lg-fbtn, .lg-mwrap, .lg-mall, .lg-mchip, .opt, .filter-btn):not(:disabled):hover {
    translate: 0 var(--ux-up); filter: brightness(var(--ux-hi)) var(--ux-sh-up);
  }
  body :is(.ux-ghost, .ld-btn-ghost, .ld-btn-line, .ld-more, .ld-ic, .ld-copy-x, .ld-gfilter button, .sh-btn, .sh-scancel, .sh-tab, .sh-item,
    .sh-sitem, .sh-sall, .lang-opt, .sf-map, .tab, .more-btn, .share-btn, .guide-btn.ghost, .topbar a, .lg-empty button, .chip button, .sheet-head .x,
    .shelf-head a, .section-title .lg-back, .sort-menu button, .gallery-arrow):not(:disabled):hover {
    translate: 0 var(--ux-up); filter: brightness(var(--ux-hi));
  }
  /* Nút trong mờ: sáng lên bằng nền trắng mờ hơn (độ sáng không đổi được màu trong suốt) */
  body :is(.ux-ghost, .ld-ic, .ld-gfilter button:not(.on), .more-btn, .share-btn, .guide-btn.ghost, .topbar a, .lg-empty button):not(:disabled):hover {
    background-color: rgba(255,255,255,.18);
  }
  body .ah-guide .share-btn:hover, body .ld-copy-x:hover { background-color: #E9E3FB; }
  /* Thẻ: nhấc cao hơn + bóng to ra, không đổi màu cả thẻ */
  body :is(.ux-card, .lg-card, .po-card, .pr-row, .guide-card, .navc, .article-body .page-link, .article-body .game-card, .yt-facade, a.price-card):hover {
    translate: 0 var(--ux-up-card); box-shadow: var(--card-sh-hover, var(--sh-md));
  }
  body .ld-box:hover { translate: 0 var(--ux-up-card); box-shadow: 0 20px 36px rgba(10,5,40,.5); }
  body .ld-pol:hover { translate: 0 var(--ux-up-card); box-shadow: 0 12px 20px rgba(10,5,40,.4); } /* ảnh polaroid: bóng gọn để không bị dải cuộn cắt */
  /* Câu hỏi FAQ: chỉ phần câu hỏi bấm được → nhấc cả khung khi rê vào câu hỏi */
  body .faq-item:has(> .faq-q:hover), body .ld-q:has(> summary:hover) { translate: 0 var(--ux-up); background-color: rgba(255,255,255,.14); }
  /* Ảnh bản đồ trong thẻ chi nhánh: phóng nhẹ ảnh / ô bản đồ mẫu (khung giữ nguyên) */
  body .ld-map:hover > * { scale: 1.04; filter: brightness(var(--ux-hi)); }
}

/* Đang bấm: lún xuống + tối đi (đi nhanh hơn lúc nảy lên) */
body :is(.ux-btn, .ld-btn-main, .ld-btn-blue, .ld-soc, .sf-btn, .guide-btn, .gd-guide-btn, .card .more, .article-body .cta-btn,
  .sheet-foot button, .lg-pbtn, .lg-fbtn, .lg-mwrap, .lg-mall, .lg-mchip, .opt, .filter-btn,
  .ux-ghost, .ld-btn-ghost, .ld-btn-line, .ld-more, .ld-ic, .ld-copy-x, .ld-gfilter button, .sh-btn, .sh-scancel, .sh-tab, .sh-item,
  .sh-sitem, .sh-sall, .lang-opt, .sf-map, .tab, .more-btn, .share-btn, .topbar a, .lg-empty button, .chip button, .sheet-head .x,
  .shelf-head a, .section-title .lg-back, .sort-menu button, .gallery-arrow):not(:disabled):active {
  translate: 0 var(--ux-dn); filter: brightness(var(--ux-lo)); transition-duration: .08s;
}
/* Nút có gờ 3D bên dưới (nút vàng chính, nút xanh…): lún sâu hơn, gờ xẹp lại như phím bấm thật */
body :is(.ux-ledge, .ld-btn-main, .ld-btn-blue, .guide-btn:not(.ghost), .gd-guide-btn, .card .more, .article-body .cta-btn, .sheet-foot button.primary):not(:disabled):active {
  translate: 0 var(--ux-dn-ledge); box-shadow: 0 1px 0 var(--ux-ledge, rgba(40,29,98,.45));
}
/* Thẻ: thu nhỏ còn 98%, bóng thu lại */
body :is(.ux-card, .lg-card, .po-card, .pr-row, .guide-card, .navc, .article-body .page-link, .article-body .game-card, .yt-facade, .ld-box, .ld-pol, a.price-card):active {
  translate: 0 0; scale: var(--ux-press-card); box-shadow: var(--card-sh, var(--sh-sm)); transition-duration: .08s;
}
body .faq-item:has(> .faq-q:active), body .ld-q:has(> summary:active) { translate: 0 0; scale: .99; background-color: rgba(255,255,255,.1); transition-duration: .08s; }
body .ld-map:active > * { scale: 1; filter: brightness(var(--ux-lo)); transition-duration: .08s; }
