.apk-winter-garland {
    position: absolute;
    z-index: 8;
    inset: 0 0 auto;
    height: 15px;
    background: url("garland.svg") repeat-x top center / 277px 15px;
    pointer-events: none;
    opacity: .82;
}
.apk-winter-effects {
    position: fixed;
    z-index: 7;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.apk-winter-effects i {
    position: absolute;
    top: -12px;
    left: var(--left);
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 2px #55769155;
    animation: apk-snow var(--duration) var(--delay) linear infinite;
}
.apk-winter-effects.is-confetti i {
    width: 6px;
    height: 10px;
    border-radius: 2px;
    background: var(--color);
    box-shadow: none;
    animation: apk-confetti 7s var(--delay) ease-in infinite;
}
@keyframes apk-snow {
    0% { transform: translate3d(0,0,0); opacity: 0; }
    12%, 72% { opacity: .76; }
    100% { transform: translate3d(var(--drift), var(--snow-fall, 103vh), 0); opacity: 0; }
}
@keyframes apk-confetti {
    0% { transform: translate3d(0,0,0) rotate(0deg); opacity: 0; }
    8% { opacity: .92; }
    43%, 100% { transform: translate3d(var(--drift), var(--fall, 65vh), 0) rotate(280deg); opacity: 0; }
}
.apk-winter-hat {
    position: absolute;
    top: -8px;
    left: -5px;
    z-index: 1;
    width: 23px;
    height: 23px;
    object-fit: contain;
    transform: rotate(-19deg);
    pointer-events: none;
}
.apk-winter-banner {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 52px minmax(0,1fr) 18px;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 10px 12px;
    margin: 0 0 18px;
    overflow: hidden;
    border: 1px solid #bbdfcb;
    border-radius: 17px;
    background: #ebf7ef;
    color: #155235;
    text-align: left;
    font: inherit;
    cursor: pointer;
}
.apk-winter-banner::before, .apk-winter-countdown::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: repeating-linear-gradient(35deg,#37a96a 0 5px,#fff7ee 5px 9px,#e46866 9px 14px,#fff7ee 14px 18px);
}
.apk-winter-banner:hover { background: #e3f3e9; }
.apk-winter-banner:focus-visible, .apk-winter-dialog button:focus-visible { outline: 2px solid #24854f; outline-offset: 3px; }
.apk-winter-banner strong, .apk-winter-banner small { display: block; }
.apk-winter-banner strong { font-size: 15px; line-height: 1.25; }
.apk-winter-banner small { margin-top: 4px; color: #3a6952; font-size: 13px; }
.apk-winter-arrow { font-size: 24px; text-align: right; color: #42745a; }
.apk-winter-sticker { display: grid; place-items: center; line-height: 1; }
.apk-winter-sticker svg { display: block; width: 100%; height: 100%; }
.apk-winter-sticker.is-animated > span { display: none; }
.apk-winter-cookie { width: 52px; height: 52px; font-size: 32px; }
.apk-winter-dialog {
    box-sizing: border-box;
    width: min(440px, calc(100% - 28px));
    max-height: calc(100% - 28px);
    margin: auto;
    padding: clamp(18px,5vw,25px);
    border: 1px solid #dce8df;
    border-radius: 24px;
    background: #fff;
    color: #1d2821;
    box-shadow: 0 18px 70px #102d2240;
    font: inherit;
    overflow: auto;
}
.apk-winter-dialog::backdrop { background: #112a2270; }
.apk-winter-close {
    position: absolute;
    inset: 12px 12px auto auto;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f0f4f1;
    color: #294336;
    font: 24px/1 system-ui,sans-serif;
    cursor: pointer;
}
.apk-winter-dialog h2 { margin: 0 44px 5px 0; font-size: clamp(19px,5vw,25px); line-height: 1.18; letter-spacing: -.035em; }
.apk-winter-intro { margin: 0; color: #536c5e; font-size: 14px; }
.apk-winter-art { position: relative; display: grid; place-items: center; height: clamp(125px,38vw,165px); overflow: hidden; isolation: isolate; }
.apk-winter-dialog-effects { position: absolute; z-index: 1; --fall: 160px; --snow-fall: 260px; }
.apk-winter-dialog-effects[hidden] { display: none; }
.apk-winter-year { position: absolute; z-index: -1; color: #abd1b8; font-size: clamp(82px,27vw,135px); font-weight: 800; filter: blur(4px); letter-spacing: -.085em; opacity: .55; }
.apk-winter-tree { width: 142px; height: 142px; font-size: 76px; }
.apk-winter-countdown {
    position: relative;
    padding: 13px 12px 14px;
    overflow: hidden;
    border-radius: 15px;
    background: #1d7549;
    color: #fff;
    text-align: center;
}
.apk-winter-countdown h3 { margin: 0; font-size: 15px; line-height: 1.3; }
.apk-winter-clock { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; margin-top: 10px; }
.apk-winter-clock[hidden] { display: none; }
.apk-winter-clock b { display: block; border-radius: 8px; padding: 5px 2px; background: #105735; font-size: clamp(20px,6vw,30px); line-height: 1.12; font-variant-numeric: tabular-nums; }
.apk-winter-clock small { display: block; margin-top: 4px; font-size: 11px; }
.apk-winter-note { margin: 13px 0 0; padding: 12px 14px; border-radius: 13px; background: #f0f5f1; color: #304b3b; font-size: 14px; line-height: 1.45; }
.apk-winter-paused i { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .apk-winter-effects { display: none; } }

@font-face {
    font-family: "Montserrat Black";
    src: url("montserrat-black.woff2") format("woff2");
    font-weight: 900;
    font-display: swap;
    unicode-range: U+0030,U+0032,U+0037;
}
.apk-winter-garland {
    top: env(safe-area-inset-top);
    opacity: 1;
    filter: drop-shadow(0 1px 3px #ffd763a0);
}
.apk-winter-active .site-header { padding-top: calc(24px + env(safe-area-inset-top)); }
.apk-winter-effects i { border: 1px solid #a4bfd777; box-shadow: 0 0 5px #d0e6ff; }
.apk-winter-effects.is-confetti i { border: 0; }
.apk-winter-hat { top: -4px; left: 2px; width: 23px; height: 23px; transform: rotate(-29deg); }
.apk-winter-banner, .apk-winter-countdown {
    isolation: isolate;
    --stripe-width: 3px;
    border-top-left-radius: var(--stripe-width);
    border-bottom-left-radius: var(--stripe-width);
}
.apk-winter-banner { padding-left: 17px; }
.apk-winter-banner::before, .apk-winter-countdown::before {
    z-index: -1;
    inset: 0;
    width: var(--stripe-width);
    right: auto;
    border-radius: 0;
    background: repeating-linear-gradient(22deg,#309c52 0 8px,#fff 8px 16px,#ff5055 16px 24px,#fff 24px 32px);
}

.apk-winter-dialog {
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: linear-gradient(180deg,#e9f5ed 0,#f5f8f6 300px);
    box-shadow: none;
}
.apk-winter-dialog::backdrop { background: #edf5ef; }
.apk-winter-page {
    position: relative;
    width: min(100% - 32px, 620px);
    margin: 0 auto;
    padding: calc(30px + env(safe-area-inset-top)) 0 calc(36px + env(safe-area-inset-bottom));
}
.apk-winter-close {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: auto;
    height: 40px;
    padding: 0 13px;
    margin: 0 0 22px;
    background: #fff9;
    border-radius: 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
}
.apk-winter-dialog h2 { margin: 0 0 7px; font-size: clamp(29px,6vw,46px); }
.apk-winter-dialog h2:focus { outline: none; }
.apk-winter-intro { font-size: 15px; }
.apk-winter-art { height: auto; padding-block: 10px; margin: 4px 0 10px; }
.apk-winter-year {
    position: absolute;
    z-index: -1;
    inset: auto 0 5%;
    color: #78aa88;
    text-align: center;
    font: 900 clamp(90px,26vw,200px)/1 "Montserrat Black",system-ui,sans-serif;
    letter-spacing: -.085em;
    opacity: .54;
    filter: none;
    white-space: nowrap;
}
.apk-winter-year::after {
    content: attr(data-year);
    position: absolute;
    inset: 0;
    filter: blur(9px);
    mask-image: linear-gradient(transparent 28%,#000 48%,#000 57%,transparent 83%);
}
.apk-winter-year > span { display: block; mask-image: linear-gradient(#000 34%,#000 46%,transparent 76%); }
.apk-winter-tree {
    position: relative;
    width: min(100%, clamp(192px,63vw,300px));
    aspect-ratio: 1;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: transparent;
    cursor: pointer;
    touch-action: manipulation;
}
.apk-winter-tree > :is(svg,span) { transform-origin: 50% 84%; }
.apk-winter-countdown { padding: 19px 16px 20px 22px; border: 1px solid #bbdfcb; background: rgb(58 164 102 / 10%); color: #155235; box-shadow: 0 8px 22px #207e3610; }
.apk-winter-countdown h3 { font-size: clamp(16px,4.2vw,22px); }
.apk-winter-clock { gap: clamp(4px,1.6vw,10px); margin-top: 14px; }
.apk-winter-clock b { padding: 9px 2px; background: rgb(32 133 77 / 12%); color: #155235; font-size: clamp(23px,7vw,42px); }
.apk-winter-clock small { margin-top: 7px; color: #3a6952; }
.apk-winter-note { margin-top: 16px; padding: 16px 18px; border: 1px solid #d8e8dc; background: #fff; }
.apk-winter-note h3 { margin: 0 0 9px; color: #214c34; font-size: 17px; }
.apk-winter-note p { margin: 0; }
.apk-winter-note p + p { margin-top: 10px; }
.apk-winter-note strong { color: #155638; }
@media (max-width: 700px) {
    .apk-winter-garland { height: 11px; background-size: 205px 11px; }
    .apk-winter-active .site-header { padding-top: calc(17px + env(safe-area-inset-top)); }
    .apk-winter-year { bottom: 20%; font-size: clamp(88px, 35vw, 185px); }
    .apk-winter-hat { top: -3px; left: 1px; width: 20px; height: 20px; }
}

.apk-winter-banner strong { font-size: clamp(17px, 4.6vw, 21px); }
.apk-winter-banner small { display: block; font-size: 12px; line-height: 1.4; }
.apk-winter-cookie { display: inline-grid; width: 1.18em; height: 1.18em; margin-right: .28em; vertical-align: -.19em; font-size: 1em; }
.apk-winter-gift { width: 52px; height: 52px; font-size: 33px; }
.apk-winter-teaser-gift { display: block; width: 46px; height: auto; }
.apk-contest-teaser {
    display: grid; grid-template-columns: 46px minmax(0,1fr) 20px; align-items: center; gap: 12px;
    margin-top: 13px; padding: 11px 13px; border: 1px solid #bedbff; border-radius: 15px;
    background: #e9f3ff; color: #104792; text-decoration: none;
}
.apk-contest-teaser:hover { background: #e1efff; }
.apk-contest-teaser strong, .apk-contest-teaser small { display: block; }
.apk-contest-teaser strong { font-size: 17px; }
.apk-contest-teaser small { margin-top: 4px; font-size: 13px; color: #315f99; }

.apk-winter-teaser-gift { transform: rotate(-9deg); }

.apk-festival-sky {
    background-color: #dceafa;
    background-image: url("festival-sky.webp");
    background-position: center;
    background-size: 100% 100%;
}
.hero:has(+ .apk-winter-carousel) { padding-bottom: clamp(12px, 3.5vw, 22px); }
.apk-winter-carousel { margin: 0 0 12px; }
.apk-winter-slides {
    display: flex;
    gap: clamp(11px, 3vw, 18px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
}
.apk-winter-slides::-webkit-scrollbar { display: none; }
.apk-winter-slides > .apk-winter-banner { flex: 0 0 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.apk-winter-slides > .apk-winter-banner:focus-visible { outline-offset: -3px; }
.apk-winter-tree-slide {
    border-color: #aed2bc;
    color: #173f32;
    text-decoration: none;
    background-color: #dceee2;
    background-image: linear-gradient(110deg,#d9f0e2ef,#e6f4e9cb 58%,#d1eadee3), url("festival-sky.webp");
    background-size: cover;
    background-position: center 24%;
}
.apk-winter-tree-slide small { color: #365c4e; }
.apk-winter-tree-slide .apk-winter-arrow { color: #39745e; }
.apk-winter-tree-slide:hover { background-color: #e7f6ec; background-image: linear-gradient(110deg,#e1f4e9ed,#eaf7edcb 58%,#d9eee2e3), url("festival-sky.webp"); }
.apk-winter-snowman { width: 52px; height: 52px; font-size: 34px; }
.apk-winter-tree-slide[hidden], .apk-winter-dots[hidden] { display: none; }
.apk-winter-dots { display: flex; justify-content: center; gap: 0; margin-top: 0; }
.apk-winter-dots button {
    display: grid; place-items: center; width: 29px; min-height: 25px; padding: 0;
    border: 0; border-radius: 12px; background: none; cursor: pointer;
}
.apk-winter-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 8px; background: #accfc0; }
.apk-winter-dots button[aria-pressed="true"]::before { width: 23px; background: #278361; }
