.sk-christmas-theme {
    --sk-season-frost: #abd8ee;
    --sk-season-gold: #eecb8a;
    --sk-season-pine: #142c28;
    --sk-season-cranberry: #3a2029;
    --sk-season-bulb-cycle: 8s;
    --sk-season-garland: url("../images/christmas-garland.png");
}

.sk-christmas-theme.sk-public-season-surface .sk-public-nav-bar,
.sk-christmas-theme.sk-public-season-surface .sk-public-nav-menu {
    background: linear-gradient(115deg, var(--sk-season-pine), var(--sk-surface-on-image) 39% 61%, var(--sk-season-cranberry));
    border-color: var(--sk-season-frost);
}

.sk-christmas-theme.sk-public-season-surface > header::after {
    content: "";
    display: block;
    width: min(86%, 336px);
    aspect-ratio: 3 / 1;
    margin: 0 auto var(--sk-space-3);
    background: var(--sk-season-garland) center / contain no-repeat;
    pointer-events: none;
}

.sk-christmas-theme .sk-public-nav-logo img {
    filter: drop-shadow(0 0 7px var(--sk-season-gold));
}

.sk-christmas-theme .sk-public-footer {
    border-top: 1px solid var(--sk-season-gold);
}

.sk-christmas-theme {
    --sk-season-tree: url("../images/christmas-tree.png");
    --sk-season-bulb-gold: #ffba32;
    --sk-season-bulb-red: #eb6f63;
    --sk-season-bulb-green: #75b898;
    --sk-season-lights: radial-gradient(circle at 8px 5px, #fff3a8 0 1.5px, var(--sk-season-bulb-gold) 2.8px, transparent 6px),
        radial-gradient(circle at 26px 5px, #ffc2b7 0 2px, color-mix(in srgb, var(--sk-season-bulb-red) 37%, transparent) 2.5px, transparent 5px),
        radial-gradient(circle at 44px 5px, #c8f8db 0 2px, color-mix(in srgb, var(--sk-season-bulb-green) 46%, transparent) 2.5px, transparent 5px);
}

/* Follow the forward hull edge and the upper deck of the original ship art. */
.sk-christmas-theme .sk-home-ship-frost::before,
.sk-christmas-theme .sk-home-ship-frost::after {
    content: "";
    position: absolute;
    z-index: 1;
    height: .9%;
    background: url("../images/christmas-snow-trim.png") left top / auto 100% repeat-x;
    transform-origin: left top;
    pointer-events: none;
}

.sk-christmas-theme .sk-home-ship-frost::before {
    left: 59%;
    top: 51.5%;
    width: 42%;
    opacity: .52;
    transform: rotate(-7deg);
}

.sk-christmas-theme .sk-home-ship-frost::after {
    left: 80.8%;
    top: 36.7%;
    width: 20%;
    opacity: .4;
    transform: rotate(-17deg);
}

/* Color the existing window banks on the Orbital Blockade artwork. Color blending
   keeps the frames dark and preserves the shapes and brightness of the lit panes. */
.sk-christmas-theme .sk-home-ship-windows::before,
.sk-christmas-theme .sk-home-ship-windows::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    opacity: .75;
    mix-blend-mode: color;
}

.sk-christmas-theme .sk-home-ship-windows::before {
    background:
        radial-gradient(ellipse 1.5% .75% at 65.3% 50.2%, #ff544b 60%, transparent),
        radial-gradient(ellipse 1.9% .85% at 71.2% 49.1%, #39ed92 60%, transparent),
        radial-gradient(ellipse 2.1% .9% at 76.6% 48.7%, #ffbe42 60%, transparent),
        radial-gradient(ellipse 1.8% .85% at 85.9% 36.1%, #ff544b 60%, transparent),
        radial-gradient(ellipse 1.8% .95% at 96% 44.3%, #39ed92 60%, transparent),
        radial-gradient(ellipse 1% 1.4% at 82.2% 59.6%, #ffbe42 60%, transparent);
}

.sk-christmas-theme .sk-home-ship-windows::after {
    background:
        radial-gradient(ellipse 1.5% .75% at 68.2% 49.8%, #ffbe42 60%, transparent),
        radial-gradient(ellipse 1.4% .85% at 74.1% 48.8%, #ff544b 60%, transparent),
        radial-gradient(ellipse 1.8% .85% at 79.7% 48.5%, #39ed92 60%, transparent),
        radial-gradient(ellipse 1.6% .75% at 89.6% 45.5%, #ffbe42 60%, transparent),
        radial-gradient(ellipse 1.2% .85% at 97.8% 44%, #ff544b 60%, transparent),
        radial-gradient(ellipse 1.4% .85% at 90% 67.9%, #39ed92 60%, transparent);
}

.sk-christmas-theme .sk-home-stars::before {
    content: "";
    position: absolute;
    width: clamp(64px, 7vw, 180px);
    aspect-ratio: 3 / 1;
    left: 7%;
    top: 54%;
    transform: scale(.62) rotate(5deg);
    background: url("../images/home/christmas-sleigh.png") center / contain no-repeat;
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .sk-christmas-theme .sk-home-stars::before {
        animation: sk-christmas-flight 4.5s ease-out both, sk-christmas-sleigh-glow 8s ease-in-out infinite;
    }

    .sk-christmas-theme .sk-home-ship-windows::before {
        animation: sk-christmas-bulbs var(--sk-season-bulb-cycle) ease-in-out infinite;
    }

    .sk-christmas-theme .sk-home-ship-windows::after {
        animation: sk-christmas-bulbs var(--sk-season-bulb-cycle) ease-in-out -4s infinite;
    }

    .sk-christmas-theme :is(.sk-home-backdrop--paused, .sk-home-backdrop--hidden) .sk-home-stars::before,
    .sk-christmas-theme :is(.sk-home-backdrop--paused, .sk-home-backdrop--hidden) .sk-home-ship-windows::before,
    .sk-christmas-theme :is(.sk-home-backdrop--paused, .sk-home-backdrop--hidden) .sk-home-ship-windows::after {
        animation-play-state: paused;
    }
}

@keyframes sk-christmas-bulbs {
    0%, 100% { opacity: .38; }
    50% { opacity: .8; }
}

@keyframes sk-christmas-sleigh-glow {
    0%, 100% { filter: drop-shadow(0 0 2px #f5bf6b38); }
    50% { filter: drop-shadow(0 0 4px #ffe0a06b); }
}

@keyframes sk-christmas-flight {
    from {
        transform: translate(8vw, -7vh) scale(.9) rotate(3deg);
    }

    to {
        transform: scale(.62) rotate(5deg);
    }
}

.sk-christmas-theme .sk-public-nav-bar {
    box-shadow: inset 0 1px var(--sk-season-frost), 0 0 24px #e9a25426;
}

.sk-christmas-theme.sk-public-season-surface .sk-public-nav-bar {
    background-image: var(--sk-season-lights),
        linear-gradient(115deg, var(--sk-season-pine), var(--sk-surface-on-image) 39% 61%, var(--sk-season-cranberry));
    background-position: left bottom, center;
    background-size: 54px 10px, 100% 100%;
    background-repeat: repeat-x, no-repeat;
}

.sk-christmas-theme::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 15px 18px, #ecf8ffd9 0 1px, transparent 2px),
        radial-gradient(circle at 70px 54px, #b4d3edaa 0 1px, transparent 2px),
        radial-gradient(circle at 34px 112px, #f6fbffd0 0 1.5px, transparent 3px),
        radial-gradient(circle at 159px 175px, #eaf6ff9c 0 1px, transparent 2.5px);
    background-size: 123px 147px, 177px 205px, 211px 241px, 251px 298px;
    mask-image: linear-gradient(90deg, #000 0%, #0008 13%, transparent 28% 72%, #0008 87%, #000);
}

@media (prefers-reduced-motion: no-preference) {
    .sk-christmas-theme::before {
        animation: sk-christmas-snow 4.5s linear both;
    }

    .sk-christmas-theme:has(.sk-home-motion[aria-pressed="true"])::before {
        animation-play-state: paused;
    }
}

@keyframes sk-christmas-snow {
    to {
        background-position: 14px 62px, -9px 44px, 19px 108px, -13px 80px;
    }
}

@media (max-width: 1099px) {
    .sk-christmas-theme.sk-public-season-surface > header::after {
        background: var(--sk-season-tree) left bottom / auto 80% no-repeat,
            var(--sk-season-garland) right top / 75% auto no-repeat;
    }

}
.sk-christmas-theme .sk-public-nav-bar {
    position: relative;
}

.sk-christmas-theme .sk-public-nav-bar::before,
.sk-christmas-theme .sk-public-nav-bar::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 10px;
    border-radius: inherit;
    pointer-events: none;
    opacity: .35;
    background-size: 108px 10px;
    background-repeat: repeat-x;
}

.sk-christmas-theme .sk-public-nav-bar::before {
    background-image:
        radial-gradient(circle at 8px 5px, #fff8da 0 2px, #ffbe42 3.5px, transparent 7px),
        radial-gradient(circle at 44px 5px, #e4fff0 0 2px, #39ed92 3.5px, transparent 7px),
        radial-gradient(circle at 80px 5px, #ffe4dd 0 2px, #ff544b 3.5px, transparent 7px);
}

.sk-christmas-theme .sk-public-nav-bar::after {
    background-image:
        radial-gradient(circle at 26px 5px, #ffe4dd 0 2px, #ff544b 3.5px, transparent 7px),
        radial-gradient(circle at 62px 5px, #fff8da 0 2px, #ffbe42 3.5px, transparent 7px),
        radial-gradient(circle at 98px 5px, #e4fff0 0 2px, #39ed92 3.5px, transparent 7px);
}

@media (prefers-reduced-motion: no-preference) {
    .sk-christmas-theme .sk-public-nav-bar::before {
        animation: sk-christmas-bulbs var(--sk-season-bulb-cycle) ease-in-out infinite;
    }

    .sk-christmas-theme .sk-public-nav-bar::after {
        animation: sk-christmas-bulbs var(--sk-season-bulb-cycle) ease-in-out -4s infinite;
    }

    .sk-christmas-theme:has(.sk-home-motion[aria-pressed="true"]) .sk-public-nav-bar::before,
    .sk-christmas-theme:has(.sk-home-motion[aria-pressed="true"]) .sk-public-nav-bar::after {
        animation-play-state: paused;
    }
}

.sk-christmas-theme :is(#right-col table, .help-table) > :is(thead, tbody:first-of-type) > tr:first-child:has(> th) > th {
    background-image: url("../images/christmas-snow-trim.png");
    background-position: left top;
    background-repeat: repeat-x;
    background-size: 166px 7px;
    padding-block-start: 10px;
}
