* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #fff;
    background:
        radial-gradient(circle at 50% 0%, rgba(196, 38, 44, .32), transparent 34rem),
        linear-gradient(180deg, #120a14 0%, #07101e 100%);
}

button {
    font: inherit;
}

.page {
    position: relative;
    width: min(100%, 750px);
    min-height: 100vh;
    margin: 0 auto;
    overflow: hidden;
    background: #080f1d;
    box-shadow: 0 0 42px rgba(0, 0, 0, .45);
}

.poster {
    position: relative;
    min-height: 100vh;
    padding-bottom: 118px;
}

.poster__image {
    display: block;
    width: 100%;
    min-height: 100vh;
    object-fit: cover;
}

.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 8, 20, .1) 0%, rgba(5, 8, 20, .05) 42%, rgba(5, 8, 20, .72) 100%),
        radial-gradient(circle at 50% 21%, rgba(255, 213, 121, .2), transparent 23rem);
    pointer-events: none;
}

.poster__copy {
    position: absolute;
    z-index: 1;
    top: clamp(28px, 7vh, 72px);
    right: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-shadow: 0 3px 16px rgba(0, 0, 0, .68);
}

.poster__logo {
    width: 92px;
    height: 92px;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .36), 0 0 0 1px rgba(255, 226, 155, .38);
}

.poster__eyebrow {
    margin: 18px 0 8px;
    color: #ffe5a4;
    font-size: 15px;
    font-weight: 700;
}

.poster__copy h1 {
    margin: 0;
    font-size: clamp(44px, 12vw, 74px);
    line-height: 1.05;
    letter-spacing: 0;
}

.poster__slogan {
    margin: 12px 0 0;
    color: #f8f0df;
    font-size: clamp(18px, 4.8vw, 28px);
    font-weight: 700;
}

.popular-games {
    position: absolute;
    z-index: 2;
    top: clamp(430px, 55vh, 630px);
    right: clamp(6px, 2.5vw, 18px);
    left: clamp(6px, 2.5vw, 18px);
    padding-top: 30px;
}

.popular-games__title {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 50%;
    min-width: 210px;
    padding: 10px 26px 12px;
    transform: translateX(-50%);
    border: 2px solid rgba(130, 71, 11, .72);
    border-radius: 8px;
    color: #9a2d0a;
    text-align: center;
    font-size: clamp(22px, 5.8vw, 34px);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(180deg, #fff3a8 0%, #ffc652 48%, #fff0a7 100%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, .24), inset 0 2px 0 rgba(255, 255, 255, .72);
}

.popular-games img {
    display: block;
    width: 100%;
    height: auto;
}

.download-bar {
    position: fixed;
    z-index: 5;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 118px;
    gap: 12px;
    align-items: center;
    width: min(100%, 750px);
    min-height: 86px;
    margin: 0 auto;
    padding: 12px max(14px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-right));
    background: rgba(5, 8, 18, .88);
    border-top: 1px solid rgba(255, 220, 140, .2);
    backdrop-filter: blur(14px);
}

.download-bar__logo {
    width: 58px;
    height: 58px;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

.download-bar__info {
    min-width: 0;
}

.download-bar__info strong,
.download-bar__info span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.download-bar__info strong {
    font-size: 20px;
    line-height: 1.25;
}

.download-bar__info span {
    margin-top: 4px;
    color: #cfd7e8;
    font-size: 13px;
}

.download-bar__button {
    height: 46px;
    border: 0;
    border-radius: 8px;
    color: #321500;
    font-size: 17px;
    font-weight: 800;
    background: linear-gradient(180deg, #ffe28b 0%, #ffb72d 100%);
    box-shadow: 0 8px 18px rgba(255, 174, 40, .28);
    cursor: pointer;
}

.download-bar__button:active {
    transform: translateY(1px);
}

@media (min-width: 751px) {
    .download-bar {
        right: 50%;
        left: auto;
        transform: translateX(50%);
    }
}

@media (max-width: 360px) {
    .popular-games {
        top: 430px;
    }

    .popular-games__title {
        min-width: 176px;
    }

    .download-bar {
        grid-template-columns: 50px minmax(0, 1fr) 104px;
        gap: 10px;
    }

    .download-bar__logo {
        width: 50px;
        height: 50px;
    }

    .download-bar__info strong {
        font-size: 18px;
    }

    .download-bar__button {
        font-size: 15px;
    }
}
