.moon-container {
    position: fixed;
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

.moon {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 35%, #3a3a4a 0%, #1e1e2a 30%, #0e0e16 60%, #050508 100%);
    box-shadow: 0 0 140px rgba(170, 170, 200, 0.12), 0 0 350px rgba(140, 140, 180, 0.05), inset 0 0 80px rgba(0, 0, 0, 0.85);
    position: relative;
    overflow: hidden;
    animation: moon-float 12s ease-in-out infinite;
}

@keyframes moon-float {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-14px); }
    50% { transform: translateY(-6px); }
    75% { transform: translateY(-18px); }
}

.moon::before {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(90, 90, 110, 0.25);
    top: 70px;
    left: 100px;
    box-shadow: 0 0 50px rgba(90, 90, 110, 0.15);
}

.moon::after {
    content: '';
    position: absolute;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(70, 70, 90, 0.2);
    top: 190px;
    left: 210px;
    box-shadow: 0 0 30px rgba(70, 70, 90, 0.1);
}

.moon-crater {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.04);
}

.moon-crater:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 40px;
    left: 180px;
}

.moon-crater:nth-child(2) {
    width: 55px;
    height: 55px;
    top: 230px;
    left: 50px;
}

.moon-crater:nth-child(3) {
    width: 70px;
    height: 70px;
    top: 130px;
    left: 270px;
}

.moon-crater:nth-child(4) {
    width: 40px;
    height: 40px;
    top: 290px;
    left: 160px;
}

.moon-phase {
    position: absolute;
    top: 0;
    right: 0;
    width: 35%;
    height: 100%;
    background: var(--bg-deep);
    border-radius: 0 50% 50% 0;
    opacity: 0.15;
    transition: all 0.6s ease;
}

.moon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(180, 180, 210, 0.06) 0%, transparent 70%);
    pointer-events: none;
    animation: glow-pulse 8s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}
