/* Último Pavio · landing page. Palette and fonts follow the game's menu: forest green, gold
   frames, torch amber; Cinzel Decorative for the name, Pirata One for headings and buttons,
   Alegreya for text (all SIL OFL, in assets/fonts). */

@font-face { font-family: "Cinzel Decorative"; src: url("assets/fonts/CinzelDecorative-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Pirata One"; src: url("assets/fonts/PirataOne-Regular.ttf") format("truetype"); font-display: swap; }
/* Headings: Pirata One letters with Alegreya digits (Pirata's 0 and 1 read like 8 and l). */
@font-face { font-family: "Pirata Head"; src: url("assets/fonts/PirataOne-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Pirata Head"; src: url("assets/fonts/Alegreya-Variable.ttf") format("truetype"); unicode-range: U+0030-0039; font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("assets/fonts/Alegreya-Variable.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }

:root {
  --bg: #0b120e;
  --bg-2: #101c16;
  --panel: #132219;
  --panel-2: #183026;
  --line: #2c4436;
  --gold: #e1b76e;
  --gold-hi: #f6dc9a;
  --ink: #f4e4bf;
  --muted: #b9ab88;
  --ember: #ff8a2b;
  --ember-hi: #ffc35a;
  --blood: #7a1f1f;
  --font-title: "Cinzel Decorative", Georgia, serif;
  --font-head: "Pirata Head", "Pirata One", "Times New Roman", serif;
  --font-body: "Alegreya", Georgia, serif;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 19px/1.6 var(--font-body);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: var(--gold-hi); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); color: var(--gold-hi); }
h3 { font-size: 1.7rem; color: var(--gold); }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; }
.lead { color: var(--muted); max-width: 640px; margin-inline: auto; }
.eyebrow {
  font-family: var(--font-head); font-size: 1.15rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ember-hi); margin-bottom: .6em;
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #111; padding: 8px 12px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }

/* ---------- Buttons ---------- */
.btn {
  --glow: rgba(255, 150, 60, .0);
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  font: 1.4rem/1 var(--font-head); letter-spacing: .03em; text-decoration: none; color: var(--ink);
  padding: .78em 1.4em; border-radius: 10px; border: 2px solid var(--gold);
  background: linear-gradient(180deg, #1c3328, #12231b);
  box-shadow: inset 0 0 0 1px rgba(246, 220, 154, .15), 0 0 0 0 var(--glow);
  transition: transform .2s ease, box-shadow .3s ease, background .3s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(246, 220, 154, .3), 0 10px 30px rgba(225, 183, 110, .25); }
.btn:focus-visible { outline: 3px solid var(--ember-hi); outline-offset: 3px; }
.btn--flame {
  border-color: #f0b35c;
  background: linear-gradient(180deg, #8a2f12, #5b1a0c);
  box-shadow: inset 0 1px 0 rgba(255, 210, 140, .35), 0 0 24px rgba(255, 120, 40, .35);
  animation: breathe 3.2s ease-in-out infinite;
}
.btn--flame:hover { background: linear-gradient(180deg, #a33a16, #6e200e); box-shadow: inset 0 1px 0 rgba(255, 210, 140, .45), 0 12px 40px rgba(255, 130, 40, .55); }
.btn--ghost { background: rgba(10, 18, 14, .45); backdrop-filter: blur(6px); }
.btn--small { font-size: 1.15rem; padding: .55em 1em; }
.btn--wide { width: 100%; }
.btn__price:not(:empty) { font-family: var(--font-body); font-weight: 700; font-size: .85em; opacity: .9; padding-left: .5em; border-left: 1px solid rgba(255, 220, 160, .45); }
@keyframes breathe { 50% { box-shadow: inset 0 1px 0 rgba(255, 210, 140, .35), 0 0 40px rgba(255, 130, 40, .6); } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 3vw, 36px);
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.nav.is-scrolled { background: rgba(9, 16, 12, .86); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); padding-block: 8px; }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.nav__name { font: 700 1.05rem var(--font-title); letter-spacing: .04em; }
.nav__links { display: flex; gap: 22px; margin-left: auto; }
.nav__links a { font: 1.2rem var(--font-head); color: var(--ink); text-decoration: none; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 2px; background: var(--ember-hi); transition: right .25s ease; }
.nav__links a:hover::after { right: 0; }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang button { background: transparent; color: var(--muted); border: 0; font: 700 .85rem var(--font-body); padding: 6px 10px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--gold); color: #1a1208; }

/* Sound toggle: a speaker, and three bars that dance while the theme plays. */
.sound {
  position: relative; width: 42px; height: 38px; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(10, 18, 14, .5); color: var(--gold); cursor: pointer; display: grid; place-items: center;
}
.sound svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sound .sound__speaker { fill: currentColor; stroke: none; }
.sound .sound__waves { display: none; }
.sound[aria-pressed="true"] .sound__waves { display: block; }
.sound[aria-pressed="true"] .sound__mute { display: none; }
.sound__bars { position: absolute; right: 4px; bottom: 4px; display: none; gap: 2px; align-items: flex-end; height: 10px; }
.sound[aria-pressed="true"] .sound__bars { display: flex; }
.sound__bars i { width: 2px; background: var(--ember-hi); animation: bar 0.9s ease-in-out infinite; }
.sound__bars i:nth-child(2) { animation-delay: -.3s; }
.sound__bars i:nth-child(3) { animation-delay: -.6s; }
@keyframes bar { 0%, 100% { height: 3px; } 50% { height: 10px; } }
.sound-hint { position: fixed; right: 18px; bottom: 18px; z-index: 60; animation: rise .6s ease both; }
.sound-hint__btn {
  font: 1.15rem var(--font-head); color: var(--ink); background: rgba(19, 34, 25, .92); border: 1px solid var(--gold);
  border-radius: 999px; padding: .6em 1.2em .6em 2.6em; cursor: pointer; box-shadow: var(--shadow); position: relative;
}
.sound-hint__btn::before { content: "♪"; position: absolute; left: 1em; top: 50%; transform: translateY(-50%); color: var(--ember-hi); animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-70%); } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; padding: 0; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero__scene { position: absolute; inset: 0; z-index: -3; }
.hero__poster, .hero__live { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hero__poster { object-fit: cover; object-position: 58% 50%; animation: kenburns 30s ease-in-out infinite alternate; }
.hero__live { opacity: 0; transition: opacity 1.4s ease; pointer-events: none; }
.hero.is-live .hero__live { opacity: 1; }
.hero.is-live .hero__poster { animation: none; }
@keyframes kenburns { to { transform: scale(1.08) translateX(-1.5%); } }
.hero__embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 13, 10, .92) 0%, rgba(7, 13, 10, .72) 34%, rgba(7, 13, 10, .1) 64%, transparent 80%),
    linear-gradient(0deg, var(--bg) 0%, transparent 22%);
}
.hero__content { width: min(1180px, 100% - 32px); margin-inline: auto; padding: 120px 0 90px; max-width: 1180px; }
.hero__content > * { max-width: 560px; }
.hero__title { margin: 0 0 .35em; position: relative; display: inline-block; }
.hero__title-main {
  font: 700 clamp(3rem, 7.4vw, 6.2rem)/1 var(--font-title); letter-spacing: .02em;
  background: linear-gradient(180deg, #fff4d6 0%, var(--gold-hi) 45%, #c98b3a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(255, 140, 50, .35));
  animation: shimmer 6s ease-in-out infinite;
}
.hero__title-flame {
  position: absolute; left: 6%; top: -.55em; width: .28em; height: .5em; font-size: clamp(3rem, 7.4vw, 6.2rem);
  background: radial-gradient(50% 60% at 50% 70%, #fff6c8 0%, var(--ember-hi) 35%, var(--ember) 65%, transparent 70%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; filter: blur(1px);
  animation: flicker 1.6s ease-in-out infinite; transform-origin: 50% 100%;
}
@keyframes shimmer { 50% { filter: drop-shadow(0 4px 28px rgba(255, 160, 60, .55)); } }
@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(-2deg); opacity: .95; }
  25% { transform: scale(1.08, .94) rotate(3deg); opacity: 1; }
  50% { transform: scale(.94, 1.06) rotate(-4deg); opacity: .85; }
  75% { transform: scale(1.05, .97) rotate(2deg); opacity: 1; }
}
.hero__tagline { font-size: clamp(1.15rem, 1.8vw, 1.4rem); color: #ecdcb6; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.6em 0 1.4em; }
.hero__badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 1rem; }
.hero__badges li::before { content: "◆"; color: var(--gold); margin-right: .45em; font-size: .7em; vertical-align: .15em; }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; width: 28px; height: 46px; border: 2px solid rgba(246, 220, 154, .7); border-radius: 16px; transform: translateX(-50%); }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold-hi); animation: scroll 1.8s ease-in-out infinite; }
@keyframes scroll { 70% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delay, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Intro, candle and numbers ---------- */
.intro { background: radial-gradient(60% 50% at 20% 30%, rgba(255, 130, 40, .08), transparent 70%), var(--bg); }
.intro__grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.intro__text p { color: #e0d2ae; font-size: 1.15rem; }
.candle { position: relative; height: 360px; display: grid; place-items: end center; }
.candle__glow { position: absolute; left: 50%; top: 40px; width: 280px; height: 280px; transform: translateX(-50%); background: radial-gradient(circle, rgba(255, 170, 70, .35), transparent 65%); animation: glow 2.4s ease-in-out infinite; }
.candle__flame {
  position: absolute; left: 50%; bottom: 228px; width: 34px; height: 70px; margin-left: -17px; transform-origin: 50% 100%;
  background: radial-gradient(50% 70% at 50% 75%, #fff8d8 0%, #ffd36b 30%, #ff8a2b 62%, rgba(255, 80, 20, 0) 72%);
  border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%; filter: blur(.6px); animation: flicker 1.3s ease-in-out infinite;
}
.candle__core { position: absolute; left: 50%; bottom: 8px; width: 10px; height: 22px; margin-left: -5px; border-radius: 50%; background: rgba(120, 170, 255, .6); filter: blur(2px); }
.candle__wick { position: absolute; left: 50%; bottom: 220px; width: 3px; height: 14px; margin-left: -1.5px; background: #1a120c; border-radius: 2px; }
.candle__body {
  position: relative; width: 74px; height: 130px; margin-bottom: 92px; border-radius: 8px 8px 4px 4px;
  background: linear-gradient(90deg, #cdbb94, #f3e7c6 40%, #e2d2ab 70%, #b9a47a);
  box-shadow: inset 0 10px 14px rgba(255, 240, 200, .5), 0 0 40px rgba(255, 150, 60, .25);
  animation: melt 40s linear infinite;
  transform-origin: 50% 100%;
}
.candle__body span { position: absolute; top: 4px; width: 9px; border-radius: 0 0 6px 6px; background: #efe1bb; }
.candle__body span:first-child { left: 12px; height: 34px; }
.candle__body span:last-child { right: 16px; height: 22px; }
.candle__plate { position: absolute; bottom: 74px; width: 170px; height: 22px; border-radius: 50%; background: linear-gradient(180deg, #c49445, #6b4a1d); box-shadow: 0 8px 20px rgba(0, 0, 0, .6); }
@keyframes glow { 50% { opacity: .7; transform: translateX(-50%) scale(.94); } }
@keyframes melt { 0% { transform: scaleY(1); } 100% { transform: scaleY(.55); } }

.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: clamp(50px, 8vw, 90px); }
.stat { text-align: center; padding: 26px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel), var(--bg-2)); position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; inset: auto 20% 0; height: 2px; background: linear-gradient(90deg, transparent, var(--ember-hi), transparent); }
.stat__num { display: block; font: 3rem/1 var(--font-head); color: var(--gold-hi); text-shadow: 0 0 22px rgba(255, 170, 70, .35); }
.stat__label { color: var(--muted); font-size: 1rem; }

/* ---------- Feature cards ---------- */
.features { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.card {
  position: relative; padding: 30px 28px 26px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--panel-2), var(--panel) 60%);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 170, 70, .16), transparent 45%);
}
.card:hover { transform: translateY(-6px); border-color: rgba(225, 183, 110, .6); box-shadow: var(--shadow); }
.card:hover::after { opacity: 1; }
.card p { color: #d9cba7; font-size: 1.05rem; margin: 0; }
.card__icon { width: 46px; height: 46px; margin-bottom: 16px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; transition: stroke .3s ease, transform .4s ease; }
.card:hover .card__icon { stroke: var(--ember-hi); transform: rotate(-6deg) scale(1.08); }

/* ---------- Gallery slider ---------- */
.gallery { background: var(--bg-2); }
.slider { margin-top: 44px; }
.slider__frame { position: relative; border-radius: 16px; overflow: hidden; border: 2px solid var(--gold); box-shadow: var(--shadow), 0 0 0 6px rgba(225, 183, 110, .08); aspect-ratio: 1672 / 941; background: #000; }
.slider__track { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; cursor: zoom-in; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform 6s ease; }
.slide.is-active img { transform: scale(1); }
.slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; z-index: 2;
  border: 1px solid var(--gold); background: rgba(10, 18, 14, .7); color: var(--gold-hi); font-size: 2rem; line-height: 1; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.slider__arrow:hover { background: rgba(122, 31, 31, .85); transform: translateY(-50%) scale(1.08); }
.slider__arrow--prev { left: 14px; }
.slider__arrow--next { right: 14px; }
.slider__caption { text-align: center; color: var(--muted); margin: 18px 0 14px; min-height: 1.6em; font-size: 1.1rem; }
.slider__thumbs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.slider__thumbs button { width: 96px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; opacity: .55; transition: opacity .25s ease, border-color .25s ease, transform .25s ease; background: #000; }
.slider__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.slider__thumbs button[aria-selected="true"] { opacity: 1; border-color: var(--ember-hi); transform: translateY(-3px); }
.slider__thumbs button:hover { opacity: .9; }

/* ---------- Bestiary marquee ---------- */
.bestiary { background: radial-gradient(70% 60% at 50% 40%, rgba(122, 31, 31, .25), transparent 70%), var(--bg); overflow: hidden; }
.marquee { margin-top: 40px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 18px; }
.marquee__track { display: flex; gap: 18px; width: max-content; animation: marquee 60s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.beast { width: 190px; flex: none; text-align: center; }
.beast__frame {
  height: 210px; border-radius: 12px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 60%, #263b2f, #0f1a14 70%);
  display: grid; place-items: center; padding: 10px; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.beast__frame img { max-height: 190px; width: auto; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.beast:hover .beast__frame { transform: translateY(-6px) scale(1.03); border-color: var(--ember); box-shadow: 0 0 30px rgba(255, 120, 40, .35); }
.beast__name { font: 1.2rem var(--font-head); color: var(--gold); margin-top: 8px; }

/* ---------- Steps ---------- */
.journey { background: var(--bg-2); }
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 34px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), var(--ember-hi), var(--gold), transparent); opacity: .5; }
.step { text-align: center; position: relative; }
.step__num {
  display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%;
  font: 1.9rem var(--font-head); color: #1a1208; background: radial-gradient(circle at 35% 30%, var(--gold-hi), #b07a2c);
  box-shadow: 0 0 0 6px var(--bg-2), 0 0 26px rgba(255, 170, 70, .45);
}
.step p { color: #d6c8a3; font-size: 1.05rem; }

/* ---------- Ecos da Terra ---------- */
.ecos { overflow: hidden; }
.ecos__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 80% 30%, rgba(46, 120, 70, .22), transparent 70%), linear-gradient(180deg, #0c1711, #0a130e); }
.ecos__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.ecos__text p { color: #dccfab; font-size: 1.12rem; }
.ecos__shot { margin: 0; border-radius: 14px; overflow: hidden; border: 2px solid var(--gold); box-shadow: var(--shadow); transform: perspective(1200px) rotateY(-6deg); transition: transform .6s ease; }
.ecos__shot:hover { transform: perspective(1200px) rotateY(0); }
.biomes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px 4px; margin-top: 26px; }
.biome { text-align: center; }
.biome img { width: 100%; aspect-ratio: 192 / 166; object-fit: contain; animation: float 5s ease-in-out infinite; animation-delay: var(--d, 0s); image-rendering: pixelated; }
.biome span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.2; }
@keyframes float { 50% { transform: translateY(-6px); } }
.peoples { display: grid; grid-template-columns: repeat(4, minmax(0, 92px)); gap: 12px 14px; justify-content: center; margin-top: 18px; }
.people { text-align: center; perspective: 600px; }
.people__flip { position: relative; height: 92px; transform-style: preserve-3d; transition: transform .8s ease; }
.people:hover .people__flip, .people.is-flipped .people__flip { transform: rotateY(180deg); }
.people__flip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; border: 1px solid var(--gold); backface-visibility: hidden; image-rendering: pixelated; }
.people__flip img + img { transform: rotateY(180deg); }
.people span { font-size: .85rem; color: var(--gold); display: block; margin-top: 4px; line-height: 1.1; }
.people small { display: block; color: var(--muted); font-size: .72rem; }
.ecos__bosses { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; margin-top: 56px; }
.ecos-boss { text-align: center; width: 100%; }
.ecos-boss__img { width: 100%; aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 60%, #2a3b25, #0d160f 70%); display: grid; place-items: center; overflow: hidden; transition: transform .3s ease, border-color .3s ease; }
.ecos-boss__img img { max-height: 92%; width: auto; image-rendering: pixelated; }
.ecos-boss:hover .ecos-boss__img { transform: translateY(-5px); border-color: var(--ember); }
.ecos-boss span { display: block; font: 1rem var(--font-head); color: var(--gold); margin-top: 6px; line-height: 1.1; }

/* ---------- Buy ---------- */
.buy { background: radial-gradient(50% 60% at 30% 50%, rgba(255, 120, 40, .12), transparent 70%), var(--bg-2); }
.buy__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: stretch; }
.buy__card {
  text-align: center; padding: 40px 34px; border-radius: 18px; border: 2px solid var(--gold); position: relative;
  background: linear-gradient(170deg, #1d3528, #102019 70%); box-shadow: var(--shadow), 0 0 60px rgba(255, 140, 50, .12);
}
.buy__card::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(225, 183, 110, .3); border-radius: 12px; pointer-events: none; }
.buy__icon { margin: 0 auto 12px; filter: drop-shadow(0 0 20px rgba(255, 150, 60, .5)); animation: flicker-soft 3s ease-in-out infinite; }
@keyframes flicker-soft { 50% { filter: drop-shadow(0 0 34px rgba(255, 150, 60, .75)); } }
.buy__card h2 { font: 700 clamp(1.8rem, 3vw, 2.4rem) var(--font-title); }
.buy__sub { color: var(--muted); }
.buy__price { font: 3rem/1 var(--font-head); color: var(--gold-hi); margin: .2em 0 .5em; }
.buy__list { list-style: none; padding: 0; margin: 22px 0 0; text-align: left; display: grid; gap: 8px; }
.buy__list li::before { content: "✦"; color: var(--ember-hi); margin-right: .6em; }
.buy__specs { padding: 36px 32px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); }
.buy__specs dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; margin: 18px 0 0; }
.buy__specs dt { color: var(--gold); font-family: var(--font-head); font-size: 1.2rem; }
.buy__specs dd { margin: 0; color: #e1d3ae; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg); }
.faq details { border: 1px solid var(--line); border-radius: 12px; margin-top: 14px; background: var(--panel); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font: 1.35rem var(--font-head); color: var(--gold-hi); position: relative; padding-right: 54px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--ember-hi); font-size: 1.6rem; transition: transform .3s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 18px; margin: 0; color: #d9cba7; animation: rise .4s ease; }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--line); background: #08100c; }
.footer__grid { display: grid; gap: 14px; justify-items: center; text-align: center; }
.footer__brand { display: flex; align-items: center; gap: 16px; text-align: left; }
.footer__brand p { margin: 0; color: var(--muted); }
.footer__name { font: 700 1.3rem var(--font-title); color: var(--gold-hi) !important; }
.footer__credit { font: 1.25rem var(--font-head); color: var(--gold); margin: 6px 0 0; }
.footer__small { color: #7f775f; font-size: .9rem; margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(4, 8, 6, .92); display: grid; place-items: center; padding: 24px; animation: rise .3s ease; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1672px, 100%); max-height: 90vh; border: 2px solid var(--gold); border-radius: 10px; box-shadow: var(--shadow); }
.lightbox__close { position: absolute; top: 16px; right: 20px; font-size: 2.4rem; color: var(--gold-hi); background: none; border: 0; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .ecos__grid, .buy__grid { grid-template-columns: 1fr; }
  .ecos__bosses { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav__links { display: none; }
  .nav__name { display: none; }
  .nav__actions { margin-left: auto; }
  .hero__shade { background: linear-gradient(0deg, rgba(7, 13, 10, .95) 0%, rgba(7, 13, 10, .55) 60%, rgba(7, 13, 10, .25) 100%); }
  .hero { align-items: flex-end; }
  .intro__grid { grid-template-columns: 1fr; }
  .candle { height: 300px; }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .biomes { grid-template-columns: repeat(5, 1fr); }
  .ecos__bosses { grid-template-columns: repeat(2, 1fr); }
  .slider__arrow { width: 40px; height: 40px; font-size: 1.5rem; }
  .slider__thumbs button { width: 72px; }
  .beast { width: 150px; }
  .beast__frame { height: 170px; }
  .beast__frame img { max-height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
