/* =====================================================
   RESET
===================================================== */

* {
    box-sizing: border-box;
}


[hidden] {
    display: none !important;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    min-height: 100vh;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 16px;

    line-height: 1.6;

    color: #172033;

    background: #f7f8fc;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


img {
    max-width: 100%;
}


a {
    color: inherit;

    text-decoration: none;
}


button,
input,
select {
    font: inherit;
}


button {
    -webkit-tap-highlight-color:
        transparent;
}


.container {
    width:
        min(
            1180px,
            calc(100% - 32px)
        );

    margin-inline: auto;
}



/* =====================================================
   GLOBAL HEADINGS
===================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #172033;

    font-weight: 800;

    line-height: 1.2;

    letter-spacing: -0.02em;
}



/* =====================================================
   HEADER
===================================================== */

.site-header {
    position: sticky;

    top: 0;

    z-index: 1000;

    width: 100%;

    background:
        rgba(
            11,
            16,
            32,
            .97
        );

    color: #fff;

    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            .08
        );

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);
}


.nav {
    position: relative;

    min-height: 70px;

    display: flex;

    align-items: center;

    gap: 24px;
}



/* =====================================================
   BRAND
===================================================== */

.brand {
    display: flex;

    align-items: center;

    gap: 9px;

    flex-shrink: 0;

    margin-right: auto;

    color: #fff;

    font-size: 20px;

    font-weight: 800;
}


.brand-mark {
    width: 34px;

    height: 34px;

    flex:
        0 0
        34px;

    display: grid;

    place-items: center;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #6c5ce7,
            #00d4ff
        );

    color: #fff;
}


.accent {
    color: #65d7ff;
}



/* =====================================================
   NAVIGATION
===================================================== */

.nav nav {
    display: flex;

    align-items: center;

    gap: 22px;

    font-size: 14px;
}


.nav nav a {
    color: #d4daea;

    transition:
        color .2s ease;
}


.nav nav a:hover {
    color: #65d7ff;
}



/* =====================================================
   HEADER AUTH
===================================================== */

.header-auth {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    flex-shrink: 0;

    min-height: 40px;
}


.header-google-login {
    display: flex;

    align-items: center;

    justify-content: center;
}


.header-google-login > div {
    display: flex;

    align-items: center;

    justify-content: center;
}


.header-user-box {
    align-items: center;

    gap: 8px;
}


.header-user-box:not([hidden]) {
    display: flex;
}


.header-user-avatar {
    width: 34px;

    height: 34px;

    flex:
        0 0
        34px;

    border:
        2px solid
        rgba(
            255,
            255,
            255,
            .25
        );

    border-radius: 50%;

    object-fit: cover;
}


.header-user-name {
    max-width: 105px;

    overflow: hidden;

    color: #fff;

    font-size: 12px;

    font-weight: 700;

    white-space: nowrap;

    text-overflow: ellipsis;
}


.header-logout-button {
    padding:
        7px
        10px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            .15
        );

    border-radius: 7px;

    background:
        rgba(
            255,
            255,
            255,
            .08
        );

    color: #fff;

    font-size: 11px;

    cursor: pointer;
}


.header-logout-button:hover {
    background:
        rgba(
            255,
            255,
            255,
            .16
        );
}



/* =====================================================
   MENU BUTTON
===================================================== */

.menu-btn {
    display: none;

    flex-shrink: 0;

    width: 40px;

    height: 40px;

    padding: 0;

    border: 0;

    border-radius: 8px;

    background:
        rgba(
            255,
            255,
            255,
            .08
        );

    color: #fff;

    font-size: 22px;

    cursor: pointer;
}



/* =====================================================
   HERO
===================================================== */

.hero {
    overflow: hidden;

    padding:
        85px
        0
        95px;

    background:
        radial-gradient(
            circle at 80% 20%,
            #263b7a 0,
            #111a38 35%,
            #0b1020 70%
        );

    color: #fff;
}


.hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(0, .85fr);

    align-items: center;

    gap: 40px;
}


.eyebrow {
    display: inline-block;

    margin-bottom: 10px;

    color: #6c7cff;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .12em;

    text-transform: uppercase;
}


.hero .eyebrow {
    color: #71dfff;
}


.hero h1 {
    max-width: 720px;

    margin:
        0
        0
        20px;

    color: #fff;

    font-size:
        clamp(
            38px,
            6vw,
            70px
        );

    font-weight: 800;

    line-height: 1.02;

    letter-spacing: -0.045em;
}


.hero p {
    max-width: 620px;

    margin: 0;

    color: #c5cee1;

    font-size: 18px;

    line-height: 1.7;
}


.hero-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 28px;
}



/* =====================================================
   HERO ART
===================================================== */

.hero-art {
    position: relative;

    min-height: 310px;

    display: grid;

    place-items: center;
}


.game-card-float {
    position: relative;

    z-index: 2;

    width: 190px;

    height: 240px;

    display: grid;

    place-items: center;

    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            #242e61,
            #131a3a
        );

    box-shadow:
        0 35px 90px
        rgba(
            0,
            0,
            0,
            .45
        );

    font-size: 85px;

    transform:
        rotate(7deg);
}


.orb {
    position: absolute;

    border-radius: 50%;

    filter: blur(4px);

    opacity: .5;
}


.orb1 {
    top: 10px;

    left: 40px;

    width: 180px;

    height: 180px;

    background: #6c5ce7;
}


.orb2 {
    right: 30px;

    bottom: 10px;

    width: 130px;

    height: 130px;

    background: #00d4ff;
}



/* =====================================================
   BUTTONS
===================================================== */

.btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding:
        12px
        18px;

    border: 0;

    border-radius: 10px;

    font-weight: 700;

    line-height: 1.2;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}


.btn:hover {
    transform:
        translateY(-1px);
}


.btn.primary {
    background: #5b5ff0;

    color: #fff;
}


.btn.primary:hover {
    background: #4a4edb;
}


.btn.ghost {
    border:
        1px solid
        #44516e;

    background: transparent;

    color: #fff;
}


.btn.small {
    padding:
        9px
        13px;

    font-size: 13px;
}


.btn.large {
    padding:
        15px
        23px;

    font-size: 16px;
}



/* =====================================================
   SECTIONS
===================================================== */

.section {
    padding:
        55px
        0;
}


.section-head {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}


.section-head h2 {
    margin: 0;

    color: #172033;

    font-size: 30px;

    font-weight: 800;

    line-height: 1.2;

    letter-spacing: -0.025em;
}



/* =====================================================
   CATEGORIES
===================================================== */

.chips {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;
}


.chip {
    padding:
        9px
        15px;

    border:
        1px solid
        #d9deea;

    border-radius: 999px;

    background: #fff;

    color: #344054;

    cursor: pointer;
}


.chip:hover {
    border-color:
        #5b5ff0;
}


.chip.active {
    border-color:
        #171d36;

    background:
        #171d36;

    color: #fff;
}



/* =====================================================
   FILTERS
===================================================== */

.filters {
    display: flex;

    gap: 9px;
}


.search {
    display: flex;

    align-items: center;

    gap: 8px;

    padding:
        0
        11px;

    border:
        1px solid
        #d9deea;

    border-radius: 10px;

    background: #fff;
}


.search input {
    width: 210px;

    padding:
        11px
        4px;

    border: 0;

    outline: 0;

    background: transparent;
}


.filters select {
    min-width: 120px;

    padding:
        0
        11px;

    border:
        1px solid
        #d9deea;

    border-radius: 10px;

    background: #fff;
}



/* =====================================================
   GAME GRID
===================================================== */

.game-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(
                0,
                1fr
            )
        );

    gap: 20px;
}


.game-card {
    overflow: hidden;

    min-width: 0;

    border:
        1px solid
        #e3e6ef;

    border-radius: 15px;

    background: #fff;

    box-shadow:
        0 5px 20px
        rgba(
            22,
            29,
            54,
            .04
        );

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}


.thumb-link {
    position: relative;

    display: block;

    overflow: hidden;

    aspect-ratio:
        16 / 10;

    background: #e9edf7;
}


.thumb-link img {
    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .35s ease;
}


.play-overlay {
    position: absolute;

    right: 12px;

    bottom: 12px;

    width: 42px;

    height: 42px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: #fff;

    color: #4d51df;

    box-shadow:
        0 5px 15px
        rgba(
            0,
            0,
            0,
            .2
        );

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.game-body {
    padding: 15px;
}


.tag {
    display: inline-block;

    padding:
        5px
        8px;

    border-radius: 999px;

    background: #eef0ff;

    color: #5b5ff0;

    font-size: 10px;

    font-weight: 800;

    line-height: 1;

    letter-spacing: .08em;

    text-transform: uppercase;
}


.game-body h3 {
    margin:
        10px
        0
        7px;

    color: #172033;

    font-size: 17px;

    font-weight: 750;

    line-height: 1.35;

    letter-spacing: -0.01em;
}


.game-body h3 a {
    color: inherit;

    transition:
        color .2s ease;
}


.game-body p {
    min-height: 39px;

    margin:
        0
        0
        14px;

    color: #667085;

    font-size: 13px;

    line-height: 1.6;
}



/* =====================================================
   CARD HOVER
===================================================== */

@media (hover: hover) and (pointer: fine) {

    .game-card:hover {
        transform:
            translateY(-5px);

        border-color:
            #d8dcff;

        box-shadow:
            0 16px 38px
            rgba(
                22,
                29,
                54,
                .12
            );
    }


    .game-card:hover
    .thumb-link img {
        transform:
            scale(1.045);
    }


    .game-card:hover
    .play-overlay {
        transform:
            scale(1.08);

        box-shadow:
            0 8px 20px
            rgba(
                0,
                0,
                0,
                .18
            );
    }


    .game-card:hover
    .game-body h3 a {
        color:
            #5b5ff0;
    }

}



/* =====================================================
   STATES
===================================================== */

.loading,
.error,
.empty,
.not-found {
    grid-column:
        1 / -1;

    padding: 35px;

    border:
        1px solid
        #e3e6ef;

    border-radius: 15px;

    background: #fff;

    text-align: center;
}


.error {
    color: #b42318;
}



/* =====================================================
   PAGINATION
===================================================== */

.pagination {
    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 32px;
}


.page-btn {
    min-width: 40px;

    height: 40px;

    padding:
        0
        10px;

    border:
        1px solid
        #d9deea;

    border-radius: 9px;

    background: #fff;

    color: #344054;

    font-weight: 700;

    cursor: pointer;
}


.page-btn:hover:not(:disabled),
.page-btn.active {
    border-color:
        #171d36;

    background:
        #171d36;

    color: #fff;
}


.page-btn:disabled {
    opacity: .4;

    cursor:
        not-allowed;
}



/* =====================================================
   GAME PAGE
===================================================== */

.game-page {
    min-height:
        calc(
            100vh - 180px
        );

    padding-top: 25px;

    padding-bottom: 60px;
}


.game-heading {
    margin-bottom: 22px;
}


.game-heading h1 {
    margin:
        7px
        0;

    color: #172033;

    font-size:
        clamp(
            30px,
            5vw,
            48px
        );

    font-weight: 800;

    line-height: 1.1;

    letter-spacing: -0.035em;
}


.game-heading p {
    max-width: 820px;

    margin:
        10px
        0
        0;

    color: #667085;

    font-size: 16px;

    line-height: 1.75;
}



/* =====================================================
   ADS
===================================================== */

.ad-slot {
    width: 100%;

    min-height: 120px;

    margin:
        32px
        0;

    padding: 10px;

    overflow: hidden;

    border:
        1px dashed
        #d8dce7;

    border-radius: 12px;

    background: #fff;

    text-align: center;
}


.ad-label {
    display: block;

    margin-bottom: 8px;

    color: #9aa2b1;

    font-size: 9px;

    letter-spacing: .08em;

    text-transform: uppercase;
}


.game-ad
.adsbygoogle {
    display:
        block
        !important;

    width:
        100%
        !important;

    min-width: 250px;
}



/* =====================================================
   PLAYER
===================================================== */

.player-wrap {
    overflow: hidden;

    border-radius: 16px;

    background: #0b1020;

    box-shadow:
        0 15px 45px
        rgba(
            11,
            16,
            32,
            .18
        );
}


.player-header {
    min-height: 52px;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 15px;

    padding:
        0
        15px;

    color: #fff;

    font-size: 14px;
}


.icon-btn {
    padding:
        8px
        11px;

    border: 0;

    border-radius: 8px;

    background: #1d2745;

    color: #fff;

    cursor: pointer;
}


.icon-btn:hover {
    background: #273457;
}


.player {
    position: relative;

    overflow: hidden;

    display: grid;

    place-items: center;

    aspect-ratio:
        16 / 9;

    background: #050810;
}


.player-poster {
    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    opacity: .32;
}


.player::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            rgba(
                4,
                7,
                16,
                .12
            ),
            rgba(
                4,
                7,
                16,
                .6
            )
        );
}


.player-overlay {
    position: relative;

    z-index: 2;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 12px;

    padding: 20px;

    text-align: center;
}


.player-status {
    max-width: 500px;

    color: #d0d6e4;

    font-size: 12px;

    line-height: 1.5;
}



/* =====================================================
   ABOUT CONTENT
===================================================== */

.content-section {
    margin:
        25px
        0;

    padding: 25px;

    border:
        1px solid
        #e3e6ef;

    border-radius: 15px;

    background: #fff;
}


.content-section h2 {
    margin:
        0
        0
        14px;

    color: #172033;

    font-size: 26px;

    font-weight: 800;

    line-height: 1.25;

    letter-spacing: -0.025em;
}


.content-section p {
    margin:
        0
        0
        15px;

    color: #5f687a;

    font-size: 15px;

    line-height: 1.8;
}


.meta-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(
                0,
                1fr
            )
        );

    gap: 12px;

    margin-top: 22px;
}


.meta-grid div {
    min-width: 0;

    padding: 15px;

    border:
        1px solid
        #edf0f6;

    border-radius: 11px;

    background: #f7f8fc;
}


.meta-grid b,
.meta-grid span {
    display: block;
}


.meta-grid b {
    color: #8992a5;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .07em;

    text-transform: uppercase;
}


.meta-grid span {
    margin-top: 5px;

    color: #344054;

    font-size: 14px;

    font-weight: 650;
}



/* =====================================================
   YOU MAY ALSO LIKE
===================================================== */

.related-games-section {
    margin:
        42px
        0
        10px;
}


.related-games-section
.section-head {
    margin-bottom: 20px;
}


.related-games-section
.section-head h2 {
    margin:
        3px
        0
        0;

    font-size: 28px;
}


.related-games-grid {
    grid-template-columns:
        repeat(
            4,
            minmax(
                0,
                1fr
            )
        );
}



/* =====================================================
   FOOTER
===================================================== */

.footer {
    margin-top: 35px;

    padding:
        28px
        0;

    background: #0b1020;

    color: #aeb7ca;

    font-size: 13px;
}


.footer-links {
    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 20px;
}


.footer-links > div {
    display: flex;

    flex-wrap: wrap;

    gap: 18px;
}


.footer-links a {
    color: #aeb7ca;
}


.footer-links a:hover {
    color: #fff;
}



/* =====================================================
   TABLET
===================================================== */

@media (
    max-width: 1050px
) {

    .game-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(
                    0,
                    1fr
                )
            );
    }


    .header-user-name {
        display: none;
    }

}



/* =====================================================
   MOBILE
===================================================== */

@media (
    max-width: 700px
) {

    .container {
        width:
            min(
                calc(
                    100% - 22px
                ),
                1180px
            );
    }


    .nav {
        min-height: 62px;

        gap: 8px;
    }


    .brand {
        margin-right: auto;

        gap: 6px;

        font-size: 18px;
    }


    .brand-mark {
        width: 32px;

        height: 32px;

        flex-basis: 32px;
    }


    /*
     * Google icon
     */

    .header-auth {
        flex:
            0
            0
            auto;

        max-width: none;

        overflow: visible;
    }


    .header-google-login {
        width: 44px;

        height: 44px;
    }


    .header-google-login > div {
        width: 44px;

        height: 44px;
    }


    /*
     * Logged in
     */

    .header-user-box:not([hidden]) {
        display: flex;

        align-items: center;

        gap: 5px;
    }


    .header-user-avatar {
        width: 32px;

        height: 32px;

        flex-basis: 32px;
    }


    .header-user-name {
        display: none;
    }


    .header-logout-button {
        display: inline-flex;

        align-items: center;

        justify-content: center;

        padding:
            6px
            8px;

        font-size: 10px;

        white-space: nowrap;
    }


    /*
     * Mobile nav
     */

    .nav nav {
        display: none;
    }


    .nav nav.open {
        position: absolute;

        top: 62px;

        left: 0;

        right: 0;

        z-index: 1000;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding:
            10px
            18px
            15px;

        background: #0b1020;

        box-shadow:
            0 16px 30px
            rgba(
                0,
                0,
                0,
                .28
            );
    }


    .nav nav.open a {
        width: 100%;

        padding:
            12px
            0;

        border-bottom:
            1px solid
            rgba(
                255,
                255,
                255,
                .07
            );
    }


    .menu-btn {
        display: grid;

        place-items: center;
    }


    /*
     * Hero
     */

    .hero {
        padding:
            60px
            0;
    }


    .hero-grid {
        grid-template-columns:
            1fr;
    }


    .hero-art {
        display: none;
    }


    .hero h1 {
        font-size: 42px;

        line-height: 1.05;
    }


    .hero p {
        font-size: 16px;
    }


    .hero-actions {
        flex-direction: column;
    }


    .hero-actions
    .btn {
        width: 100%;
    }


    /*
     * Sections
     */

    .section {
        padding:
            38px
            0;
    }


    .section-head {
        flex-direction: column;

        align-items: stretch;
    }


    .section-head h2 {
        font-size: 27px;
    }


    /*
     * Filters
     */

    .filters {
        width: 100%;
    }


    .search {
        flex: 1;
    }


    .search input {
        width: 100%;
    }


    /*
     * Games
     */

    .game-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );

        gap: 12px;
    }


    .game-body {
        padding: 11px;
    }


    .game-body h3 {
        font-size: 16px;
    }


    .game-body p {
        min-height: 0;

        font-size: 12px;
    }


    /*
     * Game page
     */

    .game-heading h1 {
        font-size: 32px;
    }


    .game-heading p {
        font-size: 14px;

        line-height: 1.65;
    }


    .content-section h2 {
        font-size: 22px;
    }


    .content-section p {
        font-size: 14px;
    }


    /*
     * Related games
     */

    .related-games-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
    }


    /*
     * Meta
     */

    .meta-grid {
        grid-template-columns:
            1fr;
    }


    /*
     * Ads
     */

    .ad-slot {
        min-height: 100px;

        margin:
            25px
            0;

        padding: 6px;
    }


    .game-ad
    .adsbygoogle {
        min-width: 0;
    }


    /*
     * Footer
     */

    .footer-links {
        flex-direction: column;

        align-items: flex-start;
    }


    .footer-links > div {
        flex-direction: column;

        gap: 8px;
    }

}



/* =====================================================
   SMALL MOBILE
===================================================== */

@media (
    max-width: 480px
) {

    .container.nav {
        width:
            calc(
                100% - 14px
            );
    }


    .brand {
        font-size: 16px;

        gap: 5px;
    }


    .brand-mark {
        width: 30px;

        height: 30px;

        flex-basis: 30px;
    }


    .header-user-avatar {
        width: 30px;

        height: 30px;

        flex-basis: 30px;
    }


    .header-logout-button {
        display: inline-flex;

        padding:
            5px
            7px;

        font-size: 9px;
    }


    .menu-btn {
        width: 34px;

        height: 34px;

        font-size: 20px;
    }


    .hero h1 {
        font-size: 38px;
    }


    .section-head h2 {
        font-size: 25px;
    }


    .game-grid {
        grid-template-columns:
            1fr;
    }


    .related-games-grid {
        grid-template-columns:
            1fr;
    }


    .filters {
        flex-direction: column;
    }


    .filters select {
        min-height: 42px;
    }

}



/* =====================================================
   VERY SMALL MOBILE
===================================================== */

@media (
    max-width: 370px
) {

    .brand >
    span:last-child {
        display: none;
    }


    .header-user-avatar {
        width: 28px;

        height: 28px;

        flex-basis: 28px;
    }


    .header-logout-button {
        padding:
            5px
            6px;

        font-size: 9px;
    }


    .menu-btn {
        width: 34px;

        height: 34px;
    }

}


/* =====================================================
   iOS PWA INSTALL MODAL
   Matches app.js classes:
   .install-modal
   .install-modal-backdrop
   .install-modal-card
   .install-modal-close
   .install-modal-icon
   .install-modal-done
===================================================== */

/*
 * The modal must sit above the whole page.
 * This is the key fix for iOS Safari.
 */
.install-modal {
    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    align-items: flex-end;

    justify-content: center;

    width: 100%;

    height: 100%;

    min-height: 100dvh;

    padding:
        16px
        14px
        calc(
            16px +
            env(safe-area-inset-bottom)
        );

    overflow: hidden;

    isolation: isolate;

    overscroll-behavior: contain;
}


/*
 * Keep the existing global [hidden] rule,
 * but this makes the modal behavior explicit too.
 */
.install-modal[hidden] {
    display: none !important;
}


/* =====================================================
   DARK BACKDROP
===================================================== */

.install-modal-backdrop {
    position: absolute;

    inset: 0;

    z-index: 0;

    width: 100%;

    height: 100%;

    background:
        rgba(
            5,
            8,
            18,
            .66
        );

    backdrop-filter:
        blur(5px);

    -webkit-backdrop-filter:
        blur(5px);
}


/* =====================================================
   INSTALL BOTTOM SHEET
===================================================== */

.install-modal-card {
    position: relative;

    z-index: 1;

    width: 100%;

    max-width: 480px;

    max-height:
        calc(
            100dvh -
            env(safe-area-inset-top) -
            env(safe-area-inset-bottom) -
            32px
        );

    overflow-y: auto;

    -webkit-overflow-scrolling: touch;

    padding:
        26px
        22px
        22px;

    border:
        1px solid
        rgba(
            23,
            32,
            51,
            .08
        );

    border-radius: 24px;

    background: #ffffff;

    color: #172033;

    box-shadow:
        0 -16px 55px
        rgba(
            0,
            0,
            0,
            .30
        );

    animation:
        installSheetUp
        .25s
        ease-out;
}


/* =====================================================
   INSTALL ICON
===================================================== */

.install-modal-icon {
    width: 48px;

    height: 48px;

    display: grid;

    place-items: center;

    margin:
        0
        0
        15px;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #5b5ff0,
            #00c8ff
        );

    color: #ffffff;

    font-size: 25px;

    line-height: 1;

    box-shadow:
        0 8px 20px
        rgba(
            91,
            95,
            240,
            .22
        );
}


/* =====================================================
   INSTALL TITLE
===================================================== */

.install-modal-card h3 {
    margin:
        0
        42px
        10px
        0;

    color: #172033;

    font-size: 23px;

    font-weight: 800;

    line-height: 1.2;

    letter-spacing: -0.025em;
}


/* =====================================================
   INSTALL TEXT
===================================================== */

.install-modal-card p {
    margin:
        0
        0
        16px;

    color: #667085;

    font-size: 15px;

    line-height: 1.65;
}


.install-modal-card ol {
    margin:
        0
        0
        22px;

    padding-left: 24px;

    color: #344054;
}


.install-modal-card li {
    margin-bottom: 10px;

    padding-left: 3px;

    color: #344054;

    font-size: 15px;

    line-height: 1.55;
}


.install-modal-card li:last-child {
    margin-bottom: 0;
}


.install-modal-card strong {
    color: #172033;

    font-weight: 750;
}


/* =====================================================
   CLOSE BUTTON
===================================================== */

.install-modal-close {
    position: absolute;

    top: 15px;

    right: 15px;

    width: 36px;

    height: 36px;

    display: grid;

    place-items: center;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: #f1f3f7;

    color: #344054;

    font-size: 22px;

    font-weight: 500;

    line-height: 1;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;

    transition:
        background .2s ease,
        transform .15s ease;
}


.install-modal-close:hover {
    background: #e6e9f0;
}


.install-modal-close:active {
    transform:
        scale(.94);
}


/* =====================================================
   GOT IT BUTTON
===================================================== */

.install-modal-done {
    width: 100%;

    min-height: 48px;

    margin-top: 4px;

    border-radius: 12px;
}


/* =====================================================
   SLIDE-UP ANIMATION
===================================================== */

@keyframes installSheetUp {

    from {
        opacity: 0;

        transform:
            translateY(38px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}


/* =====================================================
   MOBILE / iPHONE
===================================================== */

@media (max-width: 700px) {

    .install-modal {
        align-items: flex-end;

        padding:
            10px
            10px
            calc(
                12px +
                env(safe-area-inset-bottom)
            );
    }


    .install-modal-card {
        max-width: none;

        padding:
            24px
            18px
            18px;

        border-radius:
            22px
            22px
            18px
            18px;
    }


    .install-modal-card h3 {
        margin-right: 42px;

        font-size: 22px;
    }


    .install-modal-card p {
        font-size: 14px;
    }


    .install-modal-card li {
        font-size: 14px;
    }


    .install-modal-done {
        min-height: 50px;

        font-size: 15px;
    }

}


/* =====================================================
   SMALL iPHONE
===================================================== */

@media (max-width: 390px) {

    .install-modal {
        padding:
            8px
            8px
            calc(
                10px +
                env(safe-area-inset-bottom)
            );
    }


    .install-modal-card {
        padding:
            22px
            16px
            16px;

        border-radius:
            20px
            20px
            16px
            16px;
    }


    .install-modal-icon {
        width: 44px;

        height: 44px;

        font-size: 22px;
    }


    .install-modal-card h3 {
        font-size: 20px;
    }


    .install-modal-card p,
    .install-modal-card li {
        font-size: 13px;
    }

}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .install-modal-card {
        animation: none;
    }

}
