/* Starfield Styles */
.starfield {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    mix-blend-mode: screen;
}

.starfield .star {
    position: absolute;
    display: block;
    width: var(--size, 1.6px);
    height: var(--size, 1.6px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    opacity: var(--opacity, 0.3);
    transform: translate(-50%, -50%) scale(1);
    transform-origin: center;
    transition: opacity 1.4s ease, transform 1.4s ease, filter 1.4s ease;
    filter: drop-shadow(0 0 calc(var(--size, 1.6px) * 3) rgba(255, 255, 255, 0.35));
}

.starfield .star.star--twinkle {
    opacity: 1;
    transform: translate(-50%, -50%) scale(var(--twinkle-scale, 2));
    filter: drop-shadow(0 0 calc(var(--size, 1.6px) * 8) rgba(255, 255, 255, 0.95));
}

/* Constellation Styles */
.starfield .constellation {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.starfield .constellation-star {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: rgb(204, 204, 204); /* 80% brightness */
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 1));
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .starfield {
        display: none;
    }
}
