.btn {
  height: 41px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #559bed;
  border-radius: 2rem;
  padding: 0 26px 2px 26px;
  font-weight: 600;
  font-size: 16px;
  color: #fff !important;
  transition: background 0.3s;
}

.btn:hover {
  background: #3576c2;
}

.btn-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  display: inline-block;
}

.btn-coop {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #54c1fb;
  border-radius: 10px;
  padding: 10px 25px;
  font-weight: 400;
  font-size: 20px;
  color: #fff;
  margin-top: 20px;
  height: 44px;
  width: 150px;
  text-align: center;
  transition: 0.2s linear;
}

.btn-coop-disabled {
  background: #a1a1a1 !important;
  cursor: not-allowed;
  transition: 0.2s linear;
}

.btn-wrapper_mobile {
  display: none;
}

.btn_mobile {
  display: none;
}

@media screen and (max-width: 848px) {
  .btn {
    display: none;
  }
  .btn-coop {
    font-size: 14px;
    width: 112px;
    height: 31px;
    padding: 10px 20px;
    margin-top: 10px;
  }
  .btn-wrapper {
    display: none;
  }
  .btn-wrapper_mobile {
    margin-top: 18px;
    gap: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .btn_mobile {
    display: block;
    border: 1px solid #ddd9eb;
    border-radius: 20px;
    padding: 6px 12px;
  }
}

.btn-dot {
  display: block;
  position: absolute;
  opacity: 0;
  transition: transform calc(var(--speed) / 12) ease, opacity 0.3s;
  width: var(--size);
  height: var(--size);
  transform: translate(var(--starting-x), var(--starting-y))
    rotate(var(--rotatation));
}

.btn-dot::after {
  content: "";
  animation: hoverFirefly var(--speed) infinite,
    dimFirefly calc(var(--speed) / 2) infinite calc(var(--speed) / 3);
  animation-play-state: paused;
  display: block;
  border-radius: 100%;
  background: #559bed;
  width: 100%;
  height: 100%;
  box-shadow: 0px 0px 6px 0px #3576c2,
    0px 0px 4px 0px rgba(85, 158, 237, 0.7) inset,
    0px 0px 2px 1px rgba(255, 255, 255, 0.26);
}

.btn-wrapper:hover .btn-dot {
  opacity: 1;
  transform: translate(0, 0) rotate(var(--rotatation));
}

.btn-wrapper:hover .btn-dot::after {
  animation-play-state: running;
}

.btn-dot-1 {
  --rotatation: 0deg;
  --speed: 14s;
  --size: 8px;
  --starting-x: 32px;
  --starting-y: 22px;
  top: 2px;
  left: -18px;
  opacity: 0.7;
}

.btn-dot-2 {
  --rotatation: 122deg;
  --speed: 16s;
  --size: 4px;
  --starting-x: 42px;
  --starting-y: 12px;
  top: 1px;
  left: 0px;
  opacity: 0.7;
}

.btn-dot-3 {
  --rotatation: 39deg;
  --speed: 20s;
  --size: 6px;
  --starting-x: -12px;
  --starting-y: 22px;
  top: -8px;
  right: 16px;
}

.btn-dot-4 {
  --rotatation: 220deg;
  --speed: 18s;
  --size: 3px;
  --starting-x: -32px;
  --starting-y: -7px;
  bottom: 4px;
  right: -16px;
  opacity: 0.9;
}

.btn-dot-5 {
  --rotatation: 190deg;
  --speed: 22s;
  --size: 7px;
  --starting-x: -42px;
  --starting-y: -22px;
  bottom: -8px;
  right: -5px;
}

.btn-dot-6 {
  --rotatation: 20deg;
  --speed: 15s;
  --size: 6px;
  --starting-x: 14px;
  --starting-y: -20px;
  bottom: -14px;
  left: 32px;
  opacity: 0.7;
}

.btn-dot-7 {
  --rotatation: 300deg;
  --speed: 19s;
  --size: 4px;
  --starting-x: 8px;
  --starting-y: -22px;
  bottom: -18px;
  left: 46px;
}

@keyframes dimFirefly {
  0% {
    opacity: 1;
  }
  25% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
  75% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

@keyframes hoverFirefly {
  0% {
    transform: translate(0, 0);
  }
  12% {
    transform: translate(3px, 1px);
  }
  24% {
    transform: translate(-2px, 3px);
  }
  37% {
    transform: translate(2px, -2px);
  }
  55% {
    transform: translate(-1px, 0);
  }
  74% {
    transform: translate(0, 2px);
  }
  88% {
    transform: translate(-3px, -1px);
  }
  100% {
    transform: translate(0, 0);
  }
}
