.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-gm-bar {
    box-shadow: inset 0 -1px var(--sk-season-frost);
}

/* The desktop navigation keeps its regular layout and seasonal decorations. */
@media (forced-colors: none) {
    .sk-christmas-theme #left-col {
        border-inline-end-color: color-mix(in srgb, var(--sk-season-frost) 45%, var(--sk-season-pine));
    }

    .sk-christmas-theme #left-col .sk-gm[data-layout="desktop"] {
        background: var(--sk-surface-on-image-solid);
    }

    .sk-christmas-theme #left-col .sk-gm[data-layout="desktop"],
    .sk-christmas-theme #left-col .sk-gm[data-layout="desktop"] .sk-gm-scroll {
        scrollbar-color: #a54856 var(--sk-surface-inner);
    }

    @supports selector(::-webkit-scrollbar-thumb) {
        .sk-christmas-theme #left-col .sk-gm[data-layout="desktop"],
        .sk-christmas-theme #left-col .sk-gm[data-layout="desktop"] .sk-gm-scroll {
            /* Standard scrollbar colors and widths suppress the striped pseudo-element. */
            scrollbar-color: auto;
            scrollbar-width: auto;
        }

        .sk-christmas-theme #left-col .sk-gm[data-layout="desktop"]::-webkit-scrollbar,
        .sk-christmas-theme #left-col .sk-gm[data-layout="desktop"] .sk-gm-scroll::-webkit-scrollbar {
            width: 8px;
        }

        .sk-christmas-theme #left-col .sk-gm[data-layout="desktop"]::-webkit-scrollbar-thumb,
        .sk-christmas-theme #left-col .sk-gm[data-layout="desktop"] .sk-gm-scroll::-webkit-scrollbar-thumb {
            background: repeating-linear-gradient(135deg, #913c4a 0 4px, #b8a9a6 4px 8px) content-box;
            border: 1px solid transparent;
            border-radius: 6px;
        }
    }

    .sk-christmas-theme #left-col .sk-gm[data-layout="desktop"] .sk-gm-menu-options {
        background:
            linear-gradient(90deg, color-mix(in srgb, var(--sk-success) 14%, transparent), transparent 40%),
            linear-gradient(160deg, color-mix(in srgb, var(--sk-season-pine) 38%, var(--sk-surface-on-image-solid)), var(--sk-surface-on-image-solid));
    }

    .sk-christmas-theme #left-col .sk-gm :is(.sk-gm-group-head, .sk-gm-section-title) {
        border-block-end: 1px solid color-mix(in srgb, var(--sk-season-frost) 28%, var(--sk-border-subtle));
    }

    .sk-christmas-theme #left-col .sk-gm :is(.sk-disclosure-label, .sk-disclosure-caret, .sk-gm-section-label) {
        color: var(--sk-text);
    }

    .sk-christmas-theme #left-col .sk-gm .sk-gm-item {
        --sk-season-row-accent: #ff827f;
        --sk-season-row-fill: var(--sk-season-cranberry);
    }

    .sk-christmas-theme #left-col .sk-gm .sk-gm-item:nth-child(even of .sk-gm-item) {
        --sk-season-row-accent: #83e3ab;
        --sk-season-row-fill: var(--sk-season-pine);
    }

    .sk-christmas-theme #left-col .sk-gm .sk-gm-item > a.sk-gm-link:is(:hover, :focus-visible) {
        color: var(--sk-text-on-accent);
        background: linear-gradient(90deg, color-mix(in srgb, var(--sk-season-row-accent) 24%, var(--sk-season-row-fill)), var(--sk-season-row-fill));
        box-shadow: inset 2px 0 var(--sk-season-row-accent);
    }

    .sk-christmas-theme #left-col .sk-gm .sk-gm-item > a.sk-gm-link:focus-visible {
        outline: 2px solid var(--sk-season-row-accent);
        outline-offset: -2px;
    }

    .sk-christmas-theme #left-col .sk-gm .sk-gm-item > a.sk-gm-link[aria-current="page"] {
        color: var(--sk-text-on-accent);
        background: linear-gradient(90deg, color-mix(in srgb, var(--sk-season-gold) 26%, var(--sk-season-pine)), var(--sk-season-pine));
        box-shadow: inset 2px 0 var(--sk-season-gold);
    }

    .sk-christmas-theme #left-col .sk-gm .sk-gm-item > a.sk-gm-link[aria-current="page"]::after {
        animation: none;
        content: none;
    }

    .sk-christmas-theme #left-col .sk-gm a.sk-gm-link:is(:hover, :focus-visible, [aria-current="page"]) > .sk-gm-icon {
        color: inherit;
    }
}

/* Font Awesome Solid candy cane. The pencil returns when the theme is turned off. */
.sk-christmas-theme .sk-gm-edit-btn > .fa-pencil-alt::before {
    content: "\f786";
}

@media (forced-colors: none) {
    .sk-christmas-theme .sk-gm-edit-btn > .fa-pencil-alt::before {
        background: repeating-linear-gradient(-35deg, #fff5ed 0 2px, #ff646d 2px 4px);
        background-clip: text;
        color: transparent;
    }
}

.sk-christmas-theme #rewards-page .sk-page-header-art > .fa-gift::before,
.sk-christmas-theme #status-page [data-card="report"] > .sk-card-header > .sk-btn > .fa-flag::before {
    content: "";
    display: block;
    width: 18px;
    height: 20px;
    background: linear-gradient(to bottom, #fff3e8 0 26%, #eb4e5c 26% 70%, #bc3349 100%);
    clip-path: polygon(42% 0, 100% 0, 100% 27%, 92% 27%, 92% 66%, 85% 78%, 38% 100%, 18% 100%, 4% 91%, 0 77%, 7% 64%, 46% 44%, 46% 27%, 42% 27%);
    forced-color-adjust: none;
}

@media (forced-colors: none) {
    .sk-christmas-theme #status-page [data-card="report"] > .sk-card-header > .sk-btn > :is(.fa-image, .fa-flag)::before {
        content: "";
        display: block;
        width: 16px;
        height: 18px;
    }

    .sk-christmas-theme #status-page [data-card="report"] > .sk-card-header > .sk-btn > .fa-image::before {
        background:
            radial-gradient(circle at 39% 18%, #fff5ed 0 5%, transparent 7%),
            radial-gradient(circle at 61% 18%, #fff5ed 0 5%, transparent 7%),
            radial-gradient(circle at 50% 49%, #ff646d 0 7%, transparent 9%),
            radial-gradient(circle at 50% 66%, #fff5ed 0 7%, transparent 9%),
            linear-gradient(#e2a363, #a95831);
        clip-path: polygon(38% 0, 62% 0, 72% 10%, 72% 25%, 65% 33%, 96% 39%, 100% 49%, 94% 57%, 70% 52%, 72% 71%, 86% 91%, 80% 100%, 65% 100%, 50% 81%, 35% 100%, 20% 100%, 14% 91%, 28% 71%, 30% 52%, 6% 57%, 0 49%, 4% 39%, 35% 33%, 28% 25%, 28% 10%);
    }

    .sk-christmas-theme #status-page [data-card="report"] > .sk-card-header > .sk-btn > .fa-user::before {
        content: "\f786" / "";
        font-size: 17px;
        background: repeating-linear-gradient(-35deg, #fff5ed 0 2px, #ff646d 2px 4px);
        background-clip: text;
        color: transparent;
    }
}

.sk-christmas-theme .sk-gm-brand-edition {
    color: 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);
}

.sk-christmas-theme .sk-home-light--station {
    z-index: 1;
    background: none;
    mask-image: none;
    mix-blend-mode: normal;
    filter: none;
    animation: none;
}

.sk-christmas-theme .sk-home-light--station::before,
.sk-christmas-theme .sk-home-light--station::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .35;
}

.sk-christmas-theme .sk-home-light--station::before {
    background:
        radial-gradient(ellipse 3.8% 2.8% at 84% 51.5%, #ffbb5347, transparent 100%),
        radial-gradient(circle at 78.2% 21.25%, #ffe6b8 0 1px, #ffae4d66 5px, transparent 15px),
        radial-gradient(circle at 64.4% 45.3%, #fff2bc 0 2px, #ffc761 4px, transparent 10px),
        radial-gradient(circle at 71.2% 44.7%, #ffd7cd 0 2px, #ff4a42 3.5px, transparent 9px),
        radial-gradient(circle at 78.9% 43.6%, #fff0b2 0 2px, #ffbc59 4px, transparent 10px),
        radial-gradient(circle at 84% 51.1%, #fff4ca 0 2px, #ffd26b 4px, transparent 10px),
        radial-gradient(circle at 92.1% 43.4%, #fff0b2 0 2px, #ffbc59 4px, transparent 10px),
        radial-gradient(circle at 96% 59.3%, #ffd7cd 0 2px, #ff4a42 3.5px, transparent 9px);
}

.sk-christmas-theme .sk-home-light--station::after {
    background:
        radial-gradient(ellipse 2.5% 1.6% at 73.6% 57.1%, #69c8ff70, transparent 100%),
        radial-gradient(circle at 96.1% 66%, #d8f6ff 0 1px, #55bdff80 5px, transparent 16px),
        radial-gradient(circle at 98.2% 12.8%, #ffe6b8 0 1px, #ffae4d66 5px, transparent 14px),
        radial-gradient(circle at 67.7% 45%, #d6ffdf 0 2px, #37ee8a 3.5px, transparent 9px),
        radial-gradient(circle at 75.1% 44.2%, #fff0b2 0 2px, #ffbc59 4px, transparent 10px),
        radial-gradient(circle at 82.7% 43.4%, #ffd7cd 0 2px, #ff4a42 3.5px, transparent 9px),
        radial-gradient(circle at 89.4% 51.5%, #fff5cc 0 2px, #ffd26b 4px, transparent 10px),
        radial-gradient(circle at 96.1% 42.8%, #d6ffdf 0 2px, #37ee8a 3.5px, transparent 9px),
        radial-gradient(circle at 98% 60.4%, #fff0b2 0 2px, #ffbc59 4px, transparent 10px);
}

.sk-christmas-theme .sk-home-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        url("../images/home/christmas-elves.png") 89.6% 57.6% / 3.8% auto no-repeat,
        url("../images/home/christmas-workshop.jpg") center / 100% 100% no-repeat;
    mask-image: linear-gradient(90deg, transparent 53%, #000 60%);
    pointer-events: none;
}

.sk-home-christmas-tree {
    display: none;
}

.sk-christmas-theme .sk-home-christmas-tree {
    --sk-season-tree-star-width: 28%;
    display: block;
    position: absolute;
    inset: 52.348% auto auto 85.0425%;
    height: 8%;
    aspect-ratio: 1 / 2;
    z-index: 2;
    background: var(--sk-season-tree) center / contain no-repeat;
}

.sk-christmas-theme .sk-home-christmas-tree::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .38;
    background:
        radial-gradient(circle at 47% 33%, #fff8da 0, #ffbe42 1.5px, transparent 4px),
        radial-gradient(circle at 64% 45%, #e4fff0 0, #39ed92 1.5px, transparent 4px),
        radial-gradient(circle at 36% 52%, #ffe4dd 0, #ff544b 1.5px, transparent 4px),
        radial-gradient(circle at 56% 65%, #fff8da 0, #ffbe42 1.5px, transparent 4px),
        radial-gradient(circle at 29% 72%, #e4fff0 0, #39ed92 1.5px, transparent 4px),
        radial-gradient(circle at 72% 77%, #ffe4dd 0, #ff544b 1.5px, transparent 4px);
}

.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-light--station::before {
        animation: sk-christmas-bulbs 11s ease-in-out infinite;
    }

    .sk-christmas-theme .sk-home-light--station::after {
        animation: sk-christmas-bulbs 13s ease-in-out -5s infinite;
    }

    .sk-christmas-theme .sk-home-christmas-tree::after {
        animation: sk-christmas-bulbs var(--sk-season-bulb-cycle) ease-in-out 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-light--station::before,
    .sk-christmas-theme :is(.sk-home-backdrop--paused, .sk-home-backdrop--hidden) .sk-home-light--station::after,
    .sk-christmas-theme :is(.sk-home-backdrop--paused, .sk-home-backdrop--hidden) .sk-home-christmas-tree::before,
    .sk-christmas-theme :is(.sk-home-backdrop--paused, .sk-home-backdrop--hidden) .sk-home-christmas-tree::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-nav-bar,
.sk-christmas-theme .sk-gm-bar {
    background-image: var(--sk-season-lights);
    background-position: left bottom;
    background-size: 54px 10px;
    background-repeat: repeat-x;
}

.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-season-surface:has(.sk-session-readings, .sk-session-christmas-tree) > header::after {
        background: var(--sk-season-garland) center top / 75% auto no-repeat;
    }
}

.sk-gm-christmas-tree {
    display: none;
}

.sk-christmas-theme .sk-gm-menu-options > .sk-gm-christmas-tree {
    display: block;
    position: relative;
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, calc(var(--sk-season-menu-tree-height) * .75));
    margin-inline: auto;
    height: var(--sk-season-menu-tree-height);
    background: var(--sk-season-tree) center bottom / contain no-repeat;
    border-radius: var(--sk-radius-sm);
}

.sk-christmas-theme .sk-gm-christmas-tree:is(:hover, :focus-visible) {
    filter: drop-shadow(0 0 7px var(--sk-season-gold));
}

.sk-christmas-theme .sk-gm-christmas-tree:focus-visible {
    outline: 2px solid var(--sk-season-gold);
    outline-offset: 2px;
}

.sk-christmas-theme .sk-gm[data-layout="phone"] .sk-gm-menu-options {
    --sk-season-menu-tree-height: 96px;
}

.sk-christmas-theme :is(.sk-public-nav-bar, .sk-gm-bar, .sk-christmas-toolbar-trim) {
    position: relative;
}

.sk-christmas-theme :is(.sk-public-nav-bar, .sk-gm-bar, .sk-christmas-toolbar-trim)::before,
.sk-christmas-theme :is(.sk-public-nav-bar, .sk-gm-bar, .sk-christmas-toolbar-trim)::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 :is(.sk-public-nav-bar, .sk-gm-bar, .sk-christmas-toolbar-trim)::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 :is(.sk-public-nav-bar, .sk-gm-bar, .sk-christmas-toolbar-trim)::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 :is(.sk-public-nav-bar, .sk-gm-bar, .sk-christmas-toolbar-trim)::before {
        animation: sk-christmas-bulbs var(--sk-season-bulb-cycle) ease-in-out infinite;
    }

    .sk-christmas-theme :is(.sk-public-nav-bar, .sk-gm-bar, .sk-christmas-toolbar-trim)::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-gm-menu-options:has(.sk-christmas-preference:not([hidden])) {
    width: 100%;
    max-width: 13rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 5.25rem), 1fr));
    justify-items: stretch;
    align-items: start;
    gap: .25rem;
}

.sk-gm-menu-options:has(.sk-christmas-preference:not([hidden])) :is(.sk-gm-sound > summary, .sk-christmas-preference) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 2.125rem;
    padding: 0 .3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--sk-text-xs);
    white-space: nowrap;
}

.sk-gm .sk-gm-menu-options :is(.sk-gm-sound > summary, .sk-christmas-preference):is(:hover, :focus-visible, :active) {
    border-color: var(--sk-holiday-button-glow, var(--sk-accent));
    box-shadow: 0 0 10px color-mix(in srgb, var(--sk-holiday-button-glow, var(--sk-accent)) 65%, transparent);
}

.sk-gm .sk-gm-menu-options :is(.sk-gm-sound > summary, .sk-christmas-preference):active {
    box-shadow: 0 0 15px var(--sk-holiday-button-glow, var(--sk-accent));
    filter: brightness(1.2);
}

.sk-christmas-theme .sk-gm-menu-options .sk-gm-sound > summary {
    --sk-holiday-button-glow: var(--sk-success);
    background: color-mix(in srgb, var(--sk-success) 28%, var(--sk-season-pine));
    border-color: var(--sk-success-border);
}

.sk-christmas-theme .sk-gm-menu-options .sk-christmas-preference {
    --sk-holiday-button-glow: var(--sk-danger);
    background: color-mix(in srgb, var(--sk-danger) 28%, var(--sk-season-cranberry));
    border-color: var(--sk-danger-border);
}

@media (forced-colors: none) {
    .sk-christmas-theme .sk-gm a.sk-gm-server {
        --sk-switch-color: var(--sk-season-server-color, var(--sk-success));
        background: color-mix(in srgb, var(--sk-switch-color) 28%, var(--sk-season-pine));
        border-color: color-mix(in srgb, var(--sk-switch-color) 65%, var(--sk-season-pine));
    }

    .sk-christmas-theme .sk-gm a.sk-gm-server:is(:hover, :focus-visible) {
        border-color: var(--sk-switch-color);
        box-shadow: 0 0 10px color-mix(in srgb, var(--sk-switch-color) 65%, transparent);
    }
}

.sk-christmas-theme .sk-gm :is(.sk-gm-search-button, .sk-gm-sound > summary, .sk-christmas-preference) {
    position: relative;
}

.sk-christmas-theme .sk-gm :is(.sk-gm-search-button, .sk-gm-sound > summary, .sk-christmas-preference)::before {
    content: "";
    position: absolute;
    inset: 0 1px auto;
    height: 7px;
    background: var(--sk-season-snow-trim) left top / 90px 100% repeat-x;
    border-radius: inherit;
    pointer-events: none;
}

.sk-christmas-theme .sk-gm-menu-options :is(.sk-gm-sound > summary, .sk-christmas-preference)::after {
    content: "";
    position: absolute;
    inset: auto 1px 0;
    height: 8px;
    background: var(--sk-season-lights) left center / 54px 10px repeat-x;
    border-radius: inherit;
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .sk-christmas-theme .sk-gm-menu-options :is(.sk-gm-sound > summary, .sk-christmas-preference)::after {
        animation: sk-christmas-bulbs var(--sk-season-bulb-cycle) ease-in-out infinite;
    }
}

.sk-christmas-theme {
    --sk-season-snow-trim: url("../images/christmas-snow-trim.png");
    --sk-season-table-snow-height: 14px;
    --sk-season-hanging-lights:
        var(--sk-season-snow-trim) left bottom 9px / 166px 14px repeat-x,
        var(--sk-season-lights) left bottom / 54px 10px repeat-x;
}

.sk-christmas-theme :is(#right-col table, .help-table, .help-page table) > :is(thead, table:not(:has(> thead)) > tbody:first-of-type) > tr:first-child:is(:has(> th), .sk-table > tbody > tr, .sk-table-head, .help-table-head, .help-page tr) {
    position: relative;
}

/* Anchor to the row from inside a cell so fixed-layout tables do not gain a column. */
.sk-christmas-theme :is(#right-col table, .help-table, .help-page table) > :is(thead, table:not(:has(> thead)) > tbody:first-of-type) > tr:first-child:is(:has(> th), .sk-table > tbody > tr, .sk-table-head, .help-table-head, .help-page tr) > :is(th, td):first-child::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: var(--sk-season-table-snow-height);
    background: var(--sk-season-snow-trim) left top / 166px 100% repeat-x;
    pointer-events: none;
}

.sk-christmas-theme :is(#right-col table, .help-table, .help-page table) > :is(thead, table:not(:has(> thead)) > tbody:first-of-type) > tr:first-child:is(:has(> th), .sk-table > tbody > tr, .sk-table-head, .help-table-head, .help-page tr) > :is(th, td) {
    padding-block-start: calc(var(--sk-season-table-snow-height) + 3px);
}

.sk-christmas-theme .sk-gm-bar {
    padding-bottom: 14px;
}

.sk-christmas-theme .sk-gm[data-layout="desktop"] .sk-gm-bar {
    padding-block-end: 23px;
    background: var(--sk-season-hanging-lights);
    box-shadow: none;
}

.sk-christmas-theme .sk-christmas-toolbar-trim {
    display: block !important;
    height: 23px;
    margin: -1px 0 0;
    background: var(--sk-season-hanging-lights);
}

.sk-christmas-theme :is(#sector-page .sector-hero, .missile-page .missile-silo-card) {
    position: relative;
}

.sk-christmas-theme button.sk-christmas-character {
    appearance: none;
    min-width: 0;
    box-shadow: none;
    display: block !important;
    position: absolute;
    inset: auto 15px calc(100% - var(--sk-season-character-overhang, 21px)) auto;
    z-index: 1;
    width: var(--sk-season-character-width, 50px);
    height: 75px;
    padding: 0;
    border: 0;
    background-color: transparent;
    background-image: var(--sk-season-character-art);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
}

.sk-christmas-theme .sk-christmas-character--elf {
    --sk-season-character-overhang: 25px;
    --sk-season-character-art: url("../images/christmas-sector-elf.png");
}

.sk-christmas-theme #sector-page button.sk-christmas-character--elf {
    --sk-season-character-width: 50px;
    width: var(--sk-season-character-width);
    inset-inline-start: min(
        calc(15px + var(--sk-season-character-width) * var(--sk-elf-position, 0)),
        calc(100% - 15px - var(--sk-season-character-width))
    );
    inset-inline-end: auto;
    animation: sk-sector-elf-appear 0s var(--sk-elf-delay, 5s) backwards;
}

@keyframes sk-sector-elf-appear {
    from { visibility: hidden; }
    to { visibility: visible; }
}

@media (max-width: 767px) {
    .sk-christmas-theme #sector-page button.sk-christmas-character--elf {
        --sk-season-character-width: 40px;
    }
}

.sk-christmas-theme .sk-christmas-character--grouch {
    --sk-season-character-width: 68px;
    height: 75px;
    inset-inline-end: 5px;
    --sk-season-character-art: url("../images/christmas-silo-grouch.png");
}

.sk-christmas-theme button.sk-christmas-character:is(:hover, :active, :focus) {
    background-color: transparent;
    box-shadow: none;
}

.sk-christmas-character:focus-visible {
    outline: 2px solid var(--sk-season-frost);
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .sk-christmas-theme :is(#sector-page .sector-hero, .missile-page .missile-silo-card) {
        margin-block-start: 39px;
    }

    .sk-christmas-theme button.sk-christmas-character {
        width: 40px;
        height: 50px;
        inset-inline-end: 6px;
    }
}

.sk-christmas-theme .sk-gm-menu-options {
    --sk-season-menu-tree-height: clamp(64px, 13dvh, 160px);
    position: relative;
}

.sk-christmas-theme .sk-session-christmas-tree.sk-session-logo {
    --sk-season-tree-star-width: 28%;
    position: relative;
    width: clamp(5rem, 18vw, 9.5rem);
    aspect-ratio: 1 / 2;
    background: var(--sk-season-tree) center / contain no-repeat;
}

@property --sk-tree-white-wave {
    syntax: "<number>";
    inherits: false;
    initial-value: .47;
}

.sk-christmas-theme :is(.sk-gm-christmas-tree, .sk-home-christmas-tree, .sk-session-christmas-tree)::before {
    content: "";
    position: absolute;
    inset: 5.8% auto auto 50%;
    width: var(--sk-season-tree-star-width, clamp(9px, calc(var(--sk-season-menu-tree-height) * .14), 22px));
    aspect-ratio: 1;
    translate: -50% -50%;
    background: radial-gradient(circle, #fff6dd 0, var(--sk-season-gold) 24%, transparent 68%);
    opacity: .24;
    pointer-events: none;
}

.sk-christmas-theme :is(.sk-gm-christmas-tree, .sk-session-christmas-tree)::after {
    content: "";
    position: absolute;
    inset: 0 auto auto 50%;
    transform: translateX(-50%);
    height: 100%;
    aspect-ratio: 1 / 2;
    pointer-events: none;
    --sk-tree-white-a: rgb(255 245 220 / var(--sk-tree-white-wave, .47));
    --sk-tree-white-b: rgb(255 245 220 / calc(.94 - var(--sk-tree-white-wave, .47)));
    background:
        radial-gradient(circle at 47% 33%, var(--sk-tree-white-b) 0 2px, transparent 4px),
        radial-gradient(circle at 64% 45%, var(--sk-tree-white-a) 0 2px, transparent 4px),
        radial-gradient(circle at 36% 52%, var(--sk-tree-white-b) 0 2px, transparent 5px),
        radial-gradient(circle at 56% 65%, var(--sk-tree-white-a) 0 2px, transparent 4px),
        radial-gradient(circle at 29% 72%, var(--sk-tree-white-b) 0 2px, transparent 4px),
        radial-gradient(circle at 72% 77%, var(--sk-tree-white-a) 0 2px, transparent 5px);
}

@media (prefers-reduced-motion: no-preference) {
    .sk-christmas-theme :is(.sk-gm-christmas-tree, .sk-home-christmas-tree, .sk-session-christmas-tree)::before {
        animation: sk-christmas-tree-star-twinkle 7s ease-in-out infinite;
    }

    .sk-christmas-theme :is(.sk-gm-christmas-tree, .sk-session-christmas-tree)::after {
        animation: sk-christmas-tree-wave 8s ease-in-out infinite;
    }
}

@keyframes sk-christmas-tree-star-twinkle {
    0%, 32%, 100% { opacity: .24; }
    43% { opacity: .58; }
    54% { opacity: .32; }
    64% { opacity: .45; }
    77% { opacity: .24; }
}

@keyframes sk-christmas-tree-wave {
    0%, 100% { --sk-tree-white-wave: .24; }
    50% { --sk-tree-white-wave: .7; }
}

.sk-christmas-theme #right-col :is(.explore-readings, .sk-card:not(.sk-card--tile-mini, .sk-card--hud, .sk-card:has(table, .sk-card), [role=alert])):not(:is(.sk-modal, .sk-drawer) *) {
    position: relative;
}

.sk-christmas-theme .sk-sector-chat::before,
.sk-christmas-theme #right-col :is(.explore-readings, .sk-card:not(.sk-card--tile-mini, .sk-card--hud, .sk-card:has(table, .sk-card), [role=alert])):not(:is(.sk-modal, .sk-drawer) *)::before {
    content: "";
    position: absolute;
    inset: 0 2px auto;
    height: 12px;
    border-radius: inherit;
    background: var(--sk-season-snow-trim) left top / 142px 100% repeat-x;
    pointer-events: none;
}

.sk-christmas-theme .sk-sector-chat [data-chat-layout-toggle] {
    --sk-season-chat-control: var(--sk-season-bulb-green);
}

.sk-christmas-theme .sk-sector-chat [data-chat-toggle] {
    --sk-season-chat-control: var(--sk-season-bulb-red);
}

.sk-christmas-theme .sk-sector-chat :is([data-chat-layout-toggle], [data-chat-toggle]) {
    color: #fff;
    border-color: var(--sk-season-chat-control);
    background: color-mix(in srgb, var(--sk-season-chat-control) 42%, #10131e);
}

.sk-christmas-theme .sk-sector-chat :is([data-chat-layout-toggle], [data-chat-toggle]):is(:hover, :focus-visible) {
    background: color-mix(in srgb, var(--sk-season-chat-control) 52%, #10131e);
}

.sk-christmas-theme .sk-sector-chat .sk-sector-chat-resize {
    position: relative;
}

@media (max-width: 768px) {
    .sk-christmas-theme .sk-christmas-toolbar-trim {
        display: none !important;
    }

    .sk-christmas-theme .sk-sector-chat {
        padding-block-start: 12px;
    }
}

.sk-christmas-theme .sk-status-round-end {
    position: relative;
}

.sk-christmas-theme .sk-christmas-character--santa {
    --sk-season-character-art: url("../images/christmas-status-santa.png");
    --sk-season-character-width: 56px;
}

.sk-christmas-theme button.sk-christmas-character--santa {
    inset-block-end: calc(100% - 6px);
    inset-inline: 32px auto;
    height: 55px;
    background-image: none;
}

.sk-christmas-theme button.sk-christmas-character--santa::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 75px;
    background: var(--sk-season-character-art) center top / contain no-repeat;
    pointer-events: none;
}

@media (max-width: 767px) {
    .sk-christmas-theme button.sk-christmas-character--santa {
        height: 35px;
    }

    .sk-christmas-theme button.sk-christmas-character--santa::before {
        height: 50px;
    }

    .sk-christmas-theme .status-overview-toolbar {
        margin-block-start: 44px;
    }
}

.sk-christmas-theme .sk-christmas-character--rudolph {
    --sk-season-character-art: url("../images/christmas-achievements-rudolph.png");
    --sk-season-character-width: 64px;
    --sk-season-character-overhang: 18px;
}

.sk-christmas-theme .sk-christmas-character--rudolph::after {
    content: "";
    position: absolute;
    inset: 18.3px auto auto calc(50% + 10.2px);
    width: 14px;
    aspect-ratio: 1;
    translate: -50% -50%;
    background: radial-gradient(circle, #ffe1da 0, #ff665a 20%, #ff272a80 38%, transparent 70%);
    opacity: .72;
    pointer-events: none;
}

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

@media (max-width: 767px) {
    .sk-christmas-theme .sk-christmas-character--rudolph::after {
        inset: 12.3px auto auto calc(50% + 6.7px);
        width: 10px;
    }

    .sk-christmas-theme .sk-achievement-hero {
        margin-block-start: 34px;
    }
}

.sk-christmas-theme button.sk-christmas-character--jack {
    --sk-season-character-art: url("../images/christmas-money-reward-jack.webp");
    --sk-season-character-width: 60px;
    --sk-season-character-overhang: 2px;
    inset-inline: 12px auto;
    background-position: bottom;
}

@media (max-width: 991px) {
    .sk-christmas-theme .sk-grid:has(> .sk-money-reward) {
        margin-block-start: 50px;
    }

    .sk-christmas-theme button.sk-christmas-character--jack {
        width: 40px;
        height: 50px;
    }
}

.sk-christmas-theme #sector-page .sk-sector-table-tools::after {
    content: "";
    flex: 0 0 100%;
    height: clamp(27px, 4vw, 48px);
    background: url("../images/christmas-sector-swag.png") center / 370px 100% round no-repeat;
    pointer-events: none;
}
