.hm-snow {
    position: absolute;
    pointer-events: none;
    display: block;
}

.hm-snow--hero {
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hm-snow--footer {
    left: 0;
    bottom: 0;
    width: 100%;
    height: 300px;
    z-index: 1;
}

/* ── Függő karácsonyi díszek a hero tetején ── */
.hm-ornaments {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    z-index: 11;    pointer-events: none;
}

.hm-ornament {
    position: absolute;
    top: -6px;    padding: 0 12px;    margin-left: -12px;
    display: block;
    width: auto;
    transform-origin: 50% 0;
    pointer-events: auto;
    cursor: url('../img/snow/paw.svg') 16 10, pointer;
    animation: hm-orn-sway var(--sway-dur, 5s) ease-in-out var(--sway-delay, 0s) infinite alternate;
    filter: drop-shadow(0 6px 8px rgba(2, 15, 89, 0.12));
}

.hm-ornament img {
    display: block;
    height: 100% !important;
    width: auto !important;
    max-width: none !important;
}

.hm-ornament.is-nudged {
    animation: hm-orn-nudge 2.4s cubic-bezier(.25, .9, .35, 1) 1;
}

@keyframes hm-orn-sway {
    from { transform: rotate(calc(var(--sway, 3deg) * -1)); }
    to   { transform: rotate(var(--sway, 3deg)); }
}

@keyframes hm-orn-nudge {
    0%   { transform: rotate(0deg); }
    15%  { transform: rotate(calc(16deg * var(--dir, 1))); }
    35%  { transform: rotate(calc(-10deg * var(--dir, 1))); }
    55%  { transform: rotate(calc(6deg * var(--dir, 1))); }
    75%  { transform: rotate(calc(-3deg * var(--dir, 1))); }
    100% { transform: rotate(0deg); }
}

.hm-ornament.is-cropped {
    overflow: hidden;
}

.hm-ornament.is-cropped img {
    position: absolute;
    left: 12px;
    bottom: 0;
    height: var(--img-h) !important;
}

.hm-ornament.is-cropped::before {
    content: '';
    display: block;
    width: calc(var(--img-h) * 0.1556);
    height: 1px;
}

@media (max-width: 1023px) {
    .hm-ornament--3,
    .hm-ornament--4 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hm-ornament,
    .hm-ornament.is-nudged { animation: none; }
}
