:root {
  --navy: #152330;
  --paper: #e8d6b5;
  --muted: #91a3a7;
  --gold: #e6bb79;
  --line: #6b7d7f55;
  --green: #8bb8a9;
  color-scheme: dark;
  font-family: ui-monospace, 'SFMono-Regular', 'PingFang HK', 'Noto Sans TC', monospace;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--navy);
  color: var(--paper);
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: auto;
}
button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
.hidden {
  display: none !important;
}
#world {
  touch-action: none;
  display: block;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
#vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 30%, #07101a55);
}
.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #0b172ca8;
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: max(26px, env(safe-area-inset-top)) max(32px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom)) max(32px, env(safe-area-inset-left));
}
#menu {
  background: linear-gradient(90deg, #101e30f5 0%, #101e30dd 34%, #101e3040 75%);
  backdrop-filter: none;
  justify-content: flex-start;
}
.menu-rail {
  position: absolute;
  top: max(26px, env(safe-area-inset-top));
  left: 40px;
  right: 40px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 2px;
  color: #acb4ad;
  border-top: 1px solid #899da24a;
  padding-top: 12px;
}
.title-card {
  width: 480px;
  max-width: 100%;
  margin-left: 5vw;
  padding-top: 30px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #a7b4b4;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #c49d6b;
  box-shadow: 0 0 13px #edbb7c;
}
h1 {
  font-size: 104px;
  line-height: 1.15;
  letter-spacing: 7px;
  font-weight: 900;
  margin: 18px 0 12px;
  color: #f1d7a8;
  text-shadow:
    4px 4px 0 #483d40,
    -1px -1px 0 #f5dfb4;
}
h1 span {
  display: block;
  font-size: 18px;
  letter-spacing: 14px;
  margin-top: 10px;
  text-shadow: none;
  font-weight: 400;
  color: #b5b2a1;
}
.tagline {
  font-size: 17px;
  letter-spacing: 3px;
  margin: 25px 0 30px;
  color: #b9c3ba;
}
.ticket-line {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
}
.mode-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.mode {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border: 1px solid #82918b66;
  text-align: left;
  padding: 18px 15px;
  transition: background 0.2s;
  min-height: 150px;
  background: #20314295;
}
.mode:hover {
  background: #354349;
}
.mode.primary {
  background: #dcc296;
  color: #192d3a;
  border-color: #dcc296;
}
.mode.primary:hover {
  background: #efdab4;
}
.mode small {
  font-size: 9px;
  letter-spacing: 1px;
  display: block;
  opacity: 0.65;
}
.mode strong {
  display: block;
  font-size: 23px;
  margin: 13px 0 10px;
  letter-spacing: 2px;
}
.mode em {
  display: block;
  font-size: 10px;
  line-height: 1.9;
  font-style: normal;
  opacity: 0.75;
  max-width: 165px;
}
.mode b {
  font-size: 20px;
}
.menu-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  font-size: 10px;
  color: var(--muted);
}
.menu-bottom button {
  padding: 0;
  color: var(--paper);
}
.menu-foot {
  position: absolute;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 40px;
  right: 40px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1px;
  color: #85999d;
}
.resume {
  width: 100%;
  border: 1px dashed #aa996a88;
  margin-top: 12px;
  padding: 10px;
  font-size: 12px;
}
#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom)
    env(safe-area-inset-left);
}
#hud button,
#hud aside {
  pointer-events: auto;
}
.hud-top {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 22px;
  background: linear-gradient(#0f1e30ed, #0f1e3090, transparent);
}
.brand b {
  font-size: 20px;
  letter-spacing: 4px;
}
.brand span {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
}
.clock {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  padding-left: 22px;
  gap: 2px;
}
.clock small {
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--green);
}
.clock b {
  font-size: 26px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.money {
  margin-left: auto;
  text-align: right;
}
.money small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 3px;
}
.money b {
  font-size: 24px;
  font-weight: 400;
}
.hud-actions {
  display: flex;
  gap: 8px;
}
.hud-actions button {
  background: #1e3144d9;
  border: 1px solid #798e8a66;
  padding: 9px;
  font-size: 12px;
  min-width: 38px;
}
#jobs {
  position: absolute;
  top: calc(91px + env(safe-area-inset-top));
  left: calc(22px + env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 168px;
}
.job {
  background: #12263ae8;
  border: 1px solid #69818444;
  border-left: 3px solid #618b8b;
  padding: 8px 9px;
  text-align: left;
  font-size: 11px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px;
}
.job.selected {
  border-color: #d6b87d;
}
.job.requested {
  border-left-color: #e7b276;
}
.job .swatch {
  display: inline-block;
  width: 13px;
  height: 6px;
  margin-right: 7px;
}
.job small {
  color: #94a8aa;
  font-size: 9px;
  grid-column: 1/-1;
}
.job em {
  color: #d7bc8a;
  font-size: 9px;
  font-style: normal;
}
.job .urgent {
  color: #f19d84;
}
.empty-jobs {
  font-size: 10px;
  color: #9bafad;
  background: #12263ac9;
  padding: 12px;
  line-height: 1.8;
}
#toast {
  position: absolute;
  left: 50%;
  top: calc(83px + env(safe-area-inset-top));
  transform: translateX(-50%);
  max-width: 65vw;
  text-align: center;
  background: #102437eb;
  border: 1px solid #8f9a7880;
  padding: 10px 18px;
  font-size: 12px;
  transition: opacity 0.25s;
  line-height: 1.5;
}
#toast:empty {
  opacity: 0;
}
#money-change {
  position: absolute;
  right: 145px;
  top: 82px;
  font-size: 18px;
  color: #b4cfb8;
}
#pager {
  position: absolute;
  right: 22px;
  top: 110px;
  width: 184px;
  border: 3px solid #414b50;
  border-radius: 7px;
  box-shadow: 3px 4px 0 #0c1825;
  background: #26343c;
  padding: 9px;
  display: flex;
  gap: 8px;
  align-items: center;
  transform: rotate(-2deg);
}
.pager-label {
  font-size: 5px;
  line-height: 1.7;
  color: #9ea7a3;
  letter-spacing: 0.5px;
}
#pager div {
  background: #a9b39a;
  color: #263b37;
  padding: 4px 7px;
  min-width: 97px;
}
#pager small {
  display: block;
  font-size: 6px;
  letter-spacing: 1px;
}
#pager b {
  font-size: 16px;
  letter-spacing: 1px;
}
#pager i {
  font-size: 6px;
  color: #dba568;
}
#vehicle-info {
  position: absolute;
  bottom: 130px;
  left: 26px;
  color: #d0c8a6;
  font-size: 12px;
  text-shadow: 1px 2px #142133;
}
#vehicle-info b {
  display: block;
  color: #7f9fa5;
  font-size: 9px;
  margin-top: 4px;
  letter-spacing: 2px;
}
#controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#controls button,
#joystick {
  pointer-events: auto;
}
.driving-controls {
  display: flex;
  gap: 10px;
}
#steering {
  position: absolute;
  bottom: 36px;
  left: 26px;
}
#steering button {
  width: 72px;
  height: 70px;
  background: #1d3448d9;
  border: 1px solid #839da688;
  border-radius: 5px;
  font-size: 25px;
}
#joystick {
  position: absolute;
  bottom: 28px;
  left: 40px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid #96b6ad70;
  background: #1b344d99;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}
#joystick:before {
  content: '';
  width: 58px;
  height: 58px;
  border: 1px dashed #b1c5ba33;
  border-radius: 50%;
}
#joystick span {
  position: absolute;
  width: 38px;
  height: 38px;
  border: 1px solid #adbeaf88;
  border-radius: 50%;
  background: #667f8588;
}
#joystick i {
  position: absolute;
  bottom: -17px;
  font-style: normal;
  font-size: 9px;
  color: #8ea4a6;
}
.right-controls {
  position: absolute;
  right: 26px;
  bottom: 36px;
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-direction: column;
}
.interact {
  min-height: 45px;
  min-width: 150px;
  background: #d4be96ed !important;
  color: #192b38 !important;
  font-size: 12px;
  border: 1px solid #ead8b7 !important;
  padding: 10px 15px;
}
.interact kbd {
  margin-left: 15px;
  font-size: 9px;
  border: 1px solid #293e3f66;
  padding: 2px 4px;
}
#pedals button {
  width: 76px;
  height: 78px;
  border: 1px solid #97abac88;
  border-radius: 5px;
  font-size: 16px;
  line-height: 1.5;
}
#pedals small {
  display: block;
  font-size: 10px;
}
#pedals .gas {
  background: #789c8fe6;
  color: #152e35;
}
#pedals .reverse {
  background: #354459e3;
  color: #d6c5a2;
}
#controls button.pressed {
  background: #c9c6a6 !important;
  color: #172d38;
  transform: translateY(2px);
}
#desktop-help {
  position: absolute;
  bottom: 10px;
  text-align: center;
  left: 200px;
  right: 210px;
  font-size: 9px;
  color: #839a9f;
}
#target-label {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 1px;
  color: #d5c5a0;
}
#map-panel {
  position: absolute;
  right: 22px;
  top: 90px;
  background: #112538f5;
  border: 1px solid #8b9c8d88;
  padding: 12px;
  width: 316px;
  z-index: 8;
}
#map-panel > div {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 10px;
}
#minimap {
  width: 288px;
  height: 216px;
  image-rendering: pixelated;
}
#map-panel p {
  font-size: 8px;
  color: var(--muted);
  line-height: 1.6;
  margin: 8px 0 0;
}
.dialog-card {
  background: #152a3c;
  border: 1px solid #98a38c77;
  box-shadow: 8px 8px 0 #08172877;
  padding: 30px;
  max-width: 560px;
  width: 100%;
  max-height: 90dvh;
  overflow: auto;
  touch-action: pan-y;
}
h2 {
  font-size: 28px;
  letter-spacing: 3px;
  margin: 15px 0 24px;
}
#dialog-body {
  font-size: 12px;
  line-height: 1.9;
  color: #b8c7bf;
}
#dialog-body p {
  margin: 10px 0;
}
#dialog-body b {
  color: #e2c79a;
}
#dialog-body dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  margin: 10px 0;
}
#dialog-body dt,
#dialog-body dd {
  margin: 0;
}
#dialog-body dd {
  font-variant-numeric: tabular-nums;
  color: #e3c698;
}
#dialog-body .total {
  border-top: 1px solid #81958e44;
  padding-top: 10px;
  color: #ebd2aa;
}
#dialog-buttons {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
#dialog-buttons button {
  padding: 12px 18px;
  border: 1px solid #7d999188;
  font-size: 12px;
}
#dialog-buttons button:first-child {
  background: #d3bd94;
  color: #17303b;
}
#rotate {
  display: none;
  position: fixed;
  inset: 0;
  background: #11263bf8;
  z-index: 50;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  text-align: center;
}
#rotate span {
  font-size: 70px;
  color: var(--gold);
}
#rotate b {
  font-size: 22px;
  letter-spacing: 2px;
  margin-top: 20px;
}
#rotate p {
  font-size: 12px;
  color: var(--muted);
}
#rotate button {
  margin-top: 30px;
  border-bottom: 1px solid var(--muted);
  padding-bottom: 8px;
  font-size: 11px;
}
@media (orientation: portrait) and (max-width: 700px) {
  body:not(.portrait-ok) #rotate {
    display: flex;
  }
  .title-card {
    margin-left: 0;
  }
  h1 {
    font-size: 80px;
  }
  .menu-rail,
  .menu-foot {
    left: 24px;
    right: 24px;
    font-size: 8px;
  }
  .mode strong {
    font-size: 20px;
  }
  .mode {
    padding: 13px 10px;
  }
  .tagline {
    font-size: 14px;
  }
  .hud-top {
    gap: 12px;
    padding: 12px;
  }
  .brand b {
    font-size: 17px;
  }
  .money b {
    font-size: 20px;
  }
  .clock {
    padding-left: 12px;
  }
  .clock b {
    font-size: 22px;
  }
  .hud-actions {
    gap: 4px;
  }
  .hud-actions button {
    padding: 7px;
    font-size: 10px;
    min-width: 30px;
  }
  #jobs {
    left: 12px;
    width: 140px;
    top: 82px;
  }
  .job {
    font-size: 10px;
    padding: 6px;
  }
  #toast {
    top: 70px;
    font-size: 10px;
    max-width: 84vw;
  }
  #steering {
    left: 12px;
  }
  #steering button {
    width: 54px;
    height: 62px;
  }
  .right-controls {
    right: 12px;
  }
  #pedals button {
    width: 61px;
    height: 67px;
  }
  #vehicle-info {
    left: 15px;
  }
  #pager {
    top: 255px;
    width: 170px;
  }
  #map-panel {
    width: 300px;
    right: 10px;
  }
  #desktop-help {
    display: none;
  }
  .interact {
    min-width: 135px;
  }
}
@media (max-height: 550px) and (orientation: landscape) {
  .overlay {
    padding: 18px 28px;
  }
  .menu-rail {
    top: 12px;
    font-size: 8px;
    padding-top: 7px;
    left: 28px;
    right: 28px;
  }
  .title-card {
    width: 500px;
    margin-left: 3vw;
    padding-top: 10px;
  }
  h1 {
    font-size: 66px;
    margin: 14px 0 6px;
    letter-spacing: 6px;
  }
  h1 span {
    font-size: 12px;
    letter-spacing: 11px;
    margin-top: 2px;
  }
  .eyebrow {
    font-size: 8px;
    margin: 0;
  }
  .tagline {
    font-size: 12px;
    margin: 13px 0 14px;
  }
  .ticket-line {
    padding: 8px 0;
    font-size: 8px;
  }
  .mode-buttons {
    margin-top: 12px;
    gap: 10px;
  }
  .mode {
    padding: 11px 13px;
    min-height: 95px;
  }
  .mode small {
    font-size: 7px;
  }
  .mode strong {
    font-size: 19px;
    margin: 7px 0 6px;
  }
  .mode em {
    font-size: 8px;
    max-width: 185px;
    line-height: 1.5;
  }
  .menu-bottom {
    margin-top: 12px;
    font-size: 9px;
  }
  .menu-foot {
    bottom: 12px;
    font-size: 7px;
    left: 28px;
    right: 28px;
  }
  .resume {
    margin-top: 7px;
    padding: 7px;
    font-size: 10px;
  }
  .hud-top {
    padding: 9px 18px;
    gap: 18px;
  }
  .brand b {
    font-size: 17px;
  }
  .brand span {
    font-size: 8px;
    margin-top: 3px;
  }
  .clock b {
    font-size: 23px;
  }
  .clock small {
    font-size: 8px;
  }
  .clock {
    padding-left: 17px;
  }
  .money b {
    font-size: 22px;
  }
  .hud-actions button {
    padding: 7px;
    font-size: 11px;
  }
  #jobs {
    top: 73px;
    left: 18px;
    width: 148px;
    gap: 3px;
  }
  .job {
    padding: 5px 7px;
    font-size: 10px;
    gap: 3px;
  }
  .job small {
    font-size: 8px;
  }
  #toast {
    top: 68px;
    font-size: 10px;
    padding: 7px 12px;
    max-width: 52vw;
  }
  #steering {
    bottom: 21px;
    left: 24px;
  }
  #steering button {
    height: 57px;
    width: 60px;
    font-size: 21px;
  }
  .right-controls {
    bottom: 21px;
    right: 24px;
    gap: 7px;
  }
  #pedals button {
    height: 60px;
    width: 66px;
    font-size: 14px;
  }
  .interact {
    min-height: 34px;
    min-width: 142px;
    padding: 7px 11px;
    font-size: 11px;
  }
  #joystick {
    bottom: 21px;
    width: 80px;
    height: 80px;
    left: 38px;
  }
  #vehicle-info {
    bottom: 112px;
    left: 25px;
    font-size: 10px;
  }
  #desktop-help {
    bottom: 7px;
    font-size: 7px;
    left: 180px;
    right: 180px;
  }
  #target-label {
    bottom: 23px;
    font-size: 9px;
  }
  #pager {
    top: 78px;
    right: 18px;
  }
  #map-panel {
    top: 67px;
    right: 18px;
    transform-origin: top right;
    transform: scale(0.83);
  }
  .dialog-card {
    padding: 20px;
    max-height: 88dvh;
  }
  h2 {
    font-size: 24px;
    margin: 10px 0 15px;
  }
  #dialog-buttons {
    margin-top: 15px;
  }
  #dialog-body {
    font-size: 11px;
  }
  #money-change {
    right: 120px;
    top: 64px;
  }
}
@media (hover: none) {
  #desktop-help {
    display: none;
  }
  .interact kbd {
    display: none;
  }
}
@media (max-height: 550px) and (orientation: landscape) {
  #menu .title-card {
    display: grid;
    grid-template-columns: 40% 60%;
    grid-template-areas: 'eye ticket' 'title modes' 'tagline modes' 'tagline resume' 'tagline bottom';
    gap: 10px 22px;
    width: min(100%, 1000px);
    margin-left: 0;
    padding: 26px 22px 0 4px;
  }
  #menu .title-card > .eyebrow {
    grid-area: eye;
    align-self: end;
    font-size: 7px;
    letter-spacing: 1px;
  }
  #menu h1 {
    grid-area: title;
    font-size: 72px;
    margin: 0;
    letter-spacing: 4px;
    line-height: 1.15;
  }
  #menu h1 span {
    font-size: 11px;
    letter-spacing: 10px;
    margin-top: 10px;
  }
  #menu .tagline {
    grid-area: tagline;
    font-size: 11px;
    line-height: 2;
    letter-spacing: 1px;
    margin: 0;
  }
  #menu .ticket-line {
    grid-area: ticket;
    align-self: end;
    font-size: 8px;
  }
  #menu .mode-buttons {
    grid-area: modes;
    margin: 0;
    gap: 9px;
  }
  #menu .mode {
    min-height: 125px;
    padding: 14px 11px;
  }
  #menu .mode strong {
    font-size: 19px;
    margin: 12px 0 10px;
  }
  #menu .mode em {
    font-size: 9px;
    line-height: 1.7;
  }
  #menu .resume {
    grid-area: resume;
    margin: 0;
    font-size: 9px;
    padding: 7px;
  }
  #menu .menu-bottom {
    grid-area: bottom;
    margin: 0;
    font-size: 8px;
  }
}
/* v0.2: lighter dusk colours and crisp, framed arcade controls. */
:root {
  --navy: #35475f;
  --paper: #fff0cb;
  --muted: #c0cdbf;
  --gold: #f0cb8e;
  --green: #b4d4b0;
}
#vignette {
  background: none;
}
#menu {
  background: linear-gradient(90deg, #33445fe8 0%, #33445fc4 34%, #475c7625 78%);
}
.hud-top {
  background: linear-gradient(#334b66f0, #405a7080, transparent);
}
.job {
  background: #3c5875eb;
  border-color: #d4cda080;
  border-left-color: #bdd5b2;
  box-shadow: 2px 2px 0 #40526b66;
}
.job.selected {
  border-color: #ffdf9c;
}
.job small {
  color: #dfdfc5;
}
.job em {
  color: #ffe0a6;
}
#toast {
  background: #3d5875ed;
  border: 2px solid #e1cea3;
  box-shadow: 3px 3px 0 #52647766;
}
#steering button,
#pedals button {
  border-radius: 0;
  border: 2px solid #cbd6bc;
  box-shadow: 3px 3px 0 #49566d;
}
#steering button {
  background: #58748ee8;
  color: #fff0bf;
}
#pedals .gas {
  background: #abd2afef;
  color: #3c5866;
}
#pedals .reverse {
  background: #a6b6cbef;
  color: #3b4e69;
}
.interact {
  background: #f5dca9ef !important;
  border: 2px solid #ffedc3 !important;
  box-shadow: 3px 3px 0 #526176;
}
#vehicle-info {
  color: #fff0be;
  text-shadow: 1px 2px #526176;
}
#vehicle-info b,
#desktop-help {
  color: #e0e7d3;
}
#target-label {
  color: #fff0bf;
  text-shadow: 1px 1px #526176;
}
.hud-actions button {
  background: #4c6882ed;
  border-color: #c8d5bc;
}
#map-panel {
  background: #405c76f5;
  border: 2px solid #d2d8b6;
}
.dialog-card {
  background: #3a526d;
  border: 2px solid #dfd1a8;
}
#dialog-body {
  color: #e4e6d1;
}
#dialog-body b {
  color: #ffdf9f;
}
#pager {
  border-radius: 2px;
  background: #657887;
  border-color: #3f536e;
}
/* Key tickets are warm paper rather than dark glass. */
.job {
  background: #f4dfb5f2;
  color: #505f75;
  border-color: #b8bda3;
  border-left-color: #71a3a0;
  box-shadow: 3px 3px 0 #51647c70;
}
.job.selected {
  border-color: #b7767c;
}
.job small {
  color: #637881;
}
.job em {
  color: #996275;
}
.job.requested {
  border-left-color: #b6747c;
}
.hud-top {
  background: linear-gradient(#c9d5c6e8, #9cafb970, transparent);
}
.brand,
.clock b,
.money b {
  color: #3e526b;
  text-shadow: 1px 1px #f4e7bb;
}
.brand span,
.clock small,
.money small {
  color: #4e697b;
}
/* Native-resolution canvas: pixel art stays crisp without magnifying the whole UI. */
.job {
  font-size: 12px;
  min-height: 43px;
}
.job small {
  font-size: 10px;
}
.job .tracking {
  color: #825b55;
  font-size: 9px;
  letter-spacing: 0.2px;
}
#target-label {
  background: #fff0cbee;
  color: #435a73;
  border: 1px solid #a88b75;
  padding: 6px 12px;
  text-shadow: none;
  max-width: 42vw;
  text-align: center;
  line-height: 1.4;
}
#target-label:empty {
  display: none;
}
.control-caption {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 0;
  font-size: 11px;
  color: #405972;
  background: #fff0cbee;
  padding: 3px 7px;
  white-space: nowrap;
}
#pedals .reverse.reverse-active {
  background: #f2c08b;
  border-color: #ffe1a0;
  color: #705269;
}
@media (max-height: 550px) and (orientation: landscape) {
  .job {
    min-height: 34px;
    font-size: 11px;
    padding: 4px 7px;
    gap: 2px;
  }
  .job small {
    font-size: 9px;
  }
  .job .tracking {
    font-size: 8px;
  }
  #jobs {
    max-height: calc(100dvh - 183px);
    overflow: auto;
    touch-action: pan-y;
  }
  #target-label {
    font-size: 11px;
    bottom: 22px;
    max-width: 40vw;
    padding: 4px 8px;
  }
  .control-caption {
    font-size: 10px;
    bottom: calc(100% + 6px);
  }
}
.job {
  touch-action: pan-y;
}
