/*
 * Retrato persistente para a KYVIA instalada.
 * O manifesto/API fazem o bloqueio nativo; esta moldura mantém o layout em
 * retrato nos aparelhos que ignoram a solicitação, sem modal ou mensagem.
 */
@media (orientation:landscape) and (pointer:coarse){
    html.kyvia-standalone-orientation{
        width:100%;
        height:100%;
        overflow:hidden !important;
        overscroll-behavior:none;
        background:#050505;
    }

    html.kyvia-standalone-orientation body{
        position:fixed !important;
        top:0 !important;
        left:0 !important;
        width:100vh !important;
        width:100dvh !important;
        height:100vw !important;
        height:100dvw !important;
        min-width:0 !important;
        min-height:100vw !important;
        min-height:100dvw !important;
        max-width:none !important;
        max-height:none !important;
        margin:0 !important;
        overflow-x:hidden !important;
        overflow-y:auto !important;
        overscroll-behavior:none;
        -webkit-overflow-scrolling:touch;
        transform-origin:top left !important;
    }

    html.kyvia-standalone-orientation:not(.kyvia-landscape-left) body,
    html.kyvia-standalone-orientation.kyvia-landscape-right body{
        transform:rotate(90deg) translateY(-100%) !important;
    }

    html.kyvia-standalone-orientation.kyvia-landscape-left body{
        transform:rotate(-90deg) translateX(-100%) !important;
    }
}
