@import url('https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&display=swap');

:root {
    --primary: #5865F2;
    --primary-dark: #4752c4;
    --accent: #FFC600;
    --bg-dark: #121418;
    --card-bg: rgba(30, 33, 36, 0.85);
    --text: #ffffff;
    --font: 'Nunito', sans-serif;
    --font-emoji: 'Nunito', 'Noto Color Emoji', sans-serif; 
}

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 10% 20%, rgb(30, 33, 36) 0%, rgb(18, 20, 24) 90%);
    color: var(--text);
    font-family: var(--font);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 20px;
    box-sizing: border-box;
}

.background-animation {
    position: fixed;
    top: 0; left: 0;
    width: 200%; height: 200%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MCIgaGVpZ2h0PSI1MCIgb3BhY2l0eT0iMC4wNSI+PHBhdGggZD0iTTEwIDEwaDEwdjEwSDEwdjEwSDEweiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg==');
    animation: moveBackground 100s linear infinite;
    z-index: -1;
    opacity: 0.5;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50%, -50%); }
}

.container {
    text-align: center;
    width: 100%;
    max-width: 450px;
    z-index: 1;
}

.logo-area h1 {
    font-weight: 900;
    font-size: 3.5rem;
    margin: 0;
    color: var(--text);
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    letter-spacing: -2px;
}

.logo-area h1 i { color: var(--accent); }
.logo-area p { font-size: 1.1rem; color: #b9bbbe; margin-bottom: 2rem; }

.glass-effect {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}
.glass-effect:hover { transform: translateY(-5px); }

.btn-discord {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-decoration: none;
    font-weight: 800;
    padding: 16px 20px;
    border-radius: 16px;
    font-size: 1.2rem;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.3);
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-discord:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(88, 101, 242, 0.5); }
.btn-discord:active { transform: translateY(2px); }

.rules {
    text-align: left;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 16px;
    border-left: 4px solid var(--accent);
}
.rules h3 { margin-top: 0; color: var(--accent); }
.rules ul { padding-left: 0; list-style: none; }
.rules li { margin-bottom: 8px; font-size: 0.95rem; color: #dcddde; display: flex; gap: 10px; align-items: center;}
.rules li i { color: #72767d; width: 20px; text-align: center;}

.language-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #72767d;
}

select, option {
    background: rgba(0,0,0,0.3);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 12px;
    border-radius: 8px;
    font-family: var(--font-emoji); 
    cursor: pointer;
    outline: none;
    font-size: 1rem;
}

/* --- USER WELCOME BOX FIX --- */
.user-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.08); /* Etwas heller */
    padding: 12px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.1);
}

.user-info-left {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.welcome-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    /* Verhindert Verformung */
    object-fit: cover;
    flex-shrink: 0;
}

.welcome-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sub-label {
    font-size: 0.8rem;
    color: #b9bbbe;
}

.username-text {
    font-size: 1rem;
    color: white;
}

.btn-logout-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px; /* Eckiger statt Rund, passt besser zur Box */
    background: rgba(237, 66, 69, 0.15);
    color: #ed4245;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-left: 10px; /* Sicherer Abstand */
}
.btn-logout-mini:hover {
    background: #ed4245;
    color: white;
}

.btn-menu {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.animate-float { animation: float 6s ease-in-out infinite; }

@media (max-width: 480px) {
    .logo-area h1 { font-size: 2.5rem; }
    .glass-effect { padding: 1.5rem; }
    .btn-discord { font-size: 1rem; padding: 14px; }
}