@font-face {
    font-family: 'Boogaloo';
    src: url('./Boogaloo-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.87);
    background-color: #0f0f0f;
    /* Prevent mobile text adjustment */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* Prevent mobile zooming */
    touch-action: manipulation;
    /* Prevent mobile scrolling */
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Canvas rendering optimizations */
canvas {
    /* Smooth scaling instead of pixelated */
    image-rendering: auto;
    
    /* Better text rendering */
    text-rendering: optimizeLegibility;
    font-smooth: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* Hardware acceleration */
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
    
    /* Let Phaser handle canvas sizing */
    display: block;
    
    /* Prevent text selection on mobile */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: none;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}

#app {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Better mobile viewport handling */
    position: fixed;
    top: 0;
    left: 0;
    /* Prevent mobile scrolling/bouncing */
    overscroll-behavior: none;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    body {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
    
    #app {
        width: 100vw;
        height: 100vh;
        overflow: hidden;
        /* Handle notch/safe areas on iPhone */
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    /* Ensure game container fills safe area */
    #game-container {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
}
