/* UAT layout around the production homepage sweep. */
.uat-ticker-shell {
    --uat-light-height: 14px;
    margin-bottom: 0;
}
.uat-ticker-shell > .tc-threat-board {
    position: relative;
    padding-bottom: calc(2px + var(--uat-light-height));
    border-bottom-width: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.uat-ticker-shell > .tc-threat-board::after {
    position: absolute;
    inset-inline: -1px;
    bottom: 0;
    z-index: 1;
    height: var(--uat-light-height);
    content: "";
    pointer-events: none;
    color: var(--tc-home-sweep-color, #20ad68);
    transition: color 2.4s ease-in-out;
    -webkit-mask: url("../images/audi-arc.svg") center / 100% 100% no-repeat;
    mask: url("../images/audi-arc.svg") center / 100% 100% no-repeat;
    background:
        linear-gradient(90deg,
            transparent 0%,
            color-mix(in srgb, currentColor 14%, transparent) 10%,
            color-mix(in srgb, currentColor 32%, transparent) 30%,
            color-mix(in srgb, currentColor 72%, transparent) 56%,
            currentColor 70%,
            color-mix(in srgb, currentColor 38%, transparent) 86%,
            transparent 100%
        ) 50% center / 40% 100% no-repeat #123448;
}
body[data-ticker-autoplay] .uat-ticker-shell > .tc-threat-board {
    --tc-home-sweep-duration: 11.666667s;
}
body[data-ticker-autoplay] .uat-ticker-shell > .tc-threat-board::after {
    animation: tc-home-ticker-sweep var(--tc-home-sweep-duration) linear infinite;
}
@keyframes tc-home-ticker-sweep {
    from { background-position: -35.2% center; }
    to { background-position: 135.2% center; }
}
body[data-ticker-autoplay] .uat-ticker-shell > .tc-threat-board.tc-threat-stopped::after {
    animation-play-state: paused;
}

/* The homepage Play setting also takes precedence over UAT's global motion reset. */
@media (prefers-reduced-motion: reduce) {
    .uat-ticker-shell > .tc-threat-board.tc-threat-stopped::after,
    .uat-ticker-shell > .tc-threat-board.tc-threat-motion-enabled::after {
        animation-duration: var(--tc-home-sweep-duration) !important;
        animation-iteration-count: infinite !important;
    }
}
.tc-fiber-sparkles {
    position: absolute;
    inset-inline: -1px;
    bottom: 0;
    z-index: 20;
    height: var(--uat-light-height);
    overflow: visible;
    pointer-events: none;
}
.tc-fiber-sparkle {
    --tc-fiber-sparkle-color: #d6c79b;
    --tc-fiber-sparkle-size: 4px;
    --tc-fiber-sparkle-arm: 1px;
    position: absolute;
    top: calc(var(--tc-fiber-axis) - var(--tc-fiber-sparkle-size) / 2);
    display: block;
    width: var(--tc-fiber-sparkle-size);
    height: var(--tc-fiber-sparkle-size);
    margin-inline-start: calc(var(--tc-fiber-sparkle-size) / -2);
    color: var(--tc-fiber-sparkle-color);
    opacity: 0;
    transform: none;
    transition: opacity 70ms ease-out;
    filter:
        blur(0.35px)
        brightness(1.8)
        drop-shadow(0 0 2px currentColor)
        drop-shadow(0 0 5px currentColor);
}
.tc-fiber-sparkle::before,
.tc-fiber-sparkle::after {
    position: absolute;
    background: currentColor;
    content: "";
}
.tc-fiber-sparkle::before {
    inset-inline: 0;
    top: calc((var(--tc-fiber-sparkle-size) - var(--tc-fiber-sparkle-arm)) / 2);
    height: var(--tc-fiber-sparkle-arm);
}
.tc-fiber-sparkle::after {
    top: 0;
    inset-inline-start: calc((var(--tc-fiber-sparkle-size) - var(--tc-fiber-sparkle-arm)) / 2);
    width: var(--tc-fiber-sparkle-arm);
    height: var(--tc-fiber-sparkle-size);
}
@media (max-width: 540px) {
    .tc-fiber-sparkle {
        filter:
            blur(0.25px)
            brightness(1.6)
            drop-shadow(0 0 1.5px currentColor)
            drop-shadow(0 0 3px currentColor);
    }
}
@media (prefers-reduced-motion: reduce) {
    .tc-fiber-sparkle {
        transform: none !important;
        transition: opacity 90ms linear;
    }
}
