/* PWA Browser Behavior Overrides */

html {
    overscroll-behavior: none;
}

body {
    overscroll-behavior-y: contain;
    -webkit-touch-callout: none;
}

* {
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

input,
textarea,
[contenteditable="true"] {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}

.room-code-display {
    -webkit-user-select: all;
    user-select: all;
}

/* Android WebView full-height fix (--app-height set by pwa-overrides.js) */
.android-webview {
    height: var(--app-height, 100vh) !important;
}

.android-webview body {
    min-height: var(--app-height, 100vh) !important;
}

.android-webview .app {
    min-height: var(--app-height, 100vh) !important;
}

.android-webview .screen {
    height: var(--app-height, 100vh) !important;
    overflow-y: auto !important;
}

.android-webview .screen.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
    height: var(--app-height, 100vh) !important;
    overflow-y: auto !important;
}

.android-webview .menu-screen {
    min-height: var(--app-height, 100vh) !important;
}

.android-webview #onboarding-screen {
    height: var(--app-height, 100vh) !important;
    overflow: visible !important;
}
