/* Rudi im Weltraum - Game Styles */

body {
    background: linear-gradient(135deg, #0a0a2e 0%, #1a1a4e 50%, #0a0a2e 100%);
}

.game-container {
    background: #0a0a2e;
}

#gameCanvas {
    background: transparent;
}

/* Score Panel Styling */
.score-panel {
    background: rgba(10, 10, 46, 0.8);
    border: 2px solid rgba(100, 150, 255, 0.3);
}

.stat-icon {
    filter: drop-shadow(0 0 5px rgba(255, 200, 100, 0.5));
}

.score-value {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Game Title */
.game-title {
    color: #7DF9FF;
    text-shadow:
        0 0 10px rgba(125, 249, 255, 0.5),
        0 0 20px rgba(125, 249, 255, 0.3);
}

/* Instructions */
.instructions {
    background: rgba(10, 10, 46, 0.9);
    border: 2px solid rgba(100, 150, 255, 0.3);
}

/* Game Over Overlay */
.game-over-overlay {
    background: rgba(10, 10, 46, 0.95);
}

.game-over-title {
    color: #FF6B6B;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.final-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 20px 0;
}

.final-stat {
    text-align: center;
}

.final-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 5px;
}

.final-value {
    display: block;
    color: #FFD700;
    font-size: 36px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Message Popup */
.message-popup {
    font-size: 32px;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.message-popup.positive {
    color: #7DF9FF;
    text-shadow: 0 0 15px rgba(125, 249, 255, 0.7);
}

.message-popup.negative {
    color: #FF6B6B;
    text-shadow: 0 0 15px rgba(255, 107, 107, 0.7);
}

/* Control buttons */
.btn {
    background: rgba(10, 10, 46, 0.8);
    border: 2px solid rgba(100, 150, 255, 0.3);
}

.btn:hover {
    background: rgba(30, 30, 80, 0.9);
    border-color: rgba(100, 150, 255, 0.6);
}

/* No body warning */
.no-body-warning {
    background: rgba(255, 100, 100, 0.9);
}

/* New record badge animation */
.new-record-badge {
    animation: recordPulse 0.5s ease-in-out infinite alternate;
}

@keyframes recordPulse {
    from {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
    to {
        transform: scale(1.1);
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
}

/* Restart hint */
.restart-hint {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    margin-top: 20px;
}

/* Wave indicator */
.wave-indicator {
    color: #7DF9FF;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(125, 249, 255, 0.5);
    margin-bottom: 10px;
}

/* Timer warning (last 10 seconds) */
.timer-value.warning {
    color: #FF6B6B !important;
    animation: timerPulse 0.5s ease-in-out infinite alternate;
}

@keyframes timerPulse {
    from {
        transform: scale(1);
        text-shadow: 0 0 5px rgba(255, 107, 107, 0.5);
    }
    to {
        transform: scale(1.15);
        text-shadow: 0 0 15px rgba(255, 107, 107, 0.8);
    }
}
