/* LiveMe-style fullscreen gift FX (SVGA / Lottie / image) */

.liveme-native-stage,
.live_vide__holder,
.klr-stage {
  position: relative;
}

.gift-layer,
.klr-gift-fx-layer,
.liveme-gift-fx-layer {
  position: absolute;
  inset: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

.gift-layer__main {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gift-layer .giftTrail {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.klr-gift-fx-burst {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: klr-gift-in 0.35s ease-out;
}

.klr-gift-fx-img img,
.klr-gift-fx-lottie,
.klr-gift-fx-svga {
  max-width: min(82vw, 420px);
  max-height: min(58vh, 460px);
  width: auto;
  height: auto;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.55));
}

.klr-gift-fx-svga {
  display: block;
}

.klr-gift-fx-video__el {
  max-width: min(92vw, 480px);
  max-height: min(62vh, 520px);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.55));
}

.klr-gift-fx-img {
  animation: klr-gift-float 2.4s ease-in-out;
}

.klr-gift-toast-stack,
.liveme-gift-toast-stack {
  position: absolute;
  left: 12px;
  right: 64px;
  bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  z-index: 38;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.klr-gift-toast {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(157, 29, 255, 0.92), rgba(255, 82, 109, 0.9));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateX(-18px) scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.klr-gift-toast.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.klr-gift-toast.is-pop {
  animation: klr-gift-pop 0.35s ease;
}

.klr-gift-toast__from {
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.klr-gift-toast__label {
  opacity: 0.95;
  font-weight: 600;
}

.klr-gift-toast__x {
  min-width: 1.4em;
  font-size: 14px;
  font-weight: 800;
}

body.liveme-native-body .live_animation_wrapper {
  display: none !important;
}

@keyframes klr-gift-in {
  from {
    opacity: 0;
    transform: scale(0.82);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes klr-gift-float {
  0% {
    transform: translateY(18px) scale(0.92);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  70% {
    transform: translateY(-6px) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-12px) scale(1.02);
    opacity: 0;
  }
}

@keyframes klr-gift-pop {
  0% {
    transform: translateX(-10px) scale(0.9);
  }
  60% {
    transform: translateX(0) scale(1.06);
  }
  100% {
    transform: translateX(0) scale(1);
  }
}
