body {
    margin: 0;
    overflow: hidden;
    background-color: #000;
    color: #fff;
    font-family: "Courier New", Courier, monospace;
}

canvas {
    display: block;
}

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

.hidden {
    display: none !important;
}

.modal {
    text-align: center;
    border: 2px solid #fff;
    padding: 40px;
    background: #000;
}

.title-glow {
    font-size: 3rem;
    margin-bottom: 30px;
    letter-spacing: 5px;
    text-transform: uppercase;
}

input {
    padding: 10px 20px;
    font-size: 1.2rem;
    background: #000;
    border: 1px dashed #fff;
    color: #fff;
    outline: none;
    margin-bottom: 20px;
    font-family: "Courier New", Courier, monospace;
}

input:focus {
    border: 1px solid #fff;
}

button {
    padding: 10px 30px;
    font-size: 1.2rem;
    background: #fff;
    color: #000;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    font-family: "Courier New", Courier, monospace;
}

button:hover {
    background: #ccc;
}

/* In-Game HUD Elements */
#hudOverlay {
    pointer-events: none;
    /* Crucial: allows canvas beneath to catch mouse events */
    background: transparent;
}

#minimapContainer {
    position: absolute;
    top: 20px;
    left: 20px;
    border: 1px solid #fff;
    background: rgba(0, 0, 0, 0.5);
}

#fpsCounter {
    position: absolute;
    top: 180px;
    left: 20px;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
}

#leaderboard {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #fff;
    padding: 15px;
    min-width: 200px;
}

#leaderboard h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    text-align: center;
    border-bottom: 1px solid #fff;
    padding-bottom: 5px;
}

#leaderboardList {
    list-style: none;
    padding: 0;
    margin: 0;
}

#leaderboardList li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #fff;
    margin-right: 5px;
}

#playerStats {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

#scoreDisplay {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.progress-bar-container {
    width: 300px;
    height: 10px;
    background: #000;
    border: 1px solid #fff;
}

.progress-bar-fill {
    height: 100%;
    background: #fff;
    transition: width 0.2s;
}