.top-controls {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.music-toggle {
  border-radius: 999px;
  padding: 11px 15px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.22);
  backdrop-filter: blur(16px);
}

.music-toggle.is-on {
  background: linear-gradient(135deg, rgba(255,47,179,0.95), rgba(53,214,255,0.78));
  box-shadow: 0 0 26px rgba(255,47,179,0.36), 0 14px 38px rgba(0,0,0,0.25);
}

.opening-stage {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 25%, rgba(255,47,179,0.35), transparent 18rem),
    radial-gradient(circle at 18% 85%, rgba(53,214,255,0.24), transparent 17rem),
    linear-gradient(180deg, #05020d 0%, #140622 100%);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
}

.opening-stage.is-hidden {
  opacity: 0;
  transform: scale(1.04);
  visibility: hidden;
}

.opening-card {
  width: min(680px, calc(100% - 30px));
  border-radius: 36px;
  padding: clamp(24px, 5vw, 44px);
  text-align: center;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06)),
    radial-gradient(circle at 50% 0%, rgba(255,216,107,0.20), transparent 12rem);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 35px 100px rgba(0,0,0,0.55), inset 0 0 90px rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

.opening-card::before {
  content: "";
  position: absolute;
  inset: -60% -30%;
  background: conic-gradient(from 90deg, transparent, rgba(255,255,255,0.18), transparent, rgba(53,214,255,0.22), transparent);
  animation: spin 8s linear infinite;
  opacity: 0.58;
}

.opening-content {
  position: relative;
  z-index: 1;
}

.opening-logo {
  width: 116px;
  height: 116px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 34px;
  font-size: 3.8rem;
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow: 0 0 38px rgba(255,47,179,0.42);
  animation: floatLogo 2.8s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

.opening-title {
  font-size: clamp(2.5rem, 10vw, 5.5rem);
  line-height: 0.84;
  letter-spacing: -0.075em;
  margin-bottom: 18px;
  text-shadow: 0 0 34px rgba(255,47,179,0.55);
}

.opening-text {
  color: #ecdfff;
  font-size: 1.12rem;
  line-height: 1.5;
  max-width: 520px;
  margin: 0 auto 24px;
}

.opening-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.opening-small {
  display: block;
  margin-top: 16px;
  color: rgba(255,255,255,0.55);
  font-size: 0.86rem;
}

.audio-meter {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: end;
  gap: 3px;
  height: 16px;
  margin-right: 6px;
  vertical-align: -2px;
}

.audio-meter i {
  display: block;
  width: 3px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  animation: beatBar 0.76s ease-in-out infinite;
}

.audio-meter i:nth-child(2) { animation-delay: 0.12s; height: 13px; }
.audio-meter i:nth-child(3) { animation-delay: 0.24s; height: 9px; }

@keyframes beatBar {
  0%, 100% { transform: scaleY(0.45); opacity: 0.58; }
  50% { transform: scaleY(1.15); opacity: 1; }
}

@media (max-width: 680px) {
  .top-controls {
    position: static;
    justify-content: flex-end;
    margin-bottom: 12px;
  }

  .opening-card {
    border-radius: 26px;
  }
}
