/* Playing with a finger, on a phone in landscape (mobile.js) */

#turn_phone{ display: none; }

@media (hover: none) and (pointer: coarse)
{
    #reveal-btn{ display: block; }

    /* finger-sized */
    #drawer-btn
    {
        min-width: 44px;
        min-height: 44px;
    }
    #drawer-btn > img{ width: 24px; height: 24px; }
    #game_options{ gap: 4px; }
    #game_options > button
    {
        flex: 1 1 0;
        min-width: 0;
        min-height: 36px;
    }
}

@media (hover: none) and (pointer: coarse) and (orientation: portrait)
{
    #turn_phone
    {
        position: fixed;
        inset: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        padding: 16px;
        background-color: #000;
        color: #fff;
        font-family: Courier, monospace;
        text-align: center;
        z-index: 10;
    }
    .turn_phone_icon
    {
        width: 48px;
        height: 84px;
        border: 3px solid #fff;
        border-radius: 10px;
        animation: turn_phone 2s ease-in-out infinite;
    }
}
@keyframes turn_phone
{
    0%, 20%{ transform: rotate(0); }
    60%, 100%{ transform: rotate(-90deg); }
}

/* a phone in landscape: little height */
@media (max-height: 500px)
{
    :root{ --drawer-width: 168px; }
    #drawer .options{ margin-bottom: 6px; padding: 6px; }
    #game_options{ height: 32px; }
    #item_options{ height: 52px; }
    #item_options > button{ flex: 1 1 0; min-width: 0; height: 48px; padding: 0 2px; }
    #item_options > button > img{ max-width: 100%; max-height: 48px; }
    #board-btn{ padding: 3px; font-size: 11px; }
    #inventory > img{ width: 64px; height: 64px; object-fit: contain; margin: 0 2px 6px; }

    .mailbox_new{ left: 5vw; top: 5vh; width: 90vw; height: 90vh; }
    .popinfo{ height: auto; max-height: calc(100dvh - 40px); }
}
