/* საშობაო განწყობა — იტვირთება includes/seasonal.php-იდან (1 დეკ. – 15 იან.) */

.kn-snow {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1044;
}

/* ნათურების გირლანდა */
.kn-lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1046;
    line-height: 0;
}
.kn-lights.is-fixed { position: fixed; }
.kn-lights svg { display: block; }
.kn-wire { fill: none; stroke: #1f4d38; stroke-width: 1.6; }
.kn-cap { fill: #2c5a45; }
.kn-glow { animation: kn-twinkle 2.8s ease-in-out infinite; }
.kn-d0 { animation-delay: 0s; }
.kn-d1 { animation-delay: -.6s; }
.kn-d2 { animation-delay: -1.2s; }
.kn-d3 { animation-delay: -1.8s; }
.kn-d4 { animation-delay: -2.3s; }

@keyframes kn-twinkle {
    0%, 100% { opacity: 1; }
    50%      { opacity: .25; }
}

/* ქუდი ლოგოზე */
.kn-hat {
    position: absolute;
    pointer-events: none;
    line-height: 0;
    transform: rotate(-20deg);
    transform-origin: 50% 80%;
    filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .35));
    z-index: 2;
}
.kn-hat svg { display: block; width: 100%; height: auto; }

/* თოვლი ფუტერის კიდეზე */
.kn-drift {
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 22px;
    pointer-events: none;
    line-height: 0;
    z-index: 1;
}
.kn-drift svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 2px 2px rgba(120, 160, 215, .45)); }

/* თოვის ღილაკი */
.kn-xmas {
    position: fixed;
    left: 14px;
    bottom: 14px;
    display: flex;
    align-items: center;
    z-index: 1043;
    pointer-events: none;
}
.kn-xmas button { pointer-events: auto; font: inherit; cursor: pointer; }
.kn-toggle {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .35);
    background: linear-gradient(150deg, #1d3f6e, #0e2342);
    color: #fff;
    box-shadow: 0 4px 14px rgba(6, 18, 40, .35);
    transition: transform .2s ease, opacity .2s ease;
}
.kn-toggle:hover { transform: scale(1.07); }
.kn-toggle:focus-visible { outline: 3px solid #ffd36b; outline-offset: 2px; }
.kn-toggle[aria-pressed="false"] { opacity: .55; }
.kn-toggle svg { width: 22px; height: 22px; }

/* მილოცვის ამომხტარი ფანჯარა */
.kn-pop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(6, 16, 36, .52);
    z-index: 99990;
    animation: kn-fade .4s ease both;
    transition: opacity .4s ease;
}
.kn-pop.is-leaving { opacity: 0; pointer-events: none; }
.kn-pop-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    box-sizing: border-box;
    padding: 30px 28px 28px;
    border-radius: 22px;
    overflow: hidden;
    text-align: center;
    color: #fff;
    background: radial-gradient(circle at 50% 0%, #c81d38 0%, #9d1027 48%, #650714 100%);
    border: 1px solid rgba(255, 211, 107, .85);
    box-shadow: 0 24px 60px rgba(20, 0, 8, .5), inset 0 0 0 5px rgba(255, 211, 107, .12);
    animation: kn-pop-in .6s cubic-bezier(.2, .9, .25, 1.2) both;
}
.kn-pop-art { line-height: 0; margin-bottom: 14px; }
.kn-pop-art svg { width: 86px; height: auto; margin: 0 auto; display: block; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.kn-pop .kn-pop-title {
    margin: 0;
    padding: 0;
    color: #fff;
    font-family: inherit;
    font-size: clamp(20px, 5.6vw, 27px);
    font-weight: 700;
    line-height: 1.45;
    text-wrap: balance;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.kn-pop .kn-pop-sign {
    margin: 14px 0 0;
    padding: 0;
    color: #ffd98a;
    font-size: 12.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.kn-pop .kn-pop-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}
.kn-pop .kn-pop-close:hover { background: rgba(255, 255, 255, .28); }
.kn-pop .kn-pop-close:focus-visible { outline: 3px solid #ffd36b; outline-offset: 2px; }
.kn-pop-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: #ffd36b;
    transform-origin: left center;
}
.kn-pop.is-running .kn-pop-bar { animation: kn-countdown 5s linear forwards; }

@keyframes kn-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kn-pop-in {
    from { opacity: 0; transform: translateY(26px) scale(.9); }
    to   { opacity: 1; transform: none; }
}
@keyframes kn-countdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }

@media (max-width: 991.98px) {
    .kn-xmas { left: 10px; bottom: 12px; }
    .kn-xmas.has-bottomnav { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
    .kn-toggle { width: 36px; height: 36px; }
    .kn-toggle svg { width: 20px; height: 20px; }
    .kn-pop-card { max-width: 340px; padding: 26px 20px 24px; }
    .kn-pop-art svg { width: 70px; }
}

@media (prefers-reduced-motion: reduce) {
    .kn-glow, .kn-pop, .kn-pop-card { animation: none; }
    .kn-pop-bar { display: none; }
}

@media print {
    .kn-snow, .kn-lights, .kn-hat, .kn-drift, .kn-xmas, .kn-pop { display: none !important; }
}
