/* ============================================
   Forest Dash: Escape from the Pope's Jungle
   Main Stylesheet
   ============================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #0a2a15;
    font-family: 'Arial', 'Helvetica Neue', sans-serif;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

/* Game Container */
#game-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#game-container canvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
    image-rendering: optimizeQuality;
    image-rendering: -webkit-optimize-contrast;
}

/* Loading Overlay - shown before Phaser initializes */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0a2a15 0%, #1a4a2e 50%, #0d3319 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

#loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

#loading-overlay h1 {
    color: #7fff7f;
    font-size: 24px;
    text-align: center;
    text-shadow: 0 0 20px rgba(127, 255, 127, 0.5);
    margin-bottom: 20px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px rgba(127, 255, 127, 0.3); }
    to { text-shadow: 0 0 30px rgba(127, 255, 127, 0.8); }
}

/* Prevent pull-to-refresh on mobile */
body {
    overscroll-behavior: none;
}

/* Landscape orientation hint for mobile */
@media screen and (orientation: landscape) and (max-height: 500px) {
    /* Game handles this internally */
}

/* High DPI adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    #game-container canvas {
        image-rendering: auto;
    }
}

/* Fullscreen adjustments */
:-webkit-full-screen #game-container {
    width: 100vw;
    height: 100vh;
}

:-moz-full-screen #game-container {
    width: 100vw;
    height: 100vh;
}

:fullscreen #game-container {
    width: 100vw;
    height: 100vh;
}