/* Gas-pump counters. Reels are built in plan_odometer.js; these tiles are the no-JS figures. */

.plan-odo-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 10px 0;
    font-size: 14px;
    position: relative;
}

.plan-odo {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
    gap: 2px;
    padding: 5px 12px 6px;
    background: linear-gradient(180deg, #2a2a2a 0%, #141414 16%, #070707 100%);
    border-radius: 999px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -3px 5px rgba(0, 0, 0, 0.72),
        0 1px 1px rgba(0, 0, 0, 0.35);
    font-family: "Courier New", Courier, ui-monospace, monospace;
    font-weight: 700;
    font-size: 1.08rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: #fff !important;
    user-select: none;
    -webkit-user-select: none;
}

.plan-odo::after {
    content: "";
    position: absolute;
    z-index: 2;
    left: 14%;
    right: 14%;
    top: 1px;
    height: 28%;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.plan-odo-digit,
.dark-theme .plan-odo-digit {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 0.72em;
    height: 1.2em;
    flex: none;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font: inherit;
    line-height: 1;
    color: #fff !important;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.plan-odo-digit--dot {
    width: auto;
    min-width: 0.36em;
    align-items: flex-end;
    padding: 0 1px 0.1em;
}

.plan-odo-reel {
    display: block;
    width: max-content;
    height: 1.2em;
    overflow: hidden;
    flex: none;
}

.plan-odo-strip {
    display: flex;
    flex-direction: column;
    position: relative;
}

.plan-odo-strip .plan-odo-digit {
    height: 1.2em;
}

.plan-odo.is-rolling .plan-odo-reel {
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

.plan-odo.is-rolling .plan-odo-strip {
    will-change: transform;
}

.plan-odo.is-rolling .plan-odo-digit {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.55);
}

@media (prefers-reduced-motion: reduce) {
    .plan-odo.is-rolling .plan-odo-reel {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .plan-odo-strip {
        transition: none !important;
    }
}
