:root {
  --warpsaow-tg-bottom: 96px;
  --warpsaow-tg-right: 18px;
  --warpsaow-tg-burgundy: #8a0f2d;
  --warpsaow-tg-bright: #ff4c78;
  --warpsaow-tg-deep: #37000f;
}

.warpsaow-telegram-banner {
  position: fixed;
  right: var(--warpsaow-tg-right);
  bottom: var(--warpsaow-tg-bottom);
  z-index: 999999;
  display: block;
  box-sizing: border-box;
  width: 188px;
  height: 368px;
  padding: 4px;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  background: var(--warpsaow-tg-burgundy);
  box-shadow:
    0 0 0 2px rgba(255, 226, 235, .94),
    0 0 24px rgba(138, 15, 45, .98),
    0 0 54px rgba(255, 76, 120, .78),
    0 14px 34px rgba(0, 0, 0, .52);
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s ease, box-shadow .18s ease;
  animation: warpsaowTelegramBannerBlink 1.18s ease-in-out infinite;
}

.warpsaow-telegram-banner::before {
  position: absolute;
  inset: -42%;
  z-index: 0;
  display: block;
  content: "";
  background:
    conic-gradient(
      from 0deg,
      rgba(138, 15, 45, .16),
      #ffe4eb 7%,
      #ff9bb4 15%,
      #ff4c78 26%,
      rgba(138, 15, 45, .18) 42%,
      rgba(55, 0, 15, .22) 58%,
      #b90f3e 72%,
      #37000f 84%,
      rgba(138, 15, 45, .16)
    );
  filter: blur(.2px);
  animation: warpsaowTelegramBorderRun 1.48s linear infinite;
}

.warpsaow-telegram-banner::after {
  position: absolute;
  inset: 4px;
  z-index: 3;
  display: block;
  content: "";
  border: 1px solid rgba(255, 232, 239, .98);
  border-radius: 7px;
  box-shadow:
    inset 0 0 18px rgba(138, 15, 45, .62),
    0 0 24px rgba(255, 76, 120, .88);
  pointer-events: none;
}

.warpsaow-telegram-banner:hover,
.warpsaow-telegram-banner:focus {
  color: #fff;
  text-decoration: none;
}

.warpsaow-telegram-banner:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 2px rgba(255, 240, 244, 1),
    0 0 36px rgba(138, 15, 45, 1),
    0 0 66px rgba(255, 76, 120, .94),
    0 16px 36px rgba(0, 0, 0, .56);
}

.warpsaow-telegram-banner__media,
.warpsaow-telegram-banner__shade {
  position: absolute;
  inset: 4px;
  display: block;
  overflow: hidden;
  border-radius: 7px;
}

.warpsaow-telegram-banner__media {
  z-index: 1;
}

.warpsaow-telegram-banner__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.warpsaow-telegram-banner__shade {
  z-index: 2;
  background: transparent;
}

.warpsaow-telegram-banner:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 5px;
}

@keyframes warpsaowTelegramBorderRun {
  to {
    transform: rotate(1turn);
  }
}

@keyframes warpsaowTelegramBannerBlink {
  0%, 100% {
    filter: brightness(1) saturate(1);
  }

  50% {
    filter: brightness(1.12) saturate(1.05);
  }
}

@media (max-width: 640px) {
  .warpsaow-telegram-banner {
    right: 10px;
    bottom: 82px;
    width: 136px;
    height: 266px;
    padding: 3px;
  }

  .warpsaow-telegram-banner::after,
  .warpsaow-telegram-banner__media,
  .warpsaow-telegram-banner__shade {
    inset: 3px;
    border-radius: 6px;
  }
}
