/* LUNA LIVE — STUDIO POLISH V1 */

/* Darken the background image without darkening the dancers */
.arena::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(3, 6, 15, .68) 0%,
      rgba(3, 6, 15, .38) 18%,
      rgba(3, 6, 15, .12) 42%,
      rgba(3, 6, 15, .18) 100%
    );
}

/* Keep existing background layers below the dancers */
.scene-pulse {
  z-index: 0;
}

.dancers {
  z-index: 2;
}

/* Subtle contact-shadow approximation */
.dancers::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 8%;
  height: 5%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at 25% 50%,
      rgba(0, 0, 0, .55),
      transparent 24%
    ),
    radial-gradient(
      ellipse at 75% 50%,
      rgba(0, 0, 0, .55),
      transparent 24%
    );
  filter: blur(7px);
}

/* Premium nameplates */
.names {
  z-index: 5;
  bottom: 4%;
  align-items: center;
}

.names span {
  min-width: 110px;
  padding: 9px 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(6, 10, 22, .65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .24);
  letter-spacing: 2px;
  font-size: 17px;
}

/* Ensure HUD remains readable */
.battle-hud {
  z-index: 10;
}

@media (max-width: 380px) {
  .names span {
    min-width: 90px;
    padding: 8px 12px;
    font-size: 15px;
  }
}

/* Atmospheric Dust V1 — behind dancers */

#studio-dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.dancers {
  z-index: 2;
}

/* STUDIO FLOOR V1 — CONTACT SHADOWS */

/* Disable previous shared shadow */
.dancers::after {
  display: none;
}

/* Two independent floor contact shadows */
.dancers::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10%;
  pointer-events: none;
  z-index: -1;

  background:
    radial-gradient(
      ellipse 15% 24% at 25% 70%,
      rgba(0, 0, 0, .85) 0%,
      rgba(0, 0, 0, .45) 45%,
      transparent 100%
    ),
    radial-gradient(
      ellipse 15% 24% at 75% 70%,
      rgba(0, 0, 0, .85) 0%,
      rgba(0, 0, 0, .45) 45%,
      transparent 100%
    );

  filter: blur(8px);
}

/* STUDIO FLOOR V1.2 — VIDEO REFLECTIONS */

#floor-reflections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.75;
}


/* DYNAMIC STUDIO LIGHTING V1.2 — SOFT BEAMS */

.studio-lighting {
  position: absolute;
  inset: 12% 0 24%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.studio-lighting::before,
.studio-lighting::after {
  content: "";
  position: absolute;
  top: -8%;
  width: 42%;
  height: 105%;
  opacity: 0.42;
  border-radius: 50%;
  filter: blur(24px);
  transform-origin: 50% 0%;
  will-change: transform;
  mask-image: radial-gradient(
    ellipse 48% 62% at 50% 42%,
    black 8%,
    rgba(0, 0, 0, 0.55) 48%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 48% 62% at 50% 42%,
    black 8%,
    rgba(0, 0, 0, 0.55) 48%,
    transparent 100%
  );
}

.studio-lighting::before {
  left: 8%;
  background: radial-gradient(
    ellipse at 50% 25%,
    rgba(255, 115, 180, 0.40),
    rgba(255, 55, 135, 0.16) 48%,
    transparent 80%
  );
  animation: luna-light-sweep 16s ease-in-out infinite alternate;
}

.studio-lighting::after {
  right: 8%;
  background: radial-gradient(
    ellipse at 50% 25%,
    rgba(115, 195, 255, 0.40),
    rgba(35, 130, 255, 0.16) 48%,
    transparent 80%
  );
  animation: mika-light-sweep 19s ease-in-out infinite alternate;
}

@keyframes luna-light-sweep {
  from { transform: rotate(-7deg); }
  to   { transform: rotate(7deg); }
}

@keyframes mika-light-sweep {
  from { transform: rotate(7deg); }
  to   { transform: rotate(-7deg); }
}

@media (prefers-reduced-motion: reduce) {
  .studio-lighting::before,
  .studio-lighting::after {
    animation: none;
    will-change: auto;
  }
}
