#enter-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.95) 100%),
                linear-gradient(-45deg, #000000, #0a0a0a, #141414, #0f0f0f);
    background-size: 100% 100%, 400% 400%;
    animation: gradientShift 20s ease infinite;
    z-index: 100;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 1.5s ease-in-out;
    padding: 0 20px;
    text-align: center;
    opacity: 0;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: opacity, transform;
}

/* Mobile optimizations to prevent flickering */
@media (max-width: 768px) {
    #enter-screen {
        background: #0a0a0a; /* Solid background instead of animated gradient */
        animation: none; /* Disable gradient animation on mobile */
        background-attachment: fixed;
    }
    
    .enter-text,
    #tip-text {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        will-change: transform;
    }
}
#enter-screen.active {
    display: flex;
    opacity: 1;
}
#tip-text {
    font-weight: 400;
    color: white;
    font-size: 1rem;
    margin-top: 25px;
    letter-spacing: 0.05em;
    opacity: 0.8;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.2), 0 0 25px rgba(255, 255, 255, 0.1);
    transition: color 1s ease, text-shadow 0.3s ease, font-weight 0.3s ease;
    min-height: 24px;
    cursor: pointer;
    backdrop-filter: blur(2px);
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}
.clickable-tip {
    color: #b0b0b0 !important;
    font-weight: 700 !important;
    text-shadow: 0 0 12px #b0b0b0 !important;
    opacity: 1 !important;
    background: rgba(176, 176, 176, 0.05) !important;
}
.enter-text {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 0 20px rgba(255,255,255,0.3), 0 0 40px rgba(255,255,255,0.1);
    animation: pulse 3s infinite ease-in-out;
    text-align: center;
    transition: color 1s ease, text-shadow 1s ease, opacity 0.5s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
    padding: 10px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.enter-prompt-image {
    max-width: 250px;
    max-height: 150px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}
#enter-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}
@keyframes pulse {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
    100% {
        opacity: 0.7;
        transform: scale(1);
    }
}
.fade-in-violet {
    color: #7215cf;
    opacity: 0;
    animation: fadeIn 1s forwards;
}
@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%, 0% 50%; }
    50% { background-position: 100% 50%, 100% 50%; }
    100% { background-position: 0% 50%, 0% 50%; }
}
#tip-text.image-tip {
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-tip .gold-tip {
    color: gold;
    opacity: 1;
}
.image-tip img {
    width: 40px;
    height: 40px;
    margin-left: 10px;
}

#enter-screen.hotline-miami-theme {
    background: linear-gradient(-45deg, #1a0022, #2a0044, #0a1122, #221100),
                url('../../images/ui/loading_screen.gif');
    background-size: 400% 400%, cover;
    background-position: 0% 50%, center;
    background-attachment: fixed, fixed;
    animation: gradientShift 20s ease infinite;
}

#enter-screen.hotline-miami-theme .enter-text {
    font-family: 'Press Start 2P', cursive;
    color: #FF00FF;
    text-shadow: 0 0 8px #00FFFF, 0 0 15px #00FFFF, 0 0 25px #FF00FF, 3px 3px 0px #000;
    background: linear-gradient(135deg, rgba(216, 30, 91, 0.15), rgba(0, 168, 243, 0.1));
    backdrop-filter: blur(8px) brightness(0.9) saturate(1.3);
    -webkit-backdrop-filter: blur(8px) brightness(0.9) saturate(1.3);
    border-color: rgba(0, 168, 243, 0.4);
    box-shadow: 0 0 50px rgba(216, 30, 91, 0.2);
}

#enter-screen.hotline-miami-theme #tip-text {
    font-family: 'Press Start 2P', cursive;
    color: #00FFFF;
    text-shadow: 0 0 8px #FF00FF, 2px 2px 0px #000;
    background: linear-gradient(135deg, rgba(50, 0, 50, 0.6), rgba(0, 50, 80, 0.4));
    border-color: rgba(0, 255, 255, 0.4);
}

#enter-screen.akai-theme {
    background: linear-gradient(-45deg, #0a0000, #1a0000, #0f0000, #150000);
    background-size: 400% 400%;
    animation: gradientShift 25s ease infinite;
}

#enter-screen.akai-theme .enter-text {
    font-family: 'Roboto Mono', monospace;
    color: #ff1a1a;
    text-shadow: 
        1px -1px 0 #1a0000, 
        2px -2px 0 #330000, 
        3px -3px 0 #4d0000, 
        4px -4px 1px rgba(0,0,0,0.4), 
        5px -5px 10px rgba(0,0,0,0.4),
        0 0 20px rgba(255, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(40, 0, 0, 0.6), rgba(80, 0, 0, 0.3));
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border: 2px solid rgba(255, 0, 0, 0.2);
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.1), inset 0 0 30px rgba(255, 0, 0, 0.05);
}

#enter-screen.akai-theme #tip-text {
    color: #e60000;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
    background: linear-gradient(135deg, rgba(40, 0, 0, 0.6), rgba(80, 0, 0, 0.3));
    border-color: rgba(255, 0, 0, 0.2);
}

@media (max-width: 768px) {
    #enter-screen {
        z-index: 200;
    }
    
    .enter-text {
        font-size: 1.1rem;
        padding: 15px 25px;
        letter-spacing: 0.15em;
    }
    
    #tip-text {
        font-size: 0.9rem;
        margin-top: 20px;
        padding: 8px 15px;
    }
    
    .enter-prompt-image {
        max-width: 200px;
        max-height: 120px;
    }
}

@media (max-width: 480px) {
    .enter-text {
        font-size: 1rem;
        padding: 12px 20px;
        letter-spacing: 0.1em;
    }
    
    #tip-text {
        font-size: 0.85rem;
        margin-top: 15px;
        padding: 6px 12px;
    }
    
    .enter-prompt-image {
        max-width: 180px;
        max-height: 100px;
    }
}