/* Landing Page - Full Screen Welcome Screen */

.landing-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    z-index: 10000;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    overflow: hidden;
}

/* Mute Button in Top Right */
.landing-audio-control {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 20;
}

.landing-mute-button {
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.9), rgba(20, 20, 30, 0.9));
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.landing-mute-button:hover {
    border-color: rgba(255, 215, 0, 0.7);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.landing-mute-button:active {
    transform: scale(0.95);
}

.landing-mute-button.muted {
    opacity: 0.5;
    border-color: rgba(255, 100, 100, 0.4);
}

.landing-mute-button.muted:hover {
    border-color: rgba(255, 100, 100, 0.7);
    opacity: 0.7;
}

.landing-page.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
    z-index: -1 !important; /* Get out of the way completely */
}

/* Splash Image Container - Full Screen Centerpiece */
.landing-splash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.landing-splash img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    animation: splashGlow 4s ease-in-out infinite;
}

@keyframes splashGlow {
    0%, 100% {
        filter: drop-shadow(0 10px 40px rgba(100, 100, 200, 0.4))
                drop-shadow(0 0 20px rgba(255, 215, 0, 0.2));
    }
    50% {
        filter: drop-shadow(0 10px 60px rgba(150, 150, 255, 0.6))
                drop-shadow(0 0 40px rgba(255, 215, 0, 0.4));
    }
}

/* Game Title - Hidden for image-focused design */
.landing-title {
    display: none;
}

/* Subtitle - Hidden for image-focused design */
.landing-subtitle {
    display: none;
}

/* Button Container - Fixed at Bottom */
.landing-buttons {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    padding: 30px;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        transparent 100%);
    justify-content: center;
    align-items: center;
}

/* Landing Page Buttons */
.landing-btn {
    padding: 16px 35px;
    font-family: 'Cinzel', serif;
    font-size: 1em;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg,
        rgba(70, 50, 100, 0.95) 0%,
        rgba(50, 30, 80, 0.95) 100%);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.landing-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 215, 0, 0.3),
        transparent);
    transition: left 0.5s ease;
}

.landing-btn:hover::before {
    left: 100%;
}

.landing-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 215, 0, 0.8);
    background: linear-gradient(135deg,
        rgba(90, 70, 120, 0.95) 0%,
        rgba(70, 50, 100, 0.95) 100%);
    box-shadow:
        0 8px 25px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.landing-btn:active {
    transform: translateY(-1px);
}

/* Primary button (Start New Game) */
.landing-btn.primary {
    background: linear-gradient(135deg,
        rgba(255, 140, 0, 0.95) 0%,
        rgba(220, 100, 0, 0.95) 100%);
    border-color: rgba(255, 215, 0, 0.7);
    font-size: 1.15em;
    padding: 18px 40px;
    flex-grow: 1;
    max-width: 300px;
}

.landing-btn.primary:hover {
    background: linear-gradient(135deg,
        rgba(255, 160, 20, 0.98) 0%,
        rgba(240, 120, 10, 0.98) 100%);
    box-shadow:
        0 10px 30px rgba(255, 140, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Disabled state */
.landing-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.landing-btn:disabled:hover {
    border-color: rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg,
        rgba(70, 50, 100, 0.9) 0%,
        rgba(50, 30, 80, 0.9) 100%);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Button Icons */
.landing-btn-icon {
    margin-right: 12px;
    font-size: 1.2em;
}

/* Subtitle */
.landing-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Cinzel', serif;
    text-align: center;
    margin-top: -30px;
    margin-bottom: 40px;
    font-size: 1.1em;
    font-style: italic;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .landing-buttons {
        flex-direction: column;
        padding: 20px;
        gap: 12px;
    }

    .landing-btn {
        width: 100%;
        max-width: none;
        padding: 14px 30px;
        font-size: 0.95em;
    }

    .landing-btn.primary {
        font-size: 1.05em;
        padding: 16px 35px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .landing-buttons {
        padding: 15px;
        gap: 10px;
    }

    .landing-btn {
        padding: 12px 25px;
        font-size: 0.9em;
    }

    .landing-btn.primary {
        font-size: 1em;
        padding: 14px 30px;
    }

    .landing-btn-icon {
        font-size: 1em;
    }
}
