/* ===== Новогоднее оформление ===== */
.ny-strip {
    background: linear-gradient(90deg, #7f1d1d 0%, #14532d 50%, #7f1d1d 100%);
    color: #fde68a;
    text-align: center;
    font-size: 13px;
    line-height: 1.3;
    padding: 7px 14px;
    letter-spacing: .01em;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 14px;
}
.ny-count {
    color: #fff;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    background: rgba(0, 0, 0, .22);
    border-radius: 999px;
    padding: 1px 10px;
}
.ny-count:empty { display: none; }

.ny-garland {
    height: 40px;
    overflow: hidden;
    pointer-events: none;
    position: relative;
    z-index: 5;
}
.ny-garland svg { display: block; }
.ny-wire { stroke: #334155; fill: none; stroke-width: 1.6; }
.dark .ny-wire { stroke: #64748b; }
.ny-cap { fill: #475569; }
.dark .ny-cap { fill: #94a3b8; }
.ny-bulb { animation: ny-tw 1.9s ease-in-out infinite; }
@keyframes ny-tw {
    0%, 100% { opacity: 1; }
    50% { opacity: .42; }
}

.ny-snow {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 40;
}

.ny-hat {
    position: absolute;
    z-index: 50;
    pointer-events: none;
    transform: rotate(-14deg);
    transform-origin: 20% 90%;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .28));
}

@media (prefers-reduced-motion: reduce) {
    .ny-bulb { animation: none; }
}
@media print {
    .ny-garland, .ny-snow, .ny-hat, .ny-strip { display: none !important; }
}

/* ny-santa */
.ny-fw {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 2;
}
.ny-drift {
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 22px;
    pointer-events: none;
    z-index: 4;
}
.ny-drift-snow { fill: #fff; filter: drop-shadow(0 -1px 1px rgba(90, 130, 200, .25)); }
.ny-drift-line { fill: none; stroke: rgba(110, 150, 215, .6); stroke-width: 1; }
.dark .ny-drift-snow { fill: #e9f0fc; }
.dark .ny-drift-line { stroke: rgba(255, 255, 255, .35); }
.ny-sparkle { fill: #9ec0ff; animation: ny-tw 2.2s ease-in-out infinite; }
.dark .ny-sparkle { fill: #fff; }

.ny-santa {
    position: absolute;
    left: 0;
    z-index: 3;
    pointer-events: none;
    will-change: transform;
}
.ny-santa-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ny-bob { animation: ny-bob .8s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.ny-d2 { animation-delay: -.25s; }
.ny-d1 { animation-delay: -.5s; }
@keyframes ny-bob {
    from { transform: translateY(-2.5px) rotate(-1.2deg); }
    to   { transform: translateY(2.5px) rotate(1.2deg); }
}
.ny-leg { transform-box: fill-box; transform-origin: 50% 0; animation: ny-gallop .3s ease-in-out infinite alternate; }
.ny-l2, .ny-l4 { animation-direction: alternate-reverse; }
@keyframes ny-gallop {
    from { transform: rotate(-28deg); }
    to   { transform: rotate(26deg); }
}
.ny-tr { animation: ny-trail 1s ease-in-out infinite; }
.ny-tr:nth-child(2) { animation-delay: .15s; }
.ny-tr:nth-child(3) { animation-delay: .3s; }
.ny-tr:nth-child(4) { animation-delay: .45s; }
.ny-tr:nth-child(5) { animation-delay: .6s; }
@keyframes ny-trail {
    0%, 100% { opacity: .15; }
    50% { opacity: 1; }
}
.ny-nose { animation: ny-tw 1s ease-in-out infinite; }
.ny-wave { transform-box: fill-box; transform-origin: 0% 100%; animation: ny-wave .9s ease-in-out infinite alternate; }
@keyframes ny-wave {
    from { transform: rotate(-9deg); }
    to   { transform: rotate(13deg); }
}
@media (prefers-reduced-motion: reduce) {
    .ny-bob, .ny-leg, .ny-tr, .ny-nose, .ny-sparkle, .ny-wave { animation: none; }
}
@media print { .ny-drift, .ny-santa { display: none !important; } }
