/* Bozo's Holiday Decorations. Decorative-only overlay, no theme layout changes. */
#bhd-decor,
#bhd-decor * { box-sizing: border-box; }
#bhd-decor {
  --bhd-accent: #f7b955;
  --bhd-secondary: #8caaf3;
  pointer-events: none !important;
  user-select: none;
  -webkit-user-select: none;
  position: fixed;
  inset: 0;
  z-index: 10010;
  overflow: hidden;
  contain: layout style;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
#bhd-decor .bhd-garland {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  padding: 0 8px;
  background: linear-gradient(180deg, rgba(5, 14, 33, .40), transparent);
}
#bhd-decor .bhd-garland::before {
  content: '';
  height: 10px;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  border-top: 2px solid color-mix(in srgb, var(--bhd-accent), transparent 45%);
  border-radius: 0 0 60% 60%;
}
#bhd-decor .bhd-garland-item {
  display: block;
  width: 9px;
  height: 13px;
  border-radius: 50% 50% 45% 45%;
  background: var(--bhd-accent);
  margin-top: 5px;
  opacity: .92;
  box-shadow: 0 0 8px 2px var(--bhd-accent);
  transform: rotate(8deg);
  animation: bhd-glow 2.6s ease-in-out infinite alternate;
}
#bhd-decor .bhd-garland-item:nth-child(3n) {
  background: var(--bhd-secondary);
  box-shadow: 0 0 8px 2px var(--bhd-secondary);
  animation-delay: -1.4s;
  transform: rotate(-13deg);
}
#bhd-decor .bhd-garland-item:nth-child(5n) {
  background: #fff0ba;
  box-shadow: 0 0 7px #fff0ba;
  animation-delay: -.6s;
}
#bhd-decor .bhd-particles { position: absolute; inset: 0; overflow: hidden; }
#bhd-decor .bhd-particle {
  position: absolute;
  left: var(--bhd-x, 50%);
  top: -8vh;
  white-space: nowrap;
  font-size: var(--bhd-size, 18px);
  line-height: 1;
  opacity: .55;
  color: var(--bhd-accent);
  text-shadow: 0 0 11px rgba(255, 255, 255, .17);
  will-change: transform;
  animation: bhd-fall var(--bhd-duration, 12s) linear var(--bhd-delay, 0s) infinite;
}
#bhd-decor .bhd-particle:nth-child(3n) { color: var(--bhd-secondary); }
#bhd-decor .bhd-particle:nth-child(5n) { opacity: .32; }
#bhd-decor .bhd-particle.bhd-float {
  top: 105vh;
  animation-name: bhd-rise;
}
#bhd-decor .bhd-particle.bhd-celebration { animation-name: bhd-celebrate; }
#bhd-decor .bhd-particle.bhd-sparkle {
  top: var(--bhd-y, 45%);
  animation: bhd-sparkle var(--bhd-duration, 7s) ease-in-out var(--bhd-delay, 0s) infinite;
  will-change: opacity, transform;
}
#bhd-decor .bhd-greeting {
  position: absolute;
  bottom: 22px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(300px, 35vw);
  padding: 9px 15px;
  border: 1px solid var(--bhd-accent);
  border-color: color-mix(in srgb, var(--bhd-accent), #fff 25%);
  border-radius: 999px;
  background: rgba(12, 25, 45, .87);
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .17), 0 0 16px color-mix(in srgb, var(--bhd-accent), transparent 77%);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .025em;
  line-height: 1.3;
  backdrop-filter: blur(8px);
}
#bhd-decor .bhd-greeting-icon { font-size: 19px; line-height: 1; }
#bhd-decor .bhd-greeting-label { min-width: 0; }
#bhd-decor.bhd-theme-halloween .bhd-garland-item { border-radius: 50% 50% 45% 45%; }
#bhd-decor.bhd-theme-christmas .bhd-garland-item:nth-child(4n) { background: #dc505c; box-shadow: 0 0 9px #dc505c; }
#bhd-decor.bhd-theme-christmas .bhd-particle { color: #eaf6ff; text-shadow: 0 0 6px rgba(205,233,255,.55); }
#bhd-decor.bhd-theme-christmas .bhd-particle:nth-child(3n) { color: #c7e5f9; }
#bhd-decor.bhd-theme-halloween .bhd-particle:nth-child(3n) { color: #d2abef; }
#bhd-decor.bhd-theme-valentines .bhd-garland-item { border-radius: 65% 65% 40% 40%; }
#bhd-decor.bhd-theme-independence .bhd-garland-item:nth-child(4n),
#bhd-decor.bhd-theme-memorial .bhd-garland-item:nth-child(4n),
#bhd-decor.bhd-theme-veterans .bhd-garland-item:nth-child(4n) { background: #fff; box-shadow: 0 0 8px #fff; }
#bhd-decor.bhd-level-subtle .bhd-particle { opacity: .24; }
#bhd-decor.bhd-level-festive .bhd-particle { opacity: .72; }
#bhd-decor.bhd-static .bhd-garland-item,
#bhd-decor.bhd-static .bhd-particle { animation: none !important; }
#bhd-decor.bhd-static .bhd-particle { display: none; }
@keyframes bhd-fall {
  0% { transform: translate3d(0, -10vh, 0) rotate(-30deg); }
  100% { transform: translate3d(var(--bhd-drift, 50px), 120vh, 0) rotate(270deg); }
}
@keyframes bhd-rise {
  0% { transform: translate3d(0, 8vh, 0) rotate(-20deg); }
  100% { transform: translate3d(var(--bhd-drift, 60px), -125vh, 0) rotate(30deg); }
}
@keyframes bhd-celebrate {
  0% { transform: translate3d(0, -10vh, 0) rotate(0deg) scale(.8); }
  50% { transform: translate3d(var(--bhd-drift, 45px), 55vh, 0) rotate(240deg) scale(1.15); }
  100% { transform: translate3d(0, 125vh, 0) rotate(440deg) scale(.8); }
}
@keyframes bhd-sparkle {
  0%, 100% { opacity: 0; transform: scale(.45) rotate(0deg); }
  35%, 60% { opacity: .72; transform: scale(1.15) rotate(35deg); }
}
@keyframes bhd-glow {
  from { opacity: .56; filter: brightness(.8); }
  to { opacity: 1; filter: brightness(1.15); }
}
@media (max-width: 720px) {
  #bhd-decor .bhd-greeting { display: none; }
  #bhd-decor .bhd-garland { height: 17px; padding: 0 4px; }
  #bhd-decor .bhd-garland-item { width: 6px; height: 9px; box-shadow: 0 0 5px var(--bhd-accent); }
  #bhd-decor .bhd-particle { font-size: min(var(--bhd-size, 17px), 20px); }
}
@media (prefers-reduced-motion: reduce) {
  #bhd-decor .bhd-garland-item, #bhd-decor .bhd-particle { animation: none !important; }
  #bhd-decor .bhd-particle { display: none !important; }
}
