:root {
  --public-star-green: rgba(20, 122, 59, 0.56);
  --public-star-gold: rgba(201, 151, 28, 0.62);
}

body.public-white-effects {
  position: relative;
}

body.public-white-effects::before,
body.public-white-effects::after {
  position: fixed;
  z-index: 10;
  display: block;
  width: 1rem;
  height: 1rem;
  color: var(--public-star-gold);
  font-size: 1.15rem;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 10px rgba(201, 151, 28, 0.28);
  pointer-events: none;
  user-select: none;
}

body.public-white-effects::before {
  top: clamp(4.75rem, 11vh, 6rem);
  left: 3px;
  content: "✦";
  animation: public-star-left-drift 9s ease-in-out infinite, public-star-twinkle 3.2s ease-in-out infinite;
}

body.public-white-effects::after {
  bottom: 12px;
  left: 3px;
  color: var(--public-star-green);
  content: "✧";
  animation: public-star-bottom-drift 11s ease-in-out infinite, public-star-twinkle 4s 0.8s ease-in-out infinite;
}

@keyframes public-star-left-drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-8deg); }
  50% { transform: translate3d(9px, 13px, 0) rotate(12deg); }
}

@keyframes public-star-bottom-drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(8deg); }
  50% { transform: translate3d(12px, -10px, 0) rotate(-12deg); }
}

@keyframes public-star-twinkle {
  0%, 100% { opacity: 0.38; scale: 0.78; }
  50% { opacity: 0.9; scale: 1.12; }
}

@media (max-width: 520px) {
  body.public-white-effects::before,
  body.public-white-effects::after {
    width: 0.9rem;
    height: 0.9rem;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.public-white-effects::before,
  body.public-white-effects::after {
    animation: none;
    opacity: 0.62;
  }
}