body { 
    margin: 0; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    height: 100vh; 
    background: #111; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    overflow: hidden; 
}

#game-container { 
    position: relative; 
    border: 4px solid #fff; 
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

#score { 
    position: absolute; 
    top: 10px; 
    left: 10px; 
    color: white; 
    font-size: 20px; 
    z-index: 5;
}

canvas { 
    background: #222; 
    display: block; 
}

/* --- Title Screen Styles --- */
#title-screen {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

#game-title {
    color: #00ff00;
    font-size: 60px;
    margin: 0;
    text-shadow: 0 0 15px #00ff00;
    animation: floatTitle 3s ease-in-out infinite;
}

#start-button {
    margin-top: 30px;
    padding: 15px 50px;
    font-size: 24px;
    background: #00ff00;
    color: #000;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    transition: transform 0.2s;
    animation: floatBtn 3s ease-in-out infinite 0.5s; /* Slightly delayed float */
}

#start-button:hover {
    background: #fff;
    transform: scale(1.1);
}

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

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