.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle linear infinite;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.flip-animation {
    animation: flip-down 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

@keyframes flip-down {
    0% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(90deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}

.glow-pulse {
    animation: glow-pulse-animation 2s ease-in-out infinite;
}

@keyframes glow-pulse-animation {
    0%, 100% {
        box-shadow: 0 8px 32px var(--shadow-color), 0 0 20px rgba(99, 102, 241, 0.2);
    }
    50% {
        box-shadow: 0 12px 40px var(--shadow-color), 0 0 40px rgba(99, 102, 241, 0.4);
    }
}

::selection {
    background-color: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #818cf8;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}