.intro {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  cursor: pointer;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(255, 160, 200, 0.12), transparent 60%),
    linear-gradient(165deg, rgba(12, 10, 18, 0.72) 0%, rgba(26, 20, 40, 0.65) 45%, rgba(45, 34, 64, 0.58) 70%, rgba(18, 15, 26, 0.75) 100%);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.9s;
}

.intro--out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 143, 171, 0.25), transparent 70%);
  animation: intro-glow-pulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes intro-glow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}

.intro-logo {
  position: relative;
  z-index: 1;
  font-size: clamp(1.5rem, 4.5vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-align: center;
  max-width: 92vw;
  color: #fff;
  text-shadow: 0 0 40px rgba(255, 143, 171, 0.45);
  opacity: 0;
  transform: translateY(20px);
  animation: intro-logo-in 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.intro-sub {
  position: relative;
  z-index: 1;
  font-size: 0.88rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  color: rgba(248, 246, 255, 0.55);
  opacity: 0;
  animation: intro-logo-in 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}

.intro-line {
  position: relative;
  z-index: 1;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 143, 171, 0.6), transparent);
  opacity: 0;
  animation: intro-logo-in 1s ease 1.2s forwards;
}

.intro-tap {
  position: relative;
  z-index: 1;
  margin-top: 48px;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: rgba(248, 246, 255, 0.4);
  opacity: 0;
  transition: opacity 0.6s;
}

.intro-tap--show {
  opacity: 1;
  animation: intro-tap-blink 2s ease-in-out infinite;
}

@keyframes intro-logo-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes intro-tap-blink {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.85; }
}

/* 主菜单入场（intro 结束后） */
#screen-title .title-menu {
  opacity: 0;
  transform: translateY(-46%) translateX(-24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

#screen-title.title--ready .title-menu {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

#screen-title .title-character {
  opacity: 0;
  transform: translateY(40px);
}

#screen-title.title--ready .title-character.is-ready,
#screen-title.title--ready .title-character {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

#screen-title .title-hint {
  opacity: 0;
  transition: opacity 0.6s 0.5s;
}

#screen-title.title--ready .title-hint {
  opacity: 1;
}

.title-btn {
  opacity: 0;
  transform: skewX(-14deg) translateX(-16px);
}

#screen-title.title--ready .title-btn {
  animation: menu-btn-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#screen-title.title--ready .title-menu-list li:nth-child(1) .title-btn { animation-delay: 0.08s; }
#screen-title.title--ready .title-menu-list li:nth-child(2) .title-btn { animation-delay: 0.16s; }
#screen-title.title--ready .title-menu-list li:nth-child(3) .title-btn { animation-delay: 0.24s; }
#screen-title.title--ready .title-menu-list li:nth-child(4) .title-btn { animation-delay: 0.32s; }
#screen-title.title--ready .title-menu-list li:nth-child(5) .title-btn { animation-delay: 0.4s; }

@keyframes menu-btn-in {
  to {
    opacity: 1;
    transform: skewX(-14deg) translateX(0);
  }
}
