* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

html {
    width: 100%;
    height: 100%;
    height: -webkit-fill-available;
}

body {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    overflow: hidden;
    background-color: #1a1a2e;
    font-family: 'Press Start 2P', cursive;
    overscroll-behavior: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#game-container {
    width: 100%;
    height: 100%;
    height: 100vh;
    height: -webkit-fill-available;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#game-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    body, #game-container {
        height: -webkit-fill-available;
        min-height: -webkit-fill-available;
    }
}

/* Safe area insets for notched devices */
@supports (padding: env(safe-area-inset-top)) {
    body {
        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);
    }
}

/* Hide scrollbars */
::-webkit-scrollbar {
    display: none;
}

/* Custom font */
@font-face {
    font-family: 'Bitcount';
    src: url('/assets/BitcountPropSingle.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
