.startup-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    background-image: 
        linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), 
        url('IMG_3606.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
    text-align: center;
    perspective: 2000px;
    overflow: hidden;
}

.startup-content {
    background-color: rgba(0,0,0,0.8);
    padding: 30px;
    border-radius: 15px;
    max-width: 350px;
    width: 90%;
    border: 2px solid rgba(46, 204, 113, 0.5);
    box-shadow: 
        0 0 20px rgba(46, 204, 113, 0.3), 
        0 0 40px rgba(46, 204, 113, 0.2),
        0 10px 30px rgba(0,0,0,0.5);
    transform: 
        rotateY(-20deg) 
        rotateX(10deg) 
        translateZ(-100px) 
        scale(0.9);
    opacity: 0;
    transition: all 1s ease-out;
    transform-style: preserve-3d;
    animation: slide-in 1.5s forwards ease-out;
    display: none;
    margin-top: 100px;
}

@keyframes slide-in {
    0% {
        transform: 
            rotateY(-90deg) 
            rotateX(45deg) 
            translateX(100px) 
            translateZ(-300px) 
            scale(0.6);
        opacity: 0;
    }
    70% {
        transform: 
            rotateY(-10deg) 
            rotateX(5deg) 
            translateX(0) 
            translateZ(-50px) 
            scale(0.95);
        opacity: 0.8;
    }
    100% {
        transform: 
            rotateY(0) 
            rotateX(0) 
            translateX(0) 
            translateZ(0) 
            scale(1);
        opacity: 1;
    }
}

.startup-screen h1 {
    font-family: 'Press Start 2P', cursive;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.2em;
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
    animation: pulse 2s infinite alternate;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    letter-spacing: -1px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.startup-description {
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.startup-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right, 
        transparent, 
        rgba(46, 204, 113, 0.2), 
        transparent
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.startup-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    perspective: 500px;
}

.feature {
    display: flex;
    align-items: center;
    justify-content: center;  
    gap: 10px;
    background-color: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(46, 204, 113, 0.3);
    transform: translateZ(-50px);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.feature-icon {
    font-size: 1.5em;
    transition: transform 0.3s;
    transform-style: preserve-3d;
    margin-right: 10px;
}

.feature-text {
    text-align: center;  
    flex-grow: 1;  
}

.feature:hover {
    transform: 
        scale(1.05) 
        translateZ(20px) 
        rotateX(-5deg);
    box-shadow: 
        0 10px 20px rgba(46, 204, 113, 0.3),
        0 0 15px rgba(46, 204, 113, 0.3);
}

.feature::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg, 
        transparent, 
        rgba(46, 204, 113, 0.2), 
        transparent
    );
    transform: rotate(-45deg);
    transition: all 0.3s;
    opacity: 0;
}

.feature:hover::before {
    opacity: 1;
}

.feature:hover .feature-icon {
    transform: 
        rotate(360deg) 
        translateZ(10px);
}

.start-game-btn {
    background-color: #4C4C4C;
    color: white;
    border: var(--minecraft-button-border) var(--minecraft-button-border-light);
    border-bottom-color: var(--minecraft-button-border-dark);
    border-right-color: var(--minecraft-button-border-dark);
    padding: 8px 15px;
    text-transform: uppercase;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8em;
    cursor: pointer;
    width: auto;
    min-width: 100px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.start-game-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg, 
        transparent, 
        rgba(255,255,255,0.3), 
        transparent
    );
    transition: all 0.5s;
}

.start-game-btn:hover::before {
    left: 100%;
}

.start-game-btn:hover {
    background-color: #5C5C5C;
    transform: scale(1.05);
}

.start-game-btn:active {
    border-top-color: var(--minecraft-button-border-dark);
    border-left-color: var(--minecraft-button-border-dark);
    border-bottom-color: var(--minecraft-button-border-light);
    border-right-color: var(--minecraft-button-border-light);
    background-color: #3C3C3C;
    transform: scale(0.95);
}

.startup-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center, 
        rgba(46, 204, 113, 0.02), 
        rgba(0,0,0,0.5)
    );
    animation: background-shift 10s infinite alternate;
    pointer-events: none;
}

@keyframes background-shift {
    0% {
        transform: scale(1) rotate(0deg);
    }
    100% {
        transform: scale(1.05) rotate(2deg);
    }
}

@keyframes logo-glow {
    0% {
        box-shadow: 
            0 0 5px rgba(46, 204, 113, 0.3), 
            0 0 10px rgba(46, 204, 113, 0.2);
    }
    50% {
        box-shadow: 
            0 0 15px rgba(46, 204, 113, 0.5), 
            0 0 25px rgba(46, 204, 113, 0.4);
    }
    100% {
        box-shadow: 
            0 0 5px rgba(46, 204, 113, 0.3), 
            0 0 10px rgba(46, 204, 113, 0.2);
    }
}

.startup-logo-container {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 500px;
    z-index: 10;
    padding: 0 20px;
}

.startup-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.6);
    border: 2px solid rgba(46, 204, 113, 0.3);
    border-radius: 50%;
    padding: 10px;
    margin-bottom: 10px;
    transform: 
        rotateY(-20deg) 
        rotateX(10deg) 
        translateZ(-50px);
    opacity: 0;
    animation: 
        logo-slide-in 1.5s forwards ease-out,
        logo-glow 3s infinite ease-in-out;
    transition: box-shadow 0.5s ease;
}

.startup-logo .logo-image-new, 
.startup-logo .logo-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    image-rendering: pixelated;
}

.startup-logo .logo-image {
    display: none;
}

.startup-logo-text {
    color: var(--accent-color);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2em;  
    font-weight: bold;
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
    transform: 
        rotateY(-20deg) 
        rotateX(10deg) 
        translateZ(-50px);
    opacity: 0;
    animation: logo-slide-in 1.5s 0.5s forwards ease-out;
    letter-spacing: 1px;
    text-align: center;
    width: 100%;
}

.startup-logo-subtitle {
    color: white;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.8em;
    font-weight: 300;
    font-style: italic;
    opacity: 0;
    transform: 
        rotateY(-20deg) 
        rotateX(10deg) 
        translateZ(-50px);
    animation: logo-slide-in 1.5s 1s forwards ease-out;
    text-align: center;
    width: 100%;
}

@keyframes logo-slide-in {
    0% {
        transform: 
            rotateY(-90deg) 
            rotateX(45deg) 
            translateX(100px) 
            translateZ(-300px) 
            scale(0.6);
        opacity: 0;
    }
    70% {
        transform: 
            rotateY(-10deg) 
            rotateX(5deg) 
            translateX(0) 
            translateZ(-50px) 
            scale(0.95);
        opacity: 0.8;
    }
    100% {
        transform: 
            rotateY(0) 
            rotateX(0) 
            translateX(0) 
            translateZ(0) 
            scale(1);
        opacity: 1;
    }
}