/* =========================================================
   Jx2ComboPk — website giới thiệu. Phong cách theo giao diện game:
   thanh tiêu đề xanh ngọc hoa văn mây, thân cửa sổ xám ngà,
   nút vàng / xanh, núm thoi. Nền đầu trang là ảnh cảnh trong game.
   ========================================================= */

/* ---------- Font (tự host, có tiếng Việt) ---------- */
/* ---------- Font (tự host, có tiếng Việt) ---------- */
@font-face { font-family: "Pattaya"; font-display: swap;
  src: url(../fonts/pattaya-vietnamese-400-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: "Pattaya"; font-display: swap;
  src: url(../fonts/pattaya-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Pattaya"; font-display: swap;
  src: url(../fonts/pattaya-latin-400-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-weight: 400; font-display: swap; src: url(../fonts/be-vietnam-pro-vietnamese-400-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-weight: 400; font-display: swap; src: url(../fonts/be-vietnam-pro-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-display: swap; src: url(../fonts/be-vietnam-pro-latin-400-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-weight: 600; font-display: swap; src: url(../fonts/be-vietnam-pro-vietnamese-600-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-weight: 600; font-display: swap; src: url(../fonts/be-vietnam-pro-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 600; font-display: swap; src: url(../fonts/be-vietnam-pro-latin-600-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-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; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 700; font-display: swap; src: url(../fonts/be-vietnam-pro-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; 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-weight: 800; font-display: swap; src: url(../fonts/be-vietnam-pro-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-weight: 800; font-display: swap; src: url(../fonts/be-vietnam-pro-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 800; font-display: swap; src: url(../fonts/be-vietnam-pro-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: "Oswald"; font-weight: 500; font-display: swap; src: url(../fonts/oswald-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: "Oswald"; font-weight: 500; font-display: swap; src: url(../fonts/oswald-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Oswald"; font-weight: 500; font-display: swap; src: url(../fonts/oswald-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: "Oswald"; font-weight: 600; font-display: swap; src: url(../fonts/oswald-vietnamese-600-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: "Oswald"; font-weight: 600; font-display: swap; src: url(../fonts/oswald-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Oswald"; font-weight: 600; font-display: swap; src: url(../fonts/oswald-latin-600-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: "Oswald"; font-weight: 700; font-display: swap; src: url(../fonts/oswald-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: "Oswald"; font-weight: 700; font-display: swap; src: url(../fonts/oswald-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Oswald"; font-weight: 700; font-display: swap; src: url(../fonts/oswald-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; }

/* ---------- Biến ---------- */
:root {
  --ink: #1f2522;
  --ink-2: #3f4a46;
  --muted: #6c7672;
  /* nền cửa sổ trong game: xám ngà */
  --panel: #e7e4dc;
  --panel-2: #d8d4ca;
  --line: #bdb7a8;
  /* xanh ngọc thanh tiêu đề game */
  --teal: #2c8580;
  --teal-2: #1f6b67;
  --teal-3: #134845;
  --teal-l: #7cc4b6;
  --teal-pale: #d6efe9;
  /* vàng nút "Đồng ý" */
  --gold: #e9c568;
  --gold-2: #fbeebf;
  --gold-3: #a8873a;
  /* xanh nút "Mặc định" */
  --blue: #4a8fdc;
  --blue-2: #9ccdf7;
  --blue-3: #2c5f9e;
  --red: #a3261d;
  --red-2: #c43a2c;
  --radius: 4px;
  --shadow: 0 10px 26px rgba(15, 35, 33, 0.18);
  --nav-h: 66px;
  --cloud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='48' viewBox='0 0 120 48'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.14' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 36c0-9 12-13 18-7s-1 11-6 8 1-6 4-4'/%3E%3Cpath d='M24 36q14-12 28 0t28 0'/%3E%3Cpath d='M66 14c0-9 12-13 18-7s-1 11-6 8 1-6 4-4'/%3E%3Cpath d='M84 14q10-9 20 0t20 0'/%3E%3Cpath d='M-16 14q10-9 20 0'/%3E%3C/g%3E%3C/svg%3E");
  --swirl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='20' viewBox='0 0 34 20'%3E%3Cpath d='M2 17c5-12 18-15 25-9 4 4 1 9-4 8-4-1-3-6 1-5' fill='none' stroke='%23fff' stroke-opacity='.8' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 10px); }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--panel);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-2); }
kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0 0.45em;
  border: 1px solid #8fb2ad;
  border-bottom-width: 3px;
  border-radius: 5px;
  background: linear-gradient(#ffffff, #e2ece9);
  color: var(--ink);
  font: 700 0.85em/1.6 "Be Vietnam Pro", sans-serif;
  text-align: center;
}
code { font-family: Consolas, monospace; background: #d6e6e2; padding: 1px 6px; border-radius: 4px; }
.brush { font-family: "Pattaya", "Be Vietnam Pro", serif; font-weight: 400; letter-spacing: 0.5px; }
.game { font-family: "Oswald", "Be Vietnam Pro", sans-serif; }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.wrap.narrow { width: min(860px, 100% - 40px); }

/* ---------- Nút kiểu game ("Đồng ý" vàng, "Mặc định" xanh) ---------- */
.btn {
  --bg: linear-gradient(180deg, #fff8dd, #f3d98c 55%, #e2b553);
  --edge: #fff6d8;
  --rim: #9c7a2e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 30px 10px 24px;
  border: 2px solid var(--edge);
  border-radius: 4px;
  background: var(--bg);
  color: #3a2a0c;
  font: 600 17px/1.3 "Oswald", "Be Vietnam Pro", sans-serif;
  letter-spacing: 0.3px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  box-shadow: 0 0 0 1px var(--rim), 0 4px 0 rgba(0, 0, 0, 0.18), 0 8px 16px rgba(0, 0, 0, 0.18);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn::after {
  /* đường cuộn mây ở góc nút như trong game */
  content: "";
  position: absolute;
  right: 4px;
  top: 3px;
  width: 30px;
  height: 18px;
  background: var(--swirl) no-repeat center / contain;
  opacity: 0.85;
  pointer-events: none;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn small { font-weight: 500; opacity: 0.8; font-size: 0.8em; }
.btn-gold { --bg: linear-gradient(180deg, #fff8dd, #f3d98c 55%, #e2b553); }
.btn-blue {
  --bg: linear-gradient(180deg, #a9d6fa, #6aa9ec 50%, #3f80d4);
  --edge: #e2f1ff;
  --rim: #2c5f9e;
  color: #0f2547;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-lg { padding: 13px 40px 13px 30px; font-size: 20px; }
.btn-sm { padding: 6px 26px 6px 16px; font-size: 15px; }

/* ---------- Thanh điều hướng ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.nav.scrolled {
  background: var(--cloud), linear-gradient(180deg, var(--teal), var(--teal-2));
  box-shadow: 0 2px 0 #0e3532, 0 4px 18px rgba(0, 0, 0, 0.3);
}
.nav-inner {
  width: min(1200px, 100% - 32px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff6dc; text-shadow: 0 2px 6px rgba(0,0,0,.5); }
.brand-name { font-family: "Pattaya", serif; font-size: 28px; }
.seal {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--red-2);
  color: #fff2d6;
  font: 800 14px/1 "Be Vietnam Pro", sans-serif;
  letter-spacing: 1px;
  text-shadow: none;
  box-shadow: inset 0 0 0 2px #fff2d6, inset 0 0 0 4px var(--red-2), 0 2px 6px rgba(0,0,0,.3);
  transform: rotate(-4deg);
}
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav-links a:not(.btn) {
  padding: 6px 13px;
  color: #f4f1e6;
  text-decoration: none;
  font: 500 17px/1.4 "Oswald", "Be Vietnam Pro", sans-serif;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  border: 1px solid transparent;
  border-radius: 3px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:not(.btn):hover {
  /* giống tab đang chọn trong game */
  background: linear-gradient(180deg, #fff8dd, #f0d07c);
  border-color: #fff6d8;
  color: #3a2a0c;
  text-shadow: none;
}
.nav-links .btn { margin-left: 10px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; border-radius: 2px; background: #fff6dc; }

/* ---------- Đầu trang: ảnh cảnh trong game ---------- */
.hero {
  position: relative;
  min-height: min(100vh, 880px);
  padding: calc(var(--nav-h) + 40px) 0 130px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  background: #1d3b36;
}
.hero-bg {
  position: absolute;
  inset: -2%;
  z-index: -3;
  background: url(../img/bg-hero.webp) center 45% / cover no-repeat;
  animation: drift 40s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: scale(1.08) translateX(-1.5%); } }
.hero::before {
  /* lớp phủ để chữ dễ đọc: tối bên trái, trong dần sang phải, mờ xuống dưới */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 26, 25, 0.9) 0%, rgba(8, 26, 25, 0.72) 34%, rgba(8, 26, 25, 0.22) 62%, rgba(8, 26, 25, 0.05) 100%),
    linear-gradient(180deg, rgba(8, 26, 25, 0.55) 0%, transparent 22%, transparent 70%, rgba(8, 26, 25, 0.35) 100%);
}
.hero::after {
  /* mép dưới: viền xanh ngọc + vàng như khung cửa sổ game */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 14px;
  background:
    linear-gradient(180deg, var(--gold) 0 2px, var(--teal-2) 2px 10px, var(--teal-3) 10px 12px, var(--panel) 12px);
}
/* mây trôi */
.hero-clouds { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-clouds i {
  position: absolute;
  width: 640px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.18) 55%, transparent);
  filter: blur(8px);
  animation: cloud 70s linear infinite;
}
.hero-clouds i:nth-child(1) { top: 62%; left: -20%; }
.hero-clouds i:nth-child(2) { top: 78%; left: 30%; width: 900px; animation-duration: 95s; animation-delay: -40s; opacity: 0.8; }
.hero-clouds i:nth-child(3) { top: 8%; left: 55%; width: 520px; height: 120px; animation-duration: 85s; animation-delay: -20s; opacity: 0.5; }
@keyframes cloud { from { transform: translateX(-30vw); } to { transform: translateX(110vw); } }

.hero-inner {
  width: min(1160px, 100% - 40px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 18px;
  background: linear-gradient(180deg, var(--teal), var(--teal-2));
  border: 1px solid var(--teal-l);
  color: #f2fbf8;
  font: 500 15px/1.6 "Oswald", "Be Vietnam Pro", sans-serif;
  letter-spacing: 0.5px;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%);
}
.hero h1 {
  margin: 0 0 0 -6px;
  padding: 0 10px 8px 6px;
  font-size: clamp(60px, 9vw, 116px);
  line-height: 1.1;
  /* chữ vàng kim viền tối kiểu logo game */
  background: linear-gradient(180deg, #fffbe6 8%, #f7dc85 45%, #e0a93c 62%, #fff0b8 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 #5a3508) drop-shadow(0 -1px 0 #5a3508) drop-shadow(2px 0 0 #5a3508) drop-shadow(-2px 0 0 #5a3508) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
}
.hero-sub { margin: 10px 0 12px; font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; line-height: 1.35; color: #fbf7ec; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }
.hero-sub kbd { text-shadow: none; }
.hero-points { margin: 0 0 26px; padding: 0; list-style: none; color: #dbe9e4; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.hero-points b { color: #ffe9a6; }
.hero-points li { position: relative; padding-left: 24px; margin: 5px 0; }
.hero-points li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.55em;
  width: 9px; height: 9px;
  background: linear-gradient(135deg, #6fd0bf, var(--teal-2));
  border: 1px solid #d6efe9;
  transform: rotate(45deg);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-note { margin: 18px 0 0; color: #d8e6e1; font-size: 15px; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.hero-note b { color: #ffe9a6; }
.hero-note .i { width: 18px; height: 18px; vertical-align: -3px; color: #ffe9a6; }
.hero-shot { display: flex; justify-content: center; }
.hero-shot .frame { width: min(360px, 100%); transform: rotate(2deg); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: rotate(2deg) translateY(-10px); } }

/* ---------- Khung ảnh vàng kim, góc thoi xanh ngọc ---------- */
.frame {
  position: relative;
  padding: 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f8e7b0, #c9a14e 45%, #f3d98f 70%, #a8873a);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255,255,255,.5);
}
.frame img { border-radius: 3px; box-shadow: 0 0 0 2px #4a3a18; }
.frame .corner {
  position: absolute;
  width: 26px; height: 26px;
  border: 2px solid #e5f5f1;
  background: linear-gradient(135deg, #46a79d, var(--teal-2));
  box-shadow: 0 0 0 2px var(--teal-3), 0 3px 6px rgba(0,0,0,.35);
  transform: rotate(45deg);
}
.frame .tl { top: -10px; left: -10px; }
.frame .tr { top: -10px; right: -10px; }
.frame .bl { bottom: -10px; left: -10px; }
.frame .br { bottom: -10px; right: -10px; }
.frame.small { padding: 7px; }

/* ---------- Khối nội dung ---------- */
.section { position: relative; padding: 86px 0; }
.section.paper {
  background:
    radial-gradient(ellipse at 12% 10%, rgba(255,255,255,.6), transparent 50%),
    radial-gradient(ellipse at 90% 90%, rgba(44,133,128,.08), transparent 50%),
    var(--panel);
}
.section.paper.alt { background: linear-gradient(180deg, #ddd9cf, #d3cfc4); }
/* khối có ảnh cảnh game làm nền */
.section.scene { background: var(--img) center / cover no-repeat; isolation: isolate; }
.section.scene::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.section.square { --img: url(../img/bg-square.webp); }
.section.square::before { background: linear-gradient(180deg, rgba(19, 72, 69, 0.9), rgba(12, 45, 43, 0.93)); }
.section.pagoda { --img: url(../img/bg-pagoda.webp); }
.section.pagoda::before { background: linear-gradient(180deg, rgba(231, 228, 220, 0.8), rgba(216, 212, 202, 0.88)); }

/* Tiêu đề mục: thanh tiêu đề xanh ngọc như cửa sổ game */
.title { margin: 0 0 10px; text-align: center; font-weight: 400; line-height: 1; }
.title span {
  position: relative;
  display: inline-block;
  padding: 10px 64px 12px 60px;
  background: var(--cloud), linear-gradient(180deg, #3a9690, var(--teal-2) 60%, #1a5f5b);
  border: 2px solid #9fd2c7;
  box-shadow: 0 0 0 2px var(--teal-3), 0 8px 18px rgba(0, 0, 0, 0.22);
  color: #fbfffd;
  font: 600 clamp(28px, 4vw, 38px)/1.15 "Oswald", "Be Vietnam Pro", sans-serif;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.45);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);
}
.title span::before {
  /* đường cuộn bên trái */
  content: "";
  position: absolute;
  left: 18px; top: 50%;
  width: 34px; height: 20px;
  transform: translateY(-50%) scaleX(-1);
  background: var(--swirl) no-repeat center / contain;
}
.title span::after {
  /* mũi tên ➢ bên phải */
  content: "➢";
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  font-size: 0.62em;
  color: #e0f4ef;
}
.lead { max-width: 640px; margin: 16px auto 44px; text-align: center; color: var(--ink-2); font-size: 18px; }
.scene.square .lead { color: #cfe7e1; }

/* Nhãn mục nhỏ: "Âm thanh »———" như trong game */
.label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 64px 0 26px;
  color: var(--teal);
  font: 600 26px/1.2 "Oswald", "Be Vietnam Pro", sans-serif;
}
.label::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, #8fbab3, transparent); }

/* Cửa sổ (thẻ) kiểu game: thanh tiêu đề xanh ngọc + thân xám ngà */
.card {
  position: relative;
  background: linear-gradient(180deg, #f1efe9, #e2ded4);
  border: 1px solid #fff;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px #9aaea9, 0 0 0 4px #cfd8d3, 0 0 0 5px #8fa7a1, var(--shadow);
}
.panel { display: flex; flex-direction: column; overflow: hidden; }
.panel-head {
  position: relative;
  margin: 0;
  padding: 9px 44px 10px 40px;
  background: var(--cloud), linear-gradient(180deg, #3a9690, var(--teal-2) 65%, #1a5f5b);
  border-bottom: 2px solid #9fd2c7;
  color: #fbfffd;
  font: 600 21px/1.3 "Oswald", "Be Vietnam Pro", sans-serif;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.panel-head::before {
  content: "";
  position: absolute;
  left: 8px; top: 50%;
  width: 26px; height: 16px;
  transform: translateY(-50%) scaleX(-1);
  background: var(--swirl) no-repeat center / contain;
  opacity: 0.75;
}
.panel-head::after {
  /* nút thoi ở góc phải như nút đóng cửa sổ game */
  content: "";
  position: absolute;
  right: 14px; top: 50%;
  width: 14px; height: 14px;
  border: 2px solid #cfeee7;
  background: linear-gradient(135deg, #4fb0a5, var(--teal-3));
  transform: translateY(-50%) rotate(45deg);
}
.panel-body { flex: 1; padding: 20px 22px 22px; }

/* Tính năng: thẻ phái + combo */
.classes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.cls .panel-body { display: flex; align-items: center; gap: 18px; }
.cls ul { margin: 0; padding: 0; list-style: none; }
.cls li { padding: 2px 0; color: var(--ink-2); font-size: 15px; }
.combo { font: 600 20px/1.4 "Oswald", "Be Vietnam Pro", sans-serif; color: var(--teal-2); }
.cls li.combo { font-size: 20px; color: var(--teal-2); }
.combo::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 10px;
  position: relative; top: -3px;
  background: linear-gradient(135deg, #f7dc85, #c8902e);
  border: 1px solid #7a5a1c;
  transform: rotate(45deg);
}
/* huy hiệu tròn: nền xanh ngọc, viền vàng (như nút tròn trong game) */
.emblem, .medal {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  color: #fff6d6;
  background: radial-gradient(circle at 35% 30%, #52b5a9, var(--teal-2) 60%, var(--teal-3));
  border: 3px solid #f3d98c;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #7a5a1c, 0 4px 10px rgba(0,0,0,.25);
}
.emblem svg { width: 36px; height: 36px; }
.medal { width: 58px; height: 58px; }
.medal svg { width: 28px; height: 28px; }

/* Tính năng: vì sao chọn */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 36px; }
.perk { display: flex; gap: 16px; align-items: flex-start; }
.perk h4 { margin: 2px 0 4px; font: 600 20px/1.3 "Oswald", "Be Vietnam Pro", sans-serif; color: var(--ink); }
.perk p { margin: 0; color: var(--ink-2); }

/* Ba bước */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps b { font: 600 19px/1.3 "Oswald", "Be Vietnam Pro", sans-serif; color: var(--ink); }
.steps p { margin: 4px 0 0; color: var(--ink-2); }
.num {
  /* nút thoi xanh ngọc như núm thanh trượt trong game */
  flex: none;
  position: relative;
  z-index: 0;
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  color: #fff;
  font: 700 21px/1 "Oswald", "Be Vietnam Pro", sans-serif;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.num::before {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: -1;
  background: linear-gradient(135deg, #52b5a9, var(--teal-2) 70%);
  border: 2px solid #dff3ee;
  border-radius: 3px;
  transform: rotate(45deg);
  box-shadow: 0 0 0 2px var(--teal-3), 0 3px 8px rgba(0,0,0,.25);
}

/* Hình ảnh */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 18px; text-align: center; color: #e2f2ee; font-weight: 600; }

/* Bảng giá */
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; align-items: stretch; }
.price { text-align: center; }
.price .panel-head { padding-left: 16px; padding-right: 16px; font-size: 24px; }
.price .panel-head::before, .price .panel-head::after { display: none; }
.price .panel-body { display: flex; flex-direction: column; align-items: center; padding: 20px 20px 24px; }
.price .emblem { margin-bottom: 6px; }
.price .emblem.trio { width: auto; padding: 0 12px; gap: 6px; grid-auto-flow: column; border-radius: 34px; }
.price .emblem.trio svg { width: 28px; height: 28px; }
.price .period { margin: 0 0 14px; color: var(--muted); font-weight: 600; }
.price .amount { margin: 6px 0 0; font: 700 34px/1.3 "Oswald", "Be Vietnam Pro", sans-serif; color: var(--teal-2); }
.price .amount.pending { font-size: 24px; color: var(--muted); }
.price ul { margin: 0 0 22px; padding: 0; list-style: none; color: var(--ink-2); flex: 1; width: 100%; }
.price li { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.price li.hl { font-weight: 700; color: var(--teal-2); }
.price.hot li.hl { color: #9a6a12; }
.price li:last-child { border-bottom: 0; }
.price .btn { width: 100%; }
/* gói nổi bật: thanh tiêu đề vàng như tab đang chọn */
.price.hot { transform: translateY(-10px); box-shadow: 0 0 0 1px var(--gold-3), 0 0 0 4px #f3dd9a, 0 0 0 5px var(--gold-3), 0 16px 34px rgba(80, 55, 10, 0.3); }
.price.hot .panel-head {
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.7) 0 1px, transparent 2px) 0 0 / 22px 18px, linear-gradient(180deg, #fff6d6, #f0cf78);
  border-bottom-color: #c9a14e;
  color: #3a2a0c;
  text-shadow: 0 1px 0 rgba(255,255,255,.6);
}
.price.hot .amount { color: #9a6a12; }
.price.hot.reveal.in { transform: translateY(-10px); }
.ribbon {
  position: absolute;
  z-index: 2;
  top: 16px; right: -44px;
  padding: 3px 44px;
  background: linear-gradient(180deg, var(--red-2), var(--red));
  color: #fff3d6;
  font: 600 13px/1.5 "Oswald", "Be Vietnam Pro", sans-serif;
  letter-spacing: 0.5px;
  transform: rotate(45deg);
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.fine { margin: 30px 0 0; text-align: center; color: var(--muted); }

/* Dải dùng thử */
.trial {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 38px;
  padding: 18px 26px;
  background: linear-gradient(90deg, #fff8dd, #f5e3a8);
  box-shadow: 0 0 0 1px var(--gold-3), 0 0 0 4px #f3dd9a, 0 0 0 5px var(--gold-3), var(--shadow);
}
.trial-text { flex: 1; }
.trial h3 { margin: 0; font: 600 25px/1.3 "Oswald", "Be Vietnam Pro", sans-serif; color: #7a4f0c; }
.trial p { margin: 2px 0 0; color: var(--ink-2); }

/* Cách mua */
.buy-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin: 40px 0 36px; padding: 0; list-style: none; }
.buy-steps li { padding: 30px 20px 22px; text-align: center; }
.buy-steps .num { margin: 0 auto 14px; }
.buy-steps h3 { margin: 0 0 6px; color: var(--teal-2); font: 600 21px/1.3 "Oswald", "Be Vietnam Pro", sans-serif; }
.buy-steps p { margin: 0; color: var(--ink-2); }
.contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.contact {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  padding: 11px 20px;
  border: 2px solid rgba(255,255,255,.75);
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 6px 16px rgba(0,0,0,.18);
  transition: transform .15s ease;
}
.contact:hover { transform: translateY(-2px); }
.contact b { display: block; font: 600 19px/1.3 "Oswald", "Be Vietnam Pro", sans-serif; }
.contact small { display: block; opacity: .9; }
.c-ico {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  font: 800 20px/1 "Be Vietnam Pro", sans-serif;
}
.contact.zalo { background: linear-gradient(180deg, #4aa6ff, #0068ff); }
.contact.facebook { background: linear-gradient(180deg, #5878d0, #1b3f9e); }
.contact.discord { background: linear-gradient(180deg, #8d97f7, #5562e4); }
.disabled { opacity: .55; cursor: default; }
.contact.disabled:hover { transform: none; }

/* Hướng dẫn */
.guide { counter-reset: g; margin: 40px 0 0; padding: 0; list-style: none; }
.guide li {
  counter-increment: g;
  position: relative;
  margin: 0 0 20px;
  padding: 18px 22px 18px 82px;
  background: linear-gradient(180deg, #f3f1eb, #e4e0d6);
  border: 1px solid #fff;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px #9aaea9, 0 6px 14px rgba(15,35,33,.1);
}
.guide li::before {
  /* số thứ tự trong ô thoi xanh ngọc */
  content: counter(g);
  position: absolute;
  left: 20px; top: 16px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  color: #fff;
  font: 700 19px/1 "Oswald", sans-serif;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
  background: linear-gradient(180deg, #3a9690, var(--teal-2));
  border: 2px solid #dff3ee;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--teal-3);
}
.guide b { font-size: 18px; color: var(--ink); }
.guide > li > b:first-child { font: 600 20px/1.3 "Oswald", "Be Vietnam Pro", sans-serif; color: var(--teal-2); }
.guide p { margin: 4px 0 12px; color: var(--ink-2); }
.smartscreen {
  max-width: 420px;
  padding: 16px 18px;
  background: #0f61b3;
  color: #fff;
  border-radius: 4px;
  font-family: "Segoe UI", sans-serif;
  font-size: 13px;
}
.smartscreen p { color: #e3efff; margin: 6px 0; }
.ss-head { font-size: 20px; font-weight: 600; }
.ss-link { text-decoration: underline; font-weight: 600; outline: 2px dashed var(--gold); outline-offset: 2px; display: inline-block; }
.ss-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.ss-btns span { padding: 5px 14px; border: 1px solid #fff; }
.ss-run { outline: 2px dashed var(--gold); outline-offset: 2px; background: rgba(255,255,255,.12); }

/* Hỏi đáp */
.faq { margin-top: 40px; }
.faq details {
  margin-bottom: 14px;
  background: linear-gradient(180deg, #f3f1eb, #e6e2d9);
  border: 1px solid #fff;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px #9aaea9, 0 4px 12px rgba(15,35,33,.08);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 56px 14px 20px;
  font-weight: 700;
  font-size: 17px;
  position: relative;
  transition: background .15s ease;
}
.faq summary:hover { background: rgba(44,133,128,.08); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  /* núm thoi */
  content: "";
  position: absolute;
  right: 22px; top: 50%;
  width: 13px; height: 13px;
  border: 2px solid #dff3ee;
  background: linear-gradient(135deg, #52b5a9, var(--teal-2));
  box-shadow: 0 0 0 1px var(--teal-3);
  transform: translateY(-50%) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary {
  background: var(--cloud), linear-gradient(180deg, #3a9690, var(--teal-2));
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.faq details[open] summary::after { background: linear-gradient(135deg, #fff6d6, var(--gold)); border-color: #fff; transform: translateY(-50%) rotate(225deg); }
.faq details p { margin: 0; padding: 14px 20px 18px; color: var(--ink-2); }

/* Chân trang */
.footer {
  padding: 50px 0 34px;
  background: var(--cloud), linear-gradient(180deg, #17504c, #0b2826);
  border-top: 3px solid var(--gold);
  box-shadow: inset 0 3px 0 var(--teal-3);
  color: #b9d3cd;
  text-align: center;
}
.foot-brand { display: inline-flex; align-items: center; gap: 12px; font-size: 34px; color: var(--gold-2); }
.foot-contacts { display: flex; justify-content: center; gap: 22px; margin: 16px 0; }
.foot-contacts a { color: var(--gold-2); text-decoration: none; font: 500 17px/1.4 "Oswald", "Be Vietnam Pro", sans-serif; }
.disclaimer { max-width: 760px; margin: 0 auto 10px; font-size: 13px; color: #8fb0a9; }
.copy { margin: 0; font-size: 13px; color: #6f908a; }

/* Khung nổi bên phải */
.rail {
  position: fixed;
  right: 14px;
  top: 50%;
  z-index: 40;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 8px;
  background: var(--cloud), linear-gradient(180deg, #2f8a85, #175451);
  border: 2px solid #9fd2c7;
  border-radius: 8px;
  box-shadow: 0 0 0 2px var(--teal-3), 0 8px 24px rgba(0,0,0,.3);
}
.rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 64px;
  padding: 6px 0;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #eef8f5;
  text-decoration: none;
  font: 500 13px/1.3 "Oswald", "Be Vietnam Pro", sans-serif;
  transition: background .15s ease;
}
.rail-btn span { font-size: 18px; line-height: 1.3; }
.rail-btn svg { display: block; width: 20px; height: 20px; margin: 1px auto 2px; }
.rail-btn:hover { background: rgba(255,255,255,.14); }
.rail-btn.dl { background: linear-gradient(180deg, #fff8dd, #e9c568); border-color: #fff6d8; color: #3a2a0c; }
.rail-btn.buy { background: linear-gradient(180deg, #a9d6fa, #4a8fdc); border-color: #e2f1ff; color: #0f2547; }
.rail-btn.dl:hover, .rail-btn.buy:hover { filter: brightness(1.08); }

/* Hiện dần */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Màn hình nhỏ ---------- */
@media (max-width: 1100px) {
  .rail { display: none; }
}
@media (max-width: 960px) {
  .hero::before { background: linear-gradient(180deg, rgba(8, 26, 25, 0.82), rgba(8, 26, 25, 0.62) 55%, rgba(8, 26, 25, 0.75)); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { margin-left: 0; }
  .hero-points { display: inline-block; text-align: left; }
  .hero-cta { justify-content: center; }
  .hero-shot .frame { width: min(300px, 80%); }
  .classes { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .perks, .gallery { grid-template-columns: repeat(2, 1fr); }
  .prices, .buy-steps { grid-template-columns: repeat(2, 1fr); }
  .price.hot, .price.hot.reveal.in { transform: none; }
  .steps { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 820px) {
  .nav { background: var(--cloud), linear-gradient(180deg, var(--teal), var(--teal-2)); box-shadow: 0 2px 0 #0e3532; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: linear-gradient(180deg, var(--teal-2), var(--teal-3));
    box-shadow: 0 10px 20px rgba(0,0,0,.3);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav-links .btn { margin: 12px 0 0; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .section { padding: 64px 0; }
  .perks, .gallery, .prices, .buy-steps { grid-template-columns: 1fr; }
  .trial { flex-direction: column; text-align: center; }
  .gallery { max-width: 340px; margin: 0 auto; }
  .title span { padding: 9px 46px 10px 44px; }
  .title span::before { left: 12px; width: 24px; }
  .title span::after { right: 16px; }
  .guide li { padding-left: 20px; padding-top: 70px; }
  .contact { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg, .hero-clouds i, .hero-shot .frame { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
