/* Copyright (c) 2026 Murr (https://github.com/vtstv) */

/* --------------------------------------------------------------------------
   OmniBoard Animations & Keyframes
   -------------------------------------------------------------------------- */

@keyframes floatReaction {
  0% {
    transform: translate(0, 0) scale(0.5);
    opacity: 0;
  }
  15% {
    transform: translate(calc(var(--rand-x) * 0.2), -30px) scale(1.3);
    opacity: 1;
  }
  65% {
    transform: translate(calc(var(--rand-x) * 0.7), -130px) scale(1.1);
    opacity: 0.9;
  }
  100% {
    transform: translate(var(--rand-x), -220px) scale(0.9);
    opacity: 0;
  }
}

.floating-emoji {
  animation: floatReaction 2.2s cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
}

@keyframes pulseGlow {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.pulse-indicator.online {
  animation: pulseGlow 2s infinite;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in {
  animation: fadeInScale 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
