html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body:has(> canvas) #loading {
    display: none;
}

body:not(:has(> canvas)) #loading {
    position: fixed;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    color: white;
    background: #6614a3;

    .spinner {
        padding: 16px;
        width: 40px;
        height: 40px;
        border: 4px solid #ddd;
        border-top: 4px solid #9735de;
        border-radius: 50%;
        animation: spin 2s linear infinite;
    }

    .info {
        font-style: italic;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}