/* TRISTANA HERO — trang giới thiệu */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #070c18;
  --bg2:      #0c1426;
  --panel:    rgba(255,255,255,.05);
  --line:     rgba(255,255,255,.1);
  --text:     #f4ecd8;
  --muted:    #a4b3d1;
  --teal:     #19c9c6;
  --teal-hi:  #7bf5f0;
  --teal-lo:  #0b8f95;
  --gold:     #d9ac5f;
  --gold-hi:  #f6d794;
  --orange:   #ff9a1f;
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a   { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal-hi); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Chờ áp ngôn ngữ xong mới hiện trang, tránh nháy sai ngôn ngữ. Lớp do JS thêm, có đồng hồ dự phòng gỡ ra. */
html.i18n-pending body { visibility: hidden; }

/* ───── Thanh điều hướng ───── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,12,24,.78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; }
.brand img { width: 40px; height: 40px; border-radius: 11px; border: 2px solid var(--gold); }
.nav-r { display: flex; align-items: center; gap: 22px; }
.nav ul { display: flex; gap: 26px; list-style: none; font-size: .92rem; color: var(--muted); font-weight: 600; }
.nav ul a:hover { color: var(--teal-hi); }
@media (max-width: 720px) { .nav ul { display: none; } }

.langsel { position: relative; display: inline-flex; align-items: center; }
.langsel select {
  appearance: none; -webkit-appearance: none;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 30px 8px 12px; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer;
  transition: border-color .2s;
}
.langsel select:hover { border-color: var(--teal); }
.langsel select option { background: #0c1426; color: #f4ecd8; }
.langsel::after { content: "▾"; position: absolute; right: 11px; pointer-events: none; color: var(--muted); font-size: .8rem; }

/* ───── Nút ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 14px;
  font-weight: 800; font-size: 1rem; letter-spacing: .3px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .2s, filter .2s, border-color .2s, color .2s;
}
.btn .icon { font-size: 1.25em; }
.btn-teal {
  background: linear-gradient(180deg, var(--teal-hi), var(--teal) 42%, var(--teal-lo));
  color: #03262a;
  border-color: rgba(246,215,148,.55);
  box-shadow: 0 8px 28px rgba(25,201,198,.28), inset 0 1px 0 rgba(255,255,255,.55);
}
.btn-teal:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(25,201,198,.45), inset 0 1px 0 rgba(255,255,255,.55); }
.btn-ghost { background: var(--panel); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn[aria-disabled="true"] { opacity: .62; pointer-events: none; filter: grayscale(.3); }

/* ───── Hero ───── */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before {                       /* chân dung Tristana làm nền, mờ dần về phía trái */
  content: ""; position: absolute; z-index: -2; inset: -10% -8% -10% 38%;
  background: url("img/icon.webp") center / cover no-repeat;
  filter: blur(34px) saturate(1.25); opacity: .42;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
}
.hero::after {                        /* mờ dần xuống nền trang */
  content: ""; position: absolute; z-index: -1; inset: 0;
  background:
    radial-gradient(70% 60% at 82% 40%, rgba(25,201,198,.14), transparent 70%),
    linear-gradient(180deg, rgba(7,12,24,0) 55%, var(--bg) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 30px; padding: 64px 0 90px; min-height: min(86vh, 760px); }
.eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(25,201,198,.1); border: 1px solid rgba(25,201,198,.38);
  color: var(--teal-hi); font-weight: 800; font-size: .78rem; letter-spacing: 2px; text-transform: uppercase;
}
h1 {
  margin: 20px 0 14px; font-size: clamp(2.8rem, 7.4vw, 5.6rem); line-height: .98; font-weight: 900;
  text-transform: uppercase; letter-spacing: -1px;
  text-shadow: 0 3px 0 rgba(0,0,0,.55), 0 6px 34px rgba(0,0,0,.6);
}
h1 .accent {
  display: block;
  text-shadow: none;            /* chữ trong suốt (background-clip): bóng chữ của h1 sẽ lọt vào trong chữ và làm tối nó */
  background: linear-gradient(180deg, var(--teal-hi) 0%, var(--teal) 60%, var(--teal-lo) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(25,201,198,.35));
}
.tagline { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 800; color: var(--gold-hi); margin-bottom: 14px; text-shadow: 0 2px 14px rgba(0,0,0,.5); }
.lead { max-width: 540px; font-size: 1.08rem; color: #cdd8ee; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Ba ảnh xếp quạt */
.fan { position: relative; height: min(640px, 86vw); }
.fan figure {
  position: absolute; bottom: 0; width: 46%; border-radius: 22px; overflow: hidden;
  border: 2px solid rgba(217,172,95,.5);
  box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.4);
  background: var(--bg2);
}
.fan img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.fan .f-mid   { left: 27%; z-index: 3; bottom: 24px; animation: bob 6s ease-in-out infinite; }
.fan .f-left  { left: 0;   z-index: 2; transform: rotate(-9deg) scale(.9); transform-origin: bottom right; }
.fan .f-right { right: 0;  z-index: 2; transform: rotate(9deg) scale(.9);  transform-origin: bottom left; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ───── Số liệu ───── */
.stats { position: relative; z-index: 2; margin-top: -34px; }
.stats ul {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.stats li { padding: 22px 12px; text-align: center; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; }
.stats b { display: block; font-size: clamp(1.8rem, 4.4vw, 2.7rem); line-height: 1.1; font-weight: 900; color: var(--gold-hi); text-shadow: 0 2px 14px rgba(217,172,95,.35); }
.stats span { color: var(--muted); font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* ───── Khối nội dung ───── */
.sec { padding: 96px 0 30px; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.sec h2 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); font-weight: 900; text-transform: uppercase; line-height: 1.1; text-shadow: 0 3px 0 rgba(0,0,0,.45); }
.sec h2::after { content: ""; display: block; width: 84px; height: 4px; margin: 16px auto 0; border-radius: 2px; background: var(--teal); }
.sec-head p { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  padding: 26px 22px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.025));
  border: 1px solid var(--line);
  transition: transform .2s, border-color .2s, background .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(25,201,198,.5); }
.card .ic {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 15px; font-size: 26px;
  color: var(--teal-hi); background: rgba(25,201,198,.1); border: 1px solid rgba(25,201,198,.32);
}
.card h3 { font-size: 1.08rem; font-weight: 800; line-height: 1.3; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; }

/* ───── Thư viện ảnh ───── */
.gallery { position: relative; }
.rail {
  display: flex; gap: 20px; overflow-x: auto; padding: 8px max(20px, calc((100vw - 1180px) / 2)) 26px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: rgba(217,172,95,.5) transparent;
}
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: rgba(217,172,95,.45); border-radius: 4px; }
.shot {
  flex: 0 0 clamp(210px, 24vw, 270px); scroll-snap-align: center;
  padding: 0; border: 2px solid rgba(217,172,95,.4); border-radius: 22px; overflow: hidden; cursor: zoom-in;
  background: var(--bg2); box-shadow: 0 16px 40px rgba(0,0,0,.45);
  transition: transform .2s, border-color .2s;
}
.shot:hover { transform: translateY(-5px); border-color: var(--gold); }
.shot img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.rail-nav { display: flex; justify-content: center; gap: 12px; margin-top: 6px; }
.rail-nav button {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 22px;
  background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, color .2s;
}
.rail-nav button:hover { border-color: var(--teal); color: var(--teal-hi); }

/* Hộp xem ảnh lớn */
dialog.lb {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%;
  color: var(--text);
}
dialog.lb::backdrop { background: rgba(3,6,12,.92); }
.lb-in { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 20px 64px; }
.lb-in img { max-height: calc(100vh - 40px); max-width: min(92vw, 560px); width: auto; border-radius: 20px; border: 2px solid rgba(217,172,95,.5); }
.lb button {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 24px;
  background: rgba(255,255,255,.1); border: 1px solid var(--line);
}
.lb button:hover { border-color: var(--teal); }
.lb .x { top: 18px; right: 18px; }
.lb .p { left: 14px; top: 50%; transform: translateY(-50%); }
.lb .n { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-in { padding: 20px 8px; } .lb .p, .lb .n { top: auto; bottom: 18px; transform: none; } }

/* ───── Kêu gọi tải game ───── */
.final { padding: 96px 0 100px; }
.banner {
  position: relative; overflow: hidden; border-radius: 28px; border: 2px solid rgba(217,172,95,.5);
  background: var(--bg2); box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.banner img { width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; }
.banner-body {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px;
  padding: 28px 34px; border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}
.banner-body h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 900; text-transform: uppercase; line-height: 1.15; }
.banner-body p { color: var(--muted); margin-top: 4px; }

/* ───── Chân trang ───── */
.foot { border-top: 1px solid var(--line); background: #050911; padding: 44px 0 30px; color: var(--muted); font-size: .9rem; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.foot .brand { color: var(--text); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; }
.foot nav a:hover { color: var(--teal-hi); }
.foot small { display: block; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .78rem; line-height: 1.7; opacity: .85; }

/* ───── Trang chính sách ───── */
.doc { padding: 56px 0 90px; }
.doc-in { width: min(820px, 100% - 40px); margin-inline: auto; }
.doc h1 {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; text-transform: uppercase; line-height: 1.08;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none;            /* bóng chữ của h1 sẽ lọt qua chữ trong suốt và làm tối chữ */
  filter: drop-shadow(0 3px 14px rgba(217,172,95,.25));
}
.doc .meta { margin-top: 12px; color: var(--muted); font-size: .92rem; }
.doc section { margin-top: 38px; }
.doc h2 { font-size: 1.28rem; font-weight: 800; color: var(--gold-hi); margin-bottom: 10px; }
.doc p { color: #cdd8ee; margin-bottom: 12px; }
.doc ul { margin: 6px 0 14px 22px; color: #cdd8ee; }
.doc li { margin-bottom: 7px; }
.doc li b, .doc p b { color: var(--text); }
.doc a.mail { color: var(--teal-hi); border-bottom: 1px dashed rgba(123,245,240,.5); word-break: break-all; }
.doc .box { margin-top: 38px; padding: 22px 24px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.doc .box h2 { margin-bottom: 8px; }

/* ───── Màn hình nhỏ ───── */
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; padding: 40px 0 70px; min-height: 0; gap: 8px; text-align: center; }
  .lead { margin-inline: auto; }
  .cta { justify-content: center; }
  .fan { height: min(560px, 108vw); max-width: 460px; width: 100%; margin: 28px auto 0; }
  .fan figure { width: 52%; }
  .fan .f-mid { left: 24%; }
  .hero::before { inset: 0; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 60%); mask-image: linear-gradient(180deg, transparent 0%, #000 60%); }
}
@media (max-width: 480px) {
  .nav .wrap { gap: 10px; }
  .brand { font-size: .84rem; letter-spacing: .4px; gap: 8px; white-space: nowrap; }
  .brand img { width: 34px; height: 34px; border-radius: 9px; }
  .langsel select { padding: 7px 26px 7px 10px; font-size: .82rem; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .stats ul { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .banner-body { padding: 22px; }
  .banner-body .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
