/* ===================================================================
   CINEMA CURTAINS & 3-2-1-GO COUNTDOWN ENTRANCE
   Velvet Theater Drapes, Gold Tassels, 3-2-1-GO Countdown Animation
   =================================================================== */

.curtain-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #140508;
  transition: opacity 1s ease 1.8s, visibility 1s ease 1.8s;
  pointer-events: auto;
}

.curtain-stage.opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ───────────────────────────────────────────────────────────────────
   1. LUXURY VELVET CURTAINS (Left & Right)
   ─────────────────────────────────────────────────────────────────── */
.curtain-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  height: 100%;
  background: 
    repeating-linear-gradient(
      90deg,
      #590614 0px,
      #780c1e 18px,
      #9c172d 36px,
      #bd263e 50px,
      #9c172d 64px,
      #780c1e 82px,
      #590614 100px
    );
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  transition: transform 2.2s cubic-bezier(0.75, 0, 0.15, 1);
  will-change: transform;
}

/* Vertical velvet lighting highlights */
.curtain-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 0%,
    transparent 15%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
  pointer-events: none;
}

.curtain-left {
  left: 0;
  transform-origin: left center;
  border-right: 2px solid rgba(255, 215, 0, 0.3);
  box-shadow: inset -15px 0 35px rgba(0, 0, 0, 0.7);
}

.curtain-right {
  right: 0;
  transform-origin: right center;
  border-left: 2px solid rgba(255, 215, 0, 0.3);
  box-shadow: inset 15px 0 35px rgba(0, 0, 0, 0.7);
}

/* Open Curtains Animation */
.curtain-stage.is-opening .curtain-left {
  transform: translateX(-102%) skewX(-2deg);
}

.curtain-stage.is-opening .curtain-right {
  transform: translateX(102%) skewX(2deg);
}

/* Theater Top Valance (Scalloped Drapery Header) */
.curtain-valance {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: repeating-linear-gradient(
    90deg,
    #4a0410 0px,
    #7a0c1e 25px,
    #9e1b2d 50px,
    #7a0c1e 75px,
    #4a0410 100px
  );
  border-bottom: 3px solid #d4af37;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  z-index: 10;
  transition: transform 1.8s ease 0.4s, opacity 1.8s ease 0.4s;
}

.curtain-valance::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background-image: radial-gradient(circle at 10px 0, #d4af37 6px, transparent 7px);
  background-size: 20px 10px;
}

.curtain-stage.is-opening .curtain-valance {
  transform: translateY(-70px);
  opacity: 0;
}

/* ───────────────────────────────────────────────────────────────────
   2. COUNTDOWN OVERLAY & MARQUEE
   ─────────────────────────────────────────────────────────────────── */
.curtain-content {
  position: relative;
  z-index: 20;
  text-align: center;
  padding: 30px;
  max-width: 520px;
  width: 90%;
  transition: opacity 0.5s ease;
}

.curtain-stage.is-opening .curtain-content {
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Decorative Marquee Badge */
.curtain-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  background: rgba(30, 10, 15, 0.85);
  border: 1px solid rgba(255, 215, 0, 0.5);
  border-radius: var(--radius-full);
  color: #f7d070;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
  backdrop-filter: blur(8px);
}

.curtain-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  color: #fff4ea;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  margin-bottom: 10px;
  line-height: 1.3;
}

.curtain-subtitle {
  font-size: 1.05rem;
  color: #f3cfcf;
  margin-bottom: 30px;
  font-style: italic;
  font-family: var(--font-serif);
}

/* Countdown Number Centerpiece */
.countdown-box {
  width: 140px;
  height: 140px;
  margin: 0 auto 30px auto;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 215, 0, 0.25) 0%, rgba(50, 10, 20, 0.8) 80%);
  border: 2px solid rgba(255, 215, 0, 0.6);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.35), inset 0 0 20px rgba(255, 215, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.countdown-number {
  font-family: var(--font-serif);
  font-size: 4.8rem;
  font-weight: 700;
  color: #fff9e6;
  text-shadow: 0 0 25px rgba(255, 215, 0, 0.9), 0 4px 8px rgba(0, 0, 0, 0.6);
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.countdown-number.pop {
  animation: numberPop 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes numberPop {
  0% {
    transform: scale(0.3) rotate(-10deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.25) rotate(4deg);
    opacity: 1;
  }
  75% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* Curtain Start Button */
.curtain-start-btn {
  background: linear-gradient(135deg, #ffd700 0%, #e6a100 100%);
  color: #3b0d14;
  border: none;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.curtain-start-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.6);
}

.curtain-start-btn:active {
  transform: scale(0.98);
}

