:root {
  --bpcs-moca-width: 126px;
  --bpcs-moca-height: 137px;
}

.bpcs-moca-mascot {
  appearance: none;
  background: transparent;
  border: 0;
  bottom: max(8px, env(safe-area-inset-bottom));
  box-shadow: none;
  cursor: pointer;
  display: block;
  height: var(--bpcs-moca-height);
  left: 0;
  margin: 0;
  opacity: 0;
  padding: 0;
  pointer-events: auto;
  position: fixed;
  touch-action: manipulation;
  transform: translate3d(0, 0, 0);
  transition: opacity 280ms ease;
  width: var(--bpcs-moca-width);
  z-index: 9998;
}

.bpcs-moca-mascot.is-ready {
  opacity: 1;
}

.bpcs-moca-mascot.is-moving {
  opacity: .68;
}

.bpcs-moca-mascot:hover,
.bpcs-moca-mascot:focus-visible,
.bpcs-moca-mascot.is-bouncing {
  opacity: 1;
}

.bpcs-moca-mascot:focus-visible {
  border-radius: 18px;
  outline: 3px solid #52b8ff;
  outline-offset: 3px;
}

.bpcs-moca-sprite {
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: 800% 1100%;
  display: block;
  filter: drop-shadow(0 9px 8px rgb(0 0 0 / 38%));
  height: 100%;
  transform: scaleX(1);
  transform-origin: center bottom;
  width: 100%;
  will-change: background-position, transform;
}

.bpcs-moca-mascot.is-facing-left .bpcs-moca-sprite {
  transform: scaleX(-1);
}

.bpcs-moca-mascot.is-bouncing .bpcs-moca-sprite {
  animation: bpcs-moca-bounce 620ms cubic-bezier(.2, .72, .3, 1);
}

@keyframes bpcs-moca-bounce {
  0%, 100% { translate: 0 0; }
  44% { translate: 0 -32px; }
}

@media (max-width: 640px) {
  :root {
    --bpcs-moca-width: 92px;
    --bpcs-moca-height: 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bpcs-moca-mascot,
  .bpcs-moca-sprite {
    animation: none !important;
    transition: none !important;
  }
}
