.wr-handoff-track {
    isolation: isolate;
}

.wr-handoff-track i {
    z-index: 4;
}

.wr-handoff-train-runner {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 0.325rem;
    left: 0.325rem;
    height: 0;
    container-type: inline-size;
    pointer-events: none;
}

.wr-handoff-train {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 1.95rem;
    height: 1.1rem;
    color: var(--wr-handoff-ink);
    transform:
        translate3d(
            calc(var(--wr-ticket-journey, 0) * 100cqw),
            -78%,
            0
        )
        translateX(-50%);
    transform-origin: center;
    will-change: transform;
}

.wr-handoff-train-icon {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.wr-handoff-train-engine {
    fill: var(--wr-handoff-ink);
}

.wr-handoff-train-window,
.wr-handoff-train-hat-trim {
    fill: var(--wr-handoff-paper);
}

.wr-handoff-train-cowcatcher,
.wr-handoff-train-coupler {
    fill: none;
    stroke: var(--wr-handoff-ink);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}

@supports not (
    (width: 1cqw)
    and (transform: translateX(calc(1 * 1px)))
) {
    .wr-handoff-train {
        transform: translate(-50%, -78%);
    }
}

.wr-handoff-train-gift {
    fill: var(--wr-handoff-rose);
    stroke: var(--wr-handoff-paper);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 0.85;
    vector-effect: non-scaling-stroke;
}

.wr-handoff-train-hat {
    fill: var(--wr-handoff-rose);
}

.wr-handoff-train-wheel {
    fill: var(--wr-handoff-paper);
    stroke: var(--wr-handoff-ink);
    stroke-linecap: round;
    stroke-width: 1.25;
    transform: rotate(calc(var(--wr-ticket-journey, 0) * 2turn));
    transform-box: fill-box;
    transform-origin: center;
    vector-effect: non-scaling-stroke;
}

@media (max-width: 575.98px) {
    .wr-handoff-train-runner {
        right: 0.4rem;
        left: 0.4rem;
    }

    .wr-handoff-train {
        width: 1.5rem;
        height: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wr-handoff-train,
    .wr-handoff-train-wheel {
        transition: none !important;
    }
}
