/* Tokens e base compartilhados pelas tres telas. */

:root {
  --fundo: #061323;
  --fundo-2: #0c2035;
  --fundo-3: #102a43;
  --tinta: #f4f7fc;
  --tinta-media: #b2c5d8;
  --tinta-fraca: #829ab1;
  --acento: #35c5f3;
  --acento-escuro: #0074bc;
  --alerta: #f49e7c;
  --ouro: #ffc857;
  --borda: rgba(255, 255, 255, 0.1);
  --borda-forte: rgba(255, 255, 255, 0.22);

  --fonte: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Cantarell,
    'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--fundo);
  color: var(--tinta);
  font-family: var(--fonte);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { min-height: 100vh; min-height: 100dvh; }

h1, h2, h3, p { margin: 0; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ---------------------------------------------------------------- *
 * PALCO — a projecao
 * ---------------------------------------------------------------- */

.palco {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

/* Tudo dentro do palco escala com a altura da viewport, para o mesmo
   layout funcionar no telao e espremido numa janela de call. */
.palco-area {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vh, 40px) clamp(24px, 5vw, 110px);
  min-height: 0;
}

.slide {
  width: 100%;
  max-width: 1600px;
  animation: entra 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes entra {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

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

.kicker {
  font-size: clamp(11px, 1.6vh, 18px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--acento);
  font-weight: 700;
  margin-bottom: clamp(12px, 2vh, 28px);
}

.titulo-gigante {
  font-size: clamp(32px, min(8.5vh, 7vw), 112px);
  line-height: 1.02;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.titulo-grande {
  font-size: clamp(25px, min(5.8vh, 5vw), 72px);
  line-height: 1.08;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.titulo-medio {
  font-size: clamp(20px, min(4vh, 3.3vw), 48px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.apagado { color: var(--tinta-fraca); }
.acento { color: var(--acento); }

.nota-slide {
  margin-top: clamp(16px, 3vh, 40px);
  font-size: clamp(14px, 2.4vh, 30px);
  line-height: 1.4;
  color: var(--tinta-media);
  max-width: 40em;
}

.alerta-slide {
  margin-top: clamp(14px, 2.4vh, 32px);
  font-size: clamp(13px, 2vh, 25px);
  line-height: 1.4;
  color: var(--alerta);
  border-left: 3px solid var(--alerta);
  padding-left: 0.8em;
  max-width: 26em;
}

.rodape-slide {
  margin-top: clamp(16px, 3vh, 40px);
  font-size: clamp(12px, 1.9vh, 24px);
  color: var(--tinta-fraca);
  line-height: 1.4;
}

/* revelacao em duas partes (frase) */
.oculto { opacity: 0; transform: translateY(10px); }
.revelado {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --- transicao de ato --- */
.transicao { text-align: center; }
.transicao .secao {
  font-size: clamp(12px, 2vh, 22px);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--acento);
  font-weight: 700;
  margin-bottom: clamp(14px, 2.4vh, 30px);
}

/* --- Sequências e ferramentas --- */
.cards {
  display: grid;
  grid-template-columns: repeat(var(--colunas, 4), minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 48px);
  margin-top: clamp(24px, 6vh, 74px);
}
.card {
  position: relative;
  border-top: 1px solid rgba(116, 176, 210, .35);
  padding-top: clamp(18px, 3vh, 36px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(8px, 1.5vh, 18px);
}
.historia .card::before {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--acento);
  top: -4px;
  left: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #102a3b;
}
.card .marca {
  font-family: var(--mono);
  font-size: clamp(18px, 3vh, 36px);
  color: var(--acento);
  font-weight: 500;
  letter-spacing: -.04em;
}
.card .card-titulo {
  font-size: clamp(15px, 2.6vh, 30px);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.card .card-texto {
  font-size: clamp(12px, 1.95vh, 23px);
  line-height: 1.55;
  color: var(--tinta-media);
}
.card .selo {
  color: var(--acento);
  font-size: clamp(10px, 1.4vh, 16px);
  line-height: 1.4;
}
.card .selo::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-right: 7px; vertical-align: middle; }
.card .card-url {
  font-family: var(--mono);
  font-size: clamp(10px, 1.5vh, 18px);
  color: var(--acento);
  margin-top: auto;
  padding-top: 1em;
}
.ferramentas .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.agenda .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.agenda .card-titulo { font-size: clamp(22px, 4vh, 46px); }
.agenda .card-texto { max-width: 23em; }
.assuntos-retomada { display: flex; flex-wrap: wrap; gap: 12px clamp(24px, 4vw, 72px); list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--borda); color: var(--tinta-media); font-size: clamp(12px, 1.8vh, 22px); }
.assuntos-retomada li { display: flex; align-items: baseline; gap: 10px; }
.assuntos-retomada span { color: var(--acento); font-family: var(--mono); font-size: .8em; }
.historia .card .marca { font-size: clamp(17px, 2.6vh, 31px); }
.ferramentas .card { padding-right: 1vw; }
.slide-cards .rodape-slide { max-width: 70em; margin-top: clamp(20px, 5vh, 60px); }

/* --- Comparações: cada par quantitativo usa a mesma escala --- */
.numeros-cabecalho, .linha-numero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 76px);
}
.numeros-cabecalho {
  margin-top: clamp(20px, 3.5vh, 44px);
  padding: 0 20px 10px;
  font-size: clamp(10px, 1.4vh, 16px);
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--tinta-fraca);
}
.numeros-cabecalho span:last-child { color: var(--acento); }
.numeros { display: grid; }
.linha-numero {
  align-items: center;
  padding: clamp(9px, 1.6vh, 20px) 20px;
  border-top: 1px solid var(--borda);
}
.linha-numero:last-child { border-bottom: 1px solid var(--borda); }
.linha-numero.destaque { background: linear-gradient(90deg, rgba(0, 157, 219, .05), transparent); }
.linha-rotulo { font-size: clamp(12px, 1.8vh, 22px); line-height: 1.35; color: var(--tinta-media); }
.linha-rotulo .escopo { display: block; font-family: var(--mono); font-size: .8em; color: var(--acento); margin-bottom: .2em; }
.lado { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.valor { font-size: clamp(22px, 4.5vh, 54px); font-weight: 650; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.valor.antes { color: #a0b0c1; }
.valor.depois { color: var(--acento); }
.valor-nota { font-size: clamp(10px, 1.55vh, 18px); color: var(--tinta-media); line-height: 1.3; }
.numero-trilho { height: 3px; background: rgba(255, 255, 255, .05); margin-top: 5px; }
.numero-trilho i { display: block; height: 100%; }
.numero-trilho .antes { background: #61778e; }
.numero-trilho .depois { background: var(--acento); }

/* --- dominio --- */
.dominio { text-align: center; }

.subdominios {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: clamp(6px, 1.4vw, 20px);
  margin: clamp(18px, 3.4vh, 48px) 0;
  font-weight: 750;
  letter-spacing: -0.02em;
  font-size: clamp(22px, 6vh, 74px);
}

.subdominio {
  color: var(--acento);
  font-family: var(--mono);
  opacity: 0;
  transform: translateY(12px);
  animation: sobe 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* o atraso de cada subdominio vem inline, por indice (ha separadores entre eles) */

.dominio-base {
  color: var(--tinta);
  font-family: var(--mono);
  opacity: 0;
  animation: sobe 0.5s ease 1.15s forwards;
}

@keyframes sobe {
  to { opacity: 1; transform: none; }
}

.dominio-detalhes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(10px, 2vw, 34px);
  color: var(--tinta-fraca);
  font-size: clamp(12px, 2vh, 24px);
  opacity: 0;
  animation: sobe 0.5s ease 1.5s forwards;
}

.dominio-revelacao {
  margin-top: clamp(20px, 4vh, 56px);
  font-size: clamp(20px, 5vh, 62px);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.08;
  opacity: 0;
  animation: sobe 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 2.1s forwards;
}

/* --- interacao / resultados --- */
.pergunta {
  font-size: clamp(22px, 5.4vh, 66px);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-align: center;
  margin-bottom: clamp(18px, 3.4vh, 46px);
}

.barras { display: grid; gap: clamp(12px, 2.5vh, 30px); max-width: 1120px; margin: 0 auto; }
.barra-linha { display: grid; gap: clamp(7px, 1.1vh, 14px); }
.barra-cabecalho { display: flex; align-items: baseline; gap: 16px; }
.barra-indice { font: clamp(10px, 1.6vh, 18px) var(--mono); color: var(--tinta-fraca); }
.barra-rotulo { flex: 1; font-size: clamp(14px, 2.8vh, 32px); font-weight: 550; letter-spacing: -.015em; }
.barra-valor { font-size: clamp(21px, 3.7vh, 44px); font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.04em; min-width: 3em; text-align: right; }
.barra-valor small { font-size: .55em; color: var(--tinta-media); margin-left: 2px; }
.barra-trilho { height: clamp(5px, 1vh, 12px); background: rgba(124, 172, 208, .12); border-radius: 3px; overflow: hidden; margin-left: 36px; }
.barra-preenche { height: 100%; background: linear-gradient(90deg, #0074bc, #35c5f3); border-radius: inherit; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.barra-linha.e-resposta .barra-preenche { background: var(--ouro); }
.barra-linha.e-resposta .barra-rotulo, .barra-linha.e-resposta .barra-valor { color: var(--ouro); }
.barra-check { font-size: .7em; margin-left: 8px; }
.barras.escondido .barra-preenche { width: 0 !important; }
.barras.escondido .barra-valor { opacity: 0; }

.aguardando {
  text-align: center;
  color: var(--tinta-fraca);
  font-size: clamp(14px, 2.6vh, 32px);
  margin-top: clamp(14px, 2.6vh, 32px);
}

.contador-respostas {
  text-align: center;
  margin-top: clamp(14px, 2.6vh, 34px);
  color: var(--tinta-fraca);
  font-size: clamp(12px, 2vh, 24px);
  font-variant-numeric: tabular-nums;
}

/* --- nuvem de palavras --- */
.nuvem {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 1.6vw, 28px);
  padding: clamp(10px, 2vh, 30px) 0;
  min-height: 30vh;
}

.palavra-nuvem {
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1;
  animation: entra 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --- barra inferior do palco --- */
.palco-rodape {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: clamp(8px, 1.4vh, 16px) clamp(16px, 3vw, 40px);
  border-top: 1px solid var(--borda);
  background: rgba(0, 0, 0, 0.35);
}

.acesso {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 20px);
}

.acesso-qr {
  width: clamp(44px, 8vh, 92px);
  height: clamp(44px, 8vh, 92px);
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
  flex: none;
  display: grid;
  place-items: center;
}

.acesso-qr svg { width: 100%; height: 100%; display: block; }

.acesso-texto { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.acesso-chamada {
  font-size: clamp(9px, 1.3vh, 13px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tinta-fraca);
  font-weight: 700;
}

.acesso-url {
  font-family: var(--mono);
  font-size: clamp(12px, 2.1vh, 24px);
  font-weight: 700;
  color: var(--acento);
  word-break: break-all;
  line-height: 1.1;
}

.palco-rodape .espaco { flex: 1; }

.indicador {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-size: clamp(10px, 1.7vh, 18px);
  color: var(--tinta-fraca);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.indicador b { color: var(--tinta); font-weight: 700; }

.ponto-vivo {
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--acento);
  animation: pulsa 2s ease-in-out infinite;
}

@keyframes pulsa {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.progresso {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--acento);
  transition: width 0.4s ease;
  z-index: 5;
}

/* --- reacoes flutuantes --- */
.reacoes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 50;
}

.reacao {
  position: absolute;
  bottom: 6vh;
  font-size: clamp(22px, 4vh, 46px);
  animation: sobe-flutua 3.4s cubic-bezier(0.25, 0.6, 0.4, 1) forwards;
  will-change: transform, opacity;
}

@keyframes sobe-flutua {
  0% { opacity: 0; transform: translateY(0) scale(0.6); }
  12% { opacity: 1; transform: translateY(-6vh) scale(1.1); }
  100% { opacity: 0; transform: translateY(-72vh) scale(0.9); }
}

/* ---------------------------------------------------------------- *
 * PLATEIA — a segunda tela
 * ---------------------------------------------------------------- */

.plateia {
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100dvh;
}

.plateia-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--borda);
}

.plateia-marca {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--acento);
  font-weight: 700;
}

.painel {
  background: linear-gradient(160deg, var(--fundo-2), var(--fundo-3));
  border: 1px solid var(--borda);
  border-radius: 16px;
  padding: 18px;
}

.painel-pergunta {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.opcoes { display: grid; gap: 10px; }

.opcao {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--borda-forte);
  background: rgba(255, 255, 255, 0.03);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  transition: background 0.15s, border-color 0.15s, transform 0.08s;
  min-height: 56px;
}

.opcao:active { transform: scale(0.985); }

.opcao.escolhida {
  background: rgba(53, 197, 243, 0.14);
  border-color: var(--acento);
  color: var(--acento);
}

.opcao .marcador {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--borda-forte);
  flex: none;
  display: grid;
  place-items: center;
}

.opcao.escolhida .marcador { border-color: var(--acento); }
.opcao.escolhida .marcador::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--acento);
}

.campo-palavra {
  display: flex;
  gap: 8px;
}

.campo-palavra input {
  flex: 1;
  min-width: 0;
  padding: 16px;
  font-size: 17px;
  font-family: inherit;
  color: var(--tinta);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--borda-forte);
  border-radius: 12px;
}

.campo-palavra input:focus {
  outline: none;
  border-color: var(--acento);
}

.botao-primario {
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--acento);
  color: #052538;
  font-weight: 750;
  font-size: 16px;
  white-space: nowrap;
}

.botao-primario:disabled { opacity: 0.4; }

.reagir {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: auto;
}

.botao-reacao {
  padding: 12px 0;
  font-size: 28px;
  border-radius: 14px;
  border: 1px solid var(--borda);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.08s, background 0.15s;
  line-height: 1;
}

.botao-reacao:active {
  transform: scale(0.9);
  background: rgba(53, 197, 243, 0.18);
}

.dica {
  text-align: center;
  color: var(--tinta-fraca);
  font-size: 13px;
  line-height: 1.45;
}

.estado-espera {
  text-align: center;
  padding: 30px 10px;
  color: var(--tinta-media);
}

.estado-espera .grande {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--tinta);
}

.desconectado {
  background: var(--alerta);
  color: #2a0d04;
  text-align: center;
  padding: 7px;
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
}

/* ---------------------------------------------------------------- *
 * CONTROLE — a tela do apresentador
 * ---------------------------------------------------------------- */

.controle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  padding: 16px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

@media (max-width: 860px) {
  .controle { grid-template-columns: 1fr; }
}

.bloco {
  background: var(--fundo-2);
  border: 1px solid var(--borda);
  border-radius: 14px;
  padding: 16px;
}

.bloco + .bloco { margin-top: 14px; }

.bloco-titulo {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tinta-fraca);
  font-weight: 700;
  margin-bottom: 12px;
}

.agora-tipo {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--acento);
  letter-spacing: 0.06em;
}

.agora-titulo {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 6px 0 10px;
}

.agora-fala {
  font-size: 15px;
  line-height: 1.45;
  color: var(--ouro);
  background: rgba(255, 200, 87, 0.08);
  border-left: 3px solid var(--ouro);
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
}

.agora-nota {
  font-size: 14px;
  line-height: 1.45;
  color: var(--tinta-media);
  margin-top: 10px;
}

.proximo-slide {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--borda);
  font-size: 13px;
  color: var(--tinta-fraca);
}

.proximo-slide b { color: var(--tinta-media); font-weight: 600; }

.navegacao { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.botao {
  padding: 15px 14px;
  border-radius: 11px;
  border: 1px solid var(--borda-forte);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  transition: background 0.15s, transform 0.08s;
}

.botao:hover { background: rgba(255, 255, 255, 0.1); }
.botao:active { transform: scale(0.98); }
.botao:disabled { opacity: 0.35; cursor: not-allowed; }

.botao.forte {
  background: var(--acento);
  border-color: var(--acento);
  color: #052538;
}

.botao.ouro {
  background: var(--ouro);
  border-color: var(--ouro);
  color: #2e2206;
}

.botao.perigo {
  border-color: rgba(255, 122, 89, 0.5);
  color: var(--alerta);
}

.botao.ativo {
  border-color: var(--acento);
  color: var(--acento);
  background: rgba(53, 197, 243, 0.12);
}

.acoes-interacao { display: grid; gap: 10px; }
.acoes-interacao .dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.relogio {
  font-family: var(--mono);
  font-size: 46px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}

.relogio.estourou { color: var(--alerta); }
.relogio.perto { color: var(--ouro); }

.trilho-tempo {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin: 12px 0;
}

.trilho-tempo > div {
  height: 100%;
  background: var(--acento);
  width: 0;
  transition: width 1s linear, background 0.3s;
}

.mapa {
  display: grid;
  gap: 4px;
  max-height: 320px;
  overflow-y: auto;
}

.mapa-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  text-align: left;
  width: 100%;
  color: var(--tinta-media);
  transition: background 0.12s;
}

.mapa-item:hover { background: rgba(255, 255, 255, 0.06); }

.mapa-item.atual {
  background: rgba(53, 197, 243, 0.14);
  color: var(--acento);
  font-weight: 700;
}

.mapa-num {
  font-family: var(--mono);
  font-size: 11px;
  opacity: 0.65;
  min-width: 1.6em;
}

.placar { display: grid; gap: 7px; }

.placar-linha {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.placar-barra {
  height: 20px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  position: relative;
}

.placar-barra > i {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--acento-escuro);
  transition: width 0.4s ease;
}

.placar-barra > span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 7px;
  font-size: 12px;
  font-style: normal;
  color: var(--tinta);
}

.presenca-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: center;
}

.presenca-grid div { background: rgba(255, 255, 255, 0.04); border-radius: 10px; padding: 10px 6px; }
.presenca-grid b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.presenca-grid span { font-size: 11px; color: var(--tinta-fraca); text-transform: uppercase; letter-spacing: 0.1em; }

.aviso-token {
  background: var(--alerta);
  color: #2a0d04;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}

/* ---------------------------------------------------------------- *
 * Identidade e composição do palco
 * ---------------------------------------------------------------- */
.palco { isolation: isolate; background: radial-gradient(ellipse at 85% 15%, #12334d 0, transparent 56%), var(--fundo); }
.palco::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('/assets/bg-skymail.png') right center / auto 115% no-repeat;
  opacity: .09;
  mask-image: linear-gradient(100deg, transparent 30%, #000 100%);
  pointer-events: none;
}
.palco-topo { display: flex; align-items: center; gap: 20px; padding: clamp(12px, 2.2vh, 26px) clamp(24px, 3vw, 64px); }
.marca-skynova { display: flex; align-items: center; background: #fff; border-radius: 5px; padding: 2px 12px; }
.marca-skynova img { display: block; width: clamp(98px, 10vw, 160px); height: auto; }
.palco-editoria { font-size: clamp(10px, 1.3vh, 16px); text-transform: uppercase; letter-spacing: .2em; color: var(--tinta-media); }
.palco-edicao { margin-left: auto; color: var(--tinta-fraca); font: clamp(10px, 1.3vh, 15px) var(--mono); }
.palco-rodape { background: rgba(3, 14, 26, .55); padding-inline: clamp(24px, 3vw, 64px); }
.acesso-chamada { color: var(--tinta-media); }
.acesso-qr { border-radius: 4px; }
.palco .slide { max-width: 1700px; }
.slide-capa { position: relative; padding-block: 4vh; }
.capa-conteudo { position: relative; z-index: 1; max-width: 72%; }
.slide-capa .titulo-gigante { max-width: 8em; font-size: clamp(44px, min(11vh, 8vw), 144px); letter-spacing: -.055em; font-weight: 650; }
.slide-capa .titulo-medio { color: var(--tinta-media); font-weight: 400; font-size: clamp(20px, 3.6vh, 44px); }
.slide-capa .nota-slide { margin-top: 7vh; font-size: clamp(12px, 1.9vh, 23px); max-width: 26em; padding-left: 18px; border-left: 2px solid var(--acento); }
.ano-capa { position: absolute; right: -.02em; top: 50%; transform: translateY(-50%) rotate(-90deg); font-size: clamp(100px, 24vw, 420px); font-weight: 750; line-height: .8; letter-spacing: -.065em; color: transparent; -webkit-text-stroke: 1px rgba(87, 187, 236, .26); pointer-events: none; }
.transicao { text-align: left; max-width: 1320px !important; }
.transicao .secao { font: clamp(13px, 2vh, 24px) var(--mono); letter-spacing: .12em; border-bottom: 1px solid var(--borda-forte); padding-bottom: 3vh; margin-bottom: 4vh; }
.transicao .titulo-grande { font-size: clamp(32px, min(8vh, 6vw), 96px); font-weight: 600; max-width: 17em; line-height: 1.13; }
.pergunta { max-width: 24em; margin-inline: auto; font-size: clamp(23px, min(5vh, 4.3vw), 64px); font-weight: 650; margin-bottom: clamp(24px, 5vh, 60px); }
.nuvem { max-height: 46vh; overflow: auto; }
.palavra-nuvem { overflow-wrap: anywhere; max-width: 100%; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--acento); outline-offset: 4px; }
.plateia-marca { display: flex; align-items: center; gap: 14px; letter-spacing: .08em; font-size: 10px; }
.plateia-marca .marca-skynova { padding: 1px 6px; }
.plateia-marca img { width: 92px; }

/* ---------------------------------------------------------------- *
 * Diagramas: superfície clara para a leitura em projeção
 * ---------------------------------------------------------------- */
.fabrica-palco { display: flex; flex-direction: column; gap: clamp(10px, 1.6vh, 20px); }
.fabrica-cabecalho { display: flex; align-items: center; gap: clamp(16px, 2vw, 36px); }
.fabrica-era { font: 500 clamp(42px, 7.6vh, 92px) var(--mono); color: var(--acento); letter-spacing: -.08em; line-height: 1; padding-right: clamp(16px, 2vw, 36px); border-right: 1px solid var(--borda-forte); }
.fabrica-titulos .kicker { margin: 0 0 .6em; font-size: clamp(9px, 1.25vh, 14px); color: var(--tinta-media); }
.fabrica-titulos .titulo-medio { font-size: clamp(20px, min(3.7vh, 3vw), 44px); font-weight: 600; }
.fabrica-chave { display: flex; gap: 16px; margin-left: auto; align-self: end; padding-bottom: 4px; font-size: clamp(10px, 1.4vh, 16px); color: var(--tinta-media); }
.fabrica-chave span { display: flex; gap: 7px; align-items: center; }
.fabrica-chave i { width: 7px; height: 7px; border-radius: 50%; }
.chave-humano { background: #dba44e; }
.chave-agente { background: var(--acento); }
.fabrica-caixa { width: 100%; background: #f3f7fb; border: 1px solid #d4e2ed; border-radius: 14px; box-shadow: 0 20px 70px rgba(0, 0, 0, .18); }
.fabrica-svg { width: 100%; height: auto; max-height: 50vh; display: block; overflow: visible; }
.fab-no { transition: transform .65s cubic-bezier(.3, .8, .3, 1), opacity .3s ease; }
.fab-ausente { opacity: 0; pointer-events: none; }
.fab-caixa { fill: #fff; stroke: #c9d8e5; stroke-width: 1.2; transition: width .65s ease, height .65s ease; }
.fab-no.humano .fab-caixa { fill: #fffaf0; stroke: #dec699; }
.fab-no.agente .fab-caixa { fill: #e9f7ff; stroke: #87c9ea; }
.fab-no.entrega .fab-caixa { fill: #123b61; stroke: #123b61; }
.fab-no-acento { stroke: #d6e3ed; stroke-width: 2; }
.fab-no.humano .fab-no-acento { stroke: #dba44e; }
.fab-no.agente .fab-no-acento { stroke: #009ddb; }
.fab-no.entrega .fab-no-acento { stroke: #d4e2ed; }
.fab-no.entrega .fab-sub { fill: #e0edf6; font-size: 12px; }
.fab-no.misto .fab-caixa { fill: #f2f8ff; stroke: #b49b67; }
.fab-no.misto .fab-no-acento { stroke: #b48736; }
.fab-no.misto .fab-selo { fill: #66501f; }
.chave-misto { background: linear-gradient(90deg, #dba44e 50%, #35c5f3 50%); }
.fab-rotulo { fill: #163854; font-family: var(--fonte); font-size: 17px; font-weight: 650; letter-spacing: -.3px; }
.fab-no.entrega .fab-rotulo { fill: #fff; font-size: 16px; }
.fab-sub { fill: #304f68; font-family: var(--fonte); font-size: 13px; font-weight: 550; }
.fab-selo { font-family: var(--fonte); font-size: 11px; font-weight: 650; letter-spacing: 1px; text-transform: uppercase; }
.fab-no.humano .fab-selo { fill: #82551c; }
.fab-no.agente .fab-selo { fill: #005c86; }
.fab-arestas, .fab-grupos { transition: opacity .3s ease; }
.fab-arestas.sumindo, .fab-grupos.sumindo { opacity: 0; }
.fab-aresta { fill: none; stroke: #9baebe; stroke-width: 1.7; stroke-linejoin: round; }
.fab-aresta.loop { stroke: #009ddb; stroke-width: 2; }
.fab-aresta.retorno { stroke: #c58c3d; stroke-dasharray: 4 5; }
.fab-aresta.feedback { stroke: #aabccc; stroke-dasharray: 3 5; stroke-width: 1.2; }
.fab-grupo-caixa { fill: rgba(0, 157, 219, .035); stroke: #bdd6e7; stroke-width: 1; stroke-dasharray: 5 5; }
.fab-grupo-rotulo { fill: #294d69; font-family: var(--fonte); font-size: 13px; }
.fab-etapa-num { fill: #007bab; font: 12px var(--mono); }
.fab-etapa { fill: #294d69; font: 650 13px var(--fonte); text-transform: uppercase; letter-spacing: 1.1px; }
.fab-guia-linha { fill: none; stroke: #d9e4ec; stroke-width: 1; }
.fab-feedback-rotulo, .fab-retorno-rotulo { fill: #345571; font: 550 14px var(--fonte); }
.fab-retorno-rotulo { fill: #82551c; }
.fab-overlay { opacity: 0; animation: acende 1s ease forwards; }
@keyframes acende { from { opacity: 0; } to { opacity: 1; } }
.fab-overlay-haste { stroke: #009ddb; stroke-width: 1; stroke-dasharray: 3 3; fill: none; }
.fab-overlay-caixa { fill: #fff; stroke: #a9d9ef; stroke-width: 1; }
.fab-overlay-texto { fill: #006d9e; font: 650 14px var(--fonte); }
.fab-overlay-detalhe { fill: #345571; font: 12px var(--fonte); }
.tempos { display: flex; gap: clamp(24px, 5vw, 90px); padding: .7vh 0; }
.tempo { display: flex; align-items: baseline; gap: 12px; }
.tempo-rotulo { font-size: clamp(10px, 1.3vh, 15px); text-transform: uppercase; letter-spacing: .12em; color: var(--tinta-media); }
.tempo-valor { font-size: clamp(19px, 3.4vh, 40px); font-weight: 600; letter-spacing: -.035em; color: var(--tinta); }
.tempo.bom .tempo-valor { color: var(--acento); }
.legenda-fabrica { color: var(--tinta-media); font-size: clamp(12px, 1.9vh, 23px); line-height: 1.5; max-width: 68em; }
.reveal-aposta { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; background: rgba(6, 19, 35, .96); backdrop-filter: blur(10px); padding: clamp(24px, 4vh, 60px); animation: entra .4s ease; }
.reveal-aposta .interno { width: 100%; max-width: 1120px; }
.reveal-veredito { text-align: center; margin-top: 4vh; font-size: clamp(23px, 4.4vh, 52px); font-weight: 650; letter-spacing: -.025em; color: var(--ouro); line-height: 1.15; }
.fabrica-svg.sem-transicao .fab-no, .fabrica-svg.sem-transicao .fab-caixa { transition: none !important; }

@media (max-width: 900px) {
  .palco-editoria { display: none; }
  .fabrica-chave { gap: 10px; }
  .fabrica-cabecalho { flex-wrap: wrap; }
  .fabrica-chave { align-self: center; }
  .cards { gap: 18px; }
  .card .card-titulo { font-size: clamp(14px, 2.5vh, 25px); }
}
/* Em telas estreitas, o palco permite rolagem, preservando conteúdo e QR. */
@media (max-width: 640px) and (orientation: portrait) {
  .palco { position: relative; min-height: 100dvh; overflow: visible; }
  .palco-area { padding: 30px 20px; min-height: 68vh; }
  .palco-edicao { font-size: 9px; }
  .palco-topo { padding-inline: 20px; gap: 10px; }
  .palco .cards, .palco .ferramentas .cards { grid-template-columns: 1fr 1fr; }
  .palco .card .card-texto { font-size: 13px; }
  .palco-rodape { flex-wrap: wrap; padding-inline: 20px; gap: 12px; }
  .acesso { width: 100%; }
  .acesso-url { font-size: 16px; }
  .capa-conteudo { max-width: 100%; }
  .ano-capa { opacity: .4; }
  .slide-capa .titulo-gigante { font-size: 44px; }
  .fabrica-chave { margin-left: 0; }
  .fabrica-caixa { overflow-x: auto; }
  .fabrica-svg { min-width: 850px; max-height: none; }
  .tempos { flex-direction: column; gap: 12px; }
  .numeros-cabecalho, .linha-numero { grid-template-columns: 1fr 1fr; gap: 12px; padding-inline: 0; }
  .numeros-cabecalho span:first-child { display: none; }
  .linha-rotulo { grid-column: 1 / -1; }
  .valor-nota { font-size: 12px; }
  .barra-rotulo { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .oculto, .subdominio, .dominio-base, .dominio-detalhes, .dominio-revelacao, .fab-overlay { opacity: 1; transform: none; }
}

/* A abertura reserva uma área exclusiva para escanear à distância. */
.slide-capa { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 90px); align-items: center; }
.capa-conteudo { max-width: 100%; }
.slide-capa .titulo-gigante { font-size: clamp(35px, min(8vh, 6vw), 96px); max-width: 10em; }
.slide-capa .titulo-medio { font-size: clamp(18px, 3vh, 36px); line-height: 1.35; max-width: 22em; }
.slide-capa .nota-slide { margin-top: 4vh; }
.capa-acesso { display: grid; justify-items: center; gap: clamp(16px, 3vh, 32px); min-width: 0; }
.capa-qr { width: clamp(240px, min(50vh, 34vw), 520px); padding: clamp(10px, 1.5vh, 18px); background: #fff; border-radius: 12px; box-shadow: 0 20px 70px #0003; }
.capa-qr svg { display: block; width: 100%; height: auto; }
.capa-acesso .acesso-url { color: var(--tinta); text-align: center; font-size: clamp(14px, 2vh, 25px); overflow-wrap: anywhere; }
.na-capa .palco-rodape .acesso { display: none; }
.fluxo-qualidade { display: flex; align-items: center; gap: clamp(18px, 3vw, 52px); margin-top: 6vh; padding-top: 3vh; border-top: 1px solid var(--borda-forte); }
.fluxo-qualidade div { flex: 1; }
.fluxo-qualidade span { display: block; font: clamp(12px, 2vh, 23px) var(--mono); color: var(--acento); margin-bottom: 12px; }
.fluxo-qualidade strong { display: block; font-size: clamp(17px, 2.6vh, 32px); font-weight: 550; }
.fluxo-qualidade i { color: var(--acento); font-size: 28px; font-style: normal; }
.dominio-legenda { margin-top: 2vh; color: var(--tinta-media); font-size: clamp(14px, 2.2vh, 26px); }
.participacao { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--borda); }
.participacao-valor { color: var(--acento); font-size: 32px; font-weight: 650; }
.participacao-valor span { color: var(--tinta-media); font-size: 14px; font-weight: 400; }
.participacao-trilho { margin: 10px 0; height: 6px; background: var(--borda); border-radius: 3px; overflow: hidden; }
.participacao-trilho i { display: block; height: 100%; background: var(--acento); transition: width .3s ease; }
.agora-nota a { color: var(--acento); }
@media (max-width: 640px) and (orientation: portrait) {
  .slide-capa { grid-template-columns: 1fr; }
  .capa-qr { width: min(70vw, 340px); }
  .fluxo-qualidade { flex-direction: column; align-items: stretch; }
  .fluxo-qualidade i { transform: rotate(90deg); align-self: center; }
}

/* Dev toolbar: métricas ao vivo no encerramento. */
.dev-toolbar {
  width: min(100%, 1120px);
  margin: clamp(24px, 4.5vh, 54px) auto 0;
  text-align: left;
  font-family: var(--mono);
  background: linear-gradient(115deg, #0d2235, #081726);
  border: 1px solid #365169;
  border-radius: 12px;
  box-shadow: 0 20px 60px #0003, inset 0 1px 0 #ffffff08;
  overflow: hidden;
}
.dev-toolbar-topo { display: flex; align-items: center; gap: 12px; padding: clamp(10px, 1.6vh, 18px) clamp(18px, 2.2vw, 36px); border-bottom: 1px solid #ffffff12; font-size: clamp(12px, 1.8vh, 20px); background: #ffffff03; }
.dev-toolbar.recolhida .dev-toolbar-topo { border-bottom-color: transparent; }
.dev-prompt { color: var(--acento); font-weight: 700; }
.dev-toolbar-titulo { color: #b2c7da; }
.dev-conexao { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: #8adcb5; font-size: .8em; text-transform: uppercase; letter-spacing: .1em; }
.dev-conexao i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px #8adcb544; }
.dev-conexao.offline { color: var(--ouro); }
.dev-metricas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: clamp(16px, 2.5vh, 30px) 0; }
.dev-metricas > div { min-width: 0; padding: 0 clamp(18px, 2.2vw, 36px); border-right: 1px solid #ffffff14; }
.dev-metricas > div:last-child { border-right: 0; }
.dev-metricas dt { color: #93aabe; font-size: clamp(12px, 1.8vh, 20px); margin-bottom: .65em; }
.dev-metricas dd { margin: 0; color: #e9f2f9; font-size: clamp(30px, 5.5vh, 64px); font-weight: 550; font-variant-numeric: tabular-nums; letter-spacing: -.055em; line-height: 1.1; }
.dev-metricas .dev-metrica-interacoes dd { color: var(--acento); }
.dev-toolbar-rodape { padding: clamp(8px, 1.3vh, 14px) clamp(18px, 2.2vw, 36px); border-top: 1px solid #ffffff0c; color: #91a9bd; font-size: clamp(11px, 1.45vh, 16px); }
.controle-atividade { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.controle-atividade > div { display: flex; flex-direction: column; gap: 4px; }
.controle-atividade b { font: 600 32px var(--mono); color: var(--acento); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.controle-atividade span { font-size: 12px; color: var(--tinta-media); }
@media (max-width: 640px) and (orientation: portrait) {
  .dev-metricas { grid-template-columns: 1fr; gap: 20px; }
  .dev-metricas > div { border-right: 0; }
}

/* --- Degraus: a escada de uso de IA ------------------------------ *
 * Mesma linguagem dos cards (régua no topo, marca em mono), mas as
 * colunas são ancoradas embaixo e crescem em altura, formando a escada.
 * A coluna de `destino` é a destacada; a pílula do topo diz onde a
 * maioria está hoje. São marcações diferentes de propósito.
 * ----------------------------------------------------------------- */
.degraus-cabecalho {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 32px);
}
.degraus-pilula {
  flex: none;
  border: 1px solid rgba(116, 176, 210, .45);
  border-radius: 999px;
  padding: .4em 1.1em;
  font-size: clamp(11px, 1.7vh, 21px);
  color: var(--acento);
  line-height: 1.3;
  white-space: nowrap;
}
.degraus-pilula::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-right: .6em;
  vertical-align: middle;
}

.degraus {
  display: grid;
  grid-template-columns: repeat(var(--colunas, 4), minmax(0, 1fr));
  gap: clamp(14px, 2vw, 40px);
  align-items: end;
  margin-top: clamp(20px, 4vh, 56px);
  min-height: clamp(180px, 42vh, 460px);
}

.degrau {
  height: var(--altura, 100%);
  min-height: max-content;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: clamp(6px, 1.1vh, 14px);
  padding: clamp(14px, 2.4vh, 30px) clamp(12px, 1.2vw, 22px) clamp(12px, 2vh, 24px) 0;
  border-top: 1px solid rgba(116, 176, 210, .35);
  background: linear-gradient(180deg, rgba(116, 176, 210, .13), rgba(116, 176, 210, .05));
  opacity: 0;
  animation: degrau-sobe .5s cubic-bezier(.2, .8, .2, 1) forwards;
}

@keyframes degrau-sobe {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .degrau { animation: none; opacity: 1; }
}

.degrau-marca {
  font-family: var(--mono);
  font-size: clamp(10px, 1.5vh, 18px);
  color: var(--acento);
  letter-spacing: .02em;
}
.degrau-titulo {
  font-size: clamp(16px, 2.9vh, 36px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.degrau-texto {
  font-size: clamp(11px, 1.8vh, 21px);
  line-height: 1.5;
  color: var(--tinta-media);
}

/* o degrau de destino: para onde 2027 aponta */
.degrau.destino {
  border-top: 2px solid var(--acento);
  background: linear-gradient(180deg, rgba(53, 197, 243, .22), rgba(53, 197, 243, .08));
  padding-left: clamp(12px, 1.2vw, 22px);
}
.degrau.destino .degrau-titulo { color: var(--acento); }

.slide-degraus .rodape-slide { max-width: 70em; margin-top: clamp(16px, 3.5vh, 44px); }
