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


/* Loader container: full screen, centered, and on top of everything */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0b10; /* matches the Luach dark theme */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensures the loader is above all other content */
}

/* Styling for the spinner */
.spinner {
    width: 60px;
    height: 60px;
    border: 8px solid rgba(255,255,255,.10);
    border-top: 8px solid #d8b06a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Main application, initially hidden */
#app {
    display: none;
}