.city-hud {
  position: absolute;
  top: 114px;
  left: 28px;
  width: min(330px, calc(100vw - 40px));
  padding: 24px;
  pointer-events: auto;
  border: 1px solid #b4a17770;
  background: linear-gradient(145deg, #181c2ff2, #101727ec);
  border-radius: 14px;
  box-shadow: 0 12px 45px #0007;
}
.city-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  --npc-label-offset: 98px;
}
.city-map-marker {
  position: absolute;
  transform: translate(-50%, calc(-100% - var(--npc-label-offset)));
  display: flex;
  align-items: center;
  gap: 7px;
  pointer-events: auto;
  padding: 7px 10px;
  min-height: 32px;
  white-space: nowrap;
  font-size: 11px;
  color: #ead49c;
  border: 1px solid #b89c6088;
  border-radius: 4px;
  background: #151b25e8;
  box-shadow: 0 3px 12px #0007;
}
.city-map-marker:hover {
  border-color: #f4dba1;
  color: #fff0c7;
}
.city-map-marker .icon {
  width: 14px;
  height: 14px;
}
.city-hud h1 {
  margin: 8px 0 10px;
  font:
    30px Lora,
    serif;
  color: #f5dfaa;
}
.city-hud p {
  color: #bcc6ce;
  line-height: 1.6;
  font-size: 12px;
}
.city-services {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}
.city-services button {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 12px;
  padding: 12px;
  background: #ffffff07;
  border: 1px solid #a59bcc30;
  border-radius: 8px;
  color: #eee4d6;
}
.city-services button:hover {
  border-color: #d7bf82;
  background: #ffffff10;
}
.city-services small {
  display: block;
  font-size: 11px;
  color: #a8bac0;
  margin-top: 4px;
}
.city-services .icon {
  color: #d9bd84;
  width: 24px;
  height: 24px;
}
.city-vitals {
  display: block;
  color: #9ee4c5;
  padding-top: 12px;
  border-top: 1px solid #ffffff13;
  font-size: 12px;
}
.city-exit {
  width: 100%;
  margin-top: 14px;
}
body[data-location="city"] .keyboard-hint {
  visibility: hidden;
}
.city-hud {
  max-height: calc(100dvh - 180px);
  overflow-y: auto;
}
.merchant-stock {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}
.merchant-stock button {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
@media (max-width: 760px) {
  .city-markers {
    --npc-label-offset: 68px;
  }
  .city-map-marker {
    font-size: 9px;
    padding: 6px 8px;
    gap: 5px;
    max-width: 155px;
  }
  .city-hud {
    top: auto;
    bottom: 30px;
    left: 12px;
    width: calc(100vw - 24px);
    padding: 12px;
    max-height: min(230px, 34dvh);
  }
  .city-hud h1 {
    font-size: 23px;
    margin: 4px 0;
  }
  .city-services {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 12px 0;
  }
  .city-services button {
    padding: 9px;
    font-size: 11px;
    gap: 7px;
  }
  .city-services small {
    font-size: 10px;
  }
  .city-hud p {
    margin: 4px 0;
  }
  .city-exit {
    margin-top: 10px;
  }
}
