/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}

/* Game container */
#gameBox {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Canvas styling */
canvas {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    touch-action: none;
}

/* Hidden controls that still work but aren't visible */
.controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 33%;
    width: 100%;
    pointer-events: all;
    opacity: 0;
}

.arrow {
    position: absolute;
    background: none;
    border: none;
}

#uArrow { 
    top: 0;
    left: 0;
    width: 100%;
    height: 33%;
}

#dArrow { 
    bottom: 0;
    left: 0;
    width: 100%;
    height: 33%;
}

#lArrow { 
    left: 0;
    top: 33%;
    width: 33%;
    height: 33%;
}

#rArrow { 
    right: 0;
    top: 33%;
    width: 33%;
    height: 33%;
}

/* Prevent scrolling on mobile devices */
@media (max-width: 768px) {
    html, body {
        position: fixed;
        overflow: hidden;
    }
}