.movi-mascot {
  --movi-height: 135px;
  --movi-width: 125px;
  bottom: calc(66px + env(safe-area-inset-bottom, 0px));
  height: var(--movi-height);
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 8px;
  transform: translate3d(0, 18px, 0);
  transition: opacity 240ms ease, transform 420ms cubic-bezier(.22, 1, .36, 1);
  width: var(--movi-width);
  z-index: 19;
}

.movi-mascot.is-ready {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.movi-mascot__link {
  display: block;
  height: 100%;
  pointer-events: auto;
  position: relative;
  text-decoration: none;
  width: 100%;
}

.movi-mascot__link:focus {
  outline: none;
}

.movi-mascot__link:focus-visible .movi-mascot__stage {
  border-radius: 28px;
  box-shadow: 0 0 0 4px rgba(93, 156, 236, .42);
}

.movi-mascot__stage {
  display: block;
  height: 100%;
  position: relative;
  transform-origin: 50% 100%;
  transition: transform 180ms ease;
  width: 100%;
}

.movi-mascot__link:hover .movi-mascot__stage {
  transform: scale(1.05);
}

.movi-mascot__sprite {
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: 800% 1100%;
  display: block;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
  z-index: 2;
}

.movi-mascot__shadow {
  background: radial-gradient(
    ellipse at center,
    rgba(19, 43, 63, .22) 0%,
    rgba(19, 43, 63, .08) 48%,
    rgba(19, 43, 63, 0) 72%
  );
  border-radius: 50%;
  bottom: 2px;
  height: 18px;
  left: 20%;
  position: absolute;
  transform: scaleX(1.12);
  width: 65%;
  z-index: 1;
}

.movi-mascot__bubble {
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(117, 203, 200, .42);
  border-radius: 18px 18px 4px 18px;
  bottom: 73px;
  box-shadow: 0 16px 42px rgba(19, 43, 63, .16);
  color: #334155;
  display: flex;
  flex-direction: column;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  gap: 3px;
  line-height: 1.38;
  opacity: 0;
  padding: 13px 15px;
  pointer-events: none;
  position: absolute;
  right: 102px;
  transform: translate3d(8px, 7px, 0) scale(.96);
  transform-origin: 100% 100%;
  transition: opacity 180ms ease, transform 240ms cubic-bezier(.22, 1, .36, 1);
  visibility: hidden;
  width: 236px;
}

.movi-mascot__bubble::after {
  border-left: 10px solid rgba(255, 255, 255, .98);
  border-top: 9px solid transparent;
  bottom: 8px;
  content: "";
  position: absolute;
  right: -9px;
}

.movi-mascot__bubble strong {
  color: #17324d;
  font-size: 14px;
  font-weight: 700;
}

.movi-mascot__bubble.is-visible,
.movi-mascot__link:hover .movi-mascot__bubble,
.movi-mascot__link:focus .movi-mascot__bubble {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  visibility: visible;
}

.movi-mascot__cta {
  color: #397fd1;
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
}

@media (max-width: 767px) {
  .movi-mascot {
    --movi-height: 112px;
    --movi-width: 104px;
    bottom: calc(62px + env(safe-area-inset-bottom, 0px));
    right: 3px;
  }

  .movi-mascot__bubble {
    bottom: 62px;
    font-size: 12px;
    padding: 11px 13px;
    right: 86px;
    width: min(215px, calc(100vw - 132px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .movi-mascot,
  .movi-mascot__bubble,
  .movi-mascot__stage {
    transition: none;
  }

  .movi-mascot__link:hover .movi-mascot__stage {
    transform: none;
  }
}

@media print {
  .movi-mascot {
    display: none !important;
  }
}
