/* filtro-web — estilo exclusivo desta tela.
   O que e reaproveitado por mais de uma pagina mora em css/style.css,
   que carrega antes deste. */
/* ===== 26-cena-filtro.css ===== */
/* Cena do hero de /solucoes/filtro-web/: a tentativa de acesso e o bloqueio.

   O monitor comeca com uma aba em branco. O ponteiro entra, clica na barra de
   endereco, o endereco do site de aposta e digitado letra por letra, e no Enter
   a barra de carregamento cruza a tela — e o que aparece e o print de verdade
   da tela de bloqueio, que ja era o conteudo desta figura.

   A encenacao inteira e `aria-hidden`: e o cromo em volta da foto. Quem le por
   voz continua recebendo o `alt` da imagem, que e onde o conteudo esta.

   Todas as medidas sao `cqw`, a largura da propria cena. */
.flt-cena {
  position: relative;
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
  container-type: inline-size;
}

/* --- O monitor --- */
.flt-monitor {
  position: relative;
  z-index: 1;
  border-radius: 1.5rem;
  border: 1px solid #334155;
  background: #0f172a;
  padding: 1.6cqw;
  box-shadow: 0 4cqw 8cqw rgba(15, 23, 42, 0.28);
}

.flt-tela {
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
}

.flt-pe {
  width: 16%;
  height: 3.2cqw;
  margin-inline: auto;
  background: #1e293b;
}

.flt-base {
  width: 32%;
  height: 1.4cqw;
  margin-inline: auto;
  border-radius: 9999px;
  background: #0f172a;
}

/* --- A barra do navegador --- */
.flt-barra {
  display: flex;
  align-items: center;
  gap: 2.4cqw;
  padding: 1.8cqw 2.6cqw;
  border-bottom: 1px solid #e2e8f0;
  background: #f1f5f9;
}

.flt-bolinhas {
  display: flex;
  gap: 1cqw;
}

.flt-bolinhas i {
  width: 1.7cqw;
  height: 1.7cqw;
  border-radius: 9999px;
  background: #cbd5e1;
}

.flt-bolinhas i:first-child {
  background: #f87171;
}

.flt-bolinhas i:nth-child(2) {
  background: #fbbf24;
}

.flt-bolinhas i:last-child {
  background: #4ade80;
}

.flt-url {
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  flex: 1;
  min-width: 0;
  padding: 1cqw 2cqw;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 2cqw;
  color: #64748b;
  animation: flt-foco 14s ease-out infinite;
}

/* O clique acende a barra, como um campo que ganhou foco. */
@keyframes flt-foco {
  0%,
  16.99% {
    border-color: #e2e8f0;
    box-shadow: 0 0 0 0 rgba(57, 150, 216, 0);
  }

  17.0%,
  52.0% {
    border-color: #93c5fd;
    box-shadow: 0 0 0 0.6cqw rgba(57, 150, 216, 0.16);
  }

  54.0%,
  100% {
    border-color: #e2e8f0;
    box-shadow: 0 0 0 0 rgba(57, 150, 216, 0);
  }
}

.flt-cadeado {
  font-size: 1.7cqw;
  color: #94a3b8;
  animation: flt-cadeado 14s step-end infinite;
}

@keyframes flt-cadeado {
  0%,
  57.99% {
    color: #94a3b8;
  }

  58.0%,
  88.0% {
    color: #dc2626;
  }

  95.0%,
  100% {
    color: #94a3b8;
  }
}

/* O X do fim da barra so existe depois do bloqueio. */
.flt-barrado {
  margin-left: auto;
  font-size: 1.8cqw;
  color: #dc2626;
  opacity: 0;
  animation: flt-barrado 14s ease-out infinite;
}

@keyframes flt-barrado {
  0%,
  57.99% {
    opacity: 0;
  }

  60.0%,
  88.0% {
    opacity: 1;
  }

  95.0%,
  100% {
    opacity: 0;
  }
}

/* --- O endereco sendo digitado --- */
/* Letra por letra: a largura cresce em degraus, um por caractere. Fonte de
   largura fixa, senao o degrau cortaria letra no meio. */
.flt-digitado {
  display: flex;
  align-items: center;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.flt-digitado b {
  display: inline-block;
  overflow: hidden;
  width: 0;
  font-weight: 500;
  white-space: nowrap;
  color: #334155;
  animation: flt-digita 14s steps(14, end) infinite;
}

@keyframes flt-digita {
  0%,
  20.0% {
    width: 0;
  }

  48.0%,
  88.0% {
    width: 14ch;
  }

  95.0%,
  100% {
    width: 0;
  }
}

/* O cursor de texto pisca enquanto se digita, e some no Enter. */
.flt-cursor-texto {
  width: 0.24cqw;
  height: 2.4cqw;
  margin-left: 0.3cqw;
  background: #3996d8;
  opacity: 0;
  animation:
    flt-pisca 1s step-end infinite,
    flt-caret 14s step-end infinite;
}

@keyframes flt-pisca {
  0%,
  49% {
    background: #3996d8;
  }

  50%,
  100% {
    background: transparent;
  }
}

@keyframes flt-caret {
  0%,
  16.99% {
    opacity: 0;
  }

  17.0%,
  52.0% {
    opacity: 1;
  }

  52.01%,
  100% {
    opacity: 0;
  }
}

/* --- A pagina --- */
.flt-pagina {
  position: relative;
}

.flt-print {
  display: block;
  width: 100%;
  height: auto;
}

/* A aba em branco cobre o print ate o bloqueio acontecer. */
.flt-vazia {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.4cqw;
  background: #fff;
  animation: flt-vazia 14s ease-out infinite;
}

@keyframes flt-vazia {
  0%,
  57.99% {
    opacity: 1;
  }

  61.0%,
  88.0% {
    opacity: 0;
  }

  95.0%,
  100% {
    opacity: 1;
  }
}

.flt-vazia-campo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46%;
  height: 7cqw;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 2.6cqw;
  color: #cbd5e1;
}

.flt-vazia-linha {
  width: 34%;
  height: 1.6cqw;
  border-radius: 9999px;
  background: #f1f5f9;
}

.flt-vazia-curta {
  width: 22%;
}

/* A barra de carregamento, do Enter ate a tela trocar. */
.flt-carregando {
  position: absolute;
  top: 0;
  left: 0;
  height: 0.8cqw;
  width: 0;
  background: #3996d8;
  opacity: 0;
  animation: flt-carregando 14s ease-out infinite;
}

@keyframes flt-carregando {
  0%,
  51.99% {
    width: 0;
    opacity: 0;
  }

  52.0% {
    width: 0;
    opacity: 1;
  }

  58.0% {
    width: 100%;
    opacity: 1;
  }

  60.0%,
  100% {
    width: 100%;
    opacity: 0;
  }
}

/* --- O ponteiro do mouse --- */
.flt-ponteiro {
  position: absolute;
  z-index: 3;
  left: 34.0cqw;
  top: 7.0cqw;
  font-size: 4.4cqw;
  color: #0f172a;
  filter: drop-shadow(0 0.4cqw 0.8cqw rgba(15, 23, 42, 0.3));
  opacity: 0;
  animation: flt-ponteiro 14s cubic-bezier(0.3, 0.7, 0.2, 1) infinite;
}

@keyframes flt-ponteiro {
  0%,
  4.0% {
    translate: 46cqw 42cqw;
    opacity: 0;
  }

  6.0% {
    translate: 40cqw 36cqw;
    opacity: 1;
  }

  15.0%,
  58.0% {
    translate: 0 0;
    opacity: 1;
  }

  68.0%,
  100% {
    translate: 34cqw 40cqw;
    opacity: 0;
  }
}

/* O anel do clique. */
.flt-clique {
  position: absolute;
  z-index: 2;
  left: 31.0cqw;
  top: 4.0cqw;
  width: 6cqw;
  height: 6cqw;
  border-radius: 9999px;
  border: 0.4cqw solid rgba(57, 150, 216, 0.6);
  opacity: 0;
  animation: flt-clique 14s ease-out infinite;
}

@keyframes flt-clique {
  0%,
  16.99% {
    scale: 0.3;
    opacity: 0;
  }

  17.0% {
    scale: 0.3;
    opacity: 1;
  }

  20.0%,
  100% {
    scale: 1.6;
    opacity: 0;
  }
}

/* O selo da categoria barrada entra junto com o bloqueio. */
.flt-selo {
  opacity: 0;
  animation: flt-selo 14s cubic-bezier(0.34, 1.4, 0.5, 1) infinite;
}

@keyframes flt-selo {
  0%,
  59.0% {
    opacity: 0;
    scale: 0.8;
  }

  63.0%,
  88.0% {
    opacity: 1;
    scale: 1;
  }

  95.0%,
  100% {
    opacity: 0;
    scale: 0.8;
  }
}

/* Quem pediu menos movimento ve o desfecho parado: a tela de bloqueio, o
   endereco escrito e o selo da categoria barrada. */
@media (prefers-reduced-motion: reduce) {
  .flt-cena *,
  .flt-selo {
    animation: none !important;
  }

  .flt-digitado b {
    width: 14ch;
  }

  .flt-vazia,
  .flt-ponteiro,
  .flt-clique,
  .flt-carregando,
  .flt-cursor-texto {
    opacity: 0;
  }

  .flt-barrado,
  .flt-selo {
    opacity: 1;
    scale: 1;
  }

  .flt-cadeado {
    color: #dc2626;
  }
}

