/* 年龄确认弹窗 - H5 设计稿 750；PC 设计稿 400x408 */

.age-gate {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 4.2667vw;
    box-sizing: border-box;
}

.age-gate.is-open {
    display: flex;
}

.age-gate__mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.age-gate__panel {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 91.4667vw; /* 686 / 750 */
    max-width: 686px;
    padding: 4vw 4.2667vw 5.0667vw;
    background: linear-gradient(180deg, #2f1337 0%, #1b131d 100%);
    border: 0.667px solid #5c5c5c;
    border-radius: 2.1333vw; /* 16 / 750 */
    overflow: visible;
}

.age-gate__shield {
    width: 24vw; /* 180 / 750 */
    height: 24vw;
    max-width: 180px;
    max-height: 180px;
    margin-top: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.age-gate__shield-img {
    width: 140%;
    height: 140%;
    max-width: none;
    display: block;
    pointer-events: none;
    object-fit: contain;
    /* 素材为黑底霓虹图，与深色面板混合去掉黑底 */
    mix-blend-mode: screen;
}

.age-gate__title {
    margin: 2.6667vw 0 0; /* ~20 */
    padding: 0;
    font-size: 6.4vw; /* 48 / 750 */
    line-height: 6.6667vw; /* 50 / 750 */
    font-weight: 600;
    text-align: center;
    background: linear-gradient(90deg, #f8ebef 0%, #ad8bff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.age-gate__desc {
    margin-top: 2.6667vw;
    font-size: 3.2vw; /* 24 / 750 */
    line-height: 4.8vw; /* 36 / 750 */
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.age-gate__desc p {
    margin: 0;
}

.age-gate__exit {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 70.6667vw; /* 530 / 750 */
    max-width: 530px;
    height: 13.0667vw; /* 98 / 750 */
    max-height: 98px;
    margin-top: 4.2667vw;
    padding: 0 3.2vw;
    border: 0.667px solid #715ca4;
    border-radius: 1.6vw; /* 12 / 750 */
    background: linear-gradient(90deg, #280f1a 0%, #230f19 100%);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    text-align: left;
}

.age-gate__badge {
    position: relative;
    flex-shrink: 0;
    width: 6.9333vw; /* 52 / 750 */
    height: 6.9333vw;
    max-width: 52px;
    max-height: 52px;
}

.age-gate__badge-ring {
    position: absolute;
    inset: 0;
    border: 0.1778vw solid #ad8bff;
    border-radius: 50%;
    box-sizing: border-box;
}

.age-gate__badge-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8vw; /* 21 / 750 */
    font-weight: 500;
    line-height: 1;
    color: #ad8bff;
}

.age-gate__exit-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
    padding-left: 2.6vw;
}

.age-gate__exit-zh {
    font-size: 2.9333vw; /* 22 / 750 */
    font-weight: 500;
    line-height: 3.049vw;
    color: #ad8bff;
    white-space: nowrap;
}

.age-gate__exit-en {
    margin-top: 1.0667vw;
    font-size: 2.4vw; /* 18 / 750 */
    font-weight: 400;
    line-height: 3.049vw;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.age-gate__confirm {
    box-sizing: border-box;
    width: 61.6vw; /* 462 / 750 */
    max-width: 462px;
    height: 10.1333vw; /* 76 / 750 */
    max-height: 76px;
    margin-top: 4vw;
    padding: 0;
    border: none;
    border-radius: 8vw; /* 60 / 750 */
    background: #ad8bff;
    font-size: 3.7333vw; /* 28 / 750 */
    font-weight: 500;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.age-gate__confirm:active,
.age-gate__exit:active {
    opacity: 0.92;
}

html.age-gate-locked,
body.age-gate-locked {
    overflow: hidden !important;
}

/* PC：项目在 700px 以上即切换桌面端，Figma 尺寸 400 x 408 */
@media (min-width: 701px) {
    .age-gate {
        padding: 24px;
    }

    .age-gate__panel {
        width: 400px;
        max-width: 400px;
        height: 408px;
        padding: 20px 22px;
        border-radius: 16px;
    }

    .age-gate__shield {
        width: 106px;
        height: 106px;
        max-width: 106px;
        max-height: 106px;
    }

    .age-gate__shield-img {
        width: 140%;
        height: 140%;
    }

    .age-gate__title {
        margin-top: 14px;
        font-size: 28px;
        line-height: 29.333px;
    }

    .age-gate__desc {
        margin-top: 12px;
        font-size: 14px;
        line-height: 21.333px;
    }

    .age-gate__exit {
        width: 343px;
        max-width: 343px;
        height: 60px;
        max-height: 60px;
        margin-top: 20px;
        padding: 0 20px;
        border-radius: 12px;
    }

    .age-gate__badge {
        width: 30px;
        height: 30px;
        max-width: 30px;
        max-height: 30px;
    }

    .age-gate__badge-ring {
        border-width: 1.333px;
    }

    .age-gate__badge-text {
        font-size: 12px;
    }

    .age-gate__exit-text {
        padding-left: 18px;
    }

    .age-gate__exit-zh {
        font-size: 12px;
        line-height: 13.333px;
    }

    .age-gate__exit-en {
        margin-top: 6px;
        font-size: 12px;
        line-height: 13.333px;
    }

    .age-gate__confirm {
        width: 269px;
        max-width: 269px;
        height: 44px;
        max-height: 44px;
        margin-top: 20px;
        border-radius: 30px;
        font-size: 16px;
    }
}
