#city-hud { display: contents; }
#city-hud[hidden], #city-hud [hidden] { display: none !important; }
.drive-hud {
  --ch-ink: #fff1ce; --ch-gold: #ffc343; --ch-edge: #b99a58;
  --ch-panel: linear-gradient(145deg,rgba(40,36,30,.96),rgba(19,20,20,.93));
  --ch-gap: clamp(12px,1.4vw,24px); --ch-dial: clamp(144px,22vmin,210px);
}
#city-hud { font: 600 15px/1.22 Arial,sans-serif; color: var(--ch-ink); }
#city-hud button { cursor: pointer; touch-action: manipulation; pointer-events: auto; color: inherit; font: inherit; }
#city-hud button:focus-visible, #city-help summary:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
#city-status, #city-gauge, #city-drawer, #city-dock { position: absolute; }
#city-status { top: var(--ch-gap); left: var(--ch-gap); display: grid; justify-items: start; gap: 7px; }
.drive-hud.fps-on #city-status { top: max(16px,var(--ch-gap)); }
.drive-hud .hud-money, #city-hud :is(#hud-pause,#city-activities,#city-phone-toggle,#city-drawer),
#city-readings > #city-route, #city-street #street, #city-location > :is(#district,#note),
#city-context > :is(#taxi,#cargo,#heat,#evinfo,#drift) {
  border: 1px solid var(--ch-edge); border-radius: 10px; background: var(--ch-panel);
  color: var(--ch-ink); box-shadow: 0 2px 7px #0004;
}
.drive-hud .hud-money { display: flex; align-items: center; padding: 8px 13px; font: bold 18px/1 Arial,sans-serif; min-height: 36px; }
.city-icon { display: none; }
#city-hud .city-icon { display: inline-block; width: 24px; height: 24px; vertical-align: middle; color: var(--ch-gold); }
.drive-hud .hud-money .city-icon { margin-right: 6px; }
.drive-hud #goal { display: none !important; }
#city-status #clock { font: 600 14px/1 Arial,sans-serif; color: #e2d7be; padding-left: 9px; border-left: 1px solid #ffffff38; }
#city-tools { display: flex; align-items: center; gap: 5px; }
#city-hud #hud-pause { padding: 0; width: 45px; height: 44px; display: grid; place-items: center; }
#city-pause svg { display: none; }
#city-hud #hud-pause::before { content: ''; width: 11px; height: 14px; border-inline: 3px solid var(--ch-gold); box-sizing: border-box; }
.city-amber.touch #city-pause #hud-pause.tip { align-content: center; gap: 2px; }
.city-amber.touch #city-pause #hud-pause.tip::after { content: attr(data-l); font: 11px/1 Arial,sans-serif; }
#city-hud #city-activities { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; min-height: 44px; font-size: 15px; }
#city-tools > button svg { width: 20px; height: 20px; fill: none; stroke: var(--ch-gold); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
#city-count { position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid #411820; border-radius: 12px; background: #b52c39; color: white; font: bold 12px/1 Arial,sans-serif; pointer-events: none; }
#city-hud #city-activities[aria-expanded="true"] { border-color: var(--ch-gold); color: var(--ch-gold); }
.drive-hud #hud-map, .drive-hud #speedo { display: none; }
#city-dock { right: var(--ch-gap); top: var(--ch-gap); display: flex; align-items: flex-start; gap: 10px; }
#city-nav { display: grid; grid-template-columns: minmax(0,1fr); justify-items: end; gap: 5px; width: var(--ch-dial); }
/* На компьютере ширину колонки задают карта и подписанные кнопки под ней. */
.city-amber:not(.touch) #city-nav { position: relative; width: max-content; grid-template-columns: auto; }
.city-amber:not(.touch) #city-street { max-width: var(--ch-dial); }
#city-hud #city-map {
  position: relative; display: grid; place-items: center; flex: none;
  width: var(--ch-dial); height: var(--ch-dial); padding: 0; margin: 0; border-radius: 50%;
  border: 1px solid #332e25; background: #26261f; box-shadow: 0 3px 12px #0006;
}
#city-map #minimap { width: 100%; height: 100%; margin: 0; box-shadow: none; display: block; }
#city-map span { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); padding: 2px 8px; border: 1px solid var(--ch-edge); border-radius: 8px; font: 600 11px/1.2 Arial,sans-serif; background: #28261f; }
#city-gauge {
  --gauge-size: clamp(144px,22vmin,220px);
  right: var(--ch-gap); bottom: var(--ch-gap); width: var(--gauge-size); height: var(--gauge-size);
  border: 1px solid var(--ch-edge); border-radius: 50%; background: radial-gradient(at 50% 28%,#36332df2,#161717f2 78%);
  box-shadow: 0 3px 12px #0005; font-variant-numeric: tabular-nums;
}
#city-gauge > svg { width: 100%; height: 100%; fill: none; stroke: #625f54; stroke-width: 5; }
#city-gauge .city-ticks { stroke: #d2c6a6; stroke-dasharray: .45 3.7; }
#city-sweep { stroke: var(--ch-gold); stroke-linecap: round; }
#city-gauge .city-scale { stroke: none; fill: #ded6c2; text-anchor: middle; dominant-baseline: middle; font: 600 10px Arial,sans-serif; }
#city-speed { position: absolute; inset: 28% 0 auto; display: grid; justify-items: center; }
#city-speed b { font: bold calc(var(--gauge-size) * .27)/1 Arial,sans-serif; }
#city-speed small { color: var(--ch-gold); font-size: clamp(11px,1vw,15px); }
#city-readings, #city-context, #city-location { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
#city-readings { max-width: min(300px,29vw); align-items: flex-end; }
#city-context, #city-location { align-items: flex-end; }
#city-context, #city-location { max-width: 100%; }
#city-readings :is(#note,#district,#taxi,#drift,#cargo,#heat,#evinfo,#tj-bar,#fj-gauge) { position: static; text-align: left; max-width: 100%; min-width: 0; margin: 0; white-space: normal; overflow-wrap: anywhere; }
#city-context > :is(#taxi,#drift,#cargo):not(.on), #city-location > :not(.show) { display: none; }
#city-location :is(#district,#note), #city-context #drift { padding: 4px 9px; }
#city-street { max-width: 100%; }
#city-street #street { max-width: 100%; padding: 4px 8px; overflow-wrap: anywhere; text-align: right; }
#city-street #street:not(.show) { display: none; }
#city-street #street, #city-location #note, #city-location #district .d-n { font: bold 13px/1.2 Arial,sans-serif; }
#city-location #district .d-k { letter-spacing: 1px; }
#city-context :is(#taxi,#cargo) b { white-space: normal; color: var(--ch-gold); }
#city-context #evinfo { font-size: 14px; padding: 7px 10px; }
#city-context #heat { width: 220px; }
#city-context .hbar.esc i { background: var(--ch-gold); }
#city-context :is(#drift,#cargo) b, #city-context #taxi.rec b { color: var(--ch-gold); }
#city-context #fj-water i:not(.low) { background: var(--ch-gold); }
#city-context #drift b { font: bold 18px/1.1 Arial,sans-serif; }
#city-route { padding: 5px 9px; }
#city-route::before { content: '➜ '; color: var(--ch-gold); }
#city-charge { position: absolute; inset: auto 18% 13%; display: grid; gap: 4px; justify-items: center; color: #e8ddc3; font: bold 12px/1 Arial,sans-serif; }
#city-charge.active { color: var(--ch-gold); }
#city-charge span::before { content: 'ϟ '; font-weight: 900; }
#city-charge i { display: block; width: 100%; height: 6px; background: #5d5649; border-radius: 3px; overflow: hidden; }
#city-charge b { display: block; height: 100%; background: repeating-linear-gradient(90deg,var(--ch-gold) 0 5px,#423a2b 5px 6.875px); }
#city-charge.active b { background: repeating-linear-gradient(90deg,#fff3cf 0 5px,#5a4420 5px 6.875px); }
.drive-hud.onfoot #city-gauge { display: none; }
.drive-hud .hud-bl { left: var(--ch-gap); bottom: var(--ch-gap); }
.drive-hud #spk-btn { bottom: calc(var(--ch-gap) + 54px); }
.drive-hud .hud-br { top: auto; bottom: var(--ch-gap); right: calc(var(--ch-gap) + clamp(144px,22vmin,220px) + 8px); }
#city-hud #city-drawer { right: calc(var(--ch-gap) + var(--ch-dial) + 8px); top: var(--ch-gap); width: min(344px,48vw); max-height: calc(100% - 2 * var(--ch-gap)); display: flex; flex-direction: column; padding: 0 12px; background: linear-gradient(145deg,#38332b,#1d1e1c 68%); pointer-events: auto; z-index: 2; }
#city-nav > #city-drawer { right: calc(100% + 8px); top: 0; max-height: calc(100vh - 2 * var(--ch-gap)); }
#city-drawer header, #city-jobs { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 8px; }
#city-drawer h2 { margin: 0; font: bold 21px/1.1 Arial,sans-serif; }
#city-drawer button { min-height: 44px; border: 0; background: transparent; border-radius: 6px; }
#city-drawer button:hover { background: #ffc3431c; }
#city-drawer #city-close { padding: 0 4px; color: #e3d4b4; font-size: 13px; }
#city-today-link { display: none; }
#city-task-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 0 6px; }
#city-drawer h3 { margin: 0 0 4px; font: bold 12px/1.2 Arial,sans-serif; color: var(--ch-gold); }
#city-main-goal {
  position: relative; isolation: isolate; overflow: hidden;
  margin-bottom: 10px; padding: 8px 10px; border-left: 3px solid var(--ch-gold); border-radius: 0 7px 7px 0;
  background: linear-gradient(110deg,#56432a,#342e24 72%); box-shadow: inset 0 0 0 1px #ffc34338;
}
@media (prefers-reduced-motion: no-preference) {
  #city-drawer:not([hidden]) #city-main-goal:not([hidden])::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(110deg,transparent 12%,#ffd78012 34%,#ffe4a844 50%,#ffd78012 66%,transparent 88%);
    transform: translateX(100%); animation: city-goal-light 1.6s ease-in-out;
  }
}
@keyframes city-goal-light {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
#city-goal-title, #city-goal-detail { display: block; }
#city-goal-detail { margin-top: 3px; color: #e0d2b8; font-size: 13px; font-variant-numeric: tabular-nums; }
#city-drawer #city-goal-route { padding: 0 4px; color: var(--ch-gold); text-decoration: underline; }
#city-task-list { list-style: none; margin: 0; padding: 0; }
#city-task-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid #ffffff20; font-size: 14px; }
#city-task-list li:last-child { border-bottom: 0; }
#city-task-list b { flex: none; font-size: 12px; color: #eadbbd; font-variant-numeric: tabular-nums; white-space: nowrap; }
#city-task-list .done { color: #beb7a9; }
#city-task-list .done b { color: #b9d9a7; }
#city-jobs { border-top: 1px solid #a28a5966; gap: 4px; }
#city-jobs button { flex: 1; }
#city-journal .city-icon { margin-right: 4px; width: 20px; height: 20px; }
#city-extra:empty { display: none; }
#city-extra #coins::before { content: 'Находки · '; }
#city-extra #streak::before { content: 'Серия · '; }
#city-help { display: none; font-size: 13px; color: #e4d7b9; }
.drive-hud:not(.touch) #city-help { display: block; }
#city-help summary { cursor: pointer; padding: 6px; }
#city-help .hud-keys { position: static; transform: none; white-space: normal; font: 13px/1.55 Arial,sans-serif; color: inherit; padding: 6px; }
.city-amber #s-pause:not(.gfx) .modal-card { left: auto; right: 2%; transform: translateY(-50%); }
.drive-hud :is(#s-map .map-card,#s-pause .modal-card) { background: var(--ch-panel); border-color: var(--ch-edge); }
.drive-hud #s-map .mleg .rt { background: var(--ch-gold); }
.drive-hud:has(#s-map.on,#s-pause.on) :is(#hud,#touch) { visibility: hidden; }
.drive-hud.touch { --ch-gap: 7px; --ch-dial: clamp(86px,26vh,124px); --ch-nav: max(146px,var(--ch-dial)); }
.drive-hud.touch .hud-money { font-size: 15px; padding: 7px 9px; }
.drive-hud.touch #city-hud #city-activities { padding: 4px 9px; font-size: 14px; }
.drive-hud.touch #city-dock { gap: 6px; }
.drive-hud.touch #city-nav { width: var(--ch-nav); grid-template-columns: minmax(0,1fr); }
.drive-hud.touch #city-street #street { padding: 3px 6px; font-size: 12px; }
.drive-hud.touch #city-gauge {
  right: 14px; bottom: calc(21px + 134px * var(--tb)); width: 88px; height: auto; padding: 3px 7px 4px;
  border-radius: 8px; background: var(--ch-panel); box-shadow: 0 2px 6px #0004;
}
.drive-hud.touch.tramcab #city-gauge { bottom: calc(21px + 190px * var(--tb)); }
.drive-hud.touch #city-gauge > svg { display: none; }
.drive-hud.touch #city-speed { position: static; display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.drive-hud.touch #city-speed b { min-width: 3ch; text-align: right; font-size: 20px; line-height: 1; }
.drive-hud.touch #city-speed small { font: 600 11px/1 Arial,sans-serif; }
.drive-hud.touch #city-charge { position: static; grid-template-columns: 1fr 30px; align-items: center; justify-items: start; gap: 4px; margin-top: 2px; font-size: 10px; white-space: nowrap; }
.drive-hud.touch #city-charge span::before { content: none; }
.drive-hud.touch #city-charge i { height: 4px; }
.drive-hud.touch #city-charge b { background: var(--ch-gold); }
.drive-hud.touch #city-charge.active b { background: #fff2c5; }
@media (max-height: 325px) and (orientation: landscape) {
  .drive-hud.touch #city-gauge { right: calc(var(--ch-gap) + 146px + 6px); }
}
@media (max-height: 420px) and (orientation: landscape) {
  .drive-hud.touch.tramcab #city-gauge { right: calc(22px + 294px * var(--tb)); bottom: 14px; }
}
.drive-hud.touch #city-readings { max-width: min(32vw,240px); }
.drive-hud.touch #city-context :is(#taxi,#cargo) b { font-size: 13px; }
.drive-hud.touch #city-context :is(#taxi,#cargo) span, .drive-hud.touch #city-location #note { font-size: 12px; }
.drive-hud.touch #city-context #evinfo { font-size: 12px; }
.city-amber.touch #city-status { display: flex; flex-direction: column; align-items: flex-start; bottom: var(--ch-gap); }
.city-amber.touch #city-status > :not(#city-drawer) { flex: none; }
@media (max-width: 850px) {
  /* При вводе в чат верхнюю полоску занимает поле сообщения. */
  .city-amber.touch.chatting #city-tools { margin-top: 24px; }
}
.city-amber.touch #city-hud #city-drawer { position: static; min-height: 0; }
@media (max-height: 600px) and (orientation: landscape) {
  /* Под кнопками, между рулём и педалями. Вырез и выбранный масштаб управления входят в ширину. */
  .city-amber.touch #city-hud #city-drawer {
    --drive-side: calc(22px + 174px * var(--tb));
    margin-left: calc(var(--drive-side) - var(--ch-gap));
    width: min(344px,calc(100vw - var(--sal) - var(--sar) - var(--drive-side) - max(var(--drive-side),var(--ch-nav) + 2 * var(--ch-gap))));
  }
}
@media (max-height: 420px) and (orientation: landscape) {
  .city-amber.touch #city-today-link { display: block; padding: 0 4px; font-size: 13px; color: var(--ch-gold); text-decoration: underline; }
}
@media (max-height: 325px) and (orientation: landscape) {
  .city-amber.touch #city-main-goal:has(#city-goal-route:not([hidden])) {
    display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 5px; align-items: center; padding: 5px 7px;
  }
  .city-amber.touch #city-main-goal > :not(#city-goal-route) { grid-column: 1; }
  .city-amber.touch #city-drawer #city-goal-route { grid-column: 2; grid-row: 1 / span 3; max-width: 78px; }
  .city-amber.touch.city-browsing:not(.tramcab) #city-gauge { right: 14px; }
  .city-amber.touch.city-browsing #city-street #street { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 620px) and (max-height: 420px) and (orientation: landscape) {
  .city-amber.touch { --ch-nav: var(--ch-dial); }
  .city-amber.touch #city-readings { max-width: min(32vw,calc(100vw - var(--sal) - var(--sar) - 182px - var(--ch-nav) - 4 * var(--ch-gap))); }
  .city-amber.touch #city-hud #city-drawer { padding-inline: 7px; }
  .city-amber.touch #city-drawer h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .city-amber.touch #city-main-goal:has(#city-goal-route:not([hidden])) { display: block; }
  .city-amber.touch #city-drawer #city-goal-route { max-width: none; text-align: left; }
}
.drive-hud.touch #city-jobs button { font-size: 13px; }
.drive-hud.city-browsing #hud { z-index: 7; }
.drive-hud.touch .hud-bl { bottom: calc(24px + 156px * var(--tb)); }
.drive-hud.touch .hud-br { top: 100px; bottom: auto; right: auto; left: var(--ch-gap); }
.drive-hud.touch #stick { width: 156px; height: 156px; border-radius: 50%; background: #261f16a6; border-color: #decba9; }
.drive-hud.touch #knob { background: #e8d6b4a6; border-color: #fff2d8; }
.drive-hud.touch :is(.tb,.ta) { border-color: #baaa8f; background: #282620ce; color: #fff1d8; }
.drive-hud.touch :is(.tb.down,.ta.hot) { background: #8c6929; }
.drive-hud.touch .tb.gas { background: linear-gradient(#ffce60,#dfa022); border-color: #ffe5a2; color: #281e0c; }
.drive-hud.touch .tb.gas.fire { box-shadow: 0 0 10px #ffbf43a0; border-color: #fff7df; }
.drive-hud.touch .tz-n, .drive-hud.touch .tz-c { background: transparent; color: #664812; }
.drive-hud.touch .tb.gas.fire .tz-n { background: #ffedb4; color: #231a05; }
.drive-hud.touch #tb-tank { background: var(--ch-gold); }
.drive-hud.touch:not(.tramcab) .tbtns {
  --pedal-gap: 8px; --gas-width: 88px;
  grid-template-columns: 78px var(--gas-width); grid-template-rows: 62px 64px; gap: var(--pedal-gap);
}
.drive-hud.touch:not(.tramcab) .tbtns .tb {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; border-radius: 13px; padding: 0; font: bold 13px/1.1 Arial,sans-serif;
}
.drive-hud.touch:not(.tramcab) .tbtns .tb::before {
  content: ''; display: block; width: 30px; height: 30px; pointer-events: none;
  background: url('../assets/city-pedals.svg') 50% 50% / 300% 100% no-repeat;
}
.drive-hud.touch:not(.tramcab) .tb[data-t="hand"]::before { background-position-x: 100%; }
.drive-hud.touch:not(.tramcab) .tb[data-t="gas"]::before {
  position: absolute; width: 40px; height: 40px; top: 39%; background-position-x: 0;
}
.drive-hud.touch:not(.tramcab) #tb-tank { right: calc(var(--gas-width) + 2px); height: 100%; }
.drive-hud.touch:not(.tramcab) .tz-n { height: 32px; font: bold 12px/1 Arial,sans-serif; }
.drive-hud.touch:not(.tramcab) .tz-c { top: 27px; height: 14px; }
.drive-hud.touch:not(.tramcab) .tz-c svg { width: 18px; height: 11px; }
.drive-hud.touch:not(.tramcab) .tz-g { top: auto; bottom: 12%; font-size: 16px; }
.drive-hud.touch:not(.tramcab):not(.onfoot) #touch .tacts { right: calc(14px + 188px * var(--tb)); }
.city-amber #labels :is(.lbl.cafe,.lbl.motors,.lbl.style,.lbl.city,.lbl.home,.lbl.taxi,.lbl.tram,.lbl.job,.lbl.dsc,.lbl.mech,.lbl.fire:not(.hot,.wat),.lbl.dps:not(.hot,.ok),.lbl.amb:not(.hot,.ok)) {
  border: 1px solid #c1a368; border-radius: 8px; background: #23221eed; color: #fff2d6;
}

/* Та же раскладка приборов в охоте. Слева снаряжение и связь, справа навигация. */
#hunt-tools:empty, #hunt-track:empty, #hunt-pulse:empty { display: none; }
.drive-hud.hunt-hud {
  --ch-ink: #edf6f8; --ch-gold: #9fe5ed; --ch-edge: #73959d;
  --ch-panel: linear-gradient(145deg, #233137f5, #121c22f2);
}
.hunt-hud #city-tools, .hunt-hud #city-wallet .city-icon { display: none; }
#hunt-tools { display: flex; align-items: center; gap: 4px; pointer-events: auto; }
#city-hud #hunt-tools button {
  position: relative; inset: auto; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-width: 47px; width: auto; height: 46px; padding: 3px 6px;
  border: 1px solid var(--ch-edge); border-radius: 9px; background: var(--ch-panel); color: var(--ch-ink);
  font: 700 11px/1 Arial,sans-serif; transform: none;
}
#city-hud #hunt-tools button::after { content: attr(data-l); pointer-events: none; }
#hunt-tools :is(.gi, svg) { width: 21px; height: 21px; color: var(--ch-gold); }
#city-hud #hunt-tools #hud-bag::before, #hunt-tools #hud-pause .gi { display: none; }
#hunt-tools #hud-bag .gi { display: block; }
#city-hud #hunt-tools #hud-pause::before { margin: 3px 0; }
#city-hud #hunt-tools :is(#hud-mic,#ta-mic) { display: none; touch-action: none; }
.vo #city-hud #hunt-tools #hud-mic, .touch.vo.robot #city-hud #hunt-tools #ta-mic { display: inline-flex; }
#city-hud #hunt-tools :is(#hud-mic,#ta-mic).on { color: #fff; background: #863e38; border-color: #ffa99d; }
#city-hud #hunt-tools :is(#hud-mic,#ta-mic).on::after { content: 'В эфире'; }
#hunt-track { display: grid; grid-template-columns: minmax(0,1fr); justify-items: start; gap: 4px; max-width: min(305px,30vw); }
#hunt-track > * { max-width: 100%; margin: 0; }
#hunt-track #net-hud { order: 1; padding: 3px 7px; font: 12px/1.2 Arial,sans-serif; border-width: 1px; border-color: #526b75; }
.city-amber #hunt-track #net-hud { border-color: var(--ch-edge); }
.city-amber #hunt-track #net-hud b { color: var(--ch-gold); }
/* При первом ответе на пинг сетевой статус может стать выше. Кнопка паузы должна оставаться под пальцем. */
.city-amber.touch #hunt-track { order: 1; }
#hunt-track #bot-goal { background: var(--ch-panel); border: 1px solid var(--ch-edge); }
#hunt-track #bot-goal::after { inset: 0; border-radius: inherit; box-shadow: inset 0 0 6px #78d5ed80; }
@media (prefers-reduced-motion: reduce) { #hunt-track #bot-goal::after { animation: none; } }
#hunt-track #bot-goal .bg-bar i { background: var(--ch-gold); }
#hunt-track #rpg-sq { order: 2; }
#city-context :is(#hunt-card,#vital,#vo-hud) { position: static; max-width: 100%; margin: 0; }
#hunt-pulse #rpg-pu { position: static; margin: 0; padding: 3px 6px; font-size: 12px; border-radius: 6px; background: #1e2b30e6; }
#hunt-pulse #rpg-pu span { display: inline; }
#hunt-pulse .pu-b:not(:empty) { margin-left: 5px; }
#hunt-pulse:not(:has(.on)) { display: none; }
.hunt-hud #city-gauge { background: radial-gradient(at 50% 28%,#34454af2,#131d22f2 78%); }
.hunt-hud #city-nav { grid-template-columns: minmax(0,1fr); }
.hunt-hud #city-map span { background: #233037; }
.hunt-hud:not(.touch) #city-status { max-width: 33%; }
.hunt-hud #city-status .hud-money { max-width: 100%; flex-wrap: wrap; gap: 3px; }
.hunt-hud #city-status #clock { color: var(--ch-ink); }
.hunt-hud.touch #city-status { max-width: 40%; gap: 1px; }
.hunt-hud.touch #hunt-track { max-width: min(36vw,235px); }
.hunt-hud.touch #bot-goal { gap: 4px; padding: 3px 6px; min-height: 44px; }
.hunt-hud.touch #bot-goal b { font-size: 12px; letter-spacing: 0; }
.hunt-hud.touch #bot-goal small { font-size: 10px; }
.hunt-hud.touch #hunt-track #net-hud { font-size: 10px; }
.hunt-hud.touch #city-gauge { background: var(--ch-panel); }
.hunt-hud.touch :is(.tb,.ta) { border-color: #8ca2a6; }
.hunt-hud.touch .tb.gas { background: linear-gradient(#abdfe3,#68abb4); border-color: #d0f3f4; color: #142b2e; }
.hunt-hud.touch .tz-n, .hunt-hud.touch .tz-c { color: #21434a; }
.hunt-hud.touch #city-context #hunt-card { width: auto; font-size: 11px; }
.hunt-hud:has(#s-rpg.on) :is(#hud,#touch) { visibility: hidden; }
/* У сводки своё место между снаряжением и картой. В роботе верхняя середина занята прочностью и расходниками. */
.hunt-hud.touch #city-dock { left: max(216px,40%); }
.hunt-hud.touch #city-readings { flex: 1; max-width: none; }
.hunt-hud.touch #city-nav { flex: none; width: var(--ch-dial); }
.hunt-hud.touch #city-street { width: max-content; max-width: 128px; }
.hunt-hud #city-location #quip { padding: 4px 8px; border-radius: 7px; font: 600 13px/1.2 Arial,sans-serif; }
.hunt-hud #city-readings:has(#hunt-card.on,#note.show) #quip { display: none; }
.hunt-hud.touch #city-status {
  bottom: calc(18px + 156px * var(--tb)); display: flex; flex-direction: column; align-items: flex-start;
}
.hunt-hud.touch :is(#city-wallet,#hunt-tools) { flex: none; }
.hunt-hud.touch #hunt-track { width: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; pointer-events: auto; }
.hunt-hud.touch #hunt-track #bot-goal { max-width: 100%; }
.hunt-glyph { display: none; pointer-events: none; }
.hunt-hud.touch .hunt-fallback { display: none; }
.hunt-hud.touch #city-wallet .hud-money { min-height: 27px; padding: 3px 7px; border-radius: 8px; font-size: 13px; }
.hunt-hud.touch #city-status #clock { margin-left: 3px; padding-left: 5px; font-size: 11px; }
.hunt-hud.touch #city-status #money.gem-line { gap: 4px; font-size: 11px; }
/* Плашка ниже зоны касания. У каждой кнопки есть свои 44 × 44, в том числе между рисунками. */
.hunt-hud.touch #hunt-tools { position: relative; isolation: isolate; gap: 0; }
.hunt-hud.touch #hunt-tools::before {
  content: ''; position: absolute; z-index: -1; inset: 4px 0; pointer-events: none;
  border: 1px solid var(--ch-edge); border-radius: 8px; background: var(--ch-panel);
}
.hunt-hud.touch #city-hud #hunt-tools button {
  min-width: 44px; width: 44px; height: 44px; gap: 1px; padding: 0; box-shadow: none;
  border: 0; background: none; color: #fff1d8; font: bold 10px/1 Arial,sans-serif; white-space: nowrap;
}
.hunt-hud.touch #city-hud #hunt-tools button:active { color: #ffe19a; }
.hunt-hud.touch #city-hud #hunt-tools :is(#hud-mic,#ta-mic).on {
  isolation: isolate; color: #fff; background: none;
}
.hunt-hud.touch #hunt-tools :is(#hud-mic,#ta-mic).on::before {
  content: ''; position: absolute; inset: 4px 1px; z-index: -1; border-radius: 5px; pointer-events: none;
  background: #863e38; box-shadow: 0 0 0 calc(1px + 3px * var(--vl,0)) #ff715e80;
}
.hunt-hud.touch #city-hud #hunt-tools #hud-pause::before,
.hunt-hud.touch #city-hud #hunt-tools button svg:not(.hunt-glyph) { display: none; }
.hunt-hud.touch #city-hud #hunt-tools .hunt-glyph { display: block; width: 19px; height: 19px; }
.hunt-hud.touch #hunt-track { gap: 2px; }
.hunt-hud.touch #hunt-track #net-hud { padding: 2px 5px; }
.hunt-hud.touch #bot-goal .hunt-glyph { display: block; flex: none; width: 18px; height: 18px; }
.hunt-hud.touch #bot-goal .bg-bar { margin-top: 0; height: 3px; }
.hunt-hud.touch :is(#ta-chat,#ta-car) .hunt-glyph { width: 27px; height: 27px; flex: none; }
.hunt-hud.touch #ta-chat .hunt-glyph,
.hunt-hud.touch:not(.onfoot,.robot) #ta-car .hunt-exit,
.hunt-hud.touch.onfoot:not(.robot) #ta-car .hunt-enter,
.hunt-hud.touch.robot #ta-car .hunt-car { display: block; }
.hunt-hud.touch.robot #ta-chat .hunt-glyph { width: 18px; height: 18px; }
.hunt-hud.touch.robot .hud-btns #ta-car { min-width: calc(54px / var(--tb)); min-height: calc(44px / var(--tb)); border-color: var(--ch-edge); }
.hunt-hud.touch:is(.robot,:has(#vital.on)) #city-readings { padding-top: 72px; }
@media (max-height: 325px) and (orientation: landscape) {
  .hunt-hud.touch #city-gauge { top: var(--ch-gap); bottom: auto; right: calc(var(--ch-gap) + var(--ch-dial) + 6px); }
  .hunt-hud.touch:not(.onfoot) #city-readings { padding-top: 45px; }
}
