/* Trang giới thiệu Ngọa Long Hoàng Kim — 08/11/2026. Màn đầu tối (cảnh WebGL), các màn sau nền giấy dó + núi thủy mặc. */
:root {
  --ink: #120c08;
  --ink2: #1d140d;
  --gold: #e2b860;
  --gold2: #f8e2a6;
  --gold3: #a8782c;
  --red: #a3291d;
  --red2: #6e160f;
  --paper: #efe6d4;
  --paper2: #e3d4b8;
  --line: #c8ad7f;
  --txt: #3b2a1a;
  --txt2: #7a6248;
  --shu: #2f7d4a;   /* Thục */
  --ngo: #b43a2c;   /* Ngô */
  --nguy: #b58a1e;  /* Ngụy */
  --serif: 'Noto Serif', Georgia, 'Times New Roman', serif;
  /* 08/11 tối: phối font game (FontGame.rar): tiêu đề = FZ HBR Game (hẹp, đậm), nút/menu = FZ HYDHMX, khẩu hiệu = FZ GameKH2 */
  --title: 'FZ HBR Game', 'Playfair Display SC', 'Noto Serif', Georgia, serif;
  --ui: 'FZ HYDHMX', 'Noto Serif', Georgia, serif;
  --brush: 'Mansalva', 'Noto Serif', cursive;
  --slogan: 'FZ GameBr', 'Playfair Display SC', 'Noto Serif', Georgia, serif;
  --han: 'Ma Shan Zheng', 'KaiTi', 'STKaiti', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  /* 'light dark': trình duyệt coi trang đã tự lo chế độ tối -> KHÔNG tự đảo màu (Chrome Auto Dark / Cốc Cốc làm vệt sáng trắng thành đen).
     Màu trang vẫn cố định sáng/tối như thiết kế; ô nhập trong hộp thoại ép light bên dưới. */
  color-scheme: light dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--txt); font: 15px/1.55 var(--sans); overflow-x: hidden; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* màn hình rộng: cuộn từng màn như trang toàn màn hình */
@media (min-width: 901px) and (min-height: 620px) {
  html { scroll-snap-type: y mandatory; }
  .pg { height: 100vh; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; }
}
.pg { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; }

/* ================= thanh trên ================= */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(#0b0705ee, #0b070588 70%, transparent);
  transition: background .3s, transform .3s;
}
.topbar.paper { background: linear-gradient(#140d08f2, #140d08d8); box-shadow: 0 2px 14px #0006; }
.tb-nav { display: flex; align-items: center; gap: 26px; }
.tb-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tb-nav ul a {
  display: block; padding: 8px 16px; color: #e8d6b0; font: 600 15px/1 var(--serif); letter-spacing: .5px;
  position: relative; transition: color .2s;
}
.tb-nav ul a::before {
  content: ''; position: absolute; left: 3px; top: 50%; width: 6px; height: 6px; margin-top: -3px;
  border: 1px solid var(--gold); transform: rotate(45deg) scale(0); transition: transform .2s;
}
.tb-nav ul a:hover, .tb-nav ul a.on { color: var(--gold2); }
.tb-nav ul a.on::before, .tb-nav ul a:hover::before { transform: rotate(45deg) scale(1); }
.tb-logo { display: block; width: 132px; height: 64px; position: relative; }
.tb-logo img { position: absolute; left: 50%; top: 4px; width: 128px; height: auto; transform: translateX(-50%); filter: drop-shadow(0 4px 10px #000a); transition: transform .3s; }
.tb-logo:hover img { transform: translateX(-50%) scale(1.05); }
.foot-logo { display: block; flex: none; width: 104px; height: 72px; }
.tb-acc { position: absolute; right: 22px; top: 0; height: 64px; display: flex; align-items: center; color: #d8c49c; font-size: 14px; }
.tb-acc i { font-style: normal; opacity: .4; margin: 0 8px; }
.tb-acc a:hover { color: var(--gold2); }
.tb-acc b { color: var(--gold2); font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-burger { display: none; }

/* ================= chấm điều hướng bên phải ================= */
.dots {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 30;
  display: flex; flex-direction: column; gap: 4px; padding: 10px 6px;
  background: #140d08c4; border: 1px solid #e2b86040; border-radius: 30px; box-shadow: 0 6px 20px #0005;
}
.dots a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #bfa77d; position: relative; transition: color .2s, background .2s; }
.dots a span {
  position: absolute; right: 50px; white-space: nowrap; padding: 4px 10px; border-radius: 4px; font-size: 13px;
  background: #140d08ee; color: var(--gold2); opacity: 0; transform: translateX(6px); pointer-events: none; transition: .2s;
}
.dots a:hover span { opacity: 1; transform: none; }
.dots a:hover { color: var(--gold2); }
.dots a.on { color: #2a1a0c; background: radial-gradient(circle at 35% 30%, #fff1c4, var(--gold) 60%, var(--gold3)); box-shadow: 0 0 12px #e2b86080; }

/* biểu tượng nét (SVG nhúng làm mặt nạ) */
.ic { display: inline-block; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; flex: none; }
.ic-home { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M2 11 12 3l10 8M5 9.5V21h5v-6h4v6h5V9.5M1 11h22'/%3E%3C/svg%3E"); }
.ic-news { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M5 3h11l3 3v15H5zM8 9h8M8 13h8M8 17h5'/%3E%3C/svg%3E"); }
.ic-rank { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M3 8l4 4 5-7 5 7 4-4-2 11H5z'/%3E%3C/svg%3E"); }
.ic-guide { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M15.5 8.5l-2 5-5 2 2-5z' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ic-feat { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 2l2.9 6.3 6.9.8-5.1 4.7 1.4 6.8L12 17.2l-6.1 3.4 1.4-6.8L2.2 9.1l6.9-.8z'/%3E%3C/svg%3E"); }
.ic-web { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18'/%3E%3C/svg%3E"); }
.ic-apk { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='2'/%3E%3Cpath d='M10 18.5h4'/%3E%3C/svg%3E"); }
.ic-play { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4.5v15l12.5-7.5z' fill='%23000'/%3E%3C/svg%3E"); }
.ic-win { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 5.4l7.6-1.1v7.3H3zM11.6 4.2L21 2.8v8.8h-9.4zM3 12.6h7.6v7.3L3 18.8zM11.6 12.6H21v8.6l-9.4-1.3z'/%3E%3C/svg%3E"); }
.ic-android { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M6 10.5a6 6 0 0 1 12 0zM6 11.5h12v6.5a1.5 1.5 0 0 1-1.5 1.5H7.5A1.5 1.5 0 0 1 6 18zM3.2 11.5a1.3 1.3 0 0 1 2.6 0v5a1.3 1.3 0 0 1-2.6 0zM18.2 11.5a1.3 1.3 0 0 1 2.6 0v5a1.3 1.3 0 0 1-2.6 0z'/%3E%3Cpath stroke='%23000' stroke-width='1.4' stroke-linecap='round' d='M8.4 5.2 7.2 3.4M15.6 5.2l1.2-1.8'/%3E%3C/svg%3E"); }
.ic-fire { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12.5 2c.6 3.4 4.8 5.1 4.8 10.2A5.3 5.3 0 0 1 12 17.5a5.3 5.3 0 0 1-5.3-5.3c0-2.5 1.3-4.1 2.6-5.2-.1 2 .7 3.4 2 3.9-.5-3.4.2-6.4 1.2-8.9zM12 22c-3.6 0-6.2-1.8-6.2-1.8h12.4S15.6 22 12 22z'/%3E%3C/svg%3E"); }
.ic-flag { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linejoin='round'%3E%3Cpath d='M5 21V3.5M5 4h12.5l-2.5 4 2.5 4H5'/%3E%3C/svg%3E"); }
.ic-tool { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M15.6 2.5a5.2 5.2 0 0 0-5 6.7L2.8 17a2.4 2.4 0 0 0 3.4 3.4l7.8-7.8a5.2 5.2 0 0 0 6.7-5L17.5 10.8l-3-.8-.8-3 3.2-3.2a5 5 0 0 0-1.3-1.3z'/%3E%3C/svg%3E"); }
.ic-castle { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M2.5 21V9.5h2.6V7h2.2v2.5h2.2V6.5h1.4L12 3l1.1 3.5h1.4v3h2.2V7h2.2v2.5h2.6V21h-7.2v-4.5a2.3 2.3 0 0 0-4.6 0V21z'/%3E%3C/svg%3E"); }
.ic-pc { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M3 4h18v12H3zM8 20h8M12 16v4'/%3E%3C/svg%3E"); }

/* ================= nút "Chơi ngay" nổi (dấu son) ================= */
.dock {
  position: fixed; right: 16px; bottom: 22px; z-index: 31; width: 92px; height: 92px; border: 0; padding: 0; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #d4483a, var(--red) 55%, var(--red2));
  box-shadow: 0 0 0 3px #e2b86099, 0 8px 24px #000a, inset 0 -6px 14px #0005;
  transition: transform .25s, opacity .3s; opacity: 0; transform: scale(.6); pointer-events: none;
}
.dock.show { opacity: 1; transform: none; pointer-events: auto; }
.dock:hover { transform: scale(1.06); }
.dock-t { position: relative; display: block; color: #fff3d0; font: 900 17px/1.05 var(--title); text-shadow: 0 2px 4px #0008; }
.dock-ring { position: absolute; inset: -9px; border-radius: 50%; border: 2px dashed #e2b860aa; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= 0. màn đầu ================= */
.pg-hero { background: #0d0806; color: #fff; }
.hero-stage, .hero-v, .hero-static { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-stage { container-type: size; }
/* khung 16:9 trùng khít video object-fit: cover (căn giữa) -> toạ độ % trong khung = toạ độ % trong video */
.hero-box { position: absolute; left: 50%; top: 50%; width: max(100cqw, 177.7778cqh); height: max(56.25cqw, 100cqh); transform: translate(-50%, -50%); container-type: size; pointer-events: none; z-index: 1; }
/* chữ Hán của video (x 23–78%, y 40–60%) đã xóa bằng miếng vá; khẩu hiệu Việt đặt vào vùng đó, dòng phụ nằm trên dải đỏ có sẵn (x 39–61%, y 59,5–65%) */
/* 6 ánh sao 8 cánh ở mắt 3 vua (toạ độ % trong khung video 16:9; mặt nhân vật trong video gần như đứng yên), chớp lần lượt theo cặp mắt,
   chu kỳ 4 s = nhịp lặp của video */
.eye-star { position: absolute; width: 2.1cqw; height: 2.1cqw; margin: -1.05cqw 0 0 -1.05cqw; pointer-events: none; opacity: 0; /* 23/11/2026: bỏ mix-blend-mode: screen (buộc trộn với video mỗi khung) */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='1'/%3E%3Cstop offset='.35' stop-color='%23ffe9a8' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='%23ffb84a' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle r='22' fill='url(%23g)'/%3E%3Cpath fill='%23fffbe8' d='M0-50 4-4 50 0 4 4 0 50-4 4-50 0-4-4Z'/%3E%3Cpath fill='%23ffe9b0' opacity='.85' d='M0-26 2.4-2.4 26 0 2.4 2.4 0 26-2.4 2.4-26 0-2.4-2.4Z' transform='rotate(45)'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: eyestar 4s infinite; }
.eye-star:nth-child(1) { left: 48.91%; top: 22.69%; animation-delay: .4s; }   /* 09/11: chỉ giữ 2 sao ở mắt vua giữa */
.eye-star:nth-child(2) { left: 51.67%; top: 22.69%; animation-delay: .58s; }
@keyframes eyestar {
  0% { opacity: 0; transform: scale(.2) rotate(0deg); }
  6% { opacity: 1; transform: scale(1.15) rotate(30deg); }
  12% { opacity: .85; transform: scale(.9) rotate(50deg); }
  20%, 100% { opacity: 0; transform: scale(.3) rotate(80deg); }
}
.eye-stars { position: absolute; inset: 0; z-index: 1; }
/* 09/11: miếng vá làm lại bằng tools/hero_patch.py (PatchMatch, xóa cả dải đỏ gốc) — toạ độ do tool in ra */
.hero-patch { position: absolute; left: 22.3438%; top: 37.0370%; width: 56.4062%; height: 28.9815%; } /* 09/11 chiều: patch3 = vùng vua đỏ + vai vua giữa vá lại kiểu Criminisi (tools/hero_patch3) */
.hero-mid { position: absolute; left: 17%; right: 17%; top: 39%; height: 21%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero-mid::before { content: ''; position: absolute; z-index: -1; inset: -8% -4%; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, #0d0704b0 0%, #0d070470 50%, #0d070400 80%); }
/* 09/11 (người dùng): chữ to hơn + dời lên cho cân dải lụa đỏ (dải đỏ của khung hình ở 59,3–63,8% chiều cao, tâm ~61,5%; trước tâm chữ ở 62,3% + nét chữ nằm thấp trong ô) */
.hero-mid .ribbon { position: absolute; left: 50%; top: 125%; margin: 0; transform: translate(-50%, -50%); white-space: nowrap;  animation: fadeonly .7s ease 1.3s forwards; }
@keyframes fadeonly { to { opacity: 1; } }
.hero-v { display: block; object-fit: cover; background: #120c08 center/cover no-repeat; }
.hero-static { display: none; overflow: hidden; }
.nogl .hero-v { display: none; }
.nogl .hero-static { display: block; }
.hs-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hs-m, .hs-f { position: absolute; bottom: 0; height: 88%; width: auto; max-width: none; }
.hs-m { left: 50%; transform: translateX(-12%); }
.hs-f { left: 50%; height: 78%; transform: translateX(-98%); filter: brightness(.85); }
.pg-hero::after { /* nối sang màn giấy bên dưới */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none;
  background: linear-gradient(transparent, #0d0806);
}
.hero-copy {
  position: absolute; left: 0; right: 0; bottom: 9vh; z-index: 2; text-align: center; padding: 0 16px;
  display: flex; flex-direction: column; align-items: center; pointer-events: none;
}
.hero-copy > * { pointer-events: auto; }
/* 08/11 khuya (người dùng): khẩu hiệu ĐỨNG YÊN, font FZ GameBr in hoa, vàng nhạt trơn — không viền, không bóng, không chuyển màu.
   Hiệu ứng duy nhất: vệt sáng TRẮNG hẹp nghiêng 30° (gradient 120°) quét trái -> phải rồi đảo về (alternate, nhún đàn hồi), cắt theo chữ.
   Ngoài vệt sáng, gradient là màu vàng nhạt trơn (+ background-color cùng màu cho lúc nhún vượt biên). */
.slogan {
  margin: -.32em -.5em -.12em; padding: .32em .5em .12em;
  font: 400 min(5.75cqw, 7.6vw)/1.12 'FZ HBR Game', var(--slogan); /* 09/11 (người dùng): font FZ HBR Game, to hơn, giãn chữ, viền đen 2 px; 09/11 chiều: +15 % cỡ chữ, viền dày 2 px */ letter-spacing: .09em; word-spacing: .18em; text-transform: uppercase; text-align: center;
  /* vàng gold (08/11 khuya: #f3d58c trước đó nhạt như kem); vệt sáng là dải trắng hẹp */
  color: #f5b82e;
  /* vệt sáng bề rộng CỐ ĐỊNH theo px (lõi trắng ~28 px, mép mờ ±46 px): trước đây tính theo % khối chữ nên trên PC (khối rộng ~1000 px)
     vệt phình ~200 px thành mảng trắng; nền vàng = background-color, ngoài vệt là trong suốt */
  /* 23/11/2026 (tối ưu giật): chữ vàng nay TĨNH. Trước đây vệt sáng là background-position chạy ngay trên khối chữ có bộ lọc SVG #sl3d
     -> mỗi khung trình duyệt vẽ lại chữ + chạy lại cả bộ lọc (phình nét, 5 lớp đổ khối, làm mờ) trên CPU. Vệt sáng chuyển sang lớp .sl-shine bên dưới. */
  /* 09/11 (người dùng): chữ nổi 3D — bộ lọc SVG #sl3d (index.html): viền đỏ 2 px phình ra NGOÀI nét (text-stroke vẽ đè vào trong làm mất màu vàng
     của font bút lông nét mảnh), khối đỏ sẫm 5 px đổ xuống, bóng mềm. */
  filter: url(#sl3d);
}
/* Vệt sáng trắng quét qua chữ (23/11/2026): bản sao chữ màu trắng nằm đè lên khẩu hiệu, chỉ lộ ra trong một dải hẹp nghiêng (mask của .sl-band).
   Dải trượt bằng transform, chữ trắng bên trong trượt NGƯỢC đúng bằng ấy nên đứng yên so với chữ vàng -> chỉ ghép lớp trên GPU, không vẽ lại. */
.sl-wrap { position: relative; }
.sl-shine, .sl-band, .sl-white { position: absolute; inset: 0; pointer-events: none; }
.sl-band {
  -webkit-mask-image: linear-gradient(120deg, #0000 calc(50% - 46px), #000d calc(50% - 14px), #000 50%, #000d calc(50% + 14px), #0000 calc(50% + 46px));
  mask-image: linear-gradient(120deg, #0000 calc(50% - 46px), #000d calc(50% - 14px), #000 50%, #000d calc(50% + 14px), #0000 calc(50% + 46px));
  transform: translateX(-60%); animation: slband 9s 1s infinite alternate; will-change: transform;
}
.slogan.sl-white { margin: 0; padding: 0; color: #fff; filter: none !important; transform: translateX(60%); animation: slwhite 9s 1s infinite alternate; will-change: transform; }
.slogan span { display: block; white-space: nowrap; }
/* quét chậm (~7 s mỗi lượt, trước ~2,5 s), nghỉ ~1,8 s ở hai đầu rồi đảo chiều, nhún nhẹ khi dừng */
/* dải đi từ trái (tâm ở -10% bề rộng chữ) sang phải (110%) rồi đảo về — đúng hướng + nhịp của txtsweep cũ */
@keyframes slband {
  0%, 10% { transform: translateX(-60%); animation-timing-function: cubic-bezier(.45, 0, .3, 1.12); }
  90%, 100% { transform: translateX(60%); }
}
@keyframes slwhite {
  0%, 10% { transform: translateX(60%); animation-timing-function: cubic-bezier(.45, 0, .3, 1.12); }
  90%, 100% { transform: translateX(-60%); }
}

.ribbon { margin: .9cqw 0 0; opacity: 0; animation: fadeup .7s ease 1.3s forwards; }
/* 09/11: dải lụa đỏ tách khỏi video (img/ribbon_red.webp, tools/hero_patch.py) -> đi cùng chữ, dời được */
.ribbon span { display: inline-block; padding: .4em 2.1em .42em; background: url(/home/img/ribbon_red.webp) center / 100% 100% no-repeat; color: #fff1d0; font: 400 max(13px, 1.95cqw)/1 var(--title); letter-spacing: .04cqw; text-shadow: 0 1px 2px #3a0a05, 0 0 6px #5a120a; }
@keyframes fadeup { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero-btns { display: flex; gap: 18px; margin-top: 26px; opacity: 0; animation: fadeup .7s ease 1.5s forwards; flex-wrap: wrap; justify-content: center; }
.btn-play, .btn-dl {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 210px; height: 66px; padding: 0 22px; border-radius: 4px; border: 0; overflow: hidden;
}
.btn-play {
  background: linear-gradient(180deg, #e2563f, #a3291d 55%, #7a1a11); color: #fff4d6;
  box-shadow: 0 0 0 1px #f3c97a, 0 0 0 4px #5b130c, 0 0 0 5px #e2b86088, 0 10px 30px #c0392b66;
  /* 23/11/2026: bỏ nhịp thở box-shadow (glow 2,6 s) — đổi bóng đổ = vẽ lại nút mỗi khung; vệt sáng quét vẫn giữ */
}
.btn-dl {
  background: linear-gradient(180deg, #2a1d12dd, #120c08ee); color: var(--gold2);
  box-shadow: 0 0 0 1px #e2b860aa, 0 10px 26px #0008;
}
.btn-play span, .btn-dl span { font: 900 24px/1.1 var(--title); letter-spacing: 1px; text-shadow: 0 2px 3px #0008; }
.btn-dl span { font-size: 20px; }
/* Tải APK (08/11): cùng kiểu Tải Launcher, viền ngả xanh ngọc để phân biệt */
.btn-apk { background: linear-gradient(180deg, #16302add, #0a1a16ee); color: #bfe8c9; box-shadow: 0 0 0 1px #7fc79aaa, 0 10px 26px #0008; }
.btn-apk::before { animation-delay: 2.6s; }
.btn-play small, .btn-dl small { font-size: 12px; opacity: .8; letter-spacing: .5px; }
.btn-play::before, .btn-dl::before { /* vệt sáng quét */
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, #fff5 50%, transparent); transform: skewX(-20deg);
  animation: sweep 3.6s ease-in-out infinite;
}
.btn-dl::before { animation-delay: 1.8s; background: linear-gradient(100deg, transparent, #e2b86033 50%, transparent); }
.btn-play:hover, .btn-dl:hover { filter: brightness(1.12); }
/* 23/11/2026: trượt bằng transform (475% bề rộng vệt = 190% bề rộng nút, như left -60% -> 130% trước đây) thay cho đổi left = dàn trang lại mỗi khung */
@keyframes sweep { 0%, 55% { transform: translateX(0) skewX(-20deg); } 100% { transform: translateX(475%) skewX(-20deg); } }
@keyframes glow { 50% { box-shadow: 0 0 0 1px #f3c97a, 0 0 0 4px #5b130c, 0 0 0 5px #e2b860cc, 0 10px 44px #e74c3c99; } }
.hero-sv { margin: 16px 0 0; min-height: 20px; color: #e8d3a6; font-size: 14px; text-shadow: 0 1px 3px #000; opacity: 0; animation: fadeup .7s ease 1.7s forwards; }
.hero-sv b { color: #8fe08a; font-weight: 600; }
.hero-sv .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5fd35a; box-shadow: 0 0 8px #5fd35a; margin-right: 6px; vertical-align: 1px; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.scroll-hint { position: absolute; left: 50%; bottom: 14px; z-index: 3; width: 26px; height: 40px; margin-left: -13px; border: 2px solid #e2b860aa; border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ================= màn giấy dó ================= */
.pg-paper {
  color: var(--txt);
  background:
    radial-gradient(ellipse at 20% 10%, #fffaf0 0%, transparent 55%),
    radial-gradient(ellipse at 85% 90%, #e6d6b9 0%, transparent 60%),
    linear-gradient(180deg, #f3ebdc, #e9dcc3);
  padding: 92px 0 40px;
}
.pg-paper::before { /* sợi giấy */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .25 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ink { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; pointer-events: none; opacity: .5; background-repeat: no-repeat; background-size: 100% 100%; }
.ink-a, .ink-c { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 400' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23756650' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='%23756650' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M0 260 C120 170 190 120 300 190 S470 120 560 60 S700 180 820 150 S1000 40 1110 120 S1300 210 1400 140 S1530 120 1600 170 V400 H0Z'/%3E%3Cpath fill='url(%23g)' opacity='.7' d='M0 330 C160 260 260 300 380 250 S600 290 720 230 S930 300 1050 260 S1280 210 1400 270 S1540 300 1600 280 V400 H0Z'/%3E%3C/svg%3E"); }
.ink-b, .ink-d { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 400' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23756650' stop-opacity='.5'/%3E%3Cstop offset='1' stop-color='%23756650' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M0 200 C90 150 160 210 260 160 S420 60 520 140 S690 220 800 170 S960 80 1080 150 S1250 230 1380 120 S1540 170 1600 140 V400 H0Z'/%3E%3Cpath fill='url(%23g)' opacity='.7' d='M0 300 C200 250 300 320 450 270 S650 230 800 290 S1000 250 1150 280 S1400 240 1600 300 V400 H0Z'/%3E%3C/svg%3E"); }
.wrap { position: relative; z-index: 2; width: min(1180px, calc(100% - 140px)); margin: 0 auto; }
.ttl { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; }
.ttl .seal {
  display: grid; place-items: center; width: 54px; height: 54px; font: 400 32px/1 var(--han); font-style: normal; color: #fff1d6;
  background: radial-gradient(circle at 40% 35%, #c94233, var(--red) 60%, var(--red2)); border-radius: 8px; transform: rotate(-6deg);
  box-shadow: 0 0 0 2px #f1dfba, 0 0 0 3px var(--red2), 0 6px 14px #6e160f55;
}
.ttl span { font: 900 clamp(30px, 3vw, 44px)/1 var(--title); color: #2b1b0e; letter-spacing: 1px; }
.ttl em { font-style: normal; color: var(--txt2); font: 14px/1 var(--serif); padding-left: 18px; position: relative; letter-spacing: 1px; }
.ttl em::before { content: ''; position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; border: 1px solid var(--gold3); transform: rotate(45deg); }
.ttl::after { content: ''; flex: 1; height: 1px; margin-left: 10px; background: linear-gradient(90deg, var(--line), transparent); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 8px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; padding: 9px 16px 8px; color: var(--txt2); font: 600 14px/1 var(--serif); position: relative; }
.tabs button.on { color: var(--red); }
.tabs button.on::after { content: ''; position: absolute; left: 12%; right: 12%; bottom: -1px; height: 3px; background: var(--red); border-radius: 2px 2px 0 0; }
.tabs button:hover { color: var(--red); }
.empty { color: var(--txt2); text-align: center; padding: 28px 0; list-style: none; }

/* --- 1. tin tức --- */
.news-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px; }
.slider { position: relative; aspect-ratio: 2 / 1; border-radius: 6px; overflow: hidden; background: #2a1d12; box-shadow: 0 0 0 1px var(--line), 0 0 0 5px #f6efe1, 0 0 0 6px var(--line), 0 14px 30px #4a32183a; }
.sl-track { position: absolute; inset: 0; }
.sl-item { position: absolute; inset: 0; opacity: 0; transition: opacity .9s; }
.sl-item.on { opacity: 1; }
.sl-item img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.sl-item.on img { transform: scale(1); }
.sl-item div { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 34px; background: linear-gradient(transparent, #0d0806e6); color: #fff; }
.sl-item b { display: block; font: 900 clamp(22px, 2.2vw, 32px)/1.1 var(--title); color: var(--gold2); text-shadow: 0 2px 6px #000; }
.sl-item span { font-size: 14px; color: #ead9b8; }
.sl-dots { position: absolute; right: 16px; bottom: 12px; display: flex; gap: 7px; z-index: 2; }
.sl-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 1px solid #f8e2a6; background: transparent; }
.sl-dots button.on { background: var(--gold); width: 26px; border-radius: 5px; }
.news-box { min-width: 0; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li:not(.empty) { display: flex; align-items: center; gap: 10px; padding: 11px 6px; border-bottom: 1px dashed #cdb894; cursor: pointer; transition: background .2s; }
.news-list li:not(.empty):hover { background: #fff8e9aa; }
.news-list .k { flex: none; font-size: 12px; padding: 2px 8px; border-radius: 3px; color: #fff; background: var(--gold3); }
.news-list .k1 { background: var(--red); }
.news-list .k2 { background: #4f6a7d; }
.news-list .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: #3b2a1a; }
.news-list .pin { color: var(--red); font-size: 12px; }
.news-list .d { flex: none; color: var(--txt2); font-size: 13px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.card { position: relative; display: block; height: 128px; border-radius: 6px; overflow: hidden; color: #fff; box-shadow: 0 0 0 1px var(--line), 0 10px 22px #4a32182e; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #120c08e6, #120c0855 70%, transparent); }
.card b, .card span { position: relative; z-index: 1; display: block; padding-left: 18px; }
.card b { margin-top: 36px; font: 900 22px/1.1 var(--title); color: var(--gold2); text-shadow: 0 2px 4px #000; }
.card span { font-size: 13px; color: #e3d2b0; }
.card:hover img { transform: scale(1.08); }

/* --- 2. xếp hạng --- */
.side-art { position: absolute; z-index: 1; bottom: 0; height: 86%; width: auto; max-width: none; pointer-events: none; filter: drop-shadow(0 10px 30px #4a321855); opacity: 0; transition: opacity 1s, transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.art-f { left: -3vw; transform: translateX(-60px); }
.art-m { left: -4vw; transform: translateX(-60px); height: 92%; }
.pg.in .side-art { opacity: 1; transform: none; }
.pg-rank .wrap, .pg-guide .wrap { padding-left: clamp(0px, 18vw, 300px); }
.rank-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; }
.panel { background: #fbf6ecd9; border-radius: 6px; padding: 16px 18px; box-shadow: 0 0 0 1px var(--line), 0 12px 28px #4a321826; backdrop-filter: blur(2px); }
.panel h3 { margin: 0 0 10px; font: 900 22px/1 var(--title); color: #2b1b0e; }
.rank { width: 100%; border-collapse: collapse; font-size: 14px; }
.rank th { text-align: left; font: 600 13px/1 var(--serif); color: var(--txt2); padding: 8px 8px; border-bottom: 1px solid var(--line); }
.rank td { padding: 7px 8px; border-bottom: 1px dashed #dcc8a4; }
.rank tr:nth-child(-n+3) td:first-child b { color: #fff; background: var(--red); }
.rank td:first-child b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; background: #e7d8bc; color: #5b4630; }
.rank tr:nth-child(1) td:first-child b { background: linear-gradient(#f7d77a, #b8862c); }
.rank tr:nth-child(2) td:first-child b { background: linear-gradient(#e5e5e5, #8f8f8f); }
.rank tr:nth-child(3) td:first-child b { background: linear-gradient(#e7a36b, #9c5a2a); }
.rank td.nm { font-weight: 600; }
.rank td:last-child { font-weight: 700; color: var(--red); }
.nation { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 12px; color: #fff; }
.nation.c1 { background: var(--shu); } .nation.c2 { background: var(--ngo); } .nation.c3 { background: var(--nguy); }
.sv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sv-list li:not(.empty) { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; align-items: center; padding: 10px 12px; border-radius: 5px; background: #fffaf0; box-shadow: 0 0 0 1px #e1cca6; }
.sv-n { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 6px; font: 900 18px/1 var(--title); color: var(--gold2); background: linear-gradient(#3a2716, #1a110a); box-shadow: inset 0 0 0 1px #e2b86077; }
.sv-s { font-weight: 700; color: #2b1b0e; }
.sv-s .st { font-size: 12px; font-weight: 600; margin-left: 6px; }
.st.on { color: #2f8a3a; } .st.off { color: #9a8a74; } .st.mt { color: #c0392b; }
.sv-m { font-size: 12.5px; color: var(--txt2); }
.sv-go { grid-row: span 2; padding: 8px 14px; border-radius: 4px; border: 0; color: #fff4d6; font: 700 13px/1 var(--serif); background: linear-gradient(#c94233, var(--red2)); box-shadow: 0 0 0 1px #e2b86088; }
.sv-go:hover { filter: brightness(1.15); }
.sv-go:disabled { background: #b9a78a; box-shadow: none; cursor: default; }

/* --- 3. cẩm nang: vòng xoay --- */
.wheel { position: relative; width: min(600px, 62vh, 100%); aspect-ratio: 1; margin: -6px auto 0; }
.w-ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #b89664; stroke-width: 1.4; }
.w-ring1 { animation: spin 90s linear infinite; }
.w-ring1 text { fill: #a98656; stroke: none; font: 400 22px/1 var(--han); letter-spacing: 6px; }
.w-ring2 { animation: spin 60s linear infinite reverse; inset: 0; }
.w-core {
  position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 26px;
  background: radial-gradient(circle, #fffaf0 0%, #f4e9d3 70%, #e8d6b4 100%); box-shadow: 0 0 0 1px var(--line), 0 0 0 8px #f7f0e0, 0 0 0 9px var(--line), 0 14px 30px #4a321833;
}
.w-core b { font: 900 clamp(20px, 2.2vw, 28px)/1.1 var(--title); color: var(--red); }
.w-core p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: #4a3826; }
.w-core.flip b, .w-core.flip p { animation: fadeup .5s ease; }
.w-nodes { position: absolute; inset: 0; }
.w-node {
  position: absolute; width: 92px; margin: -36px 0 0 -46px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: 0; padding: 0; color: #5b4630; font: 600 13px/1.15 var(--serif); text-align: center;
}
.w-node i {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font: 400 24px/1 var(--han); font-style: normal; color: #fff1d6;
  background: radial-gradient(circle at 40% 35%, #e9b75a, #b47a22 60%, #7a4e12); box-shadow: 0 0 0 2px #f6ecd6, 0 0 0 3px #b89664, 0 6px 12px #4a321840;
  transition: transform .25s, background .25s;
}
.w-node:hover i { transform: scale(1.1); }
.w-node.on i { background: radial-gradient(circle at 40% 35%, #e0503f, var(--red) 60%, var(--red2)); transform: scale(1.14); box-shadow: 0 0 0 2px #f6ecd6, 0 0 0 3px var(--red), 0 0 18px #c0392b77; }
.w-node.on { color: var(--red); }

/* --- 4. đặc sắc: băng chuyền 3D --- */
.pg-feat { display: flex; flex-direction: column; padding-bottom: 0; }
.pg-feat .wrap { flex: 1; }
.flow { position: relative; height: clamp(240px, 42vh, 420px); perspective: 1400px; }
.fl-stage { position: absolute; inset: 0; transform-style: preserve-3d; }
.fl-item {
  position: absolute; left: 50%; top: 0; width: min(700px, 60%); height: 100%; margin-left: max(-350px, -30%); border-radius: 8px; overflow: hidden; cursor: pointer;
  box-shadow: 0 0 0 2px #e9d4a8, 0 0 0 4px #7a5a2c, 0 20px 40px #2a1a0c66; transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .7s, filter .7s;
}
.fl-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fl-item b { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; color: var(--gold2); font: 900 clamp(22px, 2.4vw, 34px)/1 var(--title); text-shadow: 0 2px 6px #000; background: linear-gradient(transparent, #0d0806dd); }
.fl-nav { position: absolute; top: 50%; z-index: 5; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; border: 0; font: 400 34px/1 var(--serif); color: #fff1d6; background: radial-gradient(circle at 40% 35%, #c94233, var(--red2)); box-shadow: 0 0 0 2px #f1dfba, 0 6px 14px #0004; }
.fl-prev { left: 4%; } .fl-next { right: 4%; }
.fl-cap { text-align: center; min-height: 44px; margin: 18px auto 0; max-width: 640px; color: #4a3826; font-size: 15px; }
.acts { display: flex; justify-content: center; gap: 34px; margin-top: 8px; }
.acts a { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #5b4630; font: 600 13px/1 var(--serif); }
.acts .ic { width: 50px; height: 50px; padding: 13px; border-radius: 50%; background: #5b4630; -webkit-mask: none; mask: none; position: relative; }
.acts .ic::after { content: ''; position: absolute; inset: 13px; background: #f6ecd6; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.acts a:hover { color: var(--red); }
.acts a:hover .ic { background: var(--red); }
.foot { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 18px 16px 22px; margin-top: 24px; background: #1a110b; color: #a99272; font-size: 13px; }
.foot p { margin: 2px 0; }
.foot .warn { color: #d9b46a; }

/* ================= hộp thoại ================= */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: #0b0705d4; animation: fadein .2s; }
/* 10/11: bỏ backdrop-filter (làm mờ lại toàn màn mỗi khung khi video/hoạt ảnh phía sau chạy = giật); hộp thoại mở thì dừng mọi hoạt ảnh nền */
html.m-open body > :not(.modal):not(.toast), html.m-open body > :not(.modal):not(.toast) * { animation-play-state: paused !important; }
@keyframes fadein { from { opacity: 0; } }
.m-box {
  position: relative; width: min(420px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 26px 28px 22px; border-radius: 8px;
  background: linear-gradient(180deg, #f8f1e3, #ecdfc5); color: var(--txt);
  box-shadow: 0 0 0 1px #7a5a2c, 0 0 0 5px #2a1c10, 0 0 0 6px #e2b86099, 0 24px 60px #000c; animation: pop .25s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes pop { from { transform: scale(.92); opacity: 0; } }
.m-x { position: absolute; right: 10px; top: 6px; width: 34px; height: 34px; border: 0; background: none; font-size: 28px; color: #7a6248; }
.m-x:hover { color: var(--red); }
.m-logo { display: block; width: 128px; height: auto; margin: -8px auto 6px; filter: drop-shadow(0 6px 10px #4a321855); }
.m-tabs { justify-content: center; margin-bottom: 14px; }
.m-tabs button { font-size: 16px; }
#f-auth label { display: block; margin: 0 0 12px; font-size: 13px; color: var(--txt2); }
#f-auth input { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border-radius: 4px; border: 1px solid #c9b18a; background: #fffcf5; color: #2b1b0e; font-size: 15px; }
#f-auth input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px #a3291d22; }
.m-err { min-height: 20px; margin: 4px 0 8px; color: #b3261e; font-size: 13.5px; }
.btn-gold { display: block; width: 100%; height: 46px; border: 0; border-radius: 4px; color: #fff4d6; font: 900 18px/1 var(--title); letter-spacing: 1px; background: linear-gradient(#d9503d, var(--red) 55%, var(--red2)); box-shadow: 0 0 0 1px #f3c97a, 0 6px 16px #a3291d55; }
.btn-gold:hover { filter: brightness(1.1); }
.btn-gold:disabled { filter: grayscale(.6); cursor: wait; }
.m-note { margin: 12px 0 0; font-size: 12.5px; color: var(--txt2); text-align: center; }
.m-note a { color: var(--red); text-decoration: underline; }
.m-sv { width: min(480px, 100%); }
.m-sv h3, .m-news h3 { margin: 0 0 6px; font: 900 24px/1.15 var(--title); color: #2b1b0e; padding-right: 30px; }
.ms-home { margin: 0 0 12px; font-size: 13.5px; color: var(--txt2); }
.ms-home b { color: var(--red); }
.ms-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ms-list button {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2px 12px; text-align: left; padding: 10px 12px;
  border-radius: 5px; border: 0; background: #fffaf0; box-shadow: 0 0 0 1px #e1cca6; transition: box-shadow .2s, transform .2s;
}
.ms-list button:hover:not(:disabled) { box-shadow: 0 0 0 2px var(--red); transform: translateY(-1px); }
.ms-list button:disabled { opacity: .55; cursor: not-allowed; }
.ms-list .go { grid-row: span 2; color: var(--red); font: 900 15px/1 var(--title); }
.ms-list .home { box-shadow: 0 0 0 2px var(--gold3); }
.m-news { width: min(1320px, 96vw); }   /* 08/11 khuya: bản web không giới hạn bề ngang -> hộp đọc bài rộng */
.mn-meta { margin: 0 0 14px; color: var(--txt2); font-size: 13px; }
.mn-body { font-size: 15px; line-height: 1.65; }
.nb-h { margin: 16px 0 6px; font: 900 19px/1.2 var(--title); color: var(--red); }
.nb-ul { margin: 6px 0; padding-left: 22px; }
.nb p { margin: 6px 0; white-space: pre-line; }
.nb-banner img { width: 100%; border-radius: 6px; display: block; margin: 8px 0; }
.nb-pics { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0; }
.nb-pics.grid8 { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
.nb-pic { margin: 0; text-align: center; font-size: 12px; color: var(--txt2); }
.nb-pic img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 2px #c9b18a; display: block; margin: 0 auto 3px; }
.nb-pic.n1 img { box-shadow: 0 0 0 2px var(--shu); } .nb-pic.n2 img { box-shadow: 0 0 0 2px var(--ngo); } .nb-pic.n3 img { box-shadow: 0 0 0 2px var(--nguy); }
.nb-arrow { display: flex; flex-direction: column; align-items: center; color: var(--red); font-size: 12px; }
.nb-arrow-a { font-size: 22px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 70; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 11px 20px; border-radius: 5px; background: #1d140dee; color: var(--gold2); box-shadow: 0 0 0 1px #e2b86066, 0 10px 26px #000a; font-size: 14px; animation: fadeup .25s; }

/* ================= hiện dần khi cuộn tới ================= */
.pg-paper .ttl, .pg-paper .news-row, .pg-paper .cards, .pg-paper .rank-row, .pg-paper .wheel, .pg-paper .flow, .pg-paper .fl-cap, .pg-paper .acts { opacity: 0; transform: translateY(26px); transition: opacity .8s, transform .8s cubic-bezier(.2, .8, .2, 1); }
.pg.in .ttl, .pg.in .news-row, .pg.in .cards, .pg.in .rank-row, .pg.in .wheel, .pg.in .flow, .pg.in .fl-cap, .pg.in .acts { opacity: 1; transform: none; }
.pg.in .news-row, .pg.in .rank-row, .pg.in .wheel, .pg.in .flow { transition-delay: .15s; }
.pg.in .cards, .pg.in .fl-cap { transition-delay: .3s; }
.pg.in .acts { transition-delay: .4s; }

/* ================= màn hình thấp / hẹp ================= */
/* 09/11: màn thấp (laptop ~1366x650, 1536x730): dải đỏ đã dời xuống -> hạ cụm nút cho khỏi đè */
@media (max-height: 800px) and (min-width: 901px) { .hero-copy { bottom: 2vh; } .scroll-hint { display: none; } }
@media (max-height: 780px) and (min-width: 901px) {
  .pg-paper { padding-top: 78px; }
  .ttl { margin-bottom: 14px; }
  .ttl .seal { width: 44px; height: 44px; font-size: 26px; }
  .cards { margin-top: 18px; }
  .card { height: 100px; } .card b { margin-top: 26px; font-size: 19px; }
  .slider { aspect-ratio: 2.3 / 1; }
  .rank td { padding: 5px 8px; }
  .foot { margin-top: 12px; padding: 12px 16px 14px; }
}
@media (max-width: 1180px) {
  .wrap { width: calc(100% - 120px); }
  .pg-rank .wrap, .pg-guide .wrap { padding-left: 0; }
  .side-art { opacity: 0 !important; }
}
@media (max-width: 900px) {
  body { font-size: 14px; }
  .topbar { height: 56px; justify-content: space-between; padding: 0 12px; background: #120c08f0; }
  .tb-burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; border: 0; background: none; padding: 8px; }
  .tb-burger span { display: block; height: 2px; background: var(--gold); border-radius: 1px; transition: .25s; }
  .tb-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .tb-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .tb-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .tb-nav { position: static; gap: 0; }
  .tb-nav ul { display: none; }
  .tb-logo { position: absolute; left: 54px; top: 0; width: 88px; height: 56px; }
  .tb-logo img { width: 84px; top: 3px; left: 0; transform: none; }
  .tb-logo:hover img { transform: scale(1.05); }
  .tb-acc { position: static; height: auto; font-size: 13px; }
  .tb-acc b { max-width: 90px; }
  .topbar.open .tb-nav ul { display: flex; flex-direction: column; position: fixed; left: 0; right: 0; background: #120c08f5; padding: 6px 16px; gap: 0; }
  .topbar.open .tb-l { top: 56px; }
  .topbar.open .tb-r { top: calc(56px + 3 * 41px + 6px); padding-top: 0; box-shadow: 0 12px 20px #0008; }
  .topbar.open .tb-nav ul a { padding: 12px 6px; border-bottom: 1px solid #e2b86022; }
  .dots { display: none; }
  .dock { width: 74px; height: 74px; right: 12px; bottom: 14px; }
  .dock-t { font-size: 14px; }
  .wrap { width: calc(100% - 32px); }
  .pg-paper { padding: 76px 0 34px; min-height: 0; }
  .news-row, .rank-row { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { height: 96px; } .card b { margin-top: 24px; font-size: 18px; } .card b, .card span { padding-left: 12px; }
  .ttl em { display: none; }
  .wheel { width: min(520px, 100%); }
  .w-node { width: 72px; margin: -30px 0 0 -36px; font-size: 11.5px; }
  .w-node i { width: 42px; height: 42px; font-size: 20px; }
  .w-core { width: 50%; padding: 12px; }
  .w-core p { font-size: 12px; }
  .fl-item { width: 78%; margin-left: -39%; }
  .fl-nav { display: none; }
  .hero-copy { bottom: 10vh; }
  .slogan { font-size: 7.1vw; filter: url(#sl3d-s); }
  .ribbon span { letter-spacing: 0; }
  .hero-btns { gap: 8px; margin-top: 16px; width: min(330px, 92vw); }
  .btn-play, .btn-dl { min-width: 0; height: 50px; padding: 0 8px; }
  .btn-play { flex: 1 1 100%; }
  .btn-dl { flex: 1 1 0; }
  .btn-dl span { font-size: 16px; }
  .btn-dl small { font-size: 10.5px; }
  .foot { flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
  .w-core p { display: none; }
  .w-node span { display: none; }
}
/* prefers-reduced-motion: không tắt hoạt ảnh (Windows tắt "hiệu ứng hoạt ảnh" cũng báo reduce -> trang máy tính đứng yên, 08/11); chỉ bỏ cuộn mượt. */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ==================================================================================================
 * 08/11: HIỆU ỨNG HOVER — trượt vị trí (translate) + ánh sáng (glow, vệt sáng quét). Chỉ máy có chuột (hover: hover)
 * để điện thoại không bị "dính" trạng thái hover sau khi chạm.
 * ================================================================================================== */
.btn-play, .btn-dl, .btn-gold, .sv-go, .dock, .acts a, .acts .ic, .tabs button, .tb-nav ul a, .tb-acc a, .fl-nav, .sl-dots button,
.ms-list button, .sv-list li, .news-list li, .card b, .card span, .w-node i, .dots a, .m-x {
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s, filter .28s, color .2s, background-color .2s, text-shadow .28s, padding .28s;
}
.card::before, .btn-gold::before, .sv-go::before, .ms-list button::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; z-index: 2; pointer-events: none;
  background: linear-gradient(100deg, transparent, #fff6 50%, transparent); transform: skewX(-20deg);
}
.btn-gold, .sv-go, .ms-list button { position: relative; overflow: hidden; }
@media (hover: hover) {
  /* nút lớn màn đầu: nổi lên + quầng sáng + vệt sáng chạy nhanh */
  .btn-play:hover { transform: translateY(-4px); filter: brightness(1.12); animation: none;
    box-shadow: 0 0 0 1px #f3c97a, 0 0 0 4px #5b130c, 0 0 0 5px #f3c97acc, 0 14px 34px #e2563f99, 0 0 36px #ffb35a88; }
  .btn-dl:hover { transform: translateY(-4px); filter: brightness(1.15); box-shadow: 0 0 0 1px #f3d48a, 0 14px 30px #000a, 0 0 28px #e2b86077; }
  .btn-apk:hover { box-shadow: 0 0 0 1px #a6ebbd, 0 14px 30px #000a, 0 0 28px #7fc79a77; }
  .btn-play:hover::before, .btn-dl:hover::before { animation: sweepfast .75s ease-out; }
  .btn-play:active, .btn-dl:active { transform: translateY(-1px); }
  /* thanh trên cùng */
  .tb-nav ul a:hover { transform: translateY(-2px); text-shadow: 0 0 10px #f3c97a99; }
  .tb-acc a:hover { text-shadow: 0 0 10px #f3c97a99; }
  /* chấm điều hướng bên phải: trượt sang trái + sáng */
  .dots a:hover { transform: translateX(-4px); box-shadow: 0 0 14px #e2b86066; }
  .dock:hover { transform: scale(1.06) translateY(-2px); filter: brightness(1.1) drop-shadow(0 0 14px #ff9a4a99); }
  /* thẻ lối tắt: chữ trượt sang phải, ảnh phóng nhẹ, vệt sáng quét */
  .card:hover { box-shadow: 0 0 0 1px var(--gold), 0 12px 26px #0006, 0 0 22px #e2b86055; }
  .card:hover b, .card:hover span { transform: translateX(10px); }
  .card:hover b { text-shadow: 0 2px 4px #000, 0 0 14px #f3c97aaa; }
  .card:hover::before, .btn-gold:hover::before, .sv-go:hover::before, .ms-list button:hover:not(:disabled)::before { left: 130%; transition: left .7s ease-out; }
  /* tin tức: dòng trượt phải + vạch vàng bên trái */
  .news-list li:not(.empty):hover { padding-left: 14px; box-shadow: inset 3px 0 0 var(--gold), inset 40px 0 30px -30px #e2b86044; }
  .tabs button:hover { transform: translateY(-2px); text-shadow: 0 0 10px #c0392b55; }
  /* danh sách máy chủ */
  .sv-list li:not(.empty):hover { transform: translateX(5px); box-shadow: 0 0 0 1px var(--gold), 0 6px 18px #e2b86044; }
  .sv-go:hover:not(:disabled) { transform: translateX(3px); box-shadow: 0 0 0 1px #f3c97a, 0 0 16px #e2563f88; }
  .ms-list button:hover:not(:disabled) { transform: translateX(5px); box-shadow: 0 0 0 2px var(--red), 0 0 18px #e2563f55; }
  .btn-gold:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #f3c97a, 0 10px 22px #a3291d66, 0 0 22px #ffb35a66; }
  /* vòng cẩm nang + đặc sắc */
  .w-node:hover i { transform: scale(1.12) translateY(-3px); box-shadow: 0 0 0 2px #f6ecd6, 0 0 18px #e2b860aa; }
  .acts a:hover { transform: translateY(-4px); }
  .acts a:hover .ic { box-shadow: 0 0 0 3px #f6ecd6, 0 0 18px #c0392b88; }
  .fl-nav:hover { filter: brightness(1.2) drop-shadow(0 0 10px #f3c97a99); }
  .fl-prev:hover { transform: translateX(-4px); }
  .fl-next:hover { transform: translateX(4px); }
  .sl-dots button:hover { box-shadow: 0 0 8px #f3c97acc; transform: scale(1.2); }
  .rank tbody tr:hover td { background: #fff8e9aa; }
  .rank tbody tr:hover td.nm { padding-left: 14px; transition: padding .28s; }
  .m-x:hover { transform: rotate(90deg); }
}
@keyframes sweepfast { from { transform: translateX(0) skewX(-20deg); } to { transform: translateX(475%) skewX(-20deg); } }

/* ==================================================================================================
 * 08/11 tối (người dùng: "phối font trong FontGame, bọc border như wly, thêm icon cho sinh động")
 * ================================================================================================== */
/* --- font: tiêu đề/thẻ = FZ HBR Game (var --title), nút/menu/tab = FZ HYDHMX (var --ui); nội dung giữ Noto Serif --- */
.tb-nav ul a, .tb-acc, .tabs button, .acts a, .sv-go, .ms-list .go, .news-list .k, .fl-cap { font-family: var(--ui); font-weight: 400; }
.tb-nav ul a { font-size: 16px; letter-spacing: .3px; }
.tabs button { font-size: 15px; }
.btn-play span, .btn-dl span { font-family: var(--ui); font-weight: 400; letter-spacing: .5px; }
.ttl span { font-weight: 400; letter-spacing: 1.5px; font-size: clamp(34px, 3.4vw, 50px); }
.card b, .panel h3, .sl-item b, .fl-item b, .w-core b, .m-box h3 { font-weight: 400; letter-spacing: .5px; }

/* --- icon trong menu / tab / nút --- */
.tb-nav ul a { display: inline-flex; align-items: center; gap: 7px; }
.tb-nav ul a .ic { width: 16px; height: 16px; opacity: .85; }
.tabs button { display: inline-flex; align-items: center; gap: 6px; }
.tabs button .ic { width: 15px; height: 15px; }
.panel h3 { display: flex; align-items: center; gap: 8px; }
.panel h3 .ic { width: 22px; height: 22px; color: var(--red); }
.btn-play, .btn-dl { padding-left: 64px; padding-right: 24px; }
.btn-play > .ic, .btn-dl > .ic { position: absolute; left: 20px; top: 50%; width: 30px; height: 30px; margin-top: -15px; z-index: 1;
  filter: drop-shadow(0 2px 2px #0008); }
.btn-play > .ic { color: #fff4d6; }
.btn-dl > .ic { color: var(--gold2); }
.btn-apk > .ic { color: #bfe8c9; }
/* biểu tượng tròn trên thẻ lối tắt (như huy hiệu wly) */
.card .card-ic { position: absolute; z-index: 2; right: 14px; top: 50%; width: 46px; height: 46px; margin-top: -23px; padding: 11px; border-radius: 50%;
  -webkit-mask: none; mask: none; background: radial-gradient(circle at 35% 30%, #f6c66a, #c9802a 60%, #8d4f15); box-shadow: 0 0 0 2px #f8e2a6aa, 0 4px 10px #0008; }
.card .card-ic::after { content: ''; position: absolute; inset: 11px; background: #fff8e6; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.sv-go::after { content: ' »'; }

/* --- tiêu đề mục: con dấu có vòng viền + đường chấm kết thúc bằng hình thoi (như wly) --- */
.ttl .seal { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--gold3), 0 6px 14px #4a321833; }
.ttl::after { height: 10px; flex: 0 1 240px; margin-left: 14px; background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0 10 5 5 10 0 5z' fill='%23a8782c'/%3E%3Cpath d='M5 2.6 7.4 5 5 7.4 2.6 5z' fill='%23efe6d4'/%3E%3C/svg%3E") right center / 10px 10px no-repeat,
  radial-gradient(circle, var(--gold3) 1.1px, transparent 1.6px) left center / 7px 4px repeat-x; }

/* --- khung viền vàng đôi góc vát (9 lát cắt) + hình thoi giữa cạnh trên/dưới --- */
/* (08/11 khuya) KHÔNG đặt lại position cho .fl-item / .w-core (vốn absolute: băng chuyền + lõi vòng) — đặt nhầm làm lệch hết slide */
.news-box, .panel, .card { position: relative; }
.news-box { padding: 2px 0 0; }
.fr { position: absolute; inset: 0; z-index: 4; pointer-events: none; border: 19px solid transparent;
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' fill='none'%3E%3Cpath d='M17 1.5H47A17 17 0 0 0 62.5 17V47A17 17 0 0 0 47 62.5H17A17 17 0 0 0 1.5 47V17A17 17 0 0 0 17 1.5Z' stroke='%23d7b369' stroke-width='3'/%3E%3Cpath d='M24.9 10.5H39.1A27 27 0 0 0 53.5 24.9V39.1A27 27 0 0 0 39.1 53.5H24.9A27 27 0 0 0 10.5 39.1V24.9A27 27 0 0 0 24.9 10.5Z' stroke='%23d7b369' stroke-width='1'/%3E%3Cpath d='M5 14V5H14M50 5H59V14M59 50V59H50M14 59H5V50' stroke='%23d7b369' stroke-width='1'/%3E%3C/svg%3E") 30 / 19px / 0 stretch; }
/* bản có nền trắng (hộp tin, bảng xếp hạng, khung máy chủ): khung nằm DƯỚI nội dung, nền theo hình khung (4 góc khuyết trong suốt) */
.fr.fill { z-index: -1; border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' fill='none'%3E%3Cpath d='M17 1.5H47A17 17 0 0 0 62.5 17V47A17 17 0 0 0 47 62.5H17A17 17 0 0 0 1.5 47V17A17 17 0 0 0 17 1.5Z' fill='%23fff' fill-opacity='.9'/%3E%3Cpath d='M17 1.5H47A17 17 0 0 0 62.5 17V47A17 17 0 0 0 47 62.5H17A17 17 0 0 0 1.5 47V17A17 17 0 0 0 17 1.5Z' stroke='%23d7b369' stroke-width='3'/%3E%3Cpath d='M24.9 10.5H39.1A27 27 0 0 0 53.5 24.9V39.1A27 27 0 0 0 39.1 53.5H24.9A27 27 0 0 0 10.5 39.1V24.9A27 27 0 0 0 24.9 10.5Z' stroke='%23d7b369' stroke-width='1'/%3E%3Cpath d='M5 14V5H14M50 5H59V14M59 50V59H50M14 59H5V50' stroke='%23d7b369' stroke-width='1'/%3E%3C/svg%3E") 30 fill / 19px / 0 stretch; }
.panel { isolation: isolate; background: none !important; box-shadow: none !important; backdrop-filter: none !important; }
/* hình thoi rỗng 1 px trên viền trong giữa cạnh trái/phải; vòng nền quanh nó cắt hở viền trong */
.fr::before, .fr::after { content: ''; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border: 1px solid #d7b369; background: #fff; transform: rotate(45deg); box-shadow: 0 0 0 5px #fff; }
.fr::before { left: -16px; }
.fr::after { right: -16px; }
.fr::before { top: -11px; }
.fr::after { bottom: -11px; }
/* trên nền ảnh tối: khung sáng hơn, hình thoi viền tối */
.card .fr, .slider .fr, .fl-item .fr { filter: none; }
/* trên ảnh tối: hình thoi nền tối, không viền sáng */
.slider .fr::before, .slider .fr::after, .fl-item .fr::before, .fl-item .fr::after { background: #2a1d12; box-shadow: 0 0 0 3px #2a1d12; }
.card .fr::before, .card .fr::after { background: #fff7e8; box-shadow: 0 0 0 3px #fff7e8; }
.card, .slider { border-radius: 2px; }
.fl-item { border-radius: 2px; }
.m-box .fr { z-index: 0; }
@media (max-width: 900px) {
  .tb-nav ul a .ic { width: 18px; height: 18px; }
  .btn-play, .btn-dl { padding-left: 44px; padding-right: 10px; }
  .btn-play > .ic, .btn-dl > .ic { left: 12px; width: 22px; height: 22px; margin-top: -11px; }
  .btn-dl small { white-space: nowrap; font-size: 9.5px; }
  .ttl::after { display: none; }
}

/* ==================================================================================================
 * 08/11 khuya: bố cục theo bản tham khảo longngam.net/wly (giữ nền video của mình)
 * ================================================================================================== */
/* --- tiêu đề mục: huy hiệu tròn có icon + chữ thư pháp in hoa nâu đỏ ánh vàng --- */
.ttl .seal { width: 52px; height: 52px; border-radius: 50%; transform: none; font-size: 0;
  background: radial-gradient(circle at 38% 32%, #e0763a, #b03a1c 55%, #6e1a0b); box-shadow: 0 0 0 2px #f6e6c3, 0 0 0 3.5px #b98a3e, 0 6px 14px #6e1a0b44; }
.ttl .seal .ic { width: 26px; height: 26px; color: #fff3d6; }
.ttl span { font-family: var(--slogan); text-transform: uppercase; letter-spacing: 2px; font-size: clamp(32px, 3.1vw, 46px);
  margin: -.25em -.3em; padding: .25em .3em;
  background: linear-gradient(180deg, #c06a2c 0%, #8e2c12 48%, #6a1d0c 52%, #b0612a 100%); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; filter: drop-shadow(0 1px 0 #fff7e6); }

/* --- màn đầu: nút Play vuông + 2 nút tải xếp chồng --- */
.hero-btns { display: grid; grid-template-columns: 116px 240px 116px; grid-template-rows: 54px 54px; gap: 8px 10px; justify-content: center; }
.hero-btns .btn-play { grid-row: 1 / span 2; width: 116px; height: auto; min-width: 0; padding: 8px 6px; }
.hero-btns .btn-play > .ic { position: static; width: 46px; height: 46px; margin: 0 0 4px; }
.hero-btns .btn-play span { font-size: 19px; }
.hero-btns .btn-play small { display: none; }
.hero-btns .btn-dl { width: 240px; height: 54px; min-width: 0; padding: 0 12px 0 58px; align-items: flex-start; }
.hero-btns .btn-dl > .ic { left: 16px; width: 26px; height: 26px; margin-top: -13px; }
.hero-btns .btn-dl span { font-size: 18px; }
.hero-btns .btn-dl small { font-size: 11px; }
/* 09/11 (người dùng): ô QR nhóm Zalo bên phải, cỡ bằng nút Chơi ngay (116 × 116), QR phủ kín ô, không chữ; bấm = sao chép link nhóm */
.btn-qr { position: relative; grid-column: 3; grid-row: 1 / span 2; width: 116px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 0; border: 0; border-radius: 4px; overflow: hidden; cursor: pointer; background: #f4efe1; box-shadow: 0 0 0 1px #e2b860aa, 0 10px 26px #0008; }
.btn-qr svg { display: block; width: 100%; height: 100%; }
/* 09/11 chiều (người dùng): vạch quét 2 px chạy lên xuống như QR các trang giới thiệu khác (chỉ trang trí, không chặn bấm) */
.btn-qr::after { content: ''; position: absolute; left: 4%; right: 4%; top: 5%; bottom: 5%; pointer-events: none;
  /* 23/11/2026: khối cao 90% ô, vạch 2 px vẽ ở mép trên, trượt bằng transform (trước đổi top = dàn trang lại mỗi khung) */
  background: linear-gradient(90deg, #2fd07a00, #2fd07a 18%, #8affc0 50%, #2fd07a 82%, #2fd07a00) 0 0 / 100% 2px no-repeat;
  filter: drop-shadow(0 0 4px #2fd07acc); animation: qrscan 2.6s ease-in-out infinite alternate; will-change: transform; }
@keyframes qrscan { from { transform: translateY(0); } to { transform: translateY(calc(100% - 2px)); } }
.btn-qr.copied { box-shadow: 0 0 0 2px #5fd08a, 0 10px 26px #0008; }
@media (hover: hover) { .btn-qr { transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s, filter .28s; }
  .btn-qr:hover { transform: translateY(-4px); filter: brightness(1.12); box-shadow: 0 0 0 1px #f3d48a, 0 14px 30px #000a, 0 0 28px #e2b86077; } }

/* --- huy hiệu 18+ cạnh trái --- */
.age18 { position: absolute; left: 0; top: 22%; z-index: 3; width: 124px; padding: 6px 6px 7px; background: #141010e6; border: 1px solid #ffffff55; border-left: 0;
  color: #fff; display: grid; grid-template-columns: auto 1fr; gap: 0 5px; align-items: center; font-family: var(--sans); }
.age18 b { font: 800 26px/1 var(--sans); }
.age18 b sup { font-size: 13px; }
.age18 span { font-size: 8px; line-height: 1.25; font-weight: 700; letter-spacing: .2px; }
.age18 small { grid-column: 1 / -1; margin-top: 4px; font-size: 7px; line-height: 1.3; opacity: .8; }

/* --- dải chạy "Máy chủ +" --- */
.sv-ticker { display: flex; align-items: center; margin-top: 12px; height: 34px; border: 1px solid #d9b46a; border-radius: 2px; background: #fffaf0; overflow: hidden; }
.sv-ticker > b { flex: none; height: 100%; display: grid; place-items: center; padding: 0 12px; color: #fff6e0; font: 400 15px/1 var(--ui);
  background: linear-gradient(180deg, #e08a3c, #c0581f); }
.tk-view { flex: 1; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.tk-track { display: inline-flex; gap: 34px; white-space: nowrap; padding-left: 20px; animation: ticker 20s linear infinite; }
.sv-ticker:hover .tk-track { animation-play-state: paused; }
.tk-it { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; color: #4a3826; }
.tk-it .ic { width: 15px; height: 15px; color: #c0581f; }
.tk-it b { color: #b03a1c; }
.tk-it em { font-style: normal; font-size: 12px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* --- nút tấm bảng trên thẻ lối tắt --- */
.card b { margin-top: 18px; }
.card .plaque { position: relative; z-index: 1; display: inline-block; margin: 8px 0 0 18px; padding: 3px 14px 4px; font: 400 13px/1.2 var(--ui); font-style: normal; color: #5a2e0c;
  background: linear-gradient(180deg, #fbe7b4, #e6bb6a 55%, #cf9a45); border: 1px solid #fff2c8; box-shadow: 0 0 0 1px #8a5a1e, 0 3px 6px #0006;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 6px 100%, 0 50%); transition: filter .2s, transform .28s; }
@media (hover: hover) { .card:hover .plaque { filter: brightness(1.12); transform: translateX(10px); } }

/* --- menu bên phải: hiện chữ cạnh icon trên màn rộng --- */
@media (min-width: 1560px) {
  .dots { padding: 8px; border-radius: 18px; }
  .dots a { width: auto; height: 38px; justify-content: flex-start; gap: 8px; padding: 0 14px 0 9px; border-radius: 19px; }
  .dots a span { position: static; opacity: 1; transform: none; background: none; padding: 0; color: inherit; font: 400 14px/1 var(--ui); pointer-events: auto; }
}
@media (max-width: 900px) {
  .hero-btns { grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: 48px 48px; width: min(340px, 92vw); }
  .hero-btns .btn-play { width: 96px; flex: none; }
  .hero-btns .btn-qr { display: none; }
  .hero-btns .btn-play > .ic { width: 38px; height: 38px; }
  .hero-btns .btn-dl { width: auto; height: 48px; flex: none; padding-left: 46px; }
  .hero-btns .btn-dl > .ic { left: 12px; width: 22px; height: 22px; margin-top: -11px; }
  .hero-btns .btn-dl span { font-size: 15px; }
  .age18 { top: 66px; width: 112px; padding: 4px 5px 5px; }
  .age18 b { font-size: 20px; }
  .age18 span { font-size: 7px; }
  .age18 small { display: none; }
  .ttl span { font-size: clamp(26px, 7vw, 34px); }
}
/* vuốt slide: con trỏ kéo, không bôi chọn chữ/ảnh khi kéo */
.slider, .flow { cursor: grab; user-select: none; -webkit-user-select: none; }
.slider.dragging, .flow.dragging { cursor: grabbing; }
.slider img, .flow img { -webkit-user-drag: none; pointer-events: none; }
.fl-nav { display: none !important; }

/* ==================================================================================================
 * 08/11 khuya: mục Tin tức + thẻ "Tân thủ" học theo longngam.net/wly
 * ================================================================================================== */
/* tab: tab đang chọn = con nhộng viền vàng (có icon), tab khác chỉ chữ */
.tabs { border-bottom: 0; gap: 6px; margin-bottom: 6px; align-items: center; }
.tabs button { padding: 6px 14px; border-radius: 16px; color: #6b5640; font-size: 15px; }
.tabs button.on { color: #b5521c; background: #fff7e8; box-shadow: inset 0 0 0 1px #d7b369, 0 1px 0 #fff; }
.tabs button.on::after { display: none; }
.tabs button .ic { opacity: 0; width: 0; margin-right: -6px; transition: .2s; }
.tabs button.on .ic { opacity: 1; width: 15px; margin-right: 0; color: #c0581f; }
/* dòng tin: nhãn viền vàng nền kem, đường kẻ mảnh có hình thoi cuối dòng, tin đầu màu cam */
.news-list li:not(.empty) { position: relative; padding: 12px 18px 12px 2px; border-bottom: 1px solid #e3cfa6; }
.news-list li:not(.empty)::after { content: ''; position: absolute; right: 0; bottom: -4px; width: 7px; height: 7px; border: 1px solid #d7b369; background: #f6efe2; transform: rotate(45deg); }
.news-list .k, .news-list .k1, .news-list .k2 { padding: 3px 9px; border-radius: 3px; background: #fff8ea; color: #c0581f; font-size: 12.5px;
  box-shadow: inset 0 0 0 1px #d7b369, 0 0 0 2px #fff8ea, 0 0 0 3px #e8d3a8; }
.news-list li:not(.empty):first-child .t { color: #e16002; }
.news-list .t { font-weight: 500; color: #3b2a1a; }

/* 4 thẻ: nền sáng, nhân vật bán thân bên trái, tên chữ thư pháp màu kem, nút tấm bảng */
.card { height: 132px; color: #fff; box-shadow: 0 6px 16px #4a32182a; text-align: right; }
.card.c1 { background: radial-gradient(120% 140% at 75% 30%, #fff3df, #edd3a8 60%, #d9b27a); }
.card.c2 { background: radial-gradient(120% 140% at 75% 30%, #eef3f6, #c9d6df 60%, #9fb2c0); }
.card.c3 { background: radial-gradient(120% 140% at 75% 30%, #f6f3e6, #dde3c9 60%, #b3c09a); }
.card.c4 { background: radial-gradient(120% 140% at 75% 30%, #fbefe6, #ecc9b8 60%, #c99682); }
.card::after { background: linear-gradient(90deg, transparent 30%, #3a240f22 100%); }
.card img.card-art { position: absolute; inset: auto auto -8% -2%; width: auto; height: 135%; object-fit: contain; object-position: left top;
  filter: drop-shadow(0 4px 8px #4a321855); transition: transform .5s; }
.card.c2 img.card-art, .card.c4 img.card-art { height: 140%; bottom: -28%; }
.card:hover img.card-art { transform: scale(1.04) translateY(-2px); }
.card b, .card span { padding: 0 12px 0 0; margin-left: 33%; }
.card b { margin-top: 24px; font: 400 clamp(13px, 1.12vw, 18px)/1.1 var(--slogan); white-space: nowrap; letter-spacing: 0; text-transform: uppercase; color: #fffaf0; letter-spacing: .5px;
  text-shadow: 0 1px 0 #6b3a14, 0 2px 4px #4a2a10cc, 0 0 10px #8a4a1a88; }
.card span { margin-top: 3px; font-size: 12.5px; color: #5a4128; text-shadow: 0 1px 0 #fff8; }
.card .plaque { margin: 8px 18px 0 0; }
@media (hover: hover) { .card:hover .plaque { transform: translateX(-6px); } .card:hover b, .card:hover span { transform: none; } }
/* bài tin: lưới tướng chạy kín hàng; chuỗi nâng cấp / công thức đúc = 1 hàng, ô co lại cho vừa (điện thoại: kéo ngang) */
.nb-pics.grid8 { grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 10px 8px; }
.nb-pics.chain { flex-wrap: nowrap; gap: 4px; overflow-x: auto; padding-bottom: 2px; }
.nb-pics.chain .nb-pic { flex: 0 1 74px; min-width: 46px; }
.nb-pics.chain .nb-pic img { width: 100%; height: auto; aspect-ratio: 1; }
.nb-pics.chain figcaption { font-size: 11px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-pics.chain .nb-arrow { flex: 0 0 auto; }
.nb-pics.chain .nb-arrow-a { font-size: 17px; }
/* 08/11 khuya (người dùng): tab máy chủ S1/S2/S3 ở bảng xếp hạng dùng font thường (font game vẽ chữ "S" khó đọc) */
#rank-tabs button { font-family: var(--sans); font-weight: 700; letter-spacing: .5px; }

/* ==================================================================================================
 * 08/11 khuya: Xếp hạng + Cẩm nang theo longngam.net/wly
 * ================================================================================================== */
/* ảnh nền có sẵn nhân vật (cô gái áo đỏ / Gia Cát Lượng) bên trái; nội dung lùi sang phải */
.pg-rank { background: #f3f1ed url(/home/img/ln/bg_rank.webp) left top / cover no-repeat; }
.pg-guide { background: #f3f1ed url(/home/img/ln/bg_guide.webp) left top / cover no-repeat; }
.pg-rank::before, .pg-guide::before { display: none; }
.pg-rank .wrap, .pg-guide .wrap { width: auto; max-width: 1120px; margin-left: max(25vw, 330px); margin-right: max(80px, 6vw); padding-left: 0; }
.pg-rank .ttl span, .pg-guide .ttl span { white-space: nowrap; }

/* vòng cẩm nang: khung gốc 970x970 thu theo --k */
.lnw { position: relative; width: min(600px, 66vh, 100%); aspect-ratio: 1; margin: -10px auto 0; }
.lnw-in { position: absolute; left: 0; top: 0; width: 970px; height: 970px; transform: scale(var(--k, .6)); transform-origin: 0 0; }
.lnw .pw { position: absolute; top: 50%; left: 50%; background-repeat: no-repeat; background-size: 100% 100%; pointer-events: none; }
.lnw .pw-1 { width: 902px; height: 902px; margin: -451px 0 0 -451px; background-image: url(/home/img/ln/o_1.webp); animation: rot 216s linear infinite; }
.lnw .pw-2 { width: 844px; height: 844px; margin: -422px 0 0 -422px; background-image: url(/home/img/ln/o_2.webp); animation: rotR 144s linear infinite; }
.lnw .pw-3 { width: 724px; height: 724px; margin: -362px 0 0 -362px; background-image: url(/home/img/ln/o_3.webp); animation: rot 216s linear infinite; }
.lnw .pw-4 { width: 520px; height: 520px; margin: -260px 0 0 -260px; background-image: url(/home/img/ln/o_4.webp); animation: rotR 108s linear infinite; }
.lnw .pw-5 { width: 430px; height: 430px; margin: -215px 0 0 -215px; background-image: url(/home/img/ln/o_5.webp); animation: rot 54s linear infinite; }
.lnw .pw-6 { width: 254px; height: 254px; margin: -127px 0 0 -127px; background-image: url(/home/img/ln/o_6.webp); animation: rotR 60s linear infinite; }
.lnw .pw-7 { width: 192px; height: 192px; margin: -96px 0 0 -96px; background-image: url(/home/img/ln/o_7.webp); animation: rotR 48s linear infinite; }
.lnw .pw-8 { width: 106px; height: 106px; margin: -53px 0 0 -53px; background-image: url(/home/img/ln/o_8.webp); animation: rot 36s linear infinite; }
.lnw .moon { width: 72px; height: 72px; margin: -36px 0 0 -36px; background-image: url(/home/img/ln/o_9.webp); }
@keyframes rot { to { transform: rotate(360deg); } }
@keyframes rotR { to { transform: rotate(-360deg); } }
.lnb { list-style: none; margin: 0; padding: 0; }
.lnb li { position: absolute; width: 122px; height: 122px; cursor: pointer; }
.lnb li .ball { width: 122px; height: 122px; margin: 0 auto; background: url(/home/img/ln/icon_04.webp) -110px var(--sy) no-repeat; }
.lnb li.b2 .ball { height: 111px; background-position: -360px var(--sy); }
.lnb li.on .ball, .lnb li:hover .ball { background-position: -240px var(--sy); }
.lnb li.b2.on .ball, .lnb li.b2:hover .ball { background-position: -476px var(--sy); }
.lnb li .circle { position: absolute; top: 0; left: 50%; width: 90px; height: 90px; margin-left: -48px; pointer-events: none;
  background: url(/home/img/ln/icon_04.webp) -14px -7px no-repeat; animation: rot 10s linear infinite; }
.lnb li.b2 .circle { width: 76px; height: 76px; margin-left: -38px; top: 2px; background: url(/home/img/ln/zzicon_12.webp) 0 0 no-repeat; }
.lnb li.on .circle, .lnb li:hover .circle { display: none; }
/* mô tả nút đang chọn */
.lnw-cap { width: min(520px, 100%); margin: 6px auto 0; text-align: center; color: #4a3826; font-size: 14.5px; line-height: 1.55; min-height: 46px; }
.lnw-cap b { display: block; font: 400 22px/1.2 var(--slogan); text-transform: uppercase; color: #bf6a1e; letter-spacing: 1px; }
.lnw-cap.flip b, .lnw-cap.flip span { animation: fadeup .45s ease; }
.pg-paper .lnw, .pg-paper .lnw-cap { opacity: 0; transform: translateY(26px); transition: opacity .8s, transform .8s; }
.pg-paper.in .lnw, .pg-paper.in .lnw-cap { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .pg-rank .wrap, .pg-guide .wrap { width: calc(100% - 28px); margin: 0 auto; }
  .pg-rank, .pg-guide { background-position: 18% top; }
  .lnw { width: min(96vw, 520px); }
}

/* bài tin: chuỗi binh chủng / công thức giãn ra phủ hết bề ngang (ô to tới 112 px, mũi tên chia đều khoảng trống) */
.nb-pics.chain.long { justify-content: space-between; }
.nb-pics.chain.long .nb-pic { flex: 1 1 74px; max-width: 112px; }
/* chuỗi ngắn (binh chủng, tháp): ô 72 px như lưới tướng, các chuỗi xếp cạnh nhau rồi mới xuống hàng */
.nb-chains { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 8px 0; }
.nb-chains .nb-pics.chain { margin: 0; flex: 0 0 auto; overflow: visible; gap: 4px; }
.nb-chains .nb-pics.chain .nb-pic { flex: 0 0 84px; width: 84px; min-width: 0; }
.nb-chains .nb-pics.chain .nb-pic img { width: 72px; height: 72px; }
.nb-chains .nb-pics.chain figcaption { font-size: 12px; white-space: normal; text-overflow: clip; }
/* hộp thoại / ô nhập luôn kiểu sáng dù hệ điều hành ở chế độ tối */
.m-box, .m-box input, .m-box select, .m-box textarea { color-scheme: light; }

/* ==================================================================================================
 * 09/11 chiều (người dùng): tối ưu điện thoại theo bố cục web — hiện ô QR Zalo, cân đối các phần tử
 * ================================================================================================== */
@media (max-width: 900px) {
  /* màn đầu: [Chơi ngay] [2 nút tải] [QR] như bản máy tính, thu nhỏ */
  .hero-copy { bottom: 8vh; padding: 0 12px; }
  .hero-btns { grid-template-columns: 94px minmax(0, 1fr) 94px; grid-template-rows: 44px 44px; gap: 6px 7px; width: min(380px, 100%); margin-top: 14px; }
  .hero-btns .btn-play { width: 94px; padding: 6px 4px; }
  .hero-btns .btn-play > .ic { width: 34px; height: 34px; margin-bottom: 3px; }
  .hero-btns .btn-play span { font-size: 16px; }
  .hero-btns .btn-dl { height: 44px; padding: 0 6px 0 36px; }
  .hero-btns .btn-dl > .ic { left: 9px; width: 20px; height: 20px; margin-top: -10px; }
  .hero-btns .btn-dl span { font-size: 14px; }
  .hero-btns .btn-dl small { font-size: 9.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .hero-btns .btn-qr { display: flex; width: 94px; height: 94px; }
  .ribbon span { font-size: 15px; padding: .45em 1.8em .47em; }
  .hero-sv { margin-top: 12px; font-size: 12.5px; line-height: 1.45; text-wrap: balance; }
  /* nút "Chơi ngay" nổi: nhỏ lại cho đỡ che nội dung */
  .dock { width: 62px; height: 62px; right: 10px; bottom: 12px; }
  .dock-t { font-size: 12.5px; }
  /* 4 thẻ lối tắt: 1 cột, nhân vật bên trái, chữ bên phải (2 cột bị tràn chữ + tranh đè chữ) */
  .cards { grid-template-columns: 1fr; gap: 10px; }
  .card { height: 92px; }
  .card img.card-art { height: 150%; bottom: -12%; }
  .card.c2 img.card-art, .card.c4 img.card-art { height: 158%; bottom: -40%; }
  .card b { margin-top: 14px; font-size: 18px; }
  .card span { font-size: 12px; }
  .card b, .card span { padding-right: 32px; }
  .card .plaque { margin: 5px 32px 0 0; font-size: 12px; padding: 2px 12px 3px; }
  /* xếp hạng / cẩm nang: nhân vật nền làm mờ thành giấy, nội dung không bị đè */
  .pg-rank { background-image: linear-gradient(#f3f1edd9, #f3f1edd9), url(/home/img/ln/bg_rank.webp); }
  .pg-guide { background-image: linear-gradient(#f3f1edc7, #f3f1edc7), url(/home/img/ln/bg_guide.webp); }
  .lnw { margin-top: 4px; }
  .lnw-cap { width: auto; margin: 4px 4px 0; padding: 10px 14px 12px; background: #fffaf0e6; border: 1px solid #e2c68a; border-radius: 3px; box-shadow: 0 4px 14px #4a321816; font-size: 13.5px; }
  .lnw-cap b { font-size: 20px; }
  /* đặc sắc: 4 lối tắt chia đều, nhãn căn giữa */
  .acts { gap: 0; justify-content: space-around; margin-top: 4px; }
  .acts a { flex: 0 0 25%; text-align: center; line-height: 1.3; font-size: 12px; gap: 7px; }
  .acts .ic { width: 46px; height: 46px; padding: 12px; }
  .acts .ic::after { inset: 12px; }
  .fl-cap { font-size: 14px; margin-top: 12px; }
  /* chân trang: chừa chỗ cho nút nổi */
  .foot { padding: 16px 16px 88px; margin-top: 18px; font-size: 12.5px; }
  .foot-logo:empty { display: none; }   /* chỗ logo còn trống: không chiếm chỗ (đặt <img> vào là tự hiện) */
  #s-feat { padding-bottom: 0; }
  .card.c3 b { font-size: 15.5px; letter-spacing: 0; }
}
@media (max-width: 360px) {
  .hero-btns { grid-template-columns: 86px minmax(0, 1fr) 86px; grid-template-rows: 40px 40px; }
  .hero-btns .btn-play { width: 86px; }
  .hero-btns .btn-qr { width: 86px; height: 86px; }
  .hero-btns .btn-dl { height: 40px; }
  .hero-btns .btn-dl small { display: none; }
}

/* ===== 23/11/2026 (người dùng): thêm nút "Chơi ngay V2" (bản 2.0) -> sắp lại hàng nút màn đầu; HAI nút Chơi ngay bỏ hiệu ứng (quầng sáng nhấp nháy + vệt sáng quét) cho nhẹ máy.
   Máy tính: [Chơi ngay][Chơi ngay V2][Tải Launcher / Tải APK][QR].  Điện thoại: hàng 1 hai nút Chơi ngay bằng nhau; hàng 2–3 Tải Launcher / Tải APK + QR. ===== */
.hero-btns { grid-template-columns: 116px 116px 240px 116px; }
.hero-btns .btn-play { grid-column: 1; grid-row: 1 / span 2; animation: none; }
.hero-btns .btn-play.btn-v2 { grid-column: 2; text-decoration: none; background: linear-gradient(180deg, #edc96f, #b98a31 55%, #7d5a1c); color: #2a1806;
  box-shadow: 0 0 0 1px #fff0c2, 0 0 0 4px #4a3410, 0 0 0 5px #e2b86088, 0 10px 30px #0008; }
.hero-btns .btn-play.btn-v2 > .ic { color: #2a1806; }
.hero-btns .btn-play.btn-v2 span { text-shadow: 0 1px 0 #fff3; text-align: center; }
.hero-btns .btn-play::before { display: none; }
.hero-btns .btn-dl { grid-column: 3; grid-row: 1; }
.hero-btns .btn-apk { grid-row: 2; }
.hero-btns .btn-qr { grid-column: 4; }
@media (hover: hover) {
  .hero-btns .btn-play:hover { transform: none; filter: brightness(1.1); box-shadow: 0 0 0 1px #f3c97a, 0 0 0 4px #5b130c, 0 0 0 5px #e2b86088, 0 10px 30px #c0392b66; }
  .hero-btns .btn-play.btn-v2:hover { box-shadow: 0 0 0 1px #fff0c2, 0 0 0 4px #4a3410, 0 0 0 5px #e2b86088, 0 10px 30px #0008; }
}
@media (max-width: 900px) {
  .hero-btns { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 48px 44px 44px; gap: 7px 8px; width: min(380px, 100%); }
  .hero-btns .btn-play { grid-column: 1; grid-row: 1; width: auto; flex-direction: row; gap: 8px; padding: 0 8px; }
  .hero-btns .btn-play.btn-v2 { grid-column: 2; }
  .hero-btns .btn-play > .ic { width: 22px; height: 22px; margin: 0; flex: none; }
  .hero-btns .btn-play span { font-size: 16px; white-space: nowrap; }
  .hero-btns .btn-dl { grid-column: 1; grid-row: 2; width: auto; }
  .hero-btns .btn-apk { grid-row: 3; }
  .hero-btns .btn-qr { display: flex; grid-column: 2; grid-row: 2 / span 2; width: 95px; height: 95px; justify-self: center; }
}
@media (max-width: 360px) {
  .hero-btns { grid-template-rows: 44px 42px 42px; }
  .hero-btns .btn-play span { font-size: 14px; }
  .hero-btns .btn-qr { width: 91px; height: 91px; }
}
