.ripple-dot .ant-badge-count {
    overflow: revert;
    box-shadow: none;
    padding: 0 4px;

    .ant-scroll-number-only {
        display: flex;
        align-items: center;
        height: 100%;
    }

    .ant-scroll-number-only-unit {
        display: block;
        height: 100%;
        line-height: 12px;
    }

    bdi {
        display: flex;
    }
}

.ripple-dot .ant-badge-count::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle,
            var(--ant-color-error-hover) 0%,
            var(--ant-color-error-hover) 30%,
            transparent 70%);
    transform: scale(1);
    opacity: 1;
    animation: ping 1s cubic-bezier(0.1, 0.8, 0.2, 1) infinite;
    will-change: transform, opacity;
    z-index: -1;
}

.ripple-dot .ant-badge-count::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle,
            var(--ant-color-error-hover) 0%,
            transparent 50%);
    transform: scale(1);
    opacity: 0.8;
    animation: ping 1s 0.5s cubic-bezier(0.1, 0.8, 0.2, 1) infinite;
    will-change: transform, opacity;
    z-index: -1;
}

@keyframes ping {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }

    70% {
        opacity: 0.6;
    }

    100% {
        transform: scale(2.4);
        opacity: 0.2;
    }
}