.popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(4px);
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.won-popup,
.bonus-popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 40px);
  max-width: 480px;
  border: 1px solid transparent;
  border-radius: 16px;

  z-index: 9999;

  background: linear-gradient(170deg,
      #fe4fef 10%,
      #ffb0f8 41%,
      #ff6ef4 52%,
      #d030cc 69%,
      #ff80f2 100%);

  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
  box-shadow:
    0 0 4px rgba(254, 79, 239, 0.65),
    0 0 10px rgba(255, 176, 248, 0.55),
    0 0 20px rgba(255, 110, 244, 0.42),
    0 0 32px rgba(208, 48, 204, 0.28);
}

.won-popup {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  width: calc(100% - 32px);
}

.won-popup.active {
  opacity: 1;
  pointer-events: all;
}

.bonus-popup {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bonus-popup.active {
  opacity: 1;
  pointer-events: auto;
}

.won-popup__block,
.bonus-popup__block {
  position: relative;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background-color: #0d0909f2;
  border-radius: 16px;
  padding: 60px 0px;
}

.prize-title {
  font-size: 50px;
  color: #3fd62b;
}

.prize-title span {
  background: linear-gradient(90deg, #00aeef 0%, #008ccf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.won-img {
  max-width: 370px;
}

.popup-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  width: 100%;
  max-width: 250px;
  height: 61px;
  background-color: #3fd62b;
  border-radius: 32px;
  border: none;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 600;
  text-transform: uppercase;
  color: #000000;
  cursor: pointer;
}

.bonus-popup__block {
  padding: 45px 0px 60px 0px;
}

.bonus-popup .title {
  font-size: 36px;
}

.bonus-popup .prize-title {
  font-size: 48px;
  margin-top: 10px;
}