.onebeat-christmas__lights {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  height: 28px;
}

.onebeat-christmas__strand {
  position: relative;
  display: flex;
  flex: 1;
  align-items: flex-start;
  justify-content: space-evenly;
}

.onebeat-christmas__strand::before {
  content: '';
  position: absolute;
  inset: -10px 0 auto;
  height: 24px;
  border-bottom: 1px solid rgba(200, 154, 111, 0.4);
  border-radius: 0 0 50% 50%;
}

.onebeat-christmas__bulb {
  --bulb-core: #fff9e6;
  --bulb-edge: #ffbe61;
  --bulb-glow: rgba(255, 171, 75, 0.82);
  position: relative;
  width: 8px;
  height: 10px;
  margin-top: 9px;
  border-radius: 43% 43% 53% 53%;
  background: radial-gradient(ellipse at 42% 42%, var(--bulb-core) 25%, var(--bulb-edge) 80%);
  box-shadow: 0 0 5px var(--bulb-core), 0 0 11px 3px var(--bulb-glow), 0 0 22px 4px var(--bulb-glow);
  transform: rotate(12deg);
}

.onebeat-christmas__bulb:nth-child(even) {
  --bulb-core: #fdf2ff;
  --bulb-edge: #bd73ff;
  --bulb-glow: rgba(188, 94, 255, 0.85);
  transform: rotate(-12deg);
}

.onebeat-christmas__bulb:nth-child(2),
.onebeat-christmas__bulb:nth-child(3) {
  margin-top: 14px;
}

.onebeat-christmas__bulb::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 1px;
  width: 5px;
  height: 4px;
  border-radius: 1px;
  background: #524257;
}

.onebeat-christmas__bulb::after {
  content: '';
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--bulb-glow), transparent 68%);
  opacity: 0.55;
}

@media (prefers-reduced-motion: no-preference) {
  .onebeat-christmas__bulb::after {
    animation: onebeat-christmas-shine 6s ease-in-out infinite alternate;
  }

  .onebeat-christmas__bulb:nth-child(even)::after {
    animation-delay: -3s;
  }

  .onebeat-christmas__strand:nth-child(even) .onebeat-christmas__bulb::after {
    animation-duration: 7s;
  }
}

@keyframes onebeat-christmas-shine {
  from { opacity: 0.32; }
  to { opacity: 1; }
}

.onebeat-christmas__santa {
  position: absolute;
  right: clamp(10px, 1.7vw, 34px);
  bottom: 3px;
  display: block;
  width: auto;
  height: clamp(66px, calc(16vw - 93px), 194px);
  filter: drop-shadow(0 0 20px rgba(123, 58, 206, 0.32));
}

@media (max-width: 1023px) {
  .onebeat-christmas__strand:nth-child(n + 5) {
    display: none;
  }
}

@media (max-width: 639px) {
  .onebeat-christmas__strand:nth-child(n + 3) {
    display: none;
  }

  .onebeat-christmas__bulb {
    width: 6px;
    height: 8px;
  }

  .onebeat-christmas__bulb::before {
    width: 4px;
  }

  .onebeat-christmas__santa {
    height: 62px;
    right: 12px;
  }
}

@media print {
  .onebeat-christmas__lights,
  .onebeat-christmas__santa {
    display: none;
  }
}
