/* Gota del logo que s'omple mentre es carrega alguna cosa */
.carregant {
  display: inline-block;
  flex: none;
  width: 0.95em;
  height: 1.3em;
  vertical-align: -0.3em;
}
.carregant svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.carregant-vora {
  fill: none;
  stroke: var(--led);
  stroke-width: 3.5;
}
.carregant-ple {
  fill: var(--led);
  clip-path: inset(45% 0 0 0);
  animation: omple 1.6s ease-in-out infinite;
}
@keyframes omple {
  0% {
    clip-path: inset(100% 0 0 0);
  }
  65%,
  85% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 0;
  }
}

.status .carregant,
.status[data-s="loading"] .dot {
  display: none;
}
.status[data-s="loading"] .carregant {
  display: inline-block;
}
.near-msg .carregant {
  margin-right: 8px;
}

/* Tapa tota la pàgina fins que les dades són a punt, perquè no es vegi a mig pintar */
.pantalla-carrega {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--bg);
  color: var(--muted);
  transition: opacity 0.35s ease;
}
.pantalla-carrega .carregant {
  width: 56px;
  height: 78px;
}
.pantalla-carrega p {
  margin: 0;
}
.pantalla-carrega.surt {
  opacity: 0;
  pointer-events: none;
}
html:has(.pantalla-carrega:not(.surt)) {
  overflow: hidden;
}
