/* css/intro.css —— 开场动画 */
#introRoot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  overflow: hidden;
  opacity: 1;
  transition: opacity 1.4s ease;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}
#introRoot.fade-out { opacity: 0; pointer-events: none; }

.intro-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 45%, #0c0a14 0%, #000 72%);
}

/* 标题：坠 光（从上方落下）*/
.intro-title {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%) translateY(-60vh);
  font-size: clamp(3.2rem, 16vw, 6.5rem);
  letter-spacing: 0.42em;
  color: #e8dcbf;
  opacity: 0;
  text-shadow: 0 0 40px rgba(255,220,140,0.85), 0 0 90px rgba(184,155,94,0.5);
  pointer-events: none;
  white-space: nowrap;
  transition: transform 2.4s cubic-bezier(.2,.7,.25,1), opacity 0.9s ease;
}
#introRoot.show-title .intro-title {
  transform: translate(-50%, -50%) translateY(0);
  opacity: 1;
  animation: introTitleGlow 3s ease-in-out infinite 2.4s;
}
@keyframes introTitleGlow {
  0%,100% { text-shadow: 0 0 40px rgba(255,220,140,0.85), 0 0 90px rgba(184,155,94,0.5); }
  50%     { text-shadow: 0 0 60px rgba(255,235,170,1), 0 0 130px rgba(184,155,94,0.75); }
}

/* 台词 */
.intro-line {
  position: absolute;
  left: 50%; top: 62%;
  transform: translateX(-50%);
  max-width: 82vw;
  text-align: center;
  font-size: clamp(0.9rem, 3.6vw, 1.1rem);
  line-height: 2;
  letter-spacing: 0.15em;
  color: #cfcfd6;
  opacity: 0;
  transition: opacity 1.8s ease;
  pointer-events: none;
}
#introRoot.show-line .intro-line { opacity: 1; }

/* 轻点进入 */
.intro-tap {
  position: absolute;
  left: 50%; bottom: 18%;
  transform: translateX(-50%);
  font-size: 1rem;
  letter-spacing: 0.5em;
  color: #b89b5e;
  opacity: 0;
  transition: opacity 0.8s ease;
  animation: introBreathe 2.4s ease-in-out infinite;
  pointer-events: none;
}
#introRoot.ready .intro-tap { opacity: 1; }
#introRoot.playing .intro-tap { opacity: 0; transition: opacity 0.3s; }
@keyframes introBreathe {
  0%,100% { opacity: 0.35; text-shadow: 0 0 8px rgba(184,155,94,0.3); }
  50%     { opacity: 0.95; text-shadow: 0 0 22px rgba(184,155,94,0.8); }
}
