html {
    touch-action: manipulation;
}

body {
    background: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
    width: 100%;
}

@media (prefers-color-scheme: dark) {
    body {
        background: #1e1e1e;
        color: #f0f0f0;
    }
}

canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    outline: none;
}

.centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.lds-dual-ring {
    display: inline-block;
    width: 24px;
    height: 24px;
}

.lds-dual-ring:after {
    content: " ";
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid #888;
    border-color: #888 transparent #888 transparent;
    animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#login-screen {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: inherit;
    z-index: 10;
}

.landing {
    max-width: 480px;
    padding: 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
    .landing {
        background: rgba(255, 255, 255, 0.03);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #5865F2;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.login-btn:hover {
    background-color: #4752C4;
}

.discord-note {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 2rem;
    line-height: 1.5;
}

.mobile-notice {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 50, 50, 0.1);
    border: 1px solid rgba(255, 50, 50, 0.2);
    border-radius: 8px;
    color: #ff5555;
}

.mobile-notice h2 {
    font-size: 1.2rem;
    margin-top: 0;
}