/* Section 13 — the lemon strip, its looping type and the gravity toys */

.strip {
  padding-block: clamp(48px, 6.5vh, 78px);
}

.lemon {
  position: relative;
  min-height: clamp(430px, 39vw, 548px);
  border-radius: 26px;
  background:
    radial-gradient(95% 120% at 14% 4%, #f1ff9a 0%, #e6f76a 46%, #d9ee4b 100%);
  box-shadow:
    0 2px 5px rgba(24, 24, 27, 0.05),
    0 34px 80px -54px rgba(94, 111, 18, 0.8);
  color: #141607;
  overflow: hidden;
  isolation: isolate;
}

.lemon::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 0 0 1px rgba(24, 24, 27, 0.06);
  pointer-events: none;
}

.lemon__watermark {
  position: absolute;
  right: -0.035em;
  bottom: -0.19em;
  z-index: 0;
  color: rgba(24, 24, 27, 0.055);
  font-size: clamp(11rem, 27vw, 25rem);
  font-weight: 500;
  line-height: 0.7;
  letter-spacing: -0.085em;
  pointer-events: none;
  user-select: none;
}

.lemon__marquee {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.lemon__track {
  display: flex;
  flex: 0 0 auto;
  width: max-content;
  animation: lemon-marquee 42s linear infinite;
  will-change: transform;
}

.lemon__group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: clamp(22px, 2.6vw, 40px);
  padding-right: clamp(22px, 2.6vw, 40px);
}

.lemon__word {
  color: #141607;
  font-size: clamp(2.35rem, 4.45vw, 4rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.lemon__thumb {
  --thumb-accent: rgba(24, 24, 27, 0.18);
  position: relative;
  flex: 0 0 auto;
  width: clamp(44px, 4.55vw, 64px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 12px 26px -16px var(--thumb-accent);
  overflow: hidden;
  rotate: -3deg;
}

.lemon__thumb--green {
  rotate: 3deg;
}

.lemon__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lemon__thumb--blue {
  --thumb-accent: rgba(37, 99, 235, 0.75);
}

.lemon__thumb--green {
  --thumb-accent: rgba(47, 191, 113, 0.7);
}

.lemon__thumb--violet {
  --thumb-accent: rgba(192, 38, 211, 0.62);
}

.lemon__toys {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

.lemon__toy {
  position: absolute;
  left: var(--x, 8%);
  top: var(--y, 72%);
  display: grid;
  place-items: center;
  width: clamp(44px, 4.2vw, 58px);
  aspect-ratio: 1;
  border: 1px solid rgba(24, 24, 27, 0.06);
  border-radius: 50%;
  background: #fff;
  color: #18181b;
  box-shadow:
    0 2px 5px rgba(24, 24, 27, 0.08),
    0 16px 28px -18px rgba(24, 24, 27, 0.55);
  pointer-events: auto;
  cursor: grab;
  will-change: transform;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.lemon__toy:active {
  cursor: grabbing;
}

.lemon__toy svg {
  width: 43%;
  height: 43%;
  pointer-events: none;
}

.lemon__toy:nth-child(3n + 1) svg {
  color: #b3261e;
}

.lemon__toy:nth-child(3n + 2) svg {
  color: #2563eb;
}

.lemon__toy:nth-child(3n) svg {
  color: #18181b;
}

@keyframes lemon-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 900px) {
  .lemon {
    min-height: 468px;
    border-radius: 22px;
  }

  .lemon__word {
    font-size: clamp(2rem, 7.1vw, 3rem);
  }
}

@media (max-width: 640px) {
  .strip {
    padding-block: 40px;
  }

  .lemon {
    min-height: 438px;
    border-radius: 20px;
  }

  .lemon__word {
    font-size: clamp(1.85rem, 8.5vw, 2.45rem);
  }

  .lemon__thumb {
    width: 42px;
    border-radius: 11px;
  }

  .lemon__group {
    gap: 17px;
    padding-right: 17px;
  }

  .lemon__toy {
    width: 46px;
  }

  .lemon__watermark {
    font-size: 9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lemon__track {
    display: block;
    animation: none;
    width: 100%;
  }

  .lemon__marquee {
    padding-inline: clamp(20px, 4vw, 54px);
  }

  .lemon__group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    gap: 14px 20px;
    padding-right: 0;
  }

  .lemon__group[aria-hidden="true"] {
    display: none;
  }

  .lemon__word {
    flex: 0 1 auto;
    min-width: 0;
    font-size: clamp(1.9rem, 3.2vw, 2.9rem);
    white-space: normal;
    text-align: center;
  }

  .lemon__thumb {
    width: clamp(40px, 3.4vw, 52px);
    rotate: 0deg;
  }

  .lemon__toy {
    cursor: default;
  }
}
