/* No69 Club — một lớp màu duy nhất. Đổi màu chỉ sửa :root. */

/* Playfair Display 5.3.0 (fontsource, OFL — xem fonts/OFL.txt). Tách 2 file theo unicode-range
   giống Google Fonts: trình duyệt chỉ tải file chứa ký tự trang thật sự dùng. */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/playfair-display-vietnamese-400.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/playfair-display-latin-400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #031b16;
  --bg-2: #06291f;
  --panel: #082e24;
  --panel-2: #0e392b;
  --text: #f5f1e5;
  --muted: #aac3b6;
  --gold: #d6bd83;
  --gold-hi: #ecdbb0;
  --gold-lo: #c8a76a;
  --line: #345346;
  --line-gold: #bda26955;
  --ink: #102a20;
  --todo: #ffd166;
  /* Georgia thiếu glyph tiếng Việt (vỡ "ấ", "ố") nên không dùng. Font dự phòng khi Playfair
     chưa tải xong đều đủ dấu: Noto Serif (Android), Times New Roman (Windows/iOS/macOS). */
  --font-display: "Playfair Display", "Noto Serif", "Times New Roman", Times, serif;
  --font-body: Arial, Helvetica, sans-serif;
  --wrap: min(1180px, calc(100% - 40px));
  --cta-bar: 0px;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: 90px }
body {
  margin: 0;
  padding-bottom: var(--cta-bar);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  background: radial-gradient(ellipse at 85% 10%, #09634544, transparent 42%), linear-gradient(160deg, var(--bg), var(--bg-2) 52%, #021610);
  background-color: var(--bg);
}
a { color: inherit; text-decoration: none }
img, svg { display: block; max-width: 100% }
button { font: inherit; cursor: pointer }
a, button { -webkit-tap-highlight-color: transparent }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--text); line-height: 1.2 }
h2 { font-size: clamp(28px, 3.3vw, 40px); letter-spacing: -.5px; margin: 14px 0 0 }
.wrap { width: var(--wrap); margin: auto }
.skip { position: fixed; top: -80px; left: 8px; background: var(--gold); color: var(--ink); padding: 12px; z-index: 20 }
.skip:focus { top: 8px }
.todo { background: var(--todo); color: #241a00; padding: 1px 6px; border-radius: 3px; font-weight: 700 }

/* Nút */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 22px; border: 1px solid #bda26980; border-radius: 4px; background: #06291f66; color: #f0e6cb; font-size: 14px; font-weight: 700; transition: transform .2s, filter .2s }
.pill:hover { transform: translateY(-2px); filter: brightness(1.08) }
.pill.primary { background: linear-gradient(115deg, var(--gold-hi), var(--gold-lo)); color: var(--ink); border-color: var(--gold-hi); box-shadow: 0 6px 24px #c8a76a22 }
.pill.small { padding: 9px 16px; font-size: 13px }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: 2.5px; font-size: 11px; font-weight: 700 }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold) }

/* Header */
header { position: sticky; top: 0; z-index: 10; background: #031b16f2; border-bottom: 1px solid var(--line-gold); backdrop-filter: blur(14px) }
.nav { position: relative; height: 72px; display: flex; align-items: center; gap: 24px }
.brand { font-size: 24px; font-weight: 900; letter-spacing: -1px; line-height: 1; white-space: nowrap }
.brand span { color: var(--gold) }
.brand small { font-size: 11px; letter-spacing: 3px; font-weight: 700; color: var(--gold); margin-left: 6px }
.navlinks { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 14px; color: #d5dfd4 }
.navlinks > a:hover, .navlinks a[aria-current=page] { color: var(--gold-hi) }
.site-menu > summary { list-style: none; cursor: pointer; padding: 10px 0; font-size: 14px }
.site-menu > summary::-webkit-details-marker { display: none }
.site-menu > summary::after { content: " ⌄" }
.menu-panel { position: absolute; top: 64px; right: 0; width: min(640px, 100%); padding: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; background: linear-gradient(135deg, #0b3226, #041e16); border: 1px solid #b59b61; border-radius: 6px; box-shadow: 0 25px 60px #0009; max-height: 75vh; overflow: auto }
.menu-panel a { padding: 10px 14px; border-radius: 3px; border: 1px solid transparent; font-size: 14px; color: #d7e1d2 }
.menu-panel a:hover, .menu-panel a[aria-current=page] { background: #214d35; border-color: #bca16788; color: #f3dfaf }

/* Hero trang chủ */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 30px; padding: 64px 0 56px }
.hero h1 { font-size: clamp(48px, 6vw, 84px); letter-spacing: -1.5px; margin: 18px 0 10px }
.hero h1 em { font-style: normal; color: var(--gold) }
.tagline { font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 26px); color: var(--gold-hi); margin: 0 0 16px }
.lead { color: #b4cbbd; max-width: 520px; font-size: 16px; margin: 0 }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px }
.note { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted) }
.badge-18 { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid var(--gold); border-radius: 50%; color: var(--gold); font-size: 11px; font-weight: 700 }
.hero-art { position: relative; display: grid; place-items: center }
.hero-art::before { content: ""; position: absolute; inset: 4% 8%; border-radius: 50%; background: radial-gradient(circle, #0d795455, transparent 68%); z-index: -1 }
.hero-art img { width: 100%; max-width: 560px; height: auto; filter: drop-shadow(0 22px 40px #0007) }

.ribbon { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid var(--line-gold); border-bottom: 1px solid var(--line-gold); font-size: 14px; color: #d4d7c5 }
.ribbon span { display: flex; gap: 10px; align-items: center }
.ribbon b { color: var(--gold); font-size: 18px }

section { padding: 76px 0 }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px }
.section-head p { max-width: 380px; color: var(--muted); font-size: 15px; margin: 0 }

/* Thẻ nhóm game */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px }
.card { display: flex; flex-direction: column; padding: 24px; border: 1px solid #b99d604a; border-radius: 6px; background: linear-gradient(150deg, var(--panel-2), #05251b); transition: transform .2s, border-color .2s }
.card:hover { transform: translateY(-4px); border-color: var(--gold) }
.card .icon { font-size: 30px; color: var(--gold); line-height: 1 }
.card h3 { font-size: 24px; margin: 16px 0 8px }
.card p { color: #b2c8b9; font-size: 14px; margin: 0 0 16px }
.card ul { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px }
.card li { font-size: 12px; padding: 3px 9px; border: 1px solid #ceb67b55; border-radius: 20px; color: #e1cb97 }
.card .more { margin-top: auto; padding-top: 14px; border-top: 1px solid #b69b5d42; font-size: 13px; color: var(--gold) }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; padding: 0; margin: 0; list-style: none }
.steps li { padding: 26px; border: 1px solid var(--line); border-radius: 6px; background: #06271e }
.steps li::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--font-display); font-size: 34px; color: var(--gold) }
.steps h3 { font-size: 21px; margin: 6px 0 6px }
.steps p { color: var(--muted); font-size: 14px; margin: 0 }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px }
.panel { padding: 32px; border: 1px solid #ba9d615c; border-radius: 6px; background: radial-gradient(ellipse at right bottom, #1a5a3c, #072b20 70%) }
.panel p { color: #bdd4c9; font-size: 15px }
.panel .pill { margin-top: 8px }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px }
.faq-list { border-top: 1px solid #b19a6140 }
details.qa { border-bottom: 1px solid #b19a6140 }
details.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: 16px; font-weight: 600; color: #e2e8d9 }
details.qa summary::-webkit-details-marker { display: none }
details.qa summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1 }
details.qa[open] summary::after { content: "−" }
details.qa p { margin: 0 28px 20px 0; color: #b2c8b9; font-size: 15px }
details.qa a, .prose a { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 4px }

/* Trang con */
.breadcrumbs { font-size: 13px; color: #9abbab; margin: 26px 0 0 }
.breadcrumbs a { color: var(--gold) }
.page-hero { padding: 30px 0 44px; border-bottom: 1px solid var(--line-gold); max-width: 860px }
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); letter-spacing: -1px; margin: 18px 0 14px }
.page-hero p { color: #bad1c3; font-size: 17px; max-width: 680px; margin: 0 }
.page-body { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 56px; padding: 44px 0 80px }
.prose h2 { font-size: 30px; margin: 40px 0 12px }
.prose h2:first-child { margin-top: 0 }
.prose h3 { font-size: 22px; margin: 28px 0 8px }
.prose p, .prose li { color: #c0d4c7; font-size: 16px }
.prose li { margin: 8px 0 }
.prose ol, .prose ul { padding-left: 22px }
.prose .pill { text-decoration: none; color: var(--ink) }
.prose .pill:not(.primary) { color: #f0e6cb }
.callout { margin: 24px 0; padding: 18px 22px; border-left: 3px solid var(--gold); background: #0b3126; border-radius: 0 6px 6px 0 }
.callout p { margin: 0 }
.callout.warn { border-left-color: #e8a46b }
.table-wrap { overflow-x: auto; margin: 18px 0 }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line) }
th { color: var(--gold); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px }
td { color: #d0ddd3 }
/* Bảng 2 cột chứa link: không ép rộng, link xuống dòng để thấy đủ địa chỉ mà đối chiếu. */
table.compact { min-width: 0 }
table.compact td a, table.compact td strong { overflow-wrap: anywhere }
td a[data-cfg] { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 4px }
code { background: #0b3126; padding: 2px 6px; border-radius: 3px; font-size: 14px; color: var(--gold-hi); word-break: break-all }
.aside { align-self: start; position: sticky; top: 96px; display: grid; gap: 16px }
.aside-box { padding: 24px; border: 1px solid #b49a5f66; border-radius: 6px; background: linear-gradient(145deg, #113b29, #06261c) }
.aside-box h2 { font-size: 21px; margin: 0 0 12px }
.aside-box p { color: var(--muted); font-size: 14px; margin: 0 0 16px }
.aside-box .pill { width: 100% }
.aside-box nav a { display: block; padding: 11px 0; border-top: 1px solid #b49a5f33; font-size: 14px; color: #d2dec9 }
.aside-box nav a:hover { color: var(--gold-hi) }

/* Footer */
footer { background: #021710; border-top: 1px solid #b79d6255; padding: 44px 0 30px }
.footer-top { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; padding-bottom: 30px }
.footer-copy p { color: var(--muted); font-size: 14px; max-width: 300px }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 24px; align-content: start }
.footer-links a { font-size: 14px; color: #c3d2c2 }
.footer-links a:hover, .footer-links a[aria-current=page] { color: var(--gold-hi) }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 20px; border-top: 1px solid #b79d6233; font-size: 13px; color: var(--muted) }
.footer-row p { margin: 0 }

/* Thanh "Chơi ngay" dính đáy — chỉ hiện trên điện thoại */
.cta-bar { display: none }

/* Hộp hướng dẫn cài */
dialog { max-width: 480px; width: calc(100% - 32px); padding: 28px; color: var(--text); background: linear-gradient(135deg, #0b3427, #041e17); border: 1px solid #c4a86a; border-radius: 8px }
dialog::backdrop { background: #000b; backdrop-filter: blur(4px) }
dialog h2 { font-size: 26px; margin: 0 30px 16px 0 }
dialog p, dialog li { color: var(--muted); font-size: 15px }
dialog .close { position: absolute; top: 10px; right: 14px; border: 0; background: none; color: var(--text); font-size: 28px }

@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr) }
}

@media (max-width: 800px) {
  :root { --cta-bar: 76px }
  .navlinks > a, .header-cta { display: none }
  .hero { grid-template-columns: 1fr; padding: 28px 0 40px; gap: 0 }
  .hero-art { order: -1; max-width: 340px; margin: 0 auto }
  .ribbon { grid-template-columns: 1fr; gap: 10px }
  .steps, .split { grid-template-columns: 1fr }
  .faq { grid-template-columns: 1fr; gap: 20px }
  .page-body { grid-template-columns: minmax(0, 1fr); gap: 30px }
  .aside { position: static }
  .footer-top { grid-template-columns: 1fr; gap: 24px }
  .footer-links { grid-template-columns: repeat(2, 1fr) }
  .footer-row { flex-direction: column; align-items: start }
  .cta-bar { display: grid; grid-template-columns: 1fr auto; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #031b16f5; border-top: 1px solid var(--line-gold); backdrop-filter: blur(12px) }
  .cta-bar .pill { padding: 14px 16px; font-size: 15px }
  .cta-bar { transition: transform .25s }
  .hero-cta-visible .cta-bar { transform: translateY(110%) }
}

@media (max-width: 560px) {
  :root { --wrap: calc(100% - 32px) }
  .brand small { display: none }
  .nav { gap: 14px }
  .navlinks { gap: 14px }
  .menu-panel { grid-template-columns: 1fr; top: 64px }
  .cards { grid-template-columns: 1fr }
  section { padding: 52px 0 }
  .section-head { display: block }
  .section-head p { margin-top: 12px }
  .panel { padding: 24px }
  .actions .pill { flex: 1 1 100% }
  .hero h1 { font-size: 52px }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  .pill, .card, .cta-bar { transition: none }
  .pill:hover, .card:hover { transform: none }
}
