@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&family=Playfair+Display:ital,wght@1,700;1,900&display=swap");

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.stage {
  pointer-events: auto;
}

.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

.slide-up {
  animation: slideUp 0.5s ease-out forwards;
}

.scale-up {
  animation: scaleUp 0.4s ease-out forwards;
}

.animate-pulse-fast {
  animation: pulseFast 1.5s infinite;
}

.animate-bounce-in {
  animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseFast {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Heartbeat SVG animation */
.heartbeat-anim {
  animation: drawPath 2s linear infinite;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

@keyframes drawPath {
  0% {
    stroke-dashoffset: 1000;
    transform: translateX(0);
  }
  100% {
    stroke-dashoffset: 0;
    transform: translateX(-500px);
  }
}

/* Timeline animations */
.timeline-item {
  opacity: 0;
  transform: translateX(-20px);
  animation: slideRight 0.5s ease-out forwards;
}
@keyframes slideRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Glitch color */
.bg-glitch {
  background-color: rgba(69, 10, 10, 0.8) !important;
}

/* Fix mobile viewport scaling for text in game */
#game-container svg {
  pointer-events: none;
}

