:root {
  --papel: #0b1020;
  --branco: #121a2e;
  --superficie-2: #0f1628;
  --tinta: #e8ebf4;
  --tinta-2: #aab2c8;
  --tinta-3: #7d87a1;
  --linha: #222c45;
  --linha-2: #34405f;
  --azul: #4a4eff;
  --azul-escuro: #6266ff;
  --azul-texto: #aeb2ff;
  --azul-claro: #1b2152;
  --borda-azul: #3a4388;
  --verde: #34d399;
  --vermelho: #ff7088;
  --raio: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font: 16px/1.6 Geist, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "tnum" 1;
  overflow-x: hidden;
}
a { color: var(--azul-texto); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; border-radius: 4px; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.largura { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* cabeçalho */
.cabecalho { background: var(--branco); border-bottom: 1px solid var(--linha); }
.cabecalho-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.marca { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--tinta); text-decoration: none; min-width: 0; }
.selo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--azul); color: #fff; font-size: 13px; font-weight: 700; flex: none; }
.leitura { margin: 0; font-size: 13.5px; color: var(--tinta-2); text-align: right; }
.leitura b { color: var(--tinta); font-weight: 600; }

/* abertura */
.abertura { padding: 56px 0 28px; max-width: 760px; }
h1 { font-size: clamp(34px, 5.6vw, 60px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; text-wrap: balance; }
.lide { margin: 20px 0 0; font-size: clamp(17px, 1.9vw, 20px); line-height: 1.5; color: var(--tinta-2); max-width: 62ch; text-wrap: pretty; }
.lide b { color: var(--tinta); font-weight: 600; }

/* corrida */
.corrida { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio); padding: 28px 24px 20px; }
.pista { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 0; }
.faixa { display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--linha); padding: 0 6px; }
.faixa:first-child { border-left: 0; padding-left: 0; }
.faixa.chegada { border-left: 2px dashed var(--linha-2); }
.carros { display: flex; flex-direction: column-reverse; justify-content: flex-start; gap: 4px; min-height: 220px; flex: 1; padding-bottom: 12px; }
.carro {
  display: block; width: 100%; text-align: left; cursor: pointer;
  font-size: 12.5px; line-height: 1.25; font-weight: 500;
  padding: 5px 7px; border-radius: 6px;
  border: 1px solid var(--borda-azul); background: var(--branco); color: var(--azul-texto);
  overflow-wrap: anywhere;
}
.carro.ativo { background: var(--azul); border-color: var(--azul); color: #fff; }
.carro:hover { border-color: var(--azul); }
.faixa-pe { border-top: 2px solid var(--tinta); padding-top: 10px; min-height: 64px; }
.faixa-pe b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.faixa-pe span { display: block; margin-top: 6px; font-size: 13px; color: var(--tinta-2); line-height: 1.3; }
.chegada .faixa-pe { border-top-color: var(--azul); }
.chegada .vazio-chegada { margin: auto 0 12px; font-size: 13px; color: var(--tinta-3); }
.legenda { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 18px 0 0; font-size: 13px; color: var(--tinta-3); }
.amostra { display: inline-block; width: 14px; height: 10px; border-radius: 3px; border: 1px solid var(--azul); }
.amostra.cheia { background: var(--azul); }
.amostra.vazia { margin-left: 10px; border-color: var(--borda-azul); }

/* agora */
.agora { margin-top: 72px; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 16px 56px; }
.agora-cab h2, .projetos-cab h2, .rodape-dados h2, .glossario h2 { font-size: 22px; letter-spacing: -0.02em; font-weight: 650; line-height: 1.2; }
.fonte { margin: 8px 0 0; font-size: 14px; color: var(--tinta-3); }
.boletim h3 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 650; text-wrap: balance; }
.boletim p { margin: 12px 0 0; font-size: 18px; line-height: 1.55; color: var(--tinta-2); max-width: 64ch; }
.boletim time { display: block; font-size: 14px; color: var(--tinta-3); margin-bottom: 6px; }
.linha-tempo { grid-column: 2; list-style: none; margin: 12px 0 0; padding: 0; border-left: 2px solid var(--linha); }
.linha-tempo li { position: relative; padding: 0 0 18px 20px; max-width: 64ch; }
.linha-tempo li::before { content: ""; position: absolute; left: -6px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--papel); border: 2px solid var(--linha-2); }
.linha-tempo time { font-size: 13px; color: var(--tinta-3); }
.linha-tempo b { display: block; font-weight: 600; font-size: 15.5px; }
.linha-tempo p { margin: 2px 0 0; font-size: 14.5px; color: var(--tinta-2); }

/* projetos */
.projetos { margin-top: 72px; }
.projetos-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 16px; }
.filtros { display: inline-flex; background: var(--superficie-2); border-radius: 9px; padding: 3px; }
.filtros button { border: 0; background: none; padding: 6px 14px; border-radius: 7px; font-size: 14px; color: var(--tinta-2); cursor: pointer; }
.filtros button[aria-pressed="true"] { background: var(--branco); color: var(--tinta); font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.45); }

.tabela { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden; }
.tab-cab, .proj > summary {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 2fr) 96px 120px 72px;
  gap: 16px; align-items: center; padding: 14px 20px;
}
.tab-cab { font-size: 13px; color: var(--tinta-3); border-bottom: 1px solid var(--linha); padding-top: 12px; padding-bottom: 12px; }
.dir { text-align: right; }
.proj { border-bottom: 1px solid var(--linha); }
.proj:last-child { border-bottom: 0; }
.proj > summary { list-style: none; cursor: pointer; }
.proj > summary::-webkit-details-marker { display: none; }
.proj > summary:hover, .proj[open] > summary { background: var(--superficie-2); }
.proj.destaque > summary { background: var(--azul-claro); }
.p-nome { min-width: 0; }
.p-nome b { font-weight: 600; font-size: 15.5px; }
.p-nome .sub { display: block; font-size: 13px; color: var(--tinta-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marcador { display: inline-block; font-size: 12px; font-weight: 500; padding: 1px 7px; border-radius: 99px; margin-left: 6px; vertical-align: 2px; }
.marcador.novo { background: rgba(52,211,153,.14); color: #6ee7b7; }
.marcador.subiu { background: var(--azul-claro); color: var(--azul-texto); }
.marcador.fora { background: rgba(255,112,136,.14); color: var(--vermelho); }
.p-etapa { min-width: 0; }
.p-etapa .trilho { display: block; height: 6px; background: var(--linha); border-radius: 99px; overflow: hidden; }
.p-etapa .trilho i { display: block; height: 100%; background: var(--azul); border-radius: 99px; }
.p-etapa .rot { display: block; margin-top: 6px; font-size: 13.5px; color: var(--tinta-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-fps { font-size: 14.5px; }
.p-fps.sem, .p-est { color: var(--tinta-3); }
.p-ativ { font-size: 14.5px; }
.p-ativ .agora-pt { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--verde); margin-right: 6px; vertical-align: 1px; }
.p-est { font-size: 14px; }
.p-movel { display: none; }

.det { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 48px; padding: 8px 20px 26px; background: var(--superficie-2); }
.det h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.det p { margin: 0; font-size: 15px; color: var(--tinta-2); max-width: 60ch; }
.det .inteira { grid-column: 1 / -1; }
.det ol { list-style: none; margin: 6px 0 0; padding: 0; font-size: 14px; }
.det ol li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 6px 0; border-top: 1px solid var(--linha); }
.det ol time { color: var(--tinta-3); }
.det ol span { color: var(--tinta-2); overflow-wrap: anywhere; }
.det .pe { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--tinta-3); }

/* rodapé de dados */
.rodape-dados { margin-top: 72px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; }
.rodape-dados h2 { margin-bottom: 14px; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--linha); font-size: 14.5px; }
.feed time { color: var(--tinta-3); }
.feed b { font-weight: 600; }
.feed span { color: var(--tinta-2); overflow-wrap: anywhere; }
aside section + section { margin-top: 44px; }
.aviso { margin: -6px 0 10px; font-size: 14px; color: var(--tinta-3); }
.radar, .fora { list-style: none; margin: 0; padding: 0; }
.radar li, .fora li { padding: 11px 0; border-top: 1px solid var(--linha); font-size: 14.5px; }
.radar b, .fora b { font-weight: 600; overflow-wrap: anywhere; }
.radar p, .fora p { margin: 3px 0 0; color: var(--tinta-2); font-size: 14px; }
.radar .vazio { color: var(--tinta-3); }
.fora time { color: var(--tinta-3); font-size: 13.5px; margin-left: 8px; }

/* glossário */
.glossario { margin-top: 72px; }
.glossario dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; margin: 18px 0 0; }
.glossario dt { font-weight: 600; }
.glossario dd { margin: 4px 0 0; color: var(--tinta-2); font-size: 15px; }

.rodape { margin-top: 80px; padding: 28px 0 44px; background: var(--branco); border-top: 1px solid var(--linha); font-size: 14px; color: var(--tinta-3); }
.rodape p { margin: 0 0 6px; max-width: 88ch; }

/* larguras */
@media (max-width: 1024px) {
  .tab-cab, .proj > summary { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.8fr) 88px 110px; }
  .col-est { display: none; }
  .agora { grid-template-columns: minmax(0, 1fr); }
  .linha-tempo { grid-column: 1; }
  .glossario dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pista { grid-template-columns: minmax(0, 1fr); }
  .faixa, .faixa:first-child { flex-direction: row; align-items: flex-start; gap: 14px; border-left: 0; padding: 12px 0; border-top: 1px solid var(--linha); }
  .faixa:first-child { border-top: 0; padding-top: 0; }
  .faixa.chegada { border-left: 0; border-top: 2px dashed var(--linha-2); }
  .faixa-pe, .chegada .faixa-pe { order: -1; border-top: 0; padding-top: 0; min-height: 0; width: 130px; flex: none; display: flex; gap: 8px; align-items: baseline; }
  .faixa-pe b { font-size: 18px; }
  .faixa-pe span { margin: 0; }
  .carros { flex-direction: row; flex-wrap: wrap; min-height: 0; padding: 0; flex: 1; }
  .carro { width: auto; }
  .chegada .vazio-chegada { margin: 0; }
  .rodape-dados { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .det { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {

  .abertura { padding-top: 36px; }
  .corrida { padding: 18px 14px 14px; }
  .faixa-pe, .chegada .faixa-pe { width: 104px; flex-direction: column; gap: 2px; }
  .tab-cab { display: none; }
  .proj > summary { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px 16px; }
  .proj .p-etapa { grid-column: 1 / -1; grid-row: 2; }
  .proj .col-fps, .proj .col-ativ { display: none; }
  .p-movel { display: block; grid-column: 2; grid-row: 1; text-align: right; font-size: 13px; color: var(--tinta-3); white-space: nowrap; }
  .det { padding: 6px 16px 22px; }
  .glossario dl { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .agora, .projetos, .rodape-dados, .glossario { margin-top: 56px; }
}

/* cabeçalho: apoiar */
.cabecalho-dir { display: flex; align-items: center; gap: 18px; min-width: 0; }
.apoiar { flex: none; font-size: 14px; font-weight: 600; color: var(--azul-texto); text-decoration: none; padding: 7px 14px; border-radius: 8px; background: var(--azul-claro); }
.apoiar:hover { background: #232a66; }
.tabela-vazia { padding: 20px; margin: 0; color: var(--tinta-3); }

/* conversa */
.conversa { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 32px 56px; align-items: start; }
.conversa h2 { font-size: 22px; letter-spacing: -0.02em; font-weight: 650; line-height: 1.2; }
.conversa-intro { margin: 8px 0 18px; color: var(--tinta-2); font-size: 15px; }
.form-com { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio); padding: 18px; display: grid; gap: 14px; }
.form-com label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.form-com .opc { font-weight: 400; color: var(--tinta-3); }
.form-com input, .form-com select, .form-com textarea, .copia input {
  font: inherit; font-size: 15px; font-weight: 400; color: var(--tinta);
  background: var(--superficie-2); border: 1px solid var(--linha-2); border-radius: 8px; padding: 9px 11px; width: 100%; min-width: 0;
}
.form-com textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.form-com input:focus, .form-com select:focus, .form-com textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(98,102,255,.3); background: var(--branco); }
.isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-pe { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.conta { font-size: 13px; color: var(--tinta-3); }
.form-pe button, .copia button {
  border: 0; border-radius: 8px; background: var(--azul); color: #fff; font-weight: 600; font-size: 14.5px; padding: 10px 16px; cursor: pointer; white-space: nowrap;
}
.form-pe button:hover, .copia button:hover { background: var(--azul-escuro); }
.form-pe button:disabled { opacity: .6; cursor: wait; }
.form-msg { margin: 0; font-size: 14px; min-height: 0; }
.form-msg:empty { display: none; }
.form-msg.erro { color: var(--vermelho); }
.form-msg.ok { color: var(--verde); }
.regras { margin: 0; font-size: 12.5px; color: var(--tinta-3); line-height: 1.45; }
.torcida { margin-top: 24px; }
.torcida h3 { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.torcida ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.torcida li { display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 4px 10px; font-size: 14px; }
.torcida li .barra { grid-column: 1 / -1; height: 6px; background: var(--linha); border-radius: 99px; overflow: hidden; }
.torcida li .barra i { display: block; height: 100%; background: var(--azul); border-radius: 99px; }
.torcida li .n { text-align: right; color: var(--tinta-3); }

.comentarios { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.comentario { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio); padding: 16px; }
.comentario.recente { border-color: var(--borda-azul); box-shadow: 0 0 0 3px var(--azul-claro); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; }
.comentario .topo-c { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.comentario .quem { font-weight: 600; overflow-wrap: anywhere; }
.comentario time { font-size: 13px; color: var(--tinta-3); }
.comentario .torce { display: inline-block; margin-top: 2px; font-size: 13px; color: var(--azul-texto); }
.comentario p { margin: 6px 0 0; color: var(--tinta-2); font-size: 15.5px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-line; }
.comentarios .vazio { background: var(--branco); border: 1px dashed var(--linha-2); border-radius: var(--raio); padding: 28px 20px; color: var(--tinta-3); text-align: center; }

/* apoio */
.apoio { margin-top: 72px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 56px; align-items: center; background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio); padding: 32px; }
.apoio h2 { font-size: 22px; letter-spacing: -0.02em; font-weight: 650; line-height: 1.2; }
.apoio-txt > p { margin: 8px 0 0; color: var(--tinta-2); max-width: 60ch; }
.apoio h3 { margin-top: 24px; font-size: 16px; font-weight: 600; }
.copia { display: flex; gap: 8px; margin-top: 10px; max-width: 560px; }
.copia input { font-size: 13.5px; color: var(--tinta-2); text-overflow: ellipsis; }
.qr { margin: 0; text-align: center; }
.qr img { display: block; width: 246px; height: 246px; border-radius: 8px; border: 1px solid var(--linha); }
.qr figcaption { margin-top: 10px; font-size: 13px; color: var(--tinta-3); overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .conversa { grid-template-columns: minmax(0, 1fr); }
  .apoio { grid-template-columns: minmax(0, 1fr); }
  .qr { justify-self: center; }
}
@media (max-width: 640px) {

  .marca { font-size: 14px; }
  .conversa, .apoio { margin-top: 56px; }
  .apoio { padding: 22px 16px; }
  .copia { flex-direction: column; }
  .copia button { width: 100%; }
  .qr img { width: 220px; height: 220px; }
  .comentario { grid-template-columns: 34px minmax(0, 1fr); padding: 14px; gap: 10px; }
  .avatar { width: 34px; height: 34px; font-size: 13px; }
}

/* ===== v6: organização e apoio explícito ===== */
.pular { position: absolute; left: 12px; top: -48px; background: var(--azul); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.pular:focus { top: 10px; }
html { scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.cabecalho { position: sticky; top: 0; z-index: 20; }
.cabecalho-in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.marca { flex: none; }
.menu { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.menu a { flex: none; font-size: 14.5px; color: var(--tinta-2); text-decoration: none; padding: 7px 11px; border-radius: 8px; }
.menu a:hover { background: #1a2340; color: var(--tinta); }
.menu a.atual { color: var(--tinta); font-weight: 600; background: #1a2340; }
.apoiar {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  background: var(--azul); color: #fff; font-weight: 600; font-size: 14.5px; padding: 9px 16px; border-radius: 9px; text-decoration: none;
}
.apoiar:hover { background: var(--azul-escuro); }
.coracao { width: 15px; height: 15px; background: #fff; flex: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 4.5 6.7 4.5c2.1 0 3.6 1.2 4.3 2.4h2c.7-1.2 2.2-2.4 4.3-2.4 3.7 0 5.8 3.9 4.3 7.3C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 4.5 6.7 4.5c2.1 0 3.6 1.2 4.3 2.4h2c.7-1.2 2.2-2.4 4.3-2.4 3.7 0 5.8 3.9 4.3 7.3C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat; }

.abertura .leitura { margin: 0 0 14px; text-align: left; font-size: 14px; color: var(--tinta-3); }
.abertura { padding-top: 44px; }

.corrida-pe { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 20px; margin-top: 18px; }
.corrida-pe .legenda { margin: 0; }
.dica { margin: 0; font-size: 13px; color: var(--tinta-3); }

.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--azul); background: var(--azul); color: #fff; font-weight: 600; font-size: 14.5px;
  padding: 10px 16px; border-radius: 9px; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.botao:hover { background: var(--azul-escuro); border-color: var(--azul-texto); }
.botao.secundario { background: var(--branco); color: var(--azul-texto); border-color: var(--borda-azul); }
.botao.secundario:hover { background: var(--azul-claro); }

.faixa-apoio {
  margin-top: 20px; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 18px 22px; align-items: center;
  background: var(--azul-claro); border: 1px solid var(--borda-azul); border-radius: var(--raio); padding: 16px 20px;
}
.faixa-apoio img { width: 72px; height: 72px; border-radius: 6px; background: #fff; padding: 4px; }
.faixa-apoio b { font-size: 16.5px; font-weight: 650; }
.faixa-apoio p { margin: 2px 0 0; font-size: 14.5px; color: var(--tinta-2); max-width: 60ch; }
.faixa-apoio-acoes { display: flex; gap: 8px; flex-wrap: wrap; }

.agora { margin-top: 64px; }
.linha-tempo { grid-column: auto; margin-top: 14px; }
.anteriores { margin-top: 18px; }
.anteriores summary { cursor: pointer; font-size: 14.5px; font-weight: 500; color: var(--azul-texto); width: fit-content; }
.anteriores[hidden] { display: none; }

.projetos-cab .fonte { margin-top: 4px; }
.projetos-cab { align-items: flex-end; }

.apoio { margin-top: 64px; border: 2px solid var(--azul); }
.passos { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: passo; display: grid; gap: 10px; max-width: 60ch; }
.passos li { counter-increment: passo; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: center; color: var(--tinta-2); }
.passos li::before { content: counter(passo); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--azul); color: #fff; font-weight: 700; font-size: 13.5px; }
.passos b { color: var(--tinta); font-weight: 600; }
.apoio .copia { margin-top: 16px; }
.mensal { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--linha); }
.mensal h3 { margin: 0; font-size: 16px; font-weight: 600; }
.mensal p { margin: 6px 0 0; color: var(--tinta-2); max-width: 60ch; }
.qr { background: var(--papel); padding: 18px; border-radius: var(--raio); }

.rodape-dados { margin-top: 72px; }
.rodape-dados h2 { margin-bottom: 4px; }
.rodape-dados .fonte { margin: 0 0 14px; }
.rodape-in { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; }


@media (max-width: 1024px) {
  .cabecalho-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 16px; padding-top: 10px; }
  .menu { grid-column: 1 / -1; grid-row: 2; margin: 6px -6px 6px; }
  .apoiar { grid-column: 2; grid-row: 1; }
  html { scroll-padding-top: 116px; }
}
@media (max-width: 760px) {
  .faixa-apoio { grid-template-columns: 56px minmax(0, 1fr); padding: 16px; }
  .faixa-apoio img { width: 56px; height: 56px; }
  .faixa-apoio-acoes { grid-column: 1 / -1; }
  .faixa-apoio-acoes .botao { flex: 1; }
  .rodape-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .cabecalho-in { padding: 8px 0 0; }
  .marca { font-size: 14px; gap: 8px; }
  .selo { width: 28px; height: 28px; }
  .apoiar { padding: 8px 12px; font-size: 13.5px; }
  .menu a { font-size: 14px; padding: 6px 9px; }
  .abertura { padding-top: 28px; }
  .corrida-pe { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .marca { font-size: 13px; }
  .apoiar .coracao { display: none; }
}

/* tema escuro: detalhes */
::placeholder { color: #5f6985; }
select option { background: var(--branco); color: var(--tinta); }
.cabecalho { background: rgba(11,16,32,.92); backdrop-filter: saturate(140%) blur(10px); }
.rodape { background: var(--superficie-2); }
.faixa-pe { border-top-color: var(--linha-2); }
.chegada .faixa-pe { border-top-color: var(--azul-escuro); }
.carro.ativo { background: var(--azul); border-color: var(--azul); color: #fff; }
.carro:hover { border-color: var(--azul-texto); }
.amostra { border-color: var(--azul-escuro); }
.amostra.vazia { border-color: var(--borda-azul); }
.faixa-apoio { background: linear-gradient(0deg, var(--azul-claro), var(--azul-claro)); }
.faixa-apoio img, .qr img { background: #fff; }
.qr { background: var(--superficie-2); }
.qr img { border-color: transparent; }
.apoio { border-color: var(--azul-escuro); }
.proj.destaque > summary { background: var(--azul-claro); }
.form-com input, .form-com select, .form-com textarea, .copia input { border-color: var(--linha-2); }
.form-com input:focus, .form-com select:focus, .form-com textarea:focus { background: var(--branco); border-color: var(--azul-texto); }
.filtros button[aria-pressed="true"] { background: var(--linha); }
.linha-tempo li::before { background: var(--papel); }
.pular { color: #fff; }

/* ===== chat em balão ===== */
.chat-bolha {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px;
  border: 0; border-radius: 999px; padding: 13px 20px 13px 16px; cursor: pointer;
  background: var(--azul); color: #fff; font-weight: 600; font-size: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.chat-bolha:hover { background: var(--azul-escuro); }
.chat-bolha[aria-expanded="true"] { display: none; }
.chat-icone { width: 22px; height: 22px; background: #fff; flex: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H9l-5 4v-4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H9l-5 4v-4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.chat-conta { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--azul); font-size: 12.5px; font-weight: 700; display: grid; place-items: center; }
.chat-conta[hidden] { display: none; }

.chat-painel {
  position: fixed; right: 20px; bottom: 20px; z-index: 45;
  width: min(400px, calc(100vw - 40px)); height: min(680px, calc(100vh - 110px));
  display: flex; flex-direction: column;
  background: var(--branco); border: 1px solid var(--linha-2); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55); overflow: hidden;
}
.chat-painel[hidden] { display: none; }
.chat-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 16px 12px 18px; border-bottom: 1px solid var(--linha); }
.chat-topo h2 { font-size: 17px; letter-spacing: -0.01em; font-weight: 650; }
.chat-topo .conversa-intro { margin: 2px 0 0; font-size: 13px; color: var(--tinta-3); }
.chat-fechar { flex: none; width: 34px; height: 34px; border-radius: 9px; border: 0; background: var(--superficie-2); cursor: pointer; position: relative; }
.chat-fechar::before, .chat-fechar::after { content: ""; position: absolute; left: 10px; right: 10px; top: 16px; height: 2px; background: var(--tinta-2); border-radius: 2px; transform: rotate(45deg); }
.chat-fechar::after { transform: rotate(-45deg); }
.chat-fechar:hover { background: var(--linha); }
.chat-corpo { flex: 1; overflow-y: auto; padding: 14px 14px 6px; overscroll-behavior: contain; }
.chat-corpo .torcida { margin: 0 0 14px; padding: 12px; border-radius: 10px; background: var(--superficie-2); }
.chat-corpo .torcida h3 { font-size: 13.5px; margin-bottom: 8px; }
.chat-corpo .comentarios { gap: 8px; }
.chat-corpo .comentario { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 12px; background: var(--superficie-2); border-color: transparent; }
.chat-corpo .avatar { width: 32px; height: 32px; font-size: 13px; }
.chat-corpo .comentario p { font-size: 14.5px; margin-top: 3px; }
.chat-corpo .comentarios .vazio { background: transparent; }
.chat-painel .form-com { border: 0; border-top: 1px solid var(--linha); border-radius: 0; padding: 12px 14px 12px; gap: 8px; background: var(--branco); }
.form-linha { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.chat-painel .form-com input, .chat-painel .form-com select, .chat-painel .form-com textarea { font-size: 14.5px; padding: 8px 10px; }
.chat-painel .form-com textarea { min-height: 64px; }
.chat-painel .form-pe button { padding: 9px 18px; }
.chat-painel .regras { font-size: 11.5px; }

@media (max-width: 640px) {
  .chat-bolha { right: 14px; bottom: 14px; padding: 15px; }
  .chat-rot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .chat-conta { position: absolute; top: -4px; right: -4px; }
  .chat-painel { inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .form-linha { grid-template-columns: minmax(0, 1fr); }
  body.chat-aberto { overflow: hidden; }
}

/* ===== chat simples com login Google ===== */
.chat-pe { border-top: 1px solid var(--linha); padding: 12px 14px 10px; background: var(--branco); }
.chat-painel .chat-pe .form-com { border: 0; padding: 0; gap: 8px; background: transparent; }
.entrar { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 4px 0 2px; }
.entrar > p:first-child { margin: 0; font-size: 14px; color: var(--tinta-2); }
#botaoGoogle { min-height: 44px; display: grid; place-items: center; }
.entrar .indisponivel { font-size: 13px; color: var(--tinta-3); }
.eu { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tinta-3); }
.eu img { border-radius: 50%; }
.eu b { color: var(--tinta-2); font-weight: 600; }
.sair { margin-left: auto; border: 0; background: none; color: var(--azul-texto); font-size: 13px; cursor: pointer; padding: 2px 4px; }
.escrever { display: flex; align-items: flex-end; gap: 8px; }
.chat-painel .escrever textarea { flex: 1; min-height: 42px; max-height: 140px; resize: none; border-radius: 12px; padding: 10px 12px; line-height: 1.4; }
.escrever button { border: 0; border-radius: 12px; background: var(--azul); color: #fff; font-weight: 600; font-size: 14.5px; padding: 11px 16px; cursor: pointer; }
.escrever button:hover { background: var(--azul-escuro); }
.escrever button:disabled { opacity: .6; cursor: wait; }
.chat-pe .regras { margin: 8px 0 0; text-align: center; font-size: 11.5px; color: var(--tinta-3); }
.foto-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

[hidden] { display: none !important; }

/* página de privacidade */
.texto-legal { max-width: 720px; padding: 48px 0 24px; }
.texto-legal h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.03em; }
.texto-legal h2 { font-size: 19px; margin: 32px 0 8px; font-weight: 650; }
.texto-legal p, .texto-legal li { color: var(--tinta-2); }
.texto-legal ul { padding-left: 20px; }

/* top 5 + exibir mais */
.abertura + .projetos { margin-top: 8px; }
.exibir-mais {
  display: block; width: 100%; margin-top: 10px; padding: 13px; cursor: pointer;
  background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio);
  color: var(--azul-texto); font-size: 15px; font-weight: 600;
}
.exibir-mais:hover { background: var(--superficie-2); border-color: var(--borda-azul); }

/* medalhas do top 3 */
.estrela {
  display: inline-block; width: 17px; height: 17px; margin-right: 7px; vertical-align: -2px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.estrela.ouro { background: linear-gradient(135deg, #ffe58a, #f2b705 55%, #c98a00); }
.estrela.prata { background: linear-gradient(135deg, #f4f6fa, #b9c1cf 55%, #8a93a3); }
.estrela.bronze { background: linear-gradient(135deg, #f3c39a, #cd7f32 55%, #94531c); }

/* ===== tabela v2 ===== */
.tabela { background: var(--branco); border-color: var(--linha); box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 18px 40px rgba(0,0,0,.25); }
.tab-cab, .proj > summary {
  grid-template-columns: 34px minmax(0, 2.3fr) minmax(0, 2fr) 116px 112px 84px 40px;
  gap: 14px; padding: 14px 18px;
}
.tab-cab { font-size: 12.5px; font-weight: 500; color: var(--tinta-3); background: var(--superficie-2); padding-top: 11px; padding-bottom: 11px; }
.proj > summary { position: relative; transition: background-color .15s; }
.proj > summary:hover { background: #162038; }
.proj[open] > summary { background: #162038; }
.proj > summary::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: transparent; }
.proj:nth-child(2) > summary::before { background: #f2b705; }
.proj:nth-child(3) > summary::before { background: #b9c1cf; }
.proj:nth-child(4) > summary::before { background: #cd7f32; }

.p-pos { display: grid; place-items: center; }
.p-pos .estrela { margin: 0; width: 20px; height: 20px; vertical-align: 0; }
.num-pos { font-size: 13px; font-weight: 600; color: var(--tinta-3); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: var(--superficie-2); }

.p-titulo { display: flex; align-items: center; gap: 6px; min-width: 0; }
.p-titulo b { font-size: 15.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-titulo .marcador { margin-left: 0; flex: none; }
.p-nome .sub { display: flex; align-items: center; gap: 6px; margin-top: 4px; white-space: normal; overflow: visible; }
.p-nome .dono { font-size: 13px; color: var(--tinta-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.so { flex: none; font-size: 11px; font-weight: 500; line-height: 18px; padding: 0 7px; border-radius: 99px; background: var(--superficie-2); color: var(--tinta-2); border: 1px solid var(--linha); }

.p-etapa .segs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; height: 7px; }
.p-etapa .segs i { border-radius: 2px; background: var(--linha); }
.p-etapa .segs i.on { background: linear-gradient(90deg, #4a4eff, #7a7eff); }
.p-etapa .segs i.on.fim { background: var(--verde); }
.p-etapa .rot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 7px; font-size: 13px; color: var(--tinta-3); white-space: nowrap; }
.p-etapa .rot b { font-weight: 500; color: var(--tinta-2); overflow: hidden; text-overflow: ellipsis; }
.p-etapa .rot span { flex: none; font-size: 12px; }

.fps { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.fps.baixo { color: #ff9aa9; background: rgba(255,112,136,.12); }
.fps.medio { color: #f7c766; background: rgba(245,184,74,.12); }
.fps.bom { color: #6ee7b7; background: rgba(52,211,153,.13); }
.p-fps .sem { font-size: 13px; color: var(--tinta-3); }

.ativo-agora { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #6ee7b7; background: rgba(52,211,153,.12); padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.ativo-agora .agora-pt { margin: 0; animation: piscar 1.6s ease-in-out infinite; }
@keyframes piscar { 50% { opacity: .35; } }
.ativo-hoje { font-size: 13.5px; color: var(--tinta-2); white-space: nowrap; }
.p-est { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; font-size: 13.5px; color: var(--tinta-3); }
.p-est svg { color: #f2b705; opacity: .8; flex: none; }

.p-gh { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--tinta-2); border: 1px solid var(--linha); background: var(--superficie-2); text-decoration: none; justify-self: end; }
.p-gh:hover { color: #fff; border-color: var(--azul-texto); background: var(--azul-claro); }
.p-gh.vazio { border: 0; background: none; }

@media (prefers-reduced-motion: reduce) { .ativo-agora .agora-pt { animation: none; } }

@media (max-width: 1024px) {
  .tab-cab, .proj > summary { grid-template-columns: 30px minmax(0, 2.1fr) minmax(0, 1.8fr) 108px 104px 40px; }
  .col-est { display: none !important; }
}
@media (max-width: 760px) {
  .tab-cab { display: none; }
  .proj > summary { grid-template-columns: 28px minmax(0, 1fr) 36px; gap: 10px 12px; padding: 14px 14px 14px 16px; }
  .proj .p-pos { grid-row: 1; grid-column: 1; align-self: start; padding-top: 2px; }
  .proj .p-nome { grid-row: 1; grid-column: 2; }
  .proj .p-gh { grid-row: 1; grid-column: 3; width: 34px; height: 34px; }
  .proj .p-etapa { grid-row: 2; grid-column: 2 / -1; }
  .proj .col-fps, .proj .col-ativ { display: flex !important; grid-row: 3; text-align: left; justify-content: flex-start; }
  .proj .col-fps { grid-column: 2; }
  .proj .col-fps { grid-column: 2 / -1; }
  .proj .col-ativ { grid-column: 2 / -1; justify-self: end; }
  .p-movel { display: none !important; }
}

/* perguntas frequentes */
.faq { margin-top: 72px; }
.faq h2 { font-size: 22px; letter-spacing: -0.02em; font-weight: 650; line-height: 1.2; }
.faq-lista { margin-top: 16px; border: 1px solid var(--linha); border-radius: var(--raio); background: var(--branco); overflow: hidden; }
.faq-lista details { border-top: 1px solid var(--linha); }
.faq-lista details:first-child { border-top: 0; }
.faq-lista summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; font-weight: 600; font-size: 16px; position: relative; }
.faq-lista summary::-webkit-details-marker { display: none; }
.faq-lista summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--azul-texto); }
.faq-lista details[open] summary::after { content: "–"; }
.faq-lista summary:hover { background: var(--superficie-2); }
.faq-lista p { margin: 0; padding: 0 20px 18px; color: var(--tinta-2); max-width: 75ch; }
@media (max-width: 640px) { .faq { margin-top: 56px; } .faq-lista summary { font-size: 15px; padding-left: 16px; } .faq-lista p { padding: 0 16px 16px; } }

/* ===== cenário de fundo (desenho original, sem arte da Rockstar) ===== */
body { position: relative; }
main, .rodape { position: relative; z-index: 1; }
.cenario {
  position: absolute; left: 0; right: 0; top: 0; height: 860px; z-index: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
}
.cenario-img {
  position: absolute; inset: -40px 0 0 0;
  background: url("/cenario.svg") 70% 100% / cover no-repeat;
  opacity: .62; will-change: transform;
  animation: surgir 1.4s ease-out both;
}
/* escurece o lado do texto para a leitura não sofrer */
.cenario::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(11,16,32,.92) 0%, rgba(11,16,32,.72) 38%, rgba(11,16,32,.15) 70%, rgba(11,16,32,0) 100%),
    linear-gradient(180deg, rgba(11,16,32,.55) 0%, rgba(11,16,32,0) 30%);
}
/* granulado de filme */
.cenario::after {
  content: ""; position: absolute; inset: 0; z-index: 2; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
@keyframes surgir { from { opacity: 0; transform: scale(1.04); } to { opacity: .62; transform: scale(1); } }
.abertura h1 { text-shadow: 0 2px 30px rgba(11,16,32,.6); }
@media (max-width: 760px) {
  .cenario { height: 620px; }
  .cenario-img { background-position: 78% 100%; opacity: .5; }
  .cenario::before { background: linear-gradient(180deg, rgba(11,16,32,.55) 0%, rgba(11,16,32,.75) 45%, rgba(11,16,32,.35) 100%); }
  @keyframes surgir { from { opacity: 0; } to { opacity: .5; } }
}
@media (prefers-reduced-motion: reduce) { .cenario-img { animation: none; } }

/* respiro entre o cabeçalho e o cenário: o fundo começa abaixo do cabeçalho e entra em degradê */
.cenario {
  top: 64px; height: 900px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 55%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 55%, transparent 100%);
}
.cabecalho { box-shadow: 0 1px 0 var(--linha), 0 10px 30px rgba(11,16,32,.5); }
.abertura { padding-top: 88px; padding-bottom: 40px; }
@media (max-width: 1024px) { .cenario { top: 104px; } }
@media (max-width: 760px) {
  .cenario { top: 96px; height: 640px; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 50%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 50%, transparent 100%); }
  .abertura { padding-top: 56px; padding-bottom: 28px; }
}

/* ===== cena em camadas: o pôr do sol avança com a rolagem ===== */
.cenario-img { background: none; }
.cena { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cena g, .cena rect { transform-box: view-box; }
.c-noite { opacity: calc(var(--p, 0) * .85); }
.c-estrelas circle { opacity: clamp(0, calc((var(--p, 0) - var(--d, 0)) * 2.4), 1); }
.c-brilho { opacity: calc(1 - var(--p, 0) * .9); }
.c-sol { transform: translateY(calc(var(--p, 0) * 230px)); }
.c-reflexo { opacity: calc(.5 - var(--p, 0) * .5); }
.c-janelas { opacity: calc(.35 + var(--p, 0) * .65); filter: drop-shadow(0 0 3px rgba(255,211,110,.9)); }
.c-cidade { transform: translateY(calc(var(--p, 0) * 18px)); }
.c-palmeiras-fundo { transform: translateY(calc(var(--p, 0) * -20px)); }
.c-palmeiras-frente { transform: translateY(calc(var(--p, 0) * -70px)) scale(calc(1 + var(--p, 0) * .04)); transform-origin: 50% 100%; }
@media (max-width: 760px) { .cena { left: -55%; width: 155%; } }
