/* ALINA CHOPRA — LIVE CATEGORY TICKER */

.act-ticker {
    --act-gold: #e8c18c;
    --act-cream: #f8eee7;
    position: relative;
    z-index: 5;
    width: 100%;
    overflow: hidden;
    border-top: 1px solid rgba(232,193,140,.28);
    border-bottom: 1px solid rgba(232,193,140,.24);
    background:
        radial-gradient(ellipse at 15% 0%, rgba(119,54,112,.22), transparent 55%),
        linear-gradient(100deg, #211426 0%, #171624 48%, #10272b 100%);
    box-shadow: 0 -15px 50px rgba(0,0,0,.08);
}

.act-ticker__intro {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 14px 20px 0;
    color: var(--act-gold);
    font: 600 10px/1.5 Arial, sans-serif;
    letter-spacing: .27em;
}

.act-ticker__sparkle {
    font-size: 16px;
    animation: act-sparkle 4s ease-in-out infinite;
}

.act-ticker__live {
    padding: 4px 9px;
    border: 1px solid rgba(232,193,140,.24);
    border-radius: 30px;
    color: #e4c8b3;
    font-size: 8px;
    letter-spacing: .15em;
}

.act-ticker__viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 14px 0 22px;
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 7%,
        #000 93%,
        transparent 100%
    );
    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 7%,
        #000 93%,
        transparent 100%
    );
}

.act-ticker__track {
    display: flex;
    width: max-content;
    animation: act-marquee 38s linear infinite;
    will-change: transform;
}

.act-ticker__group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.act-ticker__item {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: baseline;
    gap: 11px;
    padding: 8px 31px;
    color: var(--act-cream);
    text-decoration: none;
    white-space: nowrap;
    transition: color .25s ease, transform .25s ease;
}

.act-ticker__item strong {
    color: var(--act-gold);
    font: 400 clamp(25px, 3vw, 37px)/1 Georgia, serif;
    letter-spacing: -.045em;
    font-variant-numeric: tabular-nums;
}

.act-ticker__item > span:nth-child(2) {
    font: 400 clamp(14px, 1.5vw, 18px)/1.3 Georgia, serif;
    letter-spacing: .015em;
}

.act-ticker__diamond {
    margin-left: 17px;
    color: rgba(232,193,140,.58);
    font-size: 16px;
}

.act-ticker__item:hover,
.act-ticker__item:focus-visible {
    color: #ffdca8;
    transform: translateY(-2px);
}

.act-ticker__item:focus-visible {
    outline: 2px solid var(--act-gold);
    outline-offset: -3px;
    border-radius: 5px;
}

.act-ticker:hover .act-ticker__track,
.act-ticker:focus-within .act-ticker__track {
    animation-play-state: paused;
}

@keyframes act-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes act-sparkle {
    0%, 100% { opacity: .55; transform: scale(.9); }
    50% { opacity: 1; transform: scale(1.15); }
}

@media (max-width: 600px) {
    .act-ticker__intro {
        padding-top: 12px;
        gap: 9px;
        font-size: 9px;
        letter-spacing: .16em;
    }

    .act-ticker__viewport {
        padding: 12px 0 17px;
    }

    .act-ticker__item {
        gap: 8px;
        padding: 7px 21px;
    }

    .act-ticker__item strong {
        font-size: 27px;
    }

    .act-ticker__item > span:nth-child(2) {
        font-size: 15px;
    }

    .act-ticker__diamond {
        margin-left: 8px;
    }

    .act-ticker__track {
        animation-duration: 30s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .act-ticker__track,
    .act-ticker__sparkle {
        animation: none !important;
    }

    .act-ticker__viewport {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .act-ticker__group[aria-hidden="true"] {
        display: none;
    }
}
