@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --velvet-bg: #08040d;
  --velvet-card: rgba(22, 12, 34, 0.78);
  --velvet-border: rgba(244, 63, 94, 0.22);
  --aura-primary: rgba(225, 29, 72, 0.24);
  --aura-secondary: rgba(168, 85, 247, 0.18);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Hind Siliguri', 'Plus Jakarta Sans', sans-serif;
  background-color: var(--velvet-bg);
  color: #f8fafc;
  overflow-x: hidden;
  transition: background 0.6s ease;
}

/* Dynamic Mood Lighting Auras */
body[data-mood="shy"] {
  --aura-primary: rgba(139, 92, 246, 0.25);
  --aura-secondary: rgba(236, 72, 153, 0.16);
}
body[data-mood="seductive"] {
  --aura-primary: rgba(244, 63, 94, 0.28);
  --aura-secondary: rgba(217, 70, 239, 0.20);
}
body[data-mood="possessive"] {
  --aura-primary: rgba(190, 18, 60, 0.35);
  --aura-secondary: rgba(88, 28, 135, 0.28);
}
body[data-mood="dominant"] {
  --aura-primary: rgba(217, 119, 6, 0.25);
  --aura-secondary: rgba(225, 29, 72, 0.28);
}
body[data-redroom="true"] {
  --aura-primary: rgba(220, 38, 38, 0.42);
  --aura-secondary: rgba(127, 29, 29, 0.35);
  animation: crimsonHeartbeat 3.4s ease-in-out infinite;
}

@keyframes crimsonHeartbeat {
  0%, 100% { box-shadow: inset 0 0 65px rgba(220, 38, 38, 0.14); }
  50% { box-shadow: inset 0 0 120px rgba(225, 29, 72, 0.32); }
}

.ambient-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 85% 12%, var(--aura-primary), transparent 48%),
    radial-gradient(circle at 12% 85%, var(--aura-secondary), transparent 52%);
  transition: background 0.7s ease;
}

.glass-panel {
  background: var(--velvet-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--velvet-border);
}

.glass-soft {
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

/* Living Breathing 2.5D Micro-Video Portrait Illusion */
@keyframes breathePortrait {
  0%, 100% { transform: scale(1) translateY(0px); }
  50% { transform: scale(1.06) translateY(-2px); }
}
.living-avatar {
  animation: breathePortrait 5.5s ease-in-out infinite;
  object-fit: cover;
}

/* Instagram Close Friends Crimson/Emerald Story Ring */
.story-ring {
  padding: 2.5px;
  background: linear-gradient(135deg, #fb7185, #e11d48, #d946ef, #f59e0b);
  border-radius: 9999px;
  transition: transform 0.2s ease;
}
.story-ring:hover {
  transform: scale(1.06);
}
.story-ring-close {
  padding: 2.5px;
  background: linear-gradient(135deg, #10b981, #34d399, #fb7185);
  border-radius: 9999px;
}

/* Hold-to-Peek Secret Whisper Bubble */
.secret-whisper-box {
  position: relative;
  overflow: hidden;
  user-select: none;
  transition: all 0.25s ease;
}
.secret-blur-text {
  filter: blur(8px);
  opacity: 0.35;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.secret-whisper-box.peeking .secret-blur-text {
  filter: blur(0px);
  opacity: 1;
}
.secret-whisper-box.peeking .secret-overlay-hint {
  opacity: 0;
  pointer-events: none;
}

/* Audio Waveform Bars */
@keyframes waveBounce {
  0%, 100% { height: 5px; }
  50% { height: 22px; }
}
.wave-bar {
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(to top, #fb7185, #f43f5e);
  height: 6px;
  transition: height 0.2s ease;
}
.playing .wave-bar {
  animation: waveBounce 0.85s ease-in-out infinite;
}
.playing .wave-bar:nth-child(2) { animation-delay: 0.15s; }
.playing .wave-bar:nth-child(3) { animation-delay: 0.3s; }
.playing .wave-bar:nth-child(4) { animation-delay: 0.1s; }
.playing .wave-bar:nth-child(5) { animation-delay: 0.25s; }
.playing .wave-bar:nth-child(6) { animation-delay: 0.4s; }
.playing .wave-bar:nth-child(7) { animation-delay: 0.2s; }

/* Call Ringing Pulse */
@keyframes callPulse {
  0% { transform: scale(0.95); opacity: 0.75; }
  80%, 100% { transform: scale(1.45); opacity: 0; }
}
.call-pulse-ring {
  animation: callPulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Spin the Bottle Roulette */
.roulette-wheel {
  transition: transform 3.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Floating Gift Particles */
@keyframes floatUpFade {
  0% { transform: translateY(0) scale(0.8) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-240px) scale(1.5) rotate(18deg); opacity: 0; }
}
.gift-particle {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  font-size: 2rem;
  animation: floatUpFade 2.1s ease-out forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(244, 63, 94, 0.28);
  border-radius: 999px;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
