.tree-lights {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  mask: var(--contour) center / 100% 100% no-repeat;
}
.tree-lights i{position:absolute;width:clamp(1.5px,.19vw,2.7px);aspect-ratio:1;border-radius:50%;background:#ff3434;box-shadow:0 0 2px 1px #ff1616cb,0 0 5px 1px #ef101077;transform:translate(-50%,-50%)}
.tree-lights i:nth-child(3n){background:#ff3434;box-shadow:0 0 3px 1px #ff1616cb}

.tree-lights i:nth-child(3n+1){background:#fff7e5;box-shadow:0 0 2px 1px #fff0cbd9,0 0 5px 1px #ffe9be75}
.tree-lights i:nth-child(3n+2){background:#75b4ff;box-shadow:0 0 2px 1px #297bffdc,0 0 5px 1px #1261ff89}

.tree-lights .tree-star {
  position:absolute;
  width:1%;
  aspect-ratio:1;
  transform:translate(-50%,-85%);
  filter:drop-shadow(0 0 .65px #fff);
}
.tree-star::before {
  content:"";
  display:block;
  width:100%;
  height:100%;
  background:#fffdf7;
  clip-path:polygon(50% 0%,61% 33%,97% 35%,69% 57%,78% 93%,50% 73%,21% 93%,31% 58%,3% 35%,39% 33%);
}
@keyframes bulb-twinkle {
  0%,100% { opacity:.89; }
  24% { opacity:1; }
  58% { opacity:.72; }
  79% { opacity:.95; }
}
@media (prefers-reduced-motion:no-preference) {
  html:not([data-still]) .tree-lights i {
    animation:bulb-twinkle var(--twinkle-time) ease-in-out var(--twinkle-phase) infinite;
  }
  html:not([data-still]) .tree-lights .tree-star {
    animation:bulb-twinkle 6.1s ease-in-out -1s infinite;
  }
}
@media (max-width:680px) {
  .tree-lights .tree-star { width:2.05%; }
  .tree-lights i { --glow:#ff5656; }
  .tree-lights i:nth-child(3n+1) { --glow:#fff3d7; }
  .tree-lights i:nth-child(3n+2) { --glow:#77adff; }
  .hero-scene .tree-lights i {
    width:clamp(.85px,.26vw,1.22px);
    box-shadow:0 0 1.2px .18px var(--glow);
  }
}

