/* =========================================================
   LEXPICK V4 — MOBILE FIRST
   ========================================================= */

#game-area .lp-game-header {
    padding: 0 2px !important;
}

#game-area .lp-game-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

#game-area #undo-btn,
#game-area #quit-pill {
    position: static !important;

    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;

    margin: 0 !important;
    padding: 0 !important;

    transform: none !important;

    border:
        1px solid rgba(255,255,255,.10)
        !important;

    border-radius: 14px !important;

    background:
        rgba(255,255,255,.055)
        !important;

    color: #f6f7fb !important;

    box-shadow: none !important;

    font-size: 19px !important;
}

#game-area #quit-pill {
    color: #ff89a6 !important;
}

#game-area #matches-pill {
    position: static !important;

    width: auto !important;
    min-width: 96px !important;
    height: 42px !important;

    margin: 0 !important;
    padding: 0 15px !important;

    border: 0 !important;
    border-radius: 14px !important;

    background:
        linear-gradient(
            120deg,
            #60cfff 0%,
            #a888ff 50%,
            #ff78bf 100%
        ) !important;

    color: #080a10 !important;

    box-shadow:
        0 9px 26px
        rgba(123,151,255,.18)
        !important;

    font-size: 12px !important;
    font-weight: 800 !important;
}

#game-area #genre-pill {
    min-width: 100px !important;
    height: 40px !important;

    padding: 0 15px !important;

    border:
        1px solid rgba(255,255,255,.10)
        !important;

    border-radius: 14px !important;

    background:
        rgba(255,255,255,.05)
        !important;

    color: #f5f6fa !important;

    box-shadow: none !important;
}

#game-area #solo-badge {
    border:
        1px solid
        rgba(170,137,255,.22)
        !important;

    background:
        rgba(170,137,255,.09)
        !important;

    color: #cebdff !important;
}

#game-area .movie-card {
    border:
        1px solid
        rgba(255,255,255,.075)
        !important;

    box-shadow:
        0 28px 75px
        rgba(0,0,0,.5)
        !important;
}

.lp-inline-rate {
    width:
        calc(100% - 28px);

    min-height: 44px;

    margin:
        4px 14px 11px;

    border:
        1px solid
        rgba(174,141,255,.30);

    border-radius: 13px;

    background:
        linear-gradient(
            120deg,
            rgba(94,200,255,.11),
            rgba(169,134,255,.13),
            rgba(255,114,188,.10)
        );

    color: #f3eeff;

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

    cursor: pointer;
}

.lp-inline-rate span {
    margin-right: 4px;
    color: #d4baff;
}

.lp-inline-rate-small {
    width: 90%;
    margin:
        7px auto 0;
}

.mini-back .menu-btn {
    width: 90% !important;

    margin:
        5px auto !important;

    border-radius:
        11px !important;

    box-shadow: none !important;

    font-size:
        11px !important;
}


/* Rating overlay */

.lp-rating-overlay {
    position: fixed;

    inset: 0;

    z-index: 60000;

    display: grid;
    place-items: center;

    padding: 20px;

    background:
        rgba(4,7,12,.70);

    backdrop-filter:
        blur(18px);
}

.lp-rating-overlay.hidden {
    display: none !important;
}

.lp-rating-sheet {
    width:
        min(520px, 100%);

    max-height:
        min(760px, 90dvh);

    overflow-y: auto;

    position: relative;

    padding:
        24px;

    border:
        1px solid
        rgba(255,255,255,.11);

    border-radius:
        28px;

    background:
        radial-gradient(
            circle at top right,
            rgba(255,114,188,.10),
            transparent 34%
        ),
        radial-gradient(
            circle at bottom left,
            rgba(94,200,255,.09),
            transparent 40%
        ),
        #111624;

    box-shadow:
        0 38px 100px
        rgba(0,0,0,.55);
}

.lp-sheet-handle {
    display: none;

    width: 44px;
    height: 5px;

    margin:
        0 auto 18px;

    border-radius:
        999px;

    background:
        rgba(255,255,255,.20);
}

.lp-rating-sheet-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 18px;
}

.lp-rating-eyebrow {
    color: #ad91ff;

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

    letter-spacing: .15em;
}

.lp-rating-sheet-header h2 {
    margin:
        7px 0 0;

    color: #f7f8fc;

    font-size: 25px;

    letter-spacing: -.8px;
}

.lp-sheet-close {
    width: 38px;
    height: 38px;

    flex: 0 0 auto;

    border:
        1px solid
        rgba(255,255,255,.10);

    border-radius: 13px;

    background:
        rgba(255,255,255,.05);

    color: #f5f6fa;

    font-size: 22px;

    cursor: pointer;
}

.lp-rating-number-row {
    margin-top: 29px;

    display: flex;
    align-items: baseline;

    gap: 6px;

    color: #7e8799;
}

#lp-rating-number {
    font-size: 56px;
    line-height: 1;

    font-weight: 820;

    letter-spacing: -3px;

    background:
        linear-gradient(
            120deg,
            #62d0ff,
            #aa89ff,
            #ff79bf
        );

    -webkit-background-clip:
        text;

    background-clip:
        text;

    color: transparent;
}

.lp-rating-slider {
    width: 100%;

    margin-top: 25px;

    accent-color:
        #a987ff;
}

.lp-rating-scale {
    display: flex;
    justify-content: space-between;

    margin-top: 4px;

    color: #697287;

    font-size: 10px;
}

.lp-review-field {
    display: grid;

    gap: 8px;

    margin-top: 23px;

    color: #bec5d2;

    font-size: 12px;
    font-weight: 700;
}

#lp-rating-review {
    width: 100%;
    min-height: 96px;

    resize: vertical;

    padding: 13px;

    border:
        1px solid
        rgba(255,255,255,.09);

    border-radius: 14px;

    outline: none;

    background:
        rgba(0,0,0,.20);

    color: #f7f8fb;

    font: inherit;
    line-height: 1.45;
}

#lp-rating-review:focus {
    border-color:
        rgba(169,134,255,.45);
}

.lp-rating-save {
    width: 100%;
    min-height: 50px;

    margin-top: 14px;

    border: 0;
    border-radius: 14px;

    background:
        linear-gradient(
            120deg,
            #61ceff,
            #a889ff 50%,
            #ff79c0
        );

    color: #080a10;

    font-weight: 820;

    cursor: pointer;
}

.lp-rating-community {
    margin-top: 24px;

    padding-top: 20px;

    border-top:
        1px solid
        rgba(255,255,255,.07);
}

.lp-rating-community-summary {
    display: flex;
    align-items: center;

    gap: 9px;

    color: #8d96a9;

    font-size: 12px;
}

.lp-rating-community-summary strong {
    color: #f4f6fa;

    font-size: 17px;
}

.lp-rating-user-list {
    display: grid;

    gap: 9px;

    margin-top: 13px;
}

.lp-rating-user-row {
    padding:
        12px 13px;

    border:
        1px solid
        rgba(255,255,255,.07);

    border-radius: 14px;

    background:
        rgba(255,255,255,.025);
}

.lp-rating-user-top {
    display: flex;
    justify-content: space-between;

    gap: 16px;

    font-size: 12px;
}

.lp-rating-user-top span {
    color: #c7afff;
    font-weight: 800;
}

.lp-rating-user-row p {
    margin:
        8px 0 0;

    color: #9ca5b6;

    font-size: 12px;
    line-height: 1.45;
}

.lp-rating-loading {
    color: #7d8699;
    font-size: 12px;
}


/* Mobile is the primary experience */

@media (max-width: 640px) {

    #game-area.lp-game {
        padding:
            max(
                10px,
                env(safe-area-inset-top)
            )
            11px
            max(
                10px,
                env(safe-area-inset-bottom)
            )
            !important;
    }

    #game-area .lp-game-header {
        min-height:
            50px !important;
    }

    #game-area .lp-game-brand {
        font-size:
            18px !important;
    }

    #game-area #swipe-deck {
        width:
            min(
                calc(100vw - 28px),
                390px
            )
            !important;

        max-height:
            calc(
                100dvh - 190px
            )
            !important;
    }

    #game-area .lp-swipe-guide {
        width:
            min(
                calc(100vw - 28px),
                390px
            )
            !important;
    }

    .lp-rating-overlay {
        place-items: end center;

        padding: 0;
    }

    .lp-rating-sheet {
        width: 100%;

        max-width: none;

        max-height: 88dvh;

        padding:
            13px
            20px
            max(
                25px,
                env(safe-area-inset-bottom)
            );

        border-width:
            1px 0 0;

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

    .lp-sheet-handle {
        display: block;
    }

    #lp-rating-number {
        font-size: 50px;
    }

}
