:root {
  --deep-purple: #0D0015;
  --dark-purple: #1A0A2E;
  --plum: #2D1B4E;
  --gold: #FFD700;
  --blue: #4DA6FF;
  --cream: #FDF6E3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'IBM Plex Sans', sans-serif;
  background: var(--deep-purple);
  color: white;
}

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

.font-crimson {
  font-family: 'Crimson Pro', serif;
}

.bg-deep-purple { background-color: var(--deep-purple); }
.bg-dark-purple { background-color: var(--dark-purple); }
.bg-plum { background-color: var(--plum); }
.from-deep-purple { --tw-gradient-from: var(--deep-purple); }
.to-dark-purple { --tw-gradient-to: var(--dark-purple); }
.text-cream { color: var(--cream); }

.spotlight {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.curtain-left,
.curtain-right {
  position: fixed;
  top: 0;
  width: 60px;
  height: 100%;
  background: linear-gradient(90deg, #1a0520 0%, transparent 100%);
  pointer-events: none;
  z-index: 5;
}

.curtain-left { left: 0; }
.curtain-right { 
  right: 0; 
  background: linear-gradient(-90deg, #1a0520 0%, transparent 100%);
}

.scenario-card {
  position: relative;
  overflow: hidden;
}

.scenario-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), transparent, rgba(255, 215, 0, 0.3)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  border-radius: 12px;
  pointer-events: none;
}

.record-btn {
  box-shadow: 0 0 30px rgba(220, 38, 38, 0.5);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 30px rgba(220, 38, 38, 0.5); }
  50% { box-shadow: 0 0 50px rgba(220, 38, 38, 0.8); }
}

.recording-indicator {
  animation: recording-pulse 1s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(220, 38, 38, 0.7);
}

@keyframes recording-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.submit-btn {
  background-size: 200% 200%;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes fall {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

.animate-fall {
  animation: fall 3s linear forwards;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--dark-purple);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: var(--plum);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3d2b6e;
}

@media (max-width: 768px) {
  .spotlight {
    width: 300px;
    height: 200px;
  }
  
  .curtain-left,
  .curtain-right {
    width: 20px;
  }
}

input::placeholder {
  color: #6b7280;
}

input:focus {
  outline: none;
  border-color: var(--gold);
}

button:active {
  transform: scale(0.98);
}

.vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(13, 0, 21, 0.8) 100%);
  pointer-events: none;
  z-index: 1;
}