* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #000;
    color: #fff;
    font-family: monospace;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}

#game-container {
    position: relative;
    width: 640px;
    height: 400px;
    border: 4px solid #333;
    cursor: pointer;
    user-select: none;
    overflow: hidden;
}

#canvas {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    background-color: #111;
    display: block;
}

/* Mani in overlay fisse in basso al centro */
#weapon-overlay {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 133px;
    background-image: url('mani.png');
    background-repeat: no-repeat;
    background-position: 0 0;
    image-rendering: pixelated;
    pointer-events: none;
    z-index: 10;
}

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

#click-to-play {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    pointer-events: none;
    z-index: 20;
}

#controls-hint {
    margin-top: 15px;
    color: #888;
    font-size: 14px;
    text-align: center;
}