.db-bounty-bubbles {
  --db-bubbles-size-width: 820px;
  --db-bubbles-active-width: var(--db-bubbles-width, var(--db-bubbles-size-width));
  position: relative;
  width: 100%;
  max-width: var(--db-bubbles-active-width);
  aspect-ratio: 2.15 / 1;
  margin: 0 auto;
  isolation: isolate;
  touch-action: pan-y;
}

.db-bounty-bubbles--small {
  --db-bubbles-size-width: 520px;
}

.db-bounty-bubbles--medium {
  --db-bubbles-size-width: 820px;
}

.db-bounty-bubbles--large {
  --db-bubbles-size-width: 1040px;
}

.db-bounty-bubbles--full {
  --db-bubbles-size-width: 100%;
  max-width: none;
}

.db-bounty-bubbles--layout-wide {
  aspect-ratio: 2.15 / 1;
}

.db-bounty-bubbles--layout-square {
  aspect-ratio: 1 / 1;
}

.db-bounty-bubbles--layout-tall {
  aspect-ratio: 0.78 / 1;
}

.db-bounty-bubble {
  --bubble-base-scale: 1;
  --bubble-scale: 1;
  --push-x: 0px;
  --push-y: 0px;
  position: absolute;
  display: block;
  width: 34%;
  aspect-ratio: 1 / 1;
  border: 4px solid #A65A3A;
  border-radius: 50%;
  overflow: hidden;
  text-decoration: none;
  background: #fff;
  box-shadow: 0 14px 32px rgba(73, 39, 28, 0.22);
  transform:
    translate3d(var(--push-x), var(--push-y), 0)
    scale(var(--bubble-base-scale))
    scale(var(--bubble-scale));
  transition:
    transform 320ms cubic-bezier(.18,.89,.32,1.28),
    box-shadow 260ms ease,
    filter 260ms ease;
  animation: dbBubbleFloat 6s ease-in-out infinite;
  will-change: transform;
}

.db-bounty-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.db-bounty-bubble::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 48%;
  background: linear-gradient(
    to top,
    rgba(55, 28, 20, 0.78),
    rgba(55, 28, 20, 0.24),
    transparent
  );
  pointer-events: none;
}

.db-bounty-bubble-label {
  position: absolute;
  left: 13%;
  right: 13%;
  bottom: 11%;
  z-index: 2;
  color: #fff;
  font-size: clamp(0.72rem, 1.4vw, 0.95rem);
  line-height: 1.1;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.45);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition:
    opacity 220ms ease,
    transform 280ms cubic-bezier(.2, .8, .2, 1);
}

.db-bounty-bubble:hover,
.db-bounty-bubble.is-hovered {
  --bubble-scale: 1.12;
  filter: saturate(1.05);
  box-shadow: 0 24px 54px rgba(73, 39, 28, 0.42);
}

.db-bounty-bubble:hover img,
.db-bounty-bubble.is-hovered img {
  transform: scale(1.06);
}

.db-bounty-bubble:hover .db-bounty-bubble-label,
.db-bounty-bubble.is-hovered .db-bounty-bubble-label {
  opacity: 1;
  transform: translateY(0);
  -webkit-line-clamp: 2;
}

.db-bounty-bubble.is-pushed {
  --bubble-scale: 0.96;
  filter: saturate(0.92);
}

.db-bounty-bubble.is-pushed.is-hovered {
  --bubble-scale: 1.12;
}

.db-bounty-bubble:active {
  --bubble-scale: 0.97;
}

.db-bounty-bubbles--layout-wide .db-bounty-bubble-1 {
  left: 7%;
  top: 20%;
  width: 30%;
  z-index: 7;
  box-shadow: 0 22px 52px rgba(73, 39, 28, 0.34);
  animation-delay: -1.2s;
}

.db-bounty-bubbles--layout-wide .db-bounty-bubble-2 {
  left: 26%;
  top: 5%;
  width: 22%;
  z-index: 8;
  --bubble-base-scale: 0.96;
  box-shadow: 0 10px 24px rgba(73, 39, 28, 0.18);
  animation-delay: -2.8s;
}

.db-bounty-bubbles--layout-wide .db-bounty-bubble-3 {
  left: 42%;
  top: 18%;
  width: 27%;
  z-index: 7;
  --bubble-base-scale: 0.98;
  box-shadow: 0 12px 28px rgba(73, 39, 28, 0.2);
  animation-delay: -0.7s;
}

.db-bounty-bubbles--layout-wide .db-bounty-bubble-4 {
  left: 61%;
  top: 8%;
  width: 22%;
  z-index: 6;
  --bubble-base-scale: 0.98;
  box-shadow: 0 12px 28px rgba(73, 39, 28, 0.2);
  animation-delay: -4.1s;
}

.db-bounty-bubbles--layout-wide .db-bounty-bubble-5 {
  left: 68%;
  top: 38%;
  width: 24%;
  z-index: 8;
  --bubble-base-scale: 0.96;
  box-shadow: 0 10px 24px rgba(73, 39, 28, 0.18);
  animation-delay: -2s;
}

.db-bounty-bubbles--layout-wide .db-bounty-bubble-6 {
  left: 31%;
  top: 48%;
  width: 20%;
  z-index: 6;
  --bubble-base-scale: 0.96;
  box-shadow: 0 10px 24px rgba(73, 39, 28, 0.18);
  animation-delay: -3.4s;
}

.db-bounty-bubbles--layout-wide .db-bounty-bubble-7 {
  left: 53%;
  top: 52%;
  width: 18%;
  z-index: 9;
  --bubble-base-scale: 0.96;
  box-shadow: 0 10px 24px rgba(73, 39, 28, 0.18);
  animation-delay: -5s;
}

.db-bounty-bubbles--layout-wide .db-bounty-bubble-8 {
  left: 67%;
  top: 6%;
  z-index: 3;
  animation-delay: -1.7s;
}

.db-bounty-bubbles--layout-square .db-bounty-bubble-1 {
  width: 38%;
  left: 13%;
  top: 27%;
  z-index: 8;
}

.db-bounty-bubbles--layout-square .db-bounty-bubble-2 {
  width: 28%;
  left: 35%;
  top: 11%;
  z-index: 9;
  --bubble-base-scale: 0.96;
}

.db-bounty-bubbles--layout-square .db-bounty-bubble-3 {
  width: 33%;
  left: 53%;
  top: 28%;
  z-index: 7;
  --bubble-base-scale: 0.98;
}

.db-bounty-bubbles--layout-square .db-bounty-bubble-4 {
  width: 29%;
  left: 23%;
  top: 55%;
  z-index: 6;
  --bubble-base-scale: 0.98;
}

.db-bounty-bubbles--layout-square .db-bounty-bubble-5 {
  width: 27%;
  left: 48%;
  top: 59%;
  z-index: 8;
  --bubble-base-scale: 0.96;
}

.db-bounty-bubbles--layout-square .db-bounty-bubble-6 {
  width: 23%;
  left: 62%;
  top: 13%;
  z-index: 6;
  --bubble-base-scale: 0.96;
}

.db-bounty-bubbles--layout-square .db-bounty-bubble-7 {
  width: 22%;
  left: 9%;
  top: 51%;
  z-index: 9;
  --bubble-base-scale: 0.96;
}

.db-bounty-bubbles--layout-square .db-bounty-bubble-8 {
  width: 34%;
  left: 31%;
  top: 34%;
  z-index: 5;
}

.db-bounty-bubbles--layout-tall .db-bounty-bubble-1 {
  width: 48%;
  left: 15%;
  top: 10%;
  z-index: 7;
}

.db-bounty-bubbles--layout-tall .db-bounty-bubble-2 {
  width: 34%;
  left: 48%;
  top: 4%;
  z-index: 8;
  --bubble-base-scale: 0.96;
}

.db-bounty-bubbles--layout-tall .db-bounty-bubble-3 {
  width: 43%;
  left: 38%;
  top: 28%;
  z-index: 7;
  --bubble-base-scale: 0.98;
}

.db-bounty-bubbles--layout-tall .db-bounty-bubble-4 {
  width: 39%;
  left: 12%;
  top: 43%;
  z-index: 6;
  --bubble-base-scale: 0.98;
}

.db-bounty-bubbles--layout-tall .db-bounty-bubble-5 {
  width: 35%;
  left: 47%;
  top: 58%;
  z-index: 8;
  --bubble-base-scale: 0.96;
}

.db-bounty-bubbles--layout-tall .db-bounty-bubble-6 {
  width: 31%;
  left: 16%;
  top: 72%;
  z-index: 6;
  --bubble-base-scale: 0.96;
}

.db-bounty-bubbles--layout-tall .db-bounty-bubble-7 {
  width: 28%;
  left: 54%;
  top: 78%;
  z-index: 9;
  --bubble-base-scale: 0.96;
}

.db-bounty-bubbles--layout-tall .db-bounty-bubble-8 {
  width: 42%;
  left: 31%;
  top: 18%;
  z-index: 5;
}

@keyframes dbBubbleFloat {
  0%, 100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .db-bounty-bubble {
    animation: none;
    transition: none;
  }
}

@media (max-width: 700px) {
  .db-bounty-bubbles {
    --db-bubbles-mobile-size-width: var(--db-bubbles-active-width);
    width: 100%;
    max-width: var(--db-bubbles-mobile-width, var(--db-bubbles-mobile-size-width)) !important;
    overflow: visible;
  }

  .db-bounty-bubbles--mobile-small {
    --db-bubbles-mobile-size-width: 300px;
  }

  .db-bounty-bubbles--mobile-medium {
    --db-bubbles-mobile-size-width: 420px;
  }

  .db-bounty-bubbles--mobile-large {
    --db-bubbles-mobile-size-width: 560px;
  }

  .db-bounty-bubbles--mobile-full {
    --db-bubbles-mobile-size-width: 100%;
  }

  .db-bounty-bubble {
    animation: none;
  }

  .db-bounty-bubble:hover,
  .db-bounty-bubble.is-neighbor,
  .db-bounty-bubble:active {
    --bubble-scale: 1;
    --push-x: 0px;
    --push-y: 0px;
    filter: none;
  }

  .db-bounty-bubble.is-hovered {
    --bubble-scale: 1.08;
  }

  .db-bounty-bubble.is-pushed {
    --bubble-scale: 0.97;
  }

  .db-bounty-bubble.is-pushed.is-hovered {
    --bubble-scale: 1.08;
  }

  .db-bounty-bubble:hover img {
    transform: none;
  }

  .db-bounty-bubble.is-hovered img {
    transform: scale(1.04);
  }
}
