[data-cultsmas-demo] .cult-os-scene { isolation: isolate; }
.cultsmas-sky {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(ellipse at 65% 5%, #102844 0, #071426 46%, #020711 100%);
    pointer-events: none;
}
.cultsmas-stars { position: absolute; inset: 0; opacity: .75; }
.cultsmas-tree {
    position: absolute;
    bottom: -24px;
    height: min(48vh, 480px);
    width: auto;
    max-width: 32vw;
    object-fit: contain;
    object-position: bottom;
    opacity: .6;
    filter: brightness(.72) saturate(.95);
}
.cultsmas-tree--left { left: -24px; }
.cultsmas-tree--right { right: -24px; }
.cultsmas-stars i {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #daeafa;
    box-shadow: 0 0 5px 1px #b0d5fc55;
    animation: cultsmas-twinkle 6s ease-in-out infinite alternate;
}
@keyframes cultsmas-twinkle { from { opacity: .4; } to { opacity: .9; } }
.cultsmas-slay-flight {
    position: absolute;
    width: clamp(180px, 28.5vw, 390px);
    top: 22%;
    left: 100%;
    opacity: 0;
}
.cultsmas-slay {
    display: block;
    width: 100%;
    height: auto;
    filter: brightness(.5) saturate(.75);
}
.cultsmas-slay-flight.is-passing { animation: cultsmas-slay-pass 24s linear both; }
.cultsmas-slay-flight.is-passing .cultsmas-slay { animation: cultsmas-slay-bob 3s ease-in-out infinite alternate; }
@keyframes cultsmas-slay-pass {
    0% { transform: translateX(10%); opacity: 0; }
    8%, 92% { opacity: .48; }
    100% { transform: translateX(calc(-100vw - 110%)); opacity: 0; }
}
@keyframes cultsmas-slay-bob {
    from { transform: translateY(25px) rotate(-4deg); }
    to { transform: translateY(-30px) rotate(3deg); }
}
.is-cultsmas .cult-os-background-mark { opacity: .065; }
.is-cultsmas .cult-os-app-icon-label { text-shadow: 0 2px 4px #000, 0 0 8px #000; }
.is-cultsmas .cult-os-status-strip { isolation: isolate; z-index: 20; overflow: visible; }
.is-cultsmas .cult-os-folder-titlebar { position: relative; overflow: visible; }
.is-cultsmas .cult-os-folder-titlebar::before,
.is-cultsmas .cult-os-status-strip::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 14px;
    background: linear-gradient(#f1f7ff, #b5c9df);
    --snow-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 24' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 0H600V11 Q586 9 579 17 T557 17 Q545 7 532 15 T507 17 Q494 9 481 20 T455 17 Q442 10 431 15 T402 18 Q390 6 377 16 T351 20 Q334 12 322 15 T295 20 Q284 10 269 16 T244 17 Q230 9 218 18 T192 18 Q178 10 164 16 T137 18 Q123 9 111 20 T85 17 Q70 9 58 17 T31 19 Q15 11 0 14Z'/%3E%3C/svg%3E");
    -webkit-mask: var(--snow-shape) center / 100% 100% no-repeat;
    mask: var(--snow-shape) center / 100% 100% no-repeat;
    pointer-events: none;
    z-index: 2;
}
.is-cultsmas .cult-os-folder-titlebar::before {
    top: -10px;
    left: -1px;
    right: -1px;
    height: 18px;
}
.cultsmas-lights {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -14px;
    height: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    border-top: 1px solid #172c22;
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
}
.cultsmas-bulb {
    width: 6px;
    height: 9px;
    margin-top: 3px;
    position: relative;
    border-radius: 35% 35% 55% 55%;
    background: var(--bulb);
    box-shadow: 0 0 5px 2px var(--bulb), 0 0 15px 3px color-mix(in srgb, var(--bulb) 60%, transparent);
    opacity: 1;
    transform: rotate(var(--tilt));
}
.cultsmas-bulb::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 1px;
    width: 3px;
    height: 3px;
    background: #162b20;
}
.cultsmas-bulb:nth-child(7n) { animation: cultsmas-bulb-blink 3.8s steps(1, end) infinite; animation-delay: -.8s; }
.cultsmas-bulb:nth-child(9n + 3) { animation: cultsmas-bulb-blink 5.1s steps(1, end) infinite; animation-delay: -2.2s; }
.cultsmas-bulb:nth-child(13n + 5) { background: #27302c; box-shadow: none; opacity: .55; animation: none; }
@keyframes cultsmas-bulb-blink {
    0%, 35%, 48%, 72% { opacity: 1; }
    30%, 43%, 66% { opacity: .12; box-shadow: none; }
}
.cult-os-folder-titlebar .cultsmas-lights { opacity: .95; bottom: -10px; }
.cultsmas-logo-group { grid-area: logo; position: relative; justify-self: center; width: var(--cult-os-header-logo-link-width); }
@media (min-width: 821px) {
    .is-cultsmas .cult-os-status-socials--desktop { padding-left: 48px; }
}
@media (min-width: 821px) and (max-width: 1100px) {
    .is-cultsmas .cult-os-status-socials--desktop { --cult-os-header-social-size: 28px; --cult-os-header-social-icon-size: 18px; gap: 4px; }
}
.cultsmas-snow-button {
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    padding: 6px;
    border: 1px solid #a8c2df55;
    border-radius: 50%;
    background: #0a1928;
    color: #d6eaff;
    cursor: pointer;
    z-index: 3;
}
.cultsmas-snow-button img { width: 100%; height: 100%; object-fit: contain; }
.cultsmas-snow-button:hover { background: #19324b; }
.cultsmas-snow-button:focus-visible { outline: 2px solid #f1daac; outline-offset: 4px; }
.cultsmas-snow-button.is-snowing { box-shadow: 0 0 12px #a8d8ff55; }
.cultsmas-snowfall {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 15;
}
.cultsmas-shaking .cult-os-icon-stage { animation: cultsmas-rattle .55s ease-out; }
.cultsmas-shaking .cultsmas-lights { animation: cultsmas-light-sway .65s ease-out; transform-origin: top center; }
@keyframes cultsmas-rattle {
    15% { transform: translate(-3px, 2px); }
    30% { transform: translate(3px, -2px); }
    50% { transform: translate(-2px, 1px); }
    70% { transform: translate(1px, -1px); }
}
@keyframes cultsmas-light-sway { 20% { transform: rotate(.7deg); } 45% { transform: rotate(-.5deg); } 70% { transform: rotate(.2deg); } }
.cultsmas-demo-controls {
    color: #c2d2df;
    background: #071321f2;
    border-color: #647c9166;
}
.cultsmas-demo-controls summary { cursor: pointer; color: #e1c88e; }
.cultsmas-demo-controls label { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.cultsmas-demo-controls .cult-os-control-option { align-items: flex-start; }
.cultsmas-demo-controls select, .cultsmas-demo-controls button {
    color: #d7e3ed;
    background: #152536;
    border: 1px solid #536879;
    border-radius: 3px;
    padding: 5px 8px;
}
.cultsmas-demo-controls button { cursor: pointer; }
.cultsmas-demo-controls a { text-decoration: underline; }
.cultsmas-demo-controls output { display: block; color: #8cabbf; margin-top: 10px; font-size: 10px; }
.cultsmas-demo-controls p { margin: 6px 0 0; }
.cultsmas-window-content { padding: 40px; max-width: 680px; font: 16px/1.7 'Courier New', monospace; }
.cultsmas-window-content h2 { font-family: 'Permanent Marker', cursive; font-size: 32px; font-weight: 400; color: #e0c58f; }
.cultsmas-window-content a { text-decoration: underline; color: #c1d5e7; }
.cultsmas-window-eyebrow { color: #9bb3c9; font-size: 12px; }
body:not(.is-cultsmas) .cultsmas-sky,
body:not(.is-cultsmas) .cultsmas-lights,
body:not(.is-cultsmas) .cultsmas-snow-button { display: none; }
body[data-effects="low"] .cultsmas-stars i,
body[data-effects="low"] .cultsmas-bulb { animation: none; }
body.cultsmas-paused .cultsmas-stars i,
body.cultsmas-paused .cultsmas-bulb,
body.cultsmas-paused .cultsmas-slay-flight,
body.cultsmas-paused .cultsmas-slay { animation-play-state: paused; }
@media (max-width: 820px) {
    .cultsmas-trees { display: none; }
    .cultsmas-snow-button { width: 30px; height: 30px; padding: 5px; }
    .cultsmas-lights { bottom: -12px; }
    .cultsmas-bulb:nth-child(even) { visibility: hidden; }
    .cultsmas-window-content { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .cultsmas-stars i, .cultsmas-bulb, .cultsmas-slay-flight, .cultsmas-slay,
    .cultsmas-shaking .cult-os-icon-stage, .cultsmas-shaking .cultsmas-lights { animation: none !important; }
}
