/* =========================================================
   Hangul Match Guest Handoff
   Sidebar bottom guest area
   ========================================================= */

.hm-app-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

/*
|--------------------------------------------------------------------------
| Guest footer
|--------------------------------------------------------------------------
|
| カードではなく「サイドバー下部そのもの」を淡い青にする。
|
*/

.hm-sidebar-guest-handoff {
    margin-top: auto;

    width: 100%;

    padding:
        28px
        20px
        24px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    border: 0;
    border-top: 1px solid rgba(50, 158, 255, .14);

    border-radius:
        26px
        26px
        0
        0;

    background:
        linear-gradient(
            180deg,
            #eff8ff 0%,
            #e2f2ff 100%
        );

    box-shadow: none;
}


/*
|--------------------------------------------------------------------------
| Hangul icon
|--------------------------------------------------------------------------
*/

.hm-sidebar-guest-handoff .hm-sidebar-guest-icon {
    display: grid;
    place-items: center;

    width: 58px;
    height: 58px;

    margin:
        0
        auto
        18px;

    flex: 0 0 auto;

    border-radius: 18px;

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            #329eff 0%,
            #2c8ff0 100%
        );

    box-shadow:
        0
        10px
        22px
        rgba(50, 158, 255, .18);

    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}


/*
|--------------------------------------------------------------------------
| Title
|--------------------------------------------------------------------------
*/

.hm-sidebar-guest-handoff h2 {
    width: 100%;

    margin:
        0
        0
        18px;

    color: #14243a;

    font-size: 17px;
    font-weight: 850;
    line-height: 1.5;

    letter-spacing: -.02em;

    text-align: center;
}


/*
|--------------------------------------------------------------------------
| Register CTA
|--------------------------------------------------------------------------
*/

.hm-sidebar-guest-handoff .hm-sidebar-guest-cta {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 54px;

    margin: 0;

    padding:
        13px
        16px;

    border: 0;
    border-radius: 16px;

    color: #ffffff;

    background: #ff8a3d;

    box-shadow:
        0
        9px
        20px
        rgba(255, 138, 61, .20);

    font-size: 14px;
    font-weight: 850;
    line-height: 1.4;

    text-decoration: none;

    transition:
        transform .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}

.hm-sidebar-guest-handoff .hm-sidebar-guest-cta:hover {
    color: #ffffff;

    background: #ff7d29;

    transform: translateY(-1px);

    box-shadow:
        0
        12px
        24px
        rgba(255, 138, 61, .25);
}


/*
|--------------------------------------------------------------------------
| Existing user login
|--------------------------------------------------------------------------
*/

.hm-sidebar-guest-handoff .hm-sidebar-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    margin-top: 8px;

    padding:
        8px
        12px;

    color: #1265b8;

    font-size: 13px;
    font-weight: 800;

    text-decoration: none;
}

.hm-sidebar-guest-handoff .hm-sidebar-login:hover {
    color: #0c579f;
    text-decoration: none;
}


/*
|--------------------------------------------------------------------------
| Desktop
|--------------------------------------------------------------------------
*/

@media (min-width: 981px) {

    .hm-sidebar-guest-handoff {
        /*
         * sticky + bottom:16px は使わない。
         * flex の margin-top:auto で本当に最下部へ置く。
         */
        position: relative;
        bottom: auto;

        margin-bottom: 0;
    }

}


/*
|--------------------------------------------------------------------------
| Mobile sidebar
|--------------------------------------------------------------------------
*/

@media (max-width: 980px) {

    .hm-sidebar-guest-handoff {
        margin-top: auto;
        margin-bottom: 0;

        padding:
            24px
            18px
            22px;

        border-radius:
            22px
            22px
            0
            0;
    }

    .hm-sidebar-guest-handoff .hm-sidebar-guest-icon {
        width: 54px;
        height: 54px;

        margin-bottom: 16px;
    }

}


/*
|--------------------------------------------------------------------------
| Reduced motion
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {

    .hm-sidebar-guest-handoff .hm-sidebar-guest-cta {
        transition: none;
    }

}