/* 页面骨架布局（总指挥维护）。HUD 样式在 src/ui/hud.css，沙盘标注样式在 src/render/labels.css。 */
/* 三块停靠面板的尺寸：HUD 与沙盘画布共用，画布只占中间留出的“沙盘视口”。 */
:root {
  --left-w: 290px;
  --side-w: 320px;
  --bar-h: 98px;
}

@media (max-width: 1200px) {
  :root {
    --left-w: 250px;
    --side-w: 280px;
  }
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #2b241d;
  color: #241c14;
  font-family: 'Noto Sans CJK SC', 'Source Han Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
}

#stage {
  position: fixed;
  inset: 0 var(--side-w) var(--bar-h) var(--left-w);
  background: #2b241d;
}

#stage canvas {
  cursor: grab;
}

#stage canvas.is-hover-unit {
  cursor: pointer;
}

#stage canvas.is-panning {
  cursor: grabbing;
}

/* 沙盘视口四周的内陷暗影与细黄铜线，营造俯视木框沙盘井的实体层次。 */
#stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  box-shadow:
    inset 0 0 0 1px rgba(197, 162, 84, 0.34),
    inset 0 0 24px rgba(14, 9, 5, 0.42);
}

/* HUD 覆盖在沙盘之上：容器本身不拦截鼠标，面板自己开启 pointer-events。 */
#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

#fatal {
  position: fixed;
  inset: 10% 10% auto;
  margin: 0;
  padding: 16px;
  max-height: 70%;
  overflow: auto;
  white-space: pre-wrap;
  background: #f0e9d8;
  color: #7a1f17;
  border: 3px double #a83226;
  font: 13px/1.5 ui-monospace, monospace;
  z-index: 100;
}
