.update-banner {
    --ub-pink: #e879f9;
    --ub-purple: #a855f7;
    position: relative;
    overflow: hidden;
    width: min(1480px, calc(100% - 2rem));
    margin: 0 auto 1.75rem;
    padding: 1.15rem 1.25rem 1.2rem;
    border: 1px solid rgba(103, 232, 249, 0.42);
    border-radius: 1.15rem;
    color: #f5d0fe;
    background:
        linear-gradient(180deg, rgba(232, 121, 249, 0.08), transparent 42%),
        linear-gradient(135deg, rgba(46, 16, 84, 0.92), rgba(2, 6, 23, 0.96));
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.35),
        0 0 22px rgba(34, 211, 238, 0.18),
        0 0 28px rgba(168, 85, 247, 0.16);
    isolation: isolate;
}

.update-banner.is-page-top {
    margin-top: 1.25rem;
    margin-bottom: 0.35rem;
}

.update-banner-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(232, 121, 249, 0.045) 0 1px,
            transparent 1px 22px
        ),
        repeating-linear-gradient(
            0deg,
            rgba(168, 85, 247, 0.04) 0 1px,
            transparent 1px 22px
        );
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.update-banner::before,
.update-banner::after {
    content: "";
    position: absolute;
    left: -20%;
    width: 42%;
    height: 2px;
    pointer-events: none;
}

.update-banner::before {
    top: 0;
    background: linear-gradient(90deg, transparent, #67e8f9, #e879f9, #c084fc, transparent);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.55);
    animation: updateBannerScan 4.8s linear infinite;
}

.update-banner::after {
    bottom: 0;
    background: linear-gradient(90deg, transparent, #c084fc, #e879f9, #22d3ee, transparent);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.4);
    animation: updateBannerScan 4.8s linear infinite reverse;
}

.update-banner-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) auto auto;
    gap: 1rem 1.5rem;
    align-items: center;
}

.update-banner-kicker {
    margin: 0 0 0.35rem;
    color: #f0abfc;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.update-banner-title {
    margin: 0 0 0.4rem;
    color: #fff;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.update-banner-text {
    margin: 0;
    max-width: 42rem;
    color: #d8b4fe;
    font-size: 0.92rem;
    line-height: 1.55;
}

.update-banner-timer {
    display: flex;
    gap: 0.45rem;
}

.update-banner-unit {
    min-width: 3.55rem;
    padding: 0.45rem 0.4rem 0.4rem;
    border: 1px solid rgba(232, 121, 249, 0.28);
    border-radius: 0.7rem;
    background: rgba(2, 6, 23, 0.72);
    text-align: center;
    box-shadow: inset 0 0 12px rgba(168, 85, 247, 0.12);
}

.update-banner-unit span {
    display: block;
    color: #f5d0fe;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
}

.update-banner-unit small {
    display: block;
    margin-top: 0.28rem;
    color: #c4b5fd;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.update-banner-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6rem;
    padding: 0 1rem;
    border: 1px solid rgba(232, 121, 249, 0.45);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.55), rgba(236, 72, 153, 0.4));
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.28);
}

.update-banner-cta:hover {
    filter: brightness(1.08);
}

@keyframes updateBannerScan {
    0% { transform: translateX(0); }
    100% { transform: translateX(320%); }
}

@media (max-width: 980px) {
    .update-banner-inner {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .update-banner-timer {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .update-banner::before,
    .update-banner::after {
        animation: none;
    }
}
