:root {
  --fundo: #0b0b0f;
  --superficie: #14141b;
  --superficie-2: #1b1b24;
  --borda: #26262f;
  --texto: #f2f2f5;
  --fraco: #8b8b98;
  --acento: #d8c48a;
  --verde: #6fcf87;
  --ambar: #e8b465;
  --vermelho: #e0685f;
  --raio: 14px;
  --largura: 900px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
  background: var(--fundo);
  color: var(--texto);
  font: 400 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- topo ---------- */
.topo-site {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 16px max(20px, calc((100vw - var(--largura)) / 2));
  background: rgba(11, 11, 15, .86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--borda);
}
.marca { display: flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -.01em; }
.ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--acento); }
.topo-site nav { display: flex; gap: 20px; }
.topo-site a { color: var(--fraco); text-decoration: none; font-size: 14px; }
.topo-site a:hover { color: var(--texto); }
@media (max-width: 620px) { .topo-site nav a:nth-child(3) { display: none; } }

/* ---------- hero ---------- */
.hero {
  max-width: var(--largura);
  margin: 0 auto;
  padding: 72px 20px 56px;
}
h1 {
  font-size: clamp(34px, 7vw, 60px);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 600;
}
h1 em { font-style: normal; color: var(--acento); }
.sub { margin-top: 20px; font-size: clamp(16px, 2.2vw, 19px); color: #c9c9d3; max-width: 60ch; }
.sub strong { color: var(--texto); font-variant-numeric: tabular-nums; }
.sub.fraco { color: var(--fraco); font-size: 15px; margin-top: 12px; }

.botao {
  display: inline-block;
  margin-top: 28px;
  padding: 15px 30px;
  border: 0; border-radius: var(--raio);
  background: var(--acento); color: #14140f;
  font: 600 15.5px/1 inherit;
  text-decoration: none; cursor: pointer;
  transition: .15s;
}
.botao:hover { background: #e6d29a; }
.botao:disabled { background: var(--borda); color: #55555f; cursor: not-allowed; }
.botao.largo { display: block; width: 100%; margin-top: 22px; }

/* ---------- blocos ---------- */
.bloco {
  max-width: var(--largura);
  margin: 0 auto;
  padding: 60px 20px;
  border-top: 1px solid var(--borda);
}
.bloco.escuro { max-width: none; background: var(--superficie); border-top: 1px solid var(--borda); }
.bloco.escuro > * { max-width: var(--largura); margin-left: auto; margin-right: auto; }

.rotulo {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--acento); margin-bottom: 10px;
}
h2 { font-size: clamp(24px, 4vw, 33px); letter-spacing: -.02em; font-weight: 600; }
h3 { font-size: 17px; margin-top: 32px; font-weight: 600; }
.explica { margin-top: 12px; color: #b4b4c0; max-width: 62ch; }
.nota { margin-top: 14px; font-size: 14px; color: var(--fraco); max-width: 62ch; }

/* ---------- upload ---------- */
.entradas {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 26px;
}
@media (max-width: 560px) { .entradas { grid-template-columns: 1fr; } }

.solta {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  border: 1.5px dashed var(--borda);
  border-radius: var(--raio);
  background: var(--superficie);
  cursor: pointer;
  transition: .15s;
  min-height: 92px;
}
.solta:hover, .solta.sobre { border-color: var(--acento); background: var(--superficie-2); }
.solta.ok { border-style: solid; border-color: #3a3a48; }
.miniatura {
  flex: 0 0 62px; width: 62px; height: 62px;
  border-radius: 10px; background: #202029;
  background-size: cover; background-position: center;
}
.texto-solta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.texto-solta strong { font-size: 14.5px; font-weight: 600; }
.texto-solta span {
  font-size: 12.5px; color: var(--fraco);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.aviso-linha {
  margin-top: 14px; padding: 12px 16px;
  border: 1px solid var(--vermelho); border-radius: 11px;
  color: #f0a49e; font-size: 14.5px;
  background: rgba(224, 104, 95, .08);
}

/* ---------- resultado multidao ---------- */
.resultado { margin-top: 26px; }
.palco-foto { position: relative; line-height: 0; border-radius: var(--raio); overflow: hidden; }
.palco-foto img { width: 100%; display: block; }
.caixas { position: absolute; inset: 0; }
.caixa {
  position: absolute;
  border: 2px solid rgba(255,255,255,.42);
  border-radius: 3px;
}
.caixa.voce {
  border-color: var(--verde);
  border-width: 3px;
  box-shadow: 0 0 0 3px rgba(111,207,135,.22), 0 0 22px rgba(111,207,135,.4);
  z-index: 2;  /* a marcada passa por cima das caixas vizinhas */
}
.caixa .etiqueta {
  position: absolute; bottom: calc(100% + 5px); left: -3px;
  padding: 3px 8px; border-radius: 6px;
  background: var(--verde); color: #0b2312;
  font: 700 11.5px/1.4 inherit; white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,.55);
}
/* rosto colado no topo: a etiqueta desce para dentro da imagem */
.caixa.voce.no-topo .etiqueta { bottom: auto; top: calc(100% + 5px); }

.painel {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  margin-top: 16px; padding: 16px;
  background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio);
}
.achado { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.achado img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; }
.achado .seta { color: var(--fraco); }
.achado .txt strong { display: block; }
.achado .txt span { font-size: 13px; color: var(--fraco); }

.metricas { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.metricas div { text-align: right; }
.metricas dt { font-size: 11.5px; color: var(--fraco); text-transform: uppercase; letter-spacing: .06em; }
.metricas dd { font-size: 17px; font-variant-numeric: tabular-nums; }

/* ---------- resultado comparar ---------- */
.par { display: flex; align-items: center; justify-content: center; gap: 18px; }
.par img { width: 132px; height: 132px; border-radius: 12px; object-fit: cover; background: #202029; }
.igual {
  padding: 7px 14px; border-radius: 999px;
  font: 600 13px/1 inherit; text-align: center; white-space: nowrap;
}
.igual.mesma { background: rgba(111,207,135,.16); color: var(--verde); border: 1px solid rgba(111,207,135,.4); }
.igual.provavel { background: rgba(232,180,101,.14); color: var(--ambar); border: 1px solid rgba(232,180,101,.4); }
.igual.diferente { background: rgba(224,104,95,.13); color: var(--vermelho); border: 1px solid rgba(224,104,95,.4); }

.barra-score { margin-top: 24px; }
.trilha {
  position: relative; height: 8px; border-radius: 999px;
  background: var(--superficie-2); overflow: visible;
}
.preenche {
  height: 100%; border-radius: 999px; width: 0;
  background: linear-gradient(90deg, #b56b64, var(--ambar) 55%, var(--verde));
  transition: width .7s cubic-bezier(.2,.8,.2,1);
}
.corte { position: absolute; top: -5px; width: 1px; height: 18px; background: #3d3d4a; }
.corte::after {
  content: attr(data-t);
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  font-size: 10.5px; color: var(--fraco);
}
.legenda {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 26px; font-size: 12.5px; color: var(--fraco);
}
#valor-score { font-size: 22px; color: var(--texto); font-variant-numeric: tabular-nums; }

/* ---------- numeros ---------- */
.numeros {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px; margin-top: 28px;
}
.numeros div {
  padding: 18px 16px; border-radius: var(--raio);
  background: var(--superficie-2); border: 1px solid var(--borda);
}
.numeros strong {
  display: block; font-size: 26px; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; color: var(--acento);
}
.numeros span { font-size: 13px; color: var(--fraco); }

/* ---------- grafico ---------- */
.grafico { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.linha-g { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.linha-g .faixa { flex: 0 0 84px; color: var(--fraco); font-variant-numeric: tabular-nums; }
.linha-g .barra {
  flex: 1; height: 22px; border-radius: 5px;
  background: linear-gradient(90deg, rgba(216,196,138,.75), rgba(216,196,138,.35));
  min-width: 2px; transition: width .8s cubic-bezier(.2,.8,.2,1);
}
.linha-g .qtd { flex: 0 0 42px; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- passos e listas ---------- */
.passos { margin-top: 26px; counter-reset: p; list-style: none; display: grid; gap: 18px; }
.passos li {
  padding: 20px; border-radius: var(--raio);
  background: var(--superficie); border: 1px solid var(--borda);
  position: relative; padding-left: 62px;
}
.passos li::before {
  counter-increment: p; content: counter(p);
  position: absolute; left: 20px; top: 20px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(216,196,138,.14); color: var(--acento);
  display: grid; place-items: center; font: 700 14px/1 inherit;
}
.passos h3 { margin: 0 0 4px; }
.passos p { color: #b4b4c0; font-size: 14.5px; }

.lista { margin-top: 14px; padding-left: 20px; display: grid; gap: 12px; }
.lista li { color: #b4b4c0; font-size: 15px; }
.lista strong { color: var(--texto); }

.pilha { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.pilha span {
  padding: 7px 13px; border-radius: 999px;
  background: var(--superficie-2); border: 1px solid var(--borda);
  font-size: 13px; color: #c2c2cd;
}

/* ---------- rodape ---------- */
.rodape {
  max-width: var(--largura); margin: 0 auto;
  padding: 44px 20px 64px;
  border-top: 1px solid var(--borda);
  font-size: 14px; color: #a6a6b2;
}
.rodape p + p { margin-top: 14px; }
.rodape .fraco { color: var(--fraco); font-size: 13px; }

/* ---------- carregando ---------- */
.girando { position: relative; color: transparent !important; }
.girando::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(20,20,15,.3); border-top-color: #14140f;
  animation: girar .8s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }
