/* Esperas e animações */
/* ── Esperas ── */
#abertura {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  background: #0d3a31;
  color: #eaf5f1;
  font-size: 18px;
  animation: solta 0s 12s forwards;
  transition: opacity 0.3s;
}
#abertura.some {
  opacity: 0;
  pointer-events: none;
}
#abertura img {
  animation: pulsa 1.3s ease-in-out infinite;
}
@keyframes solta {
  to {
    visibility: hidden;
  }
}
@keyframes pulsa {
  50% {
    transform: scale(1.09);
  }
}
.trilho {
  width: 150px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.trilho::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 4px;
  background: #5fd0b1;
  animation: corre 1.1s ease-in-out infinite;
}
@keyframes corre {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(270%);
  }
}
#barra-espera {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 90;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.carregando #barra-espera {
  opacity: 1;
}
#barra-espera::after {
  content: '';
  display: block;
  width: 38%;
  height: 100%;
  background: #f4b45f;
}
.carregando #barra-espera::after {
  animation: corre2 1.1s ease-in-out infinite;
}
@keyframes corre2 {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(300%);
  }
}
button[aria-busy='true'] {
  cursor: progress;
  opacity: 0.8;
}
button[aria-busy='true']::after {
  content: '';
  display: inline-block;
  flex: none;
  width: 0.95em;
  height: 0.95em;
  margin-left: 0.55em;
  vertical-align: -0.12em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: gira 0.7s linear infinite;
}
@keyframes gira {
  to {
    transform: rotate(1turn);
  }
}
.estrelas button[aria-busy='true']::after,
.fechar[aria-busy='true']::after {
  display: none;
}
.osso {
  display: block;
  height: 12px;
  margin: 5px 0;
  border-radius: 6px;
  min-width: 54px;
  background: linear-gradient(90deg, var(--linha) 25%, var(--campo) 50%, var(--linha) 75%) 0 0/300% 100%;
  animation: brilha 1.4s linear infinite;
}
.osso-c .osso:first-child {
  width: 55%;
  height: 18px;
}
.osso-c .osso:last-child {
  width: 75%;
}
@keyframes brilha {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -50% 0;
  }
}
.buscando {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  background: var(--papel);
  border: 1px solid var(--linha);
  border-radius: 14px;
  box-shadow: var(--sombra);
}
.buscando b {
  font-size: 16px;
}
.buscando .nota {
  min-height: 1.5em;
  font-variant-numeric: tabular-nums;
}
.lupa {
  color: var(--verde);
  animation: procura 1.8s ease-in-out infinite;
}
@keyframes procura {
  0%,
  100% {
    transform: translate(-5px, 3px) rotate(-8deg);
  }
  50% {
    transform: translate(6px, -4px) rotate(8deg);
  }
}
.chega {
  animation: chega 0.22s ease-out;
}
@keyframes chega {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.completar {
  white-space: nowrap;
}
.resumido {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--verde-claro);
}
.resumido p {
  margin: 0;
  flex: 1 1 260px;
}
.parado {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #0d3a31;
  color: #eaf5f1;
}
.parado main {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
}
.parado .nota {
  color: #b9d9ce;
  font-size: 15px;
}
.parado .principal {
  margin-top: 8px;
  text-decoration: none;
}
@media (max-width: 760px) {
  .buscando {
    padding: 16px;
  }
  .completar {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
  .osso,
  .lupa,
  #abertura img,
  .chega,
  #filtros.aberta,
  .painel-lista {
    animation: none !important;
  }
  .trilho::after,
  .carregando #barra-espera::after,
  button[aria-busy='true']::after {
    animation-duration: 2.4s;
  }
}
