/* Kurtess preloader mascot — include after the existing site styles. */
.pre .pre-stage {
  width: min(84vw, 680px);
  min-height: min(72svh, 620px);
  padding: clamp(24px, 7vh, 72px) 0;
  display: grid;
  place-items: center;
}

.pre .pre-brand {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: clamp(22px, 4.5vh, 42px);
}

/* Keep the original portrait artwork intact; the bone background blends into the loader. */
.pre #catWrap {
  position: relative;
  width: clamp(104px, 17vw, 148px);
  line-height: 0;
  transform: none;
  will-change: auto;
}

.pre #cat {
  display: block;
  width: 100%;
  height: auto;
  /* O papel claro do PNG deve se fundir ao fundo, sem escurecê-lo por multiplicação. */
  filter: brightness(1.04);
  mix-blend-mode: darken;
  transform-origin: 50% 82%;
  animation: pre-mascot-breathe 5.2s ease-in-out infinite;
}

@keyframes pre-mascot-breathe {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(-1deg); }
}

.pre .pre-logo {
  width: min(76vw, 430px);
  margin-inline: auto;
  clip-path: inset(0 100% 0 0);
}

.pre .pre-logo .klogo { width: 100%; }
.pre .pre-logo .k-base { display: block; width: 100%; }

.pre .pre-progress {
  width: min(34vw, 220px);
  height: 2px;
  margin-top: clamp(26px, 5vh, 44px);
  overflow: hidden;
  border-radius: 999px;
  background: rgb(0 0 0 / .14);
}

.pre .pre-progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #A11212;
  transform-origin: left center;
  transition: width 180ms ease-out;
}

@media (max-width: 540px) {
  .pre .pre-stage {
    width: min(82vw, 430px);
    min-height: min(62svh, 520px);
    padding-block: 20px;
  }

  .pre #catWrap { width: clamp(96px, 30vw, 132px); }
  .pre .pre-logo { width: min(78vw, 360px); }
  .pre .pre-progress { width: min(42vw, 190px); }
}

@media (prefers-reduced-motion: reduce) {
  .pre #cat { animation: none; }
  .pre .pre-progress-fill { transition: none; }
}
