:root {
  --lg: #fff;
  --fg: #aaa;
  --mg: #666;
  --dg: #333;
  --bg: #000;
  --menu-height: 2.5rem;
}

html,
body {
  padding: 0;
  margin: 0;
  user-select: none;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

button {
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.25rem;
  background-color: var(--mg);
  color: var(--lg);
}

button:disabled {
  background-color: var(--bg);
  color: var(--dg);
}

* {
  font-family: sans;
}

#menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  box-sizing: border-box;
  height: var(--menu-height);
  display: flex;
  flex-direction: row;
  gap: 1rem;
  z-index: 1000;
  background-color: var(--dg);
  color: var(--fg);
  padding: 0.2rem;
}

#inspector {
  position: fixed;
  top: var(--menu-height);
  right: 0;
  background-repeat: no-repeat;
  background-position: right top;
  pointer-events: none;
}

.config-field {
  display: flex;
  gap: 0.5rem;
  flex-direction: row;
  padding: 0.2rem;
  justify-content: center;
  align-items: center;
}
.config-field > div {
  font-family: monospace;
  font-size: 1.15rem;
}

.config-field > input {
  min-width: 3rem;
  width: 3rem;
  color: #fff;
  border: 1px solid var(--mg);
  border-radius: 0.2rem;
  background: transparent;
  font-family: monospace;
  font-size: 1rem;
}

#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  color: #aaa;
}
