/* ベーススタイル。UI モジュールの詳細スタイルは UI.js が動的に注入する */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #070a14;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}

#app, #app canvas {
  position: fixed;
  inset: 0;
  display: block;
}

#ui-root {
  position: fixed;
  inset: 0;
  pointer-events: none; /* 個々のUI要素側で pointer-events:auto を指定する */
  z-index: 10;
}

/* main.js が直接出す致命的エラー表示 */
#fatal-error {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 99;
  background: rgba(60, 8, 8, 0.92);
  color: #ffd9d9;
  font-family: Consolas, monospace;
  font-size: 12px;
  padding: 10px 14px;
  white-space: pre-wrap;
  max-height: 40vh;
  overflow: auto;
}
