.lake-background {
    background-color: #09090b;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.rain-deep-bg {
    position: fixed;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.15));
    width: 0.75px;
    height: 15px;
    filter: blur(1.5px);
    pointer-events: none;
    z-index: 1;
    animation: fall-deep-bg linear infinite;
}
.rain-mid {
    position: fixed;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.35));
    width: 1px;
    height: 25px;
    filter: blur(0.5px);
    pointer-events: none;
    z-index: 1;
    animation: fall-mid linear infinite;
}
.rain-fg {
    position: fixed;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.75));
    width: 2px;
    height: 45px;
    filter: blur(0px);
    pointer-events: none;
    z-index: 1;
    animation: fall-fg linear infinite;
}

@keyframes fall-deep-bg {
    0% { transform: translateY(-30px) skewX(-6deg); }
    100% { transform: translateY(105vh) skewX(-6deg); }
}
@keyframes fall-mid {
    0% { transform: translateY(-40px) skewX(-5deg); }
    100% { transform: translateY(105vh) skewX(-5deg); }
}
@keyframes fall-fg {
    0% { transform: translateY(-50px) skewX(-4deg); }
    100% { transform: translateY(105vh) skewX(-4deg); }
}

.perspective-ripple {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    transform: scale(0.1) rotateX(60deg);
    animation: perspective-ripple-effect 0.65s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes perspective-ripple-effect {
    0% {
        transform: scale(0.1) rotateX(65deg);
        opacity: 0.9;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: scale(2.6) rotateX(45deg);
        opacity: 0;
    }
}

.snow-deep-bg,
.snow-mid,
.snow-fg {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.35));
    animation: snow-fall linear infinite;
}
.snow-deep-bg {
    width: 3px;
    height: 3px;
    filter: blur(1.4px);
    opacity: 0.45;
}
.snow-mid {
    width: 5px;
    height: 5px;
    filter: blur(0.6px);
    opacity: 0.7;
}
.snow-fg {
    width: 7px;
    height: 7px;
    filter: blur(0px);
    opacity: 0.92;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.45);
}

@keyframes snow-fall {
    0% { transform: translate3d(0, -20px, 0); }
    100% { transform: translate3d(var(--snow-drift, 18px), 105vh, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .rain-deep-bg,
    .rain-mid,
    .rain-fg,
    .snow-deep-bg,
    .snow-mid,
    .snow-fg,
    .perspective-ripple {
        animation: none !important;
    }
}

.window-glass {
    position: absolute;
    inset: 0;
    z-index: 25;
    pointer-events: none;
    opacity: 0;
    background: none;
}
.window-glass.is-rain {
    opacity: 0.45;
    background-image: url("Images/window rain.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    mix-blend-mode: screen;
    filter: contrast(1.25);
}
.window-glass.is-frost {
    opacity: 1;
    mix-blend-mode: normal;
    background-image:
        radial-gradient(ellipse at 18% 8%, rgba(255, 255, 255, 0.55) 0 12%, transparent 38%),
        radial-gradient(ellipse at 86% 14%, rgba(230, 244, 255, 0.42) 0 10%, transparent 36%),
        radial-gradient(ellipse at 12% 88%, rgba(255, 255, 255, 0.38) 0 14%, transparent 42%),
        radial-gradient(ellipse at 78% 92%, rgba(210, 230, 255, 0.4) 0 16%, transparent 44%),
        repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 7px);
    box-shadow:
        inset 0 0 18px rgba(255, 255, 255, 0.4),
        inset 0 0 48px rgba(170, 205, 235, 0.28);
    -webkit-backdrop-filter: blur(2.4px) brightness(1.12) saturate(0.85);
    backdrop-filter: blur(2.4px) brightness(1.12) saturate(0.85);
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.15) 28%, #000 78%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.15) 28%, #000 78%);
}
.window-glass.is-clear {
    opacity: 0;
    background: none;
    mix-blend-mode: normal;
    filter: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.window-holiday {
    position: absolute;
    inset: 0;
    z-index: 24;
    pointer-events: none;
    opacity: 0;
    background: none;
}
.window-holiday.is-on {
    opacity: 1;
}
.window-holiday.is-halloween {
    background:
        radial-gradient(ellipse at 50% 115%, rgba(255, 122, 24, 0.42), transparent 58%),
        linear-gradient(180deg, rgba(40, 10, 0, 0.28), transparent 42%);
    mix-blend-mode: overlay;
    box-shadow: inset 0 0 48px rgba(180, 60, 0, 0.35);
}
.window-holiday.is-thanksgiving {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(212, 160, 72, 0.28), transparent 50%),
        linear-gradient(180deg, rgba(80, 32, 8, 0.18), transparent 45%);
    mix-blend-mode: soft-light;
    box-shadow: inset 0 0 40px rgba(140, 70, 20, 0.28);
}
.window-holiday.is-christmas {
    background:
        radial-gradient(ellipse at 50% 120%, rgba(180, 40, 32, 0.22), transparent 55%),
        linear-gradient(180deg, rgba(18, 48, 28, 0.28), transparent 48%),
        radial-gradient(circle at 12% 10%, rgba(232, 196, 120, 0.45) 0 4px, transparent 10px),
        radial-gradient(circle at 88% 12%, rgba(220, 60, 48, 0.4) 0 3px, transparent 9px),
        radial-gradient(circle at 18% 88%, rgba(220, 60, 48, 0.35) 0 3px, transparent 8px),
        radial-gradient(circle at 82% 86%, rgba(232, 196, 120, 0.4) 0 4px, transparent 10px);
    mix-blend-mode: overlay;
    box-shadow: inset 0 0 36px rgba(20, 60, 32, 0.3);
}
.window-holiday.is-new-year {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(232, 214, 150, 0.28), transparent 46%),
        linear-gradient(180deg, rgba(20, 24, 40, 0.22), transparent 50%);
    mix-blend-mode: overlay;
    box-shadow: inset 0 0 42px rgba(200, 210, 230, 0.2);
}
.window-holiday.is-fourth {
    background:
        linear-gradient(180deg, rgba(40, 20, 80, 0.18), transparent 38%),
        radial-gradient(ellipse at 50% 110%, rgba(180, 30, 30, 0.22), transparent 55%);
    mix-blend-mode: overlay;
    box-shadow: inset 0 0 36px rgba(30, 50, 120, 0.22);
}
.window-holiday.is-easter {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 220, 170, 0.32), transparent 52%),
        linear-gradient(180deg, rgba(120, 70, 90, 0.12), transparent 46%);
    mix-blend-mode: soft-light;
    box-shadow: inset 0 0 36px rgba(232, 196, 120, 0.22);
}

#cabin-window.is-halloween {
    border-color: #6a2e12;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.95), 0 0 36px rgba(232, 110, 20, 0.28);
}
#cabin-window.is-halloween .engraved-text,
#cabin-window.is-halloween .font-serif-custom {
    color: #d97706;
    text-shadow: 0 0 10px rgba(255, 140, 40, 0.35);
}
#cabin-window.is-thanksgiving {
    border-color: #5c3a18;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.95), 0 0 28px rgba(196, 140, 60, 0.22);
}
#cabin-window.is-thanksgiving .engraved-text,
#cabin-window.is-thanksgiving .font-serif-custom {
    color: #c4a35a;
}
#cabin-window.is-christmas {
    border-color: #3d2418;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.95), 0 0 32px rgba(80, 140, 70, 0.2), inset 0 0 0 1px rgba(196, 163, 90, 0.35);
}
#cabin-window.is-christmas .engraved-text,
#cabin-window.is-christmas .font-serif-custom {
    color: #d9ab55;
}
#cabin-window.is-new-year {
    border-color: #3a3428;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.95), 0 0 32px rgba(210, 200, 160, 0.22);
}
#cabin-window.is-new-year .engraved-text,
#cabin-window.is-new-year .font-serif-custom {
    color: #e8d696;
}
#cabin-window.is-fourth {
    border-color: #4a2018;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.95), 0 0 28px rgba(160, 40, 40, 0.2);
}
#cabin-window.is-fourth .engraved-text,
#cabin-window.is-fourth .font-serif-custom {
    color: #f0d9a0;
}
#cabin-window.is-easter {
    border-color: #5a4030;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.95), 0 0 28px rgba(232, 190, 140, 0.22);
}
#cabin-window.is-easter .engraved-text,
#cabin-window.is-easter .font-serif-custom {
    color: #e2c36a;
}

#sky-preview-dock {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    z-index: 80;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem 0.65rem;
    max-width: calc(100vw - 1.5rem);
    padding: 0.55rem 0.75rem;
    background: rgba(12, 8, 6, 0.92);
    border: 1px solid rgba(196, 163, 90, 0.35);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    color: #f3e6c8;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
}
#sky-preview-dock select,
#sky-preview-dock button {
    appearance: none;
    background: #1a120c;
    color: #f3e6c8;
    border: 1px solid #6e4a28;
    border-radius: 6px;
    padding: 0.35rem 0.55rem;
    font-size: 11px;
    cursor: pointer;
}
#sky-preview-dock .sky-preview-pages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.7rem;
}
#sky-preview-dock a {
    color: #d9ab55;
    text-decoration: none;
}
#sky-preview-dock a[aria-current="page"] {
    color: #fde68a;
    text-decoration: underline;
}
