/* ============ 開場：舞台布幕 ============ */
.stage-curtain { position: fixed; inset: 0; z-index: 50; pointer-events: none; overflow: hidden;
  animation: curtainAuto .8s 12s forwards; } /* 萬一 JS 失敗，12 秒後自動消失 */
@keyframes curtainAuto { to { opacity: 0; visibility: hidden; } }

/* 紙雕舞台：後→前＝布幕、中框、前框、徽章 */
.stage-curtain.paper { background: #03140e; }
.stage-curtain.paper::before { content: ''; position: absolute; left: 50%; top: 14%; bottom: 8%; width: 30px; margin-left: -15px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, #fff4d6, rgba(243, 213, 143, .6) 40%, transparent 75%); } /* 縫隙後的亮光 */
.stage-curtain.paper::before { transition: opacity .6s ease .5s; }
.stage-curtain.paper[data-state="open"]::before { opacity: 0; }
.st-curtain { position: absolute; top: 0; height: 100%; width: 50.5%; object-fit: cover; will-change: transform;
  filter: drop-shadow(0 0 24px rgba(0, 0, 0, .55)); }
.st-curtain.left { left: 0; object-position: right center; transform-origin: left center; }
.st-curtain.right { right: 0; object-position: left center; transform-origin: right center; }
.st-frame { position: absolute; inset: 0; display: block; transform-origin: 50% 52%; will-change: transform, opacity; }
.st-frame img { width: 100%; height: 100%; object-fit: cover; display: block;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .55)); }
.st-mid { z-index: 1; }
.st-front { z-index: 2; }

/* 載入進度：布幕接縫透出一道金光，由中間往上下延伸 */
.st-seam { position: absolute; left: 50%; top: 16%; bottom: 10%; width: 4px; margin-left: -2px; z-index: 1;
  background: linear-gradient(to bottom, transparent, #fff8e4 10%, #ffffff 50%, #fff8e4 90%, transparent);
  box-shadow: 0 0 10px 4px rgba(255, 244, 214, .95), 0 0 36px 14px rgba(243, 213, 143, .7), 0 0 110px 40px rgba(232, 197, 130, .35);
  mix-blend-mode: screen; transform: scaleY(0); transform-origin: 50% 50%; border-radius: 4px; }

/* 舞台燈光：布幕拉開時，主視覺由暗轉亮，中央先亮 */
.kv-light { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse 30% 40% at 50% 55%, transparent 0%, rgba(3, 10, 7, .92) 100%); }

@media (prefers-reduced-motion: reduce) {
  .stage-curtain, .kv-light { display: none; }
}
