/* Kiểu chung cho mọi trang công khai ngoài game: Giới thiệu, Hướng dẫn, Cập nhật, Liên hệ, Quyền riêng tư, Xoá tài khoản.
 * Viết tay, một nguồn duy nhất (không sinh). Cùng bảng màu + font với trang chủ (src/landing/landing.css). Font tự host
 * trong public/site/fonts (CSP font-src chỉ cho phép self). Trang nạp bằng <link rel="stylesheet" href="/site/site.css">:
 * vite-plugins/contentPages.ts và packages/mobile/src/site/pages.ts (sinh privacy*.html, delete-account.html). */
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/baloo-2-latin-700-normal.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; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/baloo-2-vietnamese-700-normal.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: "Baloo 2"; font-style: normal; font-weight: 800; font-display: swap;
  src: url(fonts/baloo-2-latin-800-normal.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; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 800; font-display: swap;
  src: url(fonts/baloo-2-vietnamese-800-normal.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: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/be-vietnam-pro-latin-500-normal.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; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/be-vietnam-pro-vietnamese-500-normal.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: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/be-vietnam-pro-latin-700-normal.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; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/be-vietnam-pro-vietnamese-700-normal.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; }
/* ---- Token (cùng bảng màu trang chủ: src/landing/landing.css) ---- */
:root {
  color-scheme: light;
  --cream: #fff6e6;
  --paper: #fffbf3;
  --ink: #2b2118;
  --ink-soft: #57463a;
  --green-900: #1f4d2b;
  --green-800: #255c33;
  --green-700: #2e6b34;
  --green-600: #3f8a3a;
  --green-100: #e7f1da;
  --wood: #7a4a22;
  --line: rgba(122, 74, 34, 0.14);
  --gold-1: #ffd862;
  --gold-2: #f5a524;
  --gold-ink: #3a2208;
  --gutter: 16px;
  --radius: 24px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 18px 40px -26px rgba(90, 58, 26, 0.45);
  --font-head: "Baloo 2", "Be Vietnam Pro", system-ui, sans-serif;
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 900px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  background-image: radial-gradient(1200px 420px at 50% -120px, rgba(255, 216, 98, 0.35), rgba(255, 216, 98, 0) 70%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; border-radius: 6px; }

/* ---- Thanh trên ---- */
.site-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 246, 230, 0.9);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px -24px rgba(90, 58, 26, 0.6);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}
.site-top-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 12px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  margin-right: auto;
  color: var(--green-900);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
}
.site-brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 4px 12px -6px rgba(90, 58, 26, 0.6); }
.site-brand span { padding-top: 3px; }
.site-nav { order: 3; display: flex; flex: 1 0 100%; gap: 4px; margin: 0 -6px; padding: 0 0 8px; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.site-nav a:hover { background: rgba(63, 138, 58, 0.1); color: var(--green-900); }
.site-nav a[aria-current="page"] { background: var(--green-100); color: var(--green-900); box-shadow: 0 0 0 1px rgba(46, 107, 52, 0.18) inset; }
@media (min-width: 900px) {
  .site-brand { min-height: 72px; }
  .site-nav { order: 0; flex: 0 1 auto; margin: 0 8px 0 0; padding: 0; overflow: visible; }
  .site-nav a { padding: 0 14px; }
}

/* ---- Nút vàng (như nút "Chơi ngay" ở trang chủ) ---- */
.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 3px 20px 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-1) 0%, #ffbf3c 55%, var(--gold-2) 100%);
  color: var(--gold-ink);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 -3px 0 rgba(160, 84, 0, 0.28) inset, 0 10px 24px -10px rgba(196, 104, 0, 0.75);
  translate: 0 0;
  transition: translate 0.18s ease, filter 0.18s ease;
}
.site-btn svg { flex: none; margin-top: -3px; }
.site-btn:hover { translate: 0 -2px; filter: brightness(1.04) saturate(1.05); }
.site-btn:active { translate: 0 1px; }

/* ---- Thân trang ---- */
main { flex: 1 0 auto; width: 100%; max-width: 860px; margin: 0 auto; padding: 28px var(--gutter) 56px; }
.page-card {
  padding: 24px 20px 28px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line) inset, var(--shadow-card);
}
@media (min-width: 600px) { .page-card { padding: 40px 44px 44px; } }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; color: var(--green-900); letter-spacing: 0.005em; }
h1 { margin: 0 0 0.5em; font-size: 1.75rem; line-height: 1.15; }
h1::after { content: ""; display: block; width: 64px; height: 6px; margin-top: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--gold-1), var(--gold-2)); }
h2 { margin: 1.9em 0 0.5em; font-size: 1.4rem; line-height: 1.25; }
h3 { margin: 1.4em 0 0.4em; font-size: 1.15rem; }
@media (min-width: 600px) { h1 { font-size: 2.1rem; } }
@media (min-width: 900px) { h1 { font-size: 2.6rem; } h2 { font-size: 1.6rem; } }
p { margin: 0.8em 0; }
a { color: var(--green-700); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: rgba(46, 107, 52, 0.35); }
a:hover { color: var(--green-900); text-decoration-color: var(--gold-2); }
strong { font-weight: 700; color: var(--ink); }
ul, ol { margin: 0.8em 0; padding-left: 1.4em; }
li { margin: 0.35em 0; padding-left: 0.2em; }
li::marker { color: var(--green-600); font-weight: 800; }
ul ul, ul ol, ol ul { margin: 0.3em 0; }
img { max-width: 100%; height: auto; }
main img[src$=".webp"] { border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 12px 28px -16px rgba(90, 58, 26, 0.5); background: #fff; }
hr { border: 0; height: 1px; margin: 2.6em 0; background: var(--line); }
em { color: var(--ink-soft); }

/* Bảng: cuộn ngang trong khung nếu hẹp, đầu bảng xanh nhạt, sọc xen kẽ. */
table {
  width: 100%;
  margin: 1.1em 0;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--line);
  font-size: 0.95rem;
}
th, td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--green-100); color: var(--green-900); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td, tr:nth-child(even) td { background: rgba(255, 246, 230, 0.55); }

/* ---- Chân trang (như chân trang chủ) ---- */
.site-foot { flex: none; margin-top: 24px; padding: 48px 0 calc(24px + env(safe-area-inset-bottom)); background: #2b2118; color: #f3e6d0; }
.site-foot-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.site-foot-brand { grid-column: 1 / -1; }
.site-foot .site-brand { min-height: 44px; color: var(--cream); }
.site-foot-brand p { max-width: 28em; margin: 10px 0 0; color: #d8c6a8; font-size: 15px; }
.site-foot-col { display: flex; flex-direction: column; align-items: flex-start; }
.site-foot-col h2 { margin: 0 0 4px; color: #d8c6a8; font-family: var(--font-body); font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; line-height: 1.4; text-transform: uppercase; }
.site-foot-col a { display: inline-flex; align-items: center; min-height: 40px; color: var(--cream); font-size: 15.5px; text-decoration: none; }
.site-foot-col a:hover { color: var(--gold-1); text-decoration: underline; text-underline-offset: 4px; }
.site-foot :focus-visible { outline-color: var(--gold-1); }
.site-copy { max-width: 1120px; margin: 32px auto 0; padding: 0 var(--gutter); }
.site-copy p { margin: 0; padding-top: 18px; border-top: 1px solid rgba(243, 230, 208, 0.14); color: #c9b391; font-size: 13.5px; }
.site-copy a { color: #f3e6d0; }
@media (min-width: 900px) {
  .site-foot { padding-top: 60px; }
  .site-foot-in { grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
  .site-foot-brand { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; } }
@media print { .site-top, .site-foot { display: none; } body { background: #fff; } .page-card { box-shadow: none; } }
