body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    font-family: 'Press Start 2P', cursive;
    touch-action: none;
    /* Prevent zoom/scroll on mobile */
}

#game-container-section {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Let clicks pass through to canvas */
    display: flex;
    justify-content: center;
    align-items: center;
}

#start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    /* Catch click to start */
    /* Content is drawn by canvas, this is just a click catcher */
    opacity: 0;
}

#game-over-screen {
    background: rgba(0, 0, 0, 0.9);
    padding: 40px;
    border: 4px solid #c0392b;
    border-radius: 10px;
    text-align: center;
    color: white;
    pointer-events: auto;
    z-index: 2000;
}

#game-over-screen.hidden {
    display: none;
}

h1 {
    color: #e74c3c;
    margin-bottom: 20px;
    font-size: 30px;
}

p {
    font-size: 18px;
    margin-bottom: 30px;
}

button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 15px 30px;
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
}

button:hover {
    background: #c0392b;
}