.lobby3-topbar {
    border-bottom: 1px solid rgba(255, 120, 20, 0.35) !important;
    box-shadow: 0 4px 24px rgba(230, 80, 0, 0.15) !important;
}

.lobby3-topbar__link:hover {
    color: #ffaa44 !important;
}
.lobby3-topbar__link.is-active {
    color: #ff9429 !important;
    border-bottom-color: #ff8800 !important;
}

.hw-logo-pumpkin {
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 0 5px rgba(255, 130, 0, 0.75));
    animation: hwPumpkinGlow 3.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hwPumpkinGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(255, 120, 0, 0.7));
        transform: rotate(0deg) scale(1);
    }
    30% {
        filter: drop-shadow(0 0 8px rgba(255, 170, 0, 0.95));
        transform: rotate(-3deg) scale(1.05);
    }
    70% {
        filter: drop-shadow(0 0 6px rgba(255, 90, 0, 0.8));
        transform: rotate(3deg) scale(1.02);
    }
}

.hw-decor-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none !important;
    z-index: 30;
    overflow: hidden;
}

.hw-cobweb {
    position: absolute;
    pointer-events: none;
    opacity: 0.35;
    transition: opacity 0.3s;
}

.hw-cobweb-left {
    top: 105px;
    left: 0;
    width: 130px;
    height: 130px;
}

.hw-cobweb-right {
    top: 105px;
    right: 0;
    width: 130px;
    height: 130px;
}

.hw-spider-wrap {
    position: absolute;
    top: 105px;
    left: 16px;
    width: 26px;
    height: 95px;
    transform-origin: top center;
    animation: hwSpiderSway 6s ease-in-out infinite;
    pointer-events: none;
}

.hw-spider-thread {
    width: 1px;
    height: 65px;
    margin: 0 auto;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), rgba(255,255,255,0.15));
}

.hw-spider-body {
    width: 22px;
    height: 22px;
    margin: 0 auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

@keyframes hwSpiderSway {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(5deg);
    }
    75% {
        transform: rotate(-5deg);
    }
}

.hw-bat-flyer {
    position: fixed;
    top: 0;
    left: -80px;
    width: 44px;
    height: 26px;
    pointer-events: none;
    z-index: 102;
    will-change: transform, left, top;
}

.hw-bat-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.9));
}

.hw-bat-wing-l {
    transform-origin: 18px 13px;
    animation: hwWingFlapL 0.22s ease-in-out infinite alternate;
}

.hw-bat-wing-r {
    transform-origin: 26px 13px;
    animation: hwWingFlapR 0.22s ease-in-out infinite alternate;
}

@keyframes hwWingFlapL {
    0% { transform: rotate(26deg); }
    100% { transform: rotate(-36deg); }
}

@keyframes hwWingFlapR {
    0% { transform: rotate(-26deg); }
    100% { transform: rotate(36deg); }
}

.hw-bat-flyer-1 {
    animation: hwBatFlight1 14s cubic-bezier(0.35, 0, 0.65, 1) infinite;
}

.hw-bat-flyer-2 {
    animation: hwBatFlight2 15s cubic-bezier(0.35, 0, 0.65, 1) infinite 3.5s;
}

.hw-bat-flyer-3 {
    animation: hwBatFlight3 19s cubic-bezier(0.35, 0, 0.65, 1) infinite 7.5s;
}

@keyframes hwBatFlight1 {
    0% {
        left: -80px;
        top: 60px;
        transform: scale(0.85) rotate(10deg);
        opacity: 0;
    }
    4% {
        opacity: 0.85;
    }
    20% {
        top: 25px;
        transform: scale(0.9) rotate(-8deg);
    }
    40% {
        top: 85px;
        transform: scale(0.8) rotate(14deg);
    }
    60% {
        top: 30px;
        transform: scale(0.85) rotate(-6deg);
    }
    80% {
        top: 65px;
        transform: scale(0.75) rotate(10deg);
    }
    96% {
        opacity: 0.85;
    }
    100% {
        left: calc(100vw + 80px);
        top: 40px;
        transform: scale(0.7) rotate(2deg);
        opacity: 0;
    }
}

@keyframes hwBatFlight2 {
    0% {
        left: -80px;
        top: 100px;
        transform: scale(0.65) rotate(12deg);
        opacity: 0;
    }
    4% {
        opacity: 0.75;
    }
    25% {
        top: 45px;
        transform: scale(0.65) rotate(-10deg);
    }
    50% {
        top: 95px;
        transform: scale(0.6) rotate(12deg);
    }
    75% {
        top: 35px;
        transform: scale(0.6) rotate(-8deg);
    }
    96% {
        opacity: 0.75;
    }
    100% {
        left: calc(100vw + 80px);
        top: 55px;
        transform: scale(0.55) rotate(4deg);
        opacity: 0;
    }
}

@keyframes hwBatFlight3 {
    0% {
        left: calc(100vw + 80px);
        top: 45px;
        transform: scaleX(-1) scale(0.75) rotate(-10deg);
        opacity: 0;
    }
    4% {
        opacity: 0.8;
    }
    30% {
        top: 90px;
        transform: scaleX(-1) scale(0.7) rotate(12deg);
    }
    55% {
        top: 35px;
        transform: scaleX(-1) scale(0.75) rotate(-8deg);
    }
    80% {
        top: 75px;
        transform: scaleX(-1) scale(0.7) rotate(10deg);
    }
    96% {
        opacity: 0.8;
    }
    100% {
        left: -80px;
        top: 50px;
        transform: scaleX(-1) scale(0.65) rotate(-4deg);
        opacity: 0;
    }
}

.hw-ghost-flyer {
    position: fixed;
    top: 140px;
    left: -70px;
    width: 52px;
    height: 68px;
    pointer-events: none;
    z-index: 31;
    filter: drop-shadow(0 0 16px rgba(180, 220, 255, 0.45));
    animation: hwGhostDrift 30s ease-in-out infinite 5s;
    will-change: transform, left, top;
}

.hw-ghost-svg {
    width: 100%;
    height: 100%;
    animation: hwGhostWave 3.5s ease-in-out infinite alternate;
}

@keyframes hwGhostWave {
    0% { transform: translateY(0) rotate(-4deg); }
    100% { transform: translateY(-12px) rotate(4deg); }
}

@keyframes hwGhostDrift {
    0% {
        left: -80px;
        top: 160px;
        opacity: 0;
    }
    6% {
        opacity: 0.75;
    }
    30% {
        top: 240px;
        opacity: 0.8;
    }
    55% {
        top: 170px;
        opacity: 0.65;
    }
    80% {
        top: 220px;
        opacity: 0.75;
    }
    94% {
        opacity: 0.6;
    }
    100% {
        left: calc(100vw + 80px);
        top: 180px;
        opacity: 0;
    }
}

.hw-fog-wrap {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.hw-fog-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(to top, rgba(20, 10, 30, 0.45) 0%, rgba(230, 90, 0, 0.08) 45%, transparent 100%);
    opacity: 0.8;
}

.hw-fog-1 {
    animation: hwFogDrift1 26s linear infinite;
}

.hw-fog-2 {
    background: linear-gradient(to top, rgba(15, 6, 24, 0.35) 0%, rgba(180, 60, 0, 0.05) 55%, transparent 100%);
    animation: hwFogDrift2 34s linear infinite reverse;
}

@keyframes hwFogDrift1 {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes hwFogDrift2 {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.hw-corner-pumpkin-wrap {
    position: fixed;
    bottom: 110px;
    right: 22px;
    width: 76px;
    height: 70px;
    z-index: 105;
    pointer-events: none;
}

.hw-corner-pumpkin {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 16px rgba(255, 110, 0, 0.65)) drop-shadow(0 8px 12px rgba(0,0,0,0.9));
    animation: hwCandleFlicker 4s ease-in-out infinite;
}

.hw-ember {
    position: absolute;
    bottom: 45px;
    left: 36px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ffaa10;
    box-shadow: 0 0 6px #ff7700;
    pointer-events: none;
    opacity: 0;
    animation: hwEmberRise 4s infinite ease-out;
}

.hw-ember-1 {
    animation-delay: 0s;
    left: 30px;
}
.hw-ember-2 {
    animation-delay: 1.3s;
    left: 42px;
}
.hw-ember-3 {
    animation-delay: 2.6s;
    left: 36px;
}

@keyframes hwEmberRise {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) scale(1);
    }
    15% {
        opacity: 0.9;
    }
    75% {
        opacity: 0.6;
        transform: translateY(-50px) translateX(-12px) scale(0.7);
    }
    100% {
        opacity: 0;
        transform: translateY(-80px) translateX(8px) scale(0.3);
    }
}

@keyframes hwCandleFlicker {
    0%, 100% {
        filter: drop-shadow(0 0 16px rgba(255, 100, 0, 0.6)) drop-shadow(0 8px 12px rgba(0,0,0,0.9));
        opacity: 0.95;
    }
    25% {
        filter: drop-shadow(0 0 22px rgba(255, 150, 0, 0.85)) drop-shadow(0 8px 12px rgba(0,0,0,0.9));
        opacity: 1;
    }
    50% {
        filter: drop-shadow(0 0 14px rgba(255, 80, 0, 0.5)) drop-shadow(0 8px 12px rgba(0,0,0,0.9));
        opacity: 0.9;
    }
    75% {
        filter: drop-shadow(0 0 25px rgba(255, 170, 20, 0.9)) drop-shadow(0 8px 12px rgba(0,0,0,0.9));
        opacity: 1;
    }
}

.hw-flame-inner {
    animation: hwFlamePulse 2.5s ease-in-out infinite;
}

@keyframes hwFlamePulse {
    0%, 100% {
        fill: #ffe040;
    }
    35% {
        fill: #ffaa10;
    }
    65% {
        fill: #fff070;
    }
}

@media (max-width: 1024px) {
    .hw-cobweb-left, .hw-cobweb-right {
        width: 95px;
        height: 95px;
        opacity: 0.25;
    }
    .hw-spider-wrap {
        left: 10px;
        height: 75px;
    }
    .hw-spider-thread {
        height: 48px;
    }
    .hw-corner-pumpkin-wrap {
        width: 58px;
        height: 54px;
        bottom: 105px;
        right: 14px;
    }
    .hw-bat-flyer-2, .hw-bat-flyer-3 {
        display: none;
    }
    .hw-ghost-flyer {
        display: none;
    }
}

@media (max-width: 600px) {
    .hw-logo-pumpkin {
        display: none;
    }
    .hw-cobweb-left, .hw-cobweb-right {
        top: 93px;
    }
    .hw-cobweb-left, .hw-cobweb-right {
        opacity: 0.2;
        width: 65px;
        height: 65px;
    }
    .hw-fog-wrap {
        height: 45px;
    }
    .hw-corner-pumpkin-wrap {
        display: none;
    }
    .hw-spider-wrap {
        display: none;
    }
    .hw-bat-flyer {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hw-decor-overlay *, .hw-corner-pumpkin-wrap *, .hw-logo-pumpkin {
        animation: none !important;
    }
    .hw-bat-flyer, .hw-ghost-flyer {
        display: none;
    }
}
