.pet-emote {
  position: absolute;
  pointer-events: none;
  transform: translate(-50%, -100%);
  z-index: 10;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.32));
}

.pet-emote__glyph {
  display: inline-block;
  font-size: 28px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 14px;
  padding: 4px 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transform-origin: bottom center;
  will-change: transform, opacity;
}

.pet-emote[data-phase='enter'] .pet-emote__glyph {
  animation: pet-emote-pop-in 120ms ease-out forwards;
}

.pet-emote[data-phase='hold'] .pet-emote__glyph {
  transform: scale(1);
  opacity: 1;
}

.pet-emote[data-phase='exit'] .pet-emote__glyph {
  animation: pet-emote-pop-out 120ms ease-in forwards;
}

@keyframes pet-emote-pop-in {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }
  60% {
    transform: scale(1.18);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pet-emote-pop-out {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.85);
    opacity: 0;
  }
}
