/* Loading screen – used by index.html before main bundle. Values are literal so it works on first paint. */
.loader-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
  transition: opacity 0.5s ease;
  pointer-events: auto;
}

.loader-screen.loader-screen--out {
  opacity: 0;
  pointer-events: none;
}

.loader-shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.loader-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: 2rem;
}

.loader-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 10vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #d4af37;
  background: linear-gradient(135deg, #d4af37, #ff6b35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(28px) scale(0.92);
  animation: loaderBrandIn 1.1s ease-out 0.35s forwards;
  will-change: transform, opacity;
  text-shadow: 0 0 50px rgba(212, 175, 55, 0.5);
}

@keyframes loaderBrandIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loader-brand {
    animation-duration: 0.5s !important;
  }
}
