/* ==========================================================================
   Democracy Foundation — Website Launching Ceremony
   Theme: Traditional, Royal, Prestigious Indian Inaugural Aesthetic
   Layout: 6 Dignitary Member Cards Side-by-Side Above the Centered Banner
   ========================================================================== */

:root {
  /* Royal Color Palette */
  --royal-crimson-dark: #1f0408;
  --royal-crimson: #4a0d18;
  --royal-crimson-rich: #6b1124;
  --royal-crimson-light: #8d1b32;
  --royal-maroon-deep: #140205;
  
  /* Traditional Gold Palette */
  --gold-pure: #ffd700;
  --gold-primary: #d4af37;
  --gold-light: #f7e7a9;
  --gold-rich: #b38728;
  --gold-dark: #7a5c1b;
  --gold-glow: rgba(212, 175, 55, 0.45);
  --gold-glow-intense: rgba(255, 215, 0, 0.75);

  /* Ceremonial States */
  --color-success: #198754;
  --color-success-light: #20c997;
  --color-success-glow: rgba(25, 135, 84, 0.55);
  
  /* Typography */
  --font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Curtain Opening Progress (0% to 100%) */
  --curtain-progress: 0%;
  
  /* Shadows & Depth */
  --shadow-curtain: 0 25px 60px rgba(0, 0, 0, 0.85);
  --shadow-gold: 0 0 30px var(--gold-glow);
}

/* Base Resets & Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  font-family: var(--font-sans);
  background-color: var(--royal-maroon-deep);
  color: #fffdf8;
  user-select: none;
}

/* Ceremonial Stage Background */
.ceremonial-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  background: 
    radial-gradient(circle at 50% 25%, rgba(107, 17, 36, 0.55) 0%, rgba(31, 4, 8, 0.95) 65%, #0d0103 100%),
    repeating-linear-gradient(45deg, rgba(212, 175, 55, 0.015) 0px, rgba(212, 175, 55, 0.015) 2px, transparent 2px, transparent 16px);
  pointer-events: none;
}

/* Traditional Ornamental Corner Accents */
.corner-ornament {
  position: fixed;
  width: 110px;
  height: 110px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.7;
  transition: opacity 0.5s ease;
}
.corner-ornament.top-left { top: 10px; left: 10px; }
.corner-ornament.top-right { top: 10px; right: 10px; transform: scaleX(-1); }
.corner-ornament.bottom-left { bottom: 10px; left: 10px; transform: scaleY(-1); }
.corner-ornament.bottom-right { bottom: 10px; right: 10px; transform: scale(-1, -1); }

/* Canvas for celebratory gold particles */
#ceremonyCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 25;
  pointer-events: none;
}

/* ==========================================================================
   Screen 1: Welcome Screen
   ========================================================================== */
.screen-welcome {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background: 
    radial-gradient(circle at 50% 40%, rgba(107, 17, 36, 0.9) 0%, rgba(20, 2, 5, 0.98) 80%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.screen-welcome.hidden {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.welcome-emblem-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-emblem {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 45px var(--gold-glow), 0 0 10px rgba(0,0,0,0.8);
  border: 3px solid var(--gold-primary);
  object-fit: cover;
}

.emblem-aura {
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border-radius: 50%;
  border: 1px dashed var(--gold-light);
  animation: rotateAura 30s linear infinite;
  opacity: 0.6;
}

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

.welcome-ceremony-tag {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
  display: inline-block;
  padding: 4px 18px;
  border-top: 1px solid rgba(212, 175, 55, 0.4);
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
}

.welcome-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: 2px;
  color: #fffdfa;
  text-shadow: 0 4px 20px rgba(0,0,0,0.8), 0 0 30px rgba(212, 175, 55, 0.4);
  margin-bottom: 0.6rem;
}

.welcome-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  font-weight: 400;
  color: var(--gold-primary);
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
}

.welcome-motto {
  font-size: 0.95rem;
  color: rgba(255, 253, 248, 0.75);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 2.8rem;
  max-width: 650px;
}

.welcome-motto span {
  color: var(--gold-light);
  font-weight: 600;
}

/* Ceremonial Gold Button */
.btn-gold-ceremony {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 48px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2b050c;
  background: linear-gradient(135deg, #fae7a5 0%, #d4af37 40%, #b38728 80%, #f4d36c 100%);
  border: 2px solid #ffd700;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 35px var(--gold-glow);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.btn-gold-ceremony::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: rotate(25deg);
  animation: buttonSweep 3.5s infinite;
}

@keyframes buttonSweep {
  0% { left: -60%; }
  35% { left: 140%; }
  100% { left: 140%; }
}

.btn-gold-ceremony:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 50px var(--gold-glow-intense);
  color: #1a0206;
}

.btn-gold-ceremony:active {
  transform: translateY(1px) scale(0.98);
}

.audio-status-pill {
  margin-top: 2rem;
  font-size: 0.82rem;
  letter-spacing: 1px;
  color: rgba(247, 231, 169, 0.7);
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-pure);
  box-shadow: 0 0 8px var(--gold-pure);
  animation: pulseDot 1.5s infinite ease-in-out;
}

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

/* ==========================================================================
   Screen 2: Main Ceremony Stage
   ========================================================================== */
.screen-stage {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem 2rem 1.5rem;
}

/* Stage Header */
.stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  z-index: 20;
}

.stage-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-emblem-small {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-primary);
  box-shadow: 0 0 12px var(--gold-glow);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fffdf8;
}

.brand-tagline {
  font-size: 0.74rem;
  letter-spacing: 1px;
  color: var(--gold-light);
  text-transform: uppercase;
}

.stage-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(74, 13, 24, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.35);
  font-size: 0.82rem;
  letter-spacing: 1px;
  color: var(--gold-light);
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 8px #25d366;
}

/* ==========================================================================
   ALL 6 MEMBER CARDS ROW (SIDE BY SIDE ABOVE THE BANNER)
   ========================================================================== */
.stage-all-members-section {
  width: 100%;
  max-width: 1480px;
  margin: 1rem auto 1.4rem auto;
  z-index: 20;
}

.members-row-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.members-section-subtitle {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(43, 6, 12, 0.7);
  padding: 4px 18px;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* 6-Card Horizontal Grid Container */
.members-grid-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  width: 100%;
}

/* Individual Large Member Card */
.member-card-item {
  position: relative;
  background: rgba(36, 5, 10, 0.92);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  padding: 1.2rem 0.8rem 1rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.65);
  transition: all 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Member Photo Frame - Large & Crisp */
.member-photo-frame {
  position: relative;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 3px solid var(--gold-primary);
  overflow: hidden;
  margin-bottom: 0.75rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.7);
  background: #2a080e;
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.member-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Member Info Text */
.member-badge-order {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.25rem;
}

.member-card-name {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fffdf8;
  line-height: 1.3;
  min-height: 2.6em; /* Keeps 2 lines aligned uniformly across cards */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
}

/* Status Pill */
.member-card-status {
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  margin-bottom: 0.75rem;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s ease;
}

/* Action Button on each card */
.btn-card-launch {
  width: 100%;
  padding: 9px 8px;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 20px;
  border: 1.5px solid var(--gold-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s ease;
}

/* ==========================================================================
   CARD STATES (Locked, Active, Completed)
   ========================================================================== */

/* 1. Locked State */
.member-card-item.state-locked {
  border-color: rgba(212, 175, 55, 0.2);
  opacity: 0.75;
}

.member-card-item.state-locked .member-photo-frame {
  filter: grayscale(30%);
}

.member-card-item.state-locked .member-card-status {
  background: rgba(30, 4, 8, 0.6);
  color: rgba(255, 253, 248, 0.5);
}

.member-card-item.state-locked .btn-card-launch {
  background: rgba(74, 13, 24, 0.4);
  border-color: rgba(212, 175, 55, 0.25);
  color: rgba(255, 253, 248, 0.4);
  cursor: not-allowed;
}

/* 2. Active State (Announced in Audio -> User's Turn) */
.member-card-item.state-active {
  border-color: var(--gold-pure);
  box-shadow: 0 0 35px var(--gold-glow-intense), 0 15px 35px rgba(0,0,0,0.85);
  transform: translateY(-5px) scale(1.03);
  z-index: 10;
  animation: cardActiveGlow 2s infinite ease-in-out;
}

.member-card-item.state-active .member-photo-frame {
  border-color: var(--gold-pure);
  box-shadow: 0 0 20px var(--gold-glow-intense);
  transform: scale(1.05);
}

.member-card-item.state-active .member-card-status {
  background: rgba(212, 175, 55, 0.25);
  border-color: var(--gold-pure);
  color: var(--gold-pure);
  font-weight: 700;
}

.member-card-item.state-active .btn-card-launch {
  background: linear-gradient(135deg, #ffd700 0%, #d4af37 50%, #b38728 100%);
  border-color: #fffdf8;
  color: #1a0206;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(0,0,0,0.6), 0 0 20px var(--gold-glow-intense);
  animation: buttonPulse 1.8s infinite;
}

.member-card-item.state-active .btn-card-launch:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.8), 0 0 30px var(--gold-glow-intense);
  color: #000;
}

/* 3. Completed State (Clicked & Launched Successfully) */
.member-card-item.state-completed {
  border-color: var(--color-success-light);
  box-shadow: 0 0 25px var(--color-success-glow), 0 10px 25px rgba(0,0,0,0.7);
  opacity: 0.95;
}

.member-card-item.state-completed .member-photo-frame {
  border-color: var(--color-success-light);
}

.member-card-item.state-completed .member-card-status {
  background: rgba(25, 135, 84, 0.35);
  border-color: var(--color-success-light);
  color: var(--color-success-light);
  font-weight: 700;
}

.member-card-item.state-completed .btn-card-launch {
  background: rgba(25, 135, 84, 0.25);
  border-color: var(--color-success-light);
  color: var(--color-success-light);
  cursor: default;
  box-shadow: none;
  pointer-events: none;
}

@keyframes cardActiveGlow {
  0%, 100% { border-color: rgba(255, 215, 0, 0.6); }
  50% { border-color: rgba(255, 215, 0, 1); box-shadow: 0 0 40px rgba(255, 215, 0, 0.85); }
}

@keyframes buttonPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* ==========================================================================
   CENTRAL LAUNCHING BANNER / CURTAIN SYSTEM
   Positioned Centered Below the Member Cards
   ========================================================================== */
.banner-stage-center {
  position: relative;
  width: min(92vw, 840px);
  height: clamp(250px, 36vh, 340px);
  margin: 0.5rem auto 1.5rem auto;
  z-index: 12;
  perspective: 1000px;
}

/* Outer Ornate Frame */
.ceremony-banner-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 4px solid var(--gold-primary);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(212, 175, 55, 0.35),
    inset 0 0 25px rgba(0, 0, 0, 0.8);
  background: #180307;
}

/* Decorative Gold Top Trim */
.banner-top-valance {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  z-index: 18;
  background: linear-gradient(180deg, #d4af37 0%, #8f681a 100%);
  border-bottom: 2px solid #ffd700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.valance-scallops {
  position: absolute;
  bottom: -9px;
  left: 0;
  right: 0;
  height: 10px;
  background-image: radial-gradient(circle at 10px 0, #8f681a 10px, transparent 10px);
  background-size: 20px 10px;
  background-repeat: repeat-x;
  z-index: 18;
}

.valance-title {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #24040a;
  font-weight: 800;
}

/* REVEAL CONTENT BEHIND CURTAINS */
.banner-reveal-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.2rem 1.8rem;
  z-index: 5;
  background: 
    radial-gradient(ellipse at center, rgba(141, 27, 50, 0.55) 0%, rgba(20, 2, 5, 0.95) 75%),
    repeating-linear-gradient(0deg, rgba(212, 175, 55, 0.04) 0px, rgba(212, 175, 55, 0.04) 1px, transparent 1px, transparent 8px);
}

.reveal-emblem-small {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 16px var(--gold-glow);
  margin-bottom: 0.5rem;
}

.reveal-heading-foundation {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 2px;
  color: #fffdf8;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  margin-bottom: 0.3rem;
}

.reveal-url-wrap {
  position: relative;
  display: inline-block;
  margin: 0.5rem 0;
  padding: 8px 22px;
  background: rgba(10, 1, 3, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

.reveal-url-text {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-light);
  text-shadow: 0 0 12px var(--gold-glow-intense);
  transition: all 0.5s ease;
}

.url-reveal-mask {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

/* Grand Finale Live Message (Unlocked at Stage 6) */
.finale-live-announcement {
  display: none;
  flex-direction: column;
  align-items: center;
  animation: finaleFadeIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.finale-live-announcement.visible {
  display: flex;
}

.finale-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: #25d366;
  text-shadow: 0 0 14px rgba(37, 211, 102, 0.6);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.btn-visit-portal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 0.75rem;
  padding: 10px 28px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #1a0206;
  background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
  border: 2px solid #fffdf8;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.7), 0 0 25px var(--gold-glow-intense);
  transition: all 0.3s ease;
}

.btn-visit-portal:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 30px rgba(0,0,0,0.9), 0 0 35px var(--gold-glow-intense);
  color: #0d0103;
}

@keyframes finaleFadeIn {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   PROGRESSIVE CURTAIN PANELS (Left & Right)
   ========================================================================== */
.curtain-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 10;
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* Left Curtain Panel */
.curtain-panel.left-curtain {
  left: 0;
  transform: translateX(calc(-1 * var(--curtain-progress)));
  background: 
    linear-gradient(90deg, 
      rgba(20, 2, 5, 0.9) 0%, 
      #4a0d18 15%, 
      #7a1329 30%, 
      #3d0712 45%, 
      #6b1124 60%, 
      #8d1b32 75%, 
      #4a0d18 90%, 
      #220308 100%);
  box-shadow: inset -10px 0 20px rgba(0, 0, 0, 0.8), 5px 0 15px rgba(0,0,0,0.7);
  border-right: 2.5px solid var(--gold-primary);
}

/* Right Curtain Panel */
.curtain-panel.right-curtain {
  right: 0;
  transform: translateX(var(--curtain-progress));
  background: 
    linear-gradient(90deg, 
      #220308 0%, 
      #4a0d18 10%, 
      #8d1b32 25%, 
      #6b1124 40%, 
      #3d0712 55%, 
      #7a1329 70%, 
      #4a0d18 85%, 
      rgba(20, 2, 5, 0.9) 100%);
  box-shadow: inset 10px 0 20px rgba(0, 0, 0, 0.8), -5px 0 15px rgba(0,0,0,0.7);
  border-left: 2.5px solid var(--gold-primary);
}

/* Pleated Fabric Texture Lines */
.curtain-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    rgba(0, 0, 0, 0.4) 12px,
    rgba(255, 255, 255, 0.08) 24px,
    rgba(0, 0, 0, 0.5) 36px,
    transparent 48px
  );
  pointer-events: none;
}

/* Gold Embroidered Border (Zari) along bottom & inner edges */
.curtain-zari-trim {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 22px;
  background: linear-gradient(180deg, #d4af37 0%, #9a7b2c 100%);
  border-top: 1px solid #ffd700;
  z-index: 11;
}

.curtain-zari-trim::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
  bottom: 3px;
  background: repeating-linear-gradient(
    45deg,
    #7a5c1b 0px,
    #7a5c1b 3px,
    #f7e7a9 3px,
    #f7e7a9 6px
  );
  opacity: 0.7;
}

/* Central Ceremonial Ribbon & Seal when closed */
.curtain-center-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  z-index: 15;
  border-radius: 50%;
  background: radial-gradient(circle, #f7e7a9 0%, #d4af37 40%, #7a5c1b 100%);
  border: 3px solid #ffd700;
  box-shadow: 0 0 25px var(--gold-glow-intense), 0 8px 20px rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.curtain-center-seal img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.curtain-center-seal.opened {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
}

/* Golden Tassels hanging on edges */
.curtain-tassel {
  position: absolute;
  bottom: -22px;
  width: 14px;
  height: 22px;
  background: linear-gradient(180deg, #d4af37 0%, #8f681a 80%, #ffd700 100%);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.6);
  z-index: 12;
}
.curtain-tassel.left-tassel { right: 8px; }
.curtain-tassel.right-tassel { left: 8px; }

/* ==========================================================================
   Audio Inspector & Quick Controls Drawer (Bottom-right floating)
   ========================================================================== */
.audio-controller-drawer {
  position: fixed;
  bottom: 12px;
  right: 14px;
  z-index: 25;
  background: rgba(20, 2, 5, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 10px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: rgba(255, 253, 248, 0.7);
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.audio-time-display {
  font-family: monospace;
  color: var(--gold-light);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1280px) {
  .members-grid-container {
    gap: 10px;
  }
  .member-photo-frame {
    width: 74px;
    height: 74px;
  }
  .member-card-name {
    font-size: 0.9rem;
  }
}

@media (max-width: 1024px) {
  .members-grid-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .banner-stage-center {
    width: 94vw;
    height: 280px;
  }
}

@media (max-width: 640px) {
  .stage-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .stage-status-badge {
    align-self: flex-start;
  }
  .members-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .member-photo-frame {
    width: 64px;
    height: 64px;
  }
  .member-card-name {
    font-size: 0.82rem;
    min-height: auto;
  }
  .btn-card-launch {
    padding: 7px 6px;
    font-size: 0.76rem;
  }
  .banner-stage-center {
    height: 240px;
    width: 96vw;
  }
}
