body {
    background-color: #222;
    color: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: monospace;
    overflow: hidden;
}

#game-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#gameCanvas {
    image-rendering: pixelated;
    background-color: #000;
    border: 4px solid #444;
    width: 512px; /* 128 * 4 */
    height: 512px; /* 128 * 4 */
}

#hud {
    width: 512px;
    height: 40px;
    background-color: #333;
    border: 4px solid #444;
    border-top: none;
    display: flex;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
    justify-content: space-between;
    font-size: 18px;
}

#lives-container {
    display: flex;
    gap: 5px;
}

.life-icon {
    width: 12px;
    height: 12px;
    background-color: red;
    border-radius: 50%;
    border: 1px solid #fff;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 512px;
    height: 512px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
}

#overlay h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

#overlay p {
    font-size: 20px;
}

.hint {
    font-size: 14px !important;
    color: #aaa;
    margin-top: 20px !important;
}

.hidden {
    display: none !important;
}
