/* Effect layers: fixed, click-through, auto-removed by JS. */
.fx { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 15; }
.fx .p {
  position: absolute; left: var(--x); top: -40px; display: block;
  animation: fall var(--t) cubic-bezier(.3, .2, .6, 1) var(--d) both;
  transform: translateX(0) rotate(var(--r)) scale(var(--s));
}
@keyframes fall {
  0% { transform: translate(0, -40px) rotate(var(--r)) scale(var(--s)); opacity: 0; }
  8% { opacity: 1; }
  100% { transform: translate(var(--sw), 105vh) rotate(calc(var(--r) + 300deg)) scale(var(--s)); opacity: .9; }
}

/* Schnee: round soft flakes */
.fx-schnee .p { width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, .9); }
.fx-schnee .p1 { width: 6px; height: 6px; }
.fx-schnee .p2 { width: 14px; height: 14px; opacity: .8; }

/* Lebkuchen: candy canes (red/white stripes) */
.fx-lebkuchen .p { width: 8px; height: 30px; border-radius: 4px; background: repeating-linear-gradient(135deg, #fff6e8 0 5px, #8b1e2d 5px 10px); }
.fx-lebkuchen .p::before { content: ""; position: absolute; top: -8px; left: 0; width: 16px; height: 16px; border: 8px solid transparent; border-top-color: #8b1e2d; border-radius: 50% 50% 0 0; box-sizing: border-box; display: none; }
.fx-lebkuchen .p3 { width: 12px; height: 12px; border-radius: 50%; background: #b9793f; box-shadow: inset 0 0 0 2px #fff4e2; }

/* Strick: red/white confetti */
.fx-strick .p { width: 10px; height: 14px; border-radius: 2px; background: #8b1e2d; }
.fx-strick .p1, .fx-strick .p3 { background: #fff6e8; box-shadow: 0 0 0 1px #dccbb0; }
.fx-strick .p2 { width: 14px; height: 8px; }

/* Sterne: gold stars */
.fx-sterne .p { width: 14px; height: 14px; background: #f2c14e; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); filter: drop-shadow(0 0 4px rgba(242, 193, 78, .9)); }
.fx-sterne .p1 { width: 8px; height: 8px; background: #fff6e8; }
.fx-sterne .p2 { background: #c9a227; }

/* Kamin: sparks rising from the bottom */
.fx-kamin .p { width: 6px; height: 6px; border-radius: 50%; background: #f2a33a; box-shadow: 0 0 8px #d9531e; top: auto; bottom: -20px; animation-name: rise; }
.fx-kamin .p1 { width: 4px; height: 4px; background: #ffd9a8; }
.fx-kamin .p2 { width: 8px; height: 8px; background: #d9531e; }
@keyframes rise {
  0% { transform: translate(0, 20px) scale(var(--s)); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(var(--sw), -105vh) scale(calc(var(--s) * .4)); opacity: 0; }
}

/* Tanne: twinkling lights that pop in across the screen */
.fx-tanne .p { width: 12px; height: 12px; border-radius: 50%; top: calc(10vh + var(--sw) * 2 + 20vh); animation-name: twinkle; animation-timing-function: ease-in-out; background: #f2c14e; box-shadow: 0 0 12px #f2c14e; }
.fx-tanne .p1 { background: #e86a5a; box-shadow: 0 0 12px #e86a5a; top: calc(40vh + var(--sw)); }
.fx-tanne .p2 { background: #8fc7e8; box-shadow: 0 0 12px #8fc7e8; top: calc(65vh + var(--sw) * 2); }
.fx-tanne .p3 { background: #fff6e8; box-shadow: 0 0 10px #fff6e8; top: calc(25vh - var(--sw)); }
@keyframes twinkle {
  0% { transform: scale(0); opacity: 0; }
  20% { transform: scale(var(--s)); opacity: 1; }
  60% { transform: scale(calc(var(--s) * 1.3)); opacity: 1; }
  100% { transform: scale(0); opacity: 0; }
}
