:root {
    --hk-viewport-width: 100vw;
    --hk-viewport-height: 100dvh;
    --hk-safe-top: 0px;
    --hk-safe-right: 0px;
    --hk-safe-bottom: 0px;
    --hk-safe-left: 0px;
}

html, body {
    min-height: var(--hk-viewport-height);
}

body.hk-host-embedded {
    overscroll-behavior: none;
    -webkit-tap-highlight-color: transparent;
}

body.hk-device-phone .hk-app-page,
body.hk-device-tablet .hk-app-page {
    padding-top: max(env(safe-area-inset-top), var(--hk-safe-top)) !important;
    padding-bottom: max(env(safe-area-inset-bottom), var(--hk-safe-bottom)) !important;
}

body.hk-performance-low .hk-game-launch:before,
body.hk-performance-low .hk-game-launch:after {
    animation-duration: 0s !important;
}

body.hk-performance-low .hk-game-launch-grid,
body.hk-performance-low .hk-panel {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

@media (orientation: landscape) and (max-height: 520px) {
    body.hk-host-embedded .hk-app-wrap {
        padding-block: max(4px, env(safe-area-inset-top)) max(4px, env(safe-area-inset-bottom)) !important;
    }
}
