@font-face { font-family: 'Geist'; src: url('fonts/Geist.ttf') format('truetype'); font-weight: 100 900; }
@font-face { font-family: 'Chakra Petch'; src: url('fonts/ChakraPetch-Bold.ttf') format('truetype'); font-weight: 700; }
@font-face { font-family: 'Chakra Petch'; src: url('fonts/ChakraPetch-SemiBold.ttf') format('truetype'); font-weight: 600; }
@font-face { font-family: 'JetBrains Mono'; src: url('fonts/JetBrainsMono.ttf') format('truetype'); font-weight: 100 900; }

:root {
  --accent: #ef4444;
  --panel: #0e0f12; --s1: #16181c; --s2: #1e2126; --s3: #272b31;
  --edge: #30333a; --line: rgba(255,255,255,.065);
  --text: #f3f4f6; --muted: #9da3ad; --faint: #636973;
  --ok: #34d399; --amber: #fbbf24; --red: #f87171; --blue: #60a5fa; --violet: #a78bfa;
  --c-health: #f87171; --c-armor: #60a5fa; --c-hunger: #fbbf24; --c-thirst: #38bdf8;
  --c-stress: #a78bfa; --c-stamina: #34d399; --c-oxygen: #67e8f9;
  --glass: rgba(14,15,18,.78);
  --cut: 10px;
  --f-body: 'Geist', system-ui, sans-serif;
  --f-head: 'Chakra Petch', 'Geist', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: transparent; }
body { font-family: var(--f-body); color: var(--text); -webkit-font-smoothing: antialiased; user-select: none; }

#stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; pointer-events: none; }
#stage.cinematic .w { opacity: 0 !important; }
.letterbox { position: absolute; left: -1600px; right: -1600px; height: 0; background: #000; transition: height .5s ease; z-index: 50; }
.letterbox.top { top: 0; } .letterbox.bottom { bottom: 0; }
#stage.cinematic.bars .letterbox { height: 120px; }

.w { position: absolute; transform-origin: var(--ox, 0%) var(--oy, 0%); transition: opacity .35s ease; opacity: var(--wo, 1); }
.gone { display: none !important; }
.w.off { display: none; }
.w.fade { opacity: 0; }

.ico { width: 1em; height: 1em; display: inline-block; flex: none; }
.ico svg { width: 100%; height: 100%; display: block; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.cutp { clip-path: polygon(var(--cut) 0,100% 0,100% calc(100% - var(--cut)),calc(100% - var(--cut)) 100%,0 100%,0 var(--cut)); }
.glass { background: var(--glass); }
.mono { font-family: var(--f-mono); }
.tnum { font-variant-numeric: tabular-nums; }

.status { display: flex; gap: 8px; align-items: flex-end; }
.status .st { position: relative; transition: opacity .35s ease, transform .35s ease; }
.status .st.hide { display: none !important; }
.status.rings .st { width: 46px; height: 46px; }
.status.rings .st svg.ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.status.rings .st .bg { fill: rgba(14,15,18,.72); stroke: rgba(255,255,255,.08); stroke-width: 4; }
.status.rings .st .fg { fill: none; stroke: var(--c); stroke-width: 4; stroke-linecap: butt; transition: stroke-dashoffset .4s ease; }
.status.rings .st .ico { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-size: 19px; color: var(--c); }
.status.rings .st.low .ico { animation: pulse 1s ease-in-out infinite; }
.status.rings .bar, .status.rings .pill { display: none; }

.status.bars { display: grid; grid-template-columns: repeat(2, 150px); gap: 6px 8px; }
.status.bars .st { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 9px; background: rgba(14,15,18,.72); --cut: 6px; }
.status.bars .st .ico { font-size: 15px; color: var(--c); }
.status.bars .st .bar { position: relative; flex: 1; height: 5px; background: rgba(255,255,255,.08); overflow: hidden; }
.status.bars .st .bar i { position: absolute; inset: 0 auto 0 0; background: var(--c); transition: width .4s ease; }
.status.bars .st .val { font: 600 10px var(--f-mono); color: var(--muted); width: 22px; text-align: right; }
.status.bars .st.hide { opacity: 0; display: none; }
.status.bars svg.ring, .status.bars .pill { display: none; }

.status.minimal { gap: 12px; }
.status.minimal .st { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.status.minimal .st .ico { font-size: 20px; color: var(--c); filter: drop-shadow(0 1px 2px rgba(0,0,0,.7)); }
.status.minimal .st .pill { width: 20px; height: 3px; background: rgba(255,255,255,.15); position: relative; overflow: hidden; }
.status.minimal .st .pill i { position: absolute; inset: 0 auto 0 0; background: var(--c); transition: width .4s ease; }
.status.minimal svg.ring, .status.minimal .bar, .status.minimal .val { display: none; }
.status:not(.bars) .val { display: none; }

@keyframes pulse { 50% { opacity: .35; } }
@keyframes blink { 50% { opacity: .15; } }

.voice { display: flex; align-items: center; gap: 8px; }
.voice .mic { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; background: rgba(14,15,18,.72); --cut: 6px; color: var(--muted); }
.voice .mic .ico { font-size: 17px; }
.voice .mic.talk { color: var(--text); background: var(--accent-mid, rgba(239,68,68,.3)); }
.voice .rng { display: flex; gap: 3px; align-items: flex-end; }
.voice .rng b { width: 3px; background: var(--faint); }
.voice .rng b:nth-child(1) { height: 6px; } .voice .rng b:nth-child(2) { height: 10px; } .voice .rng b:nth-child(3) { height: 14px; }
.voice .rng b.on { background: currentColor; }
.voice .radio { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; background: rgba(14,15,18,.72); --cut: 6px; font: 600 11px var(--f-mono); letter-spacing: .06em; color: var(--muted); }
.voice .radio .ico { font-size: 15px; }
.voice .radio.talk { color: var(--text); }
.voice .radio.talk .ico { color: var(--accent); }

.info { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.info .meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 380px; }
.info .chip { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; background: rgba(14,15,18,.72); --cut: 7px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.info .chip .ico { font-size: 16px; color: var(--muted); }
.info .chip .k { font: 600 10px var(--f-mono); color: var(--faint); letter-spacing: .08em; }
.info .chip.money { font: 700 17px var(--f-head); letter-spacing: .02em; min-width: 150px; justify-content: space-between; }
.info .chip.money.cash .ico { color: var(--ok); }
.info .chip.money.bank .ico { color: var(--blue); }
.info .chip.money .amt { font-variant-numeric: tabular-nums; }
.info .chip.idc { font: 700 15px var(--f-head); }
.info .chip.idc .ico { color: var(--accent); }
.info .chip .sub { color: var(--muted); font-size: 12px; }
.info .delta { position: absolute; right: 12px; font: 700 15px var(--f-head); animation: delta 1.6s ease forwards; pointer-events: none; }
.info .delta.up { color: var(--ok); } .info .delta.down { color: var(--red); }
.info .money-wrap { position: relative; }
@keyframes delta { 0% { opacity: 0; transform: translateY(6px); } 15% { opacity: 1; transform: translateY(0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
.info.streamer .money .amt, .info.streamer .idc .v { filter: blur(6px); }

.compass { width: 520px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.compass .tape { position: relative; width: 100%; height: 34px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.compass .strip { position: absolute; top: 0; height: 100%; left: 50%; display: flex; will-change: transform; }
.compass .tk { position: relative; width: 15px; flex: none; height: 100%; }
.compass .tk::before { content: ''; position: absolute; left: 7px; bottom: 4px; width: 1px; height: 6px; background: rgba(255,255,255,.35); }
.compass .tk.mj::before { height: 11px; background: rgba(255,255,255,.7); }
.compass .tk span { position: absolute; left: 7.5px; top: 1px; transform: translateX(-50%); font: 700 14px var(--f-head); color: var(--text); text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.compass .tk span.ic { font: 600 11px var(--f-mono); color: var(--muted); top: 3px; }
.compass .tk span.n { color: var(--accent); }
.compass .mark { position: absolute; left: 50%; bottom: 0; width: 2px; height: 16px; margin-left: -1px; background: var(--accent); }
.compass .deg { font: 700 13px var(--f-mono); color: var(--text); background: rgba(14,15,18,.72); padding: 2px 8px; --cut: 4px; }
.street { display: flex; flex-direction: column; align-items: center; gap: 2px; text-shadow: 0 1px 3px rgba(0,0,0,.85); }
.street .s1 { font: 700 18px var(--f-head); letter-spacing: .02em; }
.street .s1 em { font-style: normal; color: var(--muted); font-weight: 600; }
.street .s2 { font: 600 11px var(--f-mono); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }

.mapframe { width: var(--mw, 286px); height: var(--mh, 186px); }
.mapframe .box { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.12); --cut: 10px; }
.mapframe.circle { width: var(--mw, 286px); height: var(--mh, 186px); }
.mapframe.circle .box { inset: 4.8% 6.4% 1.2% 9.2%; border-radius: 50%; clip-path: none; border-width: 2px; }
.mapframe canvas { position: absolute; inset: 1px; width: calc(100% - 2px); height: calc(100% - 2px); }
.mapframe.circle canvas { inset: 4.8% 6.4% 1.2% 9.2%; width: auto; height: auto; border-radius: 50%; }
.mapframe .pip { position: absolute; left: 50%; top: 50%; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 14px solid #fff; transform: translate(-50%,-60%); filter: drop-shadow(0 1px 2px #000); }

.spd { position: relative; }
.spd .ind { color: var(--faint); font-size: 22px; transition: color .1s; }
.spd .ind.on { color: var(--ok); filter: drop-shadow(0 0 6px rgba(52,211,153,.6)); }
.spd .lamps { display: flex; gap: 9px; align-items: center; }
.spd .lamp { font-size: 17px; color: var(--faint); opacity: .55; transition: color .2s, opacity .2s; }
.spd .lamp.on { opacity: 1; color: var(--text); }
.spd .lamp.ok { opacity: 1; color: var(--ok); }
.spd .lamp.warn { opacity: 1; color: var(--amber); }
.spd .lamp.bad { opacity: 1; color: var(--red); }
.spd .lamp.blink { opacity: 1; color: var(--red); animation: blink .7s steps(2) infinite; }
.spd .lamp.hi { opacity: 1; color: var(--blue); }
.spd[data-mode="bike"] .lamp.belt { display: none; }
.spd .gear { font: 700 22px var(--f-head); }
.spd .unit { font: 600 11px var(--f-mono); letter-spacing: .14em; color: var(--muted); }
.spd .cruise-set { font: 600 11px var(--f-mono); color: var(--ok); letter-spacing: .06em; }
.num { font-family: var(--f-head); font-weight: 700; font-variant-numeric: tabular-nums; line-height: .9; }
.num .dim { color: rgba(255,255,255,.14); }

.spd.tech { width: 360px; padding: 14px 18px 14px; background: var(--glass); --cut: 14px; }
.spd.tech .top { display: flex; align-items: flex-end; justify-content: space-between; }
.spd.tech .num { font-size: 76px; }
.spd.tech .rt { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding-bottom: 6px; }
.spd.tech .gearbox { display: flex; align-items: center; justify-content: center; width: 46px; height: 40px; border: 1px solid var(--edge); --cut: 7px; background: var(--s1); }
.spd.tech .gearbox .gear { font-size: 26px; }
.spd.tech .seg { display: grid; grid-template-columns: repeat(32, 1fr); gap: 3px; height: 14px; margin-top: 12px; }
.spd.tech .seg i { background: rgba(255,255,255,.07); transform: skewX(-18deg); transition: background .06s; }
.spd.tech .seg i.on { background: var(--text); }
.spd.tech .seg i.on.r { background: var(--accent); }
.spd.tech .seg.regen i.on { background: var(--ok); }
.spd.tech .scale { display: flex; justify-content: space-between; font: 500 9px var(--f-mono); color: var(--faint); margin-top: 4px; }
.spd.tech .bot { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.spd.tech .fuel { display: flex; align-items: center; gap: 7px; }
.spd.tech .fuel .ico { font-size: 16px; color: var(--muted); }
.spd.tech .fuel .fb { display: grid; grid-template-columns: repeat(10, 6px); gap: 2px; height: 10px; }
.spd.tech .fuel .fb i { background: rgba(255,255,255,.1); }
.spd.tech .fuel .fb i.on { background: var(--text); }
.spd.tech .fuel.low .fb i.on { background: var(--amber); }
.spd.tech .fuel .pct { font: 600 11px var(--f-mono); color: var(--muted); min-width: 32px; white-space: nowrap; }
.spd.tech .inds { position: absolute; top: 16px; right: 84px; display: flex; gap: 10px; }
.spd.tech .lamps { margin-left: auto; }

.spd.analog { width: 270px; height: 290px; }
.spd.analog svg.dial { position: absolute; left: 0; top: 0; width: 270px; height: 270px; overflow: visible; }
.spd.analog .face { fill: rgba(14,15,18,.8); stroke: rgba(255,255,255,.08); stroke-width: 1.5; }
.spd.analog .tick { stroke: rgba(255,255,255,.35); stroke-width: 1.5; }
.spd.analog .tick.mj { stroke: rgba(255,255,255,.85); stroke-width: 2.5; }
.spd.analog .lbl { font: 700 15px var(--f-head); fill: var(--text); text-anchor: middle; dominant-baseline: middle; }
.spd.analog .rpmtrack { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 4; }
.spd.analog .rpmfill { fill: none; stroke: var(--accent); stroke-width: 4; transition: stroke-dashoffset .08s linear; }
.spd.analog[data-mode="ev"] .rpmfill.regen { stroke: var(--ok); }
.spd.analog .needle { transition: transform .12s linear; transform-origin: 135px 135px; }
.spd.analog .needle path { fill: var(--accent); }
.spd.analog .hub { fill: var(--s2); stroke: var(--edge); stroke-width: 2; }
.spd.analog .read { position: absolute; left: 0; right: 0; top: 168px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.spd.analog .read .num { font-size: 30px; }
.spd.analog .read .row { display: flex; align-items: center; gap: 10px; }
.spd.analog .read .gear { font-size: 16px; color: var(--accent); }
.spd.analog .fuelline { position: absolute; left: 95px; right: 95px; top: 230px; height: 4px; background: rgba(255,255,255,.1); }
.spd.analog .fuelline i { position: absolute; inset: 0 auto 0 0; background: var(--text); }
.spd.analog .fuelline.low i { background: var(--amber); }
.spd.analog .lamps { position: absolute; left: 0; right: 0; bottom: 0; justify-content: center; }
.spd.analog .inds { position: absolute; top: 4px; left: 0; right: 0; display: flex; justify-content: space-between; }

.spd.cluster { width: 600px; height: 236px; }
.spd.cluster .shell { position: absolute; inset: 0; }
.spd.cluster svg.dial { position: absolute; top: 0; width: 220px; height: 220px; overflow: visible; }
.spd.cluster svg.dial.l { left: 0; } .spd.cluster svg.dial.r { right: 0; }
.spd.cluster .face { fill: rgba(14,15,18,.82); stroke: rgba(255,255,255,.08); stroke-width: 1.5; }
.spd.cluster .tick { stroke: rgba(255,255,255,.35); stroke-width: 1.5; }
.spd.cluster .tick.mj { stroke: rgba(255,255,255,.85); stroke-width: 2.5; }
.spd.cluster .tick.red { stroke: var(--accent); }
.spd.cluster .redarc { fill: none; stroke: var(--accent); stroke-width: 5; opacity: .85; }
.spd.cluster .lbl { font: 700 13px var(--f-head); fill: var(--text); text-anchor: middle; dominant-baseline: middle; }
.spd.cluster .cap { font: 600 9px var(--f-mono); fill: var(--faint); text-anchor: middle; letter-spacing: .12em; }
.spd.cluster .needle { transition: transform .1s linear; transform-origin: 110px 110px; }
.spd.cluster .needle path { fill: var(--accent); }
.spd.cluster .hub { fill: var(--s2); stroke: var(--edge); stroke-width: 2; }
.spd.cluster .screen { position: absolute; left: 222px; right: 222px; top: 38px; height: 150px; background: rgba(10,11,13,.9); border: 1px solid var(--edge); --cut: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.spd.cluster .screen .gear { font-size: 46px; line-height: 1; }
.spd.cluster .screen .num { font-size: 22px; }
.spd.cluster .screen .fuelline { width: 110px; height: 4px; background: rgba(255,255,255,.1); position: relative; }
.spd.cluster .screen .fuelline i { position: absolute; inset: 0 auto 0 0; background: var(--text); }
.spd.cluster .screen .fuelline.low i { background: var(--amber); }
.spd.cluster .screen .fl { display: flex; align-items: center; gap: 6px; font: 600 10px var(--f-mono); color: var(--muted); }
.spd.cluster .screen .fl .ico { font-size: 13px; }
.spd.cluster .lamps { position: absolute; left: 222px; right: 222px; bottom: 6px; justify-content: center; }
.spd.cluster .inds { position: absolute; top: 4px; left: 210px; right: 210px; display: flex; justify-content: space-between; }

.spd.apex { width: 320px; height: 300px; }
.spd.apex svg.arc { position: absolute; left: 0; top: 0; width: 320px; height: 300px; overflow: visible; }
.spd.apex .trk { fill: none; stroke: rgba(14,15,18,.75); stroke-width: 22; }
.spd.apex .trk2 { fill: none; stroke: rgba(255,255,255,.06); stroke-width: 16; }
.spd.apex .fill { fill: none; stroke: url(#apexg); stroke-width: 16; transition: stroke-dashoffset .07s linear; }
.spd.apex[data-mode="ev"] .fill.regen { stroke: var(--ok); }
.spd.apex .red { fill: none; stroke: var(--accent); stroke-width: 3; opacity: .9; }
.spd.apex .tk { stroke: rgba(255,255,255,.5); stroke-width: 2; }
.spd.apex .tl { font: 600 11px var(--f-mono); fill: var(--muted); text-anchor: middle; dominant-baseline: middle; }
.spd.apex .fuelarc { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 4; }
.spd.apex .fuelfill { fill: none; stroke: var(--text); stroke-width: 4; }
.spd.apex .fuelfill.low { stroke: var(--amber); }
.spd.apex.shift .fill { animation: blink .12s steps(2) infinite; }
.spd.apex .mid { position: absolute; left: 0; right: 0; top: 92px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.spd.apex .mid .num { font-size: 92px; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.spd.apex .gbox { position: absolute; left: 50%; top: 46px; transform: translateX(-50%); width: 44px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--accent); --cut: 6px; }
.spd.apex .gbox .gear { font-size: 24px; color: #fff; }
.spd.apex .lamps { position: absolute; left: 0; right: 0; bottom: 4px; justify-content: center; }
.spd.apex .inds { position: absolute; left: 6px; right: 6px; top: 6px; display: flex; justify-content: space-between; }
.spd.apex .rpmtxt { font: 600 10px var(--f-mono); color: var(--faint); letter-spacing: .14em; }

.spd.linear { width: 520px; height: 70px; display: flex; align-items: center; gap: 16px; padding: 0 16px; background: var(--glass); --cut: 10px; }
.spd.linear .spw { display: flex; align-items: baseline; gap: 6px; width: 104px; }
.spd.linear .num { font-size: 46px; }
.spd.linear .midc { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.spd.linear .rl { position: relative; height: 6px; background: rgba(255,255,255,.08); }
.spd.linear .rl i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--text) 70%, var(--accent)); transition: width .07s linear; }
.spd.linear[data-mode="ev"] .rl.regen i { background: var(--ok); }
.spd.linear .rl b { position: absolute; top: -3px; bottom: -3px; width: 1px; background: rgba(255,255,255,.2); }
.spd.linear .lo { display: flex; align-items: center; gap: 10px; }
.spd.linear .fl { display: flex; align-items: center; gap: 6px; font: 600 10px var(--f-mono); color: var(--muted); }
.spd.linear .fl .ico { font-size: 14px; }
.spd.linear .fl .fb { width: 64px; height: 4px; background: rgba(255,255,255,.1); position: relative; }
.spd.linear .fl .fb i { position: absolute; inset: 0 auto 0 0; background: var(--text); }
.spd.linear .fl.low .fb i { background: var(--amber); }
.spd.linear .lamps { margin-left: auto; gap: 8px; }
.spd.linear .lamp { font-size: 15px; }
.spd.linear .gb { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--edge); background: var(--s1); --cut: 7px; }
.spd.linear .gb .gear { font-size: 26px; }
.spd.linear .ind { font-size: 20px; }

.spd.boat { width: 340px; padding: 14px 18px; background: var(--glass); --cut: 14px; }
.spd.boat .top { display: flex; align-items: flex-end; justify-content: space-between; }
.spd.boat .num { font-size: 70px; }
.spd.boat .hdg { position: relative; height: 26px; margin-top: 12px; overflow: hidden; background: rgba(255,255,255,.04); -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); }
.spd.boat .hdg .strip { position: absolute; left: 50%; top: 0; height: 100%; display: flex; }
.spd.boat .hdg .tk { width: 12px; flex: none; position: relative; }
.spd.boat .hdg .tk::before { content: ''; position: absolute; left: 6px; bottom: 0; width: 1px; height: 5px; background: rgba(255,255,255,.35); }
.spd.boat .hdg .tk span { position: absolute; left: 6px; top: 3px; transform: translateX(-50%); font: 700 11px var(--f-head); }
.spd.boat .hdg .mk { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--accent); }
.spd.boat .bot { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.spd.boat .thr { flex: 1; height: 5px; background: rgba(255,255,255,.08); position: relative; }
.spd.boat .thr i { position: absolute; inset: 0 auto 0 0; background: var(--text); transition: width .1s linear; }
.spd.boat .k { font: 600 10px var(--f-mono); color: var(--faint); letter-spacing: .1em; }

.spd.air { width: 400px; height: 210px; background: var(--glass); --cut: 14px; display: grid; grid-template-columns: 92px 1fr 92px; padding: 12px; gap: 10px; }
.spd.air .tape { position: relative; overflow: hidden; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.spd.air .tape .rl { -webkit-mask-image: none; }
.spd.air .tape::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(var(--glass-solid, rgba(14,15,18,.9)), transparent 30%, transparent 70%, rgba(14,15,18,.9)); }
.spd.air .tape .rl { position: absolute; left: 0; right: 0; top: 50%; will-change: transform; }
.spd.air .tape .rl div { height: 20px; display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; font: 600 11px var(--f-mono); color: var(--muted); border-top: 1px solid rgba(255,255,255,.05); }
.spd.air .tape.r .rl div { justify-content: flex-start; padding-left: 10px; }
.spd.air .box { position: absolute; left: -1px; right: -1px; top: 50%; height: 32px; margin-top: -16px; background: var(--s2); border: 1px solid var(--accent); display: flex; align-items: center; justify-content: center; font: 700 19px var(--f-head); font-variant-numeric: tabular-nums; z-index: 2; }
.spd.air .tl { position: absolute; top: 0; left: 0; right: 0; padding: 3px 0; background: var(--s1); text-align: center; font: 600 9px var(--f-mono); color: var(--faint); letter-spacing: .12em; z-index: 3; }
.spd.air .ctr { display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 2px 0; }
.spd.air .ahdg { font: 700 30px var(--f-head); font-variant-numeric: tabular-nums; }
.spd.air .ahdg small { font: 600 10px var(--f-mono); color: var(--faint); letter-spacing: .12em; display: block; text-align: center; }
.spd.air .vs { display: flex; align-items: center; gap: 4px; font: 600 12px var(--f-mono); color: var(--muted); }
.spd.air .gearst { font: 700 12px var(--f-mono); letter-spacing: .1em; padding: 4px 10px; border: 1px solid var(--edge); --cut: 5px; }
.spd.air .gearst.down { color: var(--ok); border-color: rgba(52,211,153,.5); }
.spd.air .gearst.up { color: var(--muted); }
.spd.air .lamps { gap: 8px; }

.flash { position: absolute; left: 50%; top: 210px; transform: translateX(-50%); padding: 8px 16px; background: rgba(14,15,18,.85); --cut: 7px; font: 600 13px var(--f-body); display: flex; align-items: center; gap: 8px; opacity: 0; transition: opacity .25s; }
.flash.show { opacity: 1; }
.flash .ico { font-size: 17px; color: var(--accent); }

.nav { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px 0 10px; background: rgba(14,15,18,.78); --cut: 8px; white-space: nowrap; }
.nav .turn { font-size: 22px; color: var(--accent); display: flex; }
.nav .nd { font: 700 17px var(--f-head); letter-spacing: .02em; }
.nav .sep { width: 1px; height: 16px; background: var(--line); }
.nav .ri { font-size: 15px; color: var(--faint); }
.nav .tot { font: 600 12px var(--f-mono); color: var(--text); }
.nav .eta { font: 600 12px var(--f-mono); color: var(--muted); }
.nav .eta:empty { display: none; }


.trip { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.trip .pop { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; background: rgba(14,15,18,.82); --cut: 7px; animation: popin .35s cubic-bezier(.2,.8,.2,1); transition: opacity .4s, transform .4s; }
.trip .pop.out { opacity: 0; transform: translateY(6px); }
.trip .pop .ico { font-size: 16px; color: var(--accent); }
.trip .pop .pl { font: 600 10px var(--f-mono); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.trip .pop b { font: 700 17px var(--f-head); }
@keyframes popin { from { opacity: 0; transform: translateY(8px); } }

.spd.analog .apct { position: absolute; left: 0; right: 0; top: 238px; text-align: center; font: 600 10px var(--f-mono); color: var(--muted); }
.spd.apex .apct { position: absolute; left: 4px; top: 214px; font: 600 10px var(--f-mono); color: var(--muted); }
.spd.boat .rcol { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding-bottom: 6px; }
.spd.air .apct2 { font-size: 11px; color: var(--muted); }
.spd .ficon.warn { color: var(--amber); }
.spd .pct { white-space: nowrap; }
.spd.analog .fuelline { top: 228px; }

.status.slim { gap: 14px; align-items: flex-end; }
.status.slim .st { display: flex; align-items: flex-end; gap: 5px; }
.status.slim .st .ico { font-size: 22px; color: var(--c); }
.status.slim .st .bar { position: relative; width: 3px; height: 22px; background: rgba(255,255,255,.14); }
.status.slim .st .bar i { position: absolute; left: 0; right: 0; bottom: 0; top: auto; width: auto !important; height: var(--h, 100%); background: var(--c); transition: height .4s ease; }
.status.slim svg.ring, .status.slim .pill, .status.slim .val { display: none; }
.status.slim .st.low .ico { animation: pulse 1s ease-in-out infinite; }

.mapframe .vitals { position: absolute; left: 0; right: 0; bottom: -12px; display: flex; gap: 4px; height: 5px; }
.mapframe .vitals .vb { position: relative; flex: 1; background: rgba(255,255,255,.12); overflow: hidden; }
.mapframe .vitals .vb i { position: absolute; inset: 0 auto 0 0; transition: width .45s ease; }
.mapframe .vitals .hp i { background: var(--c-health); }
.mapframe .vitals .ar i { background: var(--c-armor); }
.mapframe .vitals .hp.low i { animation: pulse 1s ease-in-out infinite; }
.mapframe .vitals.noarmor .ar { display: none; }
.mapframe.circle .vitals { left: 28%; right: 25%; bottom: -12px; }

.scrim { position: absolute; pointer-events: none; display: none; }
.theme-float .scrim { display: block; }
.scrim.bl { left: 0; bottom: 0; width: 900px; height: 420px; background: radial-gradient(ellipse at 0% 100%, rgba(0,0,0,.5), transparent 70%); }
.scrim.br { right: 0; bottom: 0; width: 760px; height: 460px; background: radial-gradient(ellipse at 100% 100%, rgba(0,0,0,.5), transparent 70%); }
.scrim.tr { right: 0; top: 0; width: 620px; height: 300px; background: radial-gradient(ellipse at 100% 0%, rgba(0,0,0,.42), transparent 70%); }
.scrim.tc { left: 50%; top: 0; width: 900px; height: 200px; margin-left: -450px; background: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,.38), transparent 70%); }

.theme-float .w { text-shadow: 0 1px 2px rgba(0,0,0,.85), 0 0 14px rgba(0,0,0,.45); }
.theme-float .ico svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,.8)); }
.theme-float .num { font-style: normal; display: inline-block; transform: skewX(-7deg); }

.theme-float .info { gap: 2px; }
.theme-float .info .chip { background: none; height: auto; padding: 0; clip-path: none; }
.theme-float .info .meta { gap: 0; order: 3; margin-top: 6px; flex-wrap: nowrap; max-width: none; }
.theme-float .info .meta .chip { font: 600 11px var(--f-mono); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.theme-float .info .meta .chip + .chip:not(.gone)::before { content: '·'; margin: 0 8px; color: var(--faint); }
.theme-float .info .meta .chip .ico { display: none; }
.theme-float .info .meta .chip .k { color: var(--faint); }
.theme-float .info .meta .chip .v { color: var(--text); }
.theme-float .info .meta .chip .sub { font-size: 11px; color: var(--muted); }
.theme-float .info .meta .idc { font: 600 11px var(--f-mono); }
.theme-float .info .money { font: 700 34px var(--f-head); min-width: 0; gap: 10px; justify-content: flex-end; letter-spacing: .01em; }
.theme-float .info .money .ico { font-size: 22px; }
.theme-float .info .money.bank { font-size: 19px; color: var(--muted); }
.theme-float .info .money.bank .ico { font-size: 15px; }
.theme-float .info .delta { right: 0; top: -20px; }

.theme-float .compass .deg { background: none; clip-path: none; padding: 0; font-size: 12px; color: var(--muted); }
.theme-float .compass .tk::before { background: rgba(255,255,255,.45); }
.theme-float .street .s1 { font-size: 20px; }

.theme-float .nav { background: none; clip-path: none; padding: 0; }
.theme-float .nav .nd { font-size: 19px; }
.theme-float .voice .mic, .theme-float .voice .radio { background: none; clip-path: none; padding: 0; height: 22px; }
.theme-float .voice .mic.talk { background: none; color: var(--accent); }
.theme-float .voice { gap: 14px; }
.theme-float .trip .pop { background: none; clip-path: none; padding: 0; }
.theme-float .flash { background: rgba(10,11,13,.6); }
.theme-float .mapframe .box { border-color: rgba(255,255,255,.18); }

.theme-float .spd.tech, .theme-float .spd.linear, .theme-float .spd.boat { background: none; clip-path: none; }
.theme-float .spd.tech { padding: 0; width: 330px; }
.theme-float .spd.tech .num { font-size: 96px; }
.theme-float .spd.tech .inds { top: 4px; right: 70px; }
.theme-float .spd.tech .gearbox { background: none; border-color: rgba(255,255,255,.35); }
.theme-float .spd.tech .seg { height: 10px; gap: 2px; }
.theme-float .spd.tech .seg i { background: rgba(255,255,255,.12); }
.theme-float .spd.tech .seg i.on { background: var(--text); }
.theme-float .spd.tech .seg i.on.r { background: var(--accent); }
.theme-float .spd.tech .seg.regen i.on { background: var(--ok); }
.theme-float .spd.tech .bot { border-top: none; padding-top: 2px; margin-top: 10px; }
.theme-float .spd.linear { padding: 0; width: 470px; }
.theme-float .spd.linear .num { font-size: 54px; }
.theme-float .spd.linear .gb { background: none; border-color: rgba(255,255,255,.35); }
.theme-float .spd.linear .rl { height: 4px; }
.theme-float .spd.analog .face, .theme-float .spd.cluster .face { fill: rgba(8,9,11,.5); stroke: rgba(255,255,255,.12); }
.theme-float .spd.cluster .screen { background: rgba(8,9,11,.6); border-color: rgba(255,255,255,.1); }
.theme-float .spd.apex .trk { stroke: rgba(8,9,11,.45); }
.theme-float .spd.apex .mid .num { font-size: 104px; }
.theme-float .spd.boat { padding: 0; }
.theme-float .spd.boat .num { font-size: 84px; }
.theme-float .spd.air { background: rgba(8,9,11,.5); }
.theme-float .spd .num .dim { color: rgba(255,255,255,.12); }

.spd .odo { display: block; font: 600 10px var(--f-mono); letter-spacing: .1em; color: var(--faint); white-space: nowrap; }
.spd .odo:empty { display: none; }
.spd.tech .rt .odo { margin-top: 2px; }
.spd.linear .lo .odo { display: inline; }
.spd.linear .lo .odo:empty { display: none; }
.spd.analog .read .odo { position: absolute; left: 0; right: 0; top: 83px; text-align: center; font-size: 9px; }

.status .st:not(.hide) { animation: stin .3s ease-out; }
@keyframes stin { from { opacity: 0; } }

.spd .shl { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); display: flex; gap: 5px; align-items: center; opacity: 0; transition: opacity .15s; pointer-events: none; }
.spd .shl.show { opacity: 1; }
.spd .shl i { width: 14px; height: 5px; background: rgba(255,255,255,.12); transition: background .06s; }
.spd .shl i.on:nth-child(-n+3) { background: var(--ok); box-shadow: 0 0 8px rgba(52,211,153,.6); }
.spd .shl i.on:nth-child(n+4):nth-child(-n+5) { background: var(--amber); box-shadow: 0 0 8px rgba(251,191,36,.6); }
.spd .shl i.on:nth-child(n+6) { background: var(--red); box-shadow: 0 0 8px rgba(248,113,113,.7); }
.spd .shl.max i { background: var(--accent); box-shadow: 0 0 10px var(--accent-mid, rgba(239,68,68,.3)); animation: shblink .14s steps(2) infinite; }
.spd .shl b { display: none; font: 700 10px var(--f-mono); letter-spacing: .22em; color: var(--accent); padding: 3px 10px; border: 1px solid var(--accent); background: rgba(14,15,18,.6); }
.spd .shl.launch i { display: none; }
.spd .shl.launch b { display: block; animation: lpulse .9s ease-in-out infinite; }
@keyframes shblink { 50% { opacity: .15; } }
@keyframes lpulse { 50% { opacity: .45; } }

#crash { position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 40; box-shadow: inset 0 0 calc(220px * var(--f, .6)) calc(40px * var(--f, .6)) rgba(239,68,68,.5); }
#crash.hit { animation: crash 1s ease-out; }
@keyframes crash { 0% { opacity: 0; } 6% { opacity: 1; } 100% { opacity: 0; } }
.spd.shake { animation: shake .42s ease-out; }
@keyframes shake { 0%, 100% { left: 0; top: 0; } 15% { left: -6px; top: 2px; } 35% { left: 5px; top: -2px; } 55% { left: -3px; top: 1px; } 75% { left: 2px; top: 0; } }

.spd.hud { width: 600px; padding-top: 4px; transform: perspective(1100px) rotateX(20deg); transform-origin: 50% 100%; color: #fff; --glow: 0 0 16px rgba(255,255,255,.3), 0 1px 2px rgba(0,0,0,.55); }
.spd.hud::before { content: ''; position: absolute; inset: -34px -70px -24px; background: radial-gradient(ellipse at 50% 55%, rgba(0,0,0,.34), transparent 68%); z-index: -1; }
.spd.hud .hrow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 26px; }
.spd.hud .hmid { display: flex; flex-direction: column; align-items: center; min-width: 170px; }
.spd.hud .num { font: 700 96px/.9 var(--f-head); text-shadow: var(--glow); }
.spd.hud .unit { margin-top: 6px; color: rgba(255,255,255,.62); text-shadow: var(--glow); }
.spd.hud .hside { display: flex; align-items: center; gap: 18px; }
.spd.hud .hside.l { justify-content: flex-end; }
.spd.hud .hnav { display: flex; flex-direction: column; align-items: center; gap: 3px; text-shadow: var(--glow); }
.spd.hud .hnav.gone { display: none; }
.spd.hud .hnav .turn .ico { font-size: 36px; color: #fff; filter: drop-shadow(0 0 8px rgba(255,255,255,.35)); }
.spd.hud .hnav .nd { font: 600 12px var(--f-mono); letter-spacing: .06em; color: rgba(255,255,255,.8); }
.spd.hud .hgear { width: 46px; height: 46px; display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,.45); box-shadow: 0 0 12px rgba(255,255,255,.12); }
.spd.hud .gear { font-size: 24px; text-shadow: var(--glow); }
.spd.hud .ind { font-size: 26px; color: rgba(255,255,255,.16); }
.spd.hud .hrpm { position: relative; width: 340px; height: 3px; margin: 14px auto 0; background: rgba(255,255,255,.12); }
.spd.hud .hrpm i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(255,255,255,.85) 70%, var(--accent)); box-shadow: 0 0 10px rgba(255,255,255,.35); transition: width .07s linear; }
.spd.hud[data-mode="ev"] .hrpm.regen i { background: var(--ok); }
.spd.hud .hlo { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 11px; font: 600 11px var(--f-mono); color: rgba(255,255,255,.66); text-shadow: var(--glow); }
.spd.hud .hlo .ficon { font-size: 14px; }
.spd.hud .hlo .ficon.warn { color: var(--amber); }
.spd.hud .lamps { gap: 10px; margin-left: 6px; }
.spd.hud .lamp { font-size: 15px; }
.spd.hud .odo { display: inline; color: rgba(255,255,255,.45); }
.spd.hud .odo:empty { display: none; }
.spd.hud .shl { bottom: calc(100% + 6px); }
#stage:not(.editing) .w.street, #stage:not(.editing) .w.nav { transition: opacity .35s ease, top .3s ease; }
.spd.redline .seg i.on, .spd.redline .rl i, .spd.redline .hrpm i { background: var(--accent) !important; animation: shblink .14s steps(2) infinite; }

.weapon { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.weapon .wn { font: 600 12px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.weapon .wa { display: flex; align-items: baseline; gap: 8px; }
.weapon .clip { font-size: 46px; }
.weapon .clip.low { color: var(--amber); }
.weapon .clip.empty { color: var(--red); font-size: 26px; letter-spacing: .12em; animation: blink .8s steps(2) infinite; }
.weapon .tot { font: 600 16px var(--f-mono); color: var(--muted); }
.weapon .wb { display: flex; gap: 2px; }
.weapon .wb i { width: 4px; height: 10px; background: rgba(255,255,255,.14); }
.weapon .wb i.on { background: var(--text); }
.weapon .wb.low i.on { background: var(--amber); }
.weapon.melee .wn { font-size: 13px; color: var(--text); }

.compass .ihd { display: none; }

.status.gauges { gap: 16px; align-items: flex-end; }
.status.gauges .st { display: flex; flex-direction: column-reverse; align-items: center; gap: 8px; }
.status.gauges .st .bar { position: relative; width: 3px; height: 64px; background: rgba(255,255,255,.16); }
.status.gauges .st .bar i { position: absolute; left: 0; right: 0; bottom: 0; top: auto; width: 100% !important; height: var(--h, 100%); background: var(--c); transition: height .4s ease; }
.status.gauges .st .ico { font-size: 17px; color: var(--c); filter: drop-shadow(0 1px 2px rgba(0,0,0,.7)); }
.status.gauges .st.low .ico { animation: pulse 1s ease-in-out infinite; }
.status.gauges svg.ring, .status.gauges .pill, .status.gauges .val { display: none; }

.spd.dial { width: 360px; height: 300px; }
.spd.dial svg.d { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.spd.dial .tk { stroke: rgba(255,255,255,.3); stroke-width: 1; }
.spd.dial .tk.mj { stroke: rgba(255,255,255,.75); stroke-width: 2; }
.spd.dial .tl { font: 600 11px var(--f-mono); fill: rgba(255,255,255,.55); text-anchor: middle; dominant-baseline: middle; }
.spd.dial .trk { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 2; }
.spd.dial .spf { fill: none; stroke: var(--text); stroke-width: 6; transition: stroke-dashoffset .08s linear; }
.spd.dial .red { fill: none; stroke: var(--accent); stroke-width: 2; }
.spd.dial .rtrk { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 2; }
.spd.dial .rpmf { fill: none; stroke: var(--accent); stroke-width: 2; transition: stroke-dashoffset .07s linear; }
.spd.dial .rpmf.regen { stroke: var(--ok); }
.spd.dial.redline .rpmf { animation: shblink .14s steps(2) infinite; }
.spd.dial .gbx { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); }
.spd.dial .gear { font-size: 21px; }
.spd.dial .mid { position: absolute; left: 0; right: 0; top: 112px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.spd.dial .mid .num { font-size: 104px; }
.spd.dial .unit { letter-spacing: .2em; }
.spd.dial .ind { position: absolute; top: 233px; font-size: 22px; }
.spd.dial .ind.l { left: 76px; } .spd.dial .ind.r { right: 76px; }
.spd.dial .lamps { position: absolute; left: 0; right: 0; top: 236px; justify-content: center; gap: 14px; }
.spd.dial .foot { position: absolute; left: 58px; right: 58px; bottom: 4px; display: flex; align-items: center; gap: 6px; font: 600 13px var(--f-mono); color: rgba(255,255,255,.85); }
.spd.dial .foot .ficon { font-size: 16px; }
.spd.dial .foot .grow { flex: 1; }
.spd.dial .foot .odo { font-size: 11px; color: rgba(255,255,255,.55); }
.spd.dial .shl { bottom: calc(100% - 6px); }

.theme-inst .num { transform: none; }
.theme-inst .w { text-shadow: 0 1px 2px rgba(0,0,0,.7), 0 0 18px rgba(0,0,0,.35); }

.theme-inst .compass { width: 300px; gap: 6px; }
.theme-inst .compass .ihd { display: flex; align-items: baseline; gap: 10px; order: -1; }
.theme-inst .compass .ihd b { font: 700 26px var(--f-head); }
.theme-inst .compass .ihd span { font: 600 14px var(--f-mono); color: rgba(255,255,255,.75); }
.theme-inst .compass .deg { display: none; }
.theme-inst .compass .tape { height: 12px; width: 260px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }
.theme-inst .compass .tk span { display: none; }
.theme-inst .compass .tk::before { bottom: 2px; height: 5px; background: rgba(255,255,255,.4); }
.theme-inst .compass .tk.mj::before { height: 9px; background: rgba(255,255,255,.7); }
.theme-inst .compass .mark { height: 14px; bottom: -1px; }

.theme-inst .street .s1 { font: 600 17px var(--f-body); letter-spacing: 0; }
.theme-inst .street .s1 em { font-weight: 500; color: rgba(255,255,255,.7); }
.theme-inst .street .s2 { font: 500 13px var(--f-body); letter-spacing: 0; text-transform: none; color: rgba(255,255,255,.7); }

.theme-inst .info .money .ico { font-size: 20px; opacity: .9; }
.theme-inst .info .money.bank .ico { font-size: 14px; }
.theme-inst .info .money { font-size: 34px; }
.theme-inst .info .money.bank { font-size: 18px; color: rgba(255,255,255,.75); }
.theme-inst .info .meta .chip { font-size: 12px; text-transform: none; letter-spacing: .02em; color: rgba(255,255,255,.8); }
.theme-inst .info .meta .chip + .chip:not(.gone)::before { content: ''; margin: 0 7px; }
.theme-inst .info .meta .chip .k { color: rgba(255,255,255,.5); margin-right: 4px; }

.theme-inst .mapframe .box { clip-path: none; border: 1px solid rgba(255,255,255,.22);
  background:
    linear-gradient(#fff, #fff) left -1px top -1px / 11px 2px no-repeat, linear-gradient(#fff, #fff) left -1px top -1px / 2px 11px no-repeat,
    linear-gradient(#fff, #fff) right -1px top -1px / 11px 2px no-repeat, linear-gradient(#fff, #fff) right -1px top -1px / 2px 11px no-repeat,
    linear-gradient(#fff, #fff) left -1px bottom -1px / 11px 2px no-repeat, linear-gradient(#fff, #fff) left -1px bottom -1px / 2px 11px no-repeat,
    linear-gradient(#fff, #fff) right -1px bottom -1px / 11px 2px no-repeat, linear-gradient(#fff, #fff) right -1px bottom -1px / 2px 11px no-repeat; }
.theme-inst .mapframe.circle .box { background: none; }
.theme-inst .mapframe .vitals { height: 3px; gap: 6px; bottom: -10px; }
.theme-inst .mapframe .vitals .vb { background: rgba(255,255,255,.14); }

.theme-inst .voice .rng b.on { background: rgba(255,255,255,.75); }

.street .s2 { display: flex; align-items: center; gap: 12px; }
.street .pc { display: flex; align-items: baseline; gap: 6px; }
.street .pc b { font: 700 11px var(--f-mono); letter-spacing: .06em; color: var(--text); }
.street .pc span { font: 600 11px var(--f-mono); color: var(--muted); }


.spd.cycle { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.spd.cycle .cy-top { display: flex; align-items: baseline; gap: 10px; }
.spd.cycle .num { font-size: 84px; }
.spd.cycle .cy-row { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.spd.cycle .cy-row b { font: 600 14px var(--f-mono); color: var(--text); margin-right: 8px; }

.spd.train { width: 360px; display: flex; flex-direction: column; gap: 12px; }
.spd.train .tr-top { display: flex; align-items: flex-end; justify-content: flex-end; gap: 14px; }
.spd.train .num { font-size: 96px; }
.spd.train .tr-r { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 8px; }
.spd.train .tr-dir { font: 700 13px var(--f-mono); letter-spacing: .14em; color: var(--ok); border: 1px solid currentColor; padding: 2px 7px; }
.spd.train .tr-dir.rev { color: var(--amber); }
.spd.train .tr-bar { position: relative; height: 4px; background: rgba(255,255,255,.14); }
.spd.train .tr-bar i { position: absolute; inset: 0 auto 0 0; background: var(--text); transition: width .1s linear; }
.spd.train .tr-bar b { position: absolute; top: -4px; width: 1px; height: 12px; background: rgba(255,255,255,.3); }

.beltwarn { display: flex; align-items: center; gap: 10px; color: var(--red); white-space: nowrap; animation: pulse 1.1s ease-in-out infinite; }
.beltwarn .ico { font-size: 32px; }
.beltwarn .bk { font: 700 14px var(--f-mono); color: var(--text); border: 1px solid rgba(255,255,255,.5); padding: 2px 7px; border-radius: 2px; text-shadow: none; }
.beltwarn .bt { font: 600 17px var(--f-body); color: var(--text); }

.mapframe .box { display: none; }
