* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
}

/* Force canvas to receive all direct clicks/taps */
#gameCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    touch-action: none; /* Prevents default mobile scroll/zoom interference */
    pointer-events: auto;
}

/* Overlay containers must let taps pass through */
#ui-container, #joystick-container {
    position: absolute;
    z-index: 10;
    pointer-events: none; /* Let taps pass down to canvas */
}

/* Enable pointer events ONLY on actual UI controls if needed */
#joystick-handle {
    pointer-events: auto;
}
