/* A game surface must never turn a sustained pedal into a browser text-selection gesture. */
html,
body,
button,
canvas,
img,
svg,
#menu,
#hud,
#dialog,
#menu *,
#hud *,
#dialog * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}
#controls,
#controls * {
  touch-action: none;
}
#destinations {
  position: absolute;
  top: 78px;
  left: max(12px, env(safe-area-inset-left));
  width: 177px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100dvh - 290px);
  pointer-events: auto;
}
#destinations #return-counter {
  position: relative;
  inset: auto;
  transform: none;
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 10px 8px;
  flex-shrink: 0;
  justify-content: flex-start;
  color: #443347;
  background: #f4ddb2;
  border: 3px solid #927465;
  border-left: 6px solid #a07b69;
  box-shadow: 3px 3px #171326;
  font-size: 12px;
}
#destinations #return-counter.selected {
  border-color: #efb85e;
  border-left-color: #c37b54;
}
#destinations #return-counter span {
  margin: 0;
}
#destinations #return-counter .ui-icon {
  width: 20px;
  height: 20px;
  margin-right: 4px;
}
#destinations #return-counter::before {
  display: none;
}
#destinations #jobs {
  position: static;
  inset: auto;
  width: 100%;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 4px;
}
#destinations .empty-jobs {
  display: none;
}
@media (orientation: portrait) and (max-width: 700px) {
  #destinations {
    top: 74px;
    left: 9px;
    width: 145px;
    max-height: 35dvh;
  }
  #destinations #return-counter {
    min-height: 48px;
    padding: 7px;
  }
}
@media (max-height: 550px) and (orientation: landscape) {
  #destinations {
    top: 72px;
    max-height: calc(100dvh - 235px);
  }
  #destinations #return-counter {
    min-height: 44px;
    padding: 6px 8px;
  }
}
/* Destination tickets may scroll on touch; the steering and pedal surface still owns its gestures. */
html,
body {
  touch-action: pan-y;
}
#world,
#controls,
#controls * {
  touch-action: none;
}
#destinations #jobs {
  touch-action: pan-y;
  overscroll-behavior: contain;
}
#destinations #return-counter {
  display: grid;
  grid-template-columns: 22px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 5px;
  text-align: left;
}
#destinations #return-counter .ui-icon {
  grid-column: 1;
  grid-row: 1 / 3;
}
#destinations #return-counter span,
.destination-distance {
  grid-column: 2;
}
#destinations .destination-distance {
  display: block;
  font-size: 10px;
  color: #71515c;
  margin: 0;
}
#destinations #jobs .tracking {
  float: none;
  margin: 4px 0 0;
  font-size: 12px;
}
