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

#root {
    width: 100%;
    height: 100%;
}

#root > canvas {
    width: 100% !important;
    height: 100% !important;
}

#loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFF9EE;
    z-index: 9999;
}

#loader .spinner {
    width: 56px;
    height: 56px;
    border: 6px solid rgba(90, 76, 0, 0.15);
    border-top-color: #5A4C00;
    border-radius: 50%;
    animation: loader-spin 0.8s linear infinite;
}

@keyframes loader-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-color-scheme: dark) {
    html, body {
        background: #15130B;
    }

    #loader {
        background: #15130B;
    }

    #loader .spinner {
        border-color: rgba(188, 168, 90, 0.2);
        border-top-color: #BCA85A;
    }
}
