#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
#hud > * {
  pointer-events: auto;
}
/* Back to the world list: a round arrow in the corner, centred on the wallet beside it. */
/* Where north is: small and faint, it turns with the camera. */
#compass {
  position: fixed;
  left: 50%;
  bottom: 12px;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  overflow: visible;
  color: var(--paper);
  stroke: #2b2a26;
  stroke-width: 0.6;
  opacity: 0.6;
  pointer-events: none;
}
#compass text {
  font-size: 7px;
  font-weight: 700;
  fill: currentColor;
}
#corner {
  position: absolute;
  left: 16px;
  top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 200px);
}
#leave {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
#wallet {
  min-width: 0;
}
#wallet b {
  font-size: 20px;
  color: var(--yellow);
}
#clock {
  margin-left: 10px;
  font-size: 14px;
  opacity: 0.85;
}
#inv {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 13px;
  margin-top: 4px;
}
#inv span {
  opacity: 0.55;
}
#inv span.has {
  opacity: 1;
}
img.mat,
.side .item img.mat {
  width: 16px;
  height: 16px;
  margin-right: 3px;
  vertical-align: -3px;
  background: none;
  border-radius: 0;
}
.help {
  margin: 0 0 6px;
  font-size: 12px;
  opacity: 0.8;
}
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 8px;
}
.swatches button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  padding: 0;
  border: 3px solid transparent;
}
.swatches button.sel {
  border-color: var(--yellow);
}
.marks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 4px;
  margin: 4px 0 8px;
}
.marks button {
  padding: 2px;
  border: 3px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 0;
}
.marks button img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 5px;
  background: #2b2b2b;
}
.marks button small {
  font-size: 10px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.marks button.sel {
  border-color: var(--yellow);
}
#paint {
  top: auto;
  bottom: 90px;
}
#hint small {
  opacity: 0.85;
}
select {
  font: inherit;
  padding: 6px 8px;
  border-radius: 10px;
  border: 2px solid #d8cfbb;
  background: var(--paper);
  color: var(--ink);
}
#menu .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
#top {
  position: absolute;
  right: 16px;
  top: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
#top .row {
  display: flex;
  gap: 6px;
}
#top button {
  padding: 6px 10px;
  font-size: 13px;
}
#players {
  font-size: 13px;
  text-align: right;
}
#players i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}
