/* Mural do Cuidado — quiz "O que fazer e o que dizer" (DASA).
   Sem fonte externa: títulos numa serifada robusta do sistema (ecoa o
   "CUIDADO" do logo), texto na sans do sistema. Cores dinâmicas chegam por
   CSSOM (--cor, --cor-texto, --realce), nunca por atributo style. */

@property --pct {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

:root {
  --navy: #09275b;
  --navy-escuro: #010f40;
  --navy-hover: #0d3477;
  --tinta: #0e2149;
  --tinta-suave: #4b587a;
  --fundo: #f7f7f7;
  --cartao: #ffffff;
  --linha: #dde3ec;
  --linha-forte: #c3ccda;
  --guia: #eef2f8;
  --verde-agua: #23a9a3;
  --ok: #177245;
  --ok-fundo: #e6f4ec;
  --erro: #b42318;
  --erro-fundo: #fdecea;
  --alerta: #6b4500;
  --alerta-fundo: #fff4d6;
  --foco: #1555d0;

  --c-recepcao: #1555d0;
  --c-anfitriao: #f35724;
  --c-coleta: #eff801;
  --c-peq: #57b0e8;
  --c-grande: #163c7d;

  --fonte-titulo: Charter, "Bitstream Charter", "Sitka Text", "Iowan Old Style", Cambria, "Noto Serif",
    "DejaVu Serif", Georgia, serif;
  --fonte-texto: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;

  --raio: 24px;
  --sombra: 0 1px 2px rgb(1 15 64 / 0.06), 0 18px 40px -24px rgb(1 15 64 / 0.35);
  --sombra-leve: 0 1px 2px rgb(1 15 64 / 0.08);
  --gutter: 16px;
  --topo-altura: 60px;

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--topo-altura) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--fonte-texto);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--tinta);
  background-color: var(--fundo);
  background-image: radial-gradient(circle at 1px 1px, rgb(9 39 91 / 0.075) 1px, transparent 1.6px);
  background-size: 22px 22px;
}

[hidden] {
  display: none !important;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--fonte-titulo);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.6rem, 1.15rem + 2vw, 2.4rem);
}

h2 {
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.6rem);
}

p {
  margin: 0;
}

a {
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 3px;
}

h1:focus,
h2:focus,
main:focus,
[tabindex="-1"]:focus {
  outline: none;
}

.sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.pular {
  position: absolute;
  left: 12px;
  top: -200px;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  background: var(--cartao);
  color: var(--navy);
  font-weight: 700;
  box-shadow: var(--sombra);
}

.pular:focus {
  top: 12px;
}

/* ---------- faixa das cinco áreas (assinatura do mural) ---------- */

.faixa {
  display: flex;
  height: 6px;
  flex: none;
}

.faixa i {
  flex: 1;
}

.faixa i:nth-child(1) {
  background: var(--c-recepcao);
}
.faixa i:nth-child(2) {
  background: var(--c-anfitriao);
}
.faixa i:nth-child(3) {
  background: var(--c-coleta);
}
.faixa i:nth-child(4) {
  background: var(--c-peq);
}
.faixa i:nth-child(5) {
  background: var(--c-grande);
}

/* ---------- cabeçalho ---------- */

.topo {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--topo-altura);
  padding: 8px max(var(--gutter), env(safe-area-inset-left));
  background: rgb(255 255 255 / 0.9);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--linha);
}

.topo-marca {
  flex: none;
  display: block;
  border-radius: 8px;
}

.topo-marca img {
  display: block;
  width: auto;
  height: 22px;
}

.topo-ola {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: var(--navy);
}

.topo-nav {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.topo-link {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.topo-link:hover {
  background: var(--guia);
}

.topo-link[aria-current="page"] {
  background: var(--navy);
  color: #fff;
}

/* No celular, "Olá," vai numa linha pequena em cima do nome: assim o primeiro
   nome cabe inteiro ao lado de "Ranking" e "Sair". */
@media (max-width: 479px) {
  .topo {
    gap: 8px;
  }

  .topo-marca img {
    height: 20px;
  }

  .topo-ola {
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.25;
    color: var(--tinta-suave);
  }

  .topo-nome {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--navy);
  }

  .topo-link {
    justify-content: center;
    min-width: 44px;
    padding: 0 0.5rem;
    font-size: 0.9375rem;
  }
}

/* ---------- estrutura ---------- */

.conteudo {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px var(--gutter) 56px;
}

.rodape {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom));
  color: var(--tinta-suave);
  font-size: 0.85rem;
}

.cartao {
  background: var(--cartao);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
}

.olho {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tinta-suave);
}

.maius {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.carregando {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 64px 0;
  color: var(--tinta-suave);
  font-weight: 600;
}

.giro {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--linha);
  border-top-color: var(--navy);
  animation: girar 0.8s linear infinite;
}

.aviso {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: var(--alerta-fundo);
  color: var(--alerta);
}

/* ---------- botões ---------- */

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn[disabled] {
  cursor: progress;
  opacity: 0.7;
}

.btn-primario {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 20px -12px rgb(9 39 91 / 0.8);
}

.btn-primario:hover:not([disabled]) {
  background: var(--navy-hover);
  transform: translateY(-1px);
}

.btn-secundario {
  background: var(--cartao);
  color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--navy);
}

.btn-secundario:hover {
  background: var(--guia);
}

.btn-largo {
  width: 100%;
}

.btn .seta {
  font-size: 1.1em;
  transition: transform 0.15s ease;
}

.btn:hover .seta {
  transform: translateX(3px);
}

.acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.acoes-fim {
  justify-content: flex-end;
}

/* ---------- identificação ---------- */

.tela-entrada {
  display: grid;
  place-items: center;
  padding-top: clamp(0px, 4vh, 40px);
}

.entrada-cartao {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 32px 22px 26px;
  overflow: hidden;
  text-align: center;
  animation: subir 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.entrada-cartao::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--c-recepcao) 0 20%,
    var(--c-anfitriao) 20% 40%,
    var(--c-coleta) 40% 60%,
    var(--c-peq) 60% 80%,
    var(--c-grande) 80% 100%
  );
}

.entrada-marcas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.entrada-logo {
  width: 72px;
  height: auto;
  flex: none;
}

.entrada-titulo {
  margin: 0;
}

.entrada-titulo img {
  display: block;
  width: min(220px, 52vw);
  height: auto;
}

.entrada-sub {
  margin-top: 14px;
  font-family: var(--fonte-titulo);
  font-size: 1.15rem;
  color: var(--navy);
}

.entrada-areas {
  display: flex;
  justify-content: center;
  margin: 18px 0 4px;
  padding: 0;
  list-style: none;
}

.entrada-areas li + li {
  margin-left: -10px;
}

.entrada-areas img {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--cartao);
  animation: surgir 0.45s cubic-bezier(0.2, 0.8, 0.2, 1.3) both;
  animation-delay: calc(var(--i, 0) * 60ms + 200ms);
}

.entrada-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  text-align: left;
}

.campo {
  display: grid;
  gap: 6px;
}

.campo label {
  font-weight: 700;
  color: var(--navy);
}

.campo input {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 1rem;
  border: 2px solid var(--linha-forte);
  border-radius: 14px;
  background: #fff;
  color: var(--tinta);
  font: inherit;
  font-size: max(1rem, 16px);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.campo input:hover {
  border-color: #9fabc0;
}

.campo input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgb(21 85 208 / 0.18);
}

.campo input[aria-invalid="true"] {
  border-color: var(--erro);
}

.campo-dica {
  margin-top: -2px;
  color: var(--tinta-suave);
  font-size: 0.85rem;
}

.campo input::placeholder {
  color: #6b7590;
}

.campo-erro {
  display: flex;
  gap: 6px;
  color: var(--erro);
  font-size: 0.9rem;
  font-weight: 600;
}

.campo-erro::before {
  content: "!";
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--erro);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.erro-geral {
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: var(--erro-fundo);
  color: var(--erro);
  font-weight: 600;
}

.nota {
  color: var(--tinta-suave);
  font-size: 0.875rem;
}

.entrada-dasa {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  color: var(--tinta-suave);
}

.entrada-dasa::before,
.entrada-dasa::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--linha);
}

.entrada-dasa img {
  display: block;
  width: auto;
  height: 20px;
}

/* ---------- áreas ---------- */

.areas-cabecalho {
  max-width: 680px;
  margin: 8px auto 32px;
  text-align: center;
}

.areas-cabecalho p {
  margin-top: 10px;
  color: var(--tinta-suave);
}

.areas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.areas > li {
  display: flex;
  flex: 0 0 calc((100% - 16px) / 3);
  min-width: 0;
}

@media (max-width: 339px) {
  .areas > li {
    flex-basis: calc((100% - 8px) / 2);
  }
}

@media (min-width: 720px) {
  .areas {
    gap: 24px 16px;
  }

  .areas > li {
    flex-basis: calc((100% - 64px) / 5);
  }
}

.area {
  appearance: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 2px 14px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: var(--navy);
  font: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease;
  animation: subir 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

.area:hover {
  background: rgb(255 255 255 / 0.8);
}

.area-icone {
  display: block;
  width: min(100%, 168px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 14px 26px -16px rgb(1 15 64 / 0.6);
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1.2),
    box-shadow 0.25s ease;
}

.area:hover .area-icone,
.area:focus-visible .area-icone {
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    0 0 0 4px var(--fundo),
    0 0 0 7px var(--realce, var(--navy)),
    0 20px 30px -18px rgb(1 15 64 / 0.7);
}

/* Todo card reserva a mesma área de rótulo, alinhada ao topo, e o traço vem
   logo abaixo dela: os traços ficam na mesma linha de base em qualquer
   largura (os selos ficam abaixo do traço). Celular e telas médias: até 3
   linhas ("Assistencial –" / "Imagem" / "Pequeno Porte"); desktop: 2. */
.area-rotulo {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 3.6em;
  font-size: clamp(0.78rem, 0.62rem + 0.6vw, 1rem);
  line-height: 1.2;
  text-align: center;
  overflow-wrap: break-word;
}

.area-rotulo strong {
  font-weight: 800;
}

@media (min-width: 1100px) {
  .area-rotulo {
    min-height: 2.4em;
    font-size: 0.95rem;
  }

  .area-rotulo strong {
    white-space: nowrap;
  }
}

.area-traco {
  width: 46%;
  max-width: 76px;
  height: 6px;
  border-radius: 99px;
  background: var(--cor);
  box-shadow: inset 0 0 0 1px rgb(1 15 64 / 0.12);
}

.area-selos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.selo {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}

.selo-ok {
  background: var(--ok-fundo);
  color: var(--ok);
}

.selo-andamento {
  background: var(--alerta-fundo);
  color: var(--alerta);
}

.selo-breve {
  background: var(--guia);
  color: var(--tinta-suave);
}

.area:disabled {
  cursor: default;
}

.area:disabled:hover {
  background: transparent;
}

.area:disabled .area-icone {
  filter: grayscale(1);
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

/* ---------- trilha ---------- */

.trilha-cabecalho {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.trilha-cabecalho img {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow:
    0 0 0 4px var(--fundo),
    0 0 0 6px var(--realce, var(--navy));
}

.trilha-cabecalho h1 {
  margin-top: 2px;
}

.aviso-treino {
  margin-bottom: 18px;
}

.caminho {
  --no: 42px;
  display: flex;
  margin: 0 0 22px;
  padding: 8px 0 4px;
  list-style: none;
}

.caminho li {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.caminho li::before {
  content: "";
  position: absolute;
  top: calc(var(--no) / 2 - 2px);
  right: 50%;
  width: 100%;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--linha-forte) 0 8px, transparent 8px 14px);
}

.caminho li:first-child::before {
  display: none;
}

.caminho li.feita::before,
.caminho li.atual::before {
  background: var(--navy);
  opacity: 0.85;
}

.no {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--no);
  height: var(--no);
  border-radius: 50%;
  background: var(--cor);
  color: var(--cor-texto, #fff);
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 0 0 4px var(--fundo);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.caminho li.proxima .no {
  opacity: 0.38;
  filter: saturate(0.5);
}

.caminho li.atual .no {
  transform: scale(1.14);
  box-shadow:
    0 0 0 4px var(--fundo),
    0 0 0 7px var(--realce);
  animation: pulso 2.2s ease-in-out infinite;
}

.no-estado {
  position: absolute;
  right: -7px;
  bottom: -7px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 0 0 2px var(--fundo);
}

.caminho li.errou .no-estado {
  background: var(--erro);
}

.caminho-rotulo {
  display: none;
  max-width: 100%;
  margin-top: 10px;
  padding: 0 4px;
  color: var(--tinta-suave);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.caminho li.atual .caminho-rotulo {
  color: var(--navy);
  font-weight: 800;
}

@media (min-width: 720px) {
  .caminho {
    --no: 50px;
  }

  .caminho-rotulo {
    display: block;
  }
}

.pergunta {
  padding: 22px 18px;
  animation: subir 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@media (min-width: 720px) {
  .pergunta {
    padding: 34px 40px;
  }
}

.pergunta-olho {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.olho-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cor);
  color: var(--cor-texto, #fff);
  font-size: 1.17rem;
  font-weight: 800;
  letter-spacing: 0;
}

.enunciado {
  margin-top: 14px;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem);
  line-height: 1.32;
  color: var(--tinta);
  text-wrap: pretty;
}

.opcoes {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.opcao {
  appearance: none;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  padding: 13px 16px 13px 13px;
  border: 2px solid var(--linha);
  border-radius: 16px;
  background: #fff;
  color: var(--tinta);
  font: inherit;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    transform 0.15s ease,
    opacity 0.2s ease;
}

.opcao:hover:not([aria-disabled="true"]) {
  border-color: var(--navy);
  background: #f5f8fd;
  transform: translateX(2px);
}

.opcao .letra {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--guia);
  color: var(--navy);
  font-weight: 800;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.opcao .texto {
  padding-top: 4px;
}

.opcao[aria-disabled="true"] {
  cursor: default;
}

.opcao.escolhida {
  border-color: var(--navy);
}

.opcao.enviando .letra {
  border: 3px solid var(--linha);
  border-top-color: var(--navy);
  background: transparent;
  color: transparent;
  animation: girar 0.8s linear infinite;
}

.opcao.certa {
  border-color: var(--ok);
  background: var(--ok-fundo);
}

.opcao.certa .letra {
  background: var(--ok);
  color: #fff;
}

.opcao.errada {
  border-color: var(--erro);
  background: var(--erro-fundo);
  animation: tremer 0.35s ease;
}

.opcao.errada .letra {
  background: var(--erro);
  color: #fff;
}

.opcao.travada:not(.certa):not(.errada):not(.escolhida) {
  opacity: 0.55;
}

.marca-opcao {
  display: inline-block;
  margin-left: 0.4rem;
  font-weight: 800;
}

.opcao.certa .marca-opcao {
  color: var(--ok);
}

.opcao.errada .marca-opcao {
  color: var(--erro);
}

.erro-resposta {
  margin-top: 14px;
}

/* retorno depois da resposta: a linha do guia "desbloqueada" */

.retorno {
  margin-top: 22px;
  padding: 18px;
  border-radius: 20px;
  background: var(--guia);
  scroll-margin-top: calc(var(--topo-altura) + 16px);
  animation: subir 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@media (min-width: 720px) {
  .retorno {
    padding: 24px 26px;
  }
}

.veredito {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fonte-titulo);
  font-size: 1.35rem;
  font-weight: 700;
}

.veredito-icone {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  font-family: var(--fonte-texto);
  font-size: 1.05rem;
  font-weight: 800;
}

.retorno.certo .veredito {
  color: var(--ok);
}

.retorno.certo .veredito-icone {
  background: var(--ok);
  animation: surgir 0.4s cubic-bezier(0.2, 0.8, 0.2, 1.5) both;
}

.retorno.errado .veredito {
  color: var(--erro);
}

.retorno.errado .veredito-icone {
  background: var(--erro);
}

.explicacao {
  margin-top: 8px;
  max-width: 70ch;
}

.guia-linha {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 14px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: var(--cartao);
  box-shadow: var(--sombra-leve);
}

.guia-num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cor);
  color: var(--cor-texto, #fff);
  font-size: 1.2rem;
  font-weight: 800;
}

.guia-corpo {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.guia-titulo {
  font-family: var(--fonte-texto);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  padding-top: 8px;
}

.guia-rotulo {
  margin-bottom: 4px;
  color: var(--tinta-suave);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guia-dizer blockquote {
  margin: 0 0 6px;
  font-style: italic;
  color: var(--tinta);
}

.guia-dizer blockquote p::before {
  content: "“";
}

.guia-dizer blockquote p::after {
  content: "”";
}

@media (min-width: 720px) {
  .guia-corpo {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    column-gap: 28px;
  }

  .guia-titulo {
    grid-column: 1 / -1;
  }
}

.fim-trilha {
  padding: 28px 22px;
  text-align: center;
}

.fim-trilha p {
  margin-top: 8px;
  color: var(--tinta-suave);
}

.fim-trilha .acoes {
  justify-content: center;
}

/* ---------- resultado ---------- */

.resultado-topo {
  position: relative;
  display: grid;
  gap: 22px;
  align-items: center;
  padding: 30px 20px 26px;
  overflow: hidden;
  text-align: center;
}

@media (min-width: 720px) {
  .resultado-topo {
    grid-template-columns: auto 1fr;
    gap: 36px;
    padding: 40px 44px;
    text-align: left;
  }
}

.confete {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.9;
  animation: surgir 0.6s cubic-bezier(0.2, 0.8, 0.2, 1.4) both;
}

.confete:nth-child(1) {
  width: 14px;
  height: 14px;
  top: 18px;
  left: 8%;
  background: var(--c-recepcao);
  animation-delay: 0.1s;
}
.confete:nth-child(2) {
  width: 10px;
  height: 10px;
  top: 34px;
  right: 12%;
  background: var(--c-anfitriao);
  animation-delay: 0.2s;
}
.confete:nth-child(3) {
  width: 16px;
  height: 16px;
  bottom: 22px;
  left: 14%;
  background: var(--c-coleta);
  box-shadow: inset 0 0 0 1px rgb(1 15 64 / 0.15);
  animation-delay: 0.3s;
}
.confete:nth-child(4) {
  width: 12px;
  height: 12px;
  bottom: 30px;
  right: 6%;
  background: var(--c-peq);
  animation-delay: 0.4s;
}
.confete:nth-child(5) {
  width: 9px;
  height: 9px;
  top: 50%;
  right: 3%;
  background: var(--c-grande);
  animation-delay: 0.5s;
}

.anel {
  --pct: 0;
  position: relative;
  display: grid;
  place-items: center;
  width: 156px;
  height: 156px;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--realce, var(--navy)) calc(var(--pct) * 1%), #e4e9f2 0);
  transition: --pct 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.anel-miolo {
  display: grid;
  place-items: center;
  align-content: center;
  width: 76%;
  height: 76%;
  border-radius: 50%;
  background: var(--cartao);
  box-shadow: inset 0 0 0 1px var(--linha);
}

.anel-num {
  font-family: var(--fonte-titulo);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
}

.anel-rotulo {
  margin-top: 4px;
  color: var(--tinta-suave);
  font-size: 0.8rem;
  font-weight: 700;
}

.resultado-texto {
  display: grid;
  gap: 12px;
}

.resultado-texto .olho {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

@media (min-width: 720px) {
  .resultado-texto .olho {
    justify-content: flex-start;
  }
}

.resultado-texto .olho img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.resultado-acertos {
  font-size: 1.15rem;
  font-weight: 700;
}

.fatos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .fatos {
    justify-content: flex-start;
  }
}

.fatos li {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--guia);
  color: var(--navy);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.dica {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 5px solid var(--verde-agua);
  border-radius: 14px;
  background: #e9f6f5;
}

.dica h2 {
  font-size: 1.05rem;
}

.resultado-ranking {
  margin-top: 34px;
}

.resultado-ranking > h2 {
  margin-bottom: 14px;
}

.resultado .acoes {
  justify-content: center;
  margin-top: 28px;
}

/* ---------- ranking ---------- */

.ranking-cabecalho {
  margin-bottom: 20px;
}

.ranking-cabecalho p {
  margin-top: 8px;
  max-width: 64ch;
  color: var(--tinta-suave);
}

.abas {
  position: relative;
  display: flex;
  gap: 8px;
  margin: 0 calc(-1 * var(--gutter)) 14px;
  padding: 4px var(--gutter) 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
}

.aba {
  appearance: none;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 6px 16px 6px 6px;
  border: 0;
  border-radius: 999px;
  background: var(--cartao);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: var(--sombra-leve), inset 0 0 0 1px var(--linha);
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.aba:hover {
  background: var(--guia);
}

.aba img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.aba[aria-selected="true"] {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 20px -14px rgb(9 39 91 / 0.9);
}

.aba[aria-selected="true"] img {
  box-shadow:
    0 0 0 2px var(--navy),
    0 0 0 4px #fff;
}

@media (min-width: 960px) {
  .abas {
    margin: 0 0 14px;
    padding: 4px 0 10px;
    overflow: visible;
  }

  .aba {
    flex: 1 1 0;
    min-width: 0;
    white-space: normal;
    line-height: 1.2;
    text-align: left;
  }
}

.painel {
  padding: 6px 0 10px;
  border-top: 6px solid var(--cor, var(--navy));
  border-radius: var(--raio);
  background: var(--cartao);
  box-shadow: var(--sombra);
  overflow: hidden;
}

.painel-resumo {
  padding: 14px 18px 4px;
  color: var(--tinta-suave);
  font-size: 0.9rem;
  font-weight: 600;
}

.tabela {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.tabela th {
  padding: 10px 10px;
  color: var(--tinta-suave);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.tabela td {
  padding: 12px 10px;
  border-top: 1px solid #edf0f5;
  vertical-align: middle;
}

.tabela th:first-child,
.tabela td:first-child {
  padding-left: 16px;
}

.tabela th:last-child,
.tabela td:last-child {
  padding-right: 16px;
}

.tabela .num {
  text-align: right;
  white-space: nowrap;
}

.tabela .nome {
  overflow-wrap: anywhere;
  font-weight: 600;
}

.pos-num {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border-radius: 999px;
  font-family: var(--fonte-titulo);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

.podio-1 {
  background: #f8e3a1;
  color: #5b4300;
}

.podio-2 {
  background: #e3e8ef;
  color: #2c3a55;
}

.podio-3 {
  background: #f1d2bd;
  color: #5c2f12;
}

.tabela tr.eu td {
  background: #eaf1ff;
  font-weight: 800;
}

.tabela tr.eu td:first-child {
  box-shadow: inset 5px 0 0 var(--navy);
}

.voce {
  display: inline-block;
  margin-left: 6px;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 0.1em;
}

.tabela tr.separador td {
  padding: 2px 0;
  color: var(--tinta-suave);
  letter-spacing: 0.4em;
  text-align: center;
}

/* No celular a tabela fica compacta e o nome leva toda a sobra de largura,
   para a quebra cair entre palavras; o tempo quebra entre "1 min" e "23 s". */
@media (max-width: 479px) {
  .tabela th,
  .tabela td {
    padding-right: 6px;
    padding-left: 6px;
  }

  .tabela th:first-child,
  .tabela td:first-child {
    padding-left: 12px;
  }

  .tabela th:last-child,
  .tabela td:last-child {
    padding-right: 12px;
  }

  .tabela th {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
  }

  .tabela .nome {
    width: 100%;
  }

  .tabela td:last-child {
    white-space: normal;
  }
}

.vazio {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 36px 18px 30px;
  text-align: center;
}

.vazio p {
  color: var(--tinta-suave);
}

.vazio p:first-child {
  color: var(--navy);
  font-family: var(--fonte-titulo);
  font-size: 1.2rem;
}

/* ---------- erro de tela ---------- */

.tela-erro {
  max-width: 560px;
  margin: 24px auto;
  padding: 28px 22px;
  text-align: center;
}

.tela-erro p {
  margin-top: 10px;
  color: var(--tinta-suave);
}

.tela-erro .acoes {
  justify-content: center;
}

/* ---------- avisos flutuantes ---------- */

.avisos {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 50;
  display: grid;
  gap: 8px;
  width: min(92vw, 440px);
  transform: translateX(-50%);
  pointer-events: none;
}

.avisos p {
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: var(--navy-escuro);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--sombra);
  animation: subir 0.3s ease both;
}

/* ---------- movimento ---------- */

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

@keyframes surgir {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulso {
  0%,
  100% {
    box-shadow:
      0 0 0 4px var(--fundo),
      0 0 0 7px var(--realce);
  }
  50% {
    box-shadow:
      0 0 0 4px var(--fundo),
      0 0 0 11px color-mix(in srgb, var(--realce) 35%, transparent);
  }
}

@keyframes tremer {
  0%,
  100% {
    transform: none;
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

@keyframes girar {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .giro,
  .opcao.enviando .letra {
    animation: none !important;
  }
}
