/* =====================================================================
   Sky Gunny — landing page
   Màu theo giờ giống game: html[data-theme="morning|noon|evening|night"], html[data-tone="light|dark"]
   (script nhỏ trong <head> đặt sẵn trước khi vẽ). Mặc định = Chiều tối (hoàng hôn tím cam).
   ===================================================================== */
:root {
  color-scheme: dark;
  --font: 'Baloo 2', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: 16px;
  --radius: 22px;
  --radius-sm: 14px;
  --ink: #1d0f2e;                 /* viền đậm kiểu hoạt hình */

  --bg: #150c2e;
  --bg-2: #1d1140;
  --surface: rgba(255, 255, 255, .06);
  --surface-2: rgba(255, 255, 255, .1);
  --border: rgba(255, 210, 170, .18);
  --text: #fff4e6;
  --muted: #d8c8e6;
  --accent: #ffd36b;
  --accent-2: #ff8a5c;
  --accent-3: #9fe8ff;
  --good: #6ee7a0;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --play-bg: linear-gradient(180deg, #ffe08a 0%, #ffb347 45%, #ff7a5c 100%);
  --play-text: #2a0d1e;
  --play-edge: #9c3b1e;
  --head-bg: rgba(21, 12, 46, .78);
  --sky: radial-gradient(ellipse 70% 55% at 75% 110%, rgba(255, 122, 92, .55), transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(122, 47, 126, .5), transparent 75%),
    linear-gradient(180deg, #120b2e 0%, #24124a 45%, #4a1d55 78%, #7a2f55 100%);
  --sun: radial-gradient(circle, #fff3c4 0 30%, #ffb347 55%, rgba(255, 107, 107, 0) 72%);
  --cloud: rgba(255, 190, 200, .22);
  --isle-top: #5cbf6a;
  --isle-body: #5a2f2a;
  --stars: .55;
  --logo: linear-gradient(180deg, #fff3c4, #ffb347 55%, #ff6b6b);
  --title-shadow: 0 4px 0 rgba(40, 10, 40, .55);
}
html[data-theme="night"] {
  --bg: #070d22;
  --bg-2: #0d1736;
  --border: rgba(140, 180, 255, .2);
  --text: #e9f1ff;
  --muted: #b9c8e8;
  --accent: #ffd36b;
  --accent-2: #7cc4ff;
  --head-bg: rgba(7, 13, 34, .8);
  --sky: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(70, 100, 220, .35), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 115%, rgba(255, 211, 107, .14), transparent 70%),
    linear-gradient(180deg, #030816 0%, #08122e 55%, #142052 100%);
  --sun: radial-gradient(circle, #ffffff 0 34%, #dfe9ff 52%, rgba(160, 190, 255, 0) 72%);
  --cloud: rgba(150, 175, 255, .12);
  --isle-top: #3f8f62;
  --isle-body: #3a2540;
  --stars: 1;
  --logo: linear-gradient(180deg, #ffffff, #bcd7ff 50%, #7f9dff);
}
html[data-tone="light"] {
  color-scheme: light;
  --bg: #eaf5ff;
  --bg-2: #d9ecff;
  --surface: rgba(255, 255, 255, .78);
  --surface-2: #ffffff;
  --border: rgba(30, 90, 170, .16);
  --text: #12284a;
  --muted: #3b5276;
  --accent: #0d5fbd;
  --accent-2: #e2570a;
  --accent-3: #0b7fa8;
  --good: #11804a;
  --shadow: 0 16px 40px rgba(20, 70, 140, .16);
  --head-bg: rgba(234, 245, 255, .85);
  --sky: radial-gradient(ellipse 60% 45% at 15% 0%, rgba(255, 255, 255, .7), transparent 70%),
    linear-gradient(180deg, #5fb2ff 0%, #9fd2ff 50%, #e3f3ff 100%);
  --sun: radial-gradient(circle, #fffbe0 0 32%, #ffe58a 55%, rgba(255, 229, 138, 0) 72%);
  --cloud: rgba(255, 255, 255, .85);
  --isle-top: #6ccf5f;
  --isle-body: #8a5a36;
  --stars: 0;
  --logo: linear-gradient(180deg, #ff9a1a, #e2570a 55%, #b23a06); /* đậm hơn để đủ tương phản trên nền trời sáng */
  --title-shadow: 0 3px 0 rgba(255, 255, 255, .9);
}
html[data-theme="noon"] {
  --sky: radial-gradient(ellipse 45% 40% at 85% 0%, rgba(255, 236, 140, .85), transparent 70%),
    linear-gradient(180deg, #2fb0ff 0%, #8fdcff 55%, #fff4d6 100%);
  --accent: #b25000;
  --bg: #fff8ea;
  --bg-2: #fff0d2;
  --border: rgba(170, 100, 20, .18);
  --text: #2b1d05;
  --muted: #5c4720;
}

/* ---------------------------------------------------------------- nền tảng */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; min-width: 320px; overflow-x: hidden;
  font-family: var(--font); font-size: 17px; line-height: 1.55; color: var(--text);
  background: var(--bg);
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 800; letter-spacing: .2px; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 860px; }
.ico {
  width: 1.2em; height: 1.2em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px;
  background: var(--accent); color: #1a0f00; font-weight: 800; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- nút */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 8px 20px; border-radius: 16px;
  font-weight: 800; font-size: 17px; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 3px solid var(--ink); transition: transform .15s ease, box-shadow .15s ease, filter .15s;
}
.btn-play {
  color: var(--play-text); background: var(--play-bg);
  box-shadow: 0 5px 0 var(--play-edge), 0 10px 24px rgba(255, 122, 60, .35), inset 0 2px 0 rgba(255, 255, 255, .6);
}
.btn-play:hover { transform: translateY(-2px); filter: saturate(1.1) brightness(1.04); }
.btn-play:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--play-edge), 0 4px 10px rgba(255, 122, 60, .3); }
.btn-play .ico { width: 1.05em; height: 1.05em; }
.btn-ghost { color: var(--text); background: var(--surface); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn-lg { min-height: 58px; padding: 10px 28px; font-size: 21px; border-radius: 18px; }
.btn-sm { min-height: 40px; padding: 6px 14px; font-size: 16px; border-width: 2px; box-shadow: 0 3px 0 var(--play-edge); }

/* ---------------------------------------------------------------- header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--head-bg); border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
}
.head-row { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.brand span {
  display: flex; flex-direction: column; font-weight: 800; font-size: 21px; line-height: .9; letter-spacing: 1px;
  background: var(--logo); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand small { font-size: 11px; letter-spacing: 6px; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 2px; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 16px; color: var(--muted);
}
.site-nav a:hover { color: var(--text); background: var(--surface); }
.head-tools { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
}
.lang-switch > .ico { width: 18px; height: 18px; margin: 0 4px 0 6px; color: var(--muted); }
.lang-switch a {
  min-width: 40px; padding: 4px 8px; border-radius: 9px; text-align: center; text-decoration: none;
  font-weight: 800; font-size: 14px; color: var(--muted);
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { background: var(--accent); color: #1c1200; }
html[data-tone="light"] .lang-switch a[aria-current="true"] { color: #fff; }
.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer;
}
.nav-toggle .ico { width: 24px; height: 24px; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: 48px 0 36px; background: var(--sky); isolation: isolate; }
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sky .stars {
  position: absolute; inset: 0; opacity: var(--stars);
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent), radial-gradient(1px 1px at 120px 80px, #ffd9c4, transparent),
    radial-gradient(1.5px 1.5px at 200px 150px, #fff, transparent), radial-gradient(1px 1px at 80px 190px, #c5a6ff, transparent),
    radial-gradient(1px 1px at 260px 40px, #fff, transparent);
  background-size: 300px 220px;
}
/* mặt trời / mặt trăng: điện thoại thì nấp sau ảnh chụp (không đè lên tiêu đề), màn rộng thì ở cột ảnh */
.sky::after {
  content: ''; position: absolute; width: 150px; height: 150px; right: -36px; bottom: 34%;
  background: var(--sun); border-radius: 50%; opacity: var(--sun-a, 1);
}
html[data-theme="night"] { --sun-a: .55; }
@media (min-width: 900px) {
  .sky::after { width: 220px; height: 220px; right: 7%; top: 7%; bottom: auto; }
}
.cloud {
  position: absolute; height: 46px; border-radius: 40px; background: var(--cloud);
  box-shadow: 40px -18px 0 6px var(--cloud), 86px 0 0 -4px var(--cloud);
  animation: drift 50s linear infinite;
}
.cloud.c1 { width: 140px; left: 40%; top: 3%; opacity: .7; }
.cloud.c2 { width: 180px; left: 62%; top: 80%; animation-duration: 70s; animation-delay: -20s; }
.cloud.c3 { width: 110px; left: 8%; top: 92%; animation-duration: 60s; animation-delay: -40s; opacity: .6; }
@keyframes drift { from { transform: translateX(-40px); } 50% { transform: translateX(60px); } to { transform: translateX(-40px); } }
.isle {
  position: absolute; width: 200px; height: 64px; opacity: .45;
  background: linear-gradient(180deg, var(--isle-top) 0 22%, var(--isle-body) 22% 100%);
  clip-path: polygon(0 18%, 100% 10%, 92% 40%, 70% 70%, 55% 100%, 38% 72%, 18% 60%, 6% 38%);
  animation: bob 6s ease-in-out infinite;
}
.isle.i1 { left: -40px; bottom: 16%; }
.isle.i2 { right: -30px; top: 30%; width: 150px; height: 48px; animation-delay: -3s; opacity: .3; }
@keyframes bob { 50% { transform: translateY(-12px); } }

.hero-grid { display: grid; gap: 34px; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-size: 14px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--accent);
}
.kicker::before { content: ''; width: 22px; height: 4px; border-radius: 4px; background: currentColor; }
.hero h1 {
  font-size: clamp(38px, 9.5vw, 68px); line-height: 1.02; letter-spacing: .3px;
  text-shadow: var(--title-shadow);
}
.hero h1 span { display: block; }
.hero h1 .l1 {
  background: var(--logo); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 4px 0 rgba(40, 10, 40, .55));
}
html[data-tone="light"] .hero h1 .l1 { filter: drop-shadow(0 3px 0 rgba(255, 255, 255, .9)); }
.hero-lead { margin-top: 18px; max-width: 560px; font-size: 19px; color: var(--muted); font-weight: 500; }
html[data-tone="light"] .hero-lead { color: #20385e; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-weight: 700; font-size: 15px; }
.badges li { display: inline-flex; align-items: center; gap: 6px; }
.badges .ico { color: var(--good); width: 18px; height: 18px; stroke-width: 3; }
.hero-art { position: relative; padding: 0 0 14px; }
.hero-frame {
  position: relative; border-radius: 24px; padding: 8px; background: var(--ink);
  box-shadow: 0 0 0 3px rgba(255, 211, 107, .55), var(--shadow), 0 30px 80px rgba(255, 122, 92, .25);
  transform: rotate(-1.2deg);
}
.hero-frame .shot { border-radius: 17px; border: 0; }
.hero-crew { position: absolute; inset: 0; pointer-events: none; }
.hero-crew img { position: absolute; width: clamp(70px, 17vw, 132px); filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .45)); }
.hero-crew .crew-a { left: -12px; bottom: -14px; animation: bob 5s ease-in-out infinite; }
.hero-crew .crew-b { right: -10px; top: -26px; transform: scaleX(-1); animation: bobflip 5.5s ease-in-out infinite; animation-delay: -2s; }
@keyframes bobflip { 0%, 100% { transform: scaleX(-1); } 50% { transform: scaleX(-1) translateY(-10px); } }
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 34px;
}
.stats li {
  display: flex; align-items: baseline; gap: 8px; padding: 12px 16px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.stats b { font-size: 30px; line-height: 1; color: var(--accent); }
.stats span { font-weight: 700; color: var(--muted); }

/* ---------------------------------------------------------------- ảnh chụp màn hình (bấm để phóng to) */
.shot {
  position: relative; display: block; width: 100%; padding: 0; margin: 0; cursor: zoom-in;
  border-radius: var(--radius-sm); overflow: hidden; background: #0c0720;
  border: 3px solid var(--ink); box-shadow: var(--shadow);
}
.shot img { width: 100%; transition: transform .35s ease; }
.shot:hover img { transform: scale(1.025); }
.shot-zoom {
  position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; background: rgba(20, 10, 40, .72); color: #fff;
  opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s;
}
.shot:hover .shot-zoom, .shot:focus-visible .shot-zoom { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- khung chung */
.sec { padding: 64px 0; position: relative; }
.sec:nth-of-type(even) { background: var(--bg-2); }
.sec-head { max-width: 760px; margin-bottom: 30px; }
.sec-head h2 { font-size: clamp(30px, 6.4vw, 46px); text-shadow: var(--title-shadow); }
.sec-head .lead { margin-top: 12px; font-size: 18px; color: var(--muted); }
.card {
  padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
}
.card h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; margin-bottom: 8px; }
.card h3 .ico { color: var(--accent); width: 26px; height: 26px; }
.card p { color: var(--muted); }
.ticks { display: grid; gap: 8px; margin-top: 14px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ico { margin-top: 4px; width: 18px; height: 18px; color: var(--good); stroke-width: 3; }
.mini-h { margin: 18px 0 8px; font-size: 15px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); }
.money-note {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 14px;
  background: rgba(110, 231, 192, .1); border: 1px solid rgba(110, 231, 192, .35); color: var(--text); font-weight: 600;
}
.money-note .ico { color: #6ee7c0; margin-top: 3px; }
html[data-tone="light"] .money-note .ico { color: #0b8a63; }
.money-note.center { max-width: 640px; margin: 18px auto 0; }

/* ---------------------------------------------------------------- giới thiệu */
.tiles { display: grid; gap: 14px; }
.tile {
  padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: transform .2s ease, border-color .2s;
}
.tile:hover { transform: translateY(-4px); border-color: var(--accent); }
.tile-ico {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 14px; border-radius: 16px;
  background: linear-gradient(160deg, #ffe08a, #ff9a5a); color: var(--ink);
  border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink);
}
.tile-ico .ico { width: 28px; height: 28px; stroke-width: 2.4; }
@media (max-width: 559px) {
  .tile { display: grid; grid-template-columns: 54px 1fr; column-gap: 14px; align-items: start; padding: 18px; }
  .tile-ico { grid-row: span 2; margin: 0; }
}
.tile h3 { font-size: 21px; margin-bottom: 6px; }
.tile p { color: var(--muted); }

/* ---------------------------------------------------------------- cách chơi */
.steps { display: grid; gap: 14px; counter-reset: s; }
.step {
  position: relative; padding: 20px 18px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
}
.step-n {
  position: absolute; top: -12px; left: 16px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
  background: var(--accent); color: #1c1200; border: 3px solid var(--ink);
}
html[data-tone="light"] .step-n { color: #fff; }
.keys { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 52px; margin: 8px 0 12px; }
.keys em { font-style: normal; font-weight: 700; font-size: 14px; color: var(--muted); }
.keys em:empty { display: none; }
.keygroup { display: inline-flex; gap: 5px; }
.key {
  display: inline-grid; place-items: center; min-width: 44px; height: 46px; padding: 0 10px;
  border-radius: 11px; font-family: var(--font); font-weight: 800; font-size: 19px; color: #24163a;
  background: linear-gradient(180deg, #ffffff, #e9e2f5); border: 2px solid var(--ink);
  box-shadow: 0 5px 0 var(--ink), inset 0 -3px 0 rgba(36, 22, 58, .12);
}
.key-wide { min-width: 86px; font-size: 16px; letter-spacing: 1px; }
.keys-ico .ico { width: 46px; height: 46px; padding: 9px; border-radius: 14px; color: var(--ink); background: linear-gradient(160deg, var(--accent-3), var(--accent)); border: 2px solid var(--ink); box-shadow: 0 5px 0 var(--ink); }
.step h3 { font-size: 20px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 16px; }
.how-extra { display: grid; gap: 16px; margin-top: 22px; }
.touch-card { display: grid; gap: 18px; align-items: center; }
.touch-shots { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.shot-phone-land { border-radius: 18px; border-width: 4px; }
.shot-phone-port { width: 92px; border-radius: 16px; border-width: 4px; }
.hint-card { position: relative; overflow: hidden; }
.hint-card h3 { padding-right: 64px; }
.hint-art { position: absolute; right: -10px; top: -10px; width: 120px; height: 120px; opacity: .25; pointer-events: none; }
.hint-art i { position: absolute; border: 3px dashed var(--accent); border-radius: 50%; inset: 0; }
.hint-art i:nth-child(2) { inset: 22px; }
.hint-art i:nth-child(3) { inset: 46px; background: var(--accent); border: 0; }

/* ---------------------------------------------------------------- chế độ chơi */
.mode-list { display: grid; gap: 22px; }
.mode {
  display: grid; gap: 20px; align-items: center; padding: 18px; border-radius: 26px;
  background: var(--surface); border: 1px solid var(--border);
}
.mode-copy h3 { font-size: clamp(25px, 5vw, 32px); margin: 8px 0 8px; }
.mode-copy > p { color: var(--muted); }
.tag {
  display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  background: var(--accent); color: #1c1200;
}
html[data-tone="light"] .tag { color: #fff; }
.mode-pair { display: grid; gap: 22px; }
.mode.mode-mini { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 22px; }
.mode-mini h3 { font-size: clamp(25px, 5vw, 32px); margin: 8px 0 8px; }
.mode-mini p { color: var(--muted); }
.vs {
  display: flex; align-items: center; justify-content: center; gap: 4px; align-self: stretch;
  margin-top: auto; padding-top: 18px;
}
.vs img { width: clamp(96px, 30%, 150px); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); }
.vs picture { display: contents; }
.vs picture:last-child img { transform: scaleX(-1); }
.vs b { flex: none; }
.vs b {
  font-size: 30px; color: var(--accent-2); text-shadow: 0 3px 0 var(--ink);
  -webkit-text-stroke: 1px var(--ink);
}
/* hai ảnh xếp chồng kiểu ảnh dán: ảnh chính + ảnh phụ nhỏ hơn đè góc dưới phải */
.duo { position: relative; padding-bottom: 22%; }
.duo > .shot:first-child { width: 88%; }
.duo > .shot:last-child { position: absolute; right: 0; bottom: 0; width: 56%; transform: rotate(1.5deg); box-shadow: 0 14px 40px rgba(0, 0, 0, .55); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chips li { padding: 3px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--surface-2); border: 1px solid var(--border); }

/* ---------------------------------------------------------------- nhân vật */
.hero-cards { display: grid; gap: 16px; }
.hero-card {
  position: relative; overflow: hidden; padding: 18px; border-radius: 24px; border: 2px solid var(--ink);
  background: radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--main) 45%, transparent), transparent 60%), var(--surface);
  box-shadow: 0 6px 0 var(--ink);
}
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .hero-card { background: var(--surface); }
}
.hc-top { display: flex; gap: 14px; align-items: center; }
.hc-top img { width: 96px; flex: none; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .35)); }
.hc-top h3 { font-size: 26px; color: var(--txt); text-shadow: 0 2px 0 var(--ink); }
html[data-tone="light"] .hc-top h3 { color: var(--dark); text-shadow: none; }
.hc-top p { color: var(--muted); font-size: 15px; }
.kit { display: grid; gap: 8px; margin-top: 14px; }
.kit li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: rgba(0, 0, 0, .18); }
html[data-tone="light"] .kit li { background: rgba(255, 255, 255, .7); }
.kit b { font-size: 17px; }
.kit small { display: block; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-3); }
.kit small.k1 { color: #c5a6ff; }
.kit small.k2 { color: #ffb347; }
html[data-tone="light"] .kit small { color: #0b6f95; }
html[data-tone="light"] .kit small.k1 { color: #6b45c9; }
html[data-tone="light"] .kit small.k2 { color: #b25000; }
.kit p { font-size: 14.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.wico {
  flex: none; width: 40px; height: 40px; border-radius: 12px; margin-top: 2px;
  background: url(/img/landing/sprite-weapons.webp) no-repeat rgba(255, 255, 255, .08);
  background-size: 120px 240px; background-position: calc(var(--c) * -40px) calc(var(--r) * -40px);
  border: 1px solid var(--border);
}
.wide-shot { margin-top: 26px; }

/* ---------------------------------------------------------------- boss + cuộn ngang */
.scroller { position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.track {
  /* nằm gọn trong khung nội dung (.wrap) như các khối khác; ẩn thanh cuộn, điều hướng bằng nút + chấm */
  display: grid; grid-auto-flow: column; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; padding: 6px 2px 14px; scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: start; }
.scroll-btn {
  position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; margin-top: -40px; border-radius: 50%;
  display: none; place-items: center; cursor: pointer;
  background: var(--accent); color: #1c1200; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink);
  transition: opacity .2s;
}
.scroll-btn .ico { width: 24px; height: 24px; stroke-width: 3; }
.scroll-btn.prev { left: 2px; }
.scroll-btn.next { right: 2px; }
.scroll-btn[disabled] { opacity: 0; pointer-events: none; }
.scroll-dots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.scroll-dots[hidden] { display: none; }
.scroll-dots button {
  width: 10px; height: 10px; padding: 0; border-radius: 999px; cursor: pointer;
  background: var(--border); border: 0; transition: width .25s, background .25s;
}
.scroll-dots button[aria-current="true"] { width: 28px; background: var(--accent-2); }
.boss-track { grid-auto-columns: min(80vw, 330px); }
.boss-card {
  display: flex; flex-direction: column; padding: 16px 18px 18px; border-radius: 24px; border: 2px solid var(--ink);
  background: radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--glow) 35%, transparent), transparent 62%),
    linear-gradient(180deg, color-mix(in srgb, var(--main) 30%, #160b2c), #160b2c);
  color: #fff4e6; box-shadow: 0 6px 0 var(--ink);
}
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .boss-card { background: #241338; }
}
.boss-art { height: 200px; display: grid; place-items: center; }
.boss-art img { max-height: 196px; width: auto; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .5)); }
.boss-card h3 { font-size: 25px; color: var(--txt); margin-top: 6px; text-shadow: 0 2px 0 var(--ink); }
.boss-title { font-weight: 700; font-size: 14px; color: #e9d9c8; opacity: .85; }
.boss-desc { margin-top: 8px; font-size: 15px; color: #e5d6ef; line-height: 1.45; }
.boss-kit { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.boss-kit span { padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.passive { margin-top: auto; padding-top: 12px; font-size: 14px; color: #e5d6ef; }
.passive b { color: var(--txt); }

/* ---------------------------------------------------------------- bản đồ */
.map-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.map-tile { position: relative; margin: 0; overflow: hidden; border-radius: 20px; border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink); background: #0c0720; }
.map-tile img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease; }
.map-tile:hover img { transform: scale(1.05); }
.map-tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; color: #fff;
  background: linear-gradient(0deg, rgba(10, 5, 25, .85), transparent);
}
.map-tile b { display: block; font-size: 20px; line-height: 1.1; }
.map-tile span { font-size: 14px; opacity: .85; line-height: 1.3; }

/* ---------------------------------------------------------------- trang bị */
.gear-grid { display: grid; gap: 28px; align-items: center; }
.slots { display: grid; gap: 10px; }
.slots li { display: flex; gap: 12px; align-items: center; }
.slots b { display: block; font-size: 18px; }
.slots span { color: var(--muted); font-size: 15px; }
.item-ico {
  flex: none; width: 52px; height: 52px; border-radius: 14px;
  background: url(/img/landing/sprite-items.webp) no-repeat; background-size: 260px 208px;
  background-position: calc(var(--c) * -52px) calc(var(--r) * -52px);
}
.tiers { display: flex; flex-wrap: wrap; gap: 8px; }
.tiers li {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px;
  font-weight: 800; font-size: 15px; color: var(--tc); background: rgba(0, 0, 0, .2); border: 2px solid var(--tc);
}
html[data-tone="light"] .tiers li { background: rgba(20, 40, 80, .75); }
.tiers .item-ico { width: 32px; height: 32px; border-radius: 50%; background-size: 160px 128px; background-position: calc(var(--c) * -32px) 0; }
.gear-notes { display: grid; gap: 8px; margin-top: 18px; color: var(--muted); }
.gear-notes b { color: var(--text); }

/* ---------------------------------------------------------------- hạng */
.rank-ladder { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rank-ladder li {
  display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 8px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border);
}
.rank-ico {
  width: 64px; height: 64px; background: url(/img/landing/sprite-ranks.webp) no-repeat; background-size: 640px 64px;
  background-position: calc(var(--i) * -64px) 0; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3));
}
.rank-ladder b { margin-top: 6px; font-size: 17px; color: var(--rc); line-height: 1.15; }
html[data-tone="light"] .rank-ladder b { color: var(--text); }
.rank-ladder small { font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- trải nghiệm */
.extras-grid { display: grid; gap: 16px; }
.theme-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.th { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 8px 10px; border-radius: 14px; color: #fff; border: 2px solid var(--ink); }
.th i { grid-row: span 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.th b { font-size: 15px; line-height: 1.1; }
.th small { font-size: 12px; opacity: .9; }
.th0 { background: linear-gradient(160deg, #74bdff, #eaf6ff); color: #13294b; }
.th1 { background: linear-gradient(160deg, #36b6ff, #fff6d8); color: #3d2600; }
.th2 { background: linear-gradient(160deg, #7a2f7e, #ff7a5c); }
.th3 { background: linear-gradient(160deg, #030816, #142052); }

/* ---------------------------------------------------------------- thư viện ảnh */
.gallery-track { grid-auto-columns: 86%; }
/* mọi ảnh cùng tỉ lệ 16:9 để hàng ảnh thẳng đều (bấm để xem ảnh gốc đầy đủ) */
.gallery-track .shot { aspect-ratio: 16 / 9; }
.gallery-track .shot img { height: 100%; object-fit: cover; }
.gallery-track .shot.fit-contain img { object-fit: contain; }
.gallery-track figure { margin: 0; }

/* ---------------------------------------------------------------- ví USDT */
.money-grid { display: grid; gap: 16px; }
.money-card { position: relative; }
.money-card h3 .ico { color: #6ee7c0; }
html[data-tone="light"] .money-card h3 .ico { color: #0b8a63; }
.num-steps { counter-reset: n; display: grid; gap: 10px; }
.num-steps li { counter-increment: n; position: relative; padding-left: 40px; color: var(--muted); }
.num-steps li::before {
  content: counter(n); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 14px; background: #6ee7c0; color: #08261c;
}
.nets { display: grid; gap: 8px; }
.nets li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: rgba(0, 0, 0, .18); }
html[data-tone="light"] .nets li { background: rgba(255, 255, 255, .8); }
.nets b { flex: 1; }
.nets small { color: var(--muted); font-weight: 700; }
.net { min-width: 64px; padding: 2px 8px; border-radius: 8px; text-align: center; font-size: 13px; font-weight: 800; color: #fff; }
.net-bsc { background: #c99400; }
.net-tron { background: #d6303a; }
.net-polygon { background: #7b3fe4; }
.fine { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.money-side { display: grid; gap: 10px; margin-top: 16px; }
.money-side p { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.money-side .ico { color: var(--accent); margin-top: 3px; }
.money-side b { color: var(--text); }

/* ---------------------------------------------------------------- hỏi đáp */
.faq-list { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.faq details[open] { border-color: var(--accent); }
.faq summary {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none;
  font-weight: 800; font-size: 18px; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { flex: 1; }
.faq summary .ico { width: 22px; height: 22px; color: var(--accent); transition: transform .25s ease; }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq-a { padding: 0 18px 18px; color: var(--muted); }

/* ---------------------------------------------------------------- kêu gọi + chân trang */
.cta-band { padding: 56px 0; background: var(--sky); position: relative; overflow: hidden; }
.cta-inner {
  display: grid; gap: 18px; justify-items: center; text-align: center; padding: 30px 20px; border-radius: 30px;
  background: rgba(15, 8, 35, .55); border: 2px solid rgba(255, 211, 107, .45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff4e6;
}
html[data-tone="light"] .cta-inner { background: rgba(255, 255, 255, .7); color: var(--text); border-color: rgba(13, 95, 189, .3); }
.cta-inner h2 { font-size: clamp(30px, 7vw, 44px); }
.cta-inner p { margin-top: 6px; font-size: 18px; opacity: .9; }
.cta-crew { display: flex; justify-content: center; }
.cta-crew img { width: 84px; margin: 0 -8px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .4)); }
.site-foot { padding: 40px 0 28px; background: var(--bg); border-top: 1px solid var(--border); }
.foot-row { display: grid; gap: 22px; }
.foot-brand p { margin-top: 8px; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { font-weight: 700; text-decoration: none; color: var(--muted); }
.foot-links a:hover { color: var(--text); text-decoration: underline; }
.foot-lang { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-weight: 700; }
.foot-bottom { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); }

.sticky-play {
  position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 40;
  transform: translate(-50%, 140%); transition: transform .3s ease; min-width: 200px;
}
.sticky-play.show { transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- lightbox */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 56px 12px 24px; border: 0;
  background: rgba(8, 4, 20, .97); color: #fff;
}
.lightbox::backdrop { background: rgba(8, 4, 20, .7); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; gap: 10px; justify-items: center; max-width: min(1600px, 100%); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); width: auto; border-radius: 14px; border: 3px solid var(--ink); }
.lightbox figcaption { max-width: 900px; text-align: center; font-size: 15px; color: #e6dcf2; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .12); border: 2px solid rgba(255, 255, 255, .3); color: #fff;
}
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-btn .ico { width: 24px; height: 24px; stroke-width: 2.6; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 10px; top: 50%; margin-top: -24px; }
.lb-next { right: 10px; top: 50%; margin-top: -24px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .head-lang { display: none; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; display: none; padding: 10px var(--gutter) 16px;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 18px 30px rgba(0, 0, 0, .35);
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 12px; font-size: 18px; }
  .site-nav .mobile-lang { display: flex; margin-top: 8px; }
}
@media (max-width: 400px) {
  .head-tools .btn-sm span { display: none; }
  .head-tools .btn-sm { padding: 6px 10px; }
  .brand span { font-size: 18px; }
  .hero-cta .btn-lg { width: 100%; }
}
@media (min-width: 560px) {
  .tiles, .steps { grid-template-columns: repeat(2, 1fr); }
  .map-grid { grid-template-columns: repeat(2, 1fr); }
  .rank-ladder { grid-template-columns: repeat(3, 1fr); }
  .theme-row { grid-template-columns: repeat(4, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .shot-phone-port { width: 120px; }
}
@media (min-width: 760px) {
  :root { --gutter: 24px; }
  .sec { padding: 84px 0; }
  .hero-cards { grid-template-columns: repeat(2, 1fr); }
  .how-extra { grid-template-columns: 1.4fr 1fr; }
  .money-grid { grid-template-columns: 1fr 1fr; }
  .money-grid.single { grid-template-columns: 1fr; max-width: 720px; }
  .rank-ladder { grid-template-columns: repeat(5, 1fr); }
  .extras-grid { grid-template-columns: repeat(3, 1fr); }
  .extras-grid .theme-card { grid-column: span 3; }
  .extras-shot { grid-column: span 3; }
  .scroll-btn { display: grid; }
  .gallery-track { grid-auto-columns: calc((100% - 16px) / 2); }
  .foot-row { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
  .cta-inner { grid-template-columns: auto 1fr auto; text-align: left; justify-items: start; padding: 26px 34px; }
  .mode-pair { grid-template-columns: 1.6fr 1fr; align-items: stretch; }
  .mode-pair .mode:first-child { grid-template-columns: 1fr; }
}
@media (min-width: 900px) {
  .hero { padding: 64px 0 44px; }
  .hero-grid { grid-template-columns: 1fr 1.12fr; gap: 48px; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .map-grid { grid-template-columns: repeat(3, 1fr); }
  .mode { grid-template-columns: 1.15fr 1fr; padding: 22px; }
  .mode.flip .mode-media { order: 2; }
  .mode.no-media { grid-template-columns: 1fr; }
  .gear-grid { grid-template-columns: 1fr 1.1fr; }
  .hero-cards { grid-template-columns: repeat(3, 1fr); }
  .extras-grid { grid-template-columns: 1.25fr 1fr; }
  .extras-grid .theme-card { grid-column: 1; grid-row: span 2; }
  .extras-shot { grid-column: span 2; max-width: 900px; justify-self: center; width: 100%; }
  .site-nav .mobile-lang { display: none; }
}
@media (min-width: 1100px) {
  .hero h1 { font-size: 72px; }
  /* màn rộng: 5 boss xếp lưới canh giữa (3 + 2), không cần cuộn */
  .boss-track {
    grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr;
    gap: 20px; overflow: visible; padding-bottom: 6px;
  }
  .boss-track > .boss-card { grid-column: span 2; }
  /* hàng cuối thiếu thẻ thì dồn vào giữa */
  .boss-track > .boss-card:nth-child(3n+1):nth-last-child(2) { grid-column: 2 / span 2; }
  .boss-track > .boss-card:nth-child(3n+1):last-child { grid-column: 3 / span 2; }
}
@media (min-width: 1340px) {
  /* đủ chỗ: đặt nút mũi tên ra ngoài mép khung, không đè lên ảnh */
  .scroll-btn.prev { left: -40px; }
  .scroll-btn.next { right: -40px; }
}

/* ---------------------------------------------------------------- chuyển động */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
