.eth-friend-live-alert {
  --eth-alert-duration: 24000ms;
  position: fixed;
  right: clamp(12px, 2vw, 30px);
  bottom: clamp(12px, 2vw, 30px);
  z-index: 1000000;
  display: grid;
  grid-template-columns: clamp(112px, 28vw, 150px) minmax(0, 1fr);
  width: min(440px, calc(100vw - 24px));
  min-height: 196px;
  overflow: hidden;
  color: #f7f4e8;
  background:
    linear-gradient(135deg, rgba(39, 50, 34, .96), rgba(11, 14, 12, .98) 58%),
    #0b0e0c;
  border: 1px solid rgba(218, 177, 75, .8);
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .58), inset 0 1px rgba(255, 255, 255, .08);
  isolation: isolate;
  opacity: 0;
  transform: translate3d(calc(100% + 40px), 0, 0);
  transition: transform .24s ease-out, opacity .2s ease-out;
}

.eth-friend-live-alert::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 16% 82%, rgba(74, 184, 93, .28), transparent 38%),
    repeating-linear-gradient(125deg, transparent 0 18px, rgba(218, 177, 75, .035) 19px 20px);
  pointer-events: none;
}

.eth-friend-live-alert.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.eth-friend-live-alert__image {
  align-self: end;
  width: 100%;
  height: 190px;
  margin: 6px 0 0 -2px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(12px 6px 16px rgba(0, 0, 0, .48));
  pointer-events: none;
  user-select: none;
}

.eth-friend-live-alert__content {
  display: flex;
  min-width: 0;
  padding: 25px 40px 22px 10px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.eth-friend-live-alert__eyebrow {
  margin: 0 0 7px;
  color: #dcb550;
  font: 800 11px/1.2 system-ui, sans-serif;
  letter-spacing: .16em;
}

.eth-friend-live-alert__title {
  display: block;
  max-width: 100%;
  margin: 0;
  color: #fff;
  font: 800 clamp(20px, 2.4vw, 27px)/1.04 system-ui, sans-serif;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.eth-friend-live-alert__stream {
  display: -webkit-box;
  max-width: 100%;
  margin: 9px 0 14px;
  overflow: hidden;
  color: rgba(247, 244, 232, .78);
  font: 500 13px/1.35 system-ui, sans-serif;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.eth-friend-live-alert__sound-hint {
  display: none;
  margin: -6px 0 11px;
  color: #f2d98f;
  font: 600 11px/1.3 system-ui, sans-serif;
}

.eth-friend-live-alert.is-sound-blocked .eth-friend-live-alert__sound-hint {
  display: block;
}

.eth-friend-live-alert__action {
  display: inline-flex;
  min-height: 38px;
  padding: 0 17px;
  border: 1px solid #e1bb57;
  border-radius: 999px;
  color: #11130f !important;
  background: linear-gradient(135deg, #f0d477, #c8952e);
  box-shadow: 0 8px 24px rgba(211, 165, 55, .2);
  font: 800 13px/1 system-ui, sans-serif;
  text-decoration: none !important;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, filter .15s ease;
}

.eth-friend-live-alert__action:hover,
.eth-friend-live-alert__action:focus-visible {
  color: #080a08 !important;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.eth-friend-live-alert__action:focus-visible,
.eth-friend-live-alert__close:focus-visible {
  outline: 3px solid #72dc78;
  outline-offset: 2px;
}

.eth-friend-live-alert__close {
  position: absolute;
  top: 8px;
  right: 9px;
  display: grid;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .07);
  font: 400 24px/1 system-ui, sans-serif;
  cursor: pointer;
  place-items: center;
}

.eth-friend-live-alert__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, .14);
}

.eth-friend-live-alert__progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #4dcc68, #e3bb55);
  transform: scaleX(0);
  transform-origin: left center;
}

.eth-friend-live-alert.is-playing .eth-friend-live-alert__progress {
  animation: eth-friend-alert-progress var(--eth-alert-duration) linear forwards;
}

@keyframes eth-friend-alert-progress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@media (max-width: 520px) {
  .eth-friend-live-alert {
    right: 12px;
    bottom: 12px;
    grid-template-columns: 105px minmax(0, 1fr);
    min-height: 170px;
    border-radius: 15px;
  }

  .eth-friend-live-alert__image {
    height: 164px;
  }

  .eth-friend-live-alert__content {
    padding: 21px 34px 18px 4px;
  }

  .eth-friend-live-alert__title {
    font-size: 19px;
  }

  .eth-friend-live-alert__stream {
    margin-bottom: 11px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eth-friend-live-alert {
    transition: opacity .15s linear;
    transform: none;
  }

  .eth-friend-live-alert__action {
    transition: none;
  }
}
