* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: monospace, 'Courier New', Arial;
  background: #000; /* 全黑背景 */
  color: #fff;
  -webkit-font-smoothing: none;
  text-rendering: optimizeSpeed;
  user-select: none;
  touch-action: manipulation;
}

#topBar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: auto auto 1fr auto; /* remain | price | hint | status */
  gap: 8px;
  align-items: center;
  background: #111;
  border-bottom: 2px solid #333;
  z-index: 10;
}

.pixel-counter {
  font-size: 18px;
  letter-spacing: 1px;
  color: #f7f3c6;
  background: #222;
  border: 3px solid #555;
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px #000;
}

.conn { font-size: 12px; color: #aaa; }
.hint { font-size: 12px; color: #9aa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.stage { position: fixed; top: 56px; left: 0; right: 0; bottom: 0; }

#gameCanvas {
  width: 100%; height: 100%; display: block; image-rendering: pixelated;
}

/* Reserve style hooks if needed later */
.bubble { filter: drop-shadow(0 2px 0 #000); }
