* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: #12171d;
  color: #e4e8ed;
  font: 14px/1.4 -apple-system, "PingFang SC", "Segoe UI", sans-serif;
}

#app {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 8px;
  gap: 6px;
}

#toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

button, select {
  padding: 4px 10px;
  border: 1px solid #566474;
  border-radius: 4px;
  background: #26303c;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

#stage {
  position: relative;
  flex: 1;
  min-height: 0;
  max-width: 100%; /* aspect-ratio: set by js/game.js from the logical canvas */
}

#board {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

#load-error {
  max-width: 480px;
  color: #f07c2e;
  text-align: center;
}
