/**
 * Vyövergång (ABA-lik scene overlay) — KOSCE teal shell
 */
.kosce-scene-overlay {
  position: fixed;
  inset: 0;
  /* Över tema/WP-chrome (sidebar z-index 1001, dash-header 50) och GPU-lager från korridor/filter */
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 36, 33, 0.94) 0%, rgba(10, 24, 21, 0.98) 45%, #0a1815 100%);
  opacity: 0;
  transition: opacity 0.48s ease;
  transform: translateZ(0);
  isolation: isolate;
}

.kosce-scene-overlay--visible {
  opacity: 1;
}

.kosce-scene-overlay--leaving {
  opacity: 0;
  transition: opacity 0.58s ease;
}

.kosce-scene-overlay__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 0;
  max-width: 92vw;
  padding: 0 24px;
  animation: kosce-overlay-content-in 0.45s ease 0.12s both;
}

@keyframes kosce-overlay-content-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kosce-scene-overlay__logo {
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.35));
}

.kosce-scene-overlay__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(45, 212, 191, 0.85);
  border-radius: 50%;
  animation: kosce-overlay-spin 0.85s linear infinite;
}

@keyframes kosce-overlay-spin {
  to {
    transform: rotate(360deg);
  }
}

.kosce-scene-overlay__msg {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
  max-width: 340px;
}
