#ui-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  pointer-events: none;
  color: #fff;
  z-index: 10;
}

#debug-info {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 12px;
  line-height: 1.4;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 6px;
  font-family: 'Space Mono', monospace;
  white-space: pre-line;
  text-shadow: 1px 1px 1px #000;
}

#main-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  color: #fff;
}

.menu-content {
  text-align: center;
  max-width: 500px;
  padding: 40px;
}

.menu-content h1 {
  font-size: 48px;
  margin-bottom: 40px;
  font-family: 'Space Mono', monospace;
}

.menu-section {
  margin: 30px 0;
}

.menu-section h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.menu-section select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  background: #333;
  color: #fff;
  border: 1px solid #555;
  border-radius: 4px;
  font-family: 'Space Mono', monospace;
}

.menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.menu-buttons button {
  padding: 15px 30px;
  font-size: 18px;
  background: #444;
  color: #fff;
  border: 2px solid #666;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Space Mono', monospace;
}

.menu-buttons button:hover {
  background: #555;
  border-color: #888;
}

#editor-ui {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  pointer-events: none;
}

.editor-toolbar {
  background: rgba(0, 0, 0, 0.8);
  padding: 10px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  pointer-events: all;
}

.tool-group {
  display: flex;
  gap: 5px;
  align-items: center;
}

.tool-group label {
  color: #fff;
  margin-right: 5px;
  font-size: 14px;
}

.editor-toolbar button {
  padding: 8px 12px;
  background: #333;
  color: #fff;
  border: 1px solid #555;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

.editor-toolbar button:hover {
  background: #444;
}

.editor-toolbar button.active {
  background: #4a9eff;
  border-color: #4a9eff;
}

.editor-toolbar button:disabled {
  opacity: 0.3;
  cursor: default;
}

.editor-toolbar input[type="checkbox"] {
  margin-right: 5px;
}