.light-rope {
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  z-index: 10;
  margin: 0;
  padding: 0;
  pointer-events: none;
  width: 100%;
}

.light-rope li {
  position: relative;
  list-style: none;
  margin: 20px;
  padding: 0;
  display: inline-block;
  width: 12px;
  height: 24px;
  border-radius: 50%;
  /* Classic Red */
  background: #ff2a2a;
  box-shadow: 0px 4px 20px 3px rgba(255, 42, 42, 0.8);
  animation: flash-1 2s infinite;
}

/* Dark green wire & sockets */
.light-rope li::before {
  content: "";
  position: absolute;
  background: #14361d;
  width: 10px;
  height: 8px;
  border-radius: 3px;
  top: -4px;
  left: 1px;
}

.light-rope li::after {
  content: "";
  top: -12px;
  left: 9px;
  position: absolute;
  width: 52px;
  height: 16px;
  border-bottom: solid #14361d 2px;
  border-radius: 50%;
}

.light-rope li:last-child::after {
  content: none;
}

/* Emerald Green */
.light-rope li:nth-child(4n + 2) {
  background: #16c64f;
  box-shadow: 0px 4px 20px 3px rgba(22, 198, 79, 0.8);
  animation: flash-2 1.4s infinite;
}

/* Warm Gold */
.light-rope li:nth-child(4n + 3) {
  background: #ffcc33;
  box-shadow: 0px 4px 20px 3px rgba(255, 204, 51, 0.85);
  animation: flash-3 1.8s infinite;
}

/* Classic Blue */
.light-rope li:nth-child(4n + 4) {
  background: #2b7fff;
  box-shadow: 0px 4px 20px 3px rgba(43, 127, 255, 0.8);
  animation: flash-2 2.2s infinite;
}

@keyframes flash-1 {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes flash-2 {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

@keyframes flash-3 {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
@media (max-width: 600px) {
  .light-rope li {
    margin: 15px 12px; /* Tighter horizontal spacing */
    width: 10px;
    height: 20px;
  }

  .light-rope li::before {
    width: 8px;
    height: 6px;
  }

  .light-rope li::after {
    width: 34px; /* Matches the tighter spacing: (12px * 2) + 10px */
    left: 7px;
    top: -10px;
  }
}
