/* Mode Selection Screen Specific Styles */
.mode-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Reduced gap */
    margin-bottom: 15px;
    /* Reduced margin */
}

.mode-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    /* Reduced padding */
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    /* Glassy dark background */
    border: 1px solid rgba(165, 243, 252, 0.2);
    /* Cyan border */
    color: white;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.mode-button:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(165, 243, 252, 0.5);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.2);
}

.mode-icon {
    font-size: 2rem;
    margin-right: 20px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.mode-content {
    flex: 1;
}

.mode-title {
    font-family: 'Prompt', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mode-subtitle {
    font-size: 0.9rem;
    color: rgba(165, 243, 252, 0.7);
    /* Muted cyan */
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.mode-arrow {
    font-size: 1.5rem;
    color: rgba(165, 243, 252, 0.5);
    transition: transform 0.3s ease;
}

.mode-button:hover .mode-arrow {
    transform: translateX(5px);
    color: #00d4ff;
}

/* Gradient Borders for specific buttons */
.mode-button-1 {
    border-left: 4px solid #00d4ff;
}

.mode-button-2 {
    border-left: 4px solid #ff00de;
}

.mode-button-3 {
    border-left: 4px solid #00ff9d;
}

/* Version Display Styles (Updated: Smaller & Glitchy Gold) */
.version-display-container {
    margin-top: 15px;
    /* Reduced margin */
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.version-badge {
    background: rgba(0, 0, 0, 0.3);
    /* Lighter background */
    color: #ffd700;
    padding: 4px 12px;
    /* Reduced padding significantly */
    border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    /* Matching the header font */
    font-size: 0.8rem;
    /* Smaller size */
    font-weight: 600;
    /* Less bold */
    letter-spacing: 1px;
    border: 1px solid #ffd700;
    /* Thinner border */
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
    cursor: default;
    user-select: none;

    /* Animations */
    animation:
        gold-pulse 3s infinite ease-in-out,
        float-dance 4s infinite ease-in-out;
    transition: all 0.3s ease;
}

.version-badge:hover {
    transform: scale(1.05) rotate(1deg);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .version-display-container {
        margin-top: 12px;
    }

    .version-badge {
        font-size: 0.65rem;
        padding: 4px 12px;
        letter-spacing: 0.5px;
        border-width: 1px;
    }
}

/* Blinking Golden Border / Glow */
@keyframes gold-pulse {
    0% {
        box-shadow: 0 0 2px rgba(255, 215, 0, 0.1), inset 0 0 2px rgba(255, 215, 0, 0.05);
        border-color: rgba(255, 215, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.4), inset 0 0 5px rgba(255, 215, 0, 0.2);
        border-color: rgba(255, 215, 0, 0.8);
    }

    100% {
        box-shadow: 0 0 2px rgba(255, 215, 0, 0.1), inset 0 0 2px rgba(255, 215, 0, 0.05);
        border-color: rgba(255, 215, 0, 0.3);
    }
}

/* Dancing / Floating Effect */
@keyframes float-dance {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-2px) rotate(-0.5deg);
        /* Reduced movement */
    }

    50% {
        transform: translateY(0) rotate(0deg);
    }

    75% {
        transform: translateY(2px) rotate(0.5deg);
        /* Reduced movement */
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Glitch Effect wrapper */
.version-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 215, 0, 0.15),
            transparent);
    animation: shine-sweep 4s infinite linear;
}

@keyframes shine-sweep {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}