/* Welcome Screen Styles */
#welcome-screen {
    background: linear-gradient(135deg, #1a1410 0%, #2d2416 50%, #1a1410 100%);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Decorative background pattern */
#welcome-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 100px, rgba(212, 175, 55, 0.03) 100px, rgba(212, 175, 55, 0.03) 101px),
        repeating-linear-gradient(0deg, transparent, transparent 100px, rgba(212, 175, 55, 0.03) 100px, rgba(212, 175, 55, 0.03) 101px);
    opacity: 0.5;
}

.welcome-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 60px;
    position: relative;
    z-index: 2;
}

/* Welcome Image Container */
.welcome-image-container {
    position: relative;
    max-width: 75%;
    max-height: 55%;
    padding: 20px;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%);
    border: 3px solid #8b7355;
    border-radius: 8px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(212, 175, 55, 0.3),
        0 0 30px rgba(212, 175, 55, 0.2);
}

.welcome-image-container::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid #d4af37;
    border-radius: 10px;
    opacity: 0.5;
}

.welcome-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    animation: welcomeFloat 4s ease-in-out infinite;
}

/* Play Button Container */
.play-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Welcome Title */
.welcome-title {
    color: #d4af37;
    font-size: 48px;
    font-weight: bold;
    font-family: 'Georgia', 'Times New Roman', serif;
    text-transform: uppercase;
    letter-spacing: 8px;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(212, 175, 55, 0.6),
        0 0 40px rgba(212, 175, 55, 0.3);
    margin-bottom: 10px;
    animation: titleGlow 3s ease-in-out infinite;
}

/* Play Button */
.play-button {
    padding: 25px 80px;
    font-size: 36px;
    font-weight: bold;
    color: #1a1410;
    background: linear-gradient(135deg, #f4e5c3 0%, #d4af37 50%, #8b6914 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.6),
        inset 0 2px 5px rgba(255, 255, 255, 0.4),
        0 0 30px rgba(212, 175, 55, 0.4);
    text-transform: uppercase;
    letter-spacing: 6px;
    font-family: 'Georgia', 'Times New Roman', serif;
    position: relative;
    overflow: hidden;
}

.play-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #8b7355, #d4af37, #8b7355);
    z-index: -1;
    border-radius: 10px;
}

.play-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.play-button:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.8),
        inset 0 2px 8px rgba(255, 255, 255, 0.5),
        0 0 50px rgba(212, 175, 55, 0.7);
    background: linear-gradient(135deg, #f4e5c3 0%, #d4af37 30%, #d4af37 70%, #f4e5c3 100%);
}

.play-button:hover::after {
    width: 300px;
    height: 300px;
}

.play-button:active {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.7),
        inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Press Space hint */
.press-space-hint {
    color: rgba(212, 175, 55, 0.7);
    font-size: 18px;
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: 2px;
    animation: hintBlink 2s ease-in-out infinite;
}

/* Animations */
@keyframes welcomeFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 
            2px 2px 4px rgba(0, 0, 0, 0.9),
            0 0 20px rgba(212, 175, 55, 0.6),
            0 0 40px rgba(212, 175, 55, 0.3);
    }
    50% {
        text-shadow: 
            2px 2px 4px rgba(0, 0, 0, 0.9),
            0 0 30px rgba(212, 175, 55, 0.8),
            0 0 60px rgba(212, 175, 55, 0.5);
    }
}

@keyframes hintBlink {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Decorative corners */
.welcome-corner {
    position: absolute;
    width: 100px;
    height: 100px;
    border-style: solid;
    border-color: #d4af37;
    opacity: 0.5;
}

.welcome-corner.top-left {
    top: 30px;
    left: 30px;
    border-width: 3px 0 0 3px;
}

.welcome-corner.top-right {
    top: 30px;
    right: 30px;
    border-width: 3px 3px 0 0;
}

.welcome-corner.bottom-left {
    bottom: 30px;
    left: 30px;
    border-width: 0 0 3px 3px;
}

.welcome-corner.bottom-right {
    bottom: 30px;
    right: 30px;
    border-width: 0 3px 3px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 32px;
        letter-spacing: 4px;
    }
    
    .play-button {
        padding: 20px 60px;
        font-size: 28px;
        letter-spacing: 4px;
    }
    
    .welcome-corner {
        width: 60px;
        height: 60px;
    }
    
    .welcome-corner.top-left,
    .welcome-corner.top-right {
        top: 15px;
    }
    
    .welcome-corner.bottom-left,
    .welcome-corner.bottom-right {
        bottom: 15px;
    }
    
    .welcome-corner.top-left,
    .welcome-corner.bottom-left {
        left: 15px;
    }
    
    .welcome-corner.top-right,
    .welcome-corner.bottom-right {
        right: 15px;
    }
}

/* Landscape mode (mobile horizontal) */
@media (max-height: 500px) {
    .welcome-container {
        gap: 20px;
        padding: 10px;
    }
    
    .welcome-image-container {
        max-width: 40%;
        max-height: 65%;
        padding: 10px;
    }
    
    .welcome-title {
        font-size: 24px;
        letter-spacing: 3px;
        margin-bottom: 5px;
    }
    
    .play-button {
        padding: 12px 40px;
        font-size: 20px;
        letter-spacing: 3px;
    }
    
    .welcome-corner {
        width: 40px;
        height: 40px;
    }
    
    .welcome-corner.top-left,
    .welcome-corner.top-right {
        top: 10px;
    }
    
    .welcome-corner.bottom-left,
    .welcome-corner.bottom-right {
        bottom: 10px;
    }
    
    .welcome-corner.top-left,
    .welcome-corner.bottom-left {
        left: 10px;
    }
    
    .welcome-corner.top-right,
    .welcome-corner.bottom-right {
        right: 10px;
    }
}

/* Very small landscape screens */
@media (max-height: 400px) {
    .welcome-container {
        gap: 10px;
        flex-direction: row;
    }
    
    .welcome-image-container {
        max-width: 35%;
        max-height: 80%;
        padding: 5px;
    }
    
    .play-button-container {
        gap: 10px;
    }
    
    .welcome-title {
        font-size: 20px;
        letter-spacing: 2px;
    }
    
    .play-button {
        padding: 10px 30px;
        font-size: 18px;
        letter-spacing: 2px;
    }
}
