/* ==========================================
   WELCOME SCREEN - COMPLETE REDESIGN
   ========================================== */

.welcome-screen-redesign {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
}

/* Welcome Card - Larger and More Impressive */
.welcome-card-redesign {
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.98) 0%, rgba(10, 20, 40, 0.99) 100%);
    border-radius: 30px;
    padding: 60px 50px;
    border: 4px solid rgba(79, 195, 247, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 100px rgba(79, 195, 247, 0.4);
    max-width: 600px;
    width: 90%;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: welcomeEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes welcomeEntrance {
    from {
        transform: scale(0.8) translateY(50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.welcome-card-redesign::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 195, 247, 0.15) 0%, transparent 70%);
    animation: welcomeGlow 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes welcomeGlow {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.5;
    }
    50% { 
        transform: translate(40px, -40px) rotate(180deg);
        opacity: 0.8;
    }
}

/* Logo Section */
.welcome-logo-section {
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.welcome-logo-container {
    width: 180px;
    height: 180px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.2) 0%, rgba(171, 71, 188, 0.2) 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    border: 4px solid rgba(79, 195, 247, 0.4);
    box-shadow: 0 10px 40px rgba(79, 195, 247, 0.4);
    animation: logoFloat 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

@keyframes logoFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
    }
    50% { 
        transform: translateY(-15px) rotate(5deg);
    }
}

.welcome-logo-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: logoShine 4s ease-in-out infinite;
}

@keyframes logoShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.welcome-game-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(79, 195, 247, 0.8);
    animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { 
        text-shadow: 0 4px 20px rgba(79, 195, 247, 0.8);
        transform: scale(1);
    }
    50% { 
        text-shadow: 0 4px 30px rgba(79, 195, 247, 1), 0 0 60px rgba(79, 195, 247, 0.6);
        transform: scale(1.02);
    }
}

.welcome-game-tagline {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.welcome-game-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 450px;
    margin: 0 auto 40px;
}

/* Buttons Section */
.welcome-buttons-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.welcome-btn-redesign {
    padding: 20px 40px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

.welcome-btn-redesign:hover::before {
    width: 400px;
    height: 400px;
}

.welcome-btn-redesign:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.welcome-btn-icon {
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.welcome-btn-text {
    position: relative;
    z-index: 1;
}

/* Primary Button - Google Login */
.welcome-btn-primary {
    background: linear-gradient(135deg, #66bb6a 0%, #388e3c 100%);
    color: #fff;
    border: 3px solid rgba(102, 187, 106, 0.6);
}

.welcome-btn-primary:hover {
    box-shadow: 0 12px 40px rgba(102, 187, 106, 0.6);
}

/* Secondary Button - Lore */
.welcome-btn-secondary {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.3) 0%, rgba(171, 71, 188, 0.3) 100%);
    color: #fff;
    border: 3px solid rgba(79, 195, 247, 0.5);
}

.welcome-btn-secondary:hover {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.5) 0%, rgba(171, 71, 188, 0.5) 100%);
    box-shadow: 0 12px 40px rgba(79, 195, 247, 0.5);
}

/* Features Section */
.welcome-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(79, 195, 247, 0.3);
    position: relative;
    z-index: 1;
}

.welcome-feature {
    text-align: center;
}

.welcome-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 15px rgba(79, 195, 247, 0.6));
    animation: featureFloat 3s ease-in-out infinite;
}

.welcome-feature:nth-child(2) .welcome-feature-icon {
    animation-delay: 0.3s;
}

.welcome-feature:nth-child(3) .welcome-feature-icon {
    animation-delay: 0.6s;
}

@keyframes featureFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.welcome-feature-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #4fc3f7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Version */
.welcome-version {
    margin-top: 30px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

/* Loading State */
.welcome-btn-redesign.loading {
    pointer-events: none;
    opacity: 0.7;
}

.welcome-btn-redesign.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpinning 0.8s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes btnSpinning {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-card-redesign {
        padding: 40px 30px;
    }
    
    .welcome-logo-container {
        width: 140px;
        height: 140px;
        font-size: 4.5rem;
    }
    
    .welcome-game-title {
        font-size: 2.5rem;
    }
    
    .welcome-game-tagline {
        font-size: 1.1rem;
    }
    
    .welcome-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .welcome-btn-redesign {
        padding: 16px 30px;
        font-size: 1rem;
    }
}

/* Fade Out Animation */
.welcome-screen-redesign.fade-out {
    animation: fadeOutScreen 0.5s ease-out forwards;
}

@keyframes fadeOutScreen {
    to {
        opacity: 0;
        pointer-events: none;
    }
}
