/* Explain: Styles for seasonal decorations and settings controls. */
/* Oreo seasonal decorations + settings controls */

.season-layer {
    position: fixed;
    inset: 0;
    z-index: 30;
    overflow: hidden;
    pointer-events: none;
}

.season-layer[hidden] {
    display: none !important;
}

.season-web {
    position: absolute;
    width: clamp(6rem, 24vw, 13rem);
    height: clamp(6rem, 24vw, 13rem);
}

.season-web > svg {
    display: block;
    width: 100%;
    height: 100%;
}

.season-spider {
    position: absolute;
    display: block;
    width: clamp(0.9rem, 3vw, 1.6rem);
    height: clamp(0.9rem, 3vw, 1.6rem);
    pointer-events: none;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55));
}

.season-spider svg {
    display: block;
    width: 100%;
    height: 100%;
    transform-origin: center;
    animation: spider-bob 0.8s ease-in-out infinite;
}

.season-spider--a {
    top: 34%;
    left: 20%;
    animation: spider-crawl-a 9s ease-in-out infinite;
}

.season-spider--b {
    top: 52%;
    left: 30%;
    animation: spider-crawl-b 11s ease-in-out infinite;
}

@keyframes spider-bob {
    0%, 100% {
        transform: translateY(0) rotate(-3deg);
    }
    50% {
        transform: translateY(-8%) rotate(3deg);
    }
}

@keyframes spider-crawl-a {
    0% {
        top: 34%;
        left: 20%;
    }
    25% {
        top: 50%;
        left: 34%;
    }
    50% {
        top: 64%;
        left: 22%;
    }
    75% {
        top: 46%;
        left: 10%;
    }
    100% {
        top: 34%;
        left: 20%;
    }
}

@keyframes spider-crawl-b {
    0% {
        top: 52%;
        left: 30%;
    }
    25% {
        top: 40%;
        left: 16%;
    }
    50% {
        top: 30%;
        left: 28%;
    }
    75% {
        top: 46%;
        left: 40%;
    }
    100% {
        top: 52%;
        left: 30%;
    }
}

.season-web--tl {
    top: 0;
    left: 0;
}

.season-web--tr {
    top: 0;
    right: 0;
    transform: scaleX(-1);
}

.season-web--bl {
    bottom: 0;
    left: 0;
    transform: scaleY(-1);
}

.season-web--br {
    bottom: 0;
    right: 0;
    transform: scale(-1, -1);
}

.season-ground {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(1.25rem, 9vw, 5rem);
}

.season-prop {
    width: clamp(3.2rem, 10vw, 6.5rem);
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55));
}

.season-prop svg,
.season-prop img {
    display: block;
    width: 100%;
    height: auto;
}

.season-prop--a {
    animation: season-bob 4.5s ease-in-out infinite;
}

.season-prop--b {
    animation: season-bob 4.5s ease-in-out 0.9s infinite;
}

.season-prop--c {
    animation: season-bob 4.5s ease-in-out 1.8s infinite;
}

.season-snow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

@keyframes season-bob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

.settings-season-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.25rem;
}

.settings-season-label {
    color: var(--text-color);
    font-size: 0.92rem;
    font-weight: 500;
}

.settings-season-label--block {
    display: block;
    margin: 1rem 0 0.45rem;
}

.season-select {
    width: 100%;
    min-height: 2.75rem;
    padding: 0 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.55rem;
    background: var(--background-color);
    color: var(--text-color);
    font-size: 0.9rem;
}

.season-select:focus {
    outline: none;
    border-color: var(--link-color);
}

@media (prefers-reduced-motion: reduce) {
    .season-prop--a,
    .season-prop--b,
    .season-prop--c,
    .season-spider--a,
    .season-spider--b,
    .season-spider svg {
        animation: none;
    }
}