.stars-ui { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.star {
  will-change: transform, opacity;
  position: absolute; transform: translate(-50%, -50%); pointer-events: auto;
  display: flex; flex-direction: column; align-items: center; gap: 10px; border: 0; background: none; padding: 10px;
  animation: starIn .8s var(--ease) both; animation-delay: calc(var(--i) * 120ms + 150ms);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.star i {
  width: 18px; height: 18px; border-radius: 50%; background: #fffbea;
  box-shadow: 0 0 10px 4px rgba(255, 245, 210, 0.85), 0 0 34px 10px rgba(180, 160, 255, 0.55);
  animation: twinkleStar 2.2s ease-in-out infinite; animation-delay: calc(var(--i) * -0.6s);
}
.star span {
  font-size: 15px; font-weight: 700; padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  background: rgba(20, 18, 50, 0.78); border: 1px solid rgba(255, 255, 255, 0.18);
}
.star:hover i, .star:focus-visible i { transform: scale(1.3); }
.star.picked i { animation: flare .6s var(--ease) both; }
.star.picked span { opacity: 0; transition: opacity .4s; }
.star.gone { opacity: 0; transform: translate(-50%, -50%) scale(.6); pointer-events: none; }
@keyframes starIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.3); } }
@keyframes twinkleStar { 50% { transform: scale(.75); box-shadow: 0 0 6px 2px rgba(255, 245, 210, 0.7), 0 0 20px 6px rgba(180, 160, 255, 0.4); } }
@keyframes flare { 40% { transform: scale(2.4); box-shadow: 0 0 30px 14px #fff, 0 0 60px 30px rgba(200, 180, 255, 0.8); } 100% { transform: scale(0.5); opacity: 0; } }
