.xshaps-genius {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 99999;
  width: clamp(3.8rem, 6vw, 4.9rem);
  transform: translate3d(var(--genius-x, 0px), var(--genius-y, 0px), 0) scaleX(var(--genius-face, 1));
  transform-origin: 50% 100%;
  transition: transform 1200ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.xshaps-genius svg {
  width: 100%;
  filter: drop-shadow(0 16px 20px rgba(5, 36, 71, 0.24));
}

.xshaps-genius-bubble {
  position: absolute;
  right: 68%;
  bottom: 78%;
  width: max-content;
  max-width: 11rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(5, 36, 71, 0.14);
  background: #fff;
  color: #052447;
  box-shadow: 0 12px 32px rgba(5, 36, 71, 0.14);
  font: 850 0.82rem/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 0;
  transform: translateY(6px) scaleX(var(--genius-face, 1));
  transition: opacity 300ms ease, transform 300ms ease;
}

.xshaps-genius.is-chatty .xshaps-genius-bubble {
  opacity: 1;
  transform: translateY(0) scaleX(var(--genius-face, 1));
}

.xshaps-genius-body {
  animation: xshaps-genius-bob 1.8s ease-in-out infinite;
  transform-origin: 60px 110px;
}

.xshaps-genius-head {
  animation: xshaps-genius-think 2.6s ease-in-out infinite;
  transform-origin: 60px 60px;
}

.xshaps-genius-shadow ellipse {
  fill: rgba(5, 36, 71, 0.18);
}

.xg-face,
.xg-hand {
  fill: #e6b58f;
  stroke: #052447;
  stroke-width: 2.4;
}

.xg-shirt-body {
  fill: #f8faf8;
  stroke: #d2d8d8;
  stroke-width: 1.4;
}

.xg-collar {
  fill: #fff;
  stroke: #c7d0d0;
  stroke-width: 1.2;
}

.xg-tie {
  fill: #052447;
}

.xg-zip,
.xg-nose,
.xg-bridge,
.xg-smile {
  fill: none;
  stroke: #052447;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.xg-arm {
  fill: #edf2f1;
  stroke: #d2d8d8;
  stroke-width: 1.2;
}

.xg-hair-main,
.xg-hair-sweep {
  fill: #2e302e;
  stroke: #052447;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.xg-hair-gray {
  fill: #9b9a92;
  opacity: 0.9;
}

.xg-lens {
  fill: rgba(255, 255, 255, 0.26);
  stroke: #111820;
  stroke-width: 4;
}

.xg-eye {
  fill: #052447;
}

.xg-stubble {
  fill: rgba(67, 58, 54, 0.22);
}

@keyframes xshaps-genius-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes xshaps-genius-think {
  0%,
  100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(3deg);
  }
}

@media (max-width: 620px) {
  .xshaps-genius {
    width: 3.4rem;
  }

  .xshaps-genius-bubble {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xshaps-genius,
  .xshaps-genius-body,
  .xshaps-genius-head {
    animation: none;
    transition: none;
  }
}
