#makima-pet {
  --makima-size: 112px;
  background-image: url("/images/pets/makima/spritesheet.webp");
  background-repeat: no-repeat;
  background-size: 800% 900%;
  bottom: 28px;
  cursor: grab;
  height: var(--makima-size);
  image-rendering: auto;
  position: fixed;
  right: 28px;
  touch-action: none;
  user-select: none;
  width: var(--makima-size);
  z-index: 99997;
}

#makima-pet.is-dragging {
  cursor: grabbing;
  filter: drop-shadow(0 18px 26px rgba(20, 24, 32, .22));
  transform: scale(1.04);
}

#makima-pet.is-page-docked,
body:has(.content.games-page) #makima-pet {
  bottom: 24px !important;
  left: auto !important;
  right: 24px !important;
  top: auto !important;
}

#makima-pet.is-jumping {
  animation: makima-hop .42s cubic-bezier(.2, .9, .25, 1);
}

#makima-pet::after {
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(210, 218, 230, .9);
  border-radius: 999px;
  bottom: 6px;
  box-shadow: 0 10px 24px rgba(20, 30, 46, .13);
  color: #202938;
  content: "Makima";
  font-size: 12px;
  font-weight: 760;
  left: 50%;
  opacity: 0;
  padding: 4px 9px;
  pointer-events: none;
  position: absolute;
  transform: translate(-50%, 8px);
  transition: opacity .2s ease, transform .2s ease;
  white-space: nowrap;
}

#makima-pet:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes makima-hop {
  0%, 100% {
    translate: 0 0;
  }

  45% {
    translate: 0 -28px;
  }
}

@media (max-width: 720px) {
  #makima-pet {
    --makima-size: 88px;
    bottom: 18px;
    right: 16px;
  }

  #makima-pet.is-page-docked,
  body:has(.content.games-page) #makima-pet {
    bottom: 16px !important;
    right: 14px !important;
  }
}
