@keyframes pitwallTickerMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

:root {
    --pit-nav-height: 56px;
    --pit-ticker-height: 40px;
    --pit-header-stack: calc(var(--pit-nav-height) + var(--pit-ticker-height));
}

.ticker-wrap {
    --ticker-bg: #03050d;
    --ticker-line: #e8002d;
    --ticker-gold: #ffd400;
    --ticker-muted: rgba(255,255,255,.72);
    position: fixed;
    top: var(--pit-nav-height);
    left: 0;
    right: 0;
    min-height: 40px;
    overflow: hidden;
    display: block;
    z-index: 840;
    background:
            linear-gradient(90deg, rgba(30,65,255,.16), transparent 28%, rgba(232,0,45,.16), rgba(255,212,0,.08)),
            var(--ticker-bg);
    border-bottom: 2px solid var(--ticker-gold);
    box-shadow: inset 0 -1px 0 var(--ticker-line), 0 12px 42px rgba(0,0,0,.5);
}

.ticker-wrap::before,
.ticker-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: min(120px, 12vw);
    z-index: 2;
    pointer-events: none;
}

.ticker-wrap::before {
    left: 0;
    background: linear-gradient(90deg, var(--ticker-bg), transparent);
}

.ticker-wrap::after {
    right: 0;
    background: linear-gradient(270deg, var(--ticker-bg), transparent);
}

.ticker-track {
    min-height: 40px;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.ticker-loop {
    min-width: max-content;
    display: inline-flex;
    align-items: center;
    animation: pitwallTickerMove 34s linear infinite;
    will-change: transform;
}

.ticker-wrap:hover .ticker-loop {
    animation-play-state: paused;
}

.tick {
    min-width: clamp(210px, 16vw, 310px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    height: 40px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    color: var(--ticker-muted);
    text-transform: uppercase;
    border-right: 1px solid rgba(255,255,255,.22);
    box-shadow: inset -1px 0 0 rgba(232,0,45,.32);
}

.tick .sym {
    color: var(--ticker-gold);
    font-weight: 900;
    letter-spacing: .14em;
}

.tick .val {
    color: #fff;
    font-weight: 800;
}

.tick .pts {
    color: var(--ticker-gold);
    font-weight: 800;
}

.tick-dot {
    display: none;
}

.pit-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 850;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    width: 100%;
    min-height: var(--pit-nav-height);
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 0;
    background: rgba(3,5,13,.72);
    box-shadow: 0 22px 58px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.1);
    backdrop-filter: blur(18px);
}

.ticker-wrap + .pit-nav {
    top: 0;
}

.pit-nav + :is(main, .page, .hero) {
    margin-top: calc(var(--pit-header-stack) + 72px);
}

.pit-nav a {
    color: #f5f7ff;
    text-decoration: none;
}

.pit-nav-brand,
.pit-nav-links,
.pit-nav-actions,
.pit-nav-cta {
    display: inline-flex;
    align-items: center;
}

.pit-nav-brand {
    gap: 10px;
    min-width: 0;
    font: 800 11px/1 'JetBrains Mono', monospace;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.pit-nav-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #03050d;
    background: linear-gradient(135deg, #ffd400, #fff 48%, #ff1e3c);
    box-shadow: 0 0 22px rgba(255,212,0,.24);
}

.pit-nav-links {
    justify-content: center;
    gap: clamp(10px, 2vw, 24px);
    min-width: 0;
}

.pit-nav-links a {
    font: 700 10px/1 'JetBrains Mono', monospace;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #b8c0d8;
    white-space: nowrap;
    transition: color .18s ease;
}

.pit-nav-links a:hover,
.pit-nav-links a[aria-current="page"] {
    color: #fff;
}

.pit-nav-actions {
    gap: 8px;
    justify-content: flex-end;
}

.pit-nav-cta,
.pit-nav-ghost {
    justify-content: center;
    min-height: 34px;
    padding: 0 16px;
    border-radius: 0;
    font: 900 10px/1 'JetBrains Mono', monospace;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pit-nav-cta {
    background: #e8002d;
    color: #fff;
    box-shadow: 0 0 24px rgba(232,0,45,.32);
}

.pit-nav-ghost {
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.04);
    color: #dce2f2;
}

@media (max-width: 640px) {
    .ticker-wrap,
    .ticker-track {
        min-height: 40px;
    }

    .tick {
        min-width: 220px;
        padding: 0 10px;
        height: 40px;
        font-size: 8px;
        gap: 6px;
    }
}

@media (max-width: 1200px) {
    :root {
        --pit-nav-height: 100px;
    }

    .pit-nav {
        width: 100%;
        grid-template-columns: auto auto;
        border-radius: 0;
    }

    .pit-nav + :is(main, .page, .hero) {
        margin-top: calc(var(--pit-header-stack) + 72px);
    }

    .pit-nav-links {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 4px 2px 2px;
        scrollbar-width: none;
    }

    .pit-nav-links::-webkit-scrollbar {
        display: none;
    }

    .pit-nav-actions {
        justify-self: end;
    }
}

@media (max-width: 980px) {
    .pit-nav {
        gap: 10px 12px;
    }

    .pit-nav-brand span:last-child {
        display: none;
    }

    .pit-nav-cta,
    .pit-nav-ghost {
        padding: 0 12px;
    }
}

@media (max-width: 540px) {
    :root {
        --pit-nav-height: 126px;
    }

    .pit-nav {
        padding: 8px;
        border-radius: 0;
    }

    .pit-nav + :is(main, .page, .hero) {
        margin-top: calc(var(--pit-header-stack) + 48px);
    }

    .pit-nav-links {
        gap: 14px;
    }

    .pit-nav-links a,
    .pit-nav-cta,
    .pit-nav-ghost {
        font-size: 9px;
    }

    .pit-nav-mark {
        width: 30px;
        height: 30px;
    }

    .pit-nav-ghost {
        display: none;
    }
}
