html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #06080c;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  font-family: "Segoe UI", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
}

#game {
  position: fixed;
  left: 0;
  top: 0;
  display: block;
  touch-action: none;
  background: #06080c;
  cursor: default;
}

/* セーフエリア（ノッチ）の大きさを JS から読むためのダミー要素 */
#safe {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  visibility: hidden;
  pointer-events: none;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* 致命的なエラーが起きたときだけ表示 */
#error {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 10px 12px;
  background: rgba(120, 0, 0, 0.9);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-all;
  z-index: 10;
}
#error[hidden] { display: none; }

