* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; width: 100%; height: 100%;
  overflow: hidden;
  background: #f2f1ec;
  font-family: "Courier New", Courier, monospace;
  -webkit-user-select: none; user-select: none;
}
#world {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  display: block;
  cursor: grab;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #f2f1ec;
}
#world.dragging { cursor: grabbing; }

.hud {
  position: fixed;
  z-index: 10;
  background: #fbfaf6;
  border: 3px solid #22252b;
  box-shadow: 6px 6px 0 rgba(34,37,43,.18);
  padding: 10px 12px;
  color: #22252b;
}
.top-left { top: 14px; left: 14px; max-width: 280px; }
.title {
  font-weight: 900; font-size: 18px; letter-spacing: 1px;
}
.sub { font-size: 11px; opacity: .65; margin: 2px 0 8px; }
.hint {
  display: flex; gap: 10px; flex-wrap: wrap;
  font-size: 11px; margin-bottom: 10px;
  background: #22252b; color: #fbfaf6; padding: 6px 8px;
}
.hint b { color: #ffd75e; }
.zones {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.zones button, .bottom-right button {
  font-family: inherit;
  font-weight: 700; font-size: 11px;
  border: 2px solid #22252b;
  background: #fff;
  padding: 6px 4px;
  cursor: pointer;
  box-shadow: 2px 2px 0 #22252b;
}
.zones button:hover, .bottom-right button:hover {
  background: #ffd75e;
}
.zones button:active, .bottom-right button:active {
  transform: translate(1px,1px);
  box-shadow: 1px 1px 0 #22252b;
}

.top-right {
  top: 14px; right: 14px;
  font-size: 11px; font-weight: 700;
  text-align: right; line-height: 1.6;
  min-width: 110px;
}
#zoomLabel { font-size: 15px; }

.bottom-right {
  right: 14px; bottom: 14px;
  display: flex; gap: 8px;
  padding: 8px;
}
.bottom-right button {
  width: 38px; height: 38px; font-size: 18px;
}

.bottom-left {
  left: 14px; bottom: 14px;
  padding: 6px;
}
#mini {
  display: block;
  width: 170px; height: 96px;
  image-rendering: pixelated;
  border: 2px solid #22252b;
  cursor: crosshair;
  background: #f2f1ec;
}
.mini-label { font-size: 10px; opacity: .6; margin-top: 4px; text-align: center; }

#toast {
  position: fixed;
  left: 50%; bottom: 22px;
  transform: translateX(-50%) translateY(20px);
  background: #22252b; color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 8px 14px;
  border: 2px solid #fff;
  box-shadow: 4px 4px 0 rgba(0,0,0,.25);
  opacity: 0; pointer-events: none;
  transition: all .25s;
  z-index: 20;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 700px) {
  .top-left { max-width: 200px; padding: 8px; }
  .title { font-size: 14px; }
  .hint { display: none; }
  .bottom-left { display: none; }
}
