.bzf-toast {
  position: fixed;
  z-index: 1000002;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(480px, calc(100vw - 32px));
  padding: 20px 28px;
  color: #fff;
  text-align: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -43%) scale(.78);
  transition: opacity .25s ease, transform .38s cubic-bezier(.17, .86, .26, 1.12);
  font-family: Arial, sans-serif;
}

.bzf-toast::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 118%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(15, 16, 18, .78) 0%, rgba(15, 16, 18, .54) 38%, rgba(15, 16, 18, .16) 62%, transparent 76%);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.72);
  transition: opacity .28s ease, transform .42s ease;
}

.bzf-toast[data-show="true"] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.bzf-toast[data-show="true"]::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.bzf-toast__mark {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  background: linear-gradient(145deg, #ec1c27, #a90008);
  border-radius: 18px;
  box-shadow: 0 11px 30px rgba(218, 0, 11, .35);
}

.bzf-toast__mark::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 28px;
  background: #fff;
  border-radius: 70% 30% 62% 38% / 72% 40% 60% 28%;
  transform: rotate(8deg);
  animation: bzf-flame 1.1s ease-in-out infinite alternate;
}

.bzf-toast__mark::after {
  content: "";
  position: absolute;
  bottom: 9px;
  width: 10px;
  height: 15px;
  background: #ffb119;
  border-radius: 70% 30% 62% 38% / 72% 40% 60% 28%;
  transform: rotate(-7deg);
  animation: bzf-flame-small .85s ease-in-out infinite alternate;
}

.bzf-toast__copy {
  position: relative;
  min-width: 0;
}

.bzf-toast__copy strong,
.bzf-toast__copy span {
  display: block;
}

.bzf-toast__copy strong {
  margin-bottom: 5px;
  color: #fff;
  font-size: clamp(23px, 3vw, 31px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .42);
}

.bzf-toast__copy span {
  color: rgba(255, 255, 255, .90);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .50);
}

.bzf-toast__close {
  display: none;
}

.bzf-burst {
  position: fixed;
  z-index: 1000001;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.bzf-burst__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 34px;
  background: radial-gradient(ellipse, rgba(255, 89, 0, .66), rgba(229, 0, 11, .20) 48%, transparent 72%);
  opacity: 0;
  transform: translate(-50%, -45%) scale(.25);
  animation: bzf-glow .8s ease-out forwards;
}

.bzf-flare {
  --bzf-x: 0px;
  --bzf-y: -50px;
  --bzf-r: 0deg;
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 15px;
  height: 30px;
  margin-left: -7px;
  background: linear-gradient(to top, #d6000b 8%, #ff5a00 56%, #ffd34d 100%);
  border-radius: 75% 25% 64% 36% / 72% 38% 62% 28%;
  box-shadow: 0 0 14px rgba(255, 76, 0, .34);
  opacity: 0;
  transform: rotate(var(--bzf-r)) scale(.3);
  transform-origin: 50% 100%;
  animation: bzf-flare .92s cubic-bezier(.17, .7, .25, 1) forwards;
}

.bzf-flare:nth-child(3) {
  --bzf-x: -28px;
  --bzf-y: -40px;
  --bzf-r: -24deg;
  width: 11px;
  height: 24px;
  animation-delay: .06s;
}

.bzf-flare:nth-child(4) {
  --bzf-x: 28px;
  --bzf-y: -42px;
  --bzf-r: 25deg;
  width: 12px;
  height: 25px;
  animation-delay: .1s;
}

.bzf-smoke {
  --bzf-x: 0px;
  --bzf-y: -76px;
  position: absolute;
  bottom: 15px;
  left: 50%;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  background: rgba(87, 88, 92, .32);
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0;
  animation: bzf-smoke 1.55s .18s ease-out forwards;
}

.bzf-smoke:nth-child(6) {
  --bzf-x: -25px;
  --bzf-y: -67px;
  width: 17px;
  height: 17px;
  animation-delay: .29s;
}

.bzf-smoke:nth-child(7) {
  --bzf-x: 24px;
  --bzf-y: -72px;
  width: 19px;
  height: 19px;
  animation-delay: .38s;
}

@keyframes bzf-flame {
  from { transform: rotate(5deg) scale(.92, 1); }
  to { transform: rotate(11deg) scale(1.05, .91); }
}

@keyframes bzf-flame-small {
  from { transform: rotate(-10deg) scale(.9, 1); }
  to { transform: rotate(-3deg) scale(1.05, .88); }
}

@keyframes bzf-glow {
  0% { opacity: 0; transform: translate(-50%, -45%) scale(.25); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -45%) scale(1.55); }
}

@keyframes bzf-flare {
  0% { opacity: 0; transform: translate(0, 6px) rotate(var(--bzf-r)) scale(.25); }
  18% { opacity: .98; }
  70% { opacity: .9; }
  100% { opacity: 0; transform: translate(var(--bzf-x), var(--bzf-y)) rotate(var(--bzf-r)) scale(.08); }
}

@keyframes bzf-smoke {
  0% { opacity: 0; transform: translate(0, 0) scale(.35); }
  18% { opacity: .44; }
  100% { opacity: 0; transform: translate(var(--bzf-x), var(--bzf-y)) scale(1.55); }
}

@media (max-width: 700px) {
  .bzf-toast {
    top: 46%;
    left: 50%;
    width: calc(100vw - 26px);
    padding: 18px 20px;
  }

  .bzf-toast__mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .bzf-toast__copy strong {
    font-size: 23px;
  }

  .bzf-toast__copy span {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bzf-burst {
    display: none !important;
  }

  .bzf-toast,
  .bzf-toast__mark::before,
  .bzf-toast__mark::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}
