#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(50, 50, 50, 0.6); /* Semi-transparent backdrop */
    backdrop-filter: blur(7px);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
    font-family: Arial, sans-serif;
}

.splash-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 60px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
}

.spinner {
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#content {
    display: none;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}




/* Banner is visible by default */
#unsupported-banner {
    display: block;
    background: #fff3cd;
    color: #856404;
    border-bottom: 1px solid #ffc107;
    padding: 0.875rem 1rem;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.5;
    z-index: 9999;
    position: sticky;
    top: 0;
    box-sizing: border-box;
    width: 100%;
}

    #unsupported-banner p {
        margin: 0 0 0.5rem 0;
    }

    #unsupported-banner .browser-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

        #unsupported-banner .browser-links a {
            display: inline-block;
            background: #856404;
            color: #fff;
            text-decoration: none;
            padding: 0.4rem 0.85rem;
            border-radius: 4px;
            font-size: 0.875rem;
            white-space: nowrap;
        }

            #unsupported-banner .browser-links a:hover {
                background: #6d5203;
            }

/* Tighten layout on small screens */
@media (max-width: 480px) {
    #unsupported-banner {
        font-size: 0.875rem;
        padding: 0.75rem 0.875rem;
        position: static; /* avoid sticky overlapping content on small screens */
    }

        #unsupported-banner .browser-links a {
            flex: 1 1 auto;
            text-align: center;
        }
}
