/* ==========================================================================
   MISS REZANNA - ROYAL ETHNIC STORY & AMBIENT MUSIC SUITE
   ========================================================================== */

/* 1. ROYAL HERITAGE PROLOGUE / WELCOME CURTAIN MODAL */
.ethnic-prologue-backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(30, 26, 20, 0.96) 0%, rgba(15, 13, 10, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ethnic-prologue-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.ethnic-prologue-card {
  max-width: 620px;
  width: 100%;
  background: linear-gradient(135deg, #1C1914 0%, #14120E 100%);
  border: 1px solid rgba(195, 161, 103, 0.45);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), inset 0 0 40px rgba(195, 161, 103, 0.08);
  border-radius: 8px;
  padding: 48px 40px;
  text-align: center;
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ethnic-prologue-backdrop.open .ethnic-prologue-card {
  transform: scale(1) translateY(0);
}

.prologue-mandala-icon {
  font-size: 2.4rem;
  color: #C3A167;
  display: inline-block;
  margin-bottom: 16px;
  animation: spinMandala 20s linear infinite;
  text-shadow: 0 0 16px rgba(195, 161, 103, 0.5);
}

@keyframes spinMandala {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.prologue-subtitle {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #C3A167;
  margin-bottom: 12px;
}

.prologue-title {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: 2.3rem;
  font-weight: 600;
  color: #F8F6F2;
  margin: 0 0 20px;
  line-height: 1.25;
}

.prologue-narrative {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 1.02rem;
  line-height: 1.8;
  color: #C8C2B6;
  margin-bottom: 36px;
  font-style: italic;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.prologue-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.btn-prologue-music {
  background: linear-gradient(135deg, #C3A167 0%, #A58348 100%);
  color: #111111;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(195, 161, 103, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-prologue-music:hover {
  background: linear-gradient(135deg, #D4B278 0%, #B8965A 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(195, 161, 103, 0.55);
}

.btn-prologue-silent {
  background: transparent;
  color: #888277;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  transition: color 0.2s ease;
}

.btn-prologue-silent:hover {
  color: #F8F6F2;
}

@media (max-width: 600px) {
  .ethnic-prologue-card {
    padding: 36px 24px;
  }
  .prologue-title {
    font-size: 1.8rem;
  }
}

/* 2. FLOATING ROYAL MUSIC CONTROLLER (BOTTOM-LEFT) */
.royal-music-player {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99990;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(24, 21, 17, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(195, 161, 103, 0.4);
  padding: 8px 16px 8px 12px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.royal-music-player:hover {
  border-color: #C3A167;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(195, 161, 103, 0.3);
}

.music-icon-wrapper {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C3A167;
  font-size: 1.15rem;
  position: relative;
}

.royal-music-player.playing .music-icon-wrapper {
  animation: spinMandala 8s linear infinite;
}

.music-label {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F8F6F2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sound-waves {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.sound-waves span {
  display: block;
  width: 2px;
  background-color: #C3A167;
  height: 4px;
  border-radius: 1px;
  transition: height 0.2s ease;
}

.royal-music-player.playing .sound-waves span:nth-child(1) {
  animation: soundBounce 0.8s infinite alternate ease-in-out;
}
.royal-music-player.playing .sound-waves span:nth-child(2) {
  animation: soundBounce 0.6s 0.2s infinite alternate ease-in-out;
}
.royal-music-player.playing .sound-waves span:nth-child(3) {
  animation: soundBounce 0.9s 0.4s infinite alternate ease-in-out;
}

@keyframes soundBounce {
  0% { height: 3px; }
  100% { height: 12px; }
}

@media (max-width: 600px) {
  .royal-music-player {
    bottom: 20px;
    left: 14px;
    padding: 6px 12px 6px 10px;
  }
  .music-label {
    font-size: 0.68rem;
  }
}

/* 3. FLOATING GOLD DUST & ROYAL SPARKLE PARTICLES */
.royal-gold-mote {
  position: fixed;
  color: #C3A167;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  animation: royalMoteFloat 8s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(195, 161, 103, 0.8);
}

@keyframes royalMoteFloat {
  0% {
    transform: translateY(0) scale(0.6);
    opacity: 0;
  }
  30% {
    opacity: 0.7;
  }
  70% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-120px) scale(1.2);
    opacity: 0;
  }
}

/* 4. GARMENT HERITAGE STORY BADGE */
.heritage-story-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(195, 161, 103, 0.12);
  color: #111111;
  border: 1px solid rgba(195, 161, 103, 0.4);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
}

.heritage-story-badge span {
  color: #C3A167;
}
