.fab {
  position: fixed;
  top: auto !important;
  left: 60px;
  bottom: 24px;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  z-index: 9999;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
  animation: bob 4s ease-in-out infinite;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.28);
  -webkit-tap-highlight-color: transparent;
}

.fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(7, 199, 191, 0.10), rgba(11, 97, 96, 0.05));
  pointer-events: none;
}

.fab.left {
  left: 24px;
  right: auto;
}

.fab.left .fab-tooltip {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

.fab.left .fab-tooltip::after {
  right: auto;
  left: 18px;
}

.fab.right {
  right: 24px;
  left: auto;
}

.fab.right .fab-tooltip {
  right: 50%;
  left: auto;
  transform: translateX(50%);
}

.fab.right .fab-tooltip::after {
  right: 18px;
  left: auto;
}

.fab-avatar {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: contain;
  transition: transform 180ms ease;
  transform: scaleX(-1);
  /* flip horizontally so the character looks to the right */
  will-change: transform;
}

.fab:hover,
.fab:focus {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.42);
  animation-play-state: paused;
}

.fab-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  background: #0b6160;
  color: #fff;
  padding: 8px 12px;
  border-radius: 18px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  animation: tooltipPulse 6s linear infinite;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.fab-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #0b6160;
}

.fab:hover .fab-tooltip,
.fab:focus .fab-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
  animation-play-state: paused;
}

@keyframes tooltipPulse {
  /* 0-66.666% = visible (first 4s), 66.667-100% = hidden (next 2s) */
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(-6px);
  }

  66.666% {
    opacity: 1;
    transform: translateX(-50%) translateY(-6px);
  }

  66.667% {
    opacity: 0;
    transform: translateX(-50%) translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes bob {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0);
  }
}


@media (max-width: 480px) {
  .fab {
    left: 60px;
    bottom: 16px;
    width: 64px;
    height: 64px;
  }

  .fab-tooltip {
    font-size: 13px;
    bottom: calc(100% + 8px);
    padding: 6px 10px;
  }
}

@media (min-resolution: 2dppx) {
  .fab {
    box-shadow: 0 12px 34px rgba(2, 6, 23, 0.32);
  }
}