/* Morgan Detective Game Styling */

:root {
  --primary-gold: #facc15;
  --noir-bg: #050811;
}

body {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(234, 179, 8, 0.4);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(234, 179, 8, 0.8);
}

/* Interactive Room Item Styles */
.interactive-item {
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
}

.interactive-item:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.7));
}

.interactive-item:active {
  transform: scale(0.95);
}

.item-anomaly {
  animation: anomalyGlow 2.5s infinite ease-in-out;
}

@keyframes anomalyGlow {
  0%, 100% {
    filter: drop-shadow(0 0 4px rgba(250, 204, 21, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(250, 204, 21, 0.85));
  }
}

.item-cleaned {
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6)) !important;
}

/* Floating Clue Notification */
@keyframes floatUpFade {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  20% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  80% {
    opacity: 1;
    transform: translateY(-8px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-25px) scale(0.95);
  }
}

.toast-clue {
  animation: floatUpFade 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Synesthesia Golden Web */
.synesthesia-active {
  opacity: 1 !important;
}