/*
 * Eggy Pool AI 1.0.1
 * Surgical Pool Hall landscape correction.
 *
 * Desktop is intentionally untouched.
 * Base Pool owns the shared action rail; this only normalises the AI anchor
 * to the exact compact dimensions used by Create Table and Exit Pool in
 * phone landscape/fullscreen.
 */

@media
    (pointer: coarse)
    and (orientation: landscape)
    and (max-height: 600px)
{
    body[data-template="eggy_pool_lobby"]
    #epPoolLobbyV2
    .epPoolLobbyV2__available
    .epPoolLobbyV2__availableTools
    > a.button.button--primary.epPoolAiChallenge
    {
        box-sizing: border-box !important;

        display: inline-flex !important;
        flex: 0 0 100px !important;

        width: 100px !important;
        min-width: 100px !important;
        max-width: 100px !important;

        height: 28px !important;
        min-height: 28px !important;
        max-height: 28px !important;

        margin: 0 !important;
        padding: 4px 8px !important;

        align-self: center !important;
        align-items: center !important;
        justify-content: center !important;

        overflow: hidden !important;

        border-radius: 6px !important;

        font-size: 10px !important;
        line-height: 18px !important;
        font-weight: 800 !important;

        text-align: center !important;
        white-space: nowrap !important;
    }
}

@media
    (pointer: coarse)
    and (orientation: landscape)
    and (max-height: 600px)
    and (max-width: 740px)
{
    body[data-template="eggy_pool_lobby"]
    #epPoolLobbyV2
    .epPoolLobbyV2__available
    .epPoolLobbyV2__availableTools
    > a.button.button--primary.epPoolAiChallenge
    {
        flex-basis: 94px !important;

        width: 94px !important;
        min-width: 94px !important;
        max-width: 94px !important;
    }
}
