/* Bát Hoang Lục homepage (index.html), loaded after site.css. Every class here starts with lp- or sits under body.landing,
   so the other pages that share site.css do not change. Motion (embers, parallax, reveals, the phone bar): assets/js/landing.js.
   prefers-reduced-motion turns every animation off (bottom of this file). */

body.landing {
  --gold-1: #fff3c8;
  --gold-2: #f6d27a;
  --gold-3: #d9a441;
  --gold-4: #9c6a1e;
  --px-clip: polygon(0 8px, 4px 8px, 4px 4px, 8px 4px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 4px, calc(100% - 4px) 4px,
    calc(100% - 4px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 4px),
    calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0 calc(100% - 8px));
  background: var(--ink);
  overflow-x: hidden;
  overflow-x: clip;
}

/* ---------- the two big buttons (gold Chơi ngay, jade Tải APK): pixel corners, a breathing glow, a light sweep ---------- */
.lp-cta { --glow: rgba(255, 196, 80, 0.9); --rim: #fff1bf; --face: linear-gradient(180deg, #ffe7a0 0%, #f4c55c 47%, #d7962f 53%, #b97a22 100%);
  --ink-c: #2b1704; position: relative; isolation: isolate; display: inline-flex; text-decoration: none; color: var(--ink-c);
  filter: drop-shadow(0 5px 0 rgba(0, 0, 0, 0.55)); transition: transform 0.18s ease; -webkit-tap-highlight-color: transparent; }
.lp-cta-apk { --glow: rgba(80, 230, 160, 0.8); --rim: #d9ffee; --face: linear-gradient(180deg, #a6f5cf 0%, #4fcf96 47%, #2ea873 53%, #1f8257 100%);
  --ink-c: #03170e; }
.lp-cta::before { content: ''; position: absolute; inset: -16px -22px; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), transparent); opacity: 0.5; animation: lp-glow 2.6s ease-in-out infinite; }
.lp-cta-apk::before { animation-delay: -1.3s; }
/* 24/11: the iPhone button, pale silver-blue (29/11: App Store, through the guide in tai-app.html) */
.lp-cta-ios { --glow: rgba(150, 200, 255, 0.75); --rim: #eef6ff; --face: linear-gradient(180deg, #e6f1ff 0%, #a9c9ee 47%, #7fa5d4 53%, #5d82b3 100%);
  --ink-c: #08162a; }
.lp-cta-ios::before { animation-delay: -0.7s; }
.lp-cta-ios .lp-cta-face::after { animation-delay: 1.6s; }
.lp-cta-face { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 14px; min-height: 74px;
  padding: 10px 34px 10px 26px; overflow: hidden; clip-path: var(--px-clip); background: var(--rim); }
.lp-cta-face::before { content: ''; position: absolute; inset: 3px; z-index: -2; clip-path: var(--px-clip); background: var(--face);
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.5), inset 0 -6px 0 rgba(0, 0, 0, 0.22); }
.lp-cta-face::after { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent); transform: translateX(0) skewX(-20deg);
  animation: lp-shine 3.8s ease-in-out infinite 0.6s; }
.lp-cta-apk .lp-cta-face::after { animation-delay: 2.5s; }
.lp-cta-ico { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.45)); }
.lp-cta-txt { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.lp-cta-txt b { font: 700 23px/1.1 var(--sans); letter-spacing: 0.01em; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45); white-space: nowrap; }
.lp-cta-txt small { margin-top: 3px; font: 600 12.5px/1.25 var(--sans); opacity: 0.8; white-space: nowrap; }
.lp-cta:hover { transform: translateY(-3px); color: var(--ink-c); }
.lp-cta:hover .lp-cta-face { filter: brightness(1.08) saturate(1.1); }
.lp-cta:hover::before { animation-duration: 1.1s; }
.lp-cta:active { transform: translateY(1px); }
.lp-cta:focus-visible { outline: none; }
.lp-cta:focus-visible .lp-cta-face { filter: brightness(1.15); }
.lp-cta:focus-visible::after { content: ''; position: absolute; inset: -6px; border: 3px solid #fff; pointer-events: none; }
/* header size */
.lp-cta-sm { filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.55)); }
.lp-cta-sm::before { inset: -8px -10px; opacity: 0.35; }
.lp-cta-sm .lp-cta-face { min-height: 44px; padding: 6px 20px; }
.lp-cta-sm .lp-cta-txt b { font-size: 15px; }

@keyframes lp-glow { 0%, 100% { opacity: 0.35; transform: scale(0.94); } 50% { opacity: 0.85; transform: scale(1.06); } }
@keyframes lp-shine { 0%, 55% { transform: translateX(0) skewX(-20deg); } 85%, 100% { transform: translateX(560%) skewX(-20deg); } }

/* ---------- hero ---------- */
.lp-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 760px;
  min-height: clamp(640px, calc(100svh - 68px), 980px); background: #070912; border-bottom: 1px solid #23272e; }
.lp-hero-bg { position: absolute; left: -3%; right: -3%; top: -6%; bottom: -14%; will-change: transform; }
.lp-hero-bg picture, .lp-hero-bg img { display: block; width: 100%; height: 100%; }
.lp-hero-bg img { object-fit: cover; object-position: center 40%; animation: lp-breathe 28s ease-in-out infinite alternate; }
@keyframes lp-breathe { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.lp-embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.lp-hero-veil { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 44%, rgba(7, 9, 18, 0.12) 0%, rgba(7, 9, 18, 0.5) 58%, rgba(7, 9, 18, 0.9) 100%),
    linear-gradient(180deg, rgba(11, 12, 15, 0.55) 0%, rgba(11, 12, 15, 0) 24%, rgba(11, 12, 15, 0) 68%, var(--ink) 100%); }
/* pixel clouds (assets/img/landing/may.svg), the inner layer drifts, the outer one takes the parallax */
.lp-clouds { position: absolute; left: 0; right: 0; overflow: hidden; pointer-events: none; will-change: transform; }
.lp-clouds::before { content: ''; position: absolute; top: 0; left: 0; height: 100%; width: calc(100% + 1200px);
  background: url('/assets/img/landing/may.svg') repeat-x 0 0 / 1200px 100%; animation: lp-drift 150s linear infinite; }
.lp-clouds-back { top: 6%; height: 200px; opacity: 0.14; }
.lp-clouds-front { bottom: -40px; height: 220px; opacity: 0.07; }
.lp-clouds-front::before { animation-duration: 95s; animation-direction: reverse; background-position: 400px 0; }
@keyframes lp-drift { to { transform: translateX(-1200px); } }
/* pixel sparkles (landing.js puts a few in the hero) */
.lp-spark { position: absolute; width: 11px; height: 11px; pointer-events: none; opacity: 0;
  background: linear-gradient(var(--c, #fff3c8), var(--c, #fff3c8)) center / 3px 100% no-repeat,
    linear-gradient(var(--c, #fff3c8), var(--c, #fff3c8)) center / 100% 3px no-repeat;
  animation: lp-twinkle var(--t, 3.2s) ease-in-out infinite var(--d, 0s); }
@keyframes lp-twinkle { 0%, 100% { opacity: 0; transform: scale(0.3); } 45% { opacity: 1; transform: scale(1); } 60% { opacity: 0.9; transform: scale(0.8); } }

.lp-hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1120px; padding: 56px 24px 88px; display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 22px; }
.lp-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; background: rgba(10, 12, 18, 0.74);
  border: 1px solid rgba(227, 192, 107, 0.55); color: #f3e6c0; font-size: 14px; font-weight: 500; text-decoration: none;
  box-shadow: inset 0 0 0 1px #0b0c0f; }
.lp-chip:hover { color: #fff; border-color: var(--gold-2); }
.lp-chip b { color: #1c1204; background: var(--gold-2); padding: 2px 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.lp-chip-dot { position: relative; width: 8px; height: 8px; background: #ff7b5c; flex: none; }
.lp-chip-dot::after { content: ''; position: absolute; inset: -4px; border: 2px solid #ff7b5c; animation: lp-ping 1.8s ease-out infinite; }
@keyframes lp-ping { 0% { opacity: 1; transform: scale(0.6); } 100% { opacity: 0; transform: scale(1.8); } }

.lp-logo { position: relative; margin: 0; width: min(820px, 92vw); animation: lp-float 6s ease-in-out infinite; }
.lp-logo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.55)) drop-shadow(0 0 30px rgba(80, 200, 140, 0.22)); }
.lp-logo-shine { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay;
  -webkit-mask: url('/assets/img/landing/logo.webp') center / 100% 100% no-repeat; mask: url('/assets/img/landing/logo.webp') center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.95) 50%, transparent 58%) no-repeat;
  background-size: 260% 100%; background-position: 160% 0; animation: lp-logo-shine 6s ease-in-out infinite 1.4s; }
@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes lp-logo-shine { 0%, 62% { background-position: 160% 0; } 92%, 100% { background-position: -60% 0; } }

.lp-pitch { margin: 0; max-width: 700px; font-size: clamp(17px, 2.1vw, 21px); line-height: 1.6; color: #ebe5d4; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.7); }
.lp-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 26px; margin-top: 6px; }
.lp-hero-note { margin: 0; font-size: 14px; color: #bcc5bf; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7); }
.lp-hero-note a { color: var(--gold-2); }
.lp-hero-note a:hover { color: var(--gold-1); }

/* Open Beta (29/11): the opening time and the countdown under the logo (index.html #open-beta and the script under it). The
   countdown and the "đã mở" block share one grid cell and only their visibility changes, so the panel keeps its size. */
.lp-ob { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 640px; max-width: 100%; padding: 16px 22px 12px;
  background: rgba(9, 10, 14, 0.86); border: 1px solid var(--gold-4);
  box-shadow: inset 0 0 0 1px #0b0c0f, inset 0 0 0 3px rgba(217, 164, 65, 0.4), 0 6px 0 rgba(0, 0, 0, 0.45), 0 0 34px rgba(227, 192, 107, 0.18); }
.lp-ob-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 26px; }
.lp-ob-head { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 210px; min-height: 78px; text-align: left; }
.lp-ob-tag { margin-bottom: 3px; padding: 3px 9px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  white-space: nowrap; color: #fbe9e4; background: #b23a31; border: 2px solid #7d221c; box-shadow: inset 0 0 0 1px #e0857b; }
.lp-ob-time { min-height: 30px; font: 700 25px/1.2 var(--serif); color: var(--gold-1); white-space: nowrap; }
.lp-ob-date { min-height: 20px; font-size: 14.5px; line-height: 1.35; color: var(--text); white-space: nowrap; }
.lp-ob-date::after { content: ' · GMT+7'; color: #a9b3ac; }
.lp-ob-body { display: grid; grid-template-columns: 356px; align-items: center; justify-items: center; }
.lp-ob-count, .lp-ob-open { grid-area: 1 / 1; }
.lp-ob-count { display: grid; width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; contain: layout style; }
.lp-ob-box { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 2px 7px; background: #14120b; border: 1px solid #8a7440; }
.lp-ob-box b { font: 700 34px/1.15 var(--serif); color: var(--gold-2); font-variant-numeric: tabular-nums; }
.lp-ob-box small { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #a9b3ac; }
.lp-ob-open { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 14px; visibility: hidden; }
.lp-ob-open > b { font: 700 22px/1.25 var(--serif); color: var(--gold-1); white-space: nowrap; text-shadow: 0 0 16px rgba(246, 210, 122, 0.55); }
.lp-ob-open .lp-cta-face { gap: 8px; min-height: 52px; padding: 8px 14px; }
.lp-ob-open .lp-cta-ico { width: 20px; height: 20px; }
.lp-ob-open .lp-cta-txt b { font-size: 17px; }
.lp-ob.is-open .lp-ob-count { visibility: hidden; }
.lp-ob.is-open .lp-ob-open { visibility: visible; }
.lp-ob:not(.is-open) .lp-ob-open .lp-cta::before, .lp-ob:not(.is-open) .lp-ob-open .lp-cta-face::after { animation: none; }  /* nothing runs unseen */
.lp-ob-note { align-self: stretch; margin: 0; padding-top: 9px; border-top: 1px solid var(--line-2); font-size: 13.5px; line-height: 1.5; color: var(--text-2); }

.lp-facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(9, 10, 14, 0.74); border: 1px solid #2d3139; box-shadow: inset 0 0 0 1px #0b0c0f, inset 0 0 0 3px rgba(156, 106, 30, 0.35); }
.lp-facts li { padding: 12px 24px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid #2d3139; }
.lp-facts li:last-child { border-right: 0; }
.lp-facts b { font: 700 28px/1.2 var(--serif); color: var(--gold-2); font-variant-numeric: tabular-nums; }
.lp-facts span { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #a9b3ac; }

.lp-scroll { position: absolute; z-index: 2; left: 50%; bottom: 18px; width: 40px; height: 40px; margin-left: -20px; display: flex; align-items: center; justify-content: center; }
.lp-scroll span { width: 14px; height: 14px; border-right: 4px solid var(--gold-2); border-bottom: 4px solid var(--gold-2); transform: rotate(45deg);
  animation: lp-bounce 1.8s ease-in-out infinite; }
@keyframes lp-bounce { 0%, 100% { transform: translateY(-4px) rotate(45deg); opacity: 0.6; } 50% { transform: translateY(4px) rotate(45deg); opacity: 1; } }

/* ---------- sections ---------- */
.lp-sec { padding: 88px 24px 8px; }
.lp-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.lp-head.center { align-items: center; text-align: center; }
.lp-head p { margin: 0; max-width: 700px; color: #a9b3ac; font-size: 16px; line-height: 1.65; }
.lp-h2 { margin: 0; font: 700 clamp(28px, 4vw, 42px)/1.2 var(--serif); color: var(--title); }
.lp-kicker { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-2); }
.lp-kicker::before { content: ''; width: 16px; height: 4px; background: var(--gold-3); flex: none; }
.lp-new { white-space: nowrap; padding: 3px 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; color: #fbe9e4; background: #b23a31;
  border: 2px solid #7d221c; box-shadow: inset 0 0 0 1px #e0857b; }
.lp-row { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-btn-gold { border-color: var(--gold-3); color: var(--gold-1); }
.lp-btn-gold:hover { border-color: var(--gold-2); color: #fff; }
.lp-more { margin: 32px 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; color: var(--text-2); font-size: 16px; text-align: center; }

/* gift codes: three cards in a row on a wide screen */
.lp-gift { padding-top: 48px; }
.lp-gift .promo { max-width: none; padding: 20px 22px 18px; align-items: stretch;
  background: linear-gradient(180deg, rgba(40, 28, 10, 0.55), rgba(11, 12, 15, 0.92));
  box-shadow: inset 0 0 0 1px var(--ink), inset 0 0 0 3px rgba(217, 164, 65, 0.45); }
.lp-gift .promo-tag { align-self: center; }
.lp-gift .promo-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lp-gift .promo-item { grid-column: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px;
  border: 1px solid var(--line-2); background: rgba(14, 16, 20, 0.9); transition: border-color 0.2s, transform 0.2s; }
.lp-gift .promo-item:first-child { padding-top: 16px; border-top: 1px solid var(--line-2); }
.lp-gift .promo-item:hover { border-color: var(--gold-3); transform: translateY(-2px); }
.lp-gift .promo-text { flex: 1; font-size: 14.5px; }
.lp-gift .promo-copy { align-self: stretch; }
.lp-gift .promo-how { text-align: center; }

/* Nguyên Anh: text beside the seven islands */
.lp-na { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.lp-na-text { display: flex; flex-direction: column; gap: 18px; }
.lp-na-text p { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.7; }
.lp-na-text b { color: var(--title); font-weight: 600; }
.lp-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lp-ticks li { position: relative; padding-left: 26px; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.lp-ticks li::before { content: ''; position: absolute; left: 2px; top: 0.5em; width: 11px; height: 11px; background: var(--gold-2);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.lp-isles { position: relative; margin: 0; aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid #2c3139; border-radius: 6px;
  background: radial-gradient(ellipse 30% 30% at 53% 47%, rgba(255, 226, 150, 0.35), transparent 70%),
    linear-gradient(180deg, #13214a 0%, #26427e 50%, #4b6fae 100%);
  box-shadow: 0 0 0 1px #0b0c0f, 0 24px 60px rgba(0, 0, 0, 0.5); }
.lp-isles-sky { position: absolute; inset: 0; opacity: 0.22;
  background: url('/assets/img/landing/may.svg') repeat 0 0 / 900px 150px; animation: lp-sky 120s linear infinite; }
@keyframes lp-sky { to { background-position: -900px 0; } }
.lp-isle { position: absolute; height: auto; animation: lp-bob 7s ease-in-out infinite; filter: drop-shadow(0 12px 10px rgba(0, 0, 0, 0.35)); transition: filter 0.3s; }
.lp-isle:hover { filter: drop-shadow(0 12px 10px rgba(0, 0, 0, 0.35)) brightness(1.15); }
.lp-isle.i41 { left: 1%; top: 0; width: 32%; animation-delay: -1s; }
.lp-isle.i42 { left: 35%; top: 0; width: 30%; animation-delay: -3.2s; }
.lp-isle.i43 { left: 67%; top: 2%; width: 32%; animation-delay: -5.1s; }
.lp-isle.i40 { left: 1%; top: 33%; width: 38%; animation-delay: -2.2s; animation-duration: 9s; }
.lp-isle.i46 { left: 72%; top: 38%; width: 27%; animation-delay: -4.4s; }
.lp-isle.i45 { left: 15%; top: 63%; width: 32%; animation-delay: -6s; }
.lp-isle.i44 { left: 45%; top: 61%; width: 30%; animation-delay: -2.8s; animation-duration: 8s; }
@keyframes lp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.lp-isles figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; border: 0; font-size: 13px; color: #c9d3cc;
  background: linear-gradient(180deg, transparent, rgba(8, 9, 12, 0.85) 40%); }
.lp-isles kbd { font-size: 12px; }

.lp-news { margin-top: 64px; }
.lp-news .news-head { margin-bottom: 14px; }
.lp-news .news-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lp-news .news-list .update { transition: transform 0.2s, border-color 0.2s; }
.lp-news .news-list .update:hover { transform: translateY(-3px); border-color: var(--gold-3); }
.lp-news .news-list .update:first-child { border-top: 3px solid var(--gold-3); }

/* the bosses: one long row that loops (the second seven are copies) */
.lp-boss { padding-left: 0; padding-right: 0; }
.lp-boss .lp-head { padding: 0 24px; }
.lp-boss-track { position: relative; overflow: hidden; padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.lp-boss-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; width: max-content; animation: lp-marquee 52s linear infinite; }
.lp-boss-track:hover .lp-boss-list { animation-play-state: paused; }
@keyframes lp-marquee { to { transform: translateX(calc(-50% - 14px)); } }
.lp-boss-list figure { margin: 0; width: 230px; display: flex; flex-direction: column; align-items: center; }
.lp-boss-img { width: 100%; height: 250px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px;
  background: radial-gradient(ellipse 46% 12% at 50% 94%, rgba(227, 192, 107, 0.32), transparent 72%),
    radial-gradient(ellipse 50% 46% at 50% 60%, rgba(120, 80, 200, 0.16), transparent 70%); transition: transform 0.3s; }
.lp-boss-img img { display: block; width: auto; height: auto; max-width: 100%; max-height: 240px; }
.lp-boss-list li:hover .lp-boss-img { transform: translateY(-6px) scale(1.04); }
.lp-boss-list figcaption { padding: 10px 0 0; border: 0; text-align: center; font-size: 13px; color: var(--muted); }
.lp-boss-list figcaption b { display: block; font: 700 17px/1.3 var(--serif); color: var(--title); }

/* feature cards */
.lp-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.lp-feat { display: flex; flex-direction: column; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  color: var(--text); text-decoration: none; transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s; }
.lp-feat:hover { color: var(--text); transform: translateY(-5px); border-color: var(--gold-3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 26px rgba(227, 192, 107, 0.14); }
.lp-feat-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #0e1014; border-bottom: 1px solid var(--line); }
.lp-feat-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.lp-feat-img-dark img { object-fit: contain; }
.lp-feat-img::after { content: ''; position: absolute; inset: 0; pointer-events: none; transform: translateX(-110%);
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.2) 45%, transparent 60%); transition: transform 0.8s ease; }
.lp-feat:hover .lp-feat-img img { transform: scale(1.06); }
.lp-feat:hover .lp-feat-img::after { transform: translateX(110%); }
.lp-feat-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.lp-feat-body b { font: 700 20px/1.3 var(--serif); color: var(--title); }
.lp-feat-body > span:not(.lp-tag) { color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.lp-feat:hover .lp-feat-body b { color: var(--gold-1); }
.lp-tag { align-self: flex-start; padding: 3px 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-2); background: #1a1408; border: 1px solid rgba(217, 164, 65, 0.5); }
.lp-tag-red { color: #fbe9e4; background: #3a1512; border-color: #7d221c; }

/* the realm path: a lit line through the open realms */
.lp-path { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); }
.lp-path::before, .lp-path::after { content: ''; position: absolute; top: 15px; height: 4px; }
.lp-path::before { left: 5%; right: 5%; background: repeating-linear-gradient(90deg, #3a3f48 0 8px, transparent 8px 12px); }
.lp-path::after { left: 5%; width: 30%; background: linear-gradient(90deg, var(--gold-4), var(--gold-2)); box-shadow: 0 0 12px rgba(246, 210, 122, 0.6);
  transform: scaleX(0); transform-origin: left; transition: transform 1.8s ease 0.2s; }
.lp-path.in::after, .lp-path:not([data-reveal])::after { transform: scaleX(1); }
.lp-path li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 4px; text-align: center; }
.lp-path .node { width: 22px; height: 22px; margin: 4px 0 10px; background: #1a1d24; border: 3px solid #3a3f48; transform: rotate(45deg); }
.lp-path .open .node { background: var(--gold-2); border-color: var(--gold-1); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.6), 0 0 14px rgba(246, 210, 122, 0.7); }
.lp-path .now .node { background: #fff3c8; animation: lp-node 1.8s ease-in-out infinite; }
@keyframes lp-node { 0%, 100% { box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.6), 0 0 10px rgba(246, 210, 122, 0.6); }
  50% { box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.6), 0 0 26px 6px rgba(246, 210, 122, 0.9); } }
.lp-path small { font-size: 11.5px; letter-spacing: 0.12em; color: #7f8a83; }
.lp-path .now small { color: #ff9b8a; font-weight: 700; }
.lp-path b { font: 700 19px/1.25 var(--serif); color: #7c837d; }
.lp-path .open b { color: var(--gold-2); }
.lp-path .now b { color: #fff3c8; text-shadow: 0 0 14px rgba(246, 210, 122, 0.6); }
.lp-path .end b { color: #e9e4d4; }
.lp-path li > span:last-child { font-size: 12.5px; line-height: 1.45; color: #7f8a83; }
.lp-path .open > span:last-child { color: var(--text-2); }

/* weapons */
.lp-weapons { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 14px; }
.lp-weapon { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--panel); border: 1px solid var(--line);
  border-left: 3px solid var(--el); border-radius: 6px; transition: transform 0.2s, box-shadow 0.2s; }
.lp-weapon:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--el), 0 10px 24px rgba(0, 0, 0, 0.4); }
.lp-weapon img { flex: none; width: 74px; height: 74px; padding: 4px; background: #0e1014; border: 1px solid #2c3139; }  /* 32 px icon at 2x */
.lp-weapon h3 { margin: 0 0 6px; font: 700 22px/1.2 var(--serif); color: var(--title); }
.lp-weapon h3 span { margin-left: 6px; font: 600 12.5px var(--sans); color: var(--el); }
.lp-weapon p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }

/* guides */
.lp-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.lp-guides .guide-row { transition: transform 0.2s, border-color 0.2s; }
.lp-guides .guide-row:hover { transform: translateX(3px); border-color: var(--gold-3); }

/* community */
.lp-community { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: 28px 30px;
  background: linear-gradient(120deg, rgba(40, 46, 90, 0.35), rgba(18, 20, 26, 0.95) 55%); border: 1px solid var(--line); border-radius: 6px; }
.lp-community-text { flex: 1 1 340px; display: flex; flex-direction: column; gap: 10px; }
.lp-community-text p { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.lp-socials { display: flex; flex-wrap: wrap; gap: 14px; }
.lp-social { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 6px 22px 6px 8px; background: #0e1014; border: 2px solid #3a3f48;
  border-radius: 4px; color: var(--text); text-decoration: none; transition: border-color 0.2s, transform 0.2s, background 0.2s; }
.lp-social:hover { color: #fff; border-color: var(--s); background: #151824; transform: translateY(-2px); }
.lp-social img { width: 64px; height: 64px; flex: none; }
.lp-social span { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.lp-social b { font-size: 17px; color: var(--title); }

/* donate (was inline in index.html) */
.landing .donate { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; max-width: 760px; margin: 0 auto; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.landing .donate .qr { flex: none; display: block; width: 120px; border-radius: 4px; overflow: hidden; background: #fff; }
.landing .donate .qr img { display: block; width: 100%; height: auto; }
.landing .donate .txt { flex: 1 1 260px; min-width: 0; }
.landing .donate h2 { margin: 0 0 6px; font-size: 20px; color: var(--title); }
.landing .donate p { margin: 0 0 8px; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.landing .donate ul { margin: 0 0 8px; padding-left: 18px; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.landing .donate .small { font-size: 13px; margin: 0; }

/* last call */
.lp-final { position: relative; overflow: hidden; margin-top: 88px; border-top: 1px solid #23272e; border-bottom: 1px solid #23272e; }
.lp-final-bg, .lp-final-bg img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.lp-final-bg img { object-fit: cover; object-position: center 80%; transform: scaleX(-1); }
.lp-final-veil { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 90% at 50% 50%, rgba(8, 9, 12, 0.55), rgba(8, 9, 12, 0.92)); }
.lp-final-inner { position: relative; max-width: 900px; margin: 0 auto; padding: 96px 24px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.lp-final-inner > p { margin: 0; max-width: 620px; color: #d3dad5; font-size: 17px; line-height: 1.6; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6); }

/* the phone bar */
.lp-dock { display: none; }

/* the header has more links than on the other pages (Thí Kiếm Đài and Xếp hạng too since 19/11): keep it on one row from 1280 px up */
.landing .nav-links { gap: 18px; }
.landing .site-header nav.wrap { column-gap: 24px; }
@media (min-width: 761px) {
  .landing .nav-links { gap: 10px; }
  .landing .site-header nav.wrap { column-gap: 14px; }
  .landing .nav-links a { letter-spacing: 0.04em; font-size: 13px; }
  .landing .nav-actions { gap: 8px; }
  .landing .nav-actions .btn { padding: 0 14px; }
}

/* scroll reveal (only while landing.js runs: html.lp-js) */
.lp-js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; transition-delay: var(--d, 0s); }
.lp-js [data-reveal].in { opacity: 1; transform: none; }
.lp-js .lp-feat[data-reveal].in, .lp-js .lp-weapon[data-reveal].in { transition: opacity 0.7s ease, transform 0.25s ease, border-color 0.25s, box-shadow 0.25s; transition-delay: var(--d, 0s), 0s, 0s, 0s; }

@media (min-width: 761px) and (max-height: 860px) {
  .lp-hero-inner { padding-top: 28px; gap: 16px; }
  .lp-logo { width: min(600px, 92vw); }
}

@media (max-width: 1080px) {
  .lp-na { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .lp-news .news-list { grid-template-columns: minmax(0, 1fr); }
  .lp-gift .promo-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1000px) {
  .lp-path { grid-template-columns: minmax(0, 1fr); gap: 4px; max-width: 520px; margin: 0 auto; }
  .lp-path::before, .lp-path::after { top: 14px; left: 15px; right: auto; width: 4px; height: auto; }
  .lp-path::before { bottom: 14px; background: repeating-linear-gradient(180deg, #3a3f48 0 8px, transparent 8px 12px); }
  .lp-path::after { height: 36%; transform: scaleY(0); transform-origin: top; background: linear-gradient(180deg, var(--gold-4), var(--gold-2)); }
  .lp-path.in::after, .lp-path:not([data-reveal])::after { transform: scaleY(1); }
  .lp-path li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; align-items: start; text-align: left; padding: 6px 0; }
  .lp-path .node { grid-row: 1 / span 3; margin: 6px 0 0 6px; }
  .lp-path small, .lp-path b, .lp-path li > span:last-child { grid-column: 2; }
}

@media (max-width: 760px) {
  body.landing { padding-bottom: 84px; }
  .landing .nav-actions .btn { padding: 0 14px; }
  .landing .nav-actions .lp-cta-sm { display: none; }  /* the bar at the bottom has it */
  .lp-hero { min-height: 0; }
  .lp-hero-bg { top: -4%; bottom: -8%; }
  .lp-hero-inner { padding: 36px 16px 76px; gap: 18px; }
  .lp-chip { font-size: 13px; }
  .lp-ob { width: 100%; max-width: 420px; gap: 10px; padding: 14px 12px 11px; }
  .lp-ob-main { flex-direction: column; width: 100%; gap: 10px; }
  .lp-ob-head { align-items: center; width: 100%; min-height: 0; text-align: center; }
  .lp-ob-time { font-size: 23px; }
  .lp-ob-body { width: 100%; grid-template-columns: minmax(0, 1fr); }
  .lp-ob-count { gap: 6px; }
  .lp-ob-box b { font-size: 29px; }
  .lp-ob-open { flex-direction: column; gap: 10px; }
  .lp-ob-open > b { font-size: 23px; }
  .lp-ob-open .lp-cta-face { min-height: 50px; }
  .lp-ctas { flex-direction: column; align-items: stretch; width: 100%; max-width: 420px; gap: 16px; }
  .lp-ctas .lp-cta { display: flex; }
  .lp-ctas .lp-cta-face { width: 100%; justify-content: center; min-height: 68px; padding: 8px 18px; }
  .lp-cta-txt b { font-size: 21px; }
  .lp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 420px; }
  .lp-facts li { padding: 10px 14px; }
  .lp-facts li:nth-child(2) { border-right: 0; }
  .lp-facts li:nth-child(-n + 2) { border-bottom: 1px solid #2d3139; }
  .lp-facts b { font-size: 24px; }
  .lp-scroll { display: none; }
  .lp-sec { padding: 64px 16px 8px; }
  .lp-gift { padding-top: 40px; }
  .lp-gift .promo { padding: 16px 12px; }
  .lp-boss .lp-head { padding: 0 16px; }
  .lp-boss-list { gap: 18px; }
  .lp-boss-list figure { width: 190px; }
  .lp-boss-img { height: 210px; }
  .lp-boss-img img { max-height: 200px; }
  @keyframes lp-marquee { to { transform: translateX(calc(-50% - 9px)); } }
  .lp-feats { grid-template-columns: minmax(0, 1fr); }
  .lp-isles figcaption { display: none; }
  .lp-final { margin-top: 64px; }
  .lp-final-inner { padding: 72px 16px; }
  .lp-final .lp-ctas { margin: 0 auto; }
  .lp-dock { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 10px;
    padding: 18px 12px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(11, 12, 15, 0), rgba(11, 12, 15, 0.94) 34%);
    transform: translateY(115%); transition: transform 0.3s ease; pointer-events: none; }
  .lp-dock.show { transform: none; pointer-events: auto; }
  .lp-dock .lp-cta { flex: 1 1 0; display: flex; min-width: 0; }
  .lp-dock .lp-cta::before { inset: -6px -8px; }
  .lp-dock .lp-cta-face { width: 100%; justify-content: center; min-height: 54px; padding: 6px 10px; }
  .lp-dock .lp-cta-txt { align-items: center; }
  .lp-dock .lp-cta-txt b { font-size: 18px; }
}

@media (max-width: 380px) {
  .lp-cta-txt small { white-space: normal; }
  .lp-chip { flex-wrap: wrap; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-cta::before, .lp-cta-face::after, .lp-hero-bg img, .lp-clouds::before, .lp-logo, .lp-logo-shine, .lp-chip-dot::after,
  .lp-scroll span, .lp-isle, .lp-isles-sky, .lp-path .now .node, .lp-spark { animation: none !important; }
  .lp-cta-face::after, .lp-spark { display: none; }
  .lp-boss-list { animation: none; }
  .lp-boss-track { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scroll-snap-type: x proximity; }
  .lp-boss-list li { scroll-snap-align: center; }
  .lp-boss-list li[aria-hidden] { display: none; }
  .lp-js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .lp-path::after { transition: none; transform: none !important; }
  .lp-feat, .lp-feat-img img, .lp-feat-img::after, .lp-weapon, .lp-cta, .lp-dock, .lp-boss-img, .lp-gift .promo-item, .lp-social,
  .lp-guides .guide-row, .lp-news .news-list .update { transition: none; }
  .lp-feat:hover, .lp-weapon:hover, .lp-cta:hover, .lp-gift .promo-item:hover, .lp-social:hover, .lp-guides .guide-row:hover,
  .lp-news .news-list .update:hover, .lp-boss-list li:hover .lp-boss-img { transform: none; }
  .lp-feat:hover .lp-feat-img img { transform: none; }
}
