/* Alien Onslaught - Game Styles */

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

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #0a0a0f;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Prevent pull-to-refresh and other touch gestures */
    overscroll-behavior: none;
    touch-action: none;
}

#gameCanvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    cursor: crosshair;
    /* Prevent touch callouts and text selection */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: none;
}

/* Hide cursor during gameplay for immersion (desktop only) */
@media (hover: hover) and (pointer: fine) {
    .hide-cursor #gameCanvas {
        cursor: none;
    }
}

/* Mobile-specific styles */
@media (max-width: 768px),
(pointer: coarse) {
    #gameCanvas {
        cursor: none;
    }

    body {
        /* Prevent iOS bounce effect */
        position: fixed;
        width: 100%;
        height: 100%;
    }
}