/* =========================================================
   Thăng Long Mobile – Máy chủ Đại Lý · Trang chủ (M128-01; M129-01 bản 3: sáng hơn, kiểu công nghệ; lên trang chủ thật 27/10 – M129-02..05)
   Nền sương sớm · chữ mực lam · thiên thanh + ngọc bích cho mọi tương tác (bù màu với tranh đỏ – vàng của game) · đỏ son chỉ ở chi tiết nhỏ.
   Chữ: Saira (tiêu đề, có trục độ rộng – khẩu hiệu "giãn ra" một lần khi tải trang) + Be Vietnam Pro (nội dung). Cả hai đủ dấu tiếng Việt.
   Khu môn phái giữ "màn hình game" màu lam vì hiệu ứng chiêu vẽ kiểu cộng sáng (trên nền sáng sẽ mất) – nay sáng hơn bản 2.
   Tiết kiệm CPU: không còn hoạt ảnh chạy liên tục trừ chấm trạng thái (chỉ transform/opacity); viền xoay ô chiêu chỉ khi rê chuột.
   ========================================================= */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --bg: #f5f9fc;           /* sương sớm */
  --bg-2: #eaf1f8;
  --surface: #ffffff;
  --ink: #13233f;          /* mực lam */
  --ink-2: #34445f;
  --muted: #637189;
  --line: #d9e3ee;
  --azure: #2f66f5;        /* thiên thanh – tương tác chính */
  --azure-2: #1f4fd1;
  --jade: #12b5a0;         /* ngọc bích */
  --jade-2: #0b8f7e;
  --red: #e5483d;          /* đỏ son – chỉ chi tiết */
  --gold: #e9a93a;
  --screen: #10275a;       /* màn hình game */
  --screen-2: #1d4596;
  --grad: linear-gradient(110deg, var(--azure) 0%, var(--jade) 50%, var(--azure) 100%);
  --font-title: "Saira", "Segoe UI", Arial, sans-serif;
  --font-body: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
  --top-h: 70px;
  --wrap: 1320px;
  --gut: clamp(16px, 4vw, 48px);
  --r: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --glow: 0 0 0 4px rgba(18, 181, 160, .16), 0 14px 32px -12px rgba(47, 102, 245, .55);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--top-h); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.7 var(--font-body); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; }
::selection { background: rgba(47, 102, 245, .2); }
.skip { position: absolute; left: 16px; top: -80px; z-index: 60; padding: 8px 16px; background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }
/* M129-09: chữ đang "giải mã" khi rê chuột (script.js đặt bề ngang cố định – các phần tử này đều nằm trong flex nên nhận width) */
.decoding { white-space: nowrap; }

/* ---------- tiêu đề khu vực ---------- */
.sec-head { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 48px; }
.sec-title { position: relative; padding-bottom: 18px; font: 700 clamp(36px, 4.8vw, 66px)/1 var(--font-title); font-stretch: 112%; letter-spacing: -.01em; color: var(--ink); }
/* vạch tín hiệu: đoạn chuyển màu + nút tròn ở đầu */
.sec-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 84px; height: 3px; border-radius: 2px; background: var(--grad); }
.sec-title::before { content: ""; position: absolute; left: 90px; bottom: -2px; width: 7px; height: 7px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 0 3px rgba(18, 181, 160, .18); }
.sec-sub { max-width: 46ch; color: var(--muted); }

/* ---------- nút ---------- */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 30px; overflow: hidden; border-radius: var(--r);
  font: 600 17px/1 var(--font-title); font-stretch: 108%; letter-spacing: .01em; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background-position .5s var(--ease), color .2s, border-color .2s, background-color .2s; }
/* vệt sáng quét ngang khi rê chuột */
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .6) 50%, transparent 68%); transform: translateX(-120%); pointer-events: none; }
.btn:hover::after, .btn:focus-visible::after { transform: translateX(120%); transition: transform .75s var(--ease); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-primary { background: var(--grad); background-size: 220% 100%; color: #fff; box-shadow: 0 10px 24px -10px rgba(47, 102, 245, .7), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary:hover, .btn-primary:focus-visible { background-position: 100% 0; transform: translateY(-2px); box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-ghost { overflow: visible; border: 1.5px solid rgba(47, 102, 245, .35); background: rgba(255, 255, 255, .8); color: var(--ink); }
.btn-ghost::after { display: none; }
/* khung ngắm 4 góc hiện ra khi rê chuột */
.btn-ghost::before { content: ""; position: absolute; inset: -6px; border-radius: calc(var(--r) + 4px); pointer-events: none; opacity: 0; transform: scale(1.06);
  background: linear-gradient(var(--jade), var(--jade)) top left / 12px 2px, linear-gradient(var(--jade), var(--jade)) top left / 2px 12px,
    linear-gradient(var(--jade), var(--jade)) top right / 12px 2px, linear-gradient(var(--jade), var(--jade)) top right / 2px 12px,
    linear-gradient(var(--jade), var(--jade)) bottom left / 12px 2px, linear-gradient(var(--jade), var(--jade)) bottom left / 2px 12px,
    linear-gradient(var(--jade), var(--jade)) bottom right / 12px 2px, linear-gradient(var(--jade), var(--jade)) bottom right / 2px 12px;
  background-repeat: no-repeat; transition: opacity .25s, transform .35s var(--ease); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--azure); background: #fff; color: var(--azure-2); }
.btn-ghost:hover::before, .btn-ghost:focus-visible::before { opacity: 1; transform: none; }
.btn.is-soon { opacity: .5; pointer-events: none; }

/* ---------- thanh trên: kính trắng ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--top-h); display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); padding: 0 var(--gut);
  background: rgba(255, 255, 255, .62); backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3); border-bottom: 1px solid rgba(255, 255, 255, .7); transition: background-color .3s, border-color .3s, box-shadow .3s; }
.top.is-solid { background: rgba(255, 255, 255, .9); border-color: var(--line); box-shadow: 0 6px 24px rgba(19, 35, 63, .06); }
/* vạch tín hiệu chạy dưới thanh khi đã cuộn */
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.top.is-solid::after { transform: scaleX(1); }
.top-brand img { height: 46px; width: auto; }
.top-nav { display: flex; gap: clamp(4px, 1vw, 14px); margin-left: auto; }
.top-nav a { position: relative; padding: 10px 14px; font: 600 15px/1 var(--font-title); font-stretch: 106%; letter-spacing: .01em; text-decoration: none; color: var(--ink-2); transition: color .2s; }
/* ngoặc vuông [ ] trượt vào hai bên chữ */
.top-nav a::before, .top-nav a::after { content: ""; position: absolute; top: 4px; bottom: 4px; width: 6px; border: 2px solid var(--jade); opacity: 0; transition: opacity .2s, transform .3s var(--ease); }
.top-nav a::before { left: 0; border-right: 0; transform: translateX(-6px); }
.top-nav a::after { right: 0; border-left: 0; transform: translateX(6px); }
.top-nav a:hover, .top-nav a:focus-visible { color: var(--azure-2); }
.top-nav a:hover::before, .top-nav a:hover::after, .top-nav a:focus-visible::before, .top-nav a:focus-visible::after { opacity: 1; transform: none; }
.top-nav a[aria-current="true"] { color: var(--ink); }
.top-nav a[aria-current="true"]::before, .top-nav a[aria-current="true"]::after { opacity: 1; transform: none; border-color: var(--azure); }
.top-cta { position: relative; isolation: isolate; display: inline-flex; align-items: center; min-height: 42px; padding: 0 22px; overflow: hidden; border-radius: 10px;
  background: var(--grad); background-size: 220% 100%; color: #fff; font: 600 15px/1 var(--font-title); font-stretch: 106%; text-decoration: none;
  box-shadow: 0 8px 18px -10px rgba(47, 102, 245, .8); transition: background-position .5s var(--ease), box-shadow .3s, transform .2s var(--ease); }
.top-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .5) 50%, transparent 68%); transform: translateX(-120%); }
.top-cta:hover, .top-cta:focus-visible { background-position: 100% 0; box-shadow: var(--glow); transform: translateY(-1px); }
.top-cta:hover::after { transform: translateX(120%); transition: transform .75s var(--ease); }
/* M129-05: cụm tài khoản trên thanh trên */
.top-acc { display: flex; align-items: center; gap: 10px; }
.top-login { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; max-width: 200px; padding: 0 18px; border: 1.5px solid rgba(47, 102, 245, .35); border-radius: 10px; background: rgba(255, 255, 255, .7);
  color: var(--ink); font: 600 15px/1 var(--font-title); font-stretch: 106%; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: border-color .2s, color .2s, background-color .2s, box-shadow .3s; }
.top-login:hover, .top-login:focus-visible { border-color: var(--azure); color: var(--azure-2); background: #fff; box-shadow: 0 0 0 4px rgba(47, 102, 245, .1); }
.top-login.is-user::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 0 3px rgba(18, 181, 160, .2); }
.top-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; margin: 0 auto; background: var(--ink); transition: transform .25s, background-color .25s; }
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.top-toggle[aria-expanded="true"] .bars { background: transparent; }
.top-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.top-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero: phong cảnh sáng + màn sương trắng bên trái + lưới chấm mảnh ---------- */
.hero { position: relative; min-height: min(100svh, 960px); display: flex; align-items: center; overflow: hidden; padding: calc(var(--top-h) + 32px) var(--gut) 96px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; filter: saturate(1.05) brightness(1.16); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(90deg, rgba(245, 249, 252, .97) 0%, rgba(245, 249, 252, .88) 32%, rgba(245, 249, 252, .3) 58%, rgba(245, 249, 252, 0) 72%),
  linear-gradient(0deg, var(--bg) 0%, rgba(245, 249, 252, 0) 24%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(rgba(47, 102, 245, .22) 1px, transparent 1.6px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .5) 35%, transparent 55%); mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .5) 35%, transparent 55%); }
.hero-char { position: absolute; z-index: -1; right: clamp(-120px, -2vw, 0px); bottom: 0; height: min(94%, 900px); width: auto; max-width: none; transform: scaleX(-1);
  /* ảnh lật ngang: mép phải gốc (nay ở bên trái) có nền → làm mờ cả mép đó lẫn chân */
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 98%), linear-gradient(270deg, transparent 0%, #000 26%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, #000 72%, transparent 98%), linear-gradient(270deg, transparent 0%, #000 26%); mask-composite: intersect; }
.hero-copy { position: relative; z-index: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero-logo img { width: clamp(230px, 24vw, 400px); filter: drop-shadow(0 12px 24px rgba(19, 35, 63, .22)); }
/* điểm nhấn duy nhất của trang: khẩu hiệu chữ rộng, giãn ra một lần khi tải */
.hero-slogan { font: 800 clamp(40px, 5.4vw, 82px)/1 var(--font-title); font-stretch: 125%; letter-spacing: -.02em; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
/* M129-03: nút tải theo nền tảng ở hero – kính trắng, viền chuyển màu + quầng sáng khi rê */
.btn-store { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 18px 0 14px; border: 1.5px solid transparent; border-radius: var(--r);
  background: linear-gradient(rgba(255, 255, 255, .88), rgba(255, 255, 255, .88)) padding-box, linear-gradient(var(--line), var(--line)) border-box;
  color: var(--ink); text-decoration: none; transition: transform .25s var(--ease), box-shadow .3s var(--ease); }
.btn-store .ico { width: 24px; height: 24px; flex: none; color: var(--ink-2); transition: color .2s; }
.store-txt { display: flex; flex-direction: column; gap: 3px; }
.store-txt small { font: 500 11.5px/1 var(--font-body); color: var(--muted); }
.store-txt b { font: 700 17px/1 var(--font-title); font-stretch: 108%; }
.btn-store:not(.is-soon):hover, .btn-store:not(.is-soon):focus-visible { transform: translateY(-2px); box-shadow: var(--glow);
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(110deg, var(--azure), var(--jade)) border-box; }
.btn-store:not(.is-soon):hover .ico { color: var(--azure-2); }
.btn-store:not(.is-soon):active { transform: scale(.97); }
.btn-store.is-soon { cursor: default; opacity: .62; }
.hero-status { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border: 1px solid rgba(47, 102, 245, .18); border-radius: 999px; background: rgba(255, 255, 255, .8); color: var(--ink-2); font-size: 14px; }
.hero-status b { color: var(--ink); font-weight: 600; }
.dot { position: relative; width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--jade); }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--jade); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .dot::after { animation: ping 2.4s var(--ease) infinite; }
  .hero-char { animation: charIn 1.4s var(--ease) both; }
  .hero-copy > * { animation: rise .9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation: rise .9s var(--ease) .12s both, unsheathe 1.3s var(--ease) .12s both; }
  .hero-copy > :nth-child(3) { animation-delay: .3s; }
  .hero-copy > :nth-child(4) { animation-delay: .42s; }
}
@keyframes ping { 0% { opacity: .8; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.8); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes unsheathe { from { font-stretch: 100%; letter-spacing: .04em; } to { font-stretch: 125%; letter-spacing: -.02em; } }
@keyframes charIn { from { opacity: 0; transform: scaleX(-1) translateX(-4%); } to { opacity: 1; transform: scaleX(-1); } }

/* ---------- môn phái ---------- */
.sects { position: relative; isolation: isolate; padding: clamp(64px, 8vw, 110px) 0 clamp(48px, 6vw, 80px); }
/* lưới kẻ mảnh tĩnh phía sau khu chọn phái */
.sects::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(47, 102, 245, .06) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, rgba(47, 102, 245, .06) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000, transparent 75%); }
/* M158-01: số phái đổi (5 phái tạm đóng → 11) → hàng cuối căn giữa; cùng bề rộng ô như lưới 8 cột cũ */
.sect-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: var(--wrap); margin: 40px auto 0; padding: 0 var(--gut); list-style: none; }
.sect-tabs > li { flex: 0 0 calc((100% - 56px) / 8); min-width: 0; }
/* M129-10: hover tên môn phái giống hệt bản xem thử /assets/m128/ (chủ dự án duyệt) – M129-09 đổi sang góc vát bị trả lại */
.sect-tab { position: relative; isolation: isolate; width: 100%; min-height: 48px; padding: 6px 8px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink-2);
  font: 600 15px/1.2 var(--font-title); font-stretch: 104%; text-align: center; cursor: pointer; transition: color .2s, border-color .2s, box-shadow .3s var(--ease), transform .2s var(--ease); }
/* quầng sáng theo con trỏ (--mx/--my do script.js đặt) */
.sect-tab::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(110px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 102, 245, .14), transparent 70%); transition: opacity .2s; }
/* vạch quét dọc một lần khi rê */
.sect-tab::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad); opacity: 0; transform: translateY(-2px); }
.sect-tab:hover { border-color: rgba(47, 102, 245, .5); color: var(--azure-2); transform: translateY(-2px); box-shadow: 0 10px 20px -14px rgba(47, 102, 245, .7); }
.sect-tab:hover::before { opacity: 1; }
.sect-tab[aria-selected="true"] { border-color: transparent; background: var(--grad); background-size: 220% 100%; color: #fff; box-shadow: var(--glow); }
.sect-tab[aria-selected="true"]::before { display: none; }
@media (prefers-reduced-motion: no-preference) { .sect-tab:not([aria-selected="true"]):hover::after { animation: scan .6s var(--ease) forwards; } }
@keyframes scan { 0% { opacity: 1; transform: translateY(-2px); } 100% { opacity: 0; transform: translateY(46px); } }

.sect-ui { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: clamp(24px, 4vw, 56px); max-width: var(--wrap); margin: 22px auto 0; padding: 0 var(--gut); align-items: center; }
/* sân khấu = màn hình game lam sáng: lưới HUD mảnh + quầng màu của phái */
.stage { position: relative; height: clamp(520px, 52vw, 680px); display: grid; place-items: end center; overflow: hidden; border-radius: 20px;
  background:
    radial-gradient(ellipse 60% 55% at 50% 62%, var(--fx-glow, rgba(18, 181, 160, .3)) 0%, rgba(16, 39, 90, 0) 70%),
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(120, 190, 255, .28), transparent 70%),
    linear-gradient(rgba(150, 210, 255, .08) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(150, 210, 255, .08) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(180deg, var(--screen-2) 0%, var(--screen) 100%);
  box-shadow: 0 0 0 1px rgba(47, 102, 245, .25), 0 30px 60px -24px rgba(16, 39, 90, .55); }
/* 4 góc ngắm kiểu HUD */
.stage::before { content: ""; position: absolute; inset: 14px; z-index: 1; pointer-events: none;
  background: linear-gradient(var(--jade), var(--jade)) top left / 24px 2px, linear-gradient(var(--jade), var(--jade)) top left / 2px 24px,
    linear-gradient(var(--jade), var(--jade)) top right / 24px 2px, linear-gradient(var(--jade), var(--jade)) top right / 2px 24px,
    linear-gradient(var(--jade), var(--jade)) bottom left / 24px 2px, linear-gradient(var(--jade), var(--jade)) bottom left / 2px 24px,
    linear-gradient(var(--jade), var(--jade)) bottom right / 24px 2px, linear-gradient(var(--jade), var(--jade)) bottom right / 2px 24px;
  background-repeat: no-repeat; opacity: .85; }
.stage-name { position: absolute; z-index: 0; left: 0; right: 0; top: 7%; text-align: center; white-space: nowrap; font: 800 clamp(84px, 12vw, 190px)/.9 var(--font-title); font-stretch: 118%; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1.5px rgba(180, 230, 255, .34); pointer-events: none; }
.stage-name.swap { animation: nameIn .7s var(--ease); }
@keyframes nameIn { from { opacity: 0; letter-spacing: .08em; } to { opacity: 1; letter-spacing: -.02em; } }
.stage-glow { display: none; }
.stage-floor { position: absolute; left: 50%; bottom: 7%; width: min(62%, 460px); aspect-ratio: 4 / 1; transform: translateX(-50%); border-radius: 50%; border: 1px solid rgba(18, 181, 160, .6); background: radial-gradient(ellipse at center, rgba(18, 181, 160, .26), rgba(18, 181, 160, 0) 70%); box-shadow: 0 0 30px rgba(18, 181, 160, .28); }
.stage-img { position: relative; z-index: 2; max-height: 92%; width: auto; max-width: 100%; transition: opacity .5s ease, transform .5s ease; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .5)); }
.stage-img.is-out { opacity: 0; transform: translateY(16px); }
.stage-img.is-tmp { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 98%); mask-image: linear-gradient(180deg, #000 70%, transparent 98%); }
.stage-img.cast { animation: lunge .6s cubic-bezier(.2, .8, .2, 1); }
.stage-fx { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.stage-banner { position: absolute; z-index: 4; left: 0; right: 0; bottom: 9%; text-align: center; font: 700 clamp(28px, 3vw, 46px)/1.1 var(--font-title); font-stretch: 115%; color: #fff; text-shadow: 0 0 18px rgba(18, 181, 160, .9), 0 2px 0 rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; }
.stage-banner.show { animation: banner 1.8s var(--ease) forwards; }
.stage-tmp, .stage-hint { position: absolute; z-index: 4; right: 22px; bottom: 18px; font-size: 13px; color: rgba(210, 232, 250, .75); }
.stage-hint { display: none; }
.stage.ready-3d .stage-hint { display: block; }
@keyframes lunge { 0% { transform: none; } 30% { transform: translateX(-2%) scale(.985); } 55% { transform: translateX(3%) scale(1.025); } 100% { transform: none; } }
@keyframes banner { 0% { opacity: 0; transform: scale(1.2); } 18% { opacity: 1; transform: scale(1); } 80% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.96); } }

.sex-box { position: absolute; z-index: 6; left: 24px; top: 24px; display: flex; padding: 3px; border: 1px solid rgba(180, 230, 255, .3); border-radius: 999px; background: rgba(16, 39, 90, .55); }
.sex-btn { min-width: 64px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: #dcebf7; font: 600 14px/1 var(--font-title); cursor: pointer; transition: background-color .2s, color .2s; }
.sex-btn[aria-pressed="true"] { background: var(--jade); color: #fff; }
.sex-btn:disabled { opacity: .35; cursor: not-allowed; }
.sex-btn:not(:disabled):not([aria-pressed="true"]):hover { color: #fff; background: rgba(255, 255, 255, .12); }

.sect-info { display: flex; flex-direction: column; gap: 14px; }
.sect-name { font: 800 clamp(42px, 4.4vw, 66px)/1 var(--font-title); font-stretch: 115%; color: var(--ink); }
.sect-weapon { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: rgba(229, 72, 61, .1); color: #c2352b; font-weight: 500; font-size: 14px; }
.sect-intro { font-size: 17px; max-width: 42ch; color: var(--ink-2); }
.skill-bar-title { margin-top: 10px; font: 600 15px/1.2 var(--font-title); color: var(--muted); }
.skill-bar { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
/* ô chiêu: viền chuyển màu khi chọn; viền xoay vòng chỉ khi rê chuột (không chạy liên tục) */
.skill-slot { position: relative; isolation: isolate; width: 64px; height: 64px; padding: 3px; border: 0; border-radius: 14px; background: var(--line); cursor: pointer; transition: transform .2s var(--ease), box-shadow .3s; }
.skill-slot::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: conic-gradient(from var(--spin), var(--azure), var(--jade), var(--gold), var(--azure)); opacity: 0; transition: opacity .25s; }
.skill-slot img, .skill-slot .glyph { width: 100%; height: 100%; border-radius: 11px; object-fit: cover; }
.skill-slot .glyph { display: grid; place-items: center; background: linear-gradient(160deg, var(--azure), var(--screen)); color: #fff; font: 700 24px/1 var(--font-title); }
.skill-slot:hover { transform: translateY(-3px); }
.skill-slot:hover::before { opacity: 1; animation: spin 2.4s linear infinite; }
.skill-slot[aria-pressed="true"] { background: var(--grad); box-shadow: var(--glow); }
@keyframes spin { to { --spin: 360deg; } }
.skill-card { position: relative; padding: 16px 18px 16px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; min-height: 112px; overflow: hidden; box-shadow: 0 12px 30px -24px rgba(19, 35, 63, .5); }
.skill-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--azure), var(--jade)); }
.skill-card-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.skill-card-head b { font: 700 20px/1.25 var(--font-title); font-stretch: 108%; color: var(--ink); }
.skill-kind { padding: 1px 10px; border-radius: 999px; background: rgba(18, 181, 160, .12); color: var(--jade-2); font-size: 13px; font-weight: 500; }
.skill-kind:empty { display: none; }
.skill-desc { margin-top: 6px; color: var(--ink-2); font-size: 15px; }

/* ---------- Q10: nhân vật thật trong game (ảnh động / 3D) + clip ra chiêu ---------- */
.stage.has-anim .stage-img { max-height: min(80%, 560px); margin-bottom: 6%; }
.stage-clip { position: absolute; z-index: 5; left: 50%; top: 50%; width: min(94%, 760px); aspect-ratio: 880 / 700; transform: translate(-50%, -50%) scale(.96); object-fit: cover; background: #000; border: 1px solid var(--jade); border-radius: 12px; box-shadow: 0 0 0 4px rgba(18, 181, 160, .18), 0 18px 40px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
.stage.clip-on .stage-clip { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.stage.clip-on .stage-img, .stage.clip-on .stage-banner, .stage.clip-on .stage-anim, .stage.clip-on .stage-3d { opacity: .15; }
.stage-3d { position: absolute; inset: 0; z-index: 2; display: none; touch-action: pan-y; cursor: grab; }
.stage-3d.drag { cursor: grabbing; }
.stage.ready-3d .stage-3d { display: block; }
.stage.ready-3d .stage-img { visibility: hidden; }
.stage.mode-3d:not(.ready-3d) .stage-img { opacity: .55; }
.stage-anim { position: absolute; z-index: 2; pointer-events: none; display: none; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .5)); }
.stage.anim-ready .stage-anim { display: block; }
.stage.anim-ready .stage-img { visibility: hidden; }

/* ---------- tính năng: lưới không đều + quầng sáng theo con trỏ ---------- */
.features { padding: clamp(40px, 6vw, 80px) 0 0; }
.feat-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: repeat(2, minmax(230px, 1fr)); gap: 16px; max-width: var(--wrap); margin: 40px auto 0; padding: 0 var(--gut); }
.feat { position: relative; overflow: hidden; border-radius: 18px; background: var(--screen); isolation: isolate; min-height: 230px; box-shadow: 0 18px 40px -24px rgba(16, 39, 90, .55); transition: transform .35s var(--ease), box-shadow .35s; }
.feat-lg { grid-row: span 2; }
.feat-wide { grid-column: span 2; }
.feat img { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.feat::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(0deg, rgba(16, 39, 90, .9) 0%, rgba(16, 39, 90, .4) 40%, rgba(16, 39, 90, 0) 72%); }
.feat::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(18, 181, 160, .3), transparent 60%);
  box-shadow: inset 0 0 0 1.5px rgba(18, 181, 160, .75); }
.feat:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -22px rgba(16, 39, 90, .6); }
.feat:hover::after { opacity: 1; }
.feat:hover img { transform: scale(1.05); }
.feat-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px; }
.feat h3 { font: 700 clamp(22px, 2vw, 28px)/1.15 var(--font-title); font-stretch: 110%; color: #fff; }
.feat-lg h3 { font-size: clamp(28px, 2.8vw, 40px); }
.feat p { margin-top: 6px; max-width: 40ch; color: rgba(235, 244, 252, .92); font-size: 15px; }

/* ---------- tin tức ---------- */
.news-sec { padding: clamp(56px, 8vw, 110px) 0 0; }
.news { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; max-width: var(--wrap); margin: 40px auto 0; padding: 0 var(--gut); }
.news-card { padding: 0 0 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.news-card:hover { transform: translateY(-3px); border-color: var(--azure); box-shadow: 0 16px 36px -18px rgba(47, 102, 245, .4); }
.news-card > :not(img) { margin-left: 18px; margin-right: 18px; }
.news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-meta { display: flex; gap: 12px; margin-top: 14px; margin-bottom: 4px; font-size: 13px; color: var(--muted); }
.news-meta span { color: var(--azure-2); font-weight: 600; }
.news-card h3 { font: 700 19px/1.35 var(--font-title); color: var(--ink); }
.news-card p { margin-top: 6px; color: var(--ink-2); }
.news-card summary { cursor: pointer; margin-top: 8px; color: var(--azure-2); font-weight: 600; }

/* ---------- tải game ---------- */
.cta { margin-top: clamp(64px, 9vw, 120px); padding: clamp(56px, 8vw, 96px) var(--gut);
  background: linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .9) 50%, rgba(245, 249, 252, .6) 100%), url("../hero-bg-sm.jpg") center / cover no-repeat; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-inner { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.steps { position: relative; margin: 32px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 20px; }
/* đường nối các bước */
.steps::before { content: ""; position: absolute; left: 20px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(180deg, var(--azure), var(--jade)); opacity: .35; }
.steps li { counter-increment: s; position: relative; padding-left: 60px; min-height: 42px; padding-top: 7px; font-size: 17px; color: var(--ink-2); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--grad); background-size: 220% 100%; color: #fff; font: 700 18px/1 var(--font-title); box-shadow: 0 8px 18px -10px rgba(47, 102, 245, .8); }
.steps b { color: var(--ink); font-weight: 600; }
.steps a { color: var(--azure-2); font-weight: 500; text-underline-offset: 3px; transition: color .2s; }
.steps a:hover { color: var(--jade-2); }
.platforms { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.platforms li { display: flex; flex-direction: column; gap: 6px; }
/* nút nền tảng: viền 1.5px là nền border-box → rê chuột đổi sang viền chuyển màu + quầng sáng theo con trỏ */
.btn-plat { position: relative; display: grid; grid-template-columns: 1fr auto 22px; align-items: center; gap: 14px; min-height: 70px; padding: 0 22px; border: 1.5px solid transparent; border-radius: 14px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 102, 245, .1), transparent 70%) padding-box, linear-gradient(#fff, #fff) padding-box, linear-gradient(var(--line), var(--line)) border-box;
  color: var(--ink); font: 700 19px/1 var(--font-title); font-stretch: 108%; text-decoration: none; box-shadow: 0 10px 26px -22px rgba(19, 35, 63, .6); transition: transform .25s var(--ease), box-shadow .3s; }
.btn-plat .ico { width: 22px; height: 22px; color: var(--muted); transition: transform .3s var(--ease), color .2s; }
.btn-plat:hover, .btn-plat:focus-visible { transform: translateY(-2px); box-shadow: var(--glow);
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 102, 245, .1), transparent 70%) padding-box, linear-gradient(#fff, #fff) padding-box, linear-gradient(110deg, var(--azure), var(--jade)) border-box; }
.btn-plat:hover .ico { color: var(--jade-2); transform: translateY(3px); }
.btn-plat small { font: 400 14px/1.2 var(--font-body); color: var(--muted); }
.btn-plat small:empty { display: none; }
.plat-android:not(.is-soon), .plat-android:not(.is-soon):hover { color: #fff; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .24), transparent 70%) border-box, var(--grad) border-box; background-size: auto, 220% 100%; }
.plat-android:not(.is-soon):hover { background-position: 0 0, 100% 0; }
.plat-android:not(.is-soon) { transition: transform .25s var(--ease), box-shadow .3s, background-position .5s var(--ease); }
.plat-android:not(.is-soon) small, .plat-android:not(.is-soon) .ico, .plat-android:not(.is-soon):hover .ico { color: rgba(255, 255, 255, .92); }
.btn-plat.is-soon { opacity: .6; cursor: default; pointer-events: none; }
.btn-plat.is-soon .ico { display: none; }
.plat-alt { align-self: flex-end; color: var(--azure-2); font-size: 13px; }
.dl-meta, .ios-note { margin-top: 12px; color: var(--muted); font-size: 14px; }
.dl-meta { display: none; } /* phiên bản + dung lượng đã hiện ngay trên nút Android */
.ios-note a { color: var(--azure-2); }

/* ---------- chân trang ---------- */
.foot { max-width: var(--wrap); margin: 0 auto; padding: 48px var(--gut) 40px; display: grid; grid-template-columns: auto 1fr; gap: 16px 48px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-brand img { width: 96px; }
#serverName { color: var(--ink); font: 700 20px/1.2 var(--font-title); font-stretch: 108%; }
.foot-acc, .foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 24px; }
.foot-acc a, .foot-links a { position: relative; color: var(--ink-2); text-decoration: none; font-size: 15px; transition: color .2s; }
.foot-acc a::after, .foot-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; border-radius: 1px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.foot-acc a:hover, .foot-links a:hover { color: var(--azure-2); }
.foot-acc a:hover::after, .foot-links a:hover::after { transform: scaleX(1); }
.foot-links { grid-column: 1 / -1; justify-content: flex-start; }
.foot-links .is-soon { color: var(--muted); cursor: default; font-size: 15px; }
.copyright { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ---------- máy tính bảng ---------- */
@media (max-width: 1100px) {
  .sect-tabs > li { flex-basis: calc((100% - 24px) / 4); }
  .sect-ui { grid-template-columns: 1fr; }
  .stage { height: clamp(440px, 70vw, 600px); }
  .cta-inner { grid-template-columns: 1fr; }
}
/* ---------- điện thoại ---------- */
@media (max-width: 760px) {
  .top { gap: 10px; }
  .top-acc { margin-left: auto; gap: 8px; }
  .top-login, .top-cta { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .top-login { max-width: 140px; }
  .top-toggle { display: block; }
  .top-nav { display: none; position: absolute; top: var(--top-h); left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 6px var(--gut) 14px; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(19, 35, 63, .08); }
  .top-nav.is-open { display: flex; }
  .top:has(.top-nav.is-open) { background: rgba(255, 255, 255, .97); }
  .top-nav a { padding: 15px 16px; border-bottom: 1px solid var(--line); }
  .top-nav a:last-child { border-bottom: 0; }
  .top-nav a::before, .top-nav a::after { top: 12px; bottom: 12px; }
  .top-brand img { height: 38px; }
  .hero { min-height: 92svh; align-items: flex-end; padding-bottom: 44px; }
  .hero::before { background: linear-gradient(0deg, var(--bg) 6%, rgba(245, 249, 252, .92) 44%, rgba(245, 249, 252, .2) 76%); }
  .hero::after { -webkit-mask-image: linear-gradient(0deg, #000 10%, transparent 55%); mask-image: linear-gradient(0deg, #000 10%, transparent 55%); }
  .hero-char { right: -30vw; height: 72%; bottom: 24%; }
  .hero-slogan { font-size: clamp(28px, 9vw, 42px); font-stretch: 106%; } /* "Thiên hạ anh hùng," phải nằm trọn 1 dòng ở 360 px */
  .hero-copy { gap: 18px; }
  .hero-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-actions .btn { grid-column: 1 / -1; }
  .btn-store { justify-content: center; }
  .hero-status { align-items: flex-start; border-radius: 14px; }
  .hero-status .dot { margin-top: 6px; }
  .sect-tabs { gap: 6px; }
  .sect-tab { min-height: 44px; padding: 4px; font-size: 13px; }
  .stage { height: 420px; border-radius: 16px; }
  .stage-name { top: 72px; } /* dưới nút Nam / Nữ */
  .sex-box { left: 18px; top: 18px; }
  .sex-btn { min-width: 52px; }
  .stage-hint { display: none !important; }
  .skill-slot { width: 58px; height: 58px; }
  .feat-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .feat-lg, .feat-wide { grid-row: auto; grid-column: auto; }
  .feat { min-height: 240px; }
  .foot { grid-template-columns: 1fr; }
  .foot-acc { justify-content: flex-start; }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  @keyframes unsheathe { from { font-stretch: 100%; letter-spacing: .02em; } to { font-stretch: 106%; letter-spacing: -.02em; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage-img.cast, .stage-name.swap { animation: none; }
  .stage-banner.show { animation: none; opacity: 1; }
  .skill-slot:hover::before { animation: none; }
  .btn::after, .top-cta::after { display: none; }
  .stage-clip, .feat, .feat img { transition: none; }
}

/* =========================================================
   M134 (27/10): menu 7 mục, ô truy cập nhanh + số người chơi ở hero, trình chiếu ảnh trong game + thẻ hoạt động,
   khối tin có tab chuyên mục (thẻ là link tới /tin-tuc/<id>). Chân trang / 18+ / công tắc hiệu ứng: assets/trang-phu/chung.css
   ========================================================= */
.hero-quick { width: min(100%, 640px); }
.hero .hero-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* M190-09; M475-04: hàng 2 = Đăng ký / Hướng dẫn chơi (bỏ Nhập code) */
.hero-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(100%, 640px); gap: 10px; } /* M190-09: hàng 1 = 4 nút, cùng bề ngang hàng 2 */
.hero-actions .btn { padding: 0 12px; }
.hero-actions .btn-store { padding: 0 12px; }
.hero-quick a { background: rgba(255, 255, 255, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-status { flex-wrap: wrap; }
.hs-guide { margin-left: 6px; padding-left: 12px; border-left: 1px solid var(--line); color: var(--azure-2); font-weight: 600; text-decoration: none; }
.hs-guide:hover { color: var(--jade-2); text-decoration: underline; text-underline-offset: 3px; }

.gal { position: relative; max-width: 980px; margin: 28px auto 0; padding: 0 var(--gut); }
.gal-track { display: grid; border-radius: 18px; overflow: hidden; background: var(--screen); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -34px rgba(16, 39, 90, .55); }
.gal-item { grid-area: 1 / 1; margin: 0; position: relative; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s linear .6s; }
.gal-item.is-on { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }
.gal-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gal-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 48px 28px 22px; background: linear-gradient(0deg, rgba(10, 22, 48, .85), rgba(10, 22, 48, 0)); color: #fff; }
.gal-item figcaption b { font: 800 clamp(22px, 2.6vw, 32px)/1.1 var(--font-title); font-stretch: 110%; }
.gal-item figcaption span { color: rgba(235, 244, 252, .9); font-size: 15px; }
.gal-btn { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; margin-top: -23px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); cursor: pointer;
  box-shadow: 0 8px 20px -10px rgba(16, 39, 90, .6); transition: transform .2s, color .2s; }
.gal-btn:hover, .gal-btn:focus-visible { color: var(--azure-2); transform: scale(1.06); }
.gal-btn svg { width: 22px; height: 22px; }
.gal-prev { left: calc(var(--gut) + 14px); }
.gal-next { right: calc(var(--gut) + 14px); }
/* M201-01: poster đã có tên trên ảnh → ẩn chú thích (vẫn giữ cho trình đọc màn hình / nhãn chấm); 19 chấm thì xuống dòng */
.gal-poster figcaption { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gal-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.gal-dots button { width: 20px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: var(--line); cursor: pointer; transition: background-color .2s, width .3s var(--ease); }
.gal-dots button[aria-current="true"] { width: 36px; background: var(--grad); }
.acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: var(--wrap); margin: 22px auto 0; padding: 0 var(--gut); list-style: none; }
.acts li { position: relative; padding: 7px 16px 7px 26px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: 600 14.5px/1.3 var(--font-title); font-stretch: 104%; }
.acts li::before { content: ""; position: absolute; left: 12px; top: 50%; width: 6px; height: 6px; margin-top: -3px; transform: rotate(45deg); background: var(--jade); }

.news-sec .sec-head { align-items: center; }
.news-all { min-height: 44px; padding: 0 20px; font-size: 15px; }
.news-chips { display: flex; flex-wrap: wrap; gap: 8px; max-width: var(--wrap); margin: 28px auto 0; padding: 0 var(--gut); }
.news-chips button { min-height: 40px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); cursor: pointer; font: 600 14.5px/1 var(--font-title); font-stretch: 104%; transition: border-color .2s, color .2s; }
.news-chips button:hover { border-color: var(--azure); color: var(--azure-2); }
.news-chips button[aria-pressed="true"] { border-color: transparent; background: var(--grad); background-size: 220% 100%; color: #fff; }
.news-chips:not([hidden]) + .news { margin-top: 18px; }
a.news-card { display: block; color: inherit; text-decoration: none; }
.news-guides { list-style: none; }
.news-guides .news-card { height: 100%; padding-top: 4px; }
.news-pin { padding: 0 8px; border-radius: 999px; background: rgba(229, 72, 61, .1); color: #c2352b; font-size: 12px; }

/* 7 mục menu: thu gọn chữ ở màn vừa, chuyển sang nút menu từ 1080 px (trước đây 760 px) */
@media (max-width: 1320px) { .top-nav { gap: 0; } .top-nav a { padding: 10px 9px; font-size: 14.5px; } }
@media (max-width: 1080px) {
  .top { gap: 10px; }
  .top-acc { margin-left: auto; gap: 8px; }
  .top-toggle { display: block; }
  .top-nav { display: none; position: absolute; top: var(--top-h); left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 6px var(--gut) 14px; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(19, 35, 63, .08); }
  .top-nav.is-open { display: flex; }
  .top:has(.top-nav.is-open) { background: rgba(255, 255, 255, .97); }
  .top-nav a { padding: 15px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .top-nav a:last-child { border-bottom: 0; }
  .top-nav a::before, .top-nav a::after { top: 12px; bottom: 12px; }
}
@media (max-width: 760px) {
  .hero .hero-quick { display: none; } /* điện thoại: hàng truy cập nhanh đẩy khẩu hiệu lên mặt nhân vật – các mục đã có trong menu */
  /* M190-09: Tải game cả hàng, dưới là 3 nút Android / iOS / Giả lập */
  .hero-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hero-actions .btn-store { gap: 6px; min-height: 52px; padding: 0 6px; }
  .hero-actions .btn-store .ico { width: 20px; height: 20px; }
  .hero-actions .store-txt b { font-size: 15px; }
  .hero-actions .store-txt small { font-size: 10.5px; }
  .hs-guide { margin-left: 0; padding-left: 0; border-left: 0; }
  .gal-btn { width: 38px; height: 38px; margin-top: -19px; }
  .gal-item figcaption { padding: 32px 16px 14px; }
  .gal-item figcaption span { font-size: 13px; }
  .gal-dots { gap: 6px; }
  .gal-dots button { width: 10px; }
  .gal-dots button[aria-current="true"] { width: 24px; }
}
/* =========================================================
   M475-02 (20/11): nút nền tảng ở hero chỉ hiện đúng thiết bị (html[data-dev] đặt trong <head>), máy tính hiện cả 3 (Android / iOS / Giả lập)
   ========================================================= */
html[data-dev="ios"] .hero-actions .btn-store:not([data-hero="ios"]),
html[data-dev="android"] .hero-actions .btn-store:not([data-hero="android"]) { display: none; }
html[data-dev="ios"] .hero-actions, html[data-dev="android"] .hero-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) {
  html[data-dev="ios"] .hero-actions .btn, html[data-dev="android"] .hero-actions .btn { grid-column: auto; }
}
/* =========================================================
   M475-07 (20/11): phân biệt / chuyển giữa các khối trang chủ
   - dải nền xen kẽ, mờ dần ở mép trên + dưới (không có đường cắt cứng): Môn phái lam sương · Xếp hạng giấy cổ ấm · Đặc sắc sáng
   - hoa văn ngăn khối .sec-orn ở mép trên mỗi khối: chỉ vàng mờ hai đầu + thoi vàng phát sáng + 2 chấm ngọc
   - hiện dần khi cuộn tới (.rv, m406.js); tắt hiệu ứng / máy "giảm chuyển động" → hiện ngay
   ========================================================= */
.news-sec, .sects, .rk-sec, .features, .cta { position: relative; }
.sects { background: linear-gradient(180deg, rgba(228, 238, 252, 0) 0, rgba(228, 238, 252, .9) 180px, rgba(228, 238, 252, .9) calc(100% - 180px), rgba(228, 238, 252, 0) 100%); }
main .rk-sec { padding-bottom: clamp(56px, 8vw, 100px); } /* main … : thắng m418.css (nạp sau, padding … 0 0) */
.rk-sec { background: linear-gradient(180deg, rgba(246, 236, 212, 0) 0, rgba(246, 236, 212, .62) 200px, rgba(246, 236, 212, .62) calc(100% - 160px), rgba(246, 236, 212, 0) 100%); }
.features { padding-bottom: clamp(24px, 4vw, 48px); background: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%); }
.sec-orn { position: absolute; left: 50%; top: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 18px; width: min(620px, 78%); height: 24px; transform: translate(-50%, -50%); pointer-events: none; }
.sec-orn::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; z-index: -1;
  background: linear-gradient(90deg, rgba(233, 169, 58, 0), rgba(233, 169, 58, .85) 28%, rgba(47, 102, 245, .5) 50%, rgba(233, 169, 58, .85) 72%, rgba(233, 169, 58, 0)); }
.sec-orn i { width: 13px; height: 13px; transform: rotate(45deg); border: 1.5px solid var(--gold); background: #fff8e8; box-shadow: 0 0 0 6px var(--bg), 0 0 16px 2px rgba(233, 169, 58, .55); }
.sec-orn b { width: 6px; height: 6px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 0 4px var(--bg); }
.cta .sec-orn i, .cta .sec-orn b { box-shadow: 0 0 0 6px #fff, 0 0 16px 2px rgba(233, 169, 58, .5); }
@media (prefers-reduced-motion: no-preference) {
  .sec-orn i { animation: ornGlow 3.6s ease-in-out infinite; }
  @keyframes ornGlow { 50% { box-shadow: 0 0 0 6px var(--bg), 0 0 26px 6px rgba(233, 169, 58, .75); } }
  .cta .sec-orn i { animation: none; }
}
.rv-on .rv { opacity: 0; transform: translateY(28px); transition: opacity .75s var(--ease), transform .85s var(--ease); }
.rv-on .rv.is-in { opacity: 1; transform: none; }
html[data-motion="off"] .rv { opacity: 1 !important; transform: none !important; }
@media (max-width: 760px) { .sec-orn { width: 86%; gap: 12px; } .sects { background: linear-gradient(180deg, rgba(228, 238, 252, 0) 0, rgba(228, 238, 252, .9) 90px, rgba(228, 238, 252, .9) calc(100% - 90px), rgba(228, 238, 252, 0) 100%); } }