@font-face {
  font-family: Pixel;
  src: url("/vt323.woff2") format("woff2");
  font-display: swap;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f7f5ef;
  color: #302d27;
  font-family: Pixel, monospace;
}
button, a { font: inherit; color: inherit; }
a { text-decoration: none; }
button { cursor: pointer; background: transparent; border: 0; padding: 4px 6px; }
button:hover, a:hover { color: #b33672; }
button:focus-visible, a:focus-visible, #viewport:focus-visible {
  outline: 2px solid #b33672;
  outline-offset: -2px;
}
main, .forest, #viewport { position: absolute; inset: 0; }
.topbar {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  left: max(22px, env(safe-area-inset-left));
  z-index: 2;
  text-shadow: 0 1px #f7f5ef, 1px 0 #f7f5ef;
}
.brand { font-size: 21px; line-height: 22px; }
.brand span { display: none; }
.edition { display: block; font-size: 15px; margin-top: 2px; }
#language {
  position: fixed;
  top: max(15px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  font-size: 18px;
}
.forest-bar {
  position: fixed;
  top: max(68px, calc(env(safe-area-inset-top) + 50px));
  left: max(22px, env(safe-area-inset-left));
  display: flex;
  gap: 12px;
  z-index: 2;
  font-size: 15px;
  text-shadow: 0 1px #f7f5ef, 1px 0 #f7f5ef;
  pointer-events: none;
}
#connection:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #b8b4aa;
  margin-right: 5px;
}
#connection.live:before { background: #3e7d4f; }
#viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  scrollbar-width: none;
  touch-action: manipulation;
}
#viewport::-webkit-scrollbar { display: none; }
#world-space { position: relative; min-width: 100%; height: 100%; }
#world { display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); image-rendering: pixelated; cursor: pointer; }
.residents {
  position: fixed;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: max(22px, env(safe-area-inset-left));
  right: 22px;
  max-height: 64px;
  overflow-y: auto;
  scrollbar-width: thin;
  z-index: 2;
}
#resident-list { display: flex; gap: 6px 14px; flex-wrap: wrap; }
#resident-list button {
  display: flex;
  text-align: left;
  font-size: 16px;
  padding: 2px 5px;
  background: #f7f5efcc;
}
#resident-list small { font-size: 14px; margin-left: 6px; }
.avatar { display: none; }
#resident-list button[aria-pressed="true"] { color: #b33672; }
.resting { opacity: .5; }
#details {
  position: fixed;
  bottom: 96px;
  right: 22px;
  background: #f7f5efee;
  border: 2px solid #775636;
  padding: 14px;
  max-width: calc(100vw - 44px);
  width: 270px;
  z-index: 5;
  font-size: 18px;
}
.detail-heading { display: flex; justify-content: space-between; align-items: center; font-size: 22px; }
#details p { font-size: 16px; }
#close { font-size: 22px; }
@media (max-width: 650px) {
  .edition { font-size: 13px; }
  .forest-bar { font-size: 13px; gap: 8px; }
}
