
@property --out-ads-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

.out-ads {
    position: relative;
    width: min(var(--container-width, 120rem), calc(100% - (var(--page-gutter, 2rem) * 2)));
    margin: 5.6rem auto 6.4rem;
    box-sizing: border-box;
    display: block;
}

.out-ads__inner {
    --out-ads-angle: 0deg;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: clamp(24rem, 33vh, 38rem);
    border-radius: 2.4rem;
    padding: 5rem 3rem;
    border: 0.24rem solid transparent;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        conic-gradient(
            from var(--out-ads-angle),
            #00cdff 0deg,
            #7928ca 72deg,
            #af00af 144deg,
            #2563eb 216deg,
            #00cdff 288deg,
            #7928ca 360deg
        ) border-box;
    box-shadow:
        0 1.6rem 4rem -1.2rem rgba(121, 40, 202, 0.14),
        0 0.4rem 2.4rem rgba(0, 205, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    animation: outAdsRotateBorder 6s linear infinite;
    transition: box-shadow var(--transition-fast, 160ms ease);
}

.out-ads__inner:hover {
    box-shadow:
        0 2rem 4.8rem -1rem rgba(121, 40, 202, 0.22),
        0 0.8rem 3.2rem rgba(0, 205, 255, 0.14);
}

@keyframes outAdsRotateBorder {
    to {
        --out-ads-angle: 360deg;
    }
}

.out-ads__viewport {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.out-ads__curtain {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(135deg, #00cdff 0%, #7928ca 35%, #af00af 70%, #2563eb 100%);
    clip-path: polygon(-80% 0%, -80% 0%, -120% 100%, -120% 100%);
    transition: clip-path 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    will-change: clip-path, opacity;
}

.out-ads__curtain.is-wiping-in {
    opacity: 1;
    clip-path: polygon(-40% 0%, 150% 0%, 110% 100%, -80% 100%);
}

.out-ads__curtain.is-wiping-out {
    opacity: 1;
    clip-path: polygon(150% 0%, 150% 0%, 190% 100%, 190% 100%);
}

.out-ads__curtain.is-resetting {
    transition: none !important;
    opacity: 0;
    clip-path: polygon(-80% 0%, -80% 0%, -120% 100%, -120% 100%);
}

.out-ads__slot {
    position: relative;
    width: 100%;
    opacity: 1;
    transform: scale(1);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s ease;
    will-change: opacity, transform;
}

.out-ads__slot.is-transitioning {
    opacity: 0;
    transform: scale(0.98);
}

.out-ads__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.4rem;
    max-width: 80rem;
    margin: 0 auto;
}

.out-ads__icon {
    font-size: 2.6rem;
    line-height: 1;
    display: inline-block;
    color: transparent;
    background: var(--brand-gradient, linear-gradient(120deg, #00cdff, #af00af));
    -webkit-background-clip: text;
    background-clip: text;
    animation: outAdsSparkle 3s ease-in-out infinite;
}

@keyframes outAdsSparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.85;
    }
    50% {
        transform: scale(1.15) rotate(180deg);
        opacity: 1;
    }
}

.out-ads__title {
    font-family: var(--font-family, Inter, sans-serif) !important;
    font-size: clamp(2.4rem, 4vw, 4.2rem) !important;
    font-weight: 770 !important;
    letter-spacing: -0.04em !important;
    color: var(--color-text, #111116) !important;
    margin: 0 !important;
    line-height: 1.15 !important;
}
.out-ads__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 0.6rem;
}

.out-ads__caption {
    font-family: var(--font-family, Inter, sans-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(17, 17, 22, 0.46);
    letter-spacing: 0;
    line-height: 1.2;
    display: block;
}

.out-ads__button {
    margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
    .out-ads__inner {
        animation-duration: 16s;
    }
    .out-ads__slot {
        transition: none !important;
    }
}

@media screen and (max-width: 640px) {
    .out-ads {
        margin: 4rem auto 4.8rem;
    }

    .out-ads__inner {
        min-height: 22rem;
        padding: 3.6rem 2rem;
        border-radius: 2rem;
    }

    .out-ads__content {
        gap: 1.6rem;
    }
}
