/* Rounded game panels retain the local pixel font, tactile controls and their tested hit areas. */
button {
  border-radius: 10px;
}
.start-menu,
.dialog-card,
#map-panel {
  border-radius: 18px;
}
.start-menu::before,
.dialog-card::before {
  display: none;
}
.hud-top,
.job,
#pager,
#toast,
#target-label,
#vehicle-info,
.empty-jobs,
.edition-stamp,
#return-counter,
#gear-selector,
#gear-selector button {
  border-radius: 12px;
}
#pager > div {
  border-radius: 7px;
}
#map-panel canvas {
  border-radius: 10px;
}
.ui-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  vertical-align: middle;
  pointer-events: none;
}
button > .ui-icon {
  display: inline-block;
  margin-right: 7px;
}
#dialog-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
#dialog-buttons button > .ui-icon {
  margin: 0;
  width: 20px;
  height: 20px;
}
.menu-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.menu-tools button > .ui-icon {
  margin: 0;
  width: 18px;
  height: 18px;
}
.menu-cursor {
  opacity: 1;
  color: var(--gold);
}
.menu-cursor .ui-icon {
  width: 26px;
  height: 26px;
}
#record {
  display: flex;
  align-items: center;
  gap: 7px;
}
#record .ui-icon {
  width: 17px;
  height: 17px;
  color: var(--gold);
}
.title-lockup {
  width: max-content;
  max-width: calc(100vw - 36px);
  padding: 18px 22px;
  background: #19182bf5;
  border: 2px solid #ebc58a;
  border-radius: 18px;
  box-shadow:
    0 5px 0 #111222,
    inset 0 0 0 3px #514055;
}
.tagline {
  font-size: 18px;
  line-height: 1.5;
  color: #fff5d2;
  text-shadow: 2px 2px #111222;
}
h1 {
  color: #ffebae;
}
.hud-top {
  height: 58px;
  padding: 5px 10px;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 70px;
}
.brand span {
  font-size: 12px;
}
.mode-badge {
  display: flex;
  color: var(--jade);
}
.mode-badge .ui-icon {
  width: 24px;
  height: 24px;
}
.clock {
  min-width: 65px;
}
.money {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 95px;
  padding: 0 10px;
}
.money small {
  display: inline-flex;
  color: var(--gold);
}
.money small .ui-icon {
  width: 20px;
  height: 20px;
}
.money b {
  white-space: nowrap;
}
.hud-actions button > .ui-icon {
  margin: 0;
  width: 23px;
  height: 23px;
}
#jobs,
#pager {
  top: 78px;
}
#toast {
  top: 78px;
}
.job {
  min-height: 65px;
}
.job .tracking {
  float: right;
  margin-top: -16px;
  font-size: 10px;
}
.swatch {
  border-radius: 4px;
  width: 19px;
  height: 10px;
  box-shadow:
    -1px 2px #543746,
    1px -1px #fff8d580;
}
.job::before {
  border-radius: 2px;
}
.empty-jobs {
  width: 46px;
  text-align: center;
  font-size: 18px;
}
#vehicle-info {
  border: 1px solid #9b8273;
  border-left: 3px solid var(--jade);
}
.interact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.interact > .ui-icon {
  width: 21px;
  height: 21px;
  margin: 0;
}
.interact kbd {
  margin-left: 4px;
}
#return-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
#return-counter .ui-icon {
  width: 19px;
  height: 19px;
  margin: 0;
}
.pedal-label {
  font-size: 12px;
}

@media (orientation: portrait) and (max-width: 700px) {
  .title-lockup {
    left: 24px;
    right: 24px;
    top: max(14px, env(safe-area-inset-top));
    width: auto;
    max-width: none;
    padding: 12px 9px;
  }
  .title-lockup .edition-stamp {
    font-size: 12px;
    margin-bottom: 7px;
    padding: 4px 7px;
  }
  .title-lockup h1 {
    font-size: 60px;
  }
  .title-lockup h1 span {
    font-size: 18px;
  }
  .title-lockup .tagline {
    font-size: 12px;
    margin-top: 7px;
  }
  .hud-top {
    left: 8px;
    right: 8px;
    top: max(8px, env(safe-area-inset-top));
    height: 58px;
    gap: 7px;
    padding: 5px 7px;
  }
  .brand {
    min-width: 60px;
    gap: 4px;
  }
  .clock {
    min-width: 55px;
    margin: 0;
  }
  .clock small {
    font-size: 10px;
  }
  .clock b {
    font-size: 24px;
  }
  .money {
    min-width: 64px;
    padding: 0 5px;
    gap: 3px;
  }
  .money b {
    font-size: 18px;
  }
  .money small .ui-icon {
    width: 17px;
    height: 17px;
  }
  .hud-actions {
    gap: 4px;
    flex-direction: row;
  }
  .hud-actions button {
    min-width: 44px;
    width: 44px;
    min-height: 44px;
    height: 44px;
    padding: 4px;
  }
  .hud-actions button > .ui-icon {
    width: 21px;
    height: 21px;
  }
  #jobs,
  #pager {
    top: 74px;
  }
  #toast {
    top: 74px;
    right: 8px;
    left: auto;
    transform: none;
    max-width: min(190px, calc(100vw - 174px));
    padding: 7px 9px;
  }
  #hud[data-pager='active'] #toast {
    top: 149px;
  }
  #pager {
    width: 150px;
    padding: 7px;
    gap: 5px;
  }
  .pager-label {
    display: none;
  }
  #pager > div {
    width: 100%;
  }
  #interact {
    font-size: 12px;
  }
}
@media (max-width: 350px) and (orientation: portrait) {
  .title-lockup {
    left: 18px;
    right: 18px;
  }
  .title-lockup h1 {
    font-size: 48px;
  }
  .brand {
    min-width: 26px;
  }
  .brand #night {
    display: none;
  }
  .hud-top {
    gap: 6px;
  }
  #pager {
    width: 141px;
  }
}
@media (max-height: 550px) and (orientation: landscape) {
  .title-lockup {
    padding: 10px 16px;
    top: max(12px, env(safe-area-inset-top));
  }
  .title-lockup h1 {
    font-size: 48px;
  }
  .title-lockup h1 span {
    font-size: 18px;
  }
  .hud-top {
    height: 52px;
  }
  #jobs,
  #pager,
  #toast {
    top: 72px;
  }
}
