/* ==========================================================================
   PALACE LOADING & ROYAL CORONATION ANIMATION - MODERN LUXURY UI
   Zero overlaps, isolated orbital crown core, smooth micro-animations.
   ========================================================================== */

.loading-container {
  width: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 8px 16px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Ambient Radial Glow (Deep Palace Atmosphere) */
.loading-ambient-glow {
  position: absolute;
  top: 26%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 192, 103, 0.18) 0%, rgba(62, 19, 91, 0.32) 48%, transparent 72%);
  filter: blur(28px);
  animation: pulseAmbientGlow 4.5s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

@keyframes pulseAmbientGlow {
  0% {
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0.55;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0.95;
  }
}

/* ==========================================================================
   CENTRAL VISUAL ORB (Crown + Concentric Orbital Rings)
   Self-contained 140px box: rings rotate strictly within this boundary.
   ========================================================================== */
.loading-visual-orb {
  position: relative;
  width: 136px;
  height: 136px;
  margin: 0 auto 28px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
}

/* Outer Celestial Rotating Ring */
.orbital-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(223, 192, 103, 0.45);
  box-shadow: 0 0 20px rgba(223, 192, 103, 0.18), inset 0 0 15px rgba(223, 192, 103, 0.12);
  animation: rotateClockwise 22s linear infinite;
  pointer-events: none;
}

/* Inner Modern Shimmer Ring */
.orbital-ring-inner {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(242, 216, 136, 0.85);
  border-right-color: rgba(223, 192, 103, 0.4);
  animation: rotateCounterClockwise 1.5s linear infinite;
  pointer-events: none;
}

@keyframes rotateClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateCounterClockwise {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Crown Core Icon Box */
.orbital-crown-core {
  position: relative;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(36, 12, 59, 0.85) 0%, rgba(19, 7, 32, 0.5) 75%);
  border-radius: 50%;
  box-shadow: inset 0 0 14px rgba(223, 192, 103, 0.25), 0 0 20px rgba(0, 0, 0, 0.6);
}

.loading-crown-svg {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 2px 14px rgba(223, 192, 103, 0.75));
  animation: crownFloat 3.8s ease-in-out infinite;
}

@keyframes crownFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.03);
  }
}

.crown-stroke-path {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: drawCrownStroke 3.2s ease-in-out infinite alternate;
}

@keyframes drawCrownStroke {
  0% {
    stroke-dashoffset: 260;
    opacity: 0.5;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

/* ==========================================================================
   LOADING CONTENT CONTAINER (Non-overlapping, clean layout)
   ========================================================================== */
.loading-content-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 420px;
  z-index: 2;
}

/* Modern Luxury Micro Badge */
.loading-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  background: rgba(223, 192, 103, 0.08);
  border: 1px solid rgba(223, 192, 103, 0.28);
  border-radius: 99px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-champagne);
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-champagne);
  animation: blinkDot 1.6s ease-in-out infinite;
}

@keyframes blinkDot {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Headline Title */
.loading-headline {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #FFFDF8;
  margin: 0 0 10px 0;
  line-height: 1.35;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95), 0 0 25px rgba(223, 192, 103, 0.35);
  transition: opacity 0.35s ease, transform 0.35s ease;
  will-change: opacity, transform;
}

/* Subtext Description */
.loading-subtext {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: #CFC7B8;
  line-height: 1.55;
  max-width: 360px;
  margin: 0 0 24px 0;
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: opacity 0.35s ease, transform 0.35s ease;
  will-change: opacity, transform;
}

/* ==========================================================================
   MODERN SLEEK PROGRESS BAR
   ========================================================================== */
.loading-progress-track {
  position: relative;
  width: 220px;
  height: 4px;
  background: rgba(223, 192, 103, 0.12);
  border: 1px solid rgba(223, 192, 103, 0.2);
  border-radius: 99px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.loading-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, #A87E18 0%, #DFC067 50%, #FFF5D1 100%);
  border-radius: 99px;
  box-shadow: 0 0 10px rgba(223, 192, 103, 0.75);
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.loading-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
  animation: sweepFillShimmer 2s infinite;
}

@keyframes sweepFillShimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* ==========================================================================
   ADVERTISEMENT VIDEO PLAYER
   ========================================================================== */
.loading-ad-wrap {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.loading-ad-video {
  width: 100%;
  border-radius: 12px;
  border: 1.5px solid rgba(223, 192, 103, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  background: #000;
}
