body {
    background-color: #222;
    color: #eee;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

#game-container {
    text-align: center;
    position: relative;
}

canvas {
    background-color: #a0c0ff; /* Light blue room wall */
    border: 5px solid #555;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    cursor: crosshair;
}

#ui-overlay {
    position: absolute;
    top: 60px; /* Below h1 */
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    display: flex;
    justify-content: space-around;
    pointer-events: none; /* Let clicks pass through to canvas */
    font-weight: bold;
    text-shadow: 1px 1px 2px black;
    font-size: 1.2em;
}

#ui-overlay p {
    margin: 0 10px;
}

#game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    font-size: 2em;
    color: #ff4444;
    pointer-events: auto !important;
}

button {
    font-size: 0.8em;
    padding: 10px 20px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
}

button:hover {
    background-color: #45a049;
}
