/* Site oficial do Kleros (M20, GDD-10 §3).
   Cores: o escuro do jogo com o dourado do kit de UI e o azul do cristal do
   logotipo. Nada vem de fora — sem fonte de CDN, sem imagem de terceiros. */

:root {
  --fundo: #0d0f14;
  --fundo-alt: #151921;
  --painel: #1c212b;
  --borda: #3a3223;
  --texto: #e8e4d8;
  --texto-fraco: #a9a493;
  --dourado: #d4a94c;
  --dourado-claro: #f0d48a;
  --azul: #5fb4e6;
  --largura: 1120px;
  --topo-altura: 60px;
  --titulo: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --corpo: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topo-altura) + 12px); }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font: 16px/1.6 var(--corpo);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; }
a { color: var(--dourado-claro); }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--titulo); font-weight: 700; line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; }

.miolo { max-width: var(--largura); margin: 0 auto; padding: 0 16px; }

/* ── Topo ───────────────────────────────────────────────────────────────── */
.topo {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 15, 20, .94);
  border-bottom: 1px solid var(--borda);
}
.topo-miolo {
  max-width: var(--largura); margin: 0 auto; padding: 0 16px;
  height: var(--topo-altura);
  display: flex; align-items: center; gap: 16px;
}
.marca {
  font-family: var(--titulo); font-size: 22px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: var(--dourado-claro);
}
.topo-nav { display: flex; gap: 20px; margin-left: auto; }
.topo-nav a { color: var(--texto); text-decoration: none; font-size: 14px; white-space: nowrap; }
.topo-nav a:hover { color: var(--dourado-claro); }

.botao {
  display: inline-block; padding: 12px 28px;
  background: linear-gradient(#e6c06a, #b98a2e);
  border: 1px solid #f3dc9b; border-radius: 4px;
  box-shadow: 0 0 0 1px #5b4315, 0 2px 0 1px #5b4315;
  color: #1d1505; font-family: var(--titulo); font-weight: 700; font-size: 17px;
  letter-spacing: .04em; text-decoration: none; text-align: center; white-space: nowrap;
}
.botao:hover { background: linear-gradient(#f3d488, #cb9b3a); }
.botao-pequeno { padding: 7px 18px; font-size: 14px; }
.botao-vazado {
  background: none; color: var(--dourado-claro);
  border-color: var(--dourado); box-shadow: none;
}
.botao-vazado:hover { background: rgba(212, 169, 76, .12); }
/* Baixar para Android (KY 2, 18/11): a versão e o tamanho numa segunda linha. */
.botao-android { padding-top: 7px; padding-bottom: 7px; line-height: 1.2; }
.botao-android[hidden] { display: none; }
/* /download: aviso de teste e passos de instalação (LW 1 e 2, 19/11). */
.download-info { margin-top: 26px; max-width: 34em; text-align: left; }
.download-info[hidden] { display: none; }
.download-info .aviso-teste { margin-top: 0; }
.download-titulo { margin-top: 22px; font-size: 20px; color: var(--dourado-claro); }
.download-passos { margin: 10px 0 0; padding-left: 1.4em; list-style: decimal; color: var(--texto); font-size: 15px; }
.download-passos li::marker { color: var(--dourado-claro); font-weight: 700; }
.download-passos li + li { margin-top: 6px; }
.download-nota { margin-top: 12px; color: var(--texto-fraco); font-size: 14px; }
.botao-detalhe {
  display: block; margin-top: 2px;
  font-family: var(--corpo); font-weight: 400; font-size: 13px; letter-spacing: 0;
  color: var(--texto);
}

.idioma { position: relative; }
.idioma-botao {
  display: flex; align-items: center; padding: 6px;
  background: none; border: 1px solid var(--borda); border-radius: 4px; cursor: pointer;
}
.idioma-botao:hover { border-color: var(--dourado); }
.idioma-botao img, .idioma-lista img { display: block; width: 28px; height: 20px; border-radius: 2px; }
.idioma-lista {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 170px;
  background: var(--painel); border: 1px solid var(--borda); border-radius: 4px;
  padding: 4px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
.idioma-lista button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; background: none; border: 0; border-radius: 3px;
  color: var(--texto); font: 15px var(--corpo); text-align: left; cursor: pointer;
}
.idioma-lista button:hover { background: rgba(212, 169, 76, .14); }
.idioma-lista button[aria-checked="true"] { color: var(--dourado-claro); font-weight: 600; }

/* ── Abertura ───────────────────────────────────────────────────────────── */
/* O logotipo novo (11/10) tem fundo transparente e um halo escuro de borda
   irregular; o fundo da abertura é preto atrás dele para o halo não aparecer
   como mancha. */
.abertura { background: radial-gradient(ellipse at 30% 45%, #000 0, #000 38%, var(--fundo) 78%); }
.abertura-miolo {
  max-width: var(--largura); margin: 0 auto; padding: 24px 16px 56px;
  display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  align-items: center; gap: 24px;
}
.abertura-logo { display: block; width: 100%; }
.selo {
  display: inline-block; margin-bottom: 18px; padding: 4px 12px;
  border: 1px solid var(--borda); border-radius: 999px;
  color: var(--azul); font-size: 13px; letter-spacing: .04em;
  text-transform: uppercase; /* "tudo em maiuscula" (autor, 19/11); o texto do dicionário segue "Em beta" */
}
h1 { font-size: clamp(34px, 5.4vw, 60px); color: #fff; }
.abertura-sub { margin-top: 18px; font-size: 18px; color: var(--texto); max-width: 34em; }
.acoes { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }
/* O aviso de versão de teste da /download (LW 1, 19/11) tem a mesma cara do
   aviso de idioma. */
.aviso-idioma, .aviso-teste {
  margin-top: 18px; padding: 10px 14px; max-width: 34em;
  border-left: 3px solid var(--azul); background: rgba(95, 180, 230, .08);
  color: var(--texto); font-size: 14px;
}

/* ── Seções ─────────────────────────────────────────────────────────────── */
.secao { padding: 72px 0; text-align: center; }
.secao-alt { background: var(--fundo-alt); border-block: 1px solid #1f2430; }
h2 { font-size: clamp(26px, 3.6vw, 38px); color: var(--dourado-claro); }
.titulo-menor { margin-top: 64px; font-size: clamp(22px, 3vw, 30px); color: var(--dourado-claro); }
.subtitulo { margin: 14px auto 0; max-width: 46em; color: var(--texto-fraco); font-size: 17px; }
.divisor { display: block; margin: 22px auto 36px; width: 252px; }

.pilares { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; text-align: left; }
.pilares li, .passos li, .classe {
  background: var(--painel); border: 1px solid var(--borda); border-radius: 6px;
}
.pilares li { padding: 22px; }
.pilares h3, .passos h3 { font-size: 19px; color: var(--dourado-claro); margin-bottom: 8px; }
.pilares p, .passos p, .classe-texto { color: var(--texto); font-size: 15px; }

.passos { counter-reset: passo; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; text-align: left; }
.passos li { counter-increment: passo; padding: 22px; position: relative; }
.passos li::before {
  content: counter(passo);
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-bottom: 14px;
  border: 1px solid var(--dourado); border-radius: 50%;
  color: var(--dourado-claro); font: 700 18px var(--titulo);
}

.biomas { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.bioma img { display: block; margin: 0 auto; width: 100%; max-width: 150px; }
.bioma span { display: block; margin-top: 6px; color: var(--texto-fraco); font-size: 14px; }

.cidades { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; text-align: left; }
/* Cartão da cidade: a foto de referência é o FUNDO (pedido do autor, 11/10).
   As fotos escurecem para #1a1d24 à direita — a cor do cartão é essa, para a
   emenda não aparecer. O véu por cima garante o contraste do texto: mais
   leve no alto, onde ficam bandeira e nome, quase fechado atrás do resumo. */
.cidade {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; gap: 14px; padding: 16px; min-height: 290px;
  background: #1a1d24; border: 1px solid var(--borda); border-radius: 6px;
}
.cidade-foto {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: left center;
}
.cidade::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(13, 15, 20, .12) 0, rgba(13, 15, 20, .45) 34%, rgba(13, 15, 20, .88) 64%, rgba(13, 15, 20, .94) 100%);
}
.cidade-bandeira { flex: 0 0 64px; width: 64px; align-self: flex-start; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .7)); }
.cidade-corpo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cidade h4 { font-size: 24px; color: #fff; text-shadow: 0 2px 6px #000; }
.cidade-epiteto { color: var(--dourado-claro); font-family: var(--titulo); font-style: italic; margin: 2px 0 10px; text-shadow: 0 1px 4px #000; }
/* O resumo desce para a parte mais fechada do véu. */
.cidade-texto { margin-top: auto; padding-top: 56px; color: var(--texto); font-size: 15px; text-shadow: 0 1px 3px #000; }
.cidade-oficio { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(240, 212, 138, .25); font-size: 14px; color: var(--texto); }
.cidade-oficio strong { margin-left: 8px; color: var(--dourado-claro); }

.classes { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.classe { padding: 20px 14px; }
.classe img { display: block; margin: 0 auto 10px; width: 96px; }
.classe h4 { font-size: 20px; color: #fff; }
.classe-papel { color: var(--dourado-claro); font-size: 14px; margin: 2px 0 8px; }

.capturas { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.captura figure { margin: 0; }
.captura img { display: block; width: 100%; border: 1px solid var(--borda); border-radius: 6px; }
.captura figcaption { margin-top: 8px; color: var(--texto-fraco); font-size: 14px; }

.chamada { background: radial-gradient(ellipse at 50% 0, #1d2331 0, var(--fundo) 70%); }
.chamada .acoes { justify-content: center; }
.chamada .aviso-idioma { margin-inline: auto; text-align: left; }

/* ── Rodapé ─────────────────────────────────────────────────────────────── */
.rodape { padding: 32px 0 40px; border-top: 1px solid var(--borda); text-align: center; color: var(--texto-fraco); font-size: 14px; }
.rodape-nome { max-width: 46em; margin: 0 auto 14px; font-family: var(--titulo); font-style: italic; }
.rodape-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }

/* ── Telas estreitas ────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .topo-nav { display: none; }
  .topo-miolo .botao-pequeno { margin-left: auto; }
  .abertura-miolo { grid-template-columns: 1fr; text-align: center; padding-top: 8px; gap: 0; }
  .abertura-logo { max-width: 340px; margin: 0 auto; }
  .abertura { background: radial-gradient(ellipse at 50% 22%, #000 0, #000 34%, var(--fundo) 74%); }
  .abertura-sub, .aviso-idioma, .download-info { margin-inline: auto; }
  .aviso-idioma { text-align: left; }
  .acoes { justify-content: center; }
  .secao { padding: 52px 0; }
  .biomas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .marca { font-size: 19px; letter-spacing: .1em; }
  .topo-miolo { gap: 10px; }
  .cidades { grid-template-columns: 1fr; }
  .cidade-bandeira { flex-basis: 52px; width: 52px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
