@media (pointer: fine) {
    :root {
        scrollbar-width: thin;
        scrollbar-color: #333 #fafafa;
    }
    
    ::-webkit-scrollbar {
        width: 5px;
        height: 5px;
        background: #fafafa;
    }
    ::-webkit-scrollbar-thumb {
        background: #333;
        border-radius: 10px;
    }
}

#preloader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: #333;
    z-index: 9999;
    display: grid;
    place-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 180px;
    height: 180px;
    animation: pulse 1s ease-in-out infinite;
    will-change: transform;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.125); }
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}