/* ============================================
   DESIGN SYSTEM — Romantic Neon Site
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Inter:wght@300;400;600&display=swap');

:root {
  --bg-black: #050508;
  --neon-blue: #00d4ff;
  --neon-blue-dim: #006b80;
  --neon-gold: #ffd700;
  --neon-gold-dim: #b8960f;
  --white: #f0f0f5;
  --white-dim: #a0a0b0;
  --font-pixel: 'Press Start 2P', monospace;
  --font-body: 'Inter', sans-serif;
  --glow-blue: 0 0 10px var(--neon-blue), 0 0 30px rgba(0, 212, 255, 0.4);
  --glow-gold: 0 0 10px var(--neon-gold), 0 0 30px rgba(255, 215, 0, 0.4);
  --glow-blue-intense: 0 0 15px var(--neon-blue), 0 0 40px rgba(0, 212, 255, 0.6), 0 0 80px rgba(0, 212, 255, 0.2);
  --glow-gold-intense: 0 0 15px var(--neon-gold), 0 0 40px rgba(255, 215, 0, 0.6), 0 0 80px rgba(255, 215, 0, 0.2);
}

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-black);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ============================================
   SCREENS — Common
   ============================================ */

.screen {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.screen.active {
  opacity: 1;
  transform: translateY(0);
}

.screen.hidden {
  display: none;
}

/* Particle canvas */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.screen>*:not(canvas) {
  position: relative;
  z-index: 1;
}

/* ============================================
   TELA 1 — Start
   ============================================ */

#screen-start {
  background: radial-gradient(ellipse at center, rgba(0, 30, 60, 0.3) 0%, var(--bg-black) 70%);
}

.start-title {
  font-family: var(--font-pixel);
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: var(--neon-blue);
  text-shadow: var(--glow-blue-intense);
  text-align: center;
  margin-bottom: 1rem;
  animation: titlePulse 3s ease-in-out infinite;
}

.start-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.5vw, 1.2rem);
  color: var(--white-dim);
  font-weight: 300;
  letter-spacing: 0.15em;
  margin-bottom: 3rem;
  text-align: center;
}

.btn-start {
  font-family: var(--font-pixel);
  font-size: clamp(0.7rem, 1.2vw, 1rem);
  color: var(--bg-black);
  background: var(--neon-gold);
  border: none;
  padding: 1rem 2.5rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: var(--glow-gold);
  transition: all 0.3s ease;
  animation: buttonPulse 2s ease-in-out infinite;
}

.btn-start:hover {
  box-shadow: var(--glow-gold-intense);
  transform: scale(1.05);
}

.btn-start:active {
  transform: scale(0.97);
}

@keyframes titlePulse {

  0%,
  100% {
    text-shadow: var(--glow-blue);
  }

  50% {
    text-shadow: var(--glow-blue-intense);
  }
}

@keyframes buttonPulse {

  0%,
  100% {
    box-shadow: var(--glow-gold);
  }

  50% {
    box-shadow: var(--glow-gold-intense);
  }
}

/* ============================================
   TELA 2 — Mensagem Interativa
   ============================================ */

#screen-message {
  background:
    repeating-linear-gradient(0deg,
      transparent,
      transparent 3px,
      rgba(0, 212, 255, 0.015) 3px,
      rgba(0, 212, 255, 0.015) 4px),
    var(--bg-black);
}

.message-title {
  font-family: var(--font-pixel);
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  color: var(--neon-gold);
  text-shadow: var(--glow-gold);
  text-align: center;
  margin-bottom: 2rem;
}

.typewriter-container {
  max-width: 700px;
  width: 90%;
  margin-bottom: 2rem;
}

.typewriter-text {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.3vw, 1.1rem);
  color: var(--white);
  line-height: 1.8;
  min-height: 3em;
}

.typewriter-text .cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--neon-blue);
  margin-left: 2px;
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom;
  box-shadow: 0 0 6px var(--neon-blue);
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.special-text-box {
  max-width: 650px;
  width: 90%;
  border: 2px solid var(--neon-blue);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  background: rgba(0, 212, 255, 0.03);
  animation: boxGlow 3s ease-in-out infinite;
}

.special-text-box::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: linear-gradient(45deg, var(--neon-blue), transparent, var(--neon-gold), transparent) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.4;
  animation: borderRotate 4s linear infinite;
}

@keyframes boxGlow {

  0%,
  100% {
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.2), inset 0 0 8px rgba(0, 212, 255, 0.05);
  }

  50% {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4), inset 0 0 15px rgba(0, 212, 255, 0.08);
  }
}

@keyframes borderRotate {
  0% {
    filter: hue-rotate(0deg);
  }

  100% {
    filter: hue-rotate(360deg);
  }
}

.special-text-content {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: var(--white);
  line-height: 2;
  text-align: center;
  opacity: 0;
}

.special-text-content.revealed {
  animation: fadeGoldReveal 2s ease forwards;
}

@keyframes fadeGoldReveal {
  0% {
    opacity: 0;
    color: var(--white);
    text-shadow: none;
  }

  50% {
    opacity: 0.7;
    color: var(--neon-gold);
    text-shadow: var(--glow-gold);
  }

  100% {
    opacity: 1;
    color: var(--white);
    text-shadow: none;
  }
}

.btn-continue {
  font-family: var(--font-pixel);
  font-size: clamp(0.55rem, 1vw, 0.8rem);
  color: var(--neon-blue);
  background: transparent;
  border: 2px solid var(--neon-blue);
  padding: 0.8rem 2rem;
  cursor: pointer;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: var(--glow-blue);
  transition: all 0.3s ease;
  animation: buttonPulseBlue 2.5s ease-in-out infinite;
}

.btn-continue:hover {
  background: rgba(0, 212, 255, 0.1);
  box-shadow: var(--glow-blue-intense);
  transform: scale(1.04);
}

@keyframes buttonPulseBlue {

  0%,
  100% {
    box-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
  }

  50% {
    box-shadow: var(--glow-blue);
  }
}


/* ============================================
   TELA 4 — Playlist Spotify
   ============================================ */

#screen-playlist {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(0, 212, 255, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 60%, rgba(255, 215, 0, 0.05) 0%, transparent 55%),
    var(--bg-black);
  padding: 3rem 1rem;
  gap: 0;
}

/* Header */
.playlist-header {
  text-align: center;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.playlist-badge {
  font-family: var(--font-pixel);
  font-size: clamp(0.45rem, 0.9vw, 0.6rem);
  color: var(--neon-gold);
  letter-spacing: 0.25em;
  text-shadow: var(--glow-gold);
  border: 1px solid var(--neon-gold-dim);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  background: rgba(255, 215, 0, 0.05);
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.2);
  }

  50% {
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.45);
  }
}

.playlist-title {
  font-family: var(--font-pixel);
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  color: var(--neon-blue);
  text-shadow: var(--glow-blue-intense);
  text-align: center;
  animation: titlePulse 3s ease-in-out infinite;
}

.playlist-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  color: var(--white-dim);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-align: center;
}

/* Card principal */
.playlist-card {
  position: relative;
  width: 90%;
  max-width: 520px;
  background: rgba(0, 10, 20, 0.7);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 20px;
  padding: 1.2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 0 20px rgba(0, 212, 255, 0.15),
    0 0 60px rgba(0, 212, 255, 0.06),
    inset 0 0 20px rgba(0, 212, 255, 0.04);
  animation: cardGlow 4s ease-in-out infinite;
  margin-bottom: 2rem;
  overflow: visible;
}

/* Borda dourada exterior pulsante */
.playlist-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  animation: outerBorderPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cardGlow {

  0%,
  100% {
    box-shadow:
      0 0 20px rgba(0, 212, 255, 0.15),
      0 0 60px rgba(0, 212, 255, 0.06),
      inset 0 0 20px rgba(0, 212, 255, 0.04);
  }

  50% {
    box-shadow:
      0 0 35px rgba(0, 212, 255, 0.3),
      0 0 80px rgba(0, 212, 255, 0.1),
      inset 0 0 30px rgba(0, 212, 255, 0.07);
  }
}

@keyframes outerBorderPulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

/* Waveform */
.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
  margin-bottom: 0.8rem;
}

.waveform-bottom {
  margin-bottom: 0;
  margin-top: 0.8rem;
}

.waveform span {
  display: inline-block;
  width: 3px;
  background: var(--neon-blue);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(0, 212, 255, 0.6);
  animation: waveBar 1.2s ease-in-out infinite;
}

.waveform-bottom span {
  background: var(--neon-gold);
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
  animation-name: waveBarGold;
}

.waveform span:nth-child(1) {
  height: 8px;
  animation-delay: 0s;
}

.waveform span:nth-child(2) {
  height: 16px;
  animation-delay: 0.1s;
}

.waveform span:nth-child(3) {
  height: 22px;
  animation-delay: 0.2s;
}

.waveform span:nth-child(4) {
  height: 14px;
  animation-delay: 0.3s;
}

.waveform span:nth-child(5) {
  height: 24px;
  animation-delay: 0.4s;
}

.waveform span:nth-child(6) {
  height: 18px;
  animation-delay: 0.5s;
}

.waveform span:nth-child(7) {
  height: 24px;
  animation-delay: 0.6s;
}

.waveform span:nth-child(8) {
  height: 12px;
  animation-delay: 0.7s;
}

.waveform span:nth-child(9) {
  height: 20px;
  animation-delay: 0.8s;
}

.waveform span:nth-child(10) {
  height: 8px;
  animation-delay: 0.9s;
}

@keyframes waveBar {

  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.7;
  }

  50% {
    transform: scaleY(1.8);
    opacity: 1;
  }
}

@keyframes waveBarGold {

  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.6;
  }

  50% {
    transform: scaleY(1.9);
    opacity: 1;
  }
}

/* Wrapper do iframe */
.spotify-wrapper {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

.spotify-wrapper iframe {
  display: block;
  border-radius: 14px;
}



/* ============================================
   TELA 5 — Final
   ============================================ */

#screen-final {
  background: radial-gradient(ellipse at center, rgba(0, 30, 60, 0.3) 0%, var(--bg-black) 70%);
}

.final-title {
  font-family: var(--font-pixel);
  font-size: clamp(1.2rem, 3.5vw, 2.5rem);
  color: var(--neon-gold);
  text-shadow: var(--glow-gold-intense);
  text-align: center;
  margin-bottom: 1.5rem;
  animation: titlePulseGold 3s ease-in-out infinite;
}

@keyframes titlePulseGold {

  0%,
  100% {
    text-shadow: var(--glow-gold);
  }

  50% {
    text-shadow: var(--glow-gold-intense);
  }
}

.final-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.3vw, 1.1rem);
  color: var(--white-dim);
  font-weight: 300;
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

.pixel-hearts {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.pixel-heart {
  font-size: 1.5rem;
  animation: heartFloat 3s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.pixel-heart:nth-child(2) {
  animation-delay: 0.5s;
}

.pixel-heart:nth-child(3) {
  animation-delay: 1s;
}

.pixel-heart:nth-child(4) {
  animation-delay: 1.5s;
}

.pixel-heart:nth-child(5) {
  animation-delay: 2s;
}

@keyframes heartFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.counter-container {
  text-align: center;
  margin-bottom: 2.5rem;
}

.counter-label {
  font-family: var(--font-pixel);
  font-size: clamp(0.5rem, 0.9vw, 0.7rem);
  color: var(--neon-blue);
  text-shadow: var(--glow-blue);
  margin-bottom: 0.8rem;
}

.counter-value {
  font-family: var(--font-pixel);
  font-size: clamp(0.7rem, 1.5vw, 1.2rem);
  color: var(--neon-gold);
  text-shadow: var(--glow-gold);
  letter-spacing: 0.05em;
}

.btn-final {
  font-family: var(--font-pixel);
  font-size: clamp(0.6rem, 1vw, 0.85rem);
  color: var(--bg-black);
  background: linear-gradient(135deg, var(--neon-gold), #ffaa00);
  border: none;
  padding: 1rem 2.5rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: var(--glow-gold);
  transition: all 0.3s ease;
  animation: buttonPulse 2s ease-in-out infinite;
  border-radius: 4px;
}

.btn-final:hover {
  box-shadow: var(--glow-gold-intense);
  transform: scale(1.06);
}

/* ============================================
   TRANSITION EFFECTS
   ============================================ */

.glitch {
  animation: glitchEffect 0.3s ease;
}

@keyframes glitchEffect {
  0% {
    transform: translate(0);
    filter: none;
  }

  20% {
    transform: translate(-3px, 2px);
    filter: hue-rotate(90deg);
  }

  40% {
    transform: translate(3px, -2px);
    filter: hue-rotate(180deg);
  }

  60% {
    transform: translate(-2px, -1px);
    filter: hue-rotate(270deg);
  }

  80% {
    transform: translate(2px, 1px);
    filter: hue-rotate(360deg);
  }

  100% {
    transform: translate(0);
    filter: none;
  }
}

/* ============================================
   PARTICLE RAIN
   ============================================ */

.particle-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

.rain-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  animation: rainFall linear forwards;
}

@keyframes rainFall {
  0% {
    transform: translateY(-10px);
    opacity: 1;
  }

  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
  .special-text-box {
    padding: 1.2rem;
  }

  .pixel-hearts {
    gap: 0.8rem;
  }
}