/**
 * LYR-01 开场片头 · 青少年舞台律动
 */
@media (prefers-reduced-motion: reduce) {
  .lyr-intro { display: none !important; }
  html.lyr-intro-lock { overflow: auto !important; }
}

html.lyr-intro-lock,
html.lyr-intro-lock body,
html.lyr-intro-pending,
html.lyr-intro-pending body {
  overflow: hidden !important;
}

.lyr-intro {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% 35%, #2a1a4a 0%, transparent 60%),
    linear-gradient(165deg, #1a1030 0%, #0f1728 45%, #1c1238 100%);
  color: #fff;
  opacity: 1;
  transition: opacity 0.7s ease;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.lyr-intro.is-out {
  opacity: 0;
  pointer-events: none;
}
.lyr-intro.is-flash {
  animation: lyrIntroShake 0.35s ease;
}

.lyr-intro-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.lyr-intro-spot {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0;
}
.lyr-intro.is-on .lyr-intro-spot {
  animation: lyrIntroSpot 5.5s ease forwards;
}
.lyr-intro-spot--a {
  width: 42vw;
  height: 42vw;
  left: -8%;
  top: -10%;
  background: rgba(255, 90, 120, 0.45);
}
.lyr-intro-spot--b {
  width: 38vw;
  height: 38vw;
  right: -6%;
  top: 10%;
  background: rgba(77, 184, 255, 0.4);
  animation-delay: 0.2s !important;
}
.lyr-intro-spot--c {
  width: 50vw;
  height: 36vw;
  left: 25%;
  bottom: -15%;
  background: rgba(255, 196, 77, 0.28);
  animation-delay: 0.35s !important;
}

.lyr-intro-ring {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.4);
}
.lyr-intro.is-on .lyr-intro-ring {
  animation: lyrIntroRing 1.6s ease-out forwards;
}
.lyr-intro-ring--b {
  animation-delay: 0.25s !important;
  border-color: rgba(255, 90, 120, 0.45);
}
.lyr-intro-floor {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  opacity: 0;
  transform: scaleX(0.2);
}
.lyr-intro.is-on .lyr-intro-floor {
  animation: lyrIntroFloor 1.2s 0.4s ease forwards;
}
.lyr-intro-pulse {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: #ff5a78;
  box-shadow: 0 0 30px #ff5a78;
  opacity: 0;
}
.lyr-intro.is-beat .lyr-intro-pulse {
  animation: lyrIntroPulse 0.72s ease-in-out infinite;
}

.lyr-intro-beats {
  position: absolute;
  left: 50%;
  bottom: 16%;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 56px;
  transform: translateX(-50%);
  opacity: 0;
}
.lyr-intro.is-on .lyr-intro-beats {
  animation: lyrIntroFadeIn 0.6s 0.8s ease forwards;
}
.lyr-intro-beat {
  display: block;
  width: 5px;
  height: var(--h, 24px);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd27a, #ff5a78);
  transform-origin: bottom center;
  opacity: 0.85;
}
.lyr-intro.is-dance .lyr-intro-beat,
.lyr-intro.is-beat .lyr-intro-beat {
  animation: lyrIntroEq 0.55s var(--d, 0s) ease-in-out infinite alternate;
}

.lyr-intro-stage {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 2.5rem));
  text-align: center;
  padding: 1rem;
}
.lyr-intro-line {
  margin: 0;
}
.lyr-intro-line--brand {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(255, 210, 160, 0.9);
  font-weight: 600;
  opacity: 0;
  transform: translateY(12px);
}
.lyr-intro-line--id {
  margin-top: 0.55rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ff7a92;
  opacity: 0;
  transform: translateY(16px) scale(0.92);
}
.lyr-intro.is-on .lyr-intro-line--brand {
  animation: lyrIntroRise 0.7s 0.15s ease forwards;
}
.lyr-intro.is-on .lyr-intro-line--id {
  animation: lyrIntroPop 0.75s 0.35s cubic-bezier(0.22, 1.4, 0.36, 1) forwards;
}

.lyr-intro-mark {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 1rem 0 0.85rem;
  opacity: 0;
}
.lyr-intro.is-on .lyr-intro-mark {
  animation: lyrIntroFadeIn 0.5s 0.55s ease forwards;
}
.lyr-intro-mark-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.55;
}
.lyr-intro.is-dance .lyr-intro-mark-dot:nth-child(1) {
  animation: lyrIntroDot 0.55s ease-in-out infinite alternate;
}
.lyr-intro.is-dance .lyr-intro-mark-dot:nth-child(2) {
  animation: lyrIntroDot 0.55s 0.12s ease-in-out infinite alternate;
  background: #ff5a78;
}
.lyr-intro.is-dance .lyr-intro-mark-dot:nth-child(3) {
  animation: lyrIntroDot 0.55s 0.24s ease-in-out infinite alternate;
  background: #4db8ff;
}

.lyr-intro-line--title {
  margin: 0.35rem 0 0;
  font-size: clamp(1.7rem, 5.2vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
}
.lyr-intro-title-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.02em;
}
.lyr-intro-title-row--b {
  margin-top: 0.15em;
}
.lyr-intro-ch {
  display: inline-block;
  opacity: 0;
  transform: translate(var(--sx), var(--sy)) rotate(var(--rot)) scale(0.6);
  will-change: transform, opacity;
}
.lyr-intro-ch--sp {
  width: 0.35em;
  opacity: 0;
}
.lyr-intro.is-drop .lyr-intro-ch {
  animation:
    lyrIntroLand 0.85s var(--d) cubic-bezier(0.2, 1.35, 0.32, 1) forwards,
    lyrIntroBounce var(--bounce, 0.7s) calc(var(--d) + 0.7s) ease-in-out 2;
}
.lyr-intro.is-dance .lyr-intro-ch {
  animation:
    lyrIntroLand 0.85s var(--d) cubic-bezier(0.2, 1.35, 0.32, 1) forwards,
    lyrIntroGroove var(--dance, 0.9s) calc(var(--d) + 0.95s) ease-in-out infinite alternate;
}
.lyr-intro.is-lock .lyr-intro-ch {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.lyr-intro-bar {
  width: min(220px, 40%);
  height: 3px;
  margin: 1.25rem auto 0.9rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #4db8ff, #ff5a78, #ffd27a);
  opacity: 0;
  transform: scaleX(0.2);
}
.lyr-intro.is-on .lyr-intro-bar {
  animation: lyrIntroFloor 0.9s 1.1s ease forwards;
}

.lyr-intro-line--sub {
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.lyr-intro.is-drop .lyr-intro-line--sub .lyr-intro-ch {
  animation: lyrIntroLand 0.75s var(--d) cubic-bezier(0.2, 1.3, 0.35, 1) forwards;
}
.lyr-intro.is-dance .lyr-intro-line--sub .lyr-intro-ch {
  animation:
    lyrIntroLand 0.75s var(--d) cubic-bezier(0.2, 1.3, 0.35, 1) forwards,
    lyrIntroGrooveSoft 0.85s calc(var(--d) + 0.8s) ease-in-out infinite alternate;
}

.lyr-intro-skip {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 3;
  min-height: 40px;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.88rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.lyr-intro-skip:hover {
  background: rgba(255, 255, 255, 0.18);
}

@keyframes lyrIntroSpot {
  0% { opacity: 0; transform: scale(0.7); }
  25% { opacity: 0.9; }
  100% { opacity: 0.55; transform: scale(1.05); }
}
@keyframes lyrIntroRing {
  0% { opacity: 0.8; transform: scale(0.35); }
  100% { opacity: 0; transform: scale(3.2); }
}
@keyframes lyrIntroFloor {
  to { opacity: 1; transform: scaleX(1); }
}
@keyframes lyrIntroPulse {
  0% { opacity: 0.35; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.35); }
  100% { opacity: 0.35; transform: scale(0.7); }
}
@keyframes lyrIntroEq {
  from { transform: scaleY(0.35); }
  to { transform: scaleY(1.15); }
}
@keyframes lyrIntroFadeIn {
  to { opacity: 1; }
}
@keyframes lyrIntroRise {
  to { opacity: 1; transform: none; }
}
@keyframes lyrIntroPop {
  to { opacity: 1; transform: none; }
}
@keyframes lyrIntroLand {
  to {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
}
@keyframes lyrIntroBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes lyrIntroGroove {
  0% { transform: translateY(0) rotate(-2deg); }
  100% { transform: translateY(-9px) rotate(2deg); }
}
@keyframes lyrIntroGrooveSoft {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}
@keyframes lyrIntroDot {
  from { transform: translateY(0) scale(1); opacity: 0.45; }
  to { transform: translateY(-7px) scale(1.15); opacity: 1; }
}
@keyframes lyrIntroShake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-3px, 2px); }
  50% { transform: translate(3px, -2px); }
  75% { transform: translate(-2px, -1px); }
}

@media (max-width: 640px) {
  .lyr-intro-beats { bottom: 20%; gap: 4px; }
  .lyr-intro-beat { width: 4px; }
  .lyr-intro-skip { right: 0.85rem; bottom: 0.85rem; }
}
