/* Custom Otome / Visual Novel Style Animations & Utilities */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Playfair+Display:ital,wght@0,600;0,800;1,600&family=Quicksand:wght@500;600;700&display=swap');

:root {
  --primary-pink: #ff758c;
  --secondary-pink: #ff7eb3;
  --accent-gold: #fbbf24;
  --soft-lavender: #c084fc;
  --dark-glass: rgba(15, 23, 42, 0.85);
  --border-gold: rgba(251, 191, 36, 0.6);
}

* {
  box-sizing: border-box;
  user-select: none;
}

body {
  font-family: 'Nunito', 'Quicksand', sans-serif;
  background-color: #0c0a09;
  overflow: hidden;
  color: #f8fafc;
}

.font-serif-title {
  font-family: 'Playfair Display', serif;
}

/* Glassmorphism Otome Dialog Box */
.otome-dialog-box {
  background: linear-gradient(180deg, rgba(26, 16, 40, 0.92) 0%, rgba(15, 23, 42, 0.97) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(244, 114, 182, 0.4);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.8),
              0 0 20px rgba(244, 114, 182, 0.2),
              inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.otome-name-plate {
  background: linear-gradient(135deg, #f43f5e 0%, #ec4899 50%, #d946ef 100%);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

/* Bouncing cursor indicator for dialogue */
@keyframes bounce-paw {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.1);
  }
}

.animate-bounce-paw {
  animation: bounce-paw 1.1s ease-in-out infinite;
}

/* Pulse Glow */
@keyframes gold-glow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
    border-color: rgba(251, 191, 36, 0.7);
  }
  50% {
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.8);
    border-color: rgba(251, 191, 36, 1);
  }
}

.gold-pulse {
  animation: gold-glow 2s infinite ease-in-out;
}

/* Choice card styling */
.choice-card {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(30, 27, 75, 0.85);
  border: 1.5px solid rgba(168, 85, 247, 0.35);
  backdrop-filter: blur(10px);
}

.choice-card:hover {
  transform: translateY(-3px) scale(1.015);
  background: linear-gradient(135deg, rgba(76, 29, 149, 0.95) 0%, rgba(131, 24, 67, 0.95) 100%);
  border-color: rgba(244, 114, 182, 0.8);
  box-shadow: 0 10px 25px -5px rgba(236, 72, 153, 0.4);
}

/* Background image crossfade and gentle motion */
.game-bg-image {
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 15s ease-out;
  transform: scale(1.02);
}

.game-bg-image.active {
  transform: scale(1.06);
}

/* CRT / Heart Monitor Line Effect */
.ecg-line {
  background: linear-gradient(90deg, #10b981 0%, #34d399 50%, #10b981 100%);
  box-shadow: 0 0 8px #34d399;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
  background: #ec4899;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f43f5e;
}

/* Stamp Animation */
@keyframes stamp-drop {
  0% {
    opacity: 0;
    transform: scale(3) rotate(-25deg);
  }
  60% {
    opacity: 1;
    transform: scale(0.9) rotate(-10deg);
  }
  100% {
    transform: scale(1) rotate(-8deg);
  }
}

.animate-stamp {
  animation: stamp-drop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Screen Shake for Errors */
@keyframes shake-screen {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  20% { transform: translate(-6px, 4px) rotate(-1deg); }
  40% { transform: translate(6px, -4px) rotate(1deg); }
  60% { transform: translate(-4px, -2px) rotate(-0.5deg); }
  80% { transform: translate(4px, 2px) rotate(0.5deg); }
}

.shake-animation {
  animation: shake-screen 0.45s ease-in-out;
}

/* Floating animation for particles & badges */
@keyframes float-gentle {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(3deg);
  }
}

.animate-float {
  animation: float-gentle 3.5s ease-in-out infinite;
}
