:root {
  --bg: #f6f6fb;
  --bg-2: #ffffff;
  --card: #ffffff;
  --card-2: #ffffff;
  --line: rgba(22, 18, 52, 0.09);
  --text: #16132b;
  --muted: #615c7c;
  --brand: #e8336f;
  --brand-2: #d97b00;
  --accent: #6a4cf5;
  --ok: #0f9d63;
  --warn: #c27400;
  --danger: #dc3348;
  --soft: #f2f1f8;
  --soft-2: #e9e7f3;
  --field: #ffffff;
  --field-line: rgba(22, 18, 52, 0.16);
  --grad: linear-gradient(120deg, #ff3d7f 0%, #ff7a59 50%, #ffb547 100%);
  --radius: 18px;
  --shadow: 0 24px 60px rgba(40, 24, 110, 0.14);
  --card-shadow: 0 1px 2px rgba(22, 18, 52, 0.04), 0 8px 24px rgba(40, 24, 110, 0.06);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 80px; }
html, body { overflow-x: clip; } /* chặn trang bị kéo ngang trên điện thoại */
.policy { overflow-wrap: anywhere; }
.policy code { white-space: normal; word-break: break-all; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(124, 92, 255, 0.12), transparent 60%),
    radial-gradient(700px 500px at -10% 10%, rgba(255, 122, 89, 0.12), transparent 60%);
}
a { color: inherit; }
img, video { max-width: 100%; display: block; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }

/* header */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(255, 255, 255, 0.86); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; letter-spacing: -0.02em; }
.logo-img { height: 44px; width: auto; display: block; }
.logo-img.sm { height: 34px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 520px) { .logo-img { height: 34px; } }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; font-size: 17px; box-shadow: 0 6px 20px rgba(255, 61, 127, 0.4); }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--text); }
.nav .btn { color: #fff; }
@media (max-width: 760px) { .nav a:not(.btn):not(.acc) { display: none; } .nav { gap: 14px; } }
.nav a.acc { color: var(--text); font-weight: 600; }
.bell { position: relative; width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); cursor: pointer; padding: 0; }
.bell:hover { color: #e8283a; border-color: rgba(255,79,109,.45); }
.bell i { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: #ff3d6e; color: #fff; font: 700 11px/19px inherit; font-style: normal; text-align: center; box-shadow: 0 0 0 2px #fff; }
.bell:has(i) svg { animation: bellRing 2.4s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes bellRing { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 85% { transform: rotate(8deg); } 90% { transform: rotate(-5deg); } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none; font: inherit; font-weight: 700;
  padding: 12px 22px; border-radius: 999px; color: #fff; background: var(--grad);
  box-shadow: 0 10px 30px rgba(255, 61, 127, 0.35); transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(255, 61, 127, 0.45); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.ghost { background: #fff; color: var(--text); box-shadow: var(--card-shadow); border: 1px solid var(--field-line); }
.btn.ghost:hover { background: var(--soft); box-shadow: var(--card-shadow); }
.btn.sm { padding: 8px 16px; font-size: 14px; }
.btn.block { width: 100%; }

/* hero */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 61, 127, 0.08); color: var(--brand); font-weight: 600; font-size: 14px; border: 1px solid rgba(255, 61, 127, 0.25); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(255, 61, 127, .25); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 61, 127, 0); } }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.12; letter-spacing: -0.03em; margin: 18px 0 18px; font-weight: 800; }
h1 .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 36px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.hero-stats b { display: block; color: var(--text); font-size: 24px; }
.phone {
  position: relative; justify-self: center; width: min(320px, 100%); aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden;
  border: 8px solid #222036; box-shadow: var(--shadow), 0 0 0 1px var(--line), 0 0 120px rgba(255, 61, 127, 0.18); background: #000;
}
.phone video { width: 100%; height: 100%; object-fit: cover; }
.phone video { cursor: pointer; }
.sound-btn { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2; background: rgba(0,0,0,.72); color: #fff; border: 2px solid #ffd54f; border-radius: 999px; padding: 9px 16px; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; white-space: nowrap; animation: soundPulse 1.6s ease-in-out infinite; }
.sound-btn.on { animation: none; border-color: rgba(255,255,255,.4); opacity: .75; }
@keyframes soundPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,213,79,.6); } 50% { box-shadow: 0 0 0 8px rgba(255,213,79,0); } }
.live-badge { position: absolute; top: 14px; left: 14px; background: #ff2d55; color: #fff; font-weight: 800; font-size: 12px; padding: 3px 10px; border-radius: 6px; letter-spacing: .05em; }
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* sections */
section { padding: 72px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.02em; margin: 0 0 6px; line-height: 1.2; }
.sec-head p { margin: 0; color: var(--muted); max-width: 620px; }
.kicker { color: var(--brand-2); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }

/* how */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: var(--card); border: 1px solid var(--line); box-shadow: var(--card-shadow); border-radius: var(--radius); padding: 22px; }
.step .n { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(124, 92, 255, .18); color: var(--accent); font-weight: 800; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* games */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.game { background: var(--card); border: 1px solid var(--line); box-shadow: var(--card-shadow); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
.game:hover { transform: translateY(-4px); border-color: rgba(255, 61, 127, .4); box-shadow: 0 18px 40px rgba(40, 24, 110, .12); }
.game .thumb { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #000; cursor: pointer; }
.game .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
.game:hover .thumb img { transform: scale(1.04); }
.game .play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(transparent 50%, rgba(0, 0, 0, .7)); }
.game .play span { width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #111; display: grid; place-items: center; font-size: 20px; padding-left: 4px; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.game .tag { position: absolute; top: 12px; left: 12px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.game .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game h3 { margin: 0; font-size: 19px; }
.game p { margin: 0; color: var(--muted); font-size: 14.5px; }
.game ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.game li { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--text); }
.game .foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; }
.game .price { font-weight: 800; font-size: 18px; }
.game .price small { color: var(--muted); font-weight: 500; font-size: 13px; }
.game.soon .thumb { display: grid; place-items: center; background: repeating-linear-gradient(45deg, #f4f3fa, #f4f3fa 14px, #eceaf5 14px, #eceaf5 28px); cursor: default; }
.game.soon .thumb div { text-align: center; color: var(--muted); }
.game.soon .thumb b { display: block; font-size: 44px; }

/* pricing */
.promo { display: inline-block; margin-top: 12px; padding: 8px 16px; border-radius: 12px; background: #fff4e3; color: #a85f00; border: 1px solid rgba(217, 123, 0, .25); font-weight: 600; font-size: 14.5px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); box-shadow: var(--card-shadow); border-radius: 22px; padding: 30px 26px; display: flex; flex-direction: column; }
.plan.hl { background: linear-gradient(#fffafc, #fffafc) padding-box, var(--grad) border-box; border: 2px solid transparent; transform: translateY(-10px); box-shadow: 0 30px 70px rgba(255, 61, 127, .18); }
.plan .badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--grad); color: #fff; font-weight: 800; font-size: 13px; padding: 5px 16px; border-radius: 999px; }
.plan:not(.hl) .badge { background: rgba(106, 76, 245, .12); color: var(--accent); }
.plan h3 { margin: 0; font-size: 21px; }
.plan .psub { color: var(--muted); font-size: 14.5px; margin: 4px 0 18px; }
.plan .amount { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plan .amount small { font-size: 16px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.plan .save { color: var(--ok); font-weight: 700; font-size: 14px; min-height: 22px; margin: 8px 0 18px; }
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 15px; }
.plan li::before { content: '✓'; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: rgba(15, 157, 99, .12); color: var(--ok); }
.plan .btn { margin-top: auto; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } .plan.hl { transform: none; order: -1; } }

/* faq */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); box-shadow: var(--card-shadow); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* support */
.support { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.support a { box-shadow: var(--card-shadow); display: flex; align-items: center; gap: 14px; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; font-weight: 600; transition: border-color .2s; }
.support a:hover { border-color: rgba(232, 51, 111, .35); }
.support .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; flex: none; }
.support small { display: block; color: var(--muted); font-weight: 400; }

footer { background: #fff; border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 16, 40, .45); backdrop-filter: blur(6px); }
.modal.open { display: flex; }
.modal .box { width: min(520px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); position: relative; }
.modal .box.video { width: auto; padding: 0; background: #000; border: 0; overflow: hidden; }
.modal .box.video video { max-height: calc(100vh - 32px); width: auto; max-width: 100%; }
.modal .x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--soft); color: var(--text); font-size: 20px; cursor: pointer; z-index: 2; }
.modal h3 { margin: 0 0 4px; font-size: 22px; }
.modal .msub { color: var(--muted); margin: 0 0 20px; font-size: 15px; }

/* form */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 14px; }
.field small { color: var(--muted); font-size: 13px; }
input, textarea, select {
  width: 100%; font: inherit; color: var(--text); background: var(--field);
  border: 1px solid var(--field-line); border-radius: 12px; padding: 11px 14px; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 61, 127, .2); }
.pick { display: grid; gap: 8px; }
/* gói nhiều game: lưới ô nhỏ để không phải cuộn dài */
.pick.grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pick.grid label { position: relative; flex-direction: column; align-items: stretch; gap: 6px; padding: 6px; font-size: 13px; line-height: 1.25; text-align: center; }
.pick.grid img { width: 100%; height: 72px; border-radius: 8px; }
.pick.grid input { position: absolute; top: 10px; left: 10px; width: 20px; height: 20px; }
.pick.grid span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
/* tổng tiền + nút thanh toán luôn hiện ở đáy hộp */
.buy-foot { position: sticky; bottom: -28px; margin: 8px -28px -28px; padding: 4px 28px 22px; background: var(--bg-2); border-top: 1px solid var(--line); z-index: 1; }
.buy-foot .total { border-top: 0; margin-top: 0; padding: 12px 0 6px; }
.buy-foot .err { min-height: 0; margin: 0 0 8px; }
.total small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
@media (max-width: 600px) {
  #buyModal { align-items: flex-end; padding: 0; }
  #buyModal .box { border-radius: 22px 22px 0 0; max-height: 92vh; padding: 22px 16px 20px; }
  #buyModal .msub { margin-bottom: 12px; }
  #buyModal .buy-foot { bottom: -20px; margin: 8px -16px -20px; padding: 4px 16px 16px; }
  .pick.grid { gap: 6px; }
  .pick.grid img { height: 60px; }
  .pick.grid label { font-size: 12px; padding: 5px; }
  .buy-as { font-size: 13px; padding: 10px 12px; }
}
.pick label { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; font-weight: 500; }
.pick label:has(input:checked) { border-color: var(--brand); background: rgba(255, 61, 127, .06); }
.pick input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.pick img { width: 40px; height: 52px; object-fit: cover; object-position: top; border-radius: 8px; }
.err { color: var(--danger); font-size: 14px; min-height: 20px; margin: 4px 0 10px; }
.buy-as { background: var(--soft); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; margin-bottom: 8px; }
.buy-as small { color: var(--muted); }
.total { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px dashed var(--line); margin-top: 6px; font-weight: 700; }
.total b { font-size: 22px; }

/* order / lookup pages */
.page { padding: 48px 0 80px; }
.panel { background: var(--card); border: 1px solid var(--line); box-shadow: var(--card-shadow); border-radius: 22px; padding: 28px; max-width: 720px; margin: 0 auto; }
.panel + .panel { margin-top: 20px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: 14px; }
.status.paid { background: rgba(15, 157, 99, .1); color: var(--ok); }
.status.pending { background: rgba(217, 123, 0, .1); color: var(--warn); }
.status.cancelled { background: rgba(220, 51, 72, .1); color: var(--danger); }
.keybox { display: flex; gap: 10px; align-items: center; background: #fff8ec; border: 1px dashed rgba(217, 123, 0, .5); border-radius: 14px; padding: 16px 18px; margin: 8px 0 4px; }
.keybox code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: clamp(16px, 4vw, 22px); font-weight: 700; letter-spacing: .06em; color: var(--brand-2); flex: 1; word-break: break-all; }
.rows { display: grid; gap: 10px; margin: 16px 0; }
.rows div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.rows span { color: var(--muted); }
.rows b { text-align: right; }
.dl { display: grid; gap: 10px; margin-top: 12px; }
.dl a, .dl div { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); text-decoration: none; }
.dl .dl-item { padding: 0; display: block; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; }
.dl .dl-row { display: flex; align-items: center; gap: 12px; padding: 12px; }
.guide { border-top: 1px solid var(--line); padding: 0 14px; }
.guide summary { cursor: pointer; padding: 10px 0; font-weight: 600; font-size: 14.5px; color: var(--brand); }
.guide ol { margin: 0 0 8px; padding-left: 22px; font-size: 14.5px; }
.guide ol:empty { display: none; }
.guide li { margin: 4px 0; }
.guide p { margin: 4px 0 10px; font-size: 14.5px; }
.dl img { width: 44px; height: 58px; object-fit: cover; object-position: top; border-radius: 8px; }
.dl .grow { flex: 1; }
.qr { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; margin-top: 16px; }
.qr img { width: 220px; border-radius: 14px; background: #fff; }
@media (max-width: 600px) { .qr { grid-template-columns: 1fr; justify-items: center; } }
.note { color: var(--muted); font-size: 14px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120px); background: #16132b; color: #fff; padding: 10px 20px; border-radius: 999px; font-weight: 600; transition: transform .25s; z-index: 99; }
.toast.show { transform: translateX(-50%) translateY(0); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(22, 18, 52, .12); border-top-color: var(--warn); animation: spin 1s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

.foot-links { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink, #111); text-decoration: underline; }
.foot-info { flex-basis: 100%; font-size: 13px; }
.policy h1 { font-size: 30px; margin: 0 0 6px; }
.policy h2 { font-size: 19px; margin: 26px 0 8px; }
.policy p, .policy li { line-height: 1.7; }
.policy ul { padding-left: 22px; }
.policy-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.policy-tabs a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: inherit; text-decoration: none; font-size: 14px; font-weight: 600; }
.policy-tabs a.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* trang từng game (/game/<id>) */
.game h3 a { color: inherit; text-decoration: none; }
.game h3 a:hover { color: var(--brand); }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.crumbs a { color: var(--muted); }
.game-detail { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 28px; align-items: start; }
.gd-media video, .gd-media img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius); background: #000; display: block; }
.gd-info h1 { font-size: 32px; margin: 6px 0; }
.gd-info h2 { font-size: 19px; margin: 22px 0 8px; }
.gd-info ul { padding-left: 22px; line-height: 1.8; }
.gd-info p { line-height: 1.7; }
.gd-buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
.gd-buy .amount { width: 100%; font-size: 26px; font-weight: 800; }
.gd-buy .amount small { font-size: 14px; font-weight: 500; color: var(--muted); }
@media (max-width: 760px) { .game-detail { grid-template-columns: 1fr; } .gd-media { max-width: 360px; margin: 0 auto; width: 100%; } }
.game .more { font-weight: 700; font-size: 14.5px; color: var(--brand); text-decoration: none; margin-top: 4px; }
.game .more:hover { text-decoration: underline; }

/* ---------- tin tức ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .posts { grid-template-columns: 1fr; } }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.pc-img { display: block; aspect-ratio: 16 / 9; background: var(--soft); overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.post-card:hover .pc-img img { transform: scale(1.03); }
.pc-ph { display: grid; place-items: center; height: 100%; }
.pc-ph img { width: 72px; height: 72px; object-fit: contain; opacity: .5; }
.pc-body { padding: 14px 18px 18px; }
.pc-body time { font-size: 13px; color: var(--muted); }
.pc-body h3 { margin: 4px 0 8px; font-size: 17px; line-height: 1.4; }
.pc-body h3 a { color: var(--text); text-decoration: none; }
.pc-body h3 a:hover { color: var(--brand); }
.pc-body p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.sec-head .more { font-weight: 600; white-space: nowrap; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 28px 0 0; color: var(--muted); }
.post { max-width: 820px; margin: 0 auto; }
.post-meta { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.post-cover { width: 100%; border-radius: 14px; margin: 0 0 18px; display: block; }
.post-body { font-size: 16.5px; }
.post-body h2 { font-size: 22px; } .post-body h3 { font-size: 18.5px; margin: 22px 0 6px; }
.post-body img { max-width: 100%; height: auto; border-radius: 12px; display: block; margin: 14px auto; }
.post-body blockquote { margin: 16px 0; padding: 10px 16px; border-left: 4px solid var(--accent); background: var(--soft); border-radius: 0 10px 10px 0; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.embed { position: relative; aspect-ratio: 16 / 9; margin: 16px 0; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }
.post-cta { margin-top: 28px; padding: 16px 18px; border-radius: 14px; background: var(--soft); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.sec-head h1 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.02em; margin: 0 0 6px; line-height: 1.2; }
.post-cover { max-height: 440px; object-fit: cover; }
.nav a { white-space: nowrap; }
@media (max-width: 420px) { .logo-img { height: 28px; } .top .wrap { gap: 10px; } .nav { gap: 10px; } .nav .btn.sm { padding-left: 12px; padding-right: 12px; } }

/* nút Tải về trong danh sách game (không bị kiểu ô xám của .dl a) */
.dl a.btn { background: var(--grad); color: #fff; border: 0; padding: 9px 18px; border-radius: 999px; gap: 6px; box-shadow: 0 8px 22px rgba(255, 61, 127, 0.3); white-space: nowrap; }
.dl a.btn:hover { color: #fff; box-shadow: 0 12px 28px rgba(255, 61, 127, 0.42); }
.dl .dl-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.dl a.btn.mac { background: #1d1d1f; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22); }
.dl a.btn.mac:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32); }
@media (max-width: 560px) { .dl .dl-row { flex-wrap: wrap; } .dl .dl-btns { width: 100%; justify-content: stretch; } .dl .dl-btns a.btn { flex: 1; justify-content: center; } }
/* hỗ trợ: nút chat nổi + ô hỗ trợ sau khi mua */
.chat-fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border-radius: 999px; background: linear-gradient(135deg, #00b2ff, #006aff); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 10px 30px rgba(0, 106, 255, 0.4); }
.chat-fab:hover { transform: translateY(-2px); }
@media (max-width: 560px) { .chat-fab span { display: none; } .chat-fab { padding: 13px; } }
.support-box { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: #eef5ff; border: 1px solid #cfe2ff; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.support-box small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.support-box .sb-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.dl .support-box { display: flex; }
.support-box .btn { background: linear-gradient(135deg, #00b2ff, #006aff); box-shadow: none; color: #fff; }
.support-box .btn.zalo { background: #0068ff; }

/* menu ☰ trên điện thoại */
.menu-btn { display: none; width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.menu-btn.on span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.on span:nth-child(2) { opacity: 0; }
.menu-btn.on span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mnav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px rgba(22, 18, 52, 0.14); padding: 8px 16px 16px; display: flex; flex-direction: column; }
.mnav[hidden] { display: none; }
.mnav a { padding: 13px 4px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: 16px; }
.mnav a:last-child { border-bottom: 0; }
.mnav a.mn-cta { margin-top: 10px; border: 0; border-radius: 999px; background: var(--grad); color: #fff; text-align: center; }
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .top .wrap { gap: 10px; }
  .nav .acc { display: none; }
}

/* 2 bài hướng dẫn LIVE (Node.js + LIVE nét) */
.hd-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.hd-links.sm { margin: 0; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 14px; gap: 6px 16px; }
.hd-links.sm a { font-weight: 600; color: var(--accent); text-decoration: none; }
.hd-links.sm a:hover { text-decoration: underline; }
.hd-article { max-width: 900px; margin: 0 auto; }
.hd-article .sub { color: var(--muted); margin-top: 0; }
.hd-article code { background: var(--soft); padding: 1px 6px; border-radius: 6px; font-size: 0.92em; word-break: break-all; }
.hd-fig { margin: 10px 0 18px; }
.hd-fig img { display: block; max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 4px 18px rgba(22,18,52,.08); }
.hd-fig figcaption { font-size: 13.5px; color: var(--muted); margin-top: 6px; text-align: center; }
.hd-note { background: #fff7e8; border: 1px solid #f3d9a6; border-radius: 10px; padding: 10px 14px; margin: 10px 0 16px; line-height: 1.65; }
.hd-pick { background: #f1edff; border: 1px solid #d8cffd; border-radius: 12px; padding: 12px 16px; margin: 12px 0 18px; }
.hd-pick ul { margin: 6px 0 0; }
.hd-pick .btn { margin-left: 6px; padding: 3px 10px; font-size: 12.5px; }
.hd-url { font-weight: 700; color: var(--accent); }
.hd-table { overflow-x: auto; margin: 8px 0 16px; }
.hd-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.hd-table th, .hd-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.hd-table th { background: var(--soft); }
.hd-table tr.on td { background: #fff1c7; font-weight: 700; }
.hd-next { margin-top: 24px; padding: 12px 16px; border-radius: 12px; background: var(--soft); font-weight: 600; }
.hd-links .btn { width: auto; display: inline-flex; }
/* Hướng dẫn từng game tách 2 phần: cài đặt / cách chơi */
.gsplit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin: 6px 0 12px; }
.gs-part, .gs-steps > li, .gs-cards > li { min-width: 0; overflow-wrap: anywhere; }
.gs-part h3 { margin: 4px 0 10px; font-size: 18px; color: var(--accent); }
.gs-part h4 { margin: 16px 0 8px; font-size: 15.5px; }
.gs-steps { list-style: none; counter-reset: gs; padding: 0; margin: 0; display: grid; gap: 8px; }
.gs-steps > li { counter-increment: gs; position: relative; padding: 10px 14px 10px 52px; background: var(--soft); border-radius: 12px; line-height: 1.6; }
.gs-steps > li::before { content: counter(gs); position: absolute; left: 12px; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.gs-steps .gs-t { display: block; }
.gs-steps a { font-weight: 600; }
.gs-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.gs-cards > li { padding: 10px 14px; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; background: #fff; line-height: 1.6; }
.gs-cards.soft > li { border-left-color: var(--accent); background: #faf9ff; }
.gs-cards ul { margin: 6px 0 0; padding-left: 20px; }
.gs-note { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.guide .gsplit { padding-bottom: 6px; }
.guide .gs-part h3 { font-size: 16px; }
/* Trong danh sách game (.dl), bỏ kiểu ô xám chung của ".dl a, .dl div" cho phần hướng dẫn */
.dl .hd-links.sm, .dl .gsplit, .dl .gs-part { padding: 0; background: none; border: 0; border-radius: 0; align-items: stretch; }
.dl .hd-links.sm { display: flex; flex-wrap: wrap; padding: 8px 14px; border-top: 1px solid var(--line); }
.dl .gsplit { display: grid; gap: 14px; }
.dl .gs-part { display: block; }
.dl .hd-links.sm a, .dl .gsplit a { display: inline; padding: 0; background: none; border: 0; border-radius: 0; }
.dl .gs-steps > li, .dl .gs-cards > li { background: #fff; margin: 0; }

/* Trang Hướng dẫn: danh sách game, bấm vào để xem hướng dẫn riêng ở trang game */
.gl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 10px; }
.gl-card { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.gl-card:hover { border-color: var(--accent); background: #fff; }
.gl-card img { width: 44px; height: 58px; object-fit: cover; object-position: top; border-radius: 8px; }
.gl-card span { display: flex; flex-direction: column; gap: 2px; }
.gl-card small { color: var(--accent); font-weight: 600; font-size: 13px; }

/* Trang game: "Game khác" dạng ô nhỏ (điện thoại 2 cột) thay cho thẻ lớn */
.others { margin-top: 32px; }
.og-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.og-card { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 8px 8px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--card-shadow); color: inherit; text-decoration: none; }
.og-card:hover { border-color: var(--accent); }
.og-card img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 10px; background: #000; }
.og-card b { font-size: 15px; line-height: 1.3; margin-top: 4px; }
.og-card small { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.og-card .tag { position: absolute; top: 14px; left: 14px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 999px; }
@media (max-width: 420px) { .og-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .og-card small { display: none; } }

/* Lịch sử cập nhật (trang game + tài khoản) */
.releases { margin-top: 24px; scroll-margin-top: 80px; }
.releases h2 { margin: 0 0 6px; font-size: 21px; }
.rl-sub { color: var(--muted); margin: 0 0 14px; line-height: 1.6; }
.rl-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rl-item { min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow-wrap: anywhere; }
.rl-item.on { border-color: #d8cffd; background: #faf8ff; box-shadow: 0 0 0 3px #f1edff; }
.rl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.rl-head b { font-size: 17px; }
.rl-head time { margin-left: auto; color: var(--muted); font-size: 13.5px; }
.rl-badge { background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 800; padding: 2px 9px; border-radius: 999px; }
.rl-group { margin-top: 6px; }
.rl-group > span { display: inline-block; font-size: 13px; font-weight: 700; padding: 1px 8px; border-radius: 6px; }
.rl-group.add > span { background: #e7f8ee; color: #137a43; }
.rl-group.fix > span { background: #fff1e5; color: #b4530b; }
.rl-group ul { margin: 6px 0 0; padding-left: 20px; line-height: 1.65; }
.rl-none { margin: 4px 0 0; color: var(--muted); }
.rl-dl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rl-old { margin-top: 4px; color: var(--muted); font-size: 13px; }
.gd-ver { margin: 14px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--soft); font-size: 14.5px; }
.dl .rls .rl-list { margin: 8px 0 4px; padding: 0; font-size: 14.5px; }
.dl .rls .rl-item { display: block; }
.dl .rls p { margin: 0; }
.dl .rls ul { margin: 4px 0 6px; padding-left: 20px; line-height: 1.6; }
.dl .rls .rl-group { margin-top: 6px; }
.dl .rls a.btn { white-space: normal; padding: 7px 14px; font-size: 13.5px; max-width: 100%; }
/* trang game: khung giới thiệu, cách cài đặt, lịch sử cập nhật rộng bằng nhau (bằng khung trên cùng) */
.gd-info.panel, .game-detail ~ .panel { max-width: none; margin-left: 0; margin-right: 0; }
/* trang Hướng dẫn: khung rộng hơn cho dễ đọc */
.panel.wide { max-width: none; }
