/* Tiên Nghịch — landing page. Pixel style: Handjet headings, stepped "pixel" borders (box-shadow), blood-red night
   palette of the game's art (Sát Lục Huyết Lộ) with gold accents. Plain CSS, no build step. */

@font-face {
  font-family: "pixel-icons";
  src: url("../assets/fonts/pixel-icons.woff2") format("woff2"), url("../assets/fonts/pixel-icons.woff") format("woff");
  font-display: block;
}

:root {
  --bg: #0d0911;
  --bg-2: #150e19;
  --panel: #1b1220;
  --panel-2: #241829;
  --line: #3a2530;
  --blood: #b91c1c;
  --blood-2: #7f1d1d;
  --ember: #f97316;
  --gold: #f2d572;
  --gold-2: #c9a022;
  --gold-3: #8a6a10;
  --moon: #fdf1d0;
  --ink: #f4ecd8;
  --ink-dim: #b8a88c;
  --ink-mute: #85765f;
  --jade: #34d399;
  --sky: #38bdf8;
  --violet: #a78bfa;
  --px: 4px;                       /* one "pixel" of the borders */
  --head: "Handjet", "Be Vietnam Pro", monospace;
  --body: "Be Vietnam Pro", system-ui, sans-serif;
  --wrap: 1180px;
  --nav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--moon); }
b, strong { color: var(--moon); font-weight: 700; }
::selection { background: var(--blood); color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.pixelated { image-rendering: pixelated; image-rendering: crisp-edges; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- icons (pixel icon font of the game) ---------- */
.i { display: inline-block; line-height: 1; }
.i:before { font-family: "pixel-icons" !important; font-style: normal; font-weight: normal; vertical-align: -0.1em; }
.i-play:before{content:"\f205"}
.i-crown:before{content:"\f1a7"}
.i-star:before{content:"\f227"}
.i-bolt:before{content:"\f172"}
.i-fire:before{content:"\f1c5"}
.i-globe:before{content:"\f1cd"}
.i-users:before{content:"\f244"}
.i-user:before{content:"\f242"}
.i-coins:before{content:"\f19e"}
.i-book:before{content:"\f175"}
.i-home:before{content:"\f1d9"}
.i-trophy:before{content:"\f238"}
.i-heart:before{content:"\f1d6"}
.i-moon:before{content:"\f1ee"}
.i-sun:before{content:"\f229"}
.i-bank:before{content:"\f16c"}
.i-download:before{content:"\f1ae"}
.i-arrow-right:before{content:"\f168"}
.i-arrow-up:before{content:"\f169"}
.i-chevron-down:before{content:"\f191"}
.i-bars:before{content:"\f16d"}
.i-times:before{content:"\f233"}
.i-discord:before{content:"\f10f"}
.i-tiktok:before{content:"\f134"}
.i-youtube:before{content:"\f13b"}
.i-eye:before{content:"\f1bb"}
.i-clock:before{content:"\f195"}
.i-sparkles:before{content:"\f223"}
.i-seedlings:before{content:"\f216"}
.i-eye-cross:before{content:"\f1b9"}
.i-face-angry:before{content:"\f1bc"}
.i-pen-nib:before{content:"\f1fc"}
.i-cloud-rain:before{content:"\f198"}
.i-check:before{content:"\f190"}
.i-shop:before{content:"\f21a"}
.i-wallet:before{content:"\f247"}
.i-question:before{content:"\f20c"}
.i-message:before{content:"\f1ec"}
.i-comment:before{content:"\f1a3"}
.i-location-pin:before{content:"\f1e3"}
.i-flag:before{content:"\f1c7"}
.i-handshake:before{content:"\f1d3"}

/* ---------- pixel border: a 4px stepped frame, corners cut like a sprite ---------- */
.px {
  position: relative;
  background: var(--panel);
  box-shadow:
    0 calc(var(--px) * -1) 0 0 var(--bc, var(--line)),
    0 var(--px) 0 0 var(--bc, var(--line)),
    calc(var(--px) * -1) 0 0 0 var(--bc, var(--line)),
    var(--px) 0 0 0 var(--bc, var(--line)),
    0 calc(var(--px) * 3) 0 0 rgba(0, 0, 0, .45);
}
.px.gold { --bc: var(--gold-2); }
.px.blood { --bc: var(--blood); }

/* ---------- buttons ---------- */
.btn {
  --bc: #6b4d0c;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--head); font-weight: 800; font-size: 22px; letter-spacing: .06em; line-height: 1;
  text-transform: uppercase;
  color: #2c1e04;
  background: linear-gradient(180deg, #fbe39a 0%, #f2d572 45%, #c9a022 100%);
  padding: 15px 28px 13px;
  border: 0; cursor: pointer; position: relative;
  box-shadow:
    0 -4px 0 0 var(--bc), 0 4px 0 0 var(--bc), -4px 0 0 0 var(--bc), 4px 0 0 0 var(--bc),
    inset 0 -4px 0 0 rgba(120, 80, 0, .45), inset 0 4px 0 0 rgba(255, 255, 255, .45),
    0 10px 0 0 rgba(0, 0, 0, .5);
  transition: transform .08s steps(2), filter .15s;
}
.btn:hover { color: #2c1e04; filter: brightness(1.08); transform: translateY(-2px); }
.btn:active { transform: translateY(4px); box-shadow:
    0 -4px 0 0 var(--bc), 0 4px 0 0 var(--bc), -4px 0 0 0 var(--bc), 4px 0 0 0 var(--bc),
    inset 0 4px 0 0 rgba(120, 80, 0, .45), 0 4px 0 0 rgba(0, 0, 0, .5); }
.btn.ghost {
  --bc: var(--gold-2);
  color: var(--gold);
  background: rgba(13, 9, 17, .72);
  box-shadow: 0 -4px 0 0 var(--bc), 0 4px 0 0 var(--bc), -4px 0 0 0 var(--bc), 4px 0 0 0 var(--bc), 0 10px 0 0 rgba(0, 0, 0, .5);
}
.btn.ghost:hover { color: var(--moon); background: rgba(58, 20, 20, .8); }
.btn.sm { font-size: 18px; padding: 11px 18px 9px; }
.btn .i { font-size: .9em; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: rgba(13, 9, 17, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-bottom: 4px solid #000;
  box-shadow: 0 4px 0 0 rgba(185, 28, 28, .35);
}
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold); font-family: var(--head); font-weight: 900; font-size: 26px; letter-spacing: .08em; white-space: nowrap; }
.brand img { width: 36px; height: 36px; }
.brand:hover { color: var(--moon); }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  font-family: var(--head); font-weight: 700; font-size: 19px; letter-spacing: .04em; color: var(--ink-dim);
  padding: 8px 12px; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a.active:after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 4px; background: var(--blood);
  box-shadow: 4px 0 0 var(--blood), -4px 0 0 var(--blood);
}
.nav .btn { margin-left: 8px; }
.nav-links a.btn { color: #2c1e04; padding: 11px 18px 9px; font-size: 18px; }
.nav-links a.btn:hover { color: #2c1e04; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--gold); font-size: 28px; cursor: pointer; padding: 6px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav .btn.play-top { display: none; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #0d0911; border-bottom: 4px solid var(--blood-2); padding: 8px 20px 18px;
    transform: translateY(-120%); transition: transform .25s steps(5); z-index: -1;
  }
  .nav.open .nav-links { transform: none; }
  .nav-links a { padding: 12px 4px; font-size: 22px; border-bottom: 2px dashed var(--line); }
  .nav-links a.active:after { display: none; }
  .nav-links .btn { margin: 14px 0 0; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 90px; overflow: hidden; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("../assets/img/hero-bg.webp") center 30% / cover no-repeat;
  image-rendering: pixelated;
  animation: drift 40s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: scale(1.06) translateX(-1%); } to { transform: scale(1.12) translateX(1%); } }
.hero:after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(13, 9, 17, .15), rgba(13, 9, 17, .7) 75%),
    linear-gradient(180deg, rgba(13, 9, 17, .55) 0%, rgba(13, 9, 17, 0) 30%, rgba(13, 9, 17, 0) 65%, var(--bg) 100%);
}
#embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-inner { text-align: center; width: 100%; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 700; font-size: 18px;
  letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
  text-shadow: 0 2px 0 #000;
}
.title {
  font-family: var(--head); font-weight: 900; line-height: .9; letter-spacing: .06em;
  font-size: clamp(64px, 13vw, 168px);
  background: linear-gradient(180deg, #fff6d6 0%, #f2d572 38%, #c9a022 60%, #7a5a0c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 #3a0a0a) drop-shadow(0 8px 0 rgba(0, 0, 0, .6)) drop-shadow(0 0 30px rgba(185, 28, 28, .45));
}
.subtitle {
  font-family: var(--head); font-weight: 800; font-size: clamp(22px, 3.6vw, 40px); letter-spacing: .42em;
  color: #ff5a4a; margin-top: 14px; text-shadow: 0 3px 0 #000, 0 0 18px rgba(185, 28, 28, .8);
  padding-left: .42em;
}
.tagline { max-width: 640px; margin: 22px auto 34px; font-size: 18px; color: var(--ink); text-shadow: 0 2px 6px #000; }
.cta { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.stats {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 54px;
}
.stat {
  --bc: rgba(242, 213, 114, .35);
  background: rgba(13, 9, 17, .7); padding: 10px 18px; min-width: 128px;
  box-shadow: 0 -3px 0 0 var(--bc), 0 3px 0 0 var(--bc), -3px 0 0 0 var(--bc), 3px 0 0 0 var(--bc);
}
.stat b { display: block; font-family: var(--head); font-size: 36px; line-height: 1; color: var(--gold); }
.stat span { font-family: var(--head); font-size: 17px; letter-spacing: .08em; color: var(--ink-dim); text-transform: uppercase; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); color: var(--gold); font-size: 26px;
  animation: bob 1.2s steps(2) infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* page hero (boss / hành tinh) */
.page-hero { min-height: 62vh; padding-bottom: 60px; }
.page-hero .title { font-size: clamp(54px, 10vw, 120px); }
.page-hero:after {
  background:
    radial-gradient(ellipse 60% 55% at 50% 50%, rgba(13, 9, 17, .55), rgba(13, 9, 17, .88) 80%),
    linear-gradient(180deg, rgba(60, 8, 8, .45), rgba(13, 9, 17, .2) 40%, var(--bg) 100%);
}
.page-hero .hero-bg { filter: saturate(.85) blur(1.5px); }
.parade { display: flex; gap: 18px; justify-content: center; align-items: flex-end; flex-wrap: wrap; margin-top: 48px; }
.parade img { height: 84px; width: auto; image-rendering: pixelated; filter: drop-shadow(0 5px 0 rgba(0, 0, 0, .6)); animation: breathe 2.4s steps(2) infinite; }
.parade img:nth-child(even) { animation-delay: -1.2s; }
.parade img:nth-child(3n) { height: 96px; }
@media (max-width: 640px) { .parade { gap: 10px; } .parade img { height: 54px; } .parade img:nth-child(3n) { height: 60px; } }
.page-hero.bosses .hero-bg { background-image: url("../assets/shots/boss-malong.webp"); image-rendering: auto; }
.page-hero.planets .hero-bg { background-image: url("../assets/shots/planet-thienvan.webp"); image-rendering: auto; }

/* ---------- sections ---------- */
section { position: relative; padding: 96px 0; }
section.alt { background: var(--bg-2); }
section.alt:before, section.alt:after {
  content: ""; position: absolute; left: 0; right: 0; height: 8px;
  background:
    linear-gradient(90deg, var(--bg) 50%, transparent 50%) 0 0 / 16px 8px repeat-x;
}
section.alt:before { top: 0; }
section.alt:after { bottom: 0; transform: scaleY(-1); }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.sec-head .eyebrow { margin-bottom: 8px; }
.sec-head h2 {
  font-family: var(--head); font-weight: 900; font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: .04em;
  color: var(--moon); text-shadow: 0 4px 0 var(--blood-2), 0 8px 0 rgba(0, 0, 0, .55);
}
.sec-head p { color: var(--ink-dim); margin-top: 16px; font-size: 17px; }
.divider { display: flex; justify-content: center; gap: 6px; margin: 18px 0 0; }
.divider i { width: 8px; height: 8px; background: var(--blood); display: block; }
.divider i:nth-child(2) { background: var(--gold); }

/* ---------- gallery ---------- */
.gallery {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 170px;
}
.gallery .shot:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery .shot:nth-child(4) { grid-column: span 2; }
.gallery .shot:nth-child(7) { grid-column: span 2; }
.shot {
  --bc: #000;
  position: relative; overflow: hidden; cursor: zoom-in; background: #000; border: 0; padding: 0;
  box-shadow: 0 -4px 0 0 var(--bc), 0 4px 0 0 var(--bc), -4px 0 0 0 var(--bc), 4px 0 0 0 var(--bc), 0 10px 0 0 rgba(0, 0, 0, .5);
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.shot:hover img { transform: scale(1.05); filter: brightness(1.1); }
.shot:hover { --bc: var(--gold-2); }
.shot figcaption, .shot .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; text-align: left;
  font-family: var(--head); font-weight: 700; font-size: 20px; letter-spacing: .04em; color: var(--moon);
  background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent);
}
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery .shot:nth-child(4), .gallery .shot:nth-child(7) { grid-column: span 2; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery .shot { grid-column: auto !important; grid-row: auto !important; }
}

/* ---------- feature cards ---------- */
.grid { display: grid; gap: 28px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid.c3, .grid.c2, .grid.c4 { grid-template-columns: 1fr; } }

.card { padding: 26px 24px 24px; }
.card .ico {
  width: 56px; height: 56px; display: grid; place-items: center; font-size: 28px; color: #2c1e04; margin-bottom: 16px;
  background: linear-gradient(180deg, #fbe39a, #c9a022);
  box-shadow: 0 -4px 0 0 #6b4d0c, 0 4px 0 0 #6b4d0c, -4px 0 0 0 #6b4d0c, 4px 0 0 0 #6b4d0c;
}
.card.red .ico { background: linear-gradient(180deg, #f87171, #b91c1c); color: #fff3e8; box-shadow: 0 -4px 0 0 #450a0a, 0 4px 0 0 #450a0a, -4px 0 0 0 #450a0a, 4px 0 0 0 #450a0a; }
.card h3 { font-family: var(--head); font-weight: 800; font-size: 28px; line-height: 1.05; letter-spacing: .03em; color: var(--gold); margin-bottom: 8px; }
.card p { color: var(--ink-dim); font-size: 15.5px; }

/* ---------- characters ---------- */
.heroes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 1040px) { .heroes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .heroes { grid-template-columns: 1fr; } }
.hero-card { display: flex; flex-direction: column; padding: 0 0 22px; overflow: visible; }
.hero-card .stage {
  height: 250px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 18px; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 22% at 50% 88%, rgba(0, 0, 0, .55), transparent 70%),
    radial-gradient(circle at 50% 55%, var(--glow, rgba(167, 139, 250, .35)), transparent 62%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 4px, transparent 4px 8px),
    #120c17;
  border-bottom: 4px solid #000;
}
.hero-card .stage img { height: 200px; width: auto; image-rendering: pixelated; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .5)); animation: breathe 2.4s steps(2) infinite; }
@keyframes breathe { 50% { transform: translateY(-3px); } }
.hero-card .body { padding: 18px 20px 0; }
.hero-card h3 { font-family: var(--head); font-weight: 900; font-size: 30px; line-height: 1; color: var(--moon); }
.hero-card .role { font-family: var(--head); font-weight: 700; font-size: 17px; letter-spacing: .06em; color: var(--c, var(--gold)); margin: 6px 0 10px; text-transform: uppercase; }
.hero-card p { font-size: 14.5px; color: var(--ink-dim); }
.bars { margin: 14px 0 4px; display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 10px; font-family: var(--head); font-size: 16px; color: var(--ink-dim); letter-spacing: .04em; }
.bar i { height: 10px; background: #0b070d; position: relative; box-shadow: 0 0 0 2px #000; }
.bar i:after { content: ""; position: absolute; inset: 0; width: var(--v); background: repeating-linear-gradient(90deg, var(--c, var(--gold)) 0 8px, transparent 8px 10px); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip {
  font-family: var(--head); font-weight: 700; font-size: 16px; letter-spacing: .03em; line-height: 1; color: var(--ink);
  background: #0f0a12; padding: 6px 9px 5px; box-shadow: 0 0 0 2px var(--line);
}
.chip.gold { color: #2c1e04; background: var(--gold); box-shadow: 0 0 0 2px var(--gold-3); }

/* ---------- teaser rows (planets / bosses) ---------- */
.teaser { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; }
.teaser.flip { grid-template-columns: 1fr 1.15fr; }
.teaser.flip .media { order: 2; }
@media (max-width: 900px) { .teaser, .teaser.flip { grid-template-columns: 1fr; } .teaser.flip .media { order: 0; } }
.teaser h3 { font-family: var(--head); font-weight: 900; font-size: clamp(34px, 4.6vw, 52px); line-height: 1; color: var(--moon); margin-bottom: 14px; }
.teaser p { color: var(--ink-dim); margin-bottom: 18px; }
.mini-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.mini {
  display: flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 700; font-size: 18px; color: var(--ink);
  background: #120c17; padding: 7px 12px 6px 8px; box-shadow: 0 0 0 2px var(--line);
}
.mini .dot { width: 12px; height: 12px; background: var(--c); box-shadow: 0 0 0 2px #000; }
.mini img { width: 34px; height: 34px; object-fit: contain; image-rendering: pixelated; }

/* ---------- steps (cách chơi / bán linh thạch) ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 26px; counter-reset: step; }
.steps.five { grid-template-columns: repeat(5, 1fr); gap: 22px; }
@media (max-width: 1120px) { .steps.five { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); } }
.steps.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) { .steps.two { grid-template-columns: 1fr; } }
.step { padding: 34px 22px 22px; }
.step:before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 18px; width: 40px; height: 40px; display: grid; place-items: center;
  font-family: var(--head); font-weight: 900; font-size: 26px; color: #fff3e8; background: var(--blood);
  box-shadow: 0 -4px 0 0 #450a0a, 0 4px 0 0 #450a0a, -4px 0 0 0 #450a0a, 4px 0 0 0 #450a0a;
}
.step h4 { font-family: var(--head); font-weight: 800; font-size: 25px; line-height: 1.05; color: var(--gold); margin-bottom: 8px; }
.step p { color: var(--ink-dim); font-size: 15px; }

.keys { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 56px; }
@media (max-width: 820px) { .keys { grid-template-columns: 1fr; } }
.keys .card h3 { display: flex; align-items: center; gap: 10px; }
.keyrow { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 2px dashed var(--line); color: var(--ink-dim); font-size: 15px; }
.keyrow:last-child { border-bottom: 0; }
.keyrow .kk { display: flex; gap: 5px; flex-wrap: wrap; min-width: 150px; }
kbd {
  font-family: var(--head); font-weight: 800; font-size: 17px; line-height: 1; color: var(--moon); min-width: 30px; text-align: center;
  background: #2a1d2f; padding: 6px 8px 4px; box-shadow: 0 0 0 2px #000, inset 0 -3px 0 0 #140d17;
}

/* ---------- play styles ---------- */
.style-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.style-card .shot-in { height: 190px; overflow: hidden; border-bottom: 4px solid #000; }
.style-card .shot-in img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.style-card:hover .shot-in img { transform: scale(1.06); }
.style-card .body { padding: 20px 22px 22px; }
.style-card h3 { font-family: var(--head); font-weight: 900; font-size: 30px; line-height: 1; color: var(--gold); margin-bottom: 6px; }
.style-card .who { font-family: var(--head); font-size: 17px; color: var(--jade); letter-spacing: .04em; margin-bottom: 8px; }
.style-card p { color: var(--ink-dim); font-size: 15px; }

/* ---------- linh thạch ---------- */
.stones { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
@media (max-width: 920px) { .stones { grid-template-columns: 1fr; } }
.crystal {
  width: 72px; height: 72px; margin-bottom: 16px; image-rendering: pixelated;
  animation: float 2s steps(4) infinite;
}
@keyframes float { 50% { transform: translateY(-6px); } }
.list { list-style: none; display: grid; gap: 12px; margin: 14px 0 0; }
.list li { position: relative; padding-left: 26px; color: var(--ink-dim); }
.list li:before { content: ""; position: absolute; left: 4px; top: .6em; width: 8px; height: 8px; background: var(--gold); box-shadow: 0 0 0 2px #000; }
.list.red li:before { background: var(--blood); }
.note {
  margin-top: 26px; padding: 14px 16px 14px 18px; font-size: 14.5px; color: #fecaca; background: rgba(127, 29, 29, .25);
  box-shadow: inset 4px 0 0 0 var(--blood);
}
.note b { color: #fff1f1; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 18px; }
.faq details { padding: 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 16px 22px; position: relative;
  font-family: var(--head); font-weight: 800; font-size: 23px; line-height: 1.15; color: var(--moon);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: "+"; position: absolute; right: 22px; top: 12px; font-size: 34px; color: var(--gold); font-family: var(--head); }
.faq details[open] summary:after { content: "−"; }
.faq details p { padding: 0 22px 20px; color: var(--ink-dim); font-size: 15.5px; }

/* ---------- final CTA ---------- */
.final {
  text-align: center; padding: 120px 0; overflow: hidden; isolation: isolate;
}
.final:before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(13, 9, 17, .55) 40%, rgba(13, 9, 17, .8) 100%), url("../assets/shots/pvp.webp") center / cover;
}
.final h2 { font-family: var(--head); font-weight: 900; font-size: clamp(44px, 7vw, 86px); line-height: .95; color: var(--moon); text-shadow: 0 5px 0 var(--blood-2), 0 10px 0 rgba(0, 0, 0, .6); }
.final p { max-width: 560px; margin: 18px auto 34px; color: var(--ink); font-size: 18px; text-shadow: 0 2px 6px #000; }

/* ---------- footer ---------- */
footer { background: #07050a; border-top: 4px solid #000; box-shadow: 0 -4px 0 0 var(--blood-2); padding: 46px 0 34px; }
.foot { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.foot p { color: var(--ink-mute); font-size: 14px; max-width: 420px; margin-top: 10px; }
.foot-links { display: flex; gap: 14px 26px; flex-wrap: wrap; }
.foot-links a { font-family: var(--head); font-weight: 700; font-size: 19px; color: var(--ink-dim); }
.foot-links a:hover { color: var(--gold); }
.copy { margin-top: 30px; padding-top: 18px; border-top: 2px dashed #1f1620; color: var(--ink-mute); font-size: 13px; text-align: center; }

/* ---------- boss page ---------- */
.boss-list { display: grid; gap: 64px; }
.boss {
  display: grid; grid-template-columns: 300px 1fr; gap: 0; overflow: hidden;
}
.boss .portrait {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 26px 16px 22px;
  background:
    radial-gradient(ellipse 55% 14% at 50% 83%, rgba(0, 0, 0, .6), transparent 70%),
    radial-gradient(circle at 50% 55%, var(--glow, rgba(185, 28, 28, .45)), transparent 65%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 4px, transparent 4px 8px),
    #120c17;
  border-right: 4px solid #000;
}
.boss .portrait img { width: auto; height: auto; max-width: 100%; image-rendering: pixelated; animation: breathe 2.6s steps(2) infinite; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .45)); }
.boss .tier { margin-top: 16px; font-family: var(--head); font-weight: 800; font-size: 17px; letter-spacing: .12em; color: var(--gold); text-transform: uppercase; }
.skulls { display: flex; gap: 4px; margin-top: 6px; }
.skulls i { width: 14px; height: 14px; background: #2b1d22; box-shadow: 0 0 0 2px #000; }
.skulls i.on { background: var(--blood); }
.boss .info { padding: 28px 30px 30px; }
.boss .where { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.boss h3 { font-family: var(--head); font-weight: 900; font-size: clamp(36px, 4.4vw, 50px); line-height: 1; color: var(--moon); }
.boss .epithet { font-family: var(--head); font-weight: 700; font-size: 19px; color: #ff6b5c; letter-spacing: .06em; margin: 4px 0 12px; }
.boss .lore { color: var(--ink-dim); font-size: 15.5px; }
.boss h4 { font-family: var(--head); font-weight: 800; font-size: 20px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin: 20px 0 8px; }
.drops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 1100px) { .drops { grid-template-columns: repeat(2, 1fr); } }
.drop { background: #120c17; box-shadow: 0 0 0 2px var(--line); padding: 8px 10px; }
.drop span { display: block; font-family: var(--head); font-size: 15px; color: var(--ink-mute); letter-spacing: .04em; line-height: 1.1; }
.drop b { display: block; font-family: var(--head); font-size: 18px; line-height: 1.1; color: var(--moon); margin-top: 2px; }
.boss .shot { display: block; height: 230px; margin-top: 22px; }
@media (max-width: 820px) {
  .boss { grid-template-columns: 1fr; }
  .boss .portrait { border-right: 0; border-bottom: 4px solid #000; }
}

.mech { counter-reset: none; }

/* ---------- planet page ---------- */
.planet {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; overflow: hidden;
}
.planet.flip { grid-template-columns: 1fr 1.2fr; }
.planet.flip .media { order: 2; border-left: 4px solid #000; border-right: 0; }
.planet .media { position: relative; min-height: 360px; border-right: 4px solid #000; cursor: zoom-in; background: #000; }
.planet .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.planet .media:hover img { transform: scale(1.04); }
.planet .num {
  position: absolute; top: 16px; left: 16px; font-family: var(--head); font-weight: 900; font-size: 22px; color: #000; background: var(--c);
  padding: 4px 10px 2px; box-shadow: 0 0 0 3px #000;
}
.planet .info { padding: 30px 32px; }
.planet h3 { font-family: var(--head); font-weight: 900; font-size: clamp(38px, 4.4vw, 54px); line-height: 1; color: var(--moon); }
.planet .where { font-family: var(--head); font-weight: 700; font-size: 18px; letter-spacing: .06em; color: var(--c); margin: 6px 0 14px; text-transform: uppercase; }
.planet p { color: var(--ink-dim); font-size: 15.5px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 20px 0 6px; }
.fact { background: #120c17; box-shadow: 0 0 0 2px var(--line); padding: 10px 12px; }
.fact span { display: block; font-family: var(--head); font-size: 15px; color: var(--ink-mute); letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; }
.fact b { font-family: var(--head); font-size: 23px; line-height: 1.15; color: var(--moon); }
.fact b small { font-size: 16px; color: var(--ink-dim); }
.planet-list { display: grid; gap: 56px; }
@media (max-width: 900px) {
  .planet, .planet.flip { grid-template-columns: 1fr; }
  .planet .media, .planet.flip .media { order: 0; min-height: 230px; border: 0; border-bottom: 4px solid #000; }
}

.realms { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
@media (max-width: 900px) { .realms { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .realms { grid-template-columns: repeat(2, 1fr); } }
.realm {
  background: #120c17; box-shadow: 0 0 0 2px var(--line); padding: 10px 10px 8px; position: relative;
}
.realm span { font-family: var(--head); font-size: 15px; color: var(--ink-mute); }
.realm b { display: block; font-family: var(--head); font-size: 20px; line-height: 1.1; color: var(--ink); }
.realm.gate { box-shadow: 0 0 0 2px var(--c); }
.realm.gate:after {
  content: attr(data-gate); position: absolute; right: 6px; top: 6px; font-family: var(--head); font-size: 13px; font-weight: 800; color: #000; background: var(--c); padding: 1px 5px 0;
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 30px;
  background: rgba(5, 3, 7, .92);
}
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1600px, 100%); max-height: calc(100vh - 110px); width: auto; box-shadow: 0 0 0 4px #000, 0 0 0 8px var(--gold-2); }
.lightbox .lb-cap { margin-top: 16px; text-align: center; font-family: var(--head); font-size: 22px; color: var(--moon); }
.lightbox button {
  position: absolute; background: rgba(13, 9, 17, .8); color: var(--gold); border: 0; cursor: pointer; font-size: 28px; width: 52px; height: 52px;
  box-shadow: 0 0 0 3px var(--gold-2);
}
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%) scaleX(-1); }
.lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s steps(6); }
.reveal.in { opacity: 1; transform: none; }

.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--gold); color: #2c1e04; font-size: 22px; box-shadow: 0 0 0 4px #6b4d0c, 0 8px 0 0 rgba(0, 0, 0, .5);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.to-top.show { opacity: 1; pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 640px) {
  section { padding: 72px 0; }
  .btn { font-size: 19px; padding: 13px 20px 11px; }
  .tagline { font-size: 16px; }
  .stat { min-width: 44%; }
  .boss .info, .planet .info { padding: 22px 20px; }
}
