:root {
  --bg-dark: #050608;
  --bg-darker: #020205;
  --accent-pink: #ff82d9;
  --accent-purple: #b388ff;
  --accent-cyan: #6fffe9;
  --text-main: #ffffff;
  --text-subtle: #cccccc;
  --transition-fast: 0.3s ease-out;
  --transition-slow: 0.8s ease-in-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1a1030, #020106 55%, #000000 100%);
  color: var(--text-main);
  overflow: hidden;
}

/* Overlay (click to start) */

.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #401366 0%, #000000 60%);
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.overlay-inner {
  max-width: 420px;
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 1.8rem;
  background: rgba(5, 5, 14, 0.88);
  box-shadow: 0 0 40px rgba(255, 130, 217, 0.35);
  border: 1px solid rgba(255, 130, 217, 0.5);
  backdrop-filter: blur(18px);
}

.overlay-title {
  font-family: "Pacifico", cursive;
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  color: var(--accent-pink);
  text-shadow: 0 0 12px rgba(255, 130, 217, 0.7);
}

.overlay-text {
  font-size: 0.95rem;
  color: var(--text-subtle);
  margin-bottom: 1.6rem;
}

.highlight {
  color: var(--accent-cyan);
  font-weight: 600;
}

.btn-primary {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-cyan));
  color: #050505;
  box-shadow: 0 0 18px rgba(255, 130, 217, 0.7);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    filter var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 26px rgba(255, 130, 217, 0.9);
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 0 8px rgba(255, 130, 217, 0.5);
}

/* Flash and blackout */

.flash,
.blackout {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 15;
}

.flash {
  background: #ffffff;
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

.flash.active {
  opacity: 1;
}

.blackout {
  background: #000000;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.blackout.active {
  opacity: 1;
}

.hidden {
  display: none !important;
}

/* App + stages */

#app {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-inline: 1.5rem;
}

/* Stage 1: intro */

.stage-intro {
  text-align: center;
}

.funky-title {
  font-family: "Pacifico", cursive;
  font-size: clamp(1.8rem, 3vw, 3rem);
  color: var(--accent-pink);
  text-shadow: 0 0 14px rgba(255, 130, 217, 0.8),
    0 0 30px rgba(111, 255, 233, 0.5);
  margin-bottom: 3rem;
  animation: funky-spin 4s ease-in-out infinite;
}

@keyframes funky-spin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  20% {
    transform: rotate(-10deg) scale(1.05) translateY(-4px);
  }
  35% {
    transform: rotate(10deg) scale(1.08) translateY(4px);
  }
  50% {
    transform: rotate(0deg) scale(1.02) translateY(0);
  }
  70% {
    transform: rotate(6deg) scale(1.06);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}

.images-row {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.images-row.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.intro-image {
  width: min(40vw, 260px);
  max-height: 60vh;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: 0 0 28px rgba(179, 136, 255, 0.6);
  border: 2px solid rgba(111, 255, 233, 0.8);
  transform-origin: center;
  transition: transform 0.7s ease-in-out, box-shadow 0.7s ease-in-out;
}

/* merge animation: images fly together and spin */

.images-row.merging #intro-image-left {
  animation: image-merge-left 2.8s ease-in-out forwards;
}

.images-row.merging #intro-image-right {
  animation: image-merge-right 2.8s ease-in-out forwards;
}

@keyframes image-merge-left {
  0% {
    transform: translateX(0) rotate(-4deg) scale(1);
  }
  50% {
    transform: translateX(30%) rotate(10deg) scale(1.1);
  }
  100% {
    transform: translateX(10%) translateY(-10px) rotate(360deg) scale(0.9);
  }
}

@keyframes image-merge-right {
  0% {
    transform: translateX(0) rotate(4deg) scale(1);
  }
  50% {
    transform: translateX(-30%) rotate(-10deg) scale(1.1);
  }
  100% {
    transform: translateX(-10%) translateY(10px) rotate(-360deg) scale(0.9);
  }
}

/* Stage 2: burping videos */

.stage-burp {
  background: radial-gradient(circle at bottom, #362c52 0%, #050308 60%);
}

.stage-label {
  position: absolute;
  top: 1.3rem;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.3rem;
  width: min(90vw, 1100px);
  padding-inline: 0.6rem;
}

.video-grid video {
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
  border-radius: 1.2rem;
  box-shadow: 0 0 20px rgba(111, 255, 233, 0.4);
  border: 1px solid rgba(111, 255, 233, 0.3);
  background: #000000;
}

/* Stage 3: ROMY dancing */

.stage-romy {
  background: radial-gradient(circle at top, #050713 0%, #000000 70%);
  flex-direction: column;
  gap: 2rem;
}

.romy-title {
  font-family: "Pacifico", cursive;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: #ffffff;
  text-shadow: 0 0 25px rgba(111, 255, 233, 0.8),
    0 0 40px rgba(255, 130, 217, 0.7);
  animation: romy-pulse 3.5s ease-in-out infinite;
}

@keyframes romy-pulse {
  0% {
    transform: scale(1);
    letter-spacing: 0.02em;
  }
  35% {
    transform: scale(1.05);
    letter-spacing: 0.09em;
  }
  70% {
    transform: scale(0.98);
    letter-spacing: 0.05em;
  }
  100% {
    transform: scale(1);
    letter-spacing: 0.02em;
  }
}

/* Responsive tweaks */

@media (max-width: 720px) {
  .images-row {
    gap: 1.2rem;
  }
  .intro-image {
    width: 42vw;
  }

  .overlay-inner {
    padding-inline: 1.5rem;
  }
}