.mobile-community-map {
    --map-blue: #1b2ae5;
    --map-blue-dark: #131da4;
    --map-violet: #8d95f4;
    --map-violet-active: #6670ee;
    --map-community-start-delay: .55s;
    --map-sheen-duration: 4.2s;
    --map-sheen-delay: 2.1s;
    max-width: 1180px;
}

.mobile-community-map__title {
    margin: 0 12px clamp(14px, 2vw, 24px);
    color: var(--map-blue-dark);
    -webkit-text-fill-color: currentColor;
    font-size: clamp(1.25rem, 2.6vw, 2rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -.025em;
    text-shadow: 0 0 0 rgba(102, 112, 238, 0);
    text-align: center;
    text-wrap: balance;
}

.mobile-community-map__figure {
    position: relative;
}

.mobile-community-map__stage {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(27, 42, 229, .1);
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(27, 42, 229, .08);
    touch-action: pan-y pinch-zoom;
}

.mobile-community-map__stage::after {
    position: absolute;
    z-index: 3;
    top: -45%;
    bottom: -45%;
    left: -34%;
    width: 26%;
    content: "";
    pointer-events: none;
    opacity: 0;
    transform: translateX(-170%) rotate(12deg);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, .58),
        rgba(255, 255, 255, 0)
    );
    filter: blur(8px);
}

.mobile-community-map__motion {
    position: relative;
    z-index: 1;
    transform-origin: 50% 50%;
}

.mobile-community-map__svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    transform-origin: 50% 50%;
}

.mobile-community-map__svg .st0 {
    fill: #fff;
}

.mobile-community-map__svg .st1 {
    fill: var(--map-blue);
}

.mobile-community-map__svg .st2 {
    fill: var(--map-violet);
}

.mobile-community-map__region,
.mobile-community-map__point,
.mobile-community-map__ray,
.mobile-community-map__label-part {
    pointer-events: none;
    transition: fill .24s ease, filter .24s ease, opacity .24s ease;
}

.mobile-community-map__region,
.mobile-community-map__point {
    transform-box: fill-box;
    transform-origin: center;
}

.mobile-community-map__label-part {
    transform-box: fill-box;
    transform-origin: center;
    will-change: transform, filter, opacity;
}

.mobile-community-map__ray {
    transform-box: fill-box;
    transform-origin: center;
    will-change: clip-path, opacity;
}

.mobile-community-map.is-enhanced .mobile-community-map__point,
.mobile-community-map.is-enhanced .mobile-community-map__ray,
.mobile-community-map.is-enhanced .mobile-community-map__label-part {
    opacity: 0;
}

.mobile-community-map.is-playing .mobile-community-map__title {
    animation: mobile-community-map-title-sheen var(--map-sheen-duration) ease-in-out
        var(--map-sheen-delay) infinite;
}

.mobile-community-map.is-playing .mobile-community-map__stage::after {
    animation: mobile-community-map-sheen var(--map-sheen-duration) ease-in-out
        var(--map-sheen-delay) infinite;
}

.mobile-community-map.is-playing[data-animation="points"] .mobile-community-map__label-part {
    animation:
        mobile-community-label-pop .54s cubic-bezier(.2, 1.35, .45, 1)
            calc(var(--map-community-start-delay) + .26s + var(--label-delay-points, 0s)) both,
        mobile-community-label-idle 4.8s ease-in-out
            calc(var(--map-community-start-delay) + .92s + var(--label-delay-points, 0s)) infinite;
}

.mobile-community-map.is-playing[data-animation="points"] .mobile-community-map__ray {
    animation: mobile-community-ray-reveal .44s cubic-bezier(.22, 1, .36, 1)
        calc(var(--map-community-start-delay) + .08s + var(--label-delay-points, 0s)) both;
}

.mobile-community-map.is-playing[data-animation="points"] .mobile-community-map__point {
    animation:
        mobile-community-point-intro .9s cubic-bezier(.22, 1, .36, 1)
            calc(var(--map-community-start-delay) + var(--label-delay-points, 0s)) both,
        mobile-community-point-idle 4.8s ease-in-out
            calc(var(--map-community-start-delay) + 1.15s + var(--point-points-idle-delay, 0s)) infinite;
}

.mobile-community-map.is-paused-offscreen *,
.mobile-community-map.is-paused-offscreen .mobile-community-map__stage::after,
.mobile-community-map.is-paused-hidden *,
.mobile-community-map.is-paused-hidden .mobile-community-map__stage::after {
    animation-play-state: paused !important;
}

@media (max-width: 767.98px) {
    .mobile-community-map__stage {
        border-radius: 20px;
        box-shadow: 0 12px 32px rgba(27, 42, 229, .07);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-community-map *,
    .mobile-community-map *::before,
    .mobile-community-map *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
    }

    .mobile-community-map.is-enhanced .mobile-community-map__point,
    .mobile-community-map.is-enhanced .mobile-community-map__ray,
    .mobile-community-map.is-enhanced .mobile-community-map__label-part {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .mobile-community-map__stage::after {
        display: none;
    }

    .mobile-community-map__title {
        animation: none !important;
        color: var(--map-blue-dark);
        -webkit-text-fill-color: currentColor;
        text-shadow: none;
    }
}

@media (forced-colors: active) {
    .mobile-community-map__title {
        animation: none !important;
        color: CanvasText;
        -webkit-text-fill-color: currentColor;
        text-shadow: none;
    }
}

@keyframes mobile-community-ray-reveal {
    from {
        opacity: 0;
        clip-path: var(--ray-clip-start, inset(0 100% 0 0));
    }

    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

@keyframes mobile-community-map-title-sheen {
    0%,
    52%,
    100% {
        color: var(--map-blue-dark);
        text-shadow: 0 0 0 rgba(102, 112, 238, 0);
    }

    62% {
        color: var(--map-violet-active);
        text-shadow: 0 0 12px rgba(102, 112, 238, .32);
    }

    84% {
        color: var(--map-blue);
        text-shadow: 0 0 0 rgba(102, 112, 238, 0);
    }
}

@keyframes mobile-community-label-pop {
    from {
        opacity: 0;
        transform: scale(.84);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes mobile-community-label-idle {
    0%,
    100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 0 rgba(27, 42, 229, 0));
    }

    50% {
        transform: translateY(-1.5px) scale(1.008);
        filter: drop-shadow(0 4px 7px rgba(27, 42, 229, .1));
    }
}

@keyframes mobile-community-point-intro {
    0% {
        opacity: 0;
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(27, 42, 229, 0));
    }

    48% {
        opacity: 1;
        transform: scale(1.85);
        filter: drop-shadow(0 0 12px rgba(27, 42, 229, .6));
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(27, 42, 229, 0));
    }
}

@keyframes mobile-community-point-idle {
    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(27, 42, 229, 0));
    }

    48% {
        transform: scale(1.3);
        filter: drop-shadow(0 0 8px rgba(27, 42, 229, .42));
    }
}

@keyframes mobile-community-map-sheen {
    0%,
    52%,
    100% {
        opacity: 0;
        transform: translateX(-170%) rotate(12deg);
    }

    62% {
        opacity: .58;
    }

    84% {
        opacity: 0;
        transform: translateX(650%) rotate(12deg);
    }
}
