/* Scene vehicles use the same warm whites / deep greens as the map. The body is
   about twice a walking avatar's width; portrait circles stay legible on mobile. */
.vehicle-avatar,.avatar.vehicle-avatar{position:absolute;width:var(--vehicle-width,168px);min-width:144px;min-height:124px;padding:0;border:0;background:transparent;transform:translate(-50%,-82%);border-radius:12px;cursor:pointer;touch-action:manipulation;pointer-events:auto;transition:left .65s ease,top .65s ease}
.vehicle-avatar:focus-visible{outline:3px solid #bf9958;outline-offset:4px;background:#fff5}
.vehicle-avatar.walking{transition:none}
.vehicle-visual{display:block;position:relative;width:100%;color:#24463d;text-align:center;pointer-events:none;isolation:isolate}
.vehicle-scene{display:block;position:relative;width:100%;aspect-ratio:7/5;transform-origin:50% 50%;filter:drop-shadow(0 2px 2px #12362a26)}
.vehicle-body{display:block;position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:contain;z-index:3;user-select:none}
.vehicle-riders{position:absolute;inset:0;z-index:2}
.vehicle-rider{position:absolute;display:block;width:24%;aspect-ratio:1;top:21.5%}
.vehicle-rider-driver{left:44.7%}.vehicle-rider-passenger{left:19.5%}
.vehicle-visual .vehicle-face.face{position:absolute;inset:0;display:block;width:100%;height:100%;margin:0;border:3px solid #fffdf6;border-radius:50%;background:#e8eee9;overflow:hidden;box-shadow:0 1px 0 #496a5c40,0 2px 5px #183e3530;transform:none;animation:none;font-size:0}
.vehicle-face>img,.vehicle-face>svg{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 35%;border-radius:50%}
.vehicle-face>svg{object-fit:contain}
.vehicle-label{display:inline-block;position:relative;max-width:100%;min-height:22px;margin-top:-4px;padding:4px 12px;border:1px solid #ffffffd9;border-radius:999px;background:#fffdf2ed;color:#24463d;font-size:10px;font-weight:600;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 2px 4px #183e3514;vertical-align:top}
.vehicle-cruiser .vehicle-rider{top:19%;width:23.5%}.vehicle-cruiser .vehicle-rider-driver{left:48%}.vehicle-cruiser .vehicle-rider-passenger{left:23%}
.facing-left .vehicle-scene{transform:scaleX(-1)}.facing-left .vehicle-face{transform:scaleX(-1)!important}
@media(hover:hover){.vehicle-avatar:hover .vehicle-scene{filter:drop-shadow(0 3px 4px #12362a40) brightness(1.04)}}
@media(max-width:600px){.vehicle-avatar,.avatar.vehicle-avatar{width:var(--vehicle-width,156px);min-height:116px}.vehicle-label{font-size:10px;padding:4px 10px}.vehicle-visual .vehicle-face.face{border-width:2.5px}}
@media(prefers-reduced-motion:reduce){.vehicle-avatar,.avatar.vehicle-avatar{transition:none}}
/* Member controls share the same small-screen touch targets as the rest of the app. */
.vehicle-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:22px 0}.vehicle-product,.vehicle-current,.vehicle-invite,.vehicle-contract{border:1px solid #d7e2de;background:#f8fbf9;border-radius:14px;padding:18px;margin:12px 0}.vehicle-product{min-width:0}.vehicle-product>.vehicle-visual{margin:0 auto 8px;display:block}.vehicle-product h3{font-size:18px}.vehicle-product p,.vehicle-current p,.vehicle-invite p,.vehicle-contract p{font-size:12px;line-height:1.8}.vehicle-product button,.vehicle-current button,.vehicle-invite button,.vehicle-contract button{min-height:44px;margin:5px 4px 5px 0;max-width:100%;font-size:12px}.vehicle-product button{width:100%}.vehicle-current{background:#edf5f0}.vehicle-invite{background:#fff8e9;border-color:#e3cf9f}.vehicle-contract{background:#fff}.vehicle-product button:disabled{opacity:.6;cursor:default}#vehicle-panel h2{font-size:24px}#vehicle-layer{position:absolute;inset:0;pointer-events:none}#vehicle-layer>.vehicle-avatar{pointer-events:auto}
dialog:has(#vehicle-panel){width:min(880px,calc(100% - 32px));max-width:880px}
@media(max-width:520px){.vehicle-products{grid-template-columns:minmax(0,1fr)}.vehicle-product{padding:14px}.vehicle-product button,.vehicle-current button,.vehicle-invite button{min-height:46px;font-size:14px}#vehicle-panel h2{font-size:21px}}
