/* ══════════════════════════════════════════════════════════════
   THE WAR OF ODRAMIR — v3 "AAA Cinematic"
   Direção de arte: preto profundo, ouro antigo, brasa viva.
   Material: mapas, personagens e monstros do próprio jogo.
   ══════════════════════════════════════════════════════════════ */

:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-2: #0a0908;
  --surface: #0d0c0a;
  --line: #26221a;
  --line-gold: rgba(201, 163, 92, .38);
  --ink: #ece0c6;
  --muted: #9d9078;
  --faint: #6e6452;
  --gold: #c9a35c;
  --gold-hi: #f0cd8a;
  --ember: #ff5a2b;
  --ember-soft: rgba(255, 90, 43, .55);

  --r-legendary: #ff7a2f;
  --r-epic: #b45cff;
  --r-rare: #4a95ff;
  --r-uncommon: #57d95c;
  --r-common: #cfcfcf;
  --r-poor: #8b8b8b;
  --r-base: #c9b98d;

  --font-display: Cinzel, Georgia, serif;
  --font-body: Inter, system-ui, sans-serif;
  --font-flavor: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* cenários do jogo — um mapa diferente por página */
body[data-page="home"] { --hero-image: url("assets/world/bg-cemetery.png"); --panel-image: url("assets/world/bg-volcano.png"); --cta-image: url("assets/world/bg-crypt.png"); }
body[data-page="classes"] { --hero-image: url("assets/world/bg-ruins.png"); }
body[data-page="skills"] { --hero-image: url("assets/world/bg-crypt.png"); }
body[data-page="items"] { --hero-image: url("assets/world/bg-prison.png"); }
body[data-page="monsters"] { --hero-image: url("assets/world/bg-depths.png"); }
body[data-page="systems"] { --hero-image: url("assets/world/bg-village.png"); }
body:not([data-page]) { --hero-image: url("assets/world/bg-depths.png"); }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}
/* vinheta cinematográfica global */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: radial-gradient(ellipse 135% 100% at 50% 42%, transparent 62%, rgba(0, 0, 0, .5));
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; }
p { line-height: 1.75; }
img { max-width: 100%; }
::selection { background: rgba(201, 163, 92, .35); }

/* ── rótulo de seção estilo AAA: "01 — O MUNDO" ─────────────── */
.sec-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 22px;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .42em;
  text-transform: uppercase;
}
.sec-label::after {
  content: "";
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.sec-label .num { color: var(--faint); letter-spacing: .2em; }

.sec-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: .015em;
  color: #f2e6c8;
}
.sec-title em {
  font-style: normal;
  background: linear-gradient(180deg, #f7dfa8, var(--gold) 60%, #8a6a30);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sec-intro { max-width: 620px; color: var(--muted); font-size: 1.02rem; margin: 0 0 20px; }

/* ── botões ─────────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 34px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.btn svg { width: 19px; height: 19px; fill: currentColor; }
.btn-gold {
  background: linear-gradient(180deg, #e8c274, #b98a3e 55%, #7d5720);
  color: #180f04;
  text-shadow: 0 1px 0 rgba(255, 240, 200, .45);
  box-shadow: 0 10px 34px rgba(201, 163, 92, .22), inset 0 1px 0 rgba(255, 255, 255, .38);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(240, 205, 138, .34), inset 0 1px 0 rgba(255, 255, 255, .42);
}
.btn-line {
  border-color: rgba(201, 163, 92, .5);
  background: rgba(201, 163, 92, .04);
  color: var(--gold-hi);
}
.btn-line:hover {
  border-color: var(--gold-hi);
  background: rgba(201, 163, 92, .12);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
}
.btn.compact { min-height: 42px; padding: 0 20px; font-size: .74rem; }

/* ══════════════════════════════════════════════════════════════
   NAVEGAÇÃO — fixa, transparente → sólida ao rolar
   ══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 10px clamp(18px, 4vw, 54px);
  background: linear-gradient(180deg, rgba(5, 5, 5, .82), transparent);
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.nav.scrolled {
  background: rgba(6, 6, 5, .92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(201, 163, 92, .22), 0 18px 44px rgba(0, 0, 0, .5);
}
.nav-logo img {
  display: block;
  max-height: 52px;
  max-width: 190px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .9));
}
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  position: relative;
  padding: 10px 14px;
  color: #b8ab8e;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: color .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 5px;
  height: 1px;
  background: var(--gold-hi);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}
.nav-links a:hover, .nav-links a.active { color: #f2e6c8; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* ══════════════════════════════════════════════════════════════
   HERO — tela de abertura cinematográfica
   ══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: min(680px, 82svh);
  max-height: 900px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 110px clamp(18px, 5vw, 70px) 70px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -4%;
  z-index: -3;
  background: var(--hero-image) center 58% / cover no-repeat;
  filter: brightness(.52) saturate(.72) contrast(1.1);
  animation: heroPan 34s ease-in-out infinite alternate;
}
@keyframes heroPan {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(1.08) translateY(-1.6%); }
}
/* gradação de cor cinematográfica: sombras frias, brasa embaixo */
.hero-grade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(5, 6, 8, .88) 0%, rgba(5, 6, 8, .25) 34%, rgba(4, 4, 5, .55) 68%, var(--bg) 98%),
    radial-gradient(ellipse 85% 52% at 50% 112%, rgba(255, 90, 43, .28), transparent 70%),
    linear-gradient(200deg, rgba(20, 34, 44, .35), transparent 46%);
}
/* névoa em duas camadas derivando */
.hero-fog, .hero-fog::after {
  content: "";
  position: absolute;
  inset: -20% -40%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 30% at 24% 68%, rgba(160, 175, 185, .085), transparent 70%),
    radial-gradient(ellipse 52% 26% at 74% 60%, rgba(160, 175, 185, .065), transparent 70%),
    radial-gradient(ellipse 36% 22% at 50% 80%, rgba(140, 155, 165, .075), transparent 70%);
  animation: fogDrift 38s ease-in-out infinite alternate;
}
.hero-fog::after {
  inset: -10% -30%;
  animation-duration: 52s;
  animation-direction: alternate-reverse;
  opacity: .8;
}
@keyframes fogDrift {
  from { transform: translateX(-3%) translateY(0); }
  to { transform: translateX(4%) translateY(-2.5%); }
}
/* brasas */
.embers, .embers::before, .embers::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.embers::before {
  background-image:
    radial-gradient(2px 2px at 12% 88%, rgba(255, 140, 80, .9), transparent 60%),
    radial-gradient(2px 2px at 34% 94%, rgba(255, 170, 90, .8), transparent 60%),
    radial-gradient(3px 3px at 58% 90%, rgba(255, 120, 60, .75), transparent 60%),
    radial-gradient(2px 2px at 76% 92%, rgba(255, 180, 100, .85), transparent 60%),
    radial-gradient(2px 2px at 92% 86%, rgba(255, 140, 70, .7), transparent 60%);
  animation: emberRise 10s linear infinite;
}
.embers::after {
  background-image:
    radial-gradient(2px 2px at 22% 96%, rgba(255, 150, 80, .8), transparent 60%),
    radial-gradient(3px 3px at 46% 88%, rgba(255, 190, 110, .7), transparent 60%),
    radial-gradient(2px 2px at 66% 94%, rgba(255, 130, 60, .85), transparent 60%),
    radial-gradient(2px 2px at 84% 90%, rgba(255, 160, 90, .7), transparent 60%);
  animation: emberRise 14s linear 4s infinite;
}
@keyframes emberRise {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: 1; }
  85% { opacity: .85; }
  100% { transform: translateY(-92vh) translateX(3vw); opacity: 0; }
}

.hero-inner { display: grid; justify-items: center; max-width: 980px; }
.hero-kicker {
  margin: 0 0 8px;
  color: var(--gold-hi);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .55em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .9);
}
.hero-title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: .02em;
  background: linear-gradient(180deg, #faedca 16%, var(--gold-hi) 46%, #a87c36 78%, #6e4d1e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 36px rgba(0, 0, 0, .95)) drop-shadow(0 0 44px rgba(255, 90, 43, .22));
  animation: titleBreath 6s ease-in-out infinite alternate;
}
@keyframes titleBreath {
  from { filter: drop-shadow(0 10px 36px rgba(0,0,0,.95)) drop-shadow(0 0 30px rgba(255,90,43,.16)); }
  to { filter: drop-shadow(0 10px 36px rgba(0,0,0,.95)) drop-shadow(0 0 54px rgba(255,110,55,.34)); }
}
.hero-tag {
  max-width: 540px;
  margin: 14px 0 28px;
  color: #d9cba9;
  font-family: var(--font-flavor);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-style: italic;
  line-height: 1.55;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .9);
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* indicador de rolagem */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--faint);
  font-size: .62rem;
  letter-spacing: .4em;
  text-transform: uppercase;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: cueDrop 2.2s ease-in-out infinite;
}
@keyframes cueDrop {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(14px); opacity: 0; }
}

/* ══════════════════════════════════════════════════════════════
   SPRITES ANIMADOS (spritesheets do jogo rodando em CSS)
   ══════════════════════════════════════════════════════════════ */
.anim-sprite {
  --s: 3;
  width: calc(var(--fw) * var(--s) * 1px);
  height: calc(var(--fh) * var(--s) * 1px);
  background-image: var(--src);
  background-repeat: no-repeat;
  background-size: calc(var(--sw) * var(--s) * 1px) calc(var(--sh) * var(--s) * 1px);
  background-position: 0 calc(var(--row, 0) * var(--fh) * var(--s) * -1px);
  image-rendering: pixelated;
}
.anim-sprite.f8 { animation: run8 1.15s steps(8) infinite; }
.anim-sprite.f4 { animation: run4 .8s steps(4) infinite; }
@keyframes run8 { to { background-position-x: calc(8 * var(--fw) * var(--s) * -1px); } }
@keyframes run4 { to { background-position-x: calc(4 * var(--fw) * var(--s) * -1px); } }

/* sprite estático (recorte de frame único) */
.sprite-frame {
  --scale: 3;
  width: calc(var(--fw) * var(--scale) * 1px);
  height: calc(var(--fh) * var(--scale) * 1px);
  max-width: 100%;
  overflow: hidden;
  position: relative;
  image-rendering: pixelated;
}
.sprite-frame img {
  position: absolute;
  left: calc(var(--fx, 0) * var(--scale) * -1px);
  top: calc(var(--fy, 0) * var(--scale) * -1px);
  width: calc(var(--sw) * var(--scale) * 1px);
  height: calc(var(--sh) * var(--scale) * 1px);
  max-width: none;
  image-rendering: pixelated;
}

/* ══════════════════════════════════════════════════════════════
   SEÇÕES
   ══════════════════════════════════════════════════════════════ */
.sec { position: relative; padding: clamp(80px, 11vw, 140px) clamp(18px, 5vw, 70px); }
.sec-head { max-width: 1240px; margin: 0 auto 46px; }
.sec-head.center { text-align: center; }
.sec-head.center .sec-label { justify-content: center; }
.sec-head.center .sec-label::after { display: none; }
.sec-head.center .sec-intro { margin-inline: auto; }

/* ══════════════════════════════════════════════════════════════
   01 — CLASSES: colunas interativas que expandem no hover
   ══════════════════════════════════════════════════════════════ */
.class-strip {
  display: flex;
  gap: 10px;
  max-width: 1360px;
  margin: 0 auto;
  min-height: 560px;
}
.class-col {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  padding: 30px 18px 34px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 55% at 50% 100%, color-mix(in srgb, var(--accent, #c9a35c) 24%, transparent), transparent 72%),
    linear-gradient(180deg, #0b0a09, #070606);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: flex .55s cubic-bezier(.22, .8, .3, 1), border-color .3s ease, box-shadow .3s ease;
}
.class-col::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, .3), rgba(5, 5, 5, .82) 82%),
    var(--col-bg, var(--hero-image)) center 40% / cover no-repeat;
  filter: brightness(.5) saturate(.6);
  opacity: .55;
  transition: opacity .4s ease, filter .4s ease;
}
.class-col::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent, var(--gold)), transparent);
  opacity: .4;
  transition: opacity .3s ease;
}
.class-col:hover {
  flex: 2.1;
  border-color: color-mix(in srgb, var(--accent, #c9a35c) 55%, transparent);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 44px color-mix(in srgb, var(--accent, #c9a35c) 16%, transparent);
}
.class-col:hover::before { opacity: .8; filter: brightness(.6) saturate(.8); }
.class-col:hover::after { opacity: 1; }
.class-col > * { position: relative; z-index: 1; }
.class-col .anim-sprite {
  --s: 3;
  margin-bottom: 18px;
  filter: drop-shadow(0 20px 22px rgba(0, 0, 0, .75));
  transition: transform .45s cubic-bezier(.22, .8, .3, 1);
}
.class-col:hover .anim-sprite { transform: scale(1.22) translateY(-8px); }
.class-col h3 {
  margin: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.6rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #f2e6c8;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .9);
}
.class-col .role {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.class-col .diff { margin-top: 6px; color: var(--gold-hi); letter-spacing: .14em; font-size: .82rem; text-shadow: 0 0 14px rgba(240, 205, 138, .5); }
.class-col .peek {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.6;
  max-width: 300px;
  text-align: center;
  transition: max-height .5s ease, opacity .4s ease .12s, margin .4s ease;
}
.class-col:hover .peek { max-height: 130px; opacity: 1; margin-top: 10px; }

/* ══════════════════════════════════════════════════════════════
   02 — O MUNDO: banda parallax full-bleed
   ══════════════════════════════════════════════════════════════ */
.world-band {
  position: relative;
  min-height: 74vh;
  display: grid;
  align-content: center;
  padding: 110px clamp(18px, 6vw, 90px);
  overflow: hidden;
  isolation: isolate;
}
.world-bg {
  position: absolute;
  inset: -18% 0;
  z-index: -2;
  background: var(--panel-image) center / cover no-repeat;
  filter: brightness(.55) saturate(.75) contrast(1.08);
  will-change: transform;
}
.world-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 80%, var(--bg) 100%),
    linear-gradient(90deg, rgba(5, 5, 5, .82) 0%, rgba(5, 5, 5, .2) 55%, transparent 80%);
}
.world-copy { max-width: 520px; }
.world-copy .sec-intro { margin-bottom: 26px; }
.world-regions {
  display: grid;
  gap: 12px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}
.world-regions li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: #cbbc9a;
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: .06em;
}
.world-regions li span { color: var(--faint); font-family: var(--font-body); font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; }
.world-regions li::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  transform: translateY(-4px);
}

/* ══════════════════════════════════════════════════════════════
   03 — BESTIÁRIO: desfile de monstros animados
   ══════════════════════════════════════════════════════════════ */
.bestiary-sec { overflow: hidden; background: linear-gradient(180deg, var(--bg), #070605 40%, var(--bg)); }
.beast-parade {
  position: relative;
  margin-top: 20px;
  padding: 30px 0 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.beast-track {
  display: flex;
  gap: clamp(30px, 5vw, 80px);
  width: max-content;
  animation: parade 46s linear infinite;
}
.beast-parade:hover .beast-track { animation-play-state: paused; }
@keyframes parade { to { transform: translateX(-50%); } }
.beast {
  display: grid;
  justify-items: center;
  gap: 10px;
}
.beast .anim-sprite {
  --s: 1.6;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .8));
}
.beast figcaption {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: .88rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.beast-parade .ground {
  position: absolute;
  left: 0; right: 0; bottom: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 163, 92, .3) 20%, rgba(201, 163, 92, .3) 80%, transparent);
}

/* ══════════════════════════════════════════════════════════════
   04 — NÚMEROS: contadores
   ══════════════════════════════════════════════════════════════ */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1140px;
  margin: 0 auto;
  border-block: 1px solid var(--line);
}
.stat {
  padding: 44px 16px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1;
  background: linear-gradient(180deg, #f7dfa8, var(--gold) 62%, #8a6a30);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span {
  display: block;
  margin-top: 12px;
  color: var(--faint);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .4em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════
   05 — CTA DISCORD
   ══════════════════════════════════════════════════════════════ */
.cta-final {
  position: relative;
  text-align: center;
  padding: clamp(100px, 14vw, 170px) clamp(18px, 5vw, 70px);
  overflow: hidden;
  isolation: isolate;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--bg), rgba(5, 5, 5, .62) 40%, var(--bg)),
    var(--cta-image, var(--hero-image)) center 60% / cover no-repeat;
  filter: brightness(.42) saturate(.7);
}
.cta-final .flavor {
  max-width: 640px;
  margin: 0 auto 14px;
  font-family: var(--font-flavor);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: #d9cba9;
  line-height: 1.5;
}
.cta-final .flavor::before { content: "“"; color: var(--gold); }
.cta-final .flavor::after { content: "”"; color: var(--gold); }
.cta-final .sec-intro { margin: 0 auto 34px; }

/* ══════════════════════════════════════════════════════════════
   PÁGINAS INTERNAS — hero slim
   ══════════════════════════════════════════════════════════════ */
.page-hero {
  position: relative;
  min-height: 46vh;
  display: grid;
  align-content: end;
  padding: 150px clamp(18px, 5vw, 70px) 54px;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, .78), rgba(5, 5, 5, .3) 55%, var(--bg) 97%),
    radial-gradient(ellipse 70% 50% at 50% 115%, rgba(255, 90, 43, .16), transparent 70%),
    var(--hero-image) center 36% / cover no-repeat;
  filter: saturate(.6);
}
.page-hero-inner { max-width: 1240px; margin: 0 auto; width: 100%; }
.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1;
  letter-spacing: .02em;
  background: linear-gradient(180deg, #f9ecc9 20%, var(--gold-hi) 52%, #9a7434);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .9));
}
.page-hero .rule {
  width: 96px;
  height: 2px;
  margin: 4px 0 16px;
  background: linear-gradient(90deg, var(--ember), var(--gold), transparent);
}
.page-hero p {
  max-width: 640px;
  margin: 0;
  color: #cbbc9a;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .85);
}

/* ══════════════════════════════════════════════════════════════
   CATÁLOGOS
   ══════════════════════════════════════════════════════════════ */
.wrap { max-width: 1240px; margin: 0 auto; }

.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 0 auto 18px; max-width: 1240px; }
input, select {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: #0a0908;
  color: var(--ink);
  font: inherit;
}
input { flex: 1 1 260px; }
select { min-width: 200px; }
input:focus, select:focus {
  outline: none;
  border-color: var(--line-gold);
  box-shadow: 0 0 0 3px rgba(201, 163, 92, .1);
}
input::placeholder { color: var(--faint); }

.tab-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 auto 34px; max-width: 1240px; }
.tab-button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.tab-button:hover { color: var(--gold-hi); border-color: var(--line-gold); }
.tab-button.active {
  color: #180f04;
  border-color: var(--gold);
  background: linear-gradient(180deg, #e8c274, #b98a3e 60%, #7d5720);
}

.catalog-sections { display: grid; gap: 56px; max-width: 1240px; margin: 0 auto; }
.catalog-section > header {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.catalog-section > header h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: #f2e6c8;
}
.catalog-section > header .eyebrow-inline {
  color: var(--gold);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .34em;
  text-transform: uppercase;
}
.count-pill {
  margin-left: auto;
  color: var(--faint);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* cards base */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-gold);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .55);
}

/* SKILLS */
.skill-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.skill-card { display: grid; grid-template-columns: 62px 1fr; gap: 16px; padding: 20px; }
.skill-icon {
  width: 62px; height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-gold);
  background: radial-gradient(circle, rgba(201, 163, 92, .12), rgba(0, 0, 0, .5) 78%);
}
.skill-icon img { width: 44px; height: 44px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 3px 5px rgba(0,0,0,.7)); }
.skill-card h3 { margin: 0 0 6px; font-size: 1.02rem; color: #eee0bf; }
.skill-card p { margin: 0; color: var(--muted); font-size: .86rem; }

/* ITENS */
.item-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.item-card { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; padding: 16px 18px; }
.item-icon {
  position: relative;
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rc, var(--line));
  background:
    radial-gradient(circle, color-mix(in srgb, var(--rc, #26221a) 16%, transparent), rgba(0, 0, 0, .55) 80%);
  box-shadow: inset 0 0 16px color-mix(in srgb, var(--rc, transparent) 14%, transparent);
}
.item-icon img { width: 44px; height: 44px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 3px 5px rgba(0,0,0,.7)); }
.item-card h3 { margin: 0; font-family: var(--font-body); font-weight: 700; font-size: .94rem; color: var(--rc, var(--ink)); }
.item-card p { margin: 6px 0 0; color: var(--faint); font-size: .78rem; }
.item-card[data-rarity="Legendary"] { --rc: var(--r-legendary); }
.item-card[data-rarity="Epic"] { --rc: var(--r-epic); }
.item-card[data-rarity="Rare"] { --rc: var(--r-rare); }
.item-card[data-rarity="Uncommon"] { --rc: var(--r-uncommon); }
.item-card[data-rarity="Common"] { --rc: var(--r-common); }
.item-card[data-rarity="Poor"] { --rc: var(--r-poor); }
.item-card[data-rarity="Base"] { --rc: var(--r-base); }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 2px 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
}
.pill.gold { color: var(--gold-hi); border-color: var(--line-gold); }
.skill-meta, .item-meta, .monster-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }

/* MONSTROS */
.featured-monsters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(24px, 4vw, 60px);
  max-width: 1240px;
  margin: 0 auto 60px;
}
.featured-monster { display: grid; justify-items: center; gap: 8px; text-align: center; }
.featured-monster .anim-sprite { --s: 1.35; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .8)); }
.featured-monster strong { font-family: var(--font-display); color: #eee0bf; font-size: .95rem; letter-spacing: .1em; }
.featured-monster span { color: var(--ember); font-size: .68rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; }

.monster-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.monster-row { padding: 18px 20px; }
.monster-row.with-sprite { display: grid; grid-template-columns: 86px 1fr; gap: 18px; align-items: center; }
.monster-portrait {
  width: 86px; height: 86px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 62%, rgba(255, 90, 43, .14), rgba(0, 0, 0, .5) 78%);
}
.monster-portrait .anim-sprite { --s: .62; }
.monster-row header { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.monster-row h3 { margin: 0 0 2px; font-size: 1.04rem; color: #eee0bf; }
.drops { margin-top: 8px; color: var(--faint); font-size: .79rem; line-height: 1.55; }

/* CLASSES (página) — painel cinematográfico */
.class-grid { display: grid; gap: 30px; max-width: 1240px; margin: 0 auto; }
.class-detail {
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(0, 1.05fr);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.class-stage {
  position: relative;
  min-height: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
  isolation: isolate;
  background:
    radial-gradient(ellipse 85% 55% at 50% 100%, color-mix(in srgb, var(--accent, #c9a35c) 26%, transparent), transparent 70%),
    linear-gradient(180deg, #0a0908, #060505);
  border-right: 1px solid var(--line);
}
.class-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5,5,5,.5), rgba(5,5,5,.88)), var(--hero-image) center 32% / cover no-repeat;
  filter: brightness(.4) saturate(.4);
}
.class-stage::after {
  content: "";
  position: absolute;
  left: 18%; right: 18%; bottom: 60px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .8), transparent 70%);
}
.class-stage .anim-sprite {
  --s: 4;
  filter: drop-shadow(0 26px 26px rgba(0, 0, 0, .7));
}
.class-info { padding: 34px clamp(22px, 3.4vw, 46px); }
.class-info .role {
  color: var(--gold);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .38em;
  text-transform: uppercase;
}
.class-info h2 {
  margin: 8px 0 4px;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  color: #f2e6c8;
}
.class-info .diff { display: flex; align-items: center; gap: 12px; margin: 6px 0 16px; color: var(--muted); font-size: .84rem; }
.stars { color: var(--gold-hi); letter-spacing: .14em; text-shadow: 0 0 14px rgba(240, 205, 138, .45); }
.class-info > p { color: var(--muted); margin: 0 0 8px; }
.class-info h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 14px;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .34em;
  text-transform: uppercase;
}
.class-info h3::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-gold), transparent); }
.strength-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.strength-list li { display: flex; align-items: center; gap: 12px; color: #d6c8a6; font-size: .95rem; }
.strength-list li::before {
  content: "";
  width: 7px; height: 7px;
  flex: 0 0 7px;
  transform: rotate(45deg);
  background: var(--accent, var(--gold));
}
.class-skill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.class-skill-row .skill-icon { width: 56px; height: 56px; }
.class-skill-row .skill-icon img { width: 40px; height: 40px; }
.skin-strip { display: flex; align-items: center; gap: 14px; }
.skin-nav {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0 0 4px;
  border: 1px solid var(--line-gold);
  background: rgba(201, 163, 92, .06);
  color: var(--gold-hi);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.skin-nav:hover {
  background: rgba(201, 163, 92, .18);
  border-color: var(--gold-hi);
  transform: translateY(-1px);
}
.skin-count {
  color: var(--gold);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .3em;
}
.skin-strip .anim-sprite { --s: 1.6; }
.skin-strip .portrait {
  width: 112px; height: 112px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-gold);
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent, #c9a35c) 20%, transparent), rgba(0, 0, 0, .6) 78%);
}
.skin-strip figcaption { display: grid; gap: 4px; color: var(--muted); font-size: .82rem; }
.skin-strip figcaption strong { color: var(--ink); font-family: var(--font-display); font-size: 1rem; letter-spacing: .06em; }
.skin-strip figure { display: flex; align-items: center; gap: 16px; margin: 0; }

/* SISTEMAS */
.system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1240px;
  margin: 0 auto;
}
.system-grid article {
  position: relative;
  padding: 34px 28px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s ease;
}
.system-grid article::before {
  content: "0" counter(sys);
  counter-increment: sys;
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: rgba(201, 163, 92, .14);
}
.system-grid { counter-reset: sys; }
.system-grid article:hover { transform: translateY(-4px); border-color: var(--line-gold); }
.system-grid h2 { margin: 0 0 10px; font-size: 1.25rem; color: #eee0bf; }
.system-grid h2::before {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--ember), var(--gold));
}
.system-grid p { margin: 0; color: var(--muted); font-size: .92rem; }

.empty-state {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-gold);
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--line);
  background: #060505;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px clamp(18px, 5vw, 70px);
}
.footer-brand { display: grid; gap: 10px; }
.footer-brand img { max-width: 180px; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .8)); }
.footer-brand span { font-size: .82rem; max-width: 400px; color: var(--faint); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-nav a {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  transition: color .2s ease;
}
.footer-nav a:hover { color: var(--gold-hi); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .04);
  padding: 16px clamp(18px, 5vw, 70px);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 1240px;
  margin: 0 auto;
  font-size: .72rem;
  color: var(--faint);
}

/* ══════════════════════════════════════════════════════════════
   REVEAL
   ══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
  .reveal.visible { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: .08s; }
  .reveal.d2 { transition-delay: .16s; }
  .reveal.d3 { transition-delay: .24s; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVO
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1160px) {
  .skill-list, .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .class-strip { flex-direction: column; min-height: 0; }
  .class-col { min-height: 240px; flex-direction: row; justify-content: flex-start; gap: 22px; padding: 22px; }
  .class-col .anim-sprite { --s: 2.2; margin-bottom: 0; }
  .class-col > div { text-align: left; }
  .class-col .peek { display: none; }
  .class-detail { grid-template-columns: 1fr; }
  .class-stage { min-height: 360px; border-right: none; border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .nav { flex-direction: column; align-items: center; padding-block: 12px; gap: 6px; background: rgba(6, 6, 5, .94); }
  .nav-links { justify-content: center; }
  .world-band { padding-block: 80px; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .skill-list, .item-grid, .monster-list, .system-grid { grid-template-columns: 1fr; }
  .sec { padding-block: 64px; }
  .page-hero { min-height: 40vh; padding-top: 170px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .hero-tag { font-size: 1.1rem; }
  .catalog-section > header { flex-wrap: wrap; }
}
