body {
    margin: 0;
    overflow: hidden;
    background-color: #222;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    user-select: none; /* Metin seçmeyi engelle */
}

#lobby-screen {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: rgba(0,0,0,0.9);
    z-index: 200;
}

.lobby-box {
    background: #333;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 350px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

input, select, button {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid #444;
    background: #222;
    color: white;
}

button {
    background: #e74c3c;
    color: white;
    cursor: pointer;
    font-weight: bold;
    border: none;
    transition: background 0.2s;
}

button:hover { background: #c0392b; }

#game-screen {
    position: relative;
    width: 100%;
    height: 100%;
}

#leaderboard {
    position: absolute;
    top: 20px; right: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 25px;
    border-radius: 10px;
    pointer-events: none;
    z-index: 150;
    border: 1px solid #444;
}

#leaderboard h3 { margin-top: 0; color: #f1c40f; text-align: center;}
#leaderboard ol { padding-left: 20px; margin-bottom: 0; }
#leaderboard li { margin: 5px 0; font-weight: bold; }

#crosshair {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255,255,255,0.8);
    font-size: 30px;
    pointer-events: none;
    z-index: 100;
}

.name-tag {
    position: absolute;
    color: white;
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    pointer-events: none;
    transform: translate(-50%, -120%); /* Tankın daha üstünde */
    z-index: 99; /* Three.js canvasının üstünde */
    text-shadow: 1px 1px 2px black;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.2);
}

.footer {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: #aaa;
    pointer-events: none;
    z-index: 180;
}