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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Prevent pull-to-refresh and overscroll */
    overscroll-behavior: none;
    /* Safe area for notched devices */
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #0a0a2e;
    cursor: crosshair;
    /* Prevent text selection and callouts on mobile */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    /* Improve touch responsiveness */
    touch-action: none;
}

/* Hide cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    #gameCanvas {
        cursor: none;
    }
}
