/* 首页首次访问年龄确认框 */
html.age-gate-required,
html.age-gate-required body {
    background: #000;
}

html.age-gate-required #wrap {
    visibility: hidden;
}

.age-gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 24px;
    overflow-y: auto;
    background: rgba(0, 0, 0, .97);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html.age-gate-required .age-gate-overlay {
    display: flex;
}

.age-gate-card {
    width: min(610px, 100%);
    box-sizing: border-box;
    padding: 20px 39px 33px;
    border: 1px solid rgba(255, 255, 255, .035);
    border-radius: 18px;
    background: #181818;
    color: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}

.age-gate-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 124px;
    margin: -2px 0 21px;
    font-size: 126px;
    line-height: 1;
    user-select: none;
}

.age-gate-title {
    margin: 0 0 13px;
    color: #ff8200;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    letter-spacing: .01em;
}

.age-gate-description {
    min-height: 104px;
    margin: 0 0 26px;
    color: #a6a6a6;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.45;
}

.age-gate-actions {
    display: grid;
    gap: 11px;
}

.age-gate-button {
    width: 100%;
    min-height: 72px;
    box-sizing: border-box;
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.age-gate-button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.age-gate-button:active {
    transform: translateY(0);
}

.age-gate-button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .9);
    outline-offset: 3px;
}

.age-gate-button--leave {
    background: #323232;
}

.age-gate-button--enter {
    background: #ff8200;
    box-shadow: 0 8px 24px rgba(255, 130, 0, .18);
}

@media (max-width: 640px) {
    .age-gate-overlay {
        align-items: flex-start;
        padding: 16px;
    }

    .age-gate-card {
        margin: auto 0;
        padding: 16px 22px 24px;
        border-radius: 15px;
    }

    .age-gate-icon {
        height: 100px;
        margin-bottom: 14px;
        font-size: 100px;
    }

    .age-gate-title {
        font-size: clamp(27px, 8vw, 36px);
    }

    .age-gate-description {
        min-height: 0;
        font-size: 17px;
    }

    .age-gate-button {
        min-height: 62px;
        font-size: 23px;
    }
}
