/* M134: trang phụ (/tin-tuc, /tin-tuc/<id>, /tai-game, /tai-game/android, /tai-game/ios, /nhap-code, /nap) – cùng giao diện trang chủ
   (assets/trang-chu/style.css) và trang tài khoản (assets/tai-khoan/tk2.css): nền sương sớm, mực lam, thiên thanh + ngọc bích, Saira + Be Vietnam Pro. */
:root {
  --bg: #f5f9fc; --bg-2: #eaf1f8; --surface: #ffffff; --ink: #13233f; --ink-2: #34445f; --muted: #637189; --line: #d9e3ee;
  --azure: #2f66f5; --azure-2: #1f4fd1; --jade: #12b5a0; --jade-2: #0b8f7e; --red: #e5483d; --gold: #e9a93a;
  --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; --gut: clamp(12px, 2.4vw, 32px); --r: 12px; --ease: cubic-bezier(.2, .7, .2, 1); --wrap: 1400px; /* M201-04: lề 2 bên nhỏ lại, khung rộng hơn (trước 16–48px / 1180px) */
  --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-padding-top: calc(var(--top-h) + 16px); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--font-body); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.decoding { white-space: nowrap; }
a { color: var(--azure-2); text-underline-offset: 3px; }

/* ---------- thanh trên ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--top-h); display: flex; align-items: center; gap: clamp(12px, 2.4vw, 32px); padding: 0 var(--gut);
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad); }
.top-brand img { height: 46px; width: auto; }
.top-nav { display: flex; gap: clamp(0px, .6vw, 10px); margin-left: auto; }
.top-nav a { position: relative; padding: 10px 12px; font: 600 15px/1 var(--font-title); font-stretch: 106%; text-decoration: none; color: var(--ink-2); white-space: nowrap; transition: color .2s; }
.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,
.top-nav a[aria-current="page"]::before, .top-nav a[aria-current="page"]::after { opacity: 1; transform: none; }
.top-nav a[aria-current="page"] { color: var(--ink); }
.top-nav a[aria-current="page"]::before, .top-nav a[aria-current="page"]::after { border-color: var(--azure); }
.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: #fff;
  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, box-shadow .3s; }
.top-login:hover, .top-login:focus-visible { border-color: var(--azure); color: var(--azure-2); 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-cta { display: inline-flex; align-items: center; min-height: 42px; padding: 0 22px; 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; }
.top-cta:hover, .top-cta:focus-visible { background-position: 100% 0; box-shadow: var(--glow); }
.top-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.top-toggle .bars, .top-toggle .bars::before, .top-toggle .bars::after { display: block; width: 18px; height: 2px; margin: 0 auto; border-radius: 1px; background: var(--ink); position: relative; content: ""; }
.top-toggle .bars::before { position: absolute; top: -6px; }
.top-toggle .bars::after { position: absolute; top: 6px; }

/* ---------- nút ---------- */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; overflow: hidden; border: 0; border-radius: var(--r); cursor: pointer;
  font: 600 16.5px/1 var(--font-title); font-stretch: 108%; text-decoration: none; transition: transform .25s var(--ease), box-shadow .3s var(--ease), background-position .5s var(--ease), color .2s, border-color .2s; }
.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: 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); }
.btn-ghost { border: 1.5px solid rgba(47, 102, 245, .35); background: #fff; color: var(--ink); }
.btn-ghost::after { display: none; }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--azure); color: var(--azure-2); }
.btn[disabled], .btn.is-soon { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.btn .ico { width: 20px; height: 20px; flex: none; }

/* ---------- dải tiêu đề trang ---------- */
.pg-head { position: relative; isolation: isolate; padding: calc(var(--top-h) + 44px) var(--gut) 40px; overflow: hidden;
  background: linear-gradient(90deg, rgba(245, 249, 252, .98) 0%, rgba(245, 249, 252, .9) 45%, rgba(245, 249, 252, .45) 100%), url("../hero-bg-sm.jpg") 70% 35% / cover no-repeat; border-bottom: 1px solid var(--line); }
.pg-head-in { max-width: calc(var(--wrap) - 2 * var(--gut)); margin: 0 auto; } /* M201-04: thẳng mép với nội dung .pg (đã trừ lề) */
.crumb { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; color: var(--muted); font-size: 14px; }
.crumb a { color: var(--ink-2); text-decoration: none; }
.crumb a:hover { color: var(--azure-2); }
.crumb span[aria-hidden] { color: var(--line); }
.pg-title { position: relative; padding-bottom: 14px; font: 800 clamp(32px, 4.6vw, 54px)/1.05 var(--font-title); font-stretch: 112%; letter-spacing: -.01em; color: var(--ink); }
.pg-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 84px; height: 3px; border-radius: 2px; background: var(--grad); }
.pg-sub { max-width: 66ch; margin-top: 14px; color: var(--ink-2); font-size: 17px; }
.pg-tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(47, 102, 245, .1); color: var(--azure-2); font: 600 13.5px/1.3 var(--font-title); }

/* ---------- nội dung ---------- */
.pg { flex: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 36px var(--gut) 72px; display: grid; gap: 40px; align-content: start; }
.sec { display: grid; gap: 18px; }
.sec-h { font: 700 clamp(24px, 2.6vw, 32px)/1.15 var(--font-title); font-stretch: 108%; color: var(--ink); }
.sec-p { color: var(--ink-2); max-width: 72ch; }
.card { padding: 22px clamp(16px, 3vw, 26px); border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 24px 48px -40px rgba(16, 39, 90, .45); }
.card h3 { font: 700 19px/1.3 var(--font-title); font-stretch: 104%; color: var(--ink); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.muted { color: var(--muted); }
.note { padding: 12px 16px; border-radius: 12px; background: rgba(47, 102, 245, .07); color: var(--ink-2); font-size: 15px; }
.note.warn { background: rgba(233, 169, 58, .12); color: #7a5410; }
.note.ok { background: rgba(18, 181, 160, .1); color: var(--jade-2); }
.note.err { background: rgba(229, 72, 61, .08); color: #a52a21; }
.tick { display: grid; gap: 8px; padding: 0; list-style: none; }
.tick li { position: relative; padding-left: 26px; color: var(--ink-2); }
.tick li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--jade); border-bottom: 2px solid var(--jade); transform: rotate(-45deg); }

/* bước làm */
.steps { display: grid; gap: 16px; padding: 0; list-style: none; counter-reset: st; }
.steps > li { position: relative; padding: 20px 22px 20px 78px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); counter-increment: st; }
.steps > li::before { content: counter(st); position: absolute; left: 20px; top: 18px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--grad);
  color: #fff; font: 800 20px/1 var(--font-title); box-shadow: 0 8px 18px -10px rgba(47, 102, 245, .8); }
.steps h3 { font: 700 19px/1.3 var(--font-title); color: var(--ink); }
.steps p { margin-top: 6px; color: var(--ink-2); }
.steps .btn { margin-top: 12px; }
.steps.is-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* hỏi đáp */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.faq summary { position: relative; padding: 16px 52px 16px 20px; cursor: pointer; list-style: none; font: 600 16.5px/1.4 var(--font-title); font-stretch: 102%; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--azure); border-bottom: 2px solid var(--azure); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 20px 18px; color: var(--ink-2); display: grid; gap: 8px; }

/* thẻ nền tảng (tải game) */
.plat { display: flex; flex-direction: column; gap: 12px; }
.plat-h { display: flex; align-items: center; gap: 12px; }
.plat-h svg { width: 34px; height: 34px; flex: none; color: var(--azure-2); }
.plat-h small { display: block; color: var(--muted); font-size: 13.5px; }
.plat .tick { flex: 1; }
.plat .btn { width: 100%; }
.plat.is-best { box-shadow: 0 0 0 2px var(--azure), 0 24px 48px -36px rgba(47, 102, 245, .6); }
.badge { display: inline-flex; padding: 2px 10px; border-radius: 999px; background: rgba(18, 181, 160, .14); color: var(--jade-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.badge.is-soon { background: rgba(99, 113, 137, .14); color: var(--muted); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.meta-row div { display: grid; }
.meta-row dt { color: var(--muted); font-size: 13px; }
.meta-row dd { color: var(--ink); font: 700 17px/1.3 var(--font-title); }
.spec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.spec div { padding: 16px 18px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.spec dt { color: var(--muted); font-size: 13.5px; }
.spec dd { margin-top: 4px; color: var(--ink); font-weight: 600; }

/* tin tức */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button, .chips a { min-height: 40px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; font: 600 14.5px/1 var(--font-title); font-stretch: 104%; transition: border-color .2s, color .2s, background-color .2s; }
.chips button:hover, .chips a:hover { border-color: var(--azure); color: var(--azure-2); }
.chips [aria-pressed="true"], .chips [aria-current="page"] { border-color: transparent; background: var(--grad); background-size: 220% 100%; color: #fff; }
.nl { display: grid; gap: 14px; padding: 0; list-style: none; }
.nl-item a { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; padding: 14px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line);
  color: inherit; text-decoration: none; transition: box-shadow .3s, transform .3s var(--ease); }
.nl-item a:hover, .nl-item a:focus-visible { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--azure), 0 18px 36px -22px rgba(47, 102, 245, .5); }
.nl-item.no-img a { grid-template-columns: minmax(0, 1fr); padding: 18px 20px; }
.nl-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--bg-2); }
.nl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--muted); font-size: 13.5px; }
.nl-cat { color: var(--azure-2); font-weight: 600; }
.nl-cat::after { content: "·"; margin-left: 12px; color: var(--muted); font-weight: 400; }
.nl-pin { padding: 1px 8px; border-radius: 999px; background: rgba(229, 72, 61, .1); color: #c2352b; font-size: 12px; font-weight: 600; }
.nl-item h2, .nl-item h3 { margin-top: 4px; font: 700 20px/1.35 var(--font-title); color: var(--ink); }
.nl-item p { margin-top: 6px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.empty { padding: 28px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--muted); text-align: center; }
.guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.guides a { display: grid; gap: 4px; height: 100%; padding: 16px 18px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: inherit; text-decoration: none; transition: box-shadow .3s, transform .3s var(--ease); }
.guides a:hover, .guides a:focus-visible { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--azure), 0 14px 30px -20px rgba(47, 102, 245, .5); }
.guides b { font: 700 17px/1.3 var(--font-title); color: var(--ink); }
.guides span { color: var(--ink-2); font-size: 14.5px; }
.art { display: grid; gap: 18px; max-width: 780px; }
.art-img { width: 100%; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.art-sum { font-size: 18px; color: var(--ink); font-weight: 500; }
.art-body { display: grid; gap: 14px; color: var(--ink-2); font-size: 16.5px; line-height: 1.75; }
.art-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
/* M500-01: cột "Bài khác" — một khung, mỗi bài một hàng ảnh nhỏ + tiêu đề */
.art-side { position: sticky; top: calc(var(--top-h) + 20px); padding: 18px 10px 10px; border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -30px rgba(16, 39, 90, .35); }
.art-side[hidden] { display: none; }
.am-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 10px 12px; border-bottom: 1px solid var(--line); }
.am-h { position: relative; padding-left: 12px; font: 700 20px/1.2 var(--font-title); font-stretch: 106%; color: var(--ink); }
.am-h::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 4px; border-radius: 4px; background: var(--grad); }
.am-all { color: var(--azure-2); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.am-all::after { content: " →"; }
.am-all:hover, .am-all:focus-visible { text-decoration: underline; }
.am { display: grid; padding: 6px 0 0; list-style: none; }
.am-item + .am-item { border-top: 1px dashed var(--line); }
.am-item a { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 10px; border-radius: 12px; color: inherit; text-decoration: none; transition: background-color .2s; }
.am-item a:hover, .am-item a:focus-visible { background: var(--bg-2); }
.am-img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); }
.am-ph { display: grid; place-items: center; padding: 6px; background: var(--grad); color: #fff; font: 700 12.5px/1.2 var(--font-title); text-align: center; }
.am-body { display: grid; gap: 4px; min-width: 0; }
.am-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.am-cat { color: var(--azure-2); font-weight: 600; }
.am-cat::after { content: "·"; margin-left: 8px; color: var(--muted); font-weight: 400; }
.am-t { font: 600 15px/1.4 var(--font-title), "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; color: var(--ink); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.am-item a:hover .am-t, .am-item a:focus-visible .am-t { color: var(--azure-2); }

/* biểu mẫu (nhập code) */
.form { display: grid; gap: 16px; max-width: 560px; }
.fld { display: grid; gap: 6px; }
.fld > span { color: var(--ink); font-weight: 600; font-size: 15px; }
.fld input, .fld select { width: 100%; min-height: 50px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fbfdff; color: var(--ink); font: 500 16px/1.3 var(--font-body); }
.fld input { text-transform: uppercase; letter-spacing: .06em; }
.fld input::placeholder { text-transform: none; letter-spacing: 0; color: #9aa6b8; }
.fld input:focus, .fld select:focus { outline: none; border-color: var(--azure); background: #fff; box-shadow: 0 0 0 4px rgba(47, 102, 245, .14); }
.fld small { color: var(--muted); font-size: 13px; }
.res-list { display: grid; gap: 4px; margin-top: 8px; padding-left: 20px; }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }

@media (max-width: 1100px) {
  .top-nav a { padding: 10px 8px; font-size: 14px; }
  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .top-toggle { display: inline-grid; place-items: center; order: 3; }
  .top-acc { margin-left: auto; }
  .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, .98); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(16, 39, 90, .4); }
  .top-nav.is-open { display: flex; }
  .top-nav a { padding: 15px 16px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .top-nav a:last-child { border-bottom: 0; }
  .grid-3, .steps.is-row { grid-template-columns: 1fr; }
  .art-wrap, .split { grid-template-columns: 1fr; }
  .art-side { position: static; } /* M500-01: cột Bài khác xuống dưới bài, bỏ dính */
}
@media (max-width: 640px) {
  .top { gap: 8px; }
  .top-brand img { height: 38px; }
  .top-login, .top-cta { min-height: 40px; padding: 0 12px; font-size: 14px; }
  .top-login { max-width: 130px; }
  .top-cta { display: none; }
  .grid-2, .spec { grid-template-columns: 1fr; }
  .nl-item a { grid-template-columns: 1fr; }
  .steps > li { padding: 70px 18px 18px; }
  .steps > li::before { top: 16px; left: 18px; }
  .pg-head { padding-top: calc(var(--top-h) + 28px); padding-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) { .btn::after { display: none; } }

/* ---------- M127-01: nạp xu (/nap) ---------- */
.nap-wallet { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 18px; margin: 10px 0 14px; }
.nap-bal { font-size: 15px; }
.nap-bal b { font: 800 30px/1 var(--font-title); color: var(--azure-2); margin: 0 4px; }
.nap-promo { margin-bottom: 14px; }
/* M499-01: khối tỉ lệ nạp "Tỉ lệ nạp: 1.000đ = 50 xu = 50 KNB" + khung khuyến mãi 2 ví dụ thẳng cột (lớp xr-* giống tk4.css);
   giữ màu M201-07 (xanh lá, số đỏ) + nhấp nháy khung khuyến mãi M201-10 (tắt khi data-motion="off") */
.xr { display: grid; gap: 10px; }
.xr-base { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; color: var(--ink); font: 700 17px/1.35 var(--font-title); }
.xr-lbl { color: var(--ink-2); }
.xr-eq { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.xr-eq i { font-style: normal; font-weight: 600; opacity: .75; }
.xr-km { padding: 12px 14px; border-radius: 12px; border: 1.5px solid rgba(229, 115, 30, .35); background: rgba(255, 170, 70, .12); color: #15803d; animation: xrBlink 1.2s ease-in-out infinite; }
@keyframes xrBlink {
  0%, 100% { background: rgba(255, 170, 70, .1); border-color: rgba(229, 115, 30, .3); box-shadow: 0 0 0 0 rgba(229, 115, 30, 0); }
  50% { background: rgba(255, 150, 50, .32); border-color: #e5731e; box-shadow: 0 0 0 4px rgba(229, 115, 30, .18); }
}
[data-motion="off"] .xr-km { animation: none; background: rgba(255, 150, 50, .22); border-color: #e5731e; }
.xr-km-h { margin: 0 0 8px; font-size: 15px; font-weight: 800; line-height: 1.5; }
.xr-km-h b { color: #d10000; font-weight: 900; white-space: nowrap; }
.xr-tag { display: inline-block; margin-right: 2px; padding: 1px 8px; border-radius: 999px; background: #d10000; color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; vertical-align: 1px; }
.xr-rows { display: grid; grid-template-columns: repeat(5, auto); justify-content: start; align-items: baseline; gap: 4px 10px; }
.xr-rows .xr-eq { display: contents; }
.xr-rows b { color: #d10000; font: 800 19px/1.3 var(--font-title); text-align: right; white-space: nowrap; }
.xr-rows i { font-style: normal; font-weight: 800; text-align: center; }
.xr-off { margin: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid #f0b46a; background: #fff6e8; color: #8a4b00; font-size: 14px; font-weight: 600; line-height: 1.45; }
@media (max-width: 420px) { .xr-rows { gap: 4px 6px; } .xr-rows b { font-size: 16px; } }
/* M201-07: dòng khuyến mãi chữ xanh lá, số đỏ (khung trên form + mục Lưu ý); M201-08: in đậm */
.nap-km { color: #15803d; font-weight: 800; }
.nap-km b { color: #d10000; font-weight: 900; white-space: nowrap; }
.nap-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: -6px; } /* M201-03/04: 8 mệnh giá = đúng 4 cột × 2 hàng */
@media (max-width: 480px) { .nap-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nap-q { min-height: 40px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 10px; background: #fbfdff; color: var(--ink); font: 600 14px/1 var(--font-body); cursor: pointer; }
.nap-q:hover, .nap-q:focus-visible { border-color: var(--azure); color: var(--azure-2); outline: none; }
.nap-get { min-height: 1.5em; color: var(--ink-2); }
.nap-get b { color: var(--jade-2); }
.nap-bill { display: grid; grid-template-columns: auto 1fr; gap: 18px 22px; align-items: start; margin-top: 6px; }
.nap-bill > .note, .nap-bill > .nap-state, .nap-bill > p { grid-column: 1 / -1; }
.nap-qr img { display: block; width: 240px; height: 240px; padding: 8px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line); object-fit: contain; }
.nap-info { display: grid; gap: 0; margin: 0; }
.nap-info > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.nap-info > div:last-child { border-bottom: 0; }
.nap-info dt { color: var(--muted); font-size: 14px; white-space: nowrap; }
.card #napForm { max-width: none; } /* M201-04: khung rộng hơn → form nạp giãn đủ thẻ (.form chung giữ 560px) */
/* M201-04: lưu ý "Chuyển đúng số tiền…" nhấp nháy đỏ máu liên tục (~1 nhịp / 1,2 s); tắt hiệu ứng chuyển động thì đứng yên ở đỏ đậm */
.note.warn.nap-warn { border: 1.5px solid rgba(138, 3, 3, .4); background: rgba(176, 0, 0, .07); color: #8a0303; font-weight: 600; animation: napBlink 1.2s ease-in-out infinite; }
@keyframes napBlink {
  0%, 100% { background: rgba(176, 0, 0, .05); border-color: rgba(138, 3, 3, .3); color: #8a0303; box-shadow: 0 0 0 0 rgba(176, 0, 0, 0); }
  50% { background: rgba(176, 0, 0, .2); border-color: #8a0303; color: #c00000; box-shadow: 0 0 0 4px rgba(176, 0, 0, .14); }
}
.nap-warn .nap-help { color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; } /* M201-05 */
.nap-warn .nap-help:not([href]) { text-decoration: none; }
[data-motion="off"] .note.warn.nap-warn { animation: none; background: rgba(176, 0, 0, .14); border-color: #8a0303; }
.nap-info dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.nap-content { color: var(--red); letter-spacing: .04em; }
.nap-copy { margin-left: 6px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--azure-2); font: 600 12px/1.4 var(--font-body); cursor: pointer; }
.nap-copy:hover, .nap-copy:focus-visible { border-color: var(--azure); outline: none; }
.nap-state { padding: 12px 16px; border-radius: 12px; background: rgba(233, 169, 58, .12); color: #7a5410; font-weight: 600; }
.nap-state.is-paid { background: rgba(18, 181, 160, .12); color: var(--jade-2); }
.nap-state.is-failed, .nap-state.is-expired, .nap-state.is-canceled { background: rgba(229, 72, 61, .08); color: #a52a21; }
.nap-list { display: grid; gap: 8px; margin-top: 10px; padding: 0; list-style: none; }
.nap-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 10px 12px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); font-size: 14px; }
.nap-l-id { font-family: ui-monospace, Consolas, monospace; color: var(--muted); }
.nap-l-st { font-weight: 600; }
.nap-list li.is-paid .nap-l-st { color: var(--jade-2); }
.nap-list li.is-pending .nap-l-st { color: #9a6a12; }
.nap-list li.is-failed .nap-l-st, .nap-list li.is-expired .nap-l-st, .nap-list li.is-canceled .nap-l-st { color: #a52a21; }
@media (max-width: 640px) {
  .nap-bill { grid-template-columns: 1fr; }
  .nap-qr img { width: min(240px, 100%); height: auto; aspect-ratio: 1; margin: 0 auto; }
}
/* ---------- M475-02: trang tải game ưu tiên thiết bị người xem (html[data-dev] = ios | android | pc đặt trong <head>) ---------- */
html[data-dev="android"] .plat[data-plat="android"], html[data-dev="ios"] .plat[data-plat="ios"], html[data-dev="pc"] .plat[data-plat="pc"] { order: -1; }
.plat.is-best { position: relative; }
.plat.is-best::before { content: "Thiết bị của bạn"; position: absolute; top: -11px; left: 18px; padding: 2px 10px; border-radius: 999px; background: var(--azure); color: #fff; font: 600 12.5px/1.5 var(--font-body, inherit); }
.dev-guide { margin-top: 22px; }
.dev-more { margin-top: 12px; }
.dev-more a { color: var(--azure-2); font-weight: 600; }
.steps .note { margin-top: 12px; }
.steps .btn-ghost .ico { width: 20px; height: 20px; }