.map-groups {
  position: absolute;
  z-index: 6;
  top: clamp(6px, 1.6%, 16px);
  right: clamp(6px, 1.6%, 16px);
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid #7c6d61;
  border-radius: 6px;
  background: #151515;
}
.map-groups button {
  min-height: 44px;
  padding: 6px clamp(8px, 1.5vw, 18px);
  border: 1px solid #71645a;
  border-radius: 3px;
  background: #2b2724;
  color: #f9f2e9;
  font: 700 clamp(14px, 1.6vw, 18px) / 1.2 system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}
.map-groups button[aria-pressed="true"] {
  border-color: #ffcb94;
  background: #edaa6e;
  color: #21170f;
}
.map-groups button:focus-visible {
  outline: 3px solid #8cdbff;
  outline-offset: 1px;
}
.map-caption {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 3px;
  background: #141414ed;
  color: #fff;
  font: 700 clamp(13px, 1.8vw, 19px) / 1.3 system-ui, sans-serif;
  white-space: nowrap;
  pointer-events: none;
}
.map-groups[hidden], .map-caption[hidden] { display: none; }
#game-frame:fullscreen .map-groups {
  right: max(12px, calc((100vw - 133.333vh) / 2 + 12px));
  top: max(12px, calc((100vh - 75vw) / 2 + 12px));
}
#game-frame:fullscreen .map-caption {
  bottom: max(8vh, calc((100vh - 75vw) / 2 + 6vw));
}
