:root {
  --neon-pink: #ff0099;
  --neon-blue: #00f3ff;
  --neon-purple: #9d00ff;
  --dark-bg: #0a0a12;
  --glass-bg: rgba(255, 255, 255, 0.1);
}

body {
  background-color: var(--dark-bg);
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
  color: white;
  margin: 0;
  padding: 0;
  background-image:
    linear-gradient(rgba(10, 10, 18, 0.9), rgba(10, 10, 18, 0.9)),
    linear-gradient(
      0deg,
      transparent 24%,
      rgba(255, 0, 153, 0.1) 25%,
      rgba(255, 0, 153, 0.1) 26%,
      transparent 27%,
      transparent 74%,
      rgba(255, 0, 153, 0.1) 75%,
      rgba(255, 0, 153, 0.1) 76%,
      transparent 77%,
      transparent
    ),
    linear-gradient(
      90deg,
      transparent 24%,
      rgba(0, 243, 255, 0.1) 25%,
      rgba(0, 243, 255, 0.1) 26%,
      transparent 27%,
      transparent 74%,
      rgba(0, 243, 255, 0.1) 75%,
      rgba(0, 243, 255, 0.1) 76%,
      transparent 77%,
      transparent
    );
  background-size:
    100% 100%,
    50px 50px,
    50px 50px;
}

/* --- ANIMACIÓN GHOST DOT (OPTIMIZADA) --- */
@keyframes universal-swipe-anim {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }
  10% {
    opacity: 1;
  }
  30% {
    transform: translate3d(-40px, 0, 0);
  }
  50% {
    transform: translate3d(0, 0, 0);
  }
  70% {
    transform: translate3d(0, -40px, 0);
  }
  90% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }
}

.run-swipe-anim {
  will-change: transform, opacity;
  animation: universal-swipe-anim 3s ease-in-out forwards;
}

.ghost-ring {
  width: 60px;
  height: 60px;
  border: 2px solid var(--neon-blue);
  border-radius: 50%;
  position: relative;
  box-shadow:
    0 0 0 2px #000000,
    0 0 20px var(--neon-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  will-change: transform;
}

.ghost-dot {
  width: 14px;
  height: 14px;
  background-color: var(--neon-blue);
  border-radius: 50%;
  border: 2px solid #000000;
  box-shadow: 0 0 15px var(--neon-blue);
  transform: translateZ(0);
}

/* --- ESTILOS LIGHTBOX OPTIMIZADOS --- */
.rotate-mobile {
  transform: rotate(90deg);
  width: 100vh !important;
  height: 100vw !important;
  max-width: 100vh !important;
  max-height: 100vw !important;
  object-fit: contain;
  backface-visibility: hidden;
}

.pointer-events-auto {
  pointer-events: auto;
}

#lightbox-modal {
  transition:
    opacity 0.3s ease-in-out,
    visibility 0.3s;
  will-change: opacity;
}

#lightbox-img {
  will-change: opacity, transform;
  transition: opacity 0.3s ease-out;
}

/* --- INTRO SCREEN --- */
#intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.8s ease-in-out,
    visibility 0.8s;
  overflow: hidden;
}

.stage-lights {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 0%,
    var(--neon-purple),
    transparent 50%
  );
  opacity: 0.4;
  animation: pulseLight 2s infinite alternate;
  will-change: opacity;
}

.mission-box {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #111, #222);
  border: 4px solid var(--neon-pink);
  box-shadow:
    0 0 30px var(--neon-pink),
    inset 0 0 20px var(--neon-pink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s;
  clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
  will-change: transform;
}

.mission-box:hover {
  transform: scale(1.05);
}

.mission-box::before {
  content: "TOP SECRET";
  position: absolute;
  top: 10px;
  left: 10px;
  color: rgba(255, 255, 255, 0.3);
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
}

.lock-icon {
  font-size: 60px;
  color: var(--neon-blue);
  text-shadow: 0 0 15px var(--neon-blue);
  transition: all 0.5s;
}

.tap-text {
  margin-top: 20px;
  font-family: "Orbitron", sans-serif;
  color: white;
  animation: blink 1s infinite;
}

.box-opening {
  animation: openBoxAnim 1s forwards;
}

@keyframes openBoxAnim {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.2) rotate(5deg);
    opacity: 1;
    border-color: white;
    background: white;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

@keyframes pulseLight {
  from {
    opacity: 0.2;
  }
  to {
    opacity: 0.6;
  }
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.main-content-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.5s ease-in;
}
.reveal-content {
  opacity: 1;
  pointer-events: auto;
}

/* --- FONDO ANIMADO OPTIMIZADO --- */
.floating-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.music-note {
  position: absolute;
  color: rgba(255, 255, 255, 0.1);
  font-size: 24px;
  animation: floatUp 6s linear infinite;
  text-shadow: 0 0 5px var(--neon-pink);
  will-change: transform;
  transform: translateZ(0);
}

@keyframes floatUp {
  0% {
    transform: translate3d(0, 100vh, 0) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  80% {
    opacity: 0.8;
  }
  100% {
    transform: translate3d(0, -10vh, 0) rotate(360deg);
    opacity: 0;
  }
}

h1,
h2,
h3 {
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
}

.neon-text-pink {
  color: #fff;
  text-shadow:
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 20px var(--neon-pink),
    0 0 30px var(--neon-pink);
}
.neon-text-blue {
  color: #fff;
  text-shadow:
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 20px var(--neon-blue),
    0 0 30px var(--neon-blue);
}

.glass-card {
  background: rgba(20, 20, 30, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
  border-radius: 15px;
}

.btn-kpop {
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple));
  color: white;
  border: none;
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.btn-kpop:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px var(--neon-pink);
}

.photo-frame {
  border: 4px solid var(--neon-blue);
  border-radius: 10px;
  box-shadow: 0 0 20px var(--neon-blue);
  position: relative;
  overflow: hidden;
  background: #000;
}

.music-disk {
  animation: spinDisk 3s linear infinite;
  box-shadow: 0 0 20px var(--neon-purple);
  border-color: var(--neon-blue);
  will-change: transform;
}

@keyframes spinDisk {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.digit-box {
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid var(--neon-pink);
  color: var(--neon-blue);
  font-family: "Orbitron", sans-serif;
  text-shadow: 0 0 10px var(--neon-blue);
}

.badge {
  background: var(--neon-purple);
  color: white;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 5px;
  font-weight: bold;
  letter-spacing: 1px;
}

.glitch {
  position: relative;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}
.glitch::before {
  color: var(--neon-blue);
  z-index: -1;
  animation: glitch-anim-1 2s infinite linear alternate-reverse;
}
.glitch::after {
  color: var(--neon-pink);
  z-index: -2;
  animation: glitch-anim-2 3s infinite linear alternate-reverse;
}
@keyframes glitch-anim-1 {
  0% {
    clip-path: inset(20% 0 80% 0);
    transform: translate(-2px, 0);
  }
  20% {
    clip-path: inset(60% 0 10% 0);
    transform: translate(2px, 0);
  }
  100% {
    clip-path: inset(10% 0 50% 0);
    transform: translate(1px, 0);
  }
}
@keyframes glitch-anim-2 {
  0% {
    clip-path: inset(10% 0 60% 0);
    transform: translate(2px, 0);
  }
  20% {
    clip-path: inset(80% 0 5% 0);
    transform: translate(-2px, 0);
  }
  100% {
    clip-path: inset(30% 0 20% 0);
    transform: translate(-1px, 0);
  }
}
