html,
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    /* Prevent iOS overscroll bounce */
    overscroll-behavior: none;
    position: fixed;
    top: 0;
    left: 0;
}

canvas {
    display: block;
    touch-action: none;
    -webkit-touch-callout: none;
}

/* Fullscreen normalization across browsers */
:-webkit-full-screen {
    width: 100% !important;
    height: 100% !important;
}

:fullscreen {
    width: 100% !important;
    height: 100% !important;
}

:-webkit-full-screen canvas {
    width: 100vw !important;
    height: 100vh !important;
}

:fullscreen canvas {
    width: 100vw !important;
    height: 100vh !important;
}

/* iOS 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);
    }
}
