.elite-reasons,
.elite-reasons * {
  box-sizing: border-box;
}

.elite-reasons {
  font-family: "Plus Jakarta Sans", sans-serif;
  width: 100%;
  margin: 56px 0 72px;
  padding: 22px clamp(14px, 2vw, 28px) 28px;
  overflow: hidden;
}

.elite-reasons__cloud {
  --marquee-duration: 48s;
  --loop-distance: 50%;
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(14px, 1.6vw, 24px);
  width: max-content;
  margin: 0;
  will-change: transform;
  animation: eliteReasonsMarquee var(--marquee-duration) linear infinite;
}

.elite-reasons__cloud:hover {
  animation-play-state: paused;
}

.elite-reasons--tiles .elite-reasons__cloud {
  animation: none;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: auto;
  grid-auto-flow: dense;
  gap: clamp(14px, 1.6vw, 24px);
}

.elite-reasons--tiles .elite-reason-bubble {
  flex: initial;
  grid-column: span 3;
  min-height: 0;
}

.elite-reasons--tiles .elite-reason-bubble:nth-child(8n + 1),
.elite-reasons--tiles .elite-reason-bubble:nth-child(8n + 6) {
  grid-column: span 5;
}

.elite-reasons--tiles .elite-reason-bubble:nth-child(8n + 2),
.elite-reasons--tiles .elite-reason-bubble:nth-child(8n + 4) {
  grid-column: span 4;
}

.elite-reasons--tiles .elite-reason-bubble:nth-child(8n + 3),
.elite-reasons--tiles .elite-reason-bubble:nth-child(8n + 5),
.elite-reasons--tiles .elite-reason-bubble:nth-child(8n + 7),
.elite-reasons--tiles .elite-reason-bubble:nth-child(8n + 8) {
  grid-column: span 3;
}

.elite-reason-bubble {
  --reveal: 1;
  --crack-delay: 0ms;
  position: relative;
  flex: 0 0 clamp(240px, 18vw, 300px);
  min-height: 0;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.24) 42%, rgba(255, 255, 255, 0.06) 70%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.26));
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24) !important;
  color: #000000;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.4s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  animation: eliteBubbleSurface 8.5s ease-in-out infinite;
  overflow-anchor: none;
}

.elite-reason-bubble::before,
.elite-reason-bubble::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.elite-reason-bubble::after {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.18) 34%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(circle at 78% 78%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 48%);
  opacity: calc(var(--reveal) * 0.9);
  transform: scale(1.05);
  transition: opacity 0.2s linear;
}

.elite-reason-bubble::before {
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.14) 34%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(circle at 76% 76%, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 46%);
  opacity: 0;
  transform: scale(1.08);
  filter: none;
}

.elite-reason-bubble:hover {
  transform: scale(1.04) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24) !important;
}

.elite-reason-bubble.is-popped {
  transform: scale(1.01) !important;
  border-color: rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24) !important;
}

.elite-reason-bubble.is-popped:hover {
  transform: scale(1.04) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24) !important;
}

.elite-reason-bubble:hover .elite-reason-bubble__title {
  transform: scale(1.04);
}

.elite-reason-bubble:hover .elite-reason-bubble__subtitle,
.elite-reason-bubble:hover .elite-reason-bubble__description,
.elite-reason-bubble:hover .elite-reason-bubble__number {
  transform: scale(1.04);
}

.elite-reason-bubble.is-cracking::before {
  animation: eliteBubbleCrack 800ms ease-out var(--crack-delay) forwards;
}

.elite-reason-bubble.is-popped::before {
  opacity: calc(0.16 + (var(--reveal) * 0.2));
}

.elite-reason-bubble__number,
.elite-reason-bubble__title,
.elite-reason-bubble__subtitle,
.elite-reason-bubble__description {
  position: relative;
  z-index: 2;
  transition: transform 0.35s ease;
}

.elite-reason-bubble__number {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #f2c775, #eeac52);
  box-shadow: 0 8px 18px rgba(238, 172, 82, 0.45);
}

.elite-reason-bubble__title {
  margin: 0;
  font-size: clamp(0.95rem, 1.8vh, 1.08rem);
  line-height: 1.35;
  font-weight: 700;
}

.elite-reason-bubble__subtitle {
  margin: 8px 0 0;
  font-size: clamp(0.8rem, 1.45vh, 0.92rem);
  line-height: 1.45;
  font-weight: 600;
  opacity: 0.88;
}

.elite-reason-bubble__description {
  margin: 10px 0 0;
  font-size: clamp(0.78rem, 1.35vh, 0.9rem);
  line-height: 1.45;
  font-weight: 500;
  max-height: calc(260px * var(--reveal));
  opacity: var(--reveal);
  overflow: hidden;
  transform: translateY(calc((1 - var(--reveal)) * 8px));
  transition: max-height 0.2s linear, opacity 0.2s linear, transform 0.2s linear;
  overscroll-behavior: contain;
}

.elite-reason-bubble.is-popped .elite-reason-bubble__description {
  max-height: calc(260px * var(--reveal));
  opacity: var(--reveal);
  transform: translateY(calc((1 - var(--reveal)) * 8px));
  overflow: hidden;
  padding-right: 4px;
}

@keyframes eliteBubbleSurface {
  0%,
  100% {
    background-position: 18% 14%, 50% 50%;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
  }
  50% {
    background-position: 22% 18%, 46% 48%;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
  }
}

@keyframes eliteReasonsMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-1 * var(--loop-distance)));
  }
}

@keyframes eliteBubbleCrack {
  0% {
    opacity: 0;
    transform: scale(1.06);
  }
  35% {
    opacity: 0.42;
    transform: scale(1.02);
  }
  100% {
    opacity: 0.22;
    transform: scale(1);
  }
}

@media (max-width: 1050px) {
  .elite-reasons__cloud {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
    gap: 16px;
  }

  .elite-reason-bubble {
    flex: 1 1 calc(50% - 8px);
    min-height: 0 !important;
  }

  .elite-reasons--tiles .elite-reasons__cloud {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 16px;
  }

  .elite-reasons--tiles .elite-reason-bubble {
    grid-column: span 3 !important;
    grid-row: auto !important;
    min-height: 0 !important;
  }
}

@media (max-width: 700px) {
  .elite-reasons__cloud {
    width: 100%;
    animation: none;
    flex-wrap: wrap;
    gap: 14px;
  }

  .elite-reason-bubble {
    flex: 1 1 100%;
    min-height: 0 !important;
    padding: 18px;
  }

  .elite-reasons--tiles .elite-reasons__cloud {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 14px;
  }

  .elite-reasons--tiles .elite-reason-bubble {
    grid-column: span 1 !important;
    grid-row: auto !important;
    min-height: 0 !important;
  }
}