/* Jazz Runner - Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #0a0a1a;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#game-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#game-container canvas {
    max-width: 100%;
    max-height: 100%;
}

/* Mobile touch controls styling */
.touch-control {
    position: absolute;
    pointer-events: auto;
    touch-action: none;
}

.joystick-zone {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 50%;
    height: 50%;
    z-index: 100;
}

.button-zone {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 50%;
    height: 50%;
    z-index: 100;
}

/* Prevent pull-to-refresh and bounce on iOS */
body {
    overscroll-behavior: none;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Landscape orientation lock hint */
@media screen and (orientation: portrait) {
    .rotate-hint {
        display: flex;
    }
}

@media screen and (orientation: landscape) {
    .rotate-hint {
        display: none;
    }
}