#scooter_speedo {
    position: fixed;
    right: 40px;
    bottom: 36px;
    width: auto;
    font-family: 'Segoe UI', 'Proxima Nova', 'Montserrat', sans-serif;
    user-select: none;
    pointer-events: none;
    z-index: 2147482999;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#scooter_speedo.visible {
    opacity: 1;
    transform: translateY(0);
}

.scooter-speedo__wrap {
    background: linear-gradient(135deg, #555df0, #6df7f2);
    padding: 0 0 2px 2px;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
    display: inline-block;
}

.scooter-speedo__inner {
    background: rgba(20, 22, 25, 0.97);
    border-radius: 13px;
    padding: 10px 14px 11px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 118px;
}

.scooter-speedo__top {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 6px;
}

.scooter-speedo__speed {
    font-size: 44px;
    font-weight: 900;
    font-style: italic;
    color: #ffffff;
    line-height: 0.85;
    letter-spacing: -1.5px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.scooter-speedo__units {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.45);
    padding-bottom: 5px;
    white-space: nowrap;
}

.scooter-speedo__row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.scooter-speedo__bar {
    flex: 1 1 auto;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    min-width: 72px;
}

.scooter-speedo__bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #555df0, #6df7f2);
    box-shadow: 0 0 10px rgba(109, 247, 242, 0.35);
    transition: width 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scooter-speedo__status {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
}

.scooter-speedo__status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.scooter-speedo__status-dot.on {
    background: #6df7f2;
    box-shadow: 0 0 6px rgba(109, 247, 242, 0.7);
}
