#game-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

#gameCanvas {
  display: block;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: #1a1a1a;
  max-width: 100%;
  height: auto;
  touch-action: none;
}

#msg-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  border-radius: var(--radius-sm);
  gap: 14px;
  text-align: center;
  padding: 16px;
  z-index: 10;
}
#msg-overlay.hidden { display: none; }
#msg-overlay .msg-sub  { font-size: 14px; font-weight: normal; color: #ccc; }
#msg-overlay .msg-btn  {
  margin-top: 6px;
  padding: 10px 28px;
  background: var(--accent, #edc22e);
  color: var(--on-accent, #222);
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

/* ── Mobile controls ──────────────────────────────────────────────────────── */
/* Joystick + fire-button styles are in shared/joystick.css. */

/* Honour iOS Safari's bottom system bar */
.app {
  padding-bottom: max(40px, calc(40px + env(safe-area-inset-bottom)));
}
