body.download-app-dialog-open {
    overflow: hidden;
}

.download-app-dialog-mask {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.6);
}

.download-app-dialog-mask.is-open {
    display: flex;
}

.download-app-dialog-card {
    position: relative;
    isolation: isolate;
    flex: 0 1 520px;
    width: 520px;
    max-width: 100%;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    padding: 0 0 20px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 24px;
    outline: 1px solid rgba(82, 71, 97, 0.6);
    outline-offset: -1px;
    background: linear-gradient(127deg, #2B1F38 4%, #13141B 84%);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 204, 255, 0.12);
    color: #FFFAFF;
    font-family: "Noto Sans SC", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 163, 186, 0.35) transparent;
}

.download-app-dialog-card::before,
.download-app-dialog-card::after {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(30px);
    pointer-events: none;
    content: "";
}

.download-app-dialog-card::before {
    left: 15px;
    top: 110px;
    width: 300px;
    height: 210px;
    background: rgba(191, 20, 166, 0.16);
}

.download-app-dialog-card::after {
    left: 240px;
    top: 130px;
    width: 260px;
    height: 200px;
    background: rgba(46, 84, 229, 0.16);
}

.download-app-dialog-logo {
    position: absolute;
    top: 24px;
    left: 28px;
    display: block;
    width: 133px;
    height: 48px;
}

.download-app-dialog-close {
    position: absolute;
    z-index: 2;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.download-app-dialog-close img {
    display: block;
    width: 24px;
    height: 24px;
}

.download-app-dialog-posters {
    position: relative;
    height: 176px;
    margin-top: 88px;
}

.download-app-dialog-poster {
    position: absolute;
    display: block;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

.download-app-dialog-poster--left {
    top: 8.55px;
    left: 14.42308%;
    width: 26.19808%;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.download-app-dialog-poster--right {
    top: 8px;
    left: 59.64038%;
    width: 26.18654%;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.download-app-dialog-poster--center {
    z-index: 1;
    top: 0;
    left: 37.30769%;
    width: 25.38462%;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
}

.download-app-dialog-title {
    margin: 16px 20px 0;
    color: #FFFAFF;
    font-size: 30px;
    font-weight: 500;
    line-height: 45px;
    text-align: center;
}

.download-app-dialog-subtitle {
    margin: 0 20px;
    color: #A8A3BA;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    text-align: center;
}

.download-app-dialog-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: calc(100% - 56px);
    margin: 24px auto 0;
}

.download-app-dialog-qr-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 104px;
    height: 104px;
    padding: 8px;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 12px;
    background: #FFF;
    color: #34313F;
    text-decoration: none;
}

.download-app-dialog-qr-box > img,
.download-app-dialog-qr-box > canvas {
    display: block;
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    image-rendering: pixelated;
}

.download-app-dialog-download {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.download-app-dialog-hint {
    margin: 0;
    color: #B0A8BF;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
}

.download-app-dialog-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 340px;
    max-width: 100%;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(90deg, #F00587 0%, #A630F0 50%, #52A6FF 100%);
    box-shadow: 0 5px 18px rgba(168, 23, 196, 0.23), inset 0 1px 1px rgba(255, 255, 255, 0.25);
    color: #FFF;
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
    text-decoration: none;
    transition: filter 0.15s ease;
}

.download-app-dialog-primary:hover {
    filter: brightness(1.1);
}

.download-app-dialog-platforms {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    min-height: 22px;
}

.download-app-dialog-platform,
.download-app-dialog-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #C7C4CF;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    text-decoration: none;
    cursor: pointer;
}

.download-app-dialog-platform img,
.download-app-dialog-copy img {
    display: block;
    width: 20px;
    height: 20px;
}

.download-app-dialog-copy {
    color: #DBD9E3;
    font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}

.download-app-dialog-copy.is-copied {
    color: #EBA8FF;
}

.download-app-dialog-separator {
    flex: 0 0 1px;
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.13);
}

.download-app-dialog-card [aria-disabled="true"] {
    cursor: default;
    opacity: 0.55;
}

.download-app-dialog-card a:focus-visible,
.download-app-dialog-card button:focus-visible {
    outline: 2px solid #DFA8FF;
    outline-offset: 4px;
}

@media (max-width: 551px) {
    .download-app-dialog-logo {
        left: 20px;
        top: 20px;
    }

    .download-app-dialog-close {
        top: 20px;
        right: 20px;
    }

    .download-app-dialog-posters {
        height: auto;
        aspect-ratio: 520 / 176;
        margin-top: 82px;
    }

    .download-app-dialog-poster--left {
        top: 4.85795%;
    }

    .download-app-dialog-poster--right {
        top: 4.54545%;
    }

    .download-app-dialog-title {
        margin-top: 16px;
        font-size: clamp(23px, 5.77vw, 30px);
        line-height: 1.5;
    }

    .download-app-dialog-subtitle {
        margin: 0 12px;
        font-size: clamp(11px, 2.7vw, 14px);
    }

    .download-app-dialog-actions {
        width: calc(100% - 40px);
    }

    .download-app-dialog-platforms {
        gap: 14px;
    }
}

@media (max-width: 359px) {
    .download-app-dialog-platforms {
        gap: 10px;
    }

    .download-app-dialog-platform,
    .download-app-dialog-copy {
        gap: 5px;
        font-size: 12px;
    }
}
