/* =========================================================
   comparador2.css — Comparador 2.0 (modo Comparar do top6-v2)
   Painel centralizado na tela, com tudo visível desde a abertura.
   Cores: A azul / B âmbar (seguras p/ daltonismo, diferem em luminância).
   Texto ≥ 15px a 1080p (legível em vídeo comprimido).
   ========================================================= */
.c2-root {
  --c2-A: #6cc4ee;
  --c2-B: #eea65a;
  --c2-text: #e8edf4;
  --c2-soft: #cfd8e6;
  --c2-muted: #9aa6bb;
  --c2-label: #8291a7;
  --c2-faint: #6b7a90;
  --c2-line: rgba(255, 255, 255, 0.07);
  --c2-track: rgba(255, 255, 255, 0.06);
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--c2-text);
}
.c2-root.open { display: block; }
.c2-backdrop { position: absolute; inset: 0; background: rgba(3, 6, 10, 0.82); }

/* Painel com tamanho de projeto fixo (1600 px de largura, altura natural),
   centralizado na tela e reduzido/ampliado por --c2-scale (calculado no JS)
   para caber inteiro em qualquer resolução, sem cortar nada. */
.c2-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1600px;
  box-sizing: border-box;
  padding: 34px 52px 24px;
  display: flex;
  flex-direction: column;
  background: radial-gradient(1200px 620px at 50% -18%, #0e1d2d 0%, #070c12 64%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, -50%) scale(var(--c2-scale, 1));
  transform-origin: 50% 50%;
}
/* busca aberta sem comparação: ocupa a tela, sem escala */
.c2-panel.c2-panel--search {
  inset: 0; left: 0; top: 0; width: auto; transform: none;
  border: 0; border-radius: 0; box-shadow: none; background: transparent;
}

.c2-A { color: var(--c2-A); }
.c2-B { color: var(--c2-B); }

/* ---------- topo ---------- */
.c2-top { display: flex; justify-content: space-between; align-items: center; font-size: 15px; color: var(--c2-label); }
.c2-kicker { display: flex; align-items: center; gap: 12px; letter-spacing: 0.16em; }
.c2-kicker i { width: 6px; height: 6px; border-radius: 50%; background: #2ee59d; }
.c2-kicker b { color: var(--c2-soft); font-weight: 600; }
.c2-keys { display: flex; gap: 20px; letter-spacing: 0.02em; }
.c2-keys b { color: var(--c2-soft); font-weight: 600; margin-right: 4px; }
.c2-stale { margin-top: 12px; padding: 8px 14px; border-radius: 10px; background: rgba(238, 166, 90, 0.1); color: #f6cf9f; font-size: 15px; }
.c2-stale code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 14px; color: #fde2bf; }

/* ---------- herói ---------- */
.c2-hero { display: grid; grid-template-columns: minmax(0, 1fr) 520px minmax(0, 1fr); align-items: center; gap: 28px; padding: 30px 0 26px; }
.c2-player { display: flex; align-items: center; gap: 22px; min-width: 0; }
.c2-side-B { justify-content: flex-end; text-align: right; }
.c2-pinfo { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.c2-side-B .c2-pinfo { align-items: flex-end; }
.c2-name { font-size: 38px; transition: none; font-weight: 600; letter-spacing: -0.01em; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.c2-match { font-size: 17px; color: var(--c2-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.c2-meta { font-size: 15px; color: var(--c2-label); display: flex; gap: 8px; white-space: nowrap; overflow: hidden; max-width: 100%; }
.c2-side-B .c2-meta { justify-content: flex-end; }
.c2-sep { color: #3d4b5f; }

.c2-avatar { position: relative; width: 96px; height: 96px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #0c1622; }
.c2-avatar.c2-A { box-shadow: 0 0 0 2px var(--c2-A), 0 0 0 7px rgba(108, 196, 238, 0.08); }
.c2-avatar.c2-B { box-shadow: 0 0 0 2px var(--c2-B), 0 0 0 7px rgba(238, 166, 90, 0.08); background: #16110c; }
.c2-avatar > img:not(.c2-shield) { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.c2-ini { font-size: 34px; font-weight: 300; }
.c2-shield { position: absolute; right: -6px; bottom: -4px; width: 32px; height: 32px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); }

.c2-center { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.c2-label { font-size: 14px; letter-spacing: 0.2em; color: var(--c2-label); }
.c2-big { display: flex; align-items: baseline; gap: 34px; }
.c2-big span { font-size: 96px; font-weight: 300; line-height: 0.9; letter-spacing: -0.03em; }
.c2-big em { font-style: normal; font-size: 18px; letter-spacing: 0.12em; color: #4b5b72; }
.c2-prob { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.c2-prob-n { display: flex; justify-content: space-between; font-size: 22px; font-weight: 600; }
.c2-prob-bar { display: flex; height: 6px; gap: 3px; }
.c2-prob-bar i { display: block; height: 100%; border-radius: 3px; }
.c2-prob-bar i.c2-A { background: var(--c2-A); }
.c2-prob-bar i.c2-B { background: var(--c2-B); }
.c2-verdict { display: flex; justify-content: center; gap: 6px; white-space: nowrap; font-size: 17px; color: var(--c2-muted); }
.c2-verdict b { color: var(--c2-text); font-weight: 600; }

.c2-rule { height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent); }

/* ---------- corpo ---------- */
.c2-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 72px; padding-top: 30px; }
.c2-col { display: flex; flex-direction: column; gap: 44px; min-width: 0; }
.c2-sec { display: flex; flex-direction: column; gap: 14px; }
.c2-sec h3 { margin: 0 0 4px; padding-bottom: 9px; border-bottom: 1px solid var(--c2-line); display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 600; letter-spacing: 0.18em; color: var(--c2-soft); }
.c2-sec h3 span { font-size: 14px; font-weight: 400; letter-spacing: 0.02em; color: var(--c2-label); }
.c2-empty { font-size: 15px; color: var(--c2-faint); }

/* de onde vêm os pontos */
.c2-comp { display: grid; grid-template-columns: 180px minmax(0, 1fr) 46px; grid-template-rows: auto auto; align-items: center; column-gap: 16px; row-gap: 5px; }
.c2-comp-l { grid-row: span 2; font-size: 18px; color: var(--c2-soft); }
.c2-track { height: 6px; border-radius: 3px; background: var(--c2-track); overflow: hidden; }
.c2-fill { display: block; height: 100%; border-radius: 3px; }
.c2-fill.c2-A { background: var(--c2-A); }
.c2-fill.c2-B { background: var(--c2-B); }
.c2-comp.is-neg .c2-fill { background: #4b5b72; }
.c2-num { font-size: 18px; font-weight: 500; text-align: right; }

/* perfil */
.c2-per { display: grid; grid-template-columns: 180px 44px minmax(0, 1fr) 44px; align-items: center; column-gap: 16px; }
.c2-per-l { font-size: 18px; color: var(--c2-soft); }
.c2-per .c2-num.c2-B { text-align: left; }
.c2-hint { font-size: 13px; color: var(--c2-faint); }
.c2-scale { position: relative; height: 18px; }
.c2-scale::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: rgba(255, 255, 255, 0.08); }
.c2-mid { position: absolute; left: 50%; top: 4px; width: 1px; height: 10px; background: rgba(255, 255, 255, 0.18); }
.c2-dot { position: absolute; top: 2px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; box-shadow: 0 0 0 3px #070c12; }
.c2-dot.c2-A { background: var(--c2-A); }
.c2-dot.c2-B { background: var(--c2-B); }

/* contexto */
.c2-ctx { display: grid; grid-template-columns: 90px minmax(0, 1fr) 90px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.c2-ctx-l { font-size: 16px; color: var(--c2-muted); text-align: center; }
.c2-ctx-v { font-size: 20px; font-weight: 500; }
.c2-ctx-v.c2-B { text-align: right; }
.c2-ctx-v.is-lose { opacity: 0.4; }

/* forma */
.c2-forma { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 44px; }
.c2-fbars { display: flex; align-items: flex-end; justify-content: space-between; height: 124px; }
.c2-fbar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; height: 100%; }
.c2-fbar i { display: block; width: 10px; border-radius: 5px; }
.c2-fbar i.c2-A { background: var(--c2-A); }
.c2-fbar i.c2-B { background: var(--c2-B); }
.c2-fval { font-size: 14px; color: var(--c2-muted); }
.c2-frod { font-size: 13px; color: var(--c2-faint); }
.c2-ftxt { margin-top: 8px; font-size: 15px; color: var(--c2-muted); }

/* alertas (faixa abaixo do prognóstico, visível desde a 1ª etapa) */
.c2-warns { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 32px; padding: 0 0 14px; }
.c2-warn { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; color: var(--c2-soft); }
.c2-warn i { width: 6px; height: 6px; border-radius: 50%; background: var(--c2-B); flex-shrink: 0; }

.c2-foot { margin-top: 26px; display: flex; justify-content: space-between; gap: 24px; font-size: 13px; color: var(--c2-faint); }

/* ---------- busca ---------- */
.c2-search { position: absolute; left: 50%; top: 150px; width: min(880px, 86%); transform: translateX(-50%); border-radius: 20px; background: rgba(12, 20, 31, 0.98); border: 1px solid rgba(255, 255, 255, 0.09); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6); display: flex; flex-direction: column; z-index: 2; }
.c2-panel--search { background: transparent; border: 0; }
.c2-search-top { display: flex; justify-content: space-between; padding: 22px 28px 0; font-size: 14px; letter-spacing: 0.18em; color: var(--c2-label); }
.c2-search-top span + span { letter-spacing: 0.02em; font-size: 16px; color: var(--c2-muted); }
.c2-search-in { display: flex; align-items: center; gap: 16px; margin: 14px 28px 0; padding: 14px 0; border-bottom: 1px solid var(--c2-B); }
.c2-search-in.c2-A { border-bottom-color: var(--c2-A); }
.c2-search-in svg { width: 24px; height: 24px; fill: none; stroke: var(--c2-label); stroke-width: 1.6; stroke-linecap: round; }
.c2-search-in input { flex: 1; background: transparent; border: 0; outline: none; color: var(--c2-text); font: 300 32px "Inter", system-ui, sans-serif; }
.c2-search-in input::placeholder { color: #4b5b72; }
.c2-search-in > span { font-size: 14px; color: var(--c2-faint); }
.c2-search-list { padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; max-height: 560px; overflow: auto; }
.c2-sr { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 10px 14px; border: 0; border-radius: 12px; background: transparent; color: var(--c2-text); text-align: left; cursor: pointer; font-family: inherit; }
.c2-sr.is-sel, .c2-sr:hover { background: rgba(255, 255, 255, 0.05); }
.c2-sr-ini { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 300; box-shadow: inset 0 0 0 2px currentColor; }
.c2-sr-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.c2-sr-main b { font-size: 22px; font-weight: 600; }
.c2-sr-main small { font-size: 15px; color: var(--c2-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c2-sr-x { display: flex; flex-direction: column; align-items: flex-end; font-size: 26px; font-weight: 300; }
.c2-sr-x small { font-size: 13px; color: var(--c2-label); }
.c2-search-foot { display: flex; justify-content: space-between; padding: 14px 28px 18px; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 14px; color: var(--c2-faint); }
.c2-search-foot b { color: var(--c2-soft); font-weight: 600; }

/* ---------- card exportável (1080×1350, montado fora da tela) ---------- */
.c2-card {
  --c2-A: #6cc4ee; --c2-B: #eea65a; --c2-text: #e8edf4; --c2-muted: #9aa6bb; --c2-label: #8291a7;
  position: fixed; left: -20000px; top: 0; width: 1080px; height: 1350px; box-sizing: border-box;
  padding: 68px 88px 52px; display: flex; flex-direction: column;
  background: radial-gradient(900px 700px at 50% 10%, #0f2033 0%, #070c12 70%);
  color: var(--c2-text); font-family: "Inter", system-ui, sans-serif; font-variant-numeric: tabular-nums;
}
.c2-card-k { text-align: center; font-size: 20px; letter-spacing: 0.24em; color: var(--c2-label); }
.c2-card-t { text-align: center; margin-top: 14px; font-size: 58px; font-weight: 600; letter-spacing: -0.02em; }
.c2-card-duo { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 48px; padding: 44px 0 36px; }
.c2-card-sep { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.12), transparent); }
.c2-card-p { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.c2-card-p .c2-avatar { width: 132px; height: 132px; }
.c2-card-p .c2-ini { font-size: 48px; }
.c2-card-n { font-size: 42px; font-weight: 600; }
.c2-card-m { font-size: 21px; color: var(--c2-muted); }
.c2-card-x { padding-top: 8px; font-size: 120px; font-weight: 300; line-height: 1; letter-spacing: -0.04em; }
.c2-card-xl { font-size: 18px; letter-spacing: 0.16em; color: var(--c2-label); }
.c2-card-prob .c2-prob-n { font-size: 36px; font-weight: 500; }
.c2-card-prob .c2-prob-bar { height: 8px; gap: 4px; }
.c2-card-prob .c2-verdict { font-size: 22px; }
.c2-card-why { margin: 56px 0 0; padding-top: 36px; border-top: 1px solid rgba(255, 255, 255, 0.08); text-align: center; font-size: 26px; font-weight: 300; line-height: 1.5; color: #cfd8e6; }
.c2-card-f { margin-top: auto; display: flex; justify-content: space-between; font-size: 18px; color: #6b7a90; }
.c2-card-f b { color: #cfd8e6; font-weight: 600; }

/* card: html2canvas não desenha bem box-shadow de anel → borda simples */
.c2-card .c2-avatar { box-shadow: none !important; border: 2px solid currentColor; background: #0c1622; }
.c2-card .c2-avatar.c2-B { background: #16110c; }
.c2-card-why { margin-top: 30px; padding-top: 26px; font-size: 24px !important; }
.c2-card-comp { margin: 26px 0 28px; display: flex; flex-direction: column; gap: 6px; }
.c2-card-ch { display: grid; grid-template-columns: 1fr auto 1fr; font-size: 17px; letter-spacing: 0.14em; color: #8291a7; text-transform: uppercase; }
.c2-card-ch span:first-child { text-align: left; letter-spacing: 0.02em; text-transform: none; font-weight: 600; }
.c2-card-ch span:last-child { text-align: right; letter-spacing: 0.02em; text-transform: none; font-weight: 600; }
.c2-card-cr { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 22px; color: #9aa6bb; }
.c2-card-cr b { font-weight: 500; font-size: 26px; }
.c2-card-cr b:last-child { text-align: right; }

.c2-name.is-long { font-size: 30px; }

/* modo compacto: defensores (mais linhas de contexto) ou com alertas */
.c2-root.is-dense .c2-hero { padding: 24px 0 18px; }
.c2-root.is-dense .c2-body { padding-top: 22px; }
.c2-root.is-dense .c2-col { gap: 26px; }
.c2-root.is-dense .c2-sec { gap: 10px; }
.c2-root.is-dense .c2-ctx { padding: 7px 0; }
.c2-root.is-dense .c2-comp { row-gap: 4px; }
.c2-root.is-dense .c2-fbars { height: 96px; }

/* [2026-11-25] rodapé do card com mais presença — o card circula nas
   redes (BIA+ e lives), então marca e endereço precisam ser lidos */
.c2-card-f {
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 24px;
  color: #9aa6bb;
}
.c2-card-f b { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; color: #e8edf4; }
.c2-card-f span { color: #6cc4ee; font-weight: 600; letter-spacing: 0.02em; }
.c2-label small { font-size: 11px; letter-spacing: 0.08em; opacity: 0.75; text-transform: none; }
