/* Mobile hardening — applies only to touch devices (phones/tablets); desktop
   with a mouse is left completely normal. Disables pinch/double-tap zoom, text
   selection/copy, and image long-press (save/copy/open) + drag/swipe. */
@media (hover: none) and (pointer: coarse) {

    html {
        /* Disables pinch-zoom AND double-tap-zoom while still allowing normal
           vertical/horizontal scrolling. */
        touch-action: pan-x pan-y;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    /* No text selection and no iOS long-press callout anywhere... */
    * {
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
    }

    /* ...but keep real form fields fully usable (typing, caret, edit-select). */
    input,
    textarea,
    select,
    [contenteditable="true"] {
        -webkit-user-select: text !important;
        -moz-user-select: text !important;
        -ms-user-select: text !important;
        user-select: text !important;
    }

    /* Stop images being dragged/swiped out or saved. */
    img {
        -webkit-user-drag: none;
        -khtml-user-drag: none;
        -moz-user-drag: none;
        user-drag: none;
        -webkit-touch-callout: none !important;
    }
}
