/* Tela de carregamento: logo, barra com um vagalume que avança e o texto "Carregando…" */

.loading-screen {
  --p: 0;
  position: fixed;
  inset: 0;
  z-index: 200; /* acima de tudo */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  background: #2b1a20 url("../img/fundo.webp") center bottom / cover no-repeat;
  color: #fff4e6;
  transition: opacity 0.5s ease, visibility 0.5s;
}
.loading-screen.done { opacity: 0; visibility: hidden; pointer-events: none; }

.loading-logo {
  font-family: var(--font-title);
  font-size: clamp(2.8rem, 14vw, 4.9rem);
  font-weight: 700;
  line-height: 1;
  animation: title-in 0.7s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}

.loading-bar {
  position: relative;
  width: min(64vw, 260px);
  height: 16px;
  border-radius: 999px;
  background: rgba(28, 16, 20, 0.72);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.loading-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--p) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, #e8707f, #ffb060, #ffe28a);
}
/* O vagalume vai na ponta da barra */
.loading-fly {
  position: absolute;
  top: 50%;
  left: calc(var(--p) * 100%);
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  filter: drop-shadow(0 0 8px rgba(255, 210, 90, 0.95));
}
.loading-fly .mark-cat { width: 100%; height: 100%; animation: none; }

.loading-text {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
