/* The driving HUD, in stage units (see style.css). Four corners, one column of messages down the left, one down the
   top centre. Nothing in a column has a position of its own: each thing sits under the one above it. */
#s-hud { pointer-events: none; }
/* a card over the road (pause, settings, a result) takes the HUD off the screen: its numbers showed through the veil,
   under the card's own title */
body.covered #s-hud { visibility: hidden; }

/* ---- the left column: the money (or the race or job card), then every message, top to bottom */
.hud-left { position: absolute; left: calc(var(--safe-l) + var(--edge)); top: calc(var(--safe-t) + 10px); bottom: calc(var(--safe-b) + 78px); width: 262px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 7px; overflow: hidden; pointer-events: none; }
.hud-left > * { flex: none; max-width: 100%; }
.touchmode .hud-left { bottom: calc(var(--safe-b) + 150px); }
.money { text-shadow: 0 2px 6px rgba(0,0,0,.75); }
.money.hidden, .heat.hidden { display: none; }
.money .bank { font-family: var(--font-display); font-weight: 900; font-size: 28px; color: var(--mint); letter-spacing: .01em; line-height: 1; }
.money .bank.bump { animation: bump .35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
.money .pend { margin-top: 3px; display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 16px; color: var(--amber2); transition: color .3s; min-height: 22px; }
.money .pend.hot { color: #ffb14d; text-shadow: 0 0 14px rgba(255,120,30,.7), 0 2px 6px rgba(0,0,0,.7); }
.money .pend.zero > span:first-child { display: none; }
.money .mult { font-size: 13px; color: var(--ink); background: rgba(11,13,18,.7); border: 1px solid var(--line2); border-radius: 8px; padding: 1px 8px; text-shadow: none; }
.money .mult.high { border-color: var(--amber); color: var(--amber2); }
.money .mult.bump { animation: bump .3s ease; }
.money .bankbar { height: 3px; width: 150px; background: rgba(255,255,255,.12); border-radius: 2px; margin-top: 5px; overflow: hidden; }
.money .bankbar > i { display: block; height: 100%; width: 0; background: var(--mint); }
.crates-held { display: none; font-size: 12px; font-weight: 900; color: var(--amber2); margin-top: 3px; }
.crates-held.on { display: block; }
.quest-tick { display: none; margin-top: 3px; font-size: 12px; font-weight: 800; color: var(--mint); line-height: 1.25; }
.quest-tick.on { display: block; }
/* the race and the job cards take the money's place */
.hud-card { display: none; min-width: 190px; padding: 8px 12px 9px; border-radius: 13px; background: rgba(11,13,18,.74); border: 1px solid var(--line2); }
.hud-card.on { display: block; }
.race-hud .pos { display: flex; align-items: baseline; gap: 2px; line-height: 1; }
.race-hud .pos b { font-size: 34px; font-weight: 900; font-style: italic; color: var(--ink); padding-right: .08em; }
.race-hud .pos b.lead { color: var(--mint); } .race-hud .pos b.warn { color: var(--hot); }
.race-hud .pos .of { font-size: 17px; font-weight: 900; color: var(--dim); }
.race-hud .gaps { margin-top: 4px; display: flex; flex-direction: column; gap: 1px; }
.race-hud .gap { font-size: 13px; font-weight: 800; color: var(--ink2); }
.race-hud .gap:empty { display: none; }
.race-hud .gap.a { color: var(--amber2); } .race-hud .gap.b { color: var(--dim); }
.race-hud .rprog { height: 5px; border-radius: 3px; background: rgba(255,255,255,.12); margin-top: 8px; overflow: hidden; }
.race-hud .rprog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--amber3), var(--amber2)); transition: width .12s linear; }
.race-hud .rfoot { display: flex; justify-content: space-between; gap: 12px; margin-top: 5px; font-size: 12px; font-weight: 800; color: var(--dim); white-space: nowrap; }
.race-hud .rclock { font-variant-numeric: tabular-nums; color: var(--ink2); }
.job-hud { width: 240px; }
.job-hud .jtitle { display: flex; align-items: baseline; gap: 5px; margin-bottom: 3px; }
.job-hud .jtitle b { font-size: 12px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: #c99ce4; }
.job-hud .jtitle .of { font-size: 12px; color: var(--dim); }
.job-hud .goal { font-size: 16px; font-weight: 900; line-height: 1.15; }
.job-hud .goal.shake { color: var(--hot); }
.job-hud .jfoot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 6px; }
.job-hud .jclock { font-size: 16px; font-weight: 900; font-variant-numeric: tabular-nums; }
.job-hud .jclock.low { color: var(--hot); }
.job-hud .jdmgt { color: var(--dim); }
.job-hud .jdmg { position: relative; height: 5px; border-radius: 3px; margin-top: 5px; background: rgba(255,255,255,.12); overflow: hidden; }
.job-hud .jdmg i { display: block; height: 100%; width: 0; background: var(--amber2); transition: width .2s linear; }
.job-hud .jdmg.hot i { background: var(--hot); }
.job-hud .jrelief { display: none; margin-top: 4px; font-size: 12px; font-weight: 900; color: var(--mint); letter-spacing: .03em; text-transform: uppercase; }
.job-hud .jrelief.on { display: block; }
/* the messages, in the column: a banner is a small card here, not 56 px across the road */
.hud-left .banner { display: flex; flex-direction: column-reverse; text-align: left; transform-origin: left center; padding: 6px 12px 7px; border-radius: 11px; background: rgba(11,13,18,.8); border: 1px solid var(--line2); }
.hud-left .banner h1 { font-size: 20px; text-shadow: none; padding: 0 .1em 0 0; }
.hud-left .banner .s { font-size: 11px; letter-spacing: .12em; text-shadow: none; margin-bottom: 1px; line-height: 1.3; }
.hud-left .banner.hot { border-color: rgba(255,59,48,.6); } .hud-left .banner.mint { border-color: rgba(61,220,151,.5); } .hud-left .banner.amber { border-color: rgba(255,159,28,.55); }
.hud-left .banner.hot h1, .hud-left .banner.mint h1 { text-shadow: none; }
.tut-slot:empty { display: none; }
.onb { position: absolute; left: 50%; top: calc(var(--safe-t) + 58px); transform: translateX(-50%); display: flex; align-items: flex-start; gap: 8px; z-index: 3; pointer-events: none; }
.onb-card { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 9px 16px 8px; border-radius: 14px; background: rgba(11,13,18,.86); border: 1px solid rgba(255,159,28,.75); box-shadow: 0 8px 26px rgba(0,0,0,.45); transition: border-color .2s, background .2s; }
.onb-card.pop { animation: popIn .28s ease; }
.onb-row { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.onb-keys { display: inline-flex; gap: 4px; } .onb-keys:empty { display: none; }
.onb-keys .key { min-width: 34px; height: 34px; font-size: 15px; border-radius: 7px; }
.onb-say { font-family: var(--font-display); font-weight: 900; font-size: 17px; color: var(--ink); }
.onb-tick { display: none; width: 26px; height: 26px; border-radius: 50%; background: var(--mint); color: #0d0f14; font-size: 16px; align-items: center; justify-content: center; }
.onb-card.ok { border-color: var(--mint); background: rgba(9,34,24,.9); } .onb-card.ok .onb-tick { display: inline-flex; }
.onb-card.win .onb-tick { display: none; } .onb-card.win .onb-say { color: var(--mint); font-size: 22px; } .onb-card.win .onb-sub { color: #fff; font-size: 20px; }
.onb-sub { font-size: 12px; font-weight: 800; color: var(--amber2); } .onb-sub:empty { display: none; }
.onb-dots { display: flex; gap: 5px; } .onb-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.22); } .onb-dots i.now { background: var(--amber2); } .onb-dots i.on { background: var(--mint); }
.onb-skip { pointer-events: auto; margin-top: 4px; padding: 5px 11px; border-radius: 999px; background: rgba(11,13,18,.72); border: 1px solid rgba(255,255,255,.28); color: rgba(255,255,255,.85); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.onb-skip:hover { background: rgba(30,34,44,.92); }
body.hl-onb #s-hud .money, body.hl-onb #s-hud .hud-tr .heat, body.hl-onb #s-hud .hud-tr .clock, body.hl-onb #s-hud .damage, body.hl-onb #s-hud .controls, body.hl-onb #s-hud .rival-tag, body.hl-onb #s-hud .hud-cam, body.hl-onb #s-hud .hud-left .toasts, body.hl-onb #s-hud .hud-left .banner { visibility: hidden; }
.tut-bubble { width: 262px; background: rgba(14,16,22,.92); border: 1px solid var(--amber); border-radius: 13px; padding: 9px 13px 10px; box-shadow: 0 8px 26px rgba(0,0,0,.5); animation: popIn .3s ease; }
.tut-bubble h3 { color: var(--amber2); font-size: 13px; text-transform: uppercase; font-style: italic; letter-spacing: .05em; }
.tut-bubble p { margin: 3px 0 0; font-size: 13px; color: var(--ink); line-height: 1.38; }
.tut-bubble p b { color: var(--amber2); }
.tut-bubble .keys { display: inline-flex; gap: 3px; margin: 0 3px; vertical-align: middle; }
.say-box { display: none; width: 262px; padding: 7px 12px 8px 13px; border-radius: 11px; background: rgba(9,11,16,.9); border-left: 3px solid #8fb4d9; }
.say-box.on { display: block; animation: popIn .22s ease; }
.say-box.phone { border-left-color: var(--amber2); }
.say-box b { display: block; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: #8fb4d9; margin-bottom: 2px; }
.say-box.phone b { color: var(--amber2); }
.say-box span { display: block; font-size: 13px; font-weight: 600; line-height: 1.32; color: #f2efe8; }
.hud-left .toasts { align-items: flex-start; gap: 4px; }
.hud-left .toast { font-size: 12px; padding: 5px 10px; border-radius: 9px; letter-spacing: .04em; text-align: left; box-shadow: none; }
.hud-left .toast.big { font-size: 13px; padding: 6px 12px; }

/* ---- the top centre column: the hazard callout, the start lights, the wrong-way sign */
.hud-topc { position: absolute; left: 50%; top: calc(var(--safe-t) + 12px); transform: translateX(-50%); width: 236px; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; z-index: 2; }
.warn-callout { display: none; padding: 6px 13px; border-radius: 10px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; font-size: 13px; text-align: center; line-height: 1.25;
  background: rgba(80,12,10,.88); border: 1px solid rgba(255,59,48,.75); color: #ffd1cc; }
.warn-callout.on { display: block; animation: popIn .15s ease; }
.warn-callout.amber { background: rgba(60,36,6,.9); border-color: rgba(255,159,28,.75); color: var(--amber2); }
#ui > .warn-callout { position: absolute; left: 50%; top: calc(var(--safe-t) + 14px); transform: translateX(-50%); z-index: 36; }
.race-start { display: none; flex-direction: column; align-items: center; gap: 6px; margin-top: 34px; }
.race-start.on { display: flex; }
.race-lights { display: flex; gap: 10px; }
.race-lights i { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.2); }
.race-lights i.on { background: var(--hot); border-color: #ff8a80; box-shadow: 0 0 18px rgba(255,59,48,.8); }
.race-lights.go i { background: var(--mint) !important; border-color: var(--mint2) !important; box-shadow: 0 0 22px rgba(61,220,151,.9) !important; }
.race-go { font-size: 30px; line-height: 1; font-weight: 900; font-style: italic; color: var(--mint); text-shadow: 0 3px 14px rgba(0,0,0,.7); letter-spacing: .1em; }
.race-go:empty { display: none; }
.race-wrongway { display: none; flex-direction: column; align-items: center; gap: 1px; margin-top: 34px; padding: 8px 18px; border-radius: 13px; background: rgba(255,59,48,.18); border: 2px solid var(--hot); color: var(--hot);
  font-size: 24px; line-height: 1.1; font-weight: 900; font-style: italic; letter-spacing: .08em; white-space: nowrap; text-shadow: 0 3px 14px rgba(0,0,0,.7); animation: wwPulse .7s ease-in-out infinite alternate; }
.race-wrongway.on { display: flex; }
.race-start.on + .race-wrongway { margin-top: 0; }
.race-wrongway small { font-size: 12px; font-style: normal; letter-spacing: .04em; color: var(--ink2); }
@keyframes wwPulse { from { opacity: .72; } to { opacity: 1; } }

.horn-pill { display: none; align-items: center; gap: 4px; padding: 5px 14px; border-radius: 999px; background: rgba(60,36,6,.9); border: 1px solid rgba(255,159,28,.8); color: var(--amber2); font-weight: 900; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.horn-pill.on { display: flex; }
.horn-pill b { margin: 0 5px; }
.horn-pill i { width: 3px; border-radius: 2px; background: var(--amber2); animation: hornBar .32s ease-in-out infinite alternate; }
.horn-pill i:nth-child(1), .horn-pill i:nth-child(5) { height: 7px; animation-delay: .1s; } .horn-pill i:nth-child(2), .horn-pill i:nth-child(4) { height: 13px; }
@keyframes hornBar { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
/* ---- top right: the heat, the time, and the three buttons */
.hud-tr { position: absolute; top: calc(var(--safe-t) + 10px); right: calc(var(--safe-r) + var(--edge)); display: grid; grid-template-columns: auto auto; grid-template-rows: auto 1fr; align-items: start; gap: 4px 10px; pointer-events: none; }
.hud-tr .heat { grid-column: 1; grid-row: 1; }
.hud-tr .clock { grid-column: 1; grid-row: 2; }
.hud-tr .hud-btns { grid-column: 2; grid-row: 1 / span 2; }
.hud-tr .heat.hidden + .clock { grid-row: 1; }
.heat { text-align: right; text-shadow: 0 2px 6px rgba(0,0,0,.75); padding-top: 4px; }
.stars { display: flex; gap: 3px; justify-content: flex-end; transition: transform .2s; }
.stars i { width: 20px; height: 20px; display: inline-block; background: rgba(255,255,255,.28); clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); transition: background .2s; }
.stars i.on { background: var(--amber); }
.stars i.hot { background: var(--hot); }
.stars i.half { background: linear-gradient(90deg, var(--amber) 50%, rgba(255,255,255,.28) 50%); }
.heat .state { margin-top: 4px; font-weight: 900; letter-spacing: .12em; font-size: 12px; text-transform: uppercase; color: var(--ink2); min-height: 16px; white-space: nowrap; }
.heat .state.pursuit { color: var(--hot); animation: blink 1s steps(2) infinite; }
.heat .state.search { color: var(--amber2); } .heat .state.clear { color: var(--mint); }
@keyframes blink { 50% { opacity: .4; } }
.heat .detect { height: 4px; width: 112px; margin-left: auto; margin-top: 3px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.heat .detect > i { display: block; height: 100%; width: 0; background: var(--hot); float: right; }
.clock { text-align: right; text-shadow: 0 2px 6px rgba(0,0,0,.8); padding-top: 3px; white-space: nowrap; }
.clock .ct { font-family: var(--font-display); font-weight: 900; font-size: 19px; line-height: 1.1; letter-spacing: .04em; color: var(--ink); }
.clock .cb { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); font-weight: 800; }
.hud-btns { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.hud-btn { pointer-events: auto; min-width: 38px; height: 38px; padding: 0 9px; border-radius: 19px; background: rgba(11,13,18,.66); border: 1px solid var(--line2); color: var(--ink2); font-size: 13px; display: flex; align-items: center; justify-content: center; white-space: nowrap; }
.hud-btn:hover { background: rgba(11,13,18,.92); color: var(--ink); }
.hud-cam { font-size: 11px; font-weight: 900; letter-spacing: .04em; }
.hud-radio.off { opacity: .6; }

/* ---- the bottom: the car's health, the keys for a new player, the speed */
.hud-bot { position: absolute; left: calc(var(--safe-l) + var(--edge)); right: calc(var(--safe-r) + var(--edge)); bottom: calc(var(--safe-b) + 12px); display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; pointer-events: none; }
.damage { width: 150px; flex: none; text-shadow: 0 2px 6px rgba(0,0,0,.75); }
.damage .tag { display: flex; justify-content: space-between; margin-bottom: 4px; color: var(--ink2); }
.damage .bar { height: 8px; background: rgba(11,13,18,.7); border: 1px solid var(--line2); }
.damage .bar > i { background: linear-gradient(90deg, #3ddc97, #ffd166 60%, #ff3b30); transition: width .2s; }
.controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; flex: 0 1 auto; max-width: 430px; padding: 6px 12px; border-radius: 10px; background: rgba(11,13,18,.6); }
.controls .crow { display: flex; align-items: center; gap: 5px; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink2); font-weight: 800; white-space: nowrap; }
.controls .key { min-width: 19px; height: 19px; font-size: 11px; padding: 0 5px; }
.speedo { text-align: right; flex: none; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.speedo .spd-row { display: flex; align-items: flex-end; justify-content: flex-end; gap: 8px; }
.speedo .kmh { font-family: var(--font-display); font-weight: 900; font-size: 44px; line-height: .95; letter-spacing: -.02em; font-style: italic; padding-right: .1em; }
.speedo .kmh.fast { color: var(--amber2); }
.speedo .unit { font-size: 11px; letter-spacing: .2em; color: var(--ink2); text-transform: uppercase; font-weight: 900; }
.speedo .gear { margin: 0 0 5px; padding: 1px 6px; border-radius: 6px; background: rgba(11,13,18,.66); border: 1px solid var(--line2); font-size: 13px; color: var(--amber); font-weight: 900; text-shadow: none; }
.speedo .rpm { height: 4px; width: 130px; margin-left: auto; margin-top: 5px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.speedo .rpm > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--amber3), var(--amber2), var(--hot)); }

/* ---- a tag over a car or a place (Hud.pinTag keeps them clear of the blocks above) */
.wtag { position: absolute; left: 0; top: 0; display: none; flex-direction: column; align-items: center; gap: 2px; pointer-events: none !important; will-change: transform; z-index: 1; white-space: nowrap; }
.wtag.on { display: flex; }
.wtag b { font-family: var(--font-display); font-weight: 900; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #0d0f14; background: var(--tag, #dfe4ec); padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); box-shadow: 0 2px 6px rgba(0,0,0,.55); }
.wtag span { font-size: 11px; font-weight: 800; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.95); }
.wtag .arrow { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid var(--tag, #dfe4ec); filter: drop-shadow(0 1px 2px rgba(0,0,0,.7)); }
.wtag[data-edge="none"] .arrow { display: none; }
.wtag[data-edge="top"] .arrow { order: -1; transform: rotate(180deg); }
.wtag[data-edge="left"] .arrow { transform: rotate(90deg); }
.wtag[data-edge="right"] .arrow { transform: rotate(-90deg); }
.wtag .rbar { display: none; width: 60px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.24); overflow: hidden; }
.wtag .rbar.on { display: block; }
.wtag .rbar i { display: block; height: 100%; width: 0; background: var(--mint); }
.rival-tag { z-index: 2; }
.rival-tag b { font-size: 11px; color: #fff; background: var(--rival, #9b2bd6); padding: 3px 10px; box-shadow: 0 0 16px var(--rival, #9b2bd6), 0 2px 6px rgba(0,0,0,.6); }
.rival-tag .arrow { border-top-color: var(--rival, #9b2bd6); border-left-width: 8px; border-right-width: 8px; border-top-width: 10px; }
.rival-tag[data-edge="none"] .arrow { display: block; }
.gap-tag { opacity: .92; } .gap-tag.behind { opacity: .72; } .gap-tag.close span { color: var(--amber2); }
.goal-tag b { background: var(--amber2); } .goal-tag .arrow { border-top-color: var(--amber2); } .goal-tag span { font-size: 12px; }
.goal-tag[data-kind="pickup"] b { background: var(--mint); } .goal-tag[data-kind="pickup"] .arrow { border-top-color: var(--mint); }
.goal-tag[data-kind="target"] b { background: #ff5a3c; color: #fff; } .goal-tag[data-kind="target"] .arrow { border-top-color: #ff5a3c; }
.goal-tag.close span { color: var(--mint); }
.goal-tag .rbar i { background: #fff; }
/* near-miss pops: small, beside the road ahead, clear of both columns */
.nm-pop { position: absolute; top: 46%; font-family: var(--font-display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 15px; color: var(--amber2); text-shadow: 0 0 14px rgba(255,159,28,.6), 0 2px 4px #000; pointer-events: none; animation: nmPop .9s ease forwards; white-space: nowrap; }
.nm-pop small { display: block; font-size: 11px; color: var(--ink); letter-spacing: .16em; font-style: normal; }
.nm-pop.left { left: 34%; } .nm-pop.right { right: 34%; text-align: right; }
@keyframes nmPop { 0% { opacity: 0; transform: translateY(10px) scale(.8); } 15% { opacity: 1; transform: scale(1.1); } 30% { transform: scale(1); } 100% { opacity: 0; transform: translateY(-26px); } }

/* ---- touch: the left thumb steers on a rocker, the right thumb drives; the speed and the car's health sit between */
.touch { position: absolute; inset: 0; pointer-events: none; display: none; --tu: 76px; }
.touch.on { display: block; }
.touch > * { pointer-events: auto; }
.touch .zone { position: absolute; bottom: 0; left: 0; width: calc(var(--tu) * 3.4 + var(--safe-l)); height: calc(var(--tu) * 2 + var(--safe-b)); }
.touch .arrow { position: absolute; bottom: calc(var(--safe-b) + 18px); width: var(--tu); height: var(--tu); border-radius: 50%; background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.5); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.9); font-size: 30px; pointer-events: none; }
.touch .arrow.l { left: calc(var(--safe-l) + 18px); } .touch .arrow.r { left: calc(var(--safe-l) + 18px + var(--tu) + 14px); }
.touch .arrow.down { background: rgba(255,159,28,.4); color: #fff; }
.touch .pedal { position: absolute; bottom: calc(var(--safe-b) + 18px); width: var(--tu); height: var(--tu); border-radius: 50%; font-weight: 900; letter-spacing: .1em; font-size: 13px; display: flex; align-items: center; justify-content: center; text-shadow: 0 1px 3px #000; box-shadow: 0 0 0 1px rgba(0,0,0,.35), inset 0 0 0 999px rgba(0,0,0,.18); }
.touch .gas { right: calc(var(--safe-r) + 18px); width: calc(var(--tu) * 1.15); height: calc(var(--tu) * 1.15); background: rgba(61,220,151,.2); border: 2px solid rgba(61,220,151,.7); color: #9ff5cf; }
.touch .gas.down { background: rgba(61,220,151,.5); }
.touch .brake { right: calc(var(--safe-r) + 18px + var(--tu) * 1.15 + 14px); background: rgba(255,59,48,.22); border: 2px solid rgba(255,59,48,.7); color: #ffb3ae; }
.touch .brake.down { background: rgba(255,59,48,.55); }
.touch.autogas .gas { display: none; }
.touch.autogas .brake { right: calc(var(--safe-r) + 18px); }
.touch .horn { right: calc(var(--safe-r) + 18px + var(--tu) * 1.15 + 14px + var(--tu) * .14); bottom: calc(var(--safe-b) + 18px + var(--tu) * 1.15 + 8px); width: calc(var(--tu) * .72); height: calc(var(--tu) * .72); background: rgba(255,159,28,.16); border: 2px solid rgba(255,159,28,.6); color: #ffd166; font-size: 11px; }
.touch .horn.down { background: rgba(255,159,28,.5); }
.touchmode .hud-bot { left: 50%; right: auto; transform: translateX(-50%); gap: 18px; }
.touchmode .hud-bot .damage { width: 110px; }
.touchmode .hud-bot .speedo .kmh { font-size: 38px; }
.touchmode .hud-bot .speedo .rpm { width: 110px; }
.touchmode .hud-btn { min-width: 44px; height: 44px; border-radius: 22px; }
