* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    user-select: none;
}

body {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Status Anzeige oben rechts */
.status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #555;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.status-badge.connected {
    background: #4CAF50;
    color: white;
}

/* Hauptmenü Karte */
.menu-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    text-align: center;
    width: 500px;
    z-index: 10;
    backdrop-filter: blur(5px);
    border: 3px solid #ffffff;
}

.game-title {
    font-size: 2.2rem;
    color: #ff5e7e;
    text-shadow: 2px 2px 0px #ffe1e8;
    margin-bottom: 5px;
}

.game-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
}

/* Navigations-Buttons */
.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-btn {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    padding: 14px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    outline: none;
}

/* Aktiver/Fokussierter Button (Wichtig für Controller!) */
.menu-btn.active, .menu-btn:hover {
    background: #ff5e7e;
    color: white;
    border-color: #ff335c;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 94, 126, 0.4);
}

.controls-hint {
    margin-top: 30px;
    font-size: 0.85rem;
    color: #888;
}

/* Popups / Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 350px;
    text-align: center;
}

.modal-content h2 {
    color: #ff5e7e;
    margin-bottom: 15px;
}

.modal-content div {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.5;
}

/* Hintergrund Animationen */
.bg-decorations span {
    position: absolute;
    font-size: 2.5rem;
    animation: float 6s infinite ease-in-out;
    opacity: 0.7;
}

.balloon { top: 10%; left: 10%; animation-delay: 0s; }
.confetti { top: 70%; left: 15%; animation-delay: 1s; }
.heart { top: 20%; right: 12%; animation-delay: 2s; }
.paw { top: 75%; right: 18%; animation-delay: 3s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}