/* EM_SeasonalSnow, style "sparkles": gold four-point stars glinting in place plus a light fall of gold/silver specks.
   Gold with a darker outline stays visible on the white pages. Decorative only: no clicks; still for reduced motion. */
.em-sparkles {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 899; /* above page content, below Magento modals (900+) */
    transition: opacity 4s ease;
}
.em-sparkles.is-ending {
    opacity: 0;
}
.em-sparkles__defs {
    position: absolute;
    width: 0;
    height: 0;
}
.em-sparkles__star {
    position: absolute;
    left: var(--x, 50%);
    top: var(--y, 50%);
    width: var(--s, 14px);
    height: var(--s, 14px);
    opacity: 0;
    will-change: transform, opacity;
    animation: em-sparkles-glint var(--d, 4s) ease-in-out var(--dl, 0s) infinite;
}
.em-sparkles__star svg {
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 2px rgba(201, 154, 30, .55));
}
.em-sparkles__speck {
    position: absolute;
    left: var(--x, 50%);
    top: -10px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--c, #c99a1e);
    box-shadow: 0 0 4px var(--c, #c99a1e);
    will-change: transform;
    animation: em-sparkles-fall var(--d, 16s) linear var(--dl, 0s) infinite;
}
@keyframes em-sparkles-glint {
    0%, 100% { transform: scale(.1) rotate(0); opacity: 0; }
    45%      { transform: scale(1) rotate(35deg); opacity: 1; }
    60%      { transform: scale(.85) rotate(45deg); opacity: .9; }
}
@keyframes em-sparkles-fall {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(var(--dx, 0), 105vh, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .em-sparkles__star { animation: none; opacity: .8; transform: scale(.8); }
    .em-sparkles__speck { display: none; }
}
@media print {
    .em-sparkles { display: none; }
}
