/* =========================================================
   QuestWorld RPG — landing page
   Tema escuro de "noite na floresta" com detalhes em pixel art.
   Imagens: assets/img/ (sprites) e assets/img/Prints/ (prints).
   ========================================================= */

:root {
  /* Paleta do jogo */
  --bg: #15100b;
  --bg-alt: #1c150e;
  --surface: #261c13;
  --surface-2: #31241a;
  --line: #4a3727;
  --ink: #0d0906;
  --wood-dark: #3b2a1c;
  --wood: #8d5b32;
  --frame-shadow: #1f130b;
  --gold: #f2c94c;
  --gold-soft: #d9b45a;
  --cream: #e6dcc4;
  --muted: #a8987c;
  --grass: #5fae4a;
  --grass-dark: #3d7a32;
  --sky: #8fd0e8;
  --roof: #a63a2e;
  --purple: #2a2238;
  --purple-light: #5a4680;

  --font-title: "Press Start 2P", monospace;
  --font-text: "Pixelify Sans", "Trebuchet MS", sans-serif;

  --header-h: 68px;
  --radius: 0;          /* pixel art: cantos retos */
  --frame: 0 0 0 3px var(--ink), 8px 8px 0 3px rgba(0, 0, 0, .45);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.55;
  overflow-x: hidden;
}
/* Pixel art nítida em todas as imagens, fundos e sprites */
img, canvas, .sprite, .hero__bg, .boss, .boss__warning, .farm-strip {
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #ffe08a; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
code {
  font-family: inherit; font-weight: 700;
  color: var(--gold);
  background: rgba(0, 0, 0, .35);
  padding: 0 .35em;
}
:focus-visible { outline: 3px dashed var(--gold); outline-offset: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 500;
  background: var(--gold); color: var(--ink); padding: 8px 12px; font-weight: 700;
}
.skip-link:focus { top: 8px; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 40px); }

/* ---------- Prints (1920x1080) com moldura de madeira pixelada ---------- */
.shot {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--wood-dark);
  border: 4px solid var(--wood-dark);
  box-shadow: 6px 6px 0 var(--frame-shadow);
}
.is-zoomable { cursor: zoom-in; transition: transform .15s steps(2), filter .15s; }
.is-zoomable:hover { transform: translate(-2px, -2px); filter: brightness(1.08); }

/* ---------- Botões ---------- */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--cream);
  --btn-edge: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  font-family: var(--font-title);
  font-size: .72rem;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 3px solid var(--btn-edge);
  padding: 14px 20px;
  cursor: pointer;
  box-shadow:
    inset 3px 3px 0 rgba(255, 255, 255, .28),
    inset -3px -3px 0 rgba(0, 0, 0, .25),
    0 6px 0 var(--ink);
  transition: transform .06s steps(1), filter .1s;
  user-select: none;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.1); color: var(--btn-fg); }
/* efeito de "afundar" ao clicar */
.btn:active { transform: translateY(6px); box-shadow: inset 3px 3px 0 rgba(0, 0, 0, .25), 0 0 0 var(--ink); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--wood-dark); }
.btn--ghost {
  --btn-bg: rgba(13, 9, 6, .55); --btn-fg: var(--cream);
  box-shadow: inset 0 0 0 2px rgba(230, 220, 196, .25), 0 6px 0 var(--ink);
}
.btn--big { font-size: clamp(.75rem, 1.6vw, .9rem); padding: 20px 28px; }
.btn--small { font-size: .58rem; padding: 10px 14px; box-shadow: inset 3px 3px 0 rgba(255,255,255,.25), 0 4px 0 var(--ink); }
.btn__arrow { display: inline-block; animation: bob 1s steps(2) infinite; }

/* ---------- Pequenos componentes ---------- */
.badge {
  display: inline-block;
  font-family: var(--font-title); font-size: .55rem; line-height: 1;
  padding: 7px 9px;
  color: var(--ink); background: var(--gold);
  border: 2px solid var(--ink);
  vertical-align: middle;
}
.badge--green { background: var(--grass); }
.badge--purple { background: var(--purple-light); color: var(--cream); }
.badge--cc0 { background: var(--cream); font-size: .5rem; padding: 5px 7px; margin-left: 6px; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .9rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 14px;
}
.kicker::before { content: ""; width: 10px; height: 10px; background: currentColor; box-shadow: 3px 3px 0 var(--ink); }
.kicker--danger { color: #ff8a7a; }

.chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: .95rem; font-weight: 500;
  padding: 3px 10px;
  color: var(--cream);
  background: rgba(0, 0, 0, .3);
  border: 2px solid var(--line);
}

.pixel-icon {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 44px; height: 44px;
  background: var(--wood-dark);
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .07);
}
.pixel-icon canvas { width: 30px; height: 30px; }

/* =========================================================
   MENU FIXO
   ========================================================= */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background .2s, box-shadow .2s;
}
.topbar.is-scrolled {
  background: rgba(21, 16, 11, .96);
  box-shadow: 0 3px 0 var(--ink), 0 6px 0 rgba(0, 0, 0, .25);
}
.topbar__inner {
  height: 100%;
  width: min(1240px, 100% - 40px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--gold);
  font-family: var(--font-title); font-size: .75rem;
  text-shadow: 2px 2px 0 var(--ink);
}
.brand img { width: 36px; height: 36px; }

.menu { display: flex; align-items: center; gap: 4px; }
.menu a:not(.btn) {
  font-weight: 500; font-size: 1.05rem;
  color: var(--cream); text-decoration: none;
  padding: 6px 12px;
  text-shadow: 2px 2px 0 var(--ink);
  border-bottom: 3px solid transparent;
}
.menu a:not(.btn):hover, .menu a.is-active { color: var(--gold); border-bottom-color: var(--gold); }
.menu__cta { margin-left: 12px; }

.burger {
  display: none;
  width: 46px; height: 42px; padding: 8px;
  background: var(--surface-2); border: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink); cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.burger span { display: block; height: 4px; background: var(--cream); transition: transform .15s, opacity .15s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 980px) {
  .burger { display: flex; }
  .topbar { background: rgba(21, 16, 11, .96); box-shadow: 0 3px 0 var(--ink); }
  .menu {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 20px;
    background: var(--bg);
    box-shadow: 0 3px 0 var(--ink), 0 12px 0 rgba(0, 0, 0, .35);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform .2s steps(4), visibility 0s .2s;
  }
  .menu.is-open { transform: translateY(0); visibility: visible; transition: transform .2s steps(4); }
  .menu a:not(.btn) { padding: 14px 4px; border-bottom: 2px solid var(--line); font-size: 1.2rem; }
  .menu__cta { margin: 16px 0 0; }
}

/* =========================================================
   TOPO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 40px) 20px 96px;
  text-align: center;
  background: var(--bg);
}
/* Fundo: assets/img/Prints/02_casa_e_fazenda.png com zoom lento infinito */
.hero__bg {
  position: absolute; inset: 0;
  background: var(--wood-dark) url("assets/img/Prints/02_casa_e_fazenda.png") center / cover no-repeat;
  animation: hero-zoom 30s ease-in-out infinite alternate;
  will-change: transform;
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 12, 6, .55) 0%, rgba(20, 12, 6, .85) 100%),
    linear-gradient(180deg, transparent 75%, var(--bg) 100%);
}
.hero__rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.hero__content { position: relative; z-index: 2; max-width: 980px; display: flex; flex-direction: column; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; margin-bottom: 28px;
  font-weight: 500; font-size: 1rem;
  background: rgba(13, 9, 6, .65);
  border: 2px solid rgba(230, 220, 196, .2);
}
.dot { width: 10px; height: 10px; background: var(--grass); animation: blink 1.2s steps(2) infinite; }

.logo-row { display: flex; align-items: center; justify-content: center; gap: 28px; }
/* GameIcon.png (64x64) ampliado 2x */
.logo__icon {
  width: 128px; height: 128px; flex: 0 0 auto;
  filter: drop-shadow(6px 6px 0 var(--ink));
  animation: bob 1.6s steps(2) infinite;
}
.logo { display: flex; flex-direction: column; align-items: flex-start; gap: .35em; }
.logo__top {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 6.2vw, 4.4rem);
  line-height: 1.1; letter-spacing: .03em;
  color: var(--gold);
  text-shadow: 4px 4px 0 var(--roof), 8px 8px 0 var(--ink);
}
.logo__bottom {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(.9rem, 2.6vw, 1.6rem);
  color: var(--cream);
  background: var(--roof);
  padding: .45em .7em .35em;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  text-shadow: 2px 2px 0 var(--ink);
}
.tagline {
  margin-top: 36px;
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700;
  line-height: 1.3;
  text-shadow: 3px 3px 0 var(--ink);
}
.hero__sub {
  margin-top: 14px; max-width: 54ch;
  font-size: 1.2rem; color: #d4c8ad;
  text-shadow: 2px 2px 0 var(--ink);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 36px; }
.hero__meta {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0;
  color: var(--muted); font-size: 1rem;
}
.hero__meta li + li::before { content: "■"; font-size: .55em; margin: 0 12px; vertical-align: middle; color: var(--line); }

.scroll-hint {
  position: absolute; bottom: 24px; left: 50%; z-index: 2;
  transform: translateX(-50%);
  color: var(--gold); text-decoration: none;
  font-family: var(--font-title); font-size: 1rem;
  animation: bob 1s steps(2) infinite;
}

/* =========================================================
   SEÇÕES
   ========================================================= */
.section { position: relative; padding: 112px 0; }
.section--alt { background: var(--bg-alt); box-shadow: inset 0 3px 0 var(--ink), inset 0 -3px 0 var(--ink); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section__title {
  font-family: var(--font-title);
  font-size: clamp(1.15rem, 2.8vw, 1.85rem);
  line-height: 1.5;
  color: var(--cream);
  text-shadow: 3px 3px 0 var(--ink);
}
.section__title--left { text-align: left; }
.section__lead { margin-top: 18px; font-size: 1.25rem; color: var(--muted); }

/* Aparecer ao rolar (só quando o JS está ativo) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s steps(6); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   GALERIA — faixa de filme que rola sozinha
   ========================================================= */
.gallery { padding: 72px 0 88px; background: var(--bg); }
.gallery__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.strip {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.strip__track {
  list-style: none; margin: 0; padding: 6px 0 16px;
  display: flex; gap: 24px; width: max-content;
  animation: marquee 90s linear infinite;
}
.strip:hover .strip__track, .strip:focus-within .strip__track { animation-play-state: paused; }
.strip__item {
  display: block; width: 380px; padding: 0;
  background: none; border: 0; cursor: zoom-in; text-align: left;
  color: var(--muted); font: inherit;
}
.strip__item img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  background: var(--wood-dark);
  border: 4px solid var(--wood-dark);
  box-shadow: 6px 6px 0 var(--frame-shadow);
  transition: transform .15s steps(2), border-color .15s;
}
.strip__item:hover img, .strip__item:focus-visible img { transform: translateY(-4px); border-color: var(--gold); }
.strip__cap { display: block; margin-top: 12px; font-size: 1rem; }
.strip__item:hover .strip__cap { color: var(--cream); }

/* =========================================================
   RECURSOS
   ========================================================= */
#recursos { padding-bottom: 0; }
#recursos > .container { padding-bottom: 112px; }

.features { display: grid; gap: 104px; }
.feature {
  display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center;
}
.feature--flip .feature__shot { order: 2; }
.feature__tag {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 18px;
}
.feature h3 {
  font-family: var(--font-title);
  font-size: clamp(.95rem, 1.9vw, 1.2rem); line-height: 1.6;
  color: var(--cream);
  text-shadow: 2px 2px 0 var(--ink);
  margin-bottom: 16px;
}
.feature__text > p:not(.feature__tag) { color: #cfc3a8; font-size: 1.15rem; }

.extras {
  list-style: none; padding: 0; margin: 112px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.extras li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px;
  background: var(--surface);
  border: 3px solid var(--line);
  box-shadow: var(--frame);
}
.extras strong { display: block; color: var(--gold); font-size: 1.1rem; margin-bottom: 2px; }
.extras span:not(.pixel-icon) { display: block; color: var(--muted); font-size: 1rem; line-height: 1.4; }

/* Faixa decorativa: assets/img/Plants.png repetido.
   Para mostrar outra parte da folha, mude o 2º valor de background-position. */
.farm-strip {
  height: 144px;
  background: #3a2716 url("assets/img/Plants.png") 0 0 / 768px 432px repeat-x;
  box-shadow: inset 0 3px 0 var(--ink), inset 0 -12px 0 #2a1c10;
}

/* =========================================================
   BIOMAS (abas)
   ========================================================= */
.biomes { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.biomes__tabs { display: flex; flex-direction: column; gap: 10px; }
.biomes__tabs button {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  font: inherit; font-weight: 700; font-size: 1.15rem; text-align: left;
  color: var(--muted);
  background: var(--surface);
  border: 3px solid var(--line);
  cursor: pointer;
  transition: transform .12s steps(2), color .12s;
}
.biomes__tabs button::before {
  content: ""; flex: 0 0 auto; width: 14px; height: 14px;
  background: var(--swatch); border: 2px solid var(--ink);
}
.biomes__tabs button:hover { color: var(--cream); }
.biomes__tabs button[aria-selected="true"] {
  color: var(--ink); background: var(--gold); border-color: var(--ink);
  transform: translateX(8px);
  box-shadow: 0 4px 0 var(--ink);
}
.biomes__view { margin: 0; position: relative; }
.biomes__view .shot { transition: opacity .2s; }
.biomes__view.is-swapping .shot { opacity: 0; }
.biomes__view figcaption {
  position: absolute; left: 20px; bottom: 20px; right: 20px;
  max-width: 460px;
  padding: 16px 20px;
  background: rgba(13, 9, 6, .88);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .4);
  pointer-events: none;
}
.biomes__view strong { display: block; font-family: var(--font-title); font-weight: 400; font-size: .85rem; color: var(--gold); margin-bottom: 8px; }
.biomes__view span { font-size: 1.15rem; }

/* =========================================================
   SPRITES ANIMADOS
   Quadros de 64x64, linha de cima = virado para baixo.
   --sheet-w = largura da folha · --frames = nº de quadros · --scale = zoom
   ========================================================= */
.sprite {
  --scale: 3;
  --sheet-w: 768px;
  --frames: 12;
  --dur: 1s;
  width: calc(64px * var(--scale));
  height: calc(64px * var(--scale));
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: calc(var(--sheet-w) * var(--scale)) calc(256px * var(--scale));
  animation: sprite var(--dur) steps(var(--frames)) infinite;
}
@keyframes sprite  { to { background-position: calc(var(--sheet-w) * var(--scale) * -1) 0; } }
@keyframes sprite2 { to { background-position: calc(var(--sheet-w) * var(--scale) * -1) 0; } }

.sprite--hero  { background-image: url("assets/img/Sword_Idle_with_shadow.png"); --sheet-w: 768px; --frames: 12; --dur: 1s; }
.sprite--slime { background-image: url("assets/img/Slime1_Idle_with_shadow.png"); --sheet-w: 384px; --frames: 6; --dur: .8s; }
.sprite--orc   { background-image: url("assets/img/orc3_idle_with_shadow.png");   --sheet-w: 256px; --frames: 4; --dur: .7s; }

.char:hover .sprite--hero,
.char.is-attacking .sprite--hero {
  background-image: url("assets/img/Sword_Walk_Attack_with_shadow.png");
  --sheet-w: 384px; --frames: 6; --dur: .6s;
  animation-name: sprite2; /* reinicia a animação com os novos valores */
}

/* =========================================================
   PERSONAGENS
   ========================================================= */
.chars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.char {
  background: var(--surface);
  border: 3px solid var(--line);
  box-shadow: var(--frame);
  transition: transform .15s steps(3);
}
.char:hover { transform: translateY(-6px); }
.char__stage {
  display: grid; place-items: center;
  height: 250px;
  background:
    linear-gradient(180deg, #1d2a3d 0 60%, var(--grass) 60% 63%, var(--grass-dark) 63% 100%);
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
}
.char__info { padding: 22px 24px 26px; }
.char__role {
  display: inline-block; margin-bottom: 12px;
  font-family: var(--font-title); font-size: .5rem;
  padding: 6px 8px;
  color: var(--cream); background: var(--roof);
  border: 2px solid var(--ink);
}
.char__role--hero { background: var(--grass-dark); }
.char h3 { font-family: var(--font-title); font-size: .85rem; color: var(--gold); margin-bottom: 10px; text-shadow: 2px 2px 0 var(--ink); }
.char p:not(.char__role) { color: #cfc3a8; font-size: 1.1rem; }
.char small { display: block; margin-top: 10px; color: var(--muted); font-size: .95rem; }

/* =========================================================
   CHEFE
   Fundo: assets/img/Prints/15_rei_orc_pisao.png escurecido em roxo
   ========================================================= */
.boss {
  background:
    linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%),
    linear-gradient(rgba(42, 34, 56, .75), rgba(42, 34, 56, .75)),
    var(--purple) url("assets/img/Prints/15_rei_orc_pisao.png") center / cover no-repeat;
  overflow: hidden;
}
.boss__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.boss__art { position: relative; display: grid; place-items: center; min-height: 420px; }
.boss__warning {
  position: absolute; left: 50%; top: 58%;
  width: 360px; height: 360px;
  translate: -50% -50%;
  background: url("assets/img/SlamWarning.png") center / contain no-repeat;
  animation: warn 1.2s ease-in-out infinite;
}
/* Rei Orc: sprite do orc ampliado 4x em tom roxo */
.sprite--boss {
  --scale: 4;
  position: relative; z-index: 1;
  filter: hue-rotate(250deg) saturate(1.3) drop-shadow(0 0 18px rgba(160, 110, 255, .45));
}
.boss__text > p { margin-top: 18px; font-size: 1.2rem; color: #ddd2ba; text-shadow: 2px 2px 0 var(--ink); }
.boss__text strong { color: #ff8a7a; }
.boss__stats { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 12px; max-width: 460px; }
.boss__stats li { display: grid; grid-template-columns: 100px 1fr; align-items: center; gap: 14px; }
.boss__stats span { font-family: var(--font-title); font-size: .55rem; }
.bar { display: block; height: 18px; background: var(--ink); border: 3px solid var(--ink); }
.bar b { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--roof) 0 10px, #c94e3f 10px 14px); }
.boss__shot { margin: 0; max-width: 380px; }
.boss__shot figcaption { margin-top: 12px; color: var(--muted); font-size: 1rem; }

/* =========================================================
   CONTROLES
   ========================================================= */
.controls {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px;
}
.controls li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 16px;
  background: var(--surface);
  border: 3px solid var(--line);
}
.keys { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.keys em { font-style: normal; color: var(--muted); font-size: .95rem; margin: 0 2px; }
.action { font-weight: 700; color: var(--cream); text-align: right; }

.key {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.7em; height: 2.7em; padding: 0 .6em;
  margin-bottom: 4px;
  font-family: var(--font-title); font-size: .58rem;
  color: var(--wood-dark);
  background: var(--cream);
  border: 3px solid var(--ink);
  box-shadow: inset -3px -4px 0 #b9ab8c, 0 4px 0 var(--ink);
}
.key--wide { min-width: 4.4em; }
.key--sm { font-size: .5rem; height: 2.3em; min-width: 2.3em; vertical-align: middle; margin: 0 2px 4px; }

/* =========================================================
   DOWNLOAD
   ========================================================= */
.download {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
.download__shot { margin: 0; }
.download__main { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.download__lead { margin: 16px 0 28px; font-size: 1.2rem; color: #cfc3a8; }
.chips--meta { margin-top: 26px; }
.download__buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.final-cta__inner > .download__buttons { flex: 0 0 auto; justify-content: center; }

.install { display: grid; gap: 16px; margin-top: 56px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px 18px;
  background: var(--surface);
  border: 3px solid var(--line);
}
.steps b {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 36px; height: 36px;
  font-family: var(--font-title); font-size: .7rem; font-weight: 400;
  color: var(--ink); background: var(--gold); border: 3px solid var(--ink);
}
.steps strong { display: block; color: var(--cream); font-size: 1.15rem; }
.steps span { color: var(--muted); font-size: 1rem; line-height: 1.35; }

.install__side { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; }
.reqs { grid-row: span 2; padding: 18px 20px; background: var(--surface); border: 3px solid var(--line); }
.reqs h3 { font-family: var(--font-title); font-size: .6rem; color: var(--gold); margin-bottom: 12px; }
.reqs ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.reqs li::before { content: "■"; color: var(--grass); font-size: .7em; margin-right: 10px; vertical-align: middle; }
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px;
  background: var(--cream); color: var(--wood-dark);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .4);
}
.notice p { font-size: 1rem; line-height: 1.45; }
.notice__icon {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 32px; height: 32px;
  font-family: var(--font-title); font-size: .8rem;
  background: var(--gold); border: 3px solid var(--ink);
}

/* =========================================================
   NOTAS DA VERSÃO
   ========================================================= */
.roadmap { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.roadmap__now, .roadmap__next { padding: 28px; border: 3px solid var(--line); background: var(--surface); }
.roadmap__next { background: #241c33; border: 3px dashed var(--purple-light); }
.roadmap h3 {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  font-family: var(--font-title); font-size: .7rem; color: var(--cream);
  margin-bottom: 22px;
}
.checklist { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; }
.checklist li { break-inside: avoid; position: relative; padding: 0 0 10px 30px; color: #cfc3a8; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px; display: grid; place-items: center;
  font-size: .8rem; font-weight: 700; color: var(--ink); background: var(--grass); border: 2px solid var(--ink);
}
.plans { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.plans li {
  padding: 10px 14px; font-weight: 700;
  background: rgba(0, 0, 0, .25); border: 2px solid var(--purple-light);
}
.plans li::before { content: "◆"; color: var(--purple-light); margin-right: 10px; }
.small { font-size: .95rem; color: var(--muted); }

/* =========================================================
   FAQ (acordeão)
   ========================================================= */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 3px solid var(--line); }
.faq details[open] { border-color: var(--gold-soft); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px;
  font-weight: 700; font-size: 1.2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: 0 0 auto; display: grid; place-items: center;
  width: 30px; height: 30px;
  font-family: var(--font-title); font-size: .7rem;
  color: var(--ink); background: var(--gold); border: 3px solid var(--ink);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 20px; color: #cfc3a8; animation: drop .25s steps(4); }

/* =========================================================
   CHAMADA FINAL
   ========================================================= */
.final-cta {
  padding: 72px 0;
  background:
    repeating-linear-gradient(180deg, #2c1f13 0 30px, #281c11 30px 32px);
  box-shadow: inset 0 4px 0 var(--gold), inset 0 7px 0 var(--ink);
}
.final-cta__inner { display: flex; align-items: center; gap: 28px; }
.final-cta__inner img { width: 96px; height: 96px; filter: drop-shadow(4px 4px 0 var(--ink)); }
.final-cta__inner > div { flex: 1; }
.final-cta h2 { font-family: var(--font-title); font-size: clamp(1rem, 2.4vw, 1.5rem); line-height: 1.5; color: var(--gold); text-shadow: 3px 3px 0 var(--ink); }
.final-cta p { margin-top: 8px; font-size: 1.2rem; color: #cfc3a8; }

/* =========================================================
   RODAPÉ
   ========================================================= */
.footer { background: var(--ink); color: var(--muted); font-size: 1rem; }
.footer__grid {
  display: grid; grid-template-columns: 1.3fr .7fr 1.4fr; gap: 56px;
  padding: 64px 0 48px;
}
.footer h3 {
  font-family: var(--font-title); font-size: .6rem; color: var(--cream);
  margin-bottom: 18px; display: flex; align-items: center;
}
.footer__brand p { margin: 16px 0 22px; max-width: 34ch; }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a {
  padding: 6px 12px;
  font-weight: 700; font-size: .95rem; text-decoration: none;
  color: var(--cream);
  background: var(--surface);
  border: 2px solid var(--line);
  transition: transform .1s steps(2), border-color .1s, color .1s;
}
.social a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.footer__nav { display: flex; flex-direction: column; gap: 6px; }
.footer__nav a { color: var(--muted); text-decoration: none; width: fit-content; }
.footer__nav a:hover { color: var(--gold); }

.credits dl { margin: 0; display: grid; }
.credits dl > div {
  display: grid; grid-template-columns: 150px 1fr; gap: 12px;
  padding: 9px 0;
  border-bottom: 2px dashed #2a1f15;
}
.credits dl > div:first-child { border-top: 2px dashed #2a1f15; }
.credits dt { white-space: nowrap; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-soft); padding-top: 2px; }
.credits dd { margin: 0; color: var(--cream); }
.credits__src { margin-top: 14px; font-size: .95rem; }

.footer__bottom { border-top: 2px solid #2a1f15; }
.footer__bottom-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 20px 0;
  font-size: .95rem;
}
.footer__bottom a { color: var(--muted); text-decoration: none; }
.footer__bottom a:hover { color: var(--gold); }

/* =========================================================
   LIGHTBOX DOS PRINTS
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(10, 6, 3, .95);
  display: grid; place-items: center;
  padding: 24px 16px;
}
.lightbox[hidden] { display: none; }
.lightbox__box { position: relative; display: flex; align-items: center; justify-content: center; gap: 18px; width: 100%; max-width: 1560px; }
.lightbox__figure { margin: 0; flex: 1 1 auto; min-width: 0; text-align: center; }
.lightbox__img {
  margin: 0 auto;
  max-width: 100%; max-height: calc(100vh - 140px); max-height: calc(100svh - 140px);
  width: auto; height: auto;
  border: 4px solid var(--wood-dark);
  box-shadow: 6px 6px 0 var(--frame-shadow);
  background: var(--wood-dark);
  animation: drop .2s steps(3);
}
.lightbox__caption { margin-top: 16px; font-size: 1.25rem; font-weight: 500; }
.lightbox__count { font-family: var(--font-title); font-size: .55rem; color: var(--gold); margin-left: 10px; }
.lightbox__nav { flex: 0 0 auto; width: 56px; height: 56px; padding: 0; font-size: 1rem; }
.lightbox__close { position: fixed; top: 16px; right: 16px; z-index: 2; }

/* =========================================================
   MODAL DO TRAILER
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10, 6, 3, .9); }
.modal__box { position: relative; width: min(960px, 100%); }
.modal__close { position: absolute; top: -56px; right: 0; z-index: 2; }
.modal__video {
  aspect-ratio: 16 / 9; display: grid; place-items: center;
  background: var(--surface); border: 4px solid var(--wood-dark); box-shadow: 6px 6px 0 var(--frame-shadow);
}
.modal__video iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal__soon { text-align: center; padding: 24px; color: var(--muted); }
.modal__soon strong { display: block; font-family: var(--font-title); font-weight: 400; font-size: .9rem; color: var(--gold); margin-bottom: 12px; }

/* =========================================================
   ANIMAÇÕES
   ========================================================= */
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes bob { 50% { transform: translateY(-6px); } }
@keyframes warn { 0%, 100% { opacity: .45; scale: .85; } 50% { opacity: 1; scale: 1.05; } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1000px) {
  .feature, .feature--flip { grid-template-columns: 1fr; gap: 28px; }
  .feature--flip .feature__shot { order: 0; }
  .features { gap: 72px; }
  .extras { grid-template-columns: repeat(2, 1fr); }
  .biomes { grid-template-columns: 1fr; gap: 20px; }
  .biomes__tabs { flex-direction: row; overflow-x: auto; padding: 0 4px 14px; margin: 0 -4px; scroll-snap-type: x mandatory; }
  .biomes__tabs button { flex: 0 0 auto; scroll-snap-align: start; }
  .biomes__tabs button[aria-selected="true"] { transform: translateY(-3px); }
  .chars { grid-template-columns: 1fr 1fr; }
  .boss__inner { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .boss__text { display: flex; flex-direction: column; align-items: center; }
  .section__title--left { text-align: center; }
  .boss__stats { width: 100%; text-align: left; }
  .download { grid-template-columns: 1fr; gap: 36px; }
  .download__main { align-items: center; text-align: center; }
  .download__main .download__buttons { justify-content: center; }
  .download__main .section__title--left { text-align: center; }
  .chips--meta { justify-content: center; }
  .roadmap { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .credits { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  body { font-size: 1.05rem; }
  .section { padding: 80px 0; }
  #recursos > .container { padding-bottom: 80px; }
  .section__head { margin-bottom: 44px; }
  .hero { padding-bottom: 80px; }
  .hero__bg { background-position: center 30%; }
  .logo-row { flex-direction: column; gap: 18px; }
  .logo { align-items: center; }
  .logo__icon { width: 96px; height: 96px; }
  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .btn--big { width: 100%; }
  .gallery__head { flex-direction: column; align-items: flex-start; }
  /* galeria no celular: 1 por vez, com arraste */
  .strip { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; padding: 0 20px; scrollbar-width: none; }
  .strip::-webkit-scrollbar { display: none; }
  .strip__track { animation: none; gap: 16px; }
  .strip__track li[aria-hidden="true"] { display: none; }
  .strip__track li { scroll-snap-align: center; }
  .strip__item { width: calc(100vw - 56px); }
  .extras { grid-template-columns: 1fr; margin-top: 72px; }
  .chars { grid-template-columns: 1fr; }
  .sprite { --scale: 2; }
  .sprite--boss { --scale: 4; }
  .char__stage { height: 180px; }
  .boss__art { min-height: 320px; }
  .boss__warning { width: 270px; height: 270px; }
  .controls { grid-template-columns: 1fr; }
  .steps, .install__side { grid-template-columns: 1fr; }
  .reqs { grid-row: auto; }
  .checklist { columns: 1; }
  .final-cta__inner { flex-direction: column; text-align: center; }
  .footer__grid { grid-template-columns: 1fr; }
  .credits dl > div { grid-template-columns: 1fr; gap: 0; }
  .farm-strip { height: 96px; }
  .lightbox { padding: 64px 8px 16px; }
  .lightbox__nav { position: fixed; bottom: 16px; z-index: 2; width: 48px; height: 48px; }
  .lightbox__nav--prev { left: 16px; }
  .lightbox__nav--next { right: 16px; }
  .lightbox__img { max-height: calc(100svh - 200px); }
  .biomes__view figcaption { position: static; max-width: none; margin-top: 14px; }
}

/* Respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
  }
  html { scroll-behavior: auto; }
  .sprite { animation: none !important; }
  .strip { overflow-x: auto; }
  .strip__track li[aria-hidden="true"] { display: none; }
}

/* =========================================================
   MINHA CONTA (conta.html): login, cadastro e painel do jogador
   ========================================================= */
.topbar.is-solid {
  background: rgba(21, 16, 11, .96);
  box-shadow: 0 3px 0 var(--ink), 0 6px 0 rgba(0, 0, 0, .25);
}
.account-nav { display: flex; align-items: center; gap: 18px; }
.account-nav a:not(.btn) { color: var(--cream); text-decoration: none; font-weight: 500; text-shadow: 2px 2px 0 var(--ink); }
.account-nav a:not(.btn):hover { color: var(--gold); }

.account {
  min-height: 100vh;
  padding: calc(var(--header-h) + 48px) 0 72px;
  background:
    linear-gradient(rgba(21, 16, 11, .93), rgba(21, 16, 11, .98)),
    url("assets/img/Prints/02_casa_e_fazenda.png") center / cover fixed;
}
.account__loading { text-align: center; color: var(--muted); }
.account__loading[hidden] { display: none; }

/* ---------- Cartão de login ---------- */
.auth-card {
  position: relative;
  width: min(460px, 100% - 32px);
  margin: 40px auto 0;
  padding: 72px 28px 28px;
  background: var(--surface);
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 3px var(--wood-dark), 8px 8px 0 rgba(0, 0, 0, .45);
}
.auth-card__hero { --scale: 2; position: absolute; top: -78px; left: 50%; transform: translateX(-50%); }
.auth-card__title { font-family: var(--font-title); font-size: clamp(.95rem, 3vw, 1.2rem); line-height: 1.5; color: var(--gold); text-shadow: 3px 3px 0 var(--ink); }
.auth-card__lead { margin: 12px 0 22px; color: var(--muted); }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 18px; border: 3px solid var(--ink); }
.tab {
  font-family: var(--font-title); font-size: .6rem; text-transform: uppercase;
  padding: 12px 8px; cursor: pointer;
  color: var(--muted); background: var(--bg-alt); border: 0;
}
.tab + .tab { border-left: 3px solid var(--ink); }
.tab.is-active { color: var(--wood-dark); background: var(--gold); }

/* ---------- Formulários ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 700; color: var(--cream); }
.field input {
  width: 100%;
  font: inherit; font-size: 1.1rem;
  color: var(--cream);
  background: var(--ink);
  border: 3px solid var(--line);
  padding: 10px 12px;
  border-radius: 0;
}
.field input:focus { outline: none; border-color: var(--gold); }
.field__hint { color: var(--muted); font-size: .9rem; }
.form__msg { min-height: 1.4em; font-weight: 500; }
.form__msg.is-error { color: #ff9a88; }
.form__msg.is-ok { color: #8fe07a; }
.form__submit { width: 100%; }
.form [data-only="register"] { display: none; }
.form.is-register [data-only="register"] { display: grid; }
.form.is-register small[data-only="register"] { display: block; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn--danger { --btn-bg: #a63a2e; --btn-fg: var(--cream); }

/* ---------- Painel ---------- */
.panel-head {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.panel-head__avatar { --scale: 2; flex: 0 0 auto; margin: -24px 0 -16px; }
.panel-head__title { font-family: var(--font-title); font-size: clamp(1rem, 3vw, 1.5rem); line-height: 1.5; color: var(--gold); text-shadow: 3px 3px 0 var(--ink); }
.panel-head__logout { margin-left: auto; }

.panel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  padding: 22px;
  background: var(--surface);
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 3px var(--wood-dark), 6px 6px 0 rgba(0, 0, 0, .4);
  min-width: 0;
}
.card--world { grid-column: span 2; grid-row: span 2; }
.card--soon { background: #241c33; box-shadow: inset 0 0 0 3px var(--purple-light), 6px 6px 0 rgba(0, 0, 0, .4); }
.card--danger { box-shadow: inset 0 0 0 3px #6b2a22, 6px 6px 0 rgba(0, 0, 0, .4); }
.card__title { font-family: var(--font-title); font-size: .72rem; line-height: 1.6; color: var(--gold); margin-bottom: 16px; }
.card__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.card__foot { margin-top: 16px; }
.card details summary { cursor: pointer; color: #ff9a88; font-weight: 700; margin-bottom: 12px; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0; }
.stats[hidden] { display: none; }
.stat { padding: 14px; background: var(--bg-alt); border: 3px solid var(--line); }
.stat dt { color: var(--muted); font-size: .95rem; }
.stat dd { margin: 4px 0 0; font-family: var(--font-title); font-size: 1rem; color: var(--cream); }

.info { display: grid; gap: 10px; margin: 0; }
.info div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 2px dashed var(--line); padding-bottom: 8px; }
.info dt { color: var(--muted); }
.info dd { margin: 0; text-align: right; overflow-wrap: anywhere; }

.footer--slim { padding: 18px 0; }

@media (max-width: 900px) {
  .panel-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .panel-grid { grid-template-columns: 1fr; }
  .card--world { grid-column: auto; grid-row: auto; }
  .account-nav a:not(.btn) { display: none; }
  .panel-head__logout { margin-left: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .account { background-attachment: scroll; }
}
/* ---------- Jogar com amigos (painel) ---------- */
.world-code {
  font-family: var(--font-title); font-size: 1.4rem; letter-spacing: .2em;
  color: var(--gold); text-shadow: 3px 3px 0 var(--ink);
  margin: 6px 0 14px;
}
.form--inline { grid-template-columns: 1fr auto; align-items: end; gap: 10px; }
.invites { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.invites li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; background: rgba(0, 0, 0, .25); border: 2px solid var(--purple-light); }
.invites li span { flex: 1; min-width: 120px; }

/* =========================================================
   MELHORIAS (versão PHP)
   ========================================================= */

/* ---------- Barra de progresso da leitura (topo da tela) ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 150; pointer-events: none; }
.progress span {
  display: block; height: 100%;
  background: repeating-linear-gradient(90deg, var(--gold) 0 12px, var(--gold-soft) 12px 16px);
  box-shadow: 0 2px 0 var(--ink);
  transform: scaleX(0); transform-origin: left;
}

/* ---------- Título de seção com "sublinhado" pixelado ---------- */
.section__head .section__title::after {
  content: ""; display: block;
  width: 72px; height: 6px; margin: 18px auto 0;
  background: repeating-linear-gradient(90deg, var(--gold) 0 12px, transparent 12px 18px);
}

/* ---------- Aviso do servidor no topo (launcher.json → notice) ---------- */
.hero__notice {
  display: inline-flex; align-items: center; gap: 10px;
  max-width: 100%; margin-bottom: 16px; padding: 8px 14px;
  background: rgba(42, 34, 56, .9); border: 2px solid var(--purple-light);
  font-weight: 500; text-align: left;
}

/* ---------- Faixa de números ---------- */
.stats-band {
  position: relative; z-index: 3;
  margin-top: -56px;
  padding: 0 0 24px;
}
.stats-band__list {
  list-style: none; padding: 0; margin-block: 0;
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: var(--surface);
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 3px var(--wood-dark), 8px 8px 0 rgba(0, 0, 0, .45);
}
.stats-band__list li {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 20px 10px; text-align: center;
}
.stats-band__list li + li { border-left: 3px dashed var(--line); }
.stats-band__list strong {
  font-family: var(--font-title); font-weight: 400;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  color: var(--gold); text-shadow: 3px 3px 0 var(--ink);
  min-height: 1.2em; font-variant-numeric: tabular-nums;
}
.stats-band__list span { color: var(--muted); font-size: 1rem; }

/* ---------- Barras do chefe enchem ao aparecer ---------- */
.bar b { width: var(--w, 0); }
.js .boss__text .bar b { width: 0; transition: width 1.2s steps(12); }
.js .boss__text.is-visible .bar b { width: var(--w); }
.js .boss__text.is-visible .boss__stats li:nth-child(2) .bar b { transition-delay: .2s; }
.js .boss__text.is-visible .boss__stats li:nth-child(3) .bar b { transition-delay: .4s; }

/* ---------- Download: cards por plataforma ---------- */
.gold { color: var(--gold); }
.platforms { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: stretch; }
.platform {
  position: relative;
  display: flex; flex-direction: column; gap: 18px;
  padding: 26px;
  background: var(--surface);
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 3px var(--wood-dark), 8px 8px 0 rgba(0, 0, 0, .45);
  min-width: 0;
}
.platform--main { box-shadow: inset 0 0 0 3px var(--gold-soft), 8px 8px 0 rgba(0, 0, 0, .45); }
.platform__ribbon {
  position: absolute; top: -16px; right: 20px;
  font-family: var(--font-title); font-size: .55rem;
  padding: 8px 10px;
  color: var(--ink); background: var(--grass);
  border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink);
}
.platform__head { display: flex; align-items: center; gap: 14px; }
.platform__head h3 { font-family: var(--font-title); font-size: 1rem; color: var(--gold); text-shadow: 2px 2px 0 var(--ink); margin-bottom: 6px; }
.platform__head p { color: var(--muted); }
.platform__shot { margin: 0; }
.platform__shot img {
  width: 100%; aspect-ratio: 1120 / 660; object-fit: cover;
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--frame-shadow);
  background: var(--ink);
}
.platform:not(.platform--main) .platform__shot img { aspect-ratio: 16 / 9; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.perks li { position: relative; padding-left: 30px; }
.perks li::before {
  content: "✓"; position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; display: grid; place-items: center;
  font-size: .8rem; font-weight: 700; color: var(--ink); background: var(--grass); border: 2px solid var(--ink);
}
.perks strong { display: block; color: var(--cream); line-height: 1.3; }
.perks span { display: block; color: var(--muted); font-size: .95rem; line-height: 1.35; }
.platform__btn { margin-top: auto; width: 100%; }
.platform__meta { text-align: center; color: var(--muted); font-size: .95rem; margin-top: -6px; }
.platform__alt { text-align: center; font-size: .95rem; color: var(--muted); border-top: 2px dashed var(--line); padding-top: 12px; }

/* ---------- Notas da versão vindas do launcher.json ---------- */
.roadmap__col { display: grid; gap: 24px; align-content: start; }
.roadmap--single { grid-template-columns: 1fr; }
.roadmap__title { margin: -10px 0 16px; color: var(--muted); }

/* ---------- Botão "voltar ao topo" ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 120;
  width: 48px; height: 48px; display: grid; place-items: center;
  font-family: var(--font-title); font-size: .8rem; text-decoration: none;
  color: var(--wood-dark); background: var(--gold);
  border: 3px solid var(--ink);
  box-shadow: inset 3px 3px 0 rgba(255, 255, 255, .28), 0 5px 0 var(--ink);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .2s, transform .2s steps(3), visibility 0s .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s steps(3); }
.to-top:hover { color: var(--wood-dark); filter: brightness(1.1); }

/* ---------- Janela "Seu download começou!" ---------- */
.modal__box--card {
  width: min(560px, 100%);
  margin-top: 60px;
  padding: 70px 28px 26px;
  background: var(--surface);
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 3px var(--wood-dark), 8px 8px 0 rgba(0, 0, 0, .45);
  animation: drop .25s steps(4);
}
.started__hero { --scale: 2; position: absolute; top: -80px; left: 50%; transform: translateX(-50%); }
.started__title { font-family: var(--font-title); font-size: clamp(.9rem, 3vw, 1.15rem); line-height: 1.5; color: var(--gold); text-shadow: 3px 3px 0 var(--ink); margin-bottom: 20px; }
.started__steps { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
.started__steps[hidden] { display: none; }
.started__steps li { display: flex; gap: 12px; align-items: flex-start; }
.started__steps b {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 30px; height: 30px;
  font-family: var(--font-title); font-size: .6rem; font-weight: 400;
  color: var(--ink); background: var(--gold); border: 3px solid var(--ink);
}
.started__buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.started__retry { margin-top: 16px; text-align: right; }

/* ---------- Página 404 ---------- */
.lost {
  min-height: calc(100vh - 70px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 48px 20px;
  background:
    linear-gradient(rgba(21, 16, 11, .9), rgba(21, 16, 11, .97)),
    url("assets/img/Prints/11_pantano.png") center / cover;
}
.lost__art { display: grid; place-items: center; height: 200px; }
.lost__slime { --scale: 3; }
.lost__title { font-family: var(--font-title); font-size: clamp(1rem, 3.4vw, 1.8rem); line-height: 1.5; color: var(--gold); text-shadow: 3px 3px 0 var(--ink); }
.lost__text { margin: 16px 0 32px; max-width: 46ch; color: var(--muted); font-size: 1.2rem; }
.lost__buttons { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ---------- Responsivo das novidades ---------- */
@media (max-width: 1000px) {
  .stats-band__list { grid-template-columns: repeat(3, 1fr); }
  .stats-band__list li:nth-child(4) { border-left: 0; }
  .stats-band__list li:nth-child(n + 4) { border-top: 3px dashed var(--line); }
  .platforms { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .stats-band { margin-top: -40px; }
  .stats-band__list { grid-template-columns: repeat(2, 1fr); }
  .stats-band__list li:nth-child(odd) { border-left: 0; }
  .stats-band__list li:nth-child(4) { border-left: 3px dashed var(--line); }
  .stats-band__list li:nth-child(n + 3) { border-top: 3px dashed var(--line); }
  .perks { grid-template-columns: 1fr; }
  .platform { padding: 22px 18px; }
  .started__buttons { justify-content: stretch; }
  .started__buttons .btn { flex: 1; }
  .to-top { right: 14px; bottom: 14px; }
}
/* A faixa de números fica sobre o fim do topo: a setinha sobe um pouco */
.scroll-hint { bottom: 76px; }
@media (max-width: 680px) { .scroll-hint { bottom: 56px; } }

/* =========================================================
   POLÍTICA DE PRIVACIDADE (privacidade.html)
   ========================================================= */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 72px) 0 80px;
  box-shadow: inset 0 -3px 0 var(--ink);
}
.page-hero__bg {
  position: absolute; inset: -20px;
  background: url("assets/img/capa_fogueira.png") center 45% / cover no-repeat;
  image-rendering: pixelated;
  animation: drift 40s linear infinite alternate;
}
.page-hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(21, 16, 11, .96) 0%, rgba(21, 16, 11, .82) 45%, rgba(21, 16, 11, .35) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 35%);
}
@keyframes drift { to { transform: translate3d(-20px, -10px, 0) scale(1.04); } }
.page-hero__inner { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 32px; }
.page-hero__title {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 5vw, 3rem); line-height: 1.35;
  color: var(--gold);
  text-shadow: 4px 4px 0 var(--ink), 0 0 24px rgba(242, 201, 76, .25);
  margin: 18px 0 20px;
}
.page-hero__lead { max-width: 560px; font-size: 1.25rem; color: var(--cream); text-shadow: 2px 2px 0 var(--ink); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.page-hero__art { display: grid; place-items: center; }
.page-hero__art .sprite { --scale: 4; filter: drop-shadow(6px 6px 0 rgba(0, 0, 0, .5)); }

.privacy-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.privacy-card {
  background: var(--surface);
  box-shadow: inset 0 0 0 3px var(--line), 6px 6px 0 rgba(0, 0, 0, .4);
  padding: 26px 22px;
}
.privacy-card h3 { font-family: var(--font-title); font-size: .78rem; line-height: 1.6; color: var(--gold); margin: 14px 0 10px; }
.privacy-card p { color: #cfc3a8; }
.privacy-card__icon {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px;
  font-size: 1.5rem; color: var(--wood-dark);
  background: var(--gold); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
}
.privacy-card--danger { box-shadow: inset 0 0 0 3px #6b2a22, 6px 6px 0 rgba(0, 0, 0, .4); }
.privacy-card--danger .privacy-card__icon { background: #ff8a7a; }

.legal-toc {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-bottom: 40px; padding: 16px;
  background: var(--surface); border: 3px solid var(--line);
}
.legal-toc a {
  padding: 8px 10px; font-weight: 500; text-decoration: none; color: var(--cream);
  background: rgba(0, 0, 0, .25); border: 2px solid transparent;
}
.legal-toc a:hover { color: var(--gold); border-color: var(--gold-soft); }

.legal-block {
  background: var(--surface);
  border: 3px solid var(--line);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .35);
  padding: 26px 28px;
  margin-top: 26px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.legal-block__title {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-title); font-size: .9rem; line-height: 1.6;
  color: var(--gold);
  margin-bottom: 16px;
}
.legal-block__title span {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 34px; height: 34px; font-size: .7rem;
  color: var(--wood-dark); background: var(--gold);
  border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
}
.legal-block h4 { font-size: 1.15rem; font-weight: 700; color: var(--cream); margin: 20px 0 6px; }
.legal-block p { color: #cfc3a8; }
.legal-block p + p, .legal-block ul + p, .legal-block p + ul { margin-top: 12px; }
.legal-block ul, .legal-block ol { margin: 6px 0 0; padding-left: 1.3em; color: #cfc3a8; }
.legal-block li { margin: 7px 0; }
.legal-block li::marker { color: var(--gold-soft); }
.legal-block strong { color: var(--cream); }
.legal-block__note { margin-top: 16px; padding: 10px 14px; background: rgba(0, 0, 0, .25); border-left: 4px solid var(--gold-soft); }
.legal-block--danger { border-color: #6b2a22; }
.legal-block--danger .legal-block__title { color: #ff9a88; }
.legal-block--danger .legal-block__title span { background: #ff8a7a; }
.legal-block--danger .btn { margin-top: 18px; }
.legal-block--gold { border-color: var(--gold-soft); text-align: center; }
.legal-block--gold .legal-block__title { justify-content: center; }
.delete-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 16px; }
.delete-way { padding: 16px 18px; background: rgba(0, 0, 0, .25); border: 2px solid #4a2620; }
.delete-way .kicker { margin-bottom: 6px; }
.legal-contact { font-size: 1.35rem; font-weight: 700; margin-top: 8px; word-break: break-word; }

@media (max-width: 980px) {
  .privacy-cards { grid-template-columns: 1fr 1fr; }
  .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero__art { display: none; }
}
@media (max-width: 620px) {
  .page-hero { padding: calc(var(--header-h) + 40px) 0 56px; }
  .privacy-cards, .legal-toc, .delete-ways { grid-template-columns: 1fr; }
  .legal-block { padding: 20px 18px; }
}