body { 
    margin: 0; 
    overflow: hidden; 
    background-color: #222; 
    color: white; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

canvas { 
    display: block; 
    width: 100vw; 
    height: 100vh; 
}

.overlay { 
    position: absolute; 
    top: 0; left: 0; 
    width: 100vw; height: 100vh; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    background: rgba(0,0,0,0.85); 
    z-index: 10; 
}

h1 { 
    font-size: 3rem; 
    margin-bottom: 10px; 
    text-shadow: 2px 2px 0 #000; 
}

#selectedGameName {
    font-size: 4rem;
    color: #f1c40f;
    text-shadow: 3px 3px 0 #000;
    margin-top: 20px;
}

.menu-box { 
    background: #333; 
    padding: 30px; 
    border-radius: 15px; 
    text-align: center; 
    border: 4px solid #555; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.menu-box label { 
    font-size: 1.2rem; 
    display: block; 
    margin: 15px 0 5px; 
}

select, input { 
    font-size: 1.2rem; 
    padding: 5px; 
    border-radius: 5px; 
    width: 120px; 
    text-align: center; 
    background: #fff;
    border: none;
}

button { 
    margin-top: 20px; 
    font-size: 1.5rem; 
    padding: 10px 30px; 
    cursor: pointer; 
    background: #4CAF50; 
    color: white; 
    border: none; 
    border-radius: 8px; 
    font-weight: bold; 
    transition: 0.2s; 
    box-shadow: 0 4px 0 #2e7d32;
}

button:hover { 
    background: #45a049; 
    transform: translateY(2px);
    box-shadow: 0 2px 0 #2e7d32;
}

button:active {
    transform: translateY(4px);
    box-shadow: none;
}

.hidden { display: none !important; }

.score-board { 
    display: flex; 
    gap: 20px; 
    margin-bottom: 30px; 
}

.score-card { 
    padding: 20px; 
    border-radius: 10px; 
    font-size: 2rem; 
    font-weight: bold; 
    width: 120px; 
    text-align: center; 
    color: black; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

#msg { 
    position: absolute; 
    top: 20px; left: 50%; 
    transform: translateX(-50%); 
    font-size: 2.5rem; 
    font-weight: bold; 
    text-shadow: 2px 2px 4px #000; 
    z-index: 5; 
    pointer-events: none; 
    color: white;
}

.controls-info {
    margin-top: 25px; 
    font-size: 1rem; 
    color: #ccc;
    background: rgba(0,0,0,0.3);
    padding: 10px;
    border-radius: 8px;
}