/* Nations at War, site. Tema Forja do design system do jogo (um tema só, escuro).
   Layout: a forja e a névoa. O topo arde em ouro e brasa; a página desce até a névoa e termina numa janela do jogo. */
:root {
  color-scheme: dark;
  --iron-950: #17140f;
  --iron-900: #1d1913;
  --iron-800: #3a342b;
  --panel: #211916e6;
  --button: #302721e6;
  --button-hover: #554230f2;
  --edge-bronze: #b39b7c;
  --edge-gold: #edce95;
  --line: #b39b7c33;
  --text: #f6f3ef;
  --text-gold: #f9eace;
  --text-dim: #e1d1b8e6;
  --gold: #c9a24a;
  --gold-hi: #f1d68a;
  --gold-menu: #f2bd61;
  --ember: #d2461e;
  --ember-menu: #8c2108;
  --ember-light: #ffce95;
  --danger: #f9a090;
  --enough: #b3edaa;
  --mist: #0b0a08;

  --font-display: "Cinzel", "Noto Sans", Georgia, serif;
  --font-body: "Alegreya", Georgia, "Times New Roman", serif;

  --step--1: 0.94rem;
  --step-0: 1.19rem;
  --step-1: 1.4rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem);
  --step-3: clamp(2rem, 1.3rem + 2.6vw, 3.1rem);

  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --radius-button: 2.5px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--iron-950);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--edge-gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--text-gold); text-wrap: balance; margin: 0; line-height: 1.15; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* Cabeçalho */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: linear-gradient(to bottom, #17140fee, #17140fcc);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; padding-block: 10px; }
.top .brand img { height: 46px; width: auto; }
.top nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.top nav a {
  font-family: var(--font-display);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-decoration: none;
}
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--gold-hi); }
@media (max-width: 1020px) { .top nav { display: none; } .top .cta-small { margin-left: auto; } }

/* Botões */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--h);
  padding: 0 34px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--text-gold);
  text-shadow: 2px 2px 0 #000000e6;
  border-radius: var(--radius-button);
  cursor: pointer;
  border: 1px solid var(--edge-bronze);
  background: var(--button);
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--button-hover); border-color: var(--edge-gold); color: #fff8e8; }
.btn[disabled], .btn[aria-disabled="true"] { cursor: not-allowed; opacity: .55; }
.btn-forja {
  border: 0;
  border-top: 1px solid var(--gold-menu);
  border-bottom: 1px solid var(--gold-menu);
  border-radius: 0;
  background:
    radial-gradient(120% 140% at 50% 120%, #d2461e66, transparent 60%),
    linear-gradient(to right, transparent, var(--ember-menu) 18%, var(--ember-menu) 82%, transparent);
  padding-inline: 48px;
}
.btn-forja:hover { background:
    radial-gradient(120% 140% at 50% 120%, #f2bd6155, transparent 60%),
    linear-gradient(to right, transparent, #a52a0c 18%, #a52a0c 82%, transparent); }
.btn-small { --h: 40px; padding: 0 20px; font-size: 0.9rem; }

/* Abertura */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(86vh, 820px);
  display: grid;
  align-items: end;
}
.hero-media { position: absolute; inset: 0; z-index: -2; background: #0d0b08 url(../vid/frota.jpg) center / cover no-repeat; }
.hero-media video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; transition: opacity 1.1s ease;
}
.hero-media video.is-on { opacity: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, #17140f99 0%, #17140f22 30%, #17140f55 60%, var(--iron-950) 100%),
    radial-gradient(70% 60% at 50% 45%, transparent, #0b0a08aa);
}
.embers {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url(../img/brasas.png), url(../img/brasas.png);
  background-size: 640px, 380px;
  mix-blend-mode: screen;
  opacity: .85;
  animation: subir 48s linear infinite;
}
@keyframes subir { from { background-position: 0 0, 120px 0; } to { background-position: 0 -1280px, 120px -1520px; } }
.hero .wrap { display: grid; justify-items: center; text-align: center; gap: 22px; padding-block: 120px 72px; }
.hero .logo { width: min(500px, 78vw); height: auto; filter: drop-shadow(0 18px 40px #000000cc); }
.rule { width: min(460px, 70vw); height: 14px; background: url(../img/linha.png) center / 100% 100% no-repeat; }
.genre {
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.22em; color: var(--gold-menu); text-transform: uppercase;
}
.tagline { font-family: var(--font-display); font-size: var(--step-2); color: var(--text-gold); text-shadow: 2px 2px 0 #000000e6; max-width: 26ch; text-wrap: balance; }
.hero .lead { max-width: 58ch; color: var(--text); text-shadow: 0 1px 12px #000; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 8px; }

/* Contador */
.contador { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; font-size: var(--step--1); color: var(--text-dim); }
.contador.esquerda { justify-content: flex-start; }
.contador b { font-family: var(--font-display); font-size: 1.25rem; color: var(--gold-hi); font-variant-numeric: tabular-nums; margin-right: 6px; }
.contador .item { display: inline-flex; align-items: baseline; }

/* Seções */
.section { padding-block: clamp(72px, 10vw, 128px); }
.head { display: grid; gap: 14px; justify-items: start; margin-bottom: 40px; }
.head.center { justify-items: center; text-align: center; }
.eyebrow { font-family: var(--font-display); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-menu); }
.head h2, .head h1 { font-size: var(--step-3); }
.head .rule { width: min(300px, 60vw); }
.prose { display: grid; gap: 1.1em; max-width: 62ch; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--text-gold); }
.dim { color: var(--text-dim); }
.nota { font-size: var(--step--1); color: var(--text-dim); font-style: italic; }

.lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lista li { position: relative; padding-left: 30px; }
.lista li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px;
  background: url(../img/losango.png) center / contain no-repeat;
}

/* Fundos com arte */
.com-arte { position: relative; isolation: isolate; overflow: hidden; }
.com-arte > .bg { position: absolute; inset: 0; z-index: -1; }
.com-arte > .bg img, .com-arte > .bg video { width: 100%; height: 100%; object-fit: cover; }
.com-arte > .bg::after { content: ""; position: absolute; inset: 0; }
.mundo > .bg img { object-position: 60% 50%; opacity: .55; }
.mundo > .bg::after { background: linear-gradient(90deg, var(--iron-950) 8%, #17140fd9 45%, #17140f55 100%), linear-gradient(to bottom, var(--iron-950), transparent 22%, transparent 78%, var(--iron-950)); }

/* A incursão */
.incursao > .bg { background: #0d0b08 url(../vid/sino.jpg) center / cover; }
.incursao > .bg video { opacity: .9; }
.incursao > .bg::after { background: linear-gradient(to bottom, var(--iron-950) 0%, #17140fcc 25%, #17140fe6 70%, var(--iron-950) 100%); }
.incursao .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .incursao .grid { grid-template-columns: minmax(0, 1fr); } }

.etapas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 640px) { .etapas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.etapas li { display: grid; gap: 10px; align-content: start; }
.etapas h3 { font-size: 1.02rem; letter-spacing: .04em; }
.etapas p { font-size: var(--step--1); line-height: 1.45; color: var(--text-dim); }
.mapa {
  --n: 0%;
  position: relative; aspect-ratio: 1; max-width: 100%;
  border: 1px solid #edce9566;
  background:
    linear-gradient(#b39b7c14 1px, transparent 1px) 0 0 / 20% 20%,
    linear-gradient(90deg, #b39b7c14 1px, transparent 1px) 0 0 / 20% 20%,
    radial-gradient(circle at 50% 40%, #4a4134, #2a251e 75%);
  overflow: hidden;
}
.mapa .fronteira { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: repeating-linear-gradient(90deg, var(--ember-light) 0 6px, transparent 6px 12px); opacity: .7; }
.mapa .nevoa {
  position: absolute; left: 50%; top: 70%; width: var(--n); aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, #0b0a08f5 0 52%, #0b0a08cc 64%, #0b0a0800 72%);
}
.mapa .cidade {
  position: absolute; left: 32%; width: 36%; top: 70%; bottom: 5%;
  border: 2px solid var(--edge-gold); border-bottom-width: 0;
  background: #b39b7c26; z-index: 2;
}
.mapa .portao { position: absolute; left: 50%; top: -2px; width: 26%; height: 2px; translate: -50% 0; background: #2a251e; }
.mapa.fechada .portao { background: var(--ember); height: 3px; top: -3px; }
.mapa .ponto { position: absolute; width: 7px; height: 7px; translate: -50% -50%; border-radius: 50%; z-index: 3; }
.mapa .dono { background: var(--text-gold); box-shadow: 0 0 0 3px #f9eace22; }
.mapa .invasor { background: var(--ember-light); box-shadow: 0 0 0 3px #ffce9533; }
.mapa .saida {
  position: absolute; width: 12px; height: 12px; translate: -50% -50%; z-index: 3;
  background: url(../img/losango.png) center / contain no-repeat;
  filter: drop-shadow(0 0 4px #f2bd61);
}
.mapa .saida.apagada { opacity: .25; filter: none; }
.mapa .saida.viva { filter: drop-shadow(0 0 6px var(--ember)) drop-shadow(0 0 2px #fff); animation: pulsar 1.6s ease-in-out infinite; }
@keyframes pulsar { 50% { opacity: .45; } }
.legenda-mapa { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: .88rem; color: var(--text-dim); }
.legenda-mapa span { display: inline-flex; align-items: center; gap: 8px; }
.legenda-mapa i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.legenda-mapa i.losango { width: 12px; height: 12px; border-radius: 0; background: url(../img/losango.png) center / contain no-repeat; }

.fora { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: clamp(48px, 7vw, 88px); }
@media (max-width: 640px) { .fora { grid-template-columns: minmax(0, 1fr); } }
.fora figure { margin: 0; position: relative; overflow: hidden; border: 1px solid #b39b7c40; }
.fora img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.fora figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; background: linear-gradient(to top, #0b0a08ee, transparent); font-size: var(--step--1); color: var(--text); }
.fora figcaption b { font-family: var(--font-display); color: var(--text-gold); display: block; font-size: 1rem; }

/* Combate */
.pares { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
@media (max-width: 860px) { .pares { grid-template-columns: minmax(0, 1fr); } }
.par { display: grid; gap: 22px; align-content: start; min-width: 0; }
.par img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid #b39b7c40; }
.par h3 { font-size: var(--step-2); }

/* Nações */
.intro { max-width: 60ch; }
.duas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid #edce9555; }
@media (max-width: 860px) { .duas { grid-template-columns: minmax(0, 1fr); } }
.nacao { display: grid; grid-template-rows: auto 1fr; min-width: 0; background: var(--iron-900); }
.nacao + .nacao { border-left: 1px solid #edce9555; }
@media (max-width: 860px) { .nacao + .nacao { border-left: 0; border-top: 1px solid #edce9555; } }
.nacao img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.nacao .corpo { display: grid; gap: 14px; padding: 28px clamp(20px, 3vw, 36px) 32px; align-content: start; }
.nacao h3 { font-size: var(--step-2); }
.falta { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--text-dim); }
.falta b { font-family: var(--font-display); color: var(--gold-hi); letter-spacing: .04em; }

/* Casa e guilda */
.casa > .bg img { opacity: .5; }
.casa > .bg::after { background: linear-gradient(to bottom, var(--iron-950), #17140fb3 30%, #17140fcc 70%, var(--iron-950)); }
.colunas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .colunas { grid-template-columns: minmax(0, 1fr); } }
.janela {
  background: var(--panel);
  border: 1px solid var(--edge-gold);
  padding: 24px 30px 28px;
  display: grid; gap: 16px; align-content: start; min-width: 0;
}
@media (max-width: 480px) { .janela { padding-inline: 18px; } }
.janela > h3, .janela > h2 { font-size: 1.6rem; text-align: center; }
.janela > .rule { width: 100%; height: 10px; }

/* Roadmap */
.estado { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.estado::before { content: ""; width: 10px; height: 10px; rotate: 45deg; border: 1.5px solid currentColor; flex: none; }
.estado.feito { color: var(--gold-hi); }
.estado.feito::before { background: currentColor; }
.estado.andamento { color: var(--ember-light); }
.estado.andamento::before { background: linear-gradient(135deg, currentColor 50%, transparent 50%); }
.estado.planejado { color: var(--text-dim); }
.novo { display: inline-block; margin-left: 10px; padding: 1px 7px 2px; vertical-align: 2px; background: var(--gold-menu); color: var(--iron-950); font-family: var(--font-display); font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-radius: var(--radius-button); }
.mudancas { margin-top: 22px; background: var(--iron-900); border: 1px solid var(--line); border-top: 2px solid var(--iron-800); padding: 18px 20px 12px; min-width: 0; }
.mudancas h3 { font-size: 1.1rem; margin-bottom: 8px; }
.mudancas ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); column-gap: 28px; }
.mudancas li { display: grid; gap: 3px; padding-block: 10px; border-top: 1px solid #b39b7c22; font-size: .98rem; line-height: 1.35; min-width: 0; }
.mudancas .quando { font-family: var(--font-display); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.mudancas .m-feito .quando { color: var(--gold-hi); }
.mudancas .m-andamento .quando { color: var(--ember-light); }
.mudancas .onde { font-size: var(--step--1); color: var(--text-dim); }
/* Roadmap com prévia: o aviso da recompensa, a faixa das etapas, o painel da etapa escolhida, os cartões com mídia e a
   janela da prévia. */
.rm-premio {
  display: flex; align-items: center; gap: 16px; margin: 0 0 30px; padding: 14px 20px;
  background: linear-gradient(90deg, #2a2118, var(--iron-900)); border: 1px solid #edce9555; border-left: 3px solid var(--gold-menu);
  line-height: 1.45;
}
.rm-premio strong { font-family: var(--font-display); font-weight: 700; color: var(--text-gold); letter-spacing: .04em; }
.rm-premio a { margin-left: 4px; color: var(--gold-hi); white-space: nowrap; }
.rm-premio-marca { flex: none; width: 14px; height: 14px; rotate: 45deg; background: var(--gold); border: 2px solid var(--gold-hi); box-shadow: 0 0 14px #edce9566; }
.rm { display: grid; gap: 0; }
.rm-trilha {
  list-style: none; margin: 0; padding: 0 0 4px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 1fr);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin;
}
.rm-passo { position: relative; scroll-snap-align: center; min-width: 0; }
.rm-passo::before {
  content: ""; position: absolute; top: 25px; left: -50%; width: 100%; height: 2px; background: var(--iron-800);
}
.rm-passo:first-child::before { display: none; }
.rm-passo.feito::before, .rm-passo.atual::before { background: linear-gradient(to right, var(--gold), var(--gold-menu)); }
.rm-aba {
  appearance: none; background: none; border: 0; color: inherit; font: inherit; cursor: pointer;
  position: relative; z-index: 1; width: 100%; padding: 14px 6px 16px;
  display: grid; justify-items: center; align-content: start; gap: 6px; text-align: center;
}
.rm-aba:focus-visible { outline: 2px solid var(--edge-gold); outline-offset: -2px; }
.rm-marca {
  width: 18px; height: 18px; rotate: 45deg; margin-bottom: 8px;
  border: 2px solid var(--edge-bronze); background: var(--iron-950); transition: box-shadow .25s, background .25s;
}
.feito .rm-marca { background: var(--gold); border-color: var(--gold-hi); }
.andamento .rm-marca { background: linear-gradient(135deg, var(--ember-light) 50%, var(--iron-950) 50%); border-color: var(--ember-light); }
.atual .rm-marca { background: var(--ember); border-color: var(--ember-light); box-shadow: 0 0 0 5px #d2461e2e, 0 0 22px #d2461e99; }
.rm-aba-nome {
  font-family: var(--font-display); font-size: .82rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-dim); line-height: 1.25; text-wrap: balance;
}
.rm-aba-quando { font-size: .82rem; color: #e1d1b88c; line-height: 1.3; }
.atual .rm-aba-quando { color: var(--ember-light); }
.rm-aba:hover .rm-aba-nome { color: var(--text-gold); }
.rm-aba[aria-selected="true"] .rm-aba-nome { color: var(--text-gold); }
.rm-aba[aria-selected="true"]::after {
  content: ""; position: absolute; left: 18%; right: 18%; bottom: 0; height: 2px; background: var(--gold-menu);
}

.rm-painel {
  background: linear-gradient(to bottom, #2a2118, var(--iron-900) 220px); border: 1px solid var(--line);
  border-top: 2px solid var(--gold-menu); padding: clamp(20px, 3vw, 34px); display: grid; gap: 28px; min-width: 0;
}
.rm-painel:focus-visible { outline-offset: 4px; }
.rm-topo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 260px); gap: 18px 32px; align-items: end; }
.rm-sobre { font-family: var(--font-display); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-menu); }
.rm-topo h3 { font-size: var(--step-2); margin: 8px 0 6px; }
.rm-tema { color: var(--text-dim); font-size: var(--step-0); line-height: 1.45; max-width: 60ch; }
.rm-progresso { display: grid; gap: 8px; font-size: .92rem; color: var(--text-dim); }
.rm-barra { height: 6px; background: var(--iron-800); position: relative; overflow: hidden; }
.rm-barra > span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); }

.rm-destaques { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 18px; }
.rm-cartao {
  appearance: none; font: inherit; color: inherit; text-align: left; cursor: pointer; padding: 0; min-width: 0;
  background: var(--iron-950); border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.rm-cartao:hover { border-color: #edce9599; transform: translateY(-2px); box-shadow: 0 10px 28px #0008; }
.rm-cartao:focus-visible { outline-offset: 2px; }
.rm-quadro { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--iron-800); }
.rm-quadro img, .rm-quadro video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.rm-cartao:hover .rm-quadro img { transform: scale(1.04); }
.rm-quadro.video::after {
  content: ""; position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--edge-gold); background: #0b0a08b3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%23edce95'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.rm-origem {
  position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; background: #0b0a08cc; border: 1px solid #b39b7c55;
  font-family: var(--font-display); font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim);
}
.rm-quadro.vazio, .rm-previa-midia.vazio {
  display: grid; place-items: center;
  background: url(../img/losango.png) center 42% / 44px auto no-repeat, radial-gradient(circle at 50% 42%, #3a342b, var(--iron-900) 72%);
}
.rm-embreve {
  margin-top: 70px; font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: #e1d1b8a6;
}
.rm-corpo { display: grid; gap: 8px; padding: 14px 16px 18px; align-content: start; }
.rm-corpo .estado { font-size: .66rem; }
.rm-nome { font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; color: var(--text-gold); line-height: 1.25; }
.rm-texto {
  font-size: var(--step--1); color: var(--text-dim); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.rm-resto { display: grid; gap: 10px; }
.rm-lista-titulo { font-family: var(--font-display); font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-menu); }
.rm-lista { list-style: none; margin: 0; padding: 0; columns: 2 320px; column-gap: 36px; }
.rm-lista li {
  break-inside: avoid; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: baseline;
  padding-block: 9px; border-top: 1px solid #b39b7c22; font-size: 1.02rem; line-height: 1.4;
}
.rm-lista .estado { font-size: .66rem; }
.rm-nome .novo { font-size: .56rem; vertical-align: 3px; }
@media (max-width: 760px) {
  .rm-topo { grid-template-columns: minmax(0, 1fr); }
  .rm-trilha { grid-auto-columns: 112px; margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r)); padding-inline: var(--gutter-l) var(--gutter-r); }
}

.rm-previa {
  width: min(980px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow: auto;
  background: var(--iron-900); color: var(--text); border: 1px solid #edce9566; box-shadow: 0 30px 80px #000c;
}
.rm-previa::backdrop { background: #0b0a08db; backdrop-filter: blur(3px); }
.rm-previa-midia { position: relative; aspect-ratio: 16 / 9; background: #000; }
.rm-previa-midia img, .rm-previa-midia video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.rm-previa-midia .rm-embreve { margin-top: 90px; }
.rm-previa-miniaturas { display: flex; gap: 8px; padding: 12px 24px 0; flex-wrap: wrap; }
.rm-previa-miniaturas:empty { display: none; }
.rm-mini { appearance: none; padding: 0; width: 88px; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: var(--iron-800); cursor: pointer; overflow: hidden; opacity: .7; }
.rm-mini img { width: 100%; height: 100%; object-fit: cover; }
.rm-mini.ativa, .rm-mini:hover { opacity: 1; border-color: var(--edge-gold); }
.rm-previa-corpo { display: grid; gap: 10px; padding: 20px 24px 8px; }
.rm-previa-corpo h3 { font-size: var(--step-2); }
.rm-previa-estado .estado { font-size: .7rem; }
.rm-previa-texto { color: var(--text-dim); line-height: 1.55; max-width: 66ch; }
.rm-previa-origem { font-size: .88rem; color: #e1d1b88c; font-style: italic; }
.rm-previa-origem:empty { display: none; }
.rm-previa-nav { display: flex; justify-content: space-between; gap: 12px; padding: 14px 24px 24px; }
.rm-previa-nav .btn[disabled] { visibility: hidden; }
.rm-fechar {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center;
  background: #0b0a08cc; border: 1px solid var(--edge-bronze); color: var(--text-gold); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.rm-fechar:hover { border-color: var(--edge-gold); background: var(--button-hover); }
@media (prefers-reduced-motion: reduce) {
  .rm-cartao, .rm-quadro img { transition: none; }
  .rm-cartao:hover { transform: none; }
  .rm-cartao:hover .rm-quadro img { transform: none; }
}
.atualizado { margin-top: 18px; font-size: var(--step--1); color: var(--text-dim); }

/* Trailer */
.faixa-trailer {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 640px);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-bottom: 18px;
  scrollbar-color: var(--iron-800) transparent;
  list-style: none; margin: 0;
}
.faixa-trailer li { scroll-snap-align: center; display: grid; gap: 12px; align-content: start; }
.faixa-trailer img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid #b39b7c40; background: var(--iron-900); }
.faixa-trailer .fala { font-style: italic; font-size: var(--step-1); color: var(--text-gold); line-height: 1.35; }
.faixa-trailer .quadro { font-family: var(--font-display); font-size: .75rem; letter-spacing: .14em; color: var(--text-dim); }
.faixa-trailer .fim { display: grid; place-items: center; aspect-ratio: 16 / 9; border: 1px solid #edce9555; background: radial-gradient(circle at 50% 60%, #3a1a0c, var(--iron-950) 70%); }
.faixa-trailer .fim img { border: 0; width: 46%; aspect-ratio: auto; background: none; }
.player { margin: 0 0 clamp(28px, 4vw, 44px); border: 1px solid #b39b7c55; background: var(--iron-950); box-shadow: 0 24px 60px #0009; }
.player video { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; background: var(--iron-950); }
.player video::cue { font-family: var(--font-body); font-style: italic; color: var(--text-gold); background: #17140fcc; line-height: 1.35; }
.trailer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: flex-end; margin-bottom: 18px; }
.trailer-nav-titulo { margin: 0 auto 0 0; font-family: var(--font-display); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); }
.trailer-nav .btn { --h: 40px; padding: 0 16px; font-size: .85rem; }

/* Chamada do teste */
.chamada { border-top: 1px solid var(--line); }
.chamada > .bg img { opacity: .32; }
.chamada > .bg::after { background: linear-gradient(90deg, var(--iron-950) 10%, #17140fcc 55%, #17140f99); }
.chamada .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .chamada .grid { grid-template-columns: minmax(0, 1fr); } }
.fatos { display: grid; margin: 8px 0 0; }
.fatos div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; padding-block: 12px; border-top: 1px solid var(--line); }
@media (max-width: 480px) { .fatos div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.fatos dt { font-family: var(--font-display); font-weight: 700; color: var(--text-gold); font-size: .95rem; letter-spacing: .03em; }
.fatos dd { margin: 0; }
.selo { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border: 1px solid #ffb36199; background: #a0613059; color: var(--ember-light); font-family: var(--font-display); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }

/* Página do teste */
.topo-teste { padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 64px); }
.topo-teste > .bg img { opacity: .4; object-position: 50% 30%; }
.topo-teste > .bg::after { background: linear-gradient(to bottom, #17140fcc, #17140fe6 60%, var(--iron-950)); }
.teste .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .teste .grid { grid-template-columns: minmax(0, 1fr); } }
.passos { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: passo; }
.passos li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; counter-increment: passo; }
.passos li::before {
  content: counter(passo, upper-roman);
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--edge-gold); rotate: 45deg; scale: .8;
  font-family: var(--font-display); font-weight: 700; color: var(--gold-hi); font-size: 1rem;
}
.passos li > div { display: grid; gap: 4px; }
.passos b { font-family: var(--font-display); color: var(--text-gold); font-size: 1.05rem; }

.form { gap: 18px; }
.form .titulo { font-size: 2.1rem; text-align: center; }
.campo { display: grid; gap: 8px; }
.campo label, .campo legend { font-family: var(--font-display); font-weight: 700; color: var(--text-gold); font-size: .95rem; letter-spacing: .03em; padding: 0; }
.campo input[type="email"], .campo input[type="number"], .campo select {
  width: 100%; min-height: 50px; padding: 0 14px;
  background: #00000073; color: var(--text); color-scheme: dark;
  border: 1px solid var(--edge-bronze); border-radius: var(--radius-button);
  font-family: var(--font-body); font-size: 1.1rem;
}
.campo select option { background: var(--iron-900); color: var(--text); }
.campo input[type="email"]:focus, .campo input[type="number"]:focus, .campo select:focus { border-color: var(--edge-gold); outline: none; box-shadow: 0 0 0 2px #edce9555; }
.linha-campos { display: grid; grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr); gap: 14px; }
.campo .nota { font-size: var(--step--1); margin: 0; }
.escondido { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.aviso .btn { margin-top: 12px; }
.aviso p { margin: 0; }
fieldset.campo { border: 0; margin: 0; padding: 0; }
.opcoes { display: flex; flex-wrap: wrap; gap: 10px; }
.opcao { position: relative; }
.opcao input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opcao span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid #b39b7c88; border-radius: 4px; background: #303035d9;
  font-family: var(--font-display); font-size: .92rem; color: #dddad1;
}
.opcao input:hover + span { background: #59523ff2; }
.opcao input:checked + span { background: #6f613f; color: #ffe595; border-color: var(--edge-gold); }
.opcao input:focus-visible + span { outline: 2px solid var(--edge-gold); outline-offset: 2px; }
.aceite { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; font-size: var(--step--1); color: var(--text-dim); line-height: 1.45; }
.aceite input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); }
.form .btn { width: 100%; }
.erro { color: var(--danger); font-size: var(--step--1); }
.aviso { border: 1px solid #edce9555; background: #a0613033; padding: 12px 14px; font-size: var(--step--1); color: var(--text); }
.aviso.ok { border-color: #b3edaa66; background: #6fb86f22; }
.aviso.ruim { border-color: #f9a09066; background: #ce655922; }
.aviso b { font-family: var(--font-display); color: var(--text-gold); }
.rodape-janela { display: flex; justify-content: flex-end; font-size: .95rem; color: var(--text-dim); border-top: 1px solid var(--line); padding-top: 12px; text-align: right; }
.dados { border-top: 1px solid var(--line); }
.dados .colunas { gap: clamp(24px, 4vw, 48px); }
.dados h3 { font-size: 1.15rem; margin-bottom: 10px; }
.dados p, .dados li { font-size: 1.02rem; color: var(--text-dim); }

/* Rodapé */
footer { border-top: 1px solid var(--line); background: #120f0b; }
footer .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; padding-block: 40px; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } }
footer img { width: 120px; height: auto; }
footer p { font-size: var(--step--1); color: var(--text-dim); max-width: 70ch; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; }
footer nav a { font-family: var(--font-display); font-size: .82rem; letter-spacing: .06em; color: var(--text-dim); text-decoration: none; }
footer nav a:hover { color: var(--gold-hi); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .embers, .mapa .saida.viva { animation: none; }
  .hero-media video, .incursao > .bg video { display: none; }
}

[hidden] { display: none !important; }
