/* Halloween seasonal theming */
body.halloween-theme {
    background: radial-gradient(circle at top, rgba(51, 30, 74, 0.6), transparent 55%),
        linear-gradient(180deg, #140a1c 0%, #1f1030 45%, #0d0716 100%);
    min-height: 100vh;
    color: inherit;
    background-attachment: fixed;
}

body.halloween-theme::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle at 20% 20%, rgba(255, 165, 0, 0.07), transparent 60%),
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.05), transparent 55%),
        radial-gradient(circle at 50% 80%, rgba(255, 102, 0, 0.04), transparent 60%);
    z-index: -1;
}

.halloween-banner {
    background: linear-gradient(90deg, rgba(69, 33, 82, 0.95), rgba(33, 15, 43, 0.95));
    color: #ffe9c6;
    border-bottom: 2px solid rgba(255, 145, 0, 0.6);
    text-align: center;
    padding: 0.75rem 1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 24px rgba(15, 8, 23, 0.45);
}

.halloween-banner::before,
.halloween-banner::after {
    font-size: 1.5rem;
    animation: halloween-bounce 4s ease-in-out infinite;
}

.halloween-banner::before {
    content: "🎃";
}

.halloween-banner::after {
    content: "🦇";
}

.halloween-banner a {
    color: #ffd27f;
    text-decoration: underline;
}

.halloween-banner a:hover,
.halloween-banner a:focus {
    color: #ff9f1c;
}

.halloween-banner__text {
    max-width: 60ch;
    line-height: 1.5;
}

.halloween-bats {
    position: fixed;
    top: 5.75rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 5vw;
    pointer-events: none;
    z-index: 40;
}

.halloween-bats span {
    width: 32px;
    height: 16px;
    background: radial-gradient(circle, #33223f 35%, transparent 36%),
        radial-gradient(circle at 50% 0%, #ff7b00 35%, transparent 36%);
    border-radius: 50% 50% 0 0;
    position: relative;
    animation: bat-flap 5s ease-in-out infinite;
    transform-origin: center bottom;
}

.halloween-bats span::before,
.halloween-bats span::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 18px;
    height: 12px;
    background: radial-gradient(circle, rgba(255, 123, 0, 0.9) 25%, rgba(36, 17, 44, 0.95) 26%);
    border-radius: 50% 50% 0 0;
}

.halloween-bats span::before {
    left: -16px;
    transform-origin: right bottom;
}

.halloween-bats span::after {
    right: -16px;
    transform-origin: left bottom;
}

.halloween-bats span:nth-child(odd) {
    animation-delay: -2.5s;
}

.halloween-bats span:nth-child(2) {
    animation-duration: 6.5s;
}

.halloween-bats span:nth-child(3) {
    animation-duration: 7.5s;
}

.halloween-bats span:nth-child(4) {
    animation-duration: 5.75s;
}

@keyframes bat-flap {
    0%,
    100% {
        transform: translateY(0) scale(1) rotate(-2deg);
    }
    50% {
        transform: translateY(-12px) scale(1.05) rotate(3deg);
    }
}

@keyframes halloween-bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@media (max-width: 768px) {
    .halloween-banner {
        flex-direction: column;
        gap: 0.25rem;
    }

    .halloween-bats {
        top: 7rem;
    }

    .halloween-bats span {
        width: 24px;
        height: 12px;
    }
}
