.halloween-site {
    background: #180d1d;
}

.halloween-site .hill-wave--back {
    fill: #5b263d !important;
}

.halloween-site .hill-wave--middle-back {
    fill: #3f1b35 !important;
}

.halloween-site .hill-wave--middle {
    fill: #2d1630 !important;
}

.halloween-site .hill-wave--front-back {
    fill: #211126 !important;
}

.halloween-site .hill-wave--front {
    fill: #120a19 !important;
}

.halloween-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.halloween-page {
    position: relative;
    min-height: calc(100vh - 7rem);
    display: grid;
    place-items: center;
    padding: 3rem 1rem;
    background:
        radial-gradient(circle at 50% 15%, rgba(128, 55, 164, 0.18), transparent 32rem),
        linear-gradient(145deg, rgba(26, 10, 35, 0.72), rgba(43, 13, 26, 0.9));
}

.halloween-lightning {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: rgba(235, 224, 255, 0.82);
    opacity: 0;
}

.halloween-lightning.flash {
    animation: lightning-flash 180ms ease-out;
}

@keyframes lightning-flash {
    0% { opacity: 0; }
    18% { opacity: 0.75; }
    32% { opacity: 0.1; }
    48% { opacity: 0.55; }
    100% { opacity: 0; }
}

.halloween-effects-toggle {
    position: fixed;
    top: 8rem;
    right: 1rem;
    z-index: 101;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.45rem;
    align-items: center;
    max-width: 13rem;
    padding: 0.55rem 0.7rem;
    color: #f4e5d0;
    background: rgba(24, 13, 29, 0.88);
    border: 1px solid rgba(224, 132, 55, 0.55);
    border-radius: 8px;
    font-family: var(--body-font);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.halloween-effects-toggle input {
    width: 1rem;
    height: 1rem;
    accent-color: #e08437;
}

.halloween-effects-toggle small {
    grid-column: 2;
    color: #e8c9b7;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.25;
}

.spooky-fall-item {
    position: absolute;
    top: -3rem;
    z-index: 2;
    display: block;
    pointer-events: none;
    user-select: none;
    opacity: 0;
    filter: drop-shadow(0 0 8px rgba(224, 132, 55, 0.22));
    animation: spooky-fall 16s linear infinite;
}

@keyframes spooky-fall {
    0% {
        transform: translate3d(0, -4rem, 0) rotate(-12deg);
        opacity: 0;
    }
    12% { opacity: 0.8; }
    88% { opacity: 0.8; }
    100% {
        transform: translate3d(5rem, 110vh, 0) rotate(320deg);
        opacity: 0;
    }
}

.halloween-card {
    position: relative;
    width: min(100%, 720px);
    padding: 3.5rem 3rem 3rem;
    overflow: hidden;
    text-align: center;
    background: rgba(35, 13, 32, 0.94);
    border: 1px solid rgba(224, 132, 55, 0.42);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(11, 3, 17, 0.52), inset 0 0 70px rgba(111, 39, 117, 0.12);
}

.toggle-control {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
}

.toggle-control input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--accent-color);
}

.halloween-card::before,
.halloween-card::after {
    position: absolute;
    content: '';
    width: 11rem;
    height: 11rem;
    border: 1px solid rgba(224, 132, 55, 0.16);
    border-radius: 50%;
}

.halloween-card::before {
    top: -7rem;
    left: -5rem;
}

.halloween-card::after {
    right: -5rem;
    bottom: -7rem;
}

.ghost-box {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 0.35rem;
    height: 6rem;
    margin: -1.5rem 0 0.5rem;
}

.ghost {
    width: 4.5rem;
    height: 5.5rem;
    fill: #f4e5d0;
    stroke: #f4e5d0;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 10px rgba(244, 229, 208, 0.18));
    animation: ghost-float 4s ease-in-out infinite;
}

.ghost circle {
    fill: #32142f;
    stroke: none;
}

.ghost path:last-child {
    fill: none;
    stroke: #32142f;
    stroke-width: 2.5;
}

.ghost--middle {
    width: 5rem;
    height: 6rem;
    fill: #e08437;
    stroke: #e08437;
    animation-delay: -1.3s;
}

.ghost--middle circle,
.ghost--middle path:last-child {
    stroke: #42172f;
}

.ghost--right {
    animation-delay: -2.5s;
}

@keyframes ghost-float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-0.55rem) rotate(2deg); }
}

.halloween-kicker {
    position: relative;
    z-index: 1;
    margin: 0 0 0.45rem;
    color: #e08437;
    font-family: var(--body-font);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.halloween-card h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #f4e5d0;
    text-shadow: 0 0 20px rgba(224, 132, 55, 0.12);
}

.halloween-subtitle {
    position: relative;
    z-index: 1;
    margin: 0.65rem 0 0;
    color: #e08437;
    font-family: var(--body-font);
    font-size: 1.05rem;
    font-style: italic;
}

.halloween-countdown {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    margin: 2.6rem 0 1.3rem;
}

.halloween-time-box {
    flex: 1 1 0;
    padding: 0 1.25rem;
}

.halloween-time-box + .halloween-time-box {
    border-left: 1px solid rgba(224, 132, 55, 0.3);
}

.halloween-time-box span {
    display: block;
    color: #f4e5d0;
    font-family: var(--display-font);
    font-size: 3.3rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.halloween-label {
    margin-top: 0.65rem;
    color: #e08437;
    font-family: var(--body-font);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.halloween-card .share-wrapper {
    position: relative;
    z-index: 1;
    margin-top: 1.8rem;
}

.halloween-card .share-toggle {
    background: #e08437;
    color: #241025;
}

.halloween-card .share-toggle:hover {
    background: #f19a4e;
    color: #241025;
}

@media (max-width: 600px) {
    .halloween-page {
        min-height: calc(100vh - 4rem);
        padding: 2rem 0.75rem;
    }

    .halloween-card {
        padding: 2.75rem 1rem 2rem;
    }

    .halloween-effects-toggle {
        top: 6.5rem;
        right: 0.65rem;
        font-size: 0.72rem;
    }

    .ghost-box {
        height: 5rem;
    }

    .ghost {
        width: 3.6rem;
        height: 4.6rem;
    }

    .ghost--middle {
        width: 4rem;
        height: 5rem;
    }

    .halloween-time-box {
        padding: 0 0.35rem;
    }

    .halloween-time-box span {
        font-size: 2rem;
    }

    .halloween-label {
        font-size: 0.58rem;
        letter-spacing: 0.06em;
    }
}
